Skip to content

Commit 105195a

Browse files
committed
drm/amdgpu/gfx10: set gfx.funcs in early init
So the callbacks are set early in case we need them. Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 33034c5 commit 105195a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4453,8 +4453,6 @@ static void gfx_v10_0_gpu_early_init(struct amdgpu_device *adev)
44534453
{
44544454
u32 gb_addr_config;
44554455

4456-
adev->gfx.funcs = &gfx_v10_0_gfx_funcs;
4457-
44584456
switch (adev->ip_versions[GC_HWIP][0]) {
44594457
case IP_VERSION(10, 1, 10):
44604458
case IP_VERSION(10, 1, 1):
@@ -7593,6 +7591,8 @@ static int gfx_v10_0_early_init(void *handle)
75937591
{
75947592
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
75957593

7594+
adev->gfx.funcs = &gfx_v10_0_gfx_funcs;
7595+
75967596
switch (adev->ip_versions[GC_HWIP][0]) {
75977597
case IP_VERSION(10, 1, 10):
75987598
case IP_VERSION(10, 1, 1):

0 commit comments

Comments
 (0)