diff options
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/acr_gp106.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gp106/acr_gp106.c b/drivers/gpu/nvgpu/gp106/acr_gp106.c index 3bd79bcd..b883ad83 100644 --- a/drivers/gpu/nvgpu/gp106/acr_gp106.c +++ b/drivers/gpu/nvgpu/gp106/acr_gp106.c | |||
@@ -40,7 +40,7 @@ typedef int (*get_ucode_details)(struct gk20a *g, | |||
40 | /* Both size and address of WPR need to be 128K-aligned */ | 40 | /* Both size and address of WPR need to be 128K-aligned */ |
41 | #define WPR_ALIGNMENT 0x20000 | 41 | #define WPR_ALIGNMENT 0x20000 |
42 | #define GP106_DGPU_NONWPR NVGPU_VIDMEM_BOOTSTRAP_ALLOCATOR_BASE | 42 | #define GP106_DGPU_NONWPR NVGPU_VIDMEM_BOOTSTRAP_ALLOCATOR_BASE |
43 | #define GP106_DGPU_WPR (GP106_DGPU_NONWPR + 0x400000) | 43 | #define GP106_DGPU_WPR_OFFSET 0x400000 |
44 | #define DGPU_WPR_SIZE 0x100000 | 44 | #define DGPU_WPR_SIZE 0x100000 |
45 | 45 | ||
46 | /*Externs*/ | 46 | /*Externs*/ |
@@ -79,8 +79,8 @@ static get_ucode_details pmu_acr_supp_ucode_list[] = { | |||
79 | 79 | ||
80 | static void gp106_wpr_info(struct gk20a *g, struct wpr_carveout_info *inf) | 80 | static void gp106_wpr_info(struct gk20a *g, struct wpr_carveout_info *inf) |
81 | { | 81 | { |
82 | inf->wpr_base = GP106_DGPU_WPR; | 82 | inf->nonwpr_base = g->mm.vidmem.bootstrap_base; |
83 | inf->nonwpr_base = GP106_DGPU_NONWPR; | 83 | inf->wpr_base = inf->nonwpr_base + GP106_DGPU_WPR_OFFSET; |
84 | inf->size = DGPU_WPR_SIZE; | 84 | inf->size = DGPU_WPR_SIZE; |
85 | } | 85 | } |
86 | 86 | ||