OSDN Git Service

drm/amdkfd: remove unused struct cdit_header
authorPaulo Miguel Almeida <paulo.miguel.almeida.rodenas@gmail.com>
Tue, 25 Oct 2022 08:20:19 +0000 (21:20 +1300)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Oct 2022 19:12:08 +0000 (15:12 -0400)
struct cdit_header was never used across any of the amd drivers nor
this is exposed to UAPI so it can be removed.

This patch removes struct cdit_header and refactor code accordingly

Signed-off-by: Paulo Miguel Almeida <paulo.miguel.almeida.rodenas@gmail.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_crat.h

index 482ba84..22893ff 100644 (file)
 #pragma pack(1)
 
 /*
- * 4CC signature values for the CRAT and CDIT ACPI tables
+ * 4CC signature value for the CRAT ACPI table
  */
 
 #define CRAT_SIGNATURE "CRAT"
-#define CDIT_SIGNATURE "CDIT"
 
 /*
  * Component Resource Association Table (CRAT)
@@ -292,27 +291,6 @@ struct crat_subtype_generic {
        uint32_t        flags;
 };
 
-/*
- * Component Locality Distance Information Table (CDIT)
- */
-#define CDIT_OEMID_LENGTH      6
-#define CDIT_OEMTABLEID_LENGTH 8
-
-struct cdit_header {
-       uint32_t        signature;
-       uint32_t        length;
-       uint8_t         revision;
-       uint8_t         checksum;
-       uint8_t         oem_id[CDIT_OEMID_LENGTH];
-       uint8_t         oem_table_id[CDIT_OEMTABLEID_LENGTH];
-       uint32_t        oem_revision;
-       uint32_t        creator_id;
-       uint32_t        creator_revision;
-       uint32_t        total_entries;
-       uint16_t        num_domains;
-       uint8_t         entry[1];
-};
-
 #pragma pack()
 
 struct kfd_dev;