artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c710c17
)
drm/amdgpu: Fix HDP flush for VFs on nbio v7.9
author
jsg
<jsg@openbsd.org>
Mon, 4 Mar 2024 02:13:13 +0000
(
02:13
+0000)
committer
jsg
<jsg@openbsd.org>
Mon, 4 Mar 2024 02:13:13 +0000
(
02:13
+0000)
From Lijo Lazar
c19453cc16ad5d90f9ed40686203103e57085580
in linux-6.6.y/6.6.19
534c8a5b9d5d41d30cdcac93cfa1bca5e17be009
in mainline linux
sys/dev/pci/drm/amd/amdgpu/nbio_v7_9.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/amd/amdgpu/nbio_v7_9.c
b/sys/dev/pci/drm/amd/amdgpu/nbio_v7_9.c
index
48effaa
..
4fd03d4
100644
(file)
--- a/
sys/dev/pci/drm/amd/amdgpu/nbio_v7_9.c
+++ b/
sys/dev/pci/drm/amd/amdgpu/nbio_v7_9.c
@@
-426,6
+426,12
@@
static void nbio_v7_9_init_registers(struct amdgpu_device *adev)
u32 inst_mask;
int i;
+ if (amdgpu_sriov_vf(adev))
+ adev->rmmio_remap.reg_offset =
+ SOC15_REG_OFFSET(
+ NBIO, 0,
+ regBIF_BX_DEV0_EPF0_VF0_HDP_MEM_COHERENCY_FLUSH_CNTL)
+ << 2;
WREG32_SOC15(NBIO, 0, regXCC_DOORBELL_FENCE,
0xff & ~(adev->gfx.xcc_mask));