[PATCH 01/19] drm/amdgpu: add CHIP_IP_DISCOVERY support for virtualization

Christian König ckoenig.leichtzumerken at gmail.com
Wed Aug 31 08:05:25 UTC 2022


Am 30.08.22 um 20:39 schrieb Alex Deucher:
> From: Horace Chen <horace.chen at amd.com>
>
> For further chips we will use CHIP_IP_DISCOVERY, so add this
> support for virtualization
>
> Signed-off-by: Horace Chen <horace.chen at amd.com>
> Reviewed-by: Hawking Zhang <Hawking.Zhang at amd.com>
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>

Acked-by: Christian König <christian.koenig at amd.com> for the entire series.

> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
> index 9be57389301b..0707e4338e65 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
> @@ -707,6 +707,7 @@ void amdgpu_detect_virtualization(struct amdgpu_device *adev)
>   	case CHIP_SIENNA_CICHLID:
>   	case CHIP_ARCTURUS:
>   	case CHIP_ALDEBARAN:
> +	case CHIP_IP_DISCOVERY:
>   		reg = RREG32(mmRCC_IOV_FUNC_IDENTIFIER);
>   		break;
>   	default: /* other chip doesn't support SRIOV */
> @@ -750,6 +751,7 @@ void amdgpu_detect_virtualization(struct amdgpu_device *adev)
>   		case CHIP_NAVI10:
>   		case CHIP_NAVI12:
>   		case CHIP_SIENNA_CICHLID:
> +		case CHIP_IP_DISCOVERY:
>   			nv_set_virt_ops(adev);
>   			/* try send GPU_INIT_DATA request to host */
>   			amdgpu_virt_request_init_data(adev);



More information about the amd-gfx mailing list