diff options
author | Dave Airlie <airlied@redhat.com> | 2018-09-27 19:48:35 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2018-09-27 19:48:40 -0400 |
commit | 87c2ee740c07f1edae9eec8bc45cb9b32a68f323 (patch) | |
tree | 1515f53eacb86689f2f96279e51cf0053ae8a308 /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
parent | 2de0b0a158bf423208c3898522c8fa1c1078df48 (diff) | |
parent | 6a96243056217662843694a4cbc83158d0e84403 (diff) |
Merge branch 'drm-next-4.20' of git://people.freedesktop.org/~agd5f/linux into drm-next
More new features and fixes for 4.20:
- Add dynamic powergating support for VCN on picasso
- Scheduler cleanup
- Vega20 support for KFD
- DC cleanups and bug fixes
Signed-off-by: Dave Airlie <airlied@redhat.com>
From: Alex Deucher <alexdeucher@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180927184348.2696-1-alexander.deucher@amd.com
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 */ |