✓ CI.checkpatch: success for VF: Fix early read of GDMID (rev2)

Patchwork patchwork at emeril.freedesktop.org
Wed Jan 15 00:48:42 UTC 2025


== Series Details ==

Series: VF: Fix early read of GDMID (rev2)
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 36fcfcf5a0c548bcb02029f07fa8e1cb76f387ae
Author: Michal Wajdeczko <michal.wajdeczko at intel.com>
Date:   Tue Jan 14 22:13:47 2025 +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.
    
    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>
    Reviewed-by: Piotr Piórkowski <piotr.piorkowski at intel.com>
+ /mt/dim checkpatch a45139b1e7578c7a4f1cbe8fae0943416a174136 drm-intel
87a215725dee drm/xe: Always setup GT MMIO adjustment data
36fcfcf5a0c5 drm/xe/vf: Perform early GT MMIO initialization to read GMDID




More information about the Intel-xe mailing list