[PATCH 2/3] drm/xe/vf: Don't try to program MOCS if VF
Ghimiray, Himal Prasad
himal.prasad.ghimiray at intel.com
Mon Apr 8 06:02:32 UTC 2024
On 05-04-2024 19:09, Michal Wajdeczko wrote:
> VFs drivers don't have access to MOCS registers. It is a PF driver
> responsibility to program MOCS according to the HW team guidelines.
>
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko at intel.com>
> ---
> drivers/gpu/drm/xe/xe_mocs.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/xe/xe_mocs.c b/drivers/gpu/drm/xe/xe_mocs.c
> index bff659d20062..d16fa64da881 100644
> --- a/drivers/gpu/drm/xe/xe_mocs.c
> +++ b/drivers/gpu/drm/xe/xe_mocs.c
> @@ -568,6 +568,9 @@ void xe_mocs_init(struct xe_gt *gt)
> flags = get_mocs_settings(gt_to_xe(gt), &table);
> mocs_dbg(gt, "flag:0x%x\n", flags);
>
> + if (IS_SRIOV_VF(gt_to_xe(gt)))
> + return;
> +
LGTM.
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray at intel.com>
> if (flags & HAS_GLOBAL_MOCS)
> __init_mocs_table(gt, &table);
> if (flags & HAS_LNCF_MOCS)
More information about the Intel-xe
mailing list