File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
drivers/gpu/drm/amd/amdgpu Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1919,8 +1919,6 @@ static int gfx_v9_0_gpu_early_init(struct amdgpu_device *adev)
1919
1919
u32 gb_addr_config ;
1920
1920
int err ;
1921
1921
1922
- adev -> gfx .funcs = & gfx_v9_0_gfx_funcs ;
1923
-
1924
1922
switch (adev -> ip_versions [GC_HWIP ][0 ]) {
1925
1923
case IP_VERSION (9 , 0 , 1 ):
1926
1924
adev -> gfx .config .max_hw_contexts = 8 ;
@@ -4539,6 +4537,8 @@ static int gfx_v9_0_early_init(void *handle)
4539
4537
{
4540
4538
struct amdgpu_device * adev = (struct amdgpu_device * )handle ;
4541
4539
4540
+ adev -> gfx .funcs = & gfx_v9_0_gfx_funcs ;
4541
+
4542
4542
if (adev -> ip_versions [GC_HWIP ][0 ] == IP_VERSION (9 , 4 , 1 ) ||
4543
4543
adev -> ip_versions [GC_HWIP ][0 ] == IP_VERSION (9 , 4 , 2 ))
4544
4544
adev -> gfx .num_gfx_rings = 0 ;
You can’t perform that action at this time.
0 commit comments