Here taken out calls to i915_inject_probe_failure and changed to use ALLOW_ERROR_INJECTION for the same functions.
Below functions are dropped from testing since I couldn't hit those at module bind time, testing these would just fail the tests. To include these in test would need to find way to cause resetting in i915 which would trigger these: intel_gvt_init intel_wopcm_init intel_uc_fw_upload intel_gt_init with expected -EIO (-EINVAL is tested) lrc_init_wa_ctx intel_huc_auth guc_check_version_range intel_uc_fw_fetch uc_fw_xfer __intel_uc_reset_hw guc_enable_communication uc_init_wopcm ..and all stages of __force_fw_fetch_failures Also here added intel_gvt_driver_remove to error recovery path. /Juha-Pekka Juha-Pekka Heikkila (2): drm/i915: switch to use kernel standard error injection drm/i915: Add intel_gvt_driver_remove() onto error cleanup path .../gpu/drm/i915/display/intel_connector.c | 14 +---- .../drm/i915/display/intel_display_driver.c | 5 +- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 4 +- drivers/gpu/drm/i915/gt/intel_gt.c | 9 +-- drivers/gpu/drm/i915/gt/intel_gt_print.h | 5 +- drivers/gpu/drm/i915/gt/intel_lrc.c | 4 -- drivers/gpu/drm/i915/gt/intel_wopcm.c | 3 - drivers/gpu/drm/i915/gt/intel_wopcm.h | 1 + drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c | 8 +-- drivers/gpu/drm/i915/gt/uc/intel_huc.c | 4 -- drivers/gpu/drm/i915/gt/uc/intel_uc.c | 17 +----- drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c | 60 +------------------ drivers/gpu/drm/i915/i915_driver.c | 13 ++-- drivers/gpu/drm/i915/i915_params.c | 5 -- drivers/gpu/drm/i915/i915_params.h | 1 - drivers/gpu/drm/i915/i915_pci.c | 6 +- drivers/gpu/drm/i915/i915_utils.c | 30 +--------- drivers/gpu/drm/i915/i915_utils.h | 22 +------ drivers/gpu/drm/i915/intel_gvt.c | 3 - drivers/gpu/drm/i915/intel_uncore.c | 4 +- 20 files changed, 19 insertions(+), 199 deletions(-) -- 2.43.0
