From: jsg Date: Fri, 12 Jul 2024 03:52:00 +0000 (+0000) Subject: drm/amdgpu: Initialize timestamp for some legacy SOCs X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=91b5575ad479f72cbb4889d9ac3f74ed93734e6f;p=openbsd drm/amdgpu: Initialize timestamp for some legacy SOCs From Ma Jun e55077badb9054630856cbefc099ad148a446648 in linux-6.6.y/6.6.39 2e55bcf3d742a4946d862b86e39e75a95cc6f1c0 in mainline linux --- diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_irq.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_irq.c index 10d43e72011..10b1f659cde 100644 --- 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);