File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
drivers/gpu/drm/amd/amdgpu Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 31
31
static void hdp_v5_0_flush_hdp (struct amdgpu_device * adev ,
32
32
struct amdgpu_ring * ring )
33
33
{
34
- if (!ring || !ring -> funcs -> emit_wreg )
34
+ if (!ring || !ring -> funcs -> emit_wreg ) {
35
35
WREG32 ((adev -> rmmio_remap .reg_offset + KFD_MMIO_REMAP_HDP_MEM_FLUSH_CNTL ) >> 2 , 0 );
36
- else
36
+ RREG32 ((adev -> rmmio_remap .reg_offset + KFD_MMIO_REMAP_HDP_MEM_FLUSH_CNTL ) >> 2 );
37
+ } else {
37
38
amdgpu_ring_emit_wreg (ring , (adev -> rmmio_remap .reg_offset + KFD_MMIO_REMAP_HDP_MEM_FLUSH_CNTL ) >> 2 , 0 );
39
+ }
38
40
}
39
41
40
42
static void hdp_v5_0_invalidate_hdp (struct amdgpu_device * adev ,
41
43
struct amdgpu_ring * ring )
42
44
{
43
45
if (!ring || !ring -> funcs -> emit_wreg ) {
44
46
WREG32_SOC15_NO_KIQ (HDP , 0 , mmHDP_READ_CACHE_INVALIDATE , 1 );
47
+ RREG32_SOC15_NO_KIQ (HDP , 0 , mmHDP_READ_CACHE_INVALIDATE );
45
48
} else {
46
49
amdgpu_ring_emit_wreg (ring , SOC15_REG_OFFSET (
47
50
HDP , 0 , mmHDP_READ_CACHE_INVALIDATE ), 1 );
You can’t perform that action at this time.
0 commit comments