mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: set graphics specific PRI values for graphics contexts
Add new HAL gops.gr.init.set_default_gfx_regs() to set graphics specific PRI values for graphics contexts in function nvgpu_gr_obj_ctx_alloc(). Add new HAL gops.gr.init.capture_gfx_regs() to capture and save init values for the PRIs. Add new struct nvgpu_gr_obj_ctx_gfx_regs to hold the PRI init values. Define HAL functions gv11b_gr_init_set_default_gfx_regs() and gv11b_gr_init_capture_gfx_regs(). Set the HAL functions for gv11b and ga10b. Register accessors required to set PRIs are auto-generated. Bug 3506078 Change-Id: I4c2843a274f3c924e402541e600e104ed0c9ed1c Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2671598 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Shashank Singh <shashsingh@nvidia.com> Reviewed-by: Jonathan Mccaffrey <jmccaffrey@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
mobile promotions
parent
e4cf52123f
commit
a1ef716f9d
@@ -28,6 +28,19 @@
|
||||
|
||||
struct nvgpu_gr_global_ctx_local_golden_image;
|
||||
|
||||
/**
|
||||
* Graphics specific context register values structure.
|
||||
*
|
||||
* This structure stores init values for some of the registers that need to be
|
||||
* configured differently for Graphics contexts.
|
||||
*/
|
||||
struct nvgpu_gr_obj_ctx_gfx_regs {
|
||||
u32 reg_sm_disp_ctrl;
|
||||
u32 reg_gpcs_setup_debug;
|
||||
u32 reg_tex_lod_dbg;
|
||||
u32 reg_hww_warp_esr_report_mask;
|
||||
};
|
||||
|
||||
/**
|
||||
* Golden context image descriptor structure.
|
||||
*
|
||||
@@ -54,6 +67,11 @@ struct nvgpu_gr_obj_ctx_golden_image {
|
||||
*/
|
||||
struct nvgpu_gr_global_ctx_local_golden_image *local_golden_image;
|
||||
|
||||
/**
|
||||
* Init values for graphics specific registers.
|
||||
*/
|
||||
struct nvgpu_gr_obj_ctx_gfx_regs gfx_regs;
|
||||
|
||||
#ifdef CONFIG_NVGPU_GR_GOLDEN_CTX_VERIFICATION
|
||||
/**
|
||||
* Pointer to local Golden context image struct used for Golden
|
||||
|
||||
Reference in New Issue
Block a user