artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba755da
)
drm/amdgpu: Initialize timestamp for some legacy SOCs
author
jsg
<jsg@openbsd.org>
Fri, 12 Jul 2024 03:52:00 +0000
(
03:52
+0000)
committer
jsg
<jsg@openbsd.org>
Fri, 12 Jul 2024 03:52:00 +0000
(
03:52
+0000)
From Ma Jun
e55077badb9054630856cbefc099ad148a446648
in linux-6.6.y/6.6.39
2e55bcf3d742a4946d862b86e39e75a95cc6f1c0
in mainline linux
sys/dev/pci/drm/amd/amdgpu/amdgpu_irq.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/amd/amdgpu/amdgpu_irq.c
b/sys/dev/pci/drm/amd/amdgpu/amdgpu_irq.c
index
10d43e7
..
10b1f65
100644
(file)
--- a/
sys/dev/pci/drm/amd/amdgpu/amdgpu_irq.c
+++ b/
sys/dev/pci/drm/amd/amdgpu/amdgpu_irq.c
@@
-446,6
+446,14
@@
void amdgpu_irq_dispatch(struct amdgpu_device *adev,
entry.ih = ih;
entry.iv_entry = (const uint32_t *)&ih->ring[ring_index];
+
+ /*
+ * timestamp is not supported on some legacy SOCs (cik, cz, iceland,
+ * si and tonga), so initialize timestamp and timestamp_src to 0
+ */
+ entry.timestamp = 0;
+ entry.timestamp_src = 0;
+
amdgpu_ih_decode_iv(adev, &entry);
trace_amdgpu_iv(ih - &adev->irq.ih, &entry);