diff options
| author | 2021-06-02 15:05:20 -0400 | |
|---|---|---|
| committer | 2021-06-04 16:02:38 -0400 | |
| commit | 810085ddb7b76c1cc5059a1feb3b1250eceacf23 (patch) | |
| tree | 64918b4dc5f46a6ddb8ddf04d39d1631db21d2e2 /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
| parent | drm/amd/pm: Use generic BACO function for smu11 ASICs (diff) | |
| download | wireguard-linux-810085ddb7b76c1cc5059a1feb3b1250eceacf23.tar.xz wireguard-linux-810085ddb7b76c1cc5059a1feb3b1250eceacf23.zip | |
drm/amdgpu: Don't flush/invalidate HDP for APUs and A+A
Integrate two generic functions to determine if HDP
flush is needed for all Asics.
Signed-off-by: Eric Huang <jinhuieric.huang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 2d044f7edc9c..c0316eaba547 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h @@ -1285,6 +1285,11 @@ bool amdgpu_device_is_peer_accessible(struct amdgpu_device *adev, int amdgpu_device_baco_enter(struct drm_device *dev); int amdgpu_device_baco_exit(struct drm_device *dev); +void amdgpu_device_flush_hdp(struct amdgpu_device *adev, + struct amdgpu_ring *ring); +void amdgpu_device_invalidate_hdp(struct amdgpu_device *adev, + struct amdgpu_ring *ring); + /* atpx handler */ #if defined(CONFIG_VGA_SWITCHEROO) void amdgpu_register_atpx_handler(void); |
