]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe/pf: Drop GuC notifications for non-existing VF
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 28 Aug 2024 21:08:08 +0000 (23:08 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Fri, 30 Aug 2024 08:51:08 +0000 (10:51 +0200)
commitd69300abc2dec930fd280a013984150ae7c6a386
treeead293950df52d93cd03767aab39a958a930b322
parent65fe9617a1256f0a36696d48f7c63a8d3ec290bc
drm/xe/pf: Drop GuC notifications for non-existing VF

It is unlikely that GuC will ever send a G2H notification with an
invalid VFID and it is currently harmless if that actually happen.
But in upcoming patches we will start using that VFID as an index
and we must be sure it is a valid to avoid a crash due to a buggy
firmware or a currupted G2H message.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240828210809.1528-4-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_gt_sriov_pf_control.c