mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
Refactor the sync_debugfs LTC HAL op so that the logic to enable or disable LTC goes to common code nvgpu_ltc_sync_enabled() and the LTC HAL set_enabled only performs the hardware register access. Create a new common function nvgpu_init_ltc_support() to initialize the LTC software variable, and move hardware initialization of LTC to be called from it. JIRA NVGPU-62 Change-Id: Ib1cf4f5b83ca3dac08407464ed56a732e0a33923 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1528262 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
41 lines
1.5 KiB
C
41 lines
1.5 KiB
C
/*
|
|
* GM20B L2
|
|
*
|
|
* Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms and conditions of the GNU General Public License,
|
|
* version 2, as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
* more details.
|
|
*/
|
|
|
|
#ifndef _NVHOST_GM20B_LTC
|
|
#define _NVHOST_GM20B_LTC
|
|
struct gpu_ops;
|
|
|
|
int gm20b_ltc_init_comptags(struct gk20a *g, struct gr_gk20a *gr);
|
|
int gm20b_determine_L2_size_bytes(struct gk20a *g);
|
|
void gm20b_ltc_set_zbc_color_entry(struct gk20a *g,
|
|
struct zbc_entry *color_val,
|
|
u32 index);
|
|
void gm20b_ltc_set_zbc_depth_entry(struct gk20a *g,
|
|
struct zbc_entry *depth_val,
|
|
u32 index);
|
|
void gm20b_ltc_init_cbc(struct gk20a *g, struct gr_gk20a *gr);
|
|
void gm20b_ltc_set_enabled(struct gk20a *g, bool enabled);
|
|
void gm20b_ltc_init_fs_state(struct gk20a *g);
|
|
int gm20b_ltc_cbc_ctrl(struct gk20a *g, enum gk20a_cbc_op op,
|
|
u32 min, u32 max);
|
|
void gm20b_ltc_isr(struct gk20a *g);
|
|
u32 gm20b_ltc_cbc_fix_config(struct gk20a *g, int base);
|
|
void gm20b_flush_ltc(struct gk20a *g);
|
|
int gm20b_ltc_alloc_phys_cbc(struct gk20a *g,
|
|
size_t compbit_backing_size);
|
|
int gm20b_ltc_alloc_virt_cbc(struct gk20a *g,
|
|
size_t compbit_backing_size);
|
|
#endif
|