projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d2c09d
)
drm/amdgpu: set ih chicken bit for IH 4.4.2
author
Le Ma
<le.ma@amd.com>
Wed, 28 Apr 2021 06:50:21 +0000
(14:50 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Tue, 7 Mar 2023 19:21:56 +0000
(14:21 -0500)
Share same register address with IH 4.4.0.
Signed-off-by: Le Ma <le.ma@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vega20_ih.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/vega20_ih.c
b/drivers/gpu/drm/amd/amdgpu/vega20_ih.c
index 1706081d054ddf04d2dec386f2d972086d109f41..44bfa233487a0c86ad6056519efb86c7512f2562 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/vega20_ih.c
+++ b/
drivers/gpu/drm/amd/amdgpu/vega20_ih.c
@@
-321,7
+321,8
@@
static int vega20_ih_irq_init(struct amdgpu_device *adev)
/* psp firmware won't program IH_CHICKEN for aldebaran
* driver needs to program it properly according to
* MC_SPACE type in IH_RB_CNTL */
- if (adev->ip_versions[OSSSYS_HWIP][0] == IP_VERSION(4, 4, 0)) {
+ if ((adev->ip_versions[OSSSYS_HWIP][0] == IP_VERSION(4, 4, 0)) ||
+ (adev->ip_versions[OSSSYS_HWIP][0] == IP_VERSION(4, 4, 2))) {
ih_chicken = RREG32_SOC15(OSSSYS, 0, mmIH_CHICKEN_ALDEBARAN);
if (adev->irq.ih.use_bus_addr) {
ih_chicken = REG_SET_FIELD(ih_chicken, IH_CHICKEN,