artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d97082
)
move pwr_state init out of ifdef
author
jsg
<jsg@openbsd.org>
Thu, 25 Jan 2024 08:08:10 +0000
(08:08 +0000)
committer
jsg
<jsg@openbsd.org>
Thu, 25 Jan 2024 08:08:10 +0000
(08:08 +0000)
sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c
b/sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c
index
5dc2ffd
..
ad0e8f4
100644
(file)
--- a/
sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c
+++ b/
sys/dev/pci/drm/amd/amdgpu/amdgpu_device.c
@@
-3653,10
+3653,12
@@
int amdgpu_device_init(struct amdgpu_device *adev,
adev->rmmio_base = pci_resource_start(adev->pdev, 2);
adev->rmmio_size = pci_resource_len(adev->pdev, 2);
}
+#endif
for (i = 0; i < AMD_IP_BLOCK_TYPE_NUM; i++)
atomic_set(&adev->pm.pwr_state[i], POWER_STATE_UNKNOWN);
+#ifdef __linux__
adev->rmmio = ioremap(adev->rmmio_base, adev->rmmio_size);
if (!adev->rmmio)
return -ENOMEM;