diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 6cb35e3dab30..c05b39438663 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h | |||
@@ -146,6 +146,7 @@ extern int amdgpu_cik_support; | |||
146 | #define AMDGPU_DEFAULT_GTT_SIZE_MB 3072ULL /* 3GB by default */ | 146 | #define AMDGPU_DEFAULT_GTT_SIZE_MB 3072ULL /* 3GB by default */ |
147 | #define AMDGPU_WAIT_IDLE_TIMEOUT_IN_MS 3000 | 147 | #define AMDGPU_WAIT_IDLE_TIMEOUT_IN_MS 3000 |
148 | #define AMDGPU_MAX_USEC_TIMEOUT 100000 /* 100 ms */ | 148 | #define AMDGPU_MAX_USEC_TIMEOUT 100000 /* 100 ms */ |
149 | #define AMDGPU_FENCE_JIFFIES_TIMEOUT (HZ / 2) | ||
149 | /* AMDGPU_IB_POOL_SIZE must be a power of 2 */ | 150 | /* AMDGPU_IB_POOL_SIZE must be a power of 2 */ |
150 | #define AMDGPU_IB_POOL_SIZE 16 | 151 | #define AMDGPU_IB_POOL_SIZE 16 |
151 | #define AMDGPU_DEBUGFS_MAX_COMPONENTS 32 | 152 | #define AMDGPU_DEBUGFS_MAX_COMPONENTS 32 |
@@ -408,16 +409,25 @@ typedef enum _AMDGPU_DOORBELL64_ASSIGNMENT | |||
408 | AMDGPU_DOORBELL64_GFX_RING0 = 0x8b, | 409 | AMDGPU_DOORBELL64_GFX_RING0 = 0x8b, |
409 | 410 | ||
410 | /* | 411 | /* |
411 | * Other graphics doorbells can be allocated here: from 0x8c to 0xef | 412 | * Other graphics doorbells can be allocated here: from 0x8c to 0xdf |
412 | * Graphics voltage island aperture 1 | 413 | * Graphics voltage island aperture 1 |
413 | * default non-graphics QWORD index is 0xF0 - 0xFF inclusive | 414 | * default non-graphics QWORD index is 0xe0 - 0xFF inclusive |
414 | */ | 415 | */ |
415 | 416 | ||
416 | /* sDMA engines */ | 417 | /* sDMA engines reserved from 0xe0 -oxef */ |
417 | AMDGPU_DOORBELL64_sDMA_ENGINE0 = 0xF0, | 418 | AMDGPU_DOORBELL64_sDMA_ENGINE0 = 0xE0, |
418 | AMDGPU_DOORBELL64_sDMA_HI_PRI_ENGINE0 = 0xF1, | 419 | AMDGPU_DOORBELL64_sDMA_HI_PRI_ENGINE0 = 0xE1, |
419 | AMDGPU_DOORBELL64_sDMA_ENGINE1 = 0xF2, | 420 | AMDGPU_DOORBELL64_sDMA_ENGINE1 = 0xE8, |
420 | AMDGPU_DOORBELL64_sDMA_HI_PRI_ENGINE1 = 0xF3, | 421 | AMDGPU_DOORBELL64_sDMA_HI_PRI_ENGINE1 = 0xE9, |
422 | |||
423 | /* For vega10 sriov, the sdma doorbell must be fixed as follow | ||
424 | * to keep the same setting with host driver, or it will | ||
425 | * happen conflicts | ||
426 | */ | ||
427 | AMDGPU_VEGA10_DOORBELL64_sDMA_ENGINE0 = 0xF0, | ||
428 | AMDGPU_VEGA10_DOORBELL64_sDMA_HI_PRI_ENGINE0 = 0xF1, | ||
429 | AMDGPU_VEGA10_DOORBELL64_sDMA_ENGINE1 = 0xF2, | ||
430 | AMDGPU_VEGA10_DOORBELL64_sDMA_HI_PRI_ENGINE1 = 0xF3, | ||
421 | 431 | ||
422 | /* Interrupt handler */ | 432 | /* Interrupt handler */ |
423 | AMDGPU_DOORBELL64_IH = 0xF4, /* For legacy interrupt ring buffer */ | 433 | AMDGPU_DOORBELL64_IH = 0xF4, /* For legacy interrupt ring buffer */ |