mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-06-02 05:13:11 -04:00
drm/amdgpu: use common defines for GMC 12.1 HUB faults
Use proper definitions rather than a number. Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -94,6 +94,10 @@ enum amdgpu_memory_partition {
|
||||
#define AMDGPU_GMC9_FAULT_SOURCE_DATA_WRITE 0x20
|
||||
#define AMDGPU_GMC9_FAULT_SOURCE_DATA_EXE 0x10
|
||||
|
||||
#define AMDGPU_GMC121_FAULT_SOURCE_DATA_READ 0x400000
|
||||
#define AMDGPU_GMC121_FAULT_SOURCE_DATA_WRITE 0x200000
|
||||
#define AMDGPU_GMC121_FAULT_SOURCE_DATA_EXE 0x100000
|
||||
|
||||
/*
|
||||
* GMC page fault information
|
||||
*/
|
||||
|
||||
@@ -121,7 +121,7 @@ static int gmc_v12_1_process_interrupt(struct amdgpu_device *adev,
|
||||
|
||||
if (entry->src_id == UTCL2_1_0__SRCID__RETRY) {
|
||||
retry_fault = true;
|
||||
write_fault = !!(entry->src_data[1] & 0x200000);
|
||||
write_fault = !!(entry->src_data[1] & AMDGPU_GMC121_FAULT_SOURCE_DATA_WRITE);
|
||||
}
|
||||
|
||||
if (entry->client_id == SOC_V1_0_IH_CLIENTID_VMC) {
|
||||
|
||||
Reference in New Issue
Block a user