mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 06:37:59 +00:00
drm/amdgpu: fix TC cache flushing
TC_WB_ACTION must be set according to the docs Signed-off-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
b4eeed590d
commit
f84e63f2ff
2 changed files with 4 additions and 1 deletions
|
@ -50,9 +50,11 @@
|
||||||
* KMS wrapper.
|
* KMS wrapper.
|
||||||
* - 3.0.0 - initial driver
|
* - 3.0.0 - initial driver
|
||||||
* - 3.1.0 - allow reading more status registers (GRBM, SRBM, SDMA, CP)
|
* - 3.1.0 - allow reading more status registers (GRBM, SRBM, SDMA, CP)
|
||||||
|
* - 3.2.0 - GFX8: Uses EOP_TC_WB_ACTION_EN, so UMDs don't have to do the same
|
||||||
|
* at the end of IBs.
|
||||||
*/
|
*/
|
||||||
#define KMS_DRIVER_MAJOR 3
|
#define KMS_DRIVER_MAJOR 3
|
||||||
#define KMS_DRIVER_MINOR 1
|
#define KMS_DRIVER_MINOR 2
|
||||||
#define KMS_DRIVER_PATCHLEVEL 0
|
#define KMS_DRIVER_PATCHLEVEL 0
|
||||||
|
|
||||||
int amdgpu_vram_limit = 0;
|
int amdgpu_vram_limit = 0;
|
||||||
|
|
|
@ -5725,6 +5725,7 @@ static void gfx_v8_0_ring_emit_fence_gfx(struct amdgpu_ring *ring, u64 addr,
|
||||||
amdgpu_ring_write(ring, PACKET3(PACKET3_EVENT_WRITE_EOP, 4));
|
amdgpu_ring_write(ring, PACKET3(PACKET3_EVENT_WRITE_EOP, 4));
|
||||||
amdgpu_ring_write(ring, (EOP_TCL1_ACTION_EN |
|
amdgpu_ring_write(ring, (EOP_TCL1_ACTION_EN |
|
||||||
EOP_TC_ACTION_EN |
|
EOP_TC_ACTION_EN |
|
||||||
|
EOP_TC_WB_ACTION_EN |
|
||||||
EVENT_TYPE(CACHE_FLUSH_AND_INV_TS_EVENT) |
|
EVENT_TYPE(CACHE_FLUSH_AND_INV_TS_EVENT) |
|
||||||
EVENT_INDEX(5)));
|
EVENT_INDEX(5)));
|
||||||
amdgpu_ring_write(ring, addr & 0xfffffffc);
|
amdgpu_ring_write(ring, addr & 0xfffffffc);
|
||||||
|
|
Loading…
Add table
Reference in a new issue