Skip to content

Commit 062666f

Browse files
Pratap Nirujogialexdeucher
authored andcommitted
drm/amd/amdgpu: Disable MMHUB prefetch for ISP v4.1.1
Disable MMHUB prefetch for ISP v4.1.1 as a temporary WA until the GART supports MMHUB TLSi and SAW for ISP HW to access GART memory using the TLSi path. Reviewed-by: Mario Limonciello <[email protected]> Signed-off-by: Pratap Nirujogi <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 05bafe9 commit 062666f

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

drivers/gpu/drm/amd/amdgpu/isp_v4_1_1.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,18 @@ static int isp_v4_1_1_hw_init(struct amdgpu_isp *isp)
104104
goto failure;
105105
}
106106

107+
/*
108+
* Temporary WA added to disable MMHUB TLSi until the GART initialization
109+
* is ready to support MMHUB TLSi and SAW for ISP HW to access GART memory
110+
* using the TLSi path
111+
*/
112+
WREG32(mmDAGB1_WRCLI5_V4_1_1 >> 2, 0xFE5FEAA8);
113+
WREG32(mmDAGB1_WRCLI9_V4_1_1 >> 2, 0xFE5FEAA8);
114+
WREG32(mmDAGB1_WRCLI10_V4_1_1 >> 2, 0xFE5FEAA8);
115+
WREG32(mmDAGB1_WRCLI14_V4_1_1 >> 2, 0xFE5FEAA8);
116+
WREG32(mmDAGB1_WRCLI19_V4_1_1 >> 2, 0xFE5FEAA8);
117+
WREG32(mmDAGB1_WRCLI20_V4_1_1 >> 2, 0xFE5FEAA8);
118+
107119
return 0;
108120

109121
failure:

drivers/gpu/drm/amd/amdgpu/isp_v4_1_1.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@
3232

3333
#include "ivsrcid/isp/irqsrcs_isp_4_1.h"
3434

35+
#define mmDAGB1_WRCLI5_V4_1_1 0x68420
36+
#define mmDAGB1_WRCLI9_V4_1_1 0x68430
37+
#define mmDAGB1_WRCLI10_V4_1_1 0x68434
38+
#define mmDAGB1_WRCLI14_V4_1_1 0x68444
39+
#define mmDAGB1_WRCLI19_V4_1_1 0x68458
40+
#define mmDAGB1_WRCLI20_V4_1_1 0x6845C
41+
3542
#define MAX_ISP411_INT_SRC 8
3643

3744
void isp_v4_1_1_set_isp_funcs(struct amdgpu_isp *isp);

0 commit comments

Comments
 (0)