OSDN Git Service

drm/amdgpu: remove pasid_src field from IV entry
authorXiaomeng Hou <Xiaomeng.Hou@amd.com>
Thu, 27 Apr 2023 05:38:47 +0000 (13:38 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:25:47 +0000 (09:25 -0400)
PASID_SRC is not actually present in the Interrupt Packet, the field is
taken as reserved bits now. So remove it from IV entry to avoid misuse.

Signed-off-by: Xiaomeng Hou <Xiaomeng.Hou@amd.com>
Reviewed-by: Aaron Liu <aaron.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c
drivers/gpu/drm/amd/amdgpu/amdgpu_irq.h

index d58353c..fceb3b3 100644 (file)
@@ -271,7 +271,6 @@ void amdgpu_ih_decode_iv_helper(struct amdgpu_device *adev,
        entry->timestamp_src = dw[2] >> 31;
        entry->pasid = dw[3] & 0xffff;
        entry->node_id = (dw[3] >> 16) & 0xff;
-       entry->pasid_src = dw[3] >> 31;
        entry->src_data[0] = dw[4];
        entry->src_data[1] = dw[5];
        entry->src_data[2] = dw[6];
index 7a8e686..1c747ac 100644 (file)
@@ -54,7 +54,6 @@ struct amdgpu_iv_entry {
        unsigned timestamp_src;
        unsigned pasid;
        unsigned node_id;
-       unsigned pasid_src;
        unsigned src_data[AMDGPU_IRQ_SRC_DATA_MAX_SIZE_DW];
        const uint32_t *iv_entry;
 };