✓ CI.checkpatch: success for VF: Fix early read of GDMID
Patchwork
patchwork at emeril.freedesktop.org
Thu Nov 14 19:41:39 UTC 2024
== Series Details ==
Series: VF: Fix early read of GDMID
URL : https://patchwork.freedesktop.org/series/141367/
State : success
== Summary ==
+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt
Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master
30ab6715fc09baee6cc14cb3c89ad8858688d474
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit a983dfee3cb107b74f2cd6cc71bb07c32953e1d3
Author: Michal Wajdeczko <michal.wajdeczko at intel.com>
Date: Thu Nov 14 18:59:55 2024 +0100
drm/xe/vf: Perform early GT MMIO initialization to read GMDID
VFs need to communicate with the GuC to obtain the GMDID value
and existing GuC functions used for that assume that the GT has
it's MMIO members already setup. However, due to recent refactoring
the gt->mmio is initialized later, and any attempt by the VF to use
xe_mmio_read|write() from GuC functions will lead to NPD crash due
to unset MMIO register address:
[] xe 0000:00:02.1: [drm] Running in SR-IOV VF mode
[] xe 0000:00:02.1: [drm] GT0: sending H2G MMIO 0x5507
[] BUG: unable to handle page fault for address: 0000000000190240
Since we are already tweaking the id and type of the primary GT to
mimic it's a Media GT before initializing the GuC communication,
we can also call xe_gt_mmio_init() to perform early setup of the
gt->mmio which will make those GuC functions work again.
Fixes: 58548b91101f ("drm/xe: Defer gt->mmio initialization until after multi-tile setup")
Fixes: 0afda5d7bba4 ("drm/xe/pci: Convert register access to use xe_mmio")
Signed-off-by: Michal Wajdeczko <michal.wajdeczko at intel.com>
Cc: Matt Roper <matthew.d.roper at intel.com>
Cc: Piotr Piórkowski <piotr.piorkowski at intel.com>
+ /mt/dim checkpatch 4018ba30ba2cc7bcbaed85dd5e77a506dd911b6d drm-intel
ed4e43798d8a drm/xe: Always setup GT MMIO adjustment data
a983dfee3cb1 drm/xe/vf: Perform early GT MMIO initialization to read GMDID
More information about the Intel-xe
mailing list