[PATCH 3/3] drm/xe/vf: Don't try to read legacy GuC MMIO notification if VF

Ghimiray, Himal Prasad himal.prasad.ghimiray at intel.com
Mon Apr 8 06:03:12 UTC 2024


On 05-04-2024 19:09, Michal Wajdeczko wrote:
> Legacy SOFT_SCRATCH registers are not accessible from the VF. Any
> G2H notification posted there will be handled by the PF driver.
>
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko at intel.com>
> ---
>   drivers/gpu/drm/xe/xe_guc.c | 3 +++
>   1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/xe/xe_guc.c b/drivers/gpu/drm/xe/xe_guc.c
> index 59fe73770711..240e7a4bbff1 100644
> --- a/drivers/gpu/drm/xe/xe_guc.c
> +++ b/drivers/gpu/drm/xe/xe_guc.c
> @@ -591,6 +591,9 @@ static void guc_handle_mmio_msg(struct xe_guc *guc)
>   	struct xe_gt *gt = guc_to_gt(guc);
>   	u32 msg;
>   
> +	if (IS_SRIOV_VF(guc_to_xe(guc)))
> +		return;
> +

LGTM.

Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray at intel.com>

>   	xe_force_wake_assert_held(gt_to_fw(gt), XE_FW_GT);
>   
>   	msg = xe_mmio_read32(gt, SOFT_SCRATCH(15));


More information about the Intel-xe mailing list