diff options
| author | Lang Yu <Lang.Yu@amd.com> | 2023-01-11 09:52:11 +0800 | 
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2023-01-18 22:48:41 -0500 | 
| commit | 99761aaa1ce8b53db1767b8c15a020ed2475b39b (patch) | |
| tree | 997a269fac0c8d3db14a1babb8b6343e079d28a4 /drivers | |
| parent | 0feeb4fd4c93efde2ac265d192392639fb4e253a (diff) | |
drm/amdgpu: correct MEC number for gfx11 APUs
There is only one MEC on these APUs.
Signed-off-by: Lang Yu <Lang.Yu@amd.com>
Reviewed-by: Aaron Liu <aaron.liu@amd.com>
Reviewed-by: Yifan Zhang <yifan1.zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 11 | 
1 files changed, 9 insertions, 2 deletions
| diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c index f98c67d07a9b..c621b2ad7ba3 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c @@ -1259,10 +1259,8 @@ static int gfx_v11_0_sw_init(void *handle)  	switch (adev->ip_versions[GC_HWIP][0]) {  	case IP_VERSION(11, 0, 0): -	case IP_VERSION(11, 0, 1):  	case IP_VERSION(11, 0, 2):  	case IP_VERSION(11, 0, 3): -	case IP_VERSION(11, 0, 4):  		adev->gfx.me.num_me = 1;  		adev->gfx.me.num_pipe_per_me = 1;  		adev->gfx.me.num_queue_per_pipe = 1; @@ -1270,6 +1268,15 @@ static int gfx_v11_0_sw_init(void *handle)  		adev->gfx.mec.num_pipe_per_mec = 4;  		adev->gfx.mec.num_queue_per_pipe = 4;  		break; +	case IP_VERSION(11, 0, 1): +	case IP_VERSION(11, 0, 4): +		adev->gfx.me.num_me = 1; +		adev->gfx.me.num_pipe_per_me = 1; +		adev->gfx.me.num_queue_per_pipe = 1; +		adev->gfx.mec.num_mec = 1; +		adev->gfx.mec.num_pipe_per_mec = 4; +		adev->gfx.mec.num_queue_per_pipe = 4; +		break;  	default:  		adev->gfx.me.num_me = 1;  		adev->gfx.me.num_pipe_per_me = 1; | 
