artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e862af
)
drm/amd: Fix initialization for nbio 4.3.0
author
jsg
<jsg@openbsd.org>
Fri, 10 Feb 2023 14:40:59 +0000
(14:40 +0000)
committer
jsg
<jsg@openbsd.org>
Fri, 10 Feb 2023 14:40:59 +0000
(14:40 +0000)
From Mario Limonciello
814d83a710e8309d989fafc163656a68f2acaef4
in linux-6.1.y/6.1.11
5048fa1ebf89d03cf0ceca13fab8f800399e9ee3
in mainline linux
sys/dev/pci/drm/amd/amdgpu/nbio_v4_3.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/amd/amdgpu/nbio_v4_3.c
b/sys/dev/pci/drm/amd/amdgpu/nbio_v4_3.c
index
15eb365
..
09fdcd2
100644
(file)
--- a/
sys/dev/pci/drm/amd/amdgpu/nbio_v4_3.c
+++ b/
sys/dev/pci/drm/amd/amdgpu/nbio_v4_3.c
@@
-337,7
+337,13
@@
const struct nbio_hdp_flush_reg nbio_v4_3_hdp_flush_reg = {
static void nbio_v4_3_init_registers(struct amdgpu_device *adev)
{
- return;
+ if (adev->ip_versions[NBIO_HWIP][0] == IP_VERSION(4, 3, 0)) {
+ uint32_t data;
+
+ data = RREG32_SOC15(NBIO, 0, regRCC_DEV0_EPF2_STRAP2);
+ data &= ~RCC_DEV0_EPF2_STRAP2__STRAP_NO_SOFT_RESET_DEV0_F2_MASK;
+ WREG32_SOC15(NBIO, 0, regRCC_DEV0_EPF2_STRAP2, data);
+ }
}
static u32 nbio_v4_3_get_rom_offset(struct amdgpu_device *adev)