projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7843c0
)
drm/amdgpu: fix ctx init failure for asics without gfx ring
author
Le Ma
<le.ma@amd.com>
Thu, 19 Dec 2019 11:26:02 +0000
(19:26 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Mon, 23 Dec 2019 19:56:09 +0000
(14:56 -0500)
This workaround does not affect other asics because amdgpu only need expose
one gfx sched to user for now.
Signed-off-by: Le Ma <le.ma@amd.com>
Reviewed-by: Nirmoy Das <nirmoy.das@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
index
63f6365
..
64e2bab
100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
+++ b/
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
@@
-127,7
+127,8
@@
static int amdgpu_ctx_init(struct amdgpu_device *adev,
switch (i) {
case AMDGPU_HW_IP_GFX:
- scheds = adev->gfx.gfx_sched;
+ sched = &adev->gfx.gfx_ring[0].sched;
+ scheds = &sched;
num_scheds = 1;
break;
case AMDGPU_HW_IP_COMPUTE: