]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/gt: Mark the GT as dead when mmio is unreliable
authorChris Wilson <chris.p.wilson@intel.com>
Wed, 7 Aug 2024 09:10:14 +0000 (10:10 +0100)
committerAndi Shyti <andi.shyti@linux.intel.com>
Fri, 9 Aug 2024 11:51:17 +0000 (12:51 +0100)
commita857add73e61277fb8f688234c9d383130313ea7
treed0e06210f85202a06337da434cc2c5b5eac03a4c
parentb7b930d104c38a545d862896759863d649be8252
drm/i915/gt: Mark the GT as dead when mmio is unreliable

After we detect that mmio is returning all 0xff, we believe that the GPU
has dropped off the pci bus and is dead. Mark the device as wedged such
that we can propagate the failure back to userspace and wait for
recovery.

Signed-off-by: Chris Wilson <chris.p.wilson@intel.com>
Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240807091014.469992-1-andi.shyti@linux.intel.com
drivers/gpu/drm/i915/gt/intel_gt.h
drivers/gpu/drm/i915/gt/intel_gt_types.h
drivers/gpu/drm/i915/gt/intel_reset.c
drivers/gpu/drm/i915/intel_uncore.c