Conclude load -> probe naming convention switch
Subsystems (2)
cover Conclude load -> probe naming convention switch
Test-with: <[email protected]>
The purpose is:
* to fix incompatible names of new functions introduced meanwhile,
* to complete postponed rename of module parameter.
Will be tested with just submitted IGT counterpart using a trybot submission because I forgot to add a cover letter required for successful joint testing when I was submitting to igt-dev list, sorry.
Thanks,
Janusz
Janusz Krzysztofik (2):
drm/i915: Fix i915_inject_load_error() name to read *_probe_* drm/i915: Rename "inject_load_failure" module parameter
.../gpu/drm/i915/gt/uc/intel_guc_submission.c | 2 +- drivers/gpu/drm/i915/gt/uc/intel_huc.c | 4 ++-- drivers/gpu/drm/i915/gt/uc/intel_uc.c | 6 +++--- drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c | 20 ++++++++++--------- drivers/gpu/drm/i915/i915_gem.c | 4 ++-- drivers/gpu/drm/i915/i915_params.c | 2 +- drivers/gpu/drm/i915/i915_params.h | 2 +- drivers/gpu/drm/i915/i915_utils.c | 14 ++++++------- drivers/gpu/drm/i915/i915_utils.h | 12 +++++------ 9 files changed, 34 insertions(+), 32 deletions(-)
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 1/2 drm/i915: Fix i915_inject_load_error() name to read *_probe_*
Commit 50d84418f586 ("drm/i915: Add i915 to i915_inject_probe_failure") introduced new functions unfortunately named incompatibly with rules established by commit f2db53f14d3d ("drm/i915: Replace "_load" with "_probe" consequently"). Fix it for consistency.
--- .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 2 +- drivers/gpu/drm/i915/gt/uc/intel_huc.c | 4 ++-- drivers/gpu/drm/i915/gt/uc/intel_uc.c | 6 +++--- drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c | 20 ++++++++++--------- drivers/gpu/drm/i915/i915_gem.c | 4 ++-- drivers/gpu/drm/i915/i915_utils.c | 4 ++-- drivers/gpu/drm/i915/i915_utils.h | 12 +++++------ 7 files changed, 27 insertions(+), 25 deletions(-)
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +1 -1
@@ -1119,7 +1119,7 @@ int intel_guc_submission_enable(struct intel_guc *guc)enum intel_engine_id id;int err; - err =i915_inject_load_error (gt->i915, -ENXIO ); + err =i915_inject_probe_error (gt->i915, -ENXIO );if (err)return err;
drivers/gpu/drm/i915/gt/uc/intel_huc.c +2 -2
@@ -35,7 +35,7 @@ static int intel_huc_rsa_data_create(struct intel_huc *huc)void *vaddr;int err; - err =i915_inject_load_error (gt->i915, -ENXIO ); + err =i915_inject_probe_error (gt->i915, -ENXIO );if (err)return err;
@@ -134,7 +134,7 @@ int intel_huc_auth(struct intel_huc *huc)if (!intel_uc_fw_is_loaded (&huc->fw))return -ENOEXEC ; - ret =i915_inject_load_error (gt->i915, -ENXIO ); + ret =i915_inject_probe_error (gt->i915, -ENXIO );if (ret) goto fail;
drivers/gpu/drm/i915/gt/uc/intel_uc.c +3 -3
@@ -20,7 +20,7 @@ static int __intel_uc_reset_hw(struct intel_uc *uc)int ret;u32 guc_status; - ret =i915_inject_load_error (gt->i915, -ENXIO ); + ret =i915_inject_probe_error (gt->i915, -ENXIO );if (ret)return ret;
@@ -197,7 +197,7 @@ static int guc_enable_communication(struct intel_guc *guc)GEM_BUG_ON (guc_communication_enabled (guc)); - ret =i915_inject_load_error (i915, -ENXIO ); + ret =i915_inject_probe_error (i915, -ENXIO );if (ret)return ret;
@@ -368,7 +368,7 @@ static int uc_init_wopcm(struct intel_uc *uc)GEM_BUG_ON (!(size &GUC_WOPCM_SIZE_MASK ));GEM_BUG_ON (size & ~GUC_WOPCM_SIZE_MASK ); - err =i915_inject_load_error (gt->i915, -ENXIO ); + err =i915_inject_probe_error (gt->i915, -ENXIO );if (err)return err;
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c +11 -9
@@ -218,29 +218,31 @@ static void __force_fw_fetch_failures(struct intel_uc_fw *uc_fw, {bool user = e == -EINVAL ; -if (i915_inject_load_error (i915, e)) { +if (i915_inject_probe_error (i915, e)) {/* non-existing blob */ uc_fw->path ="<invalid>" ; uc_fw->user_overridden = user; - }else if (i915_inject_load_error (i915, e)) { + }else if (i915_inject_probe_error (i915, e)) {/* require next major version */ uc_fw->major_ver_wanted +=1 ; uc_fw->minor_ver_wanted =0 ; uc_fw->user_overridden = user; - }else if (i915_inject_load_error (i915, e)) { + }else if (i915_inject_probe_error (i915, e)) {/* require next minor version */ uc_fw->minor_ver_wanted +=1 ; uc_fw->user_overridden = user; - }else if (uc_fw->major_ver_wanted &&i915_inject_load_error (i915, e)) { + }else if (uc_fw->major_ver_wanted && +i915_inject_probe_error (i915, e)) {/* require prev major version */ uc_fw->major_ver_wanted -=1 ; uc_fw->minor_ver_wanted =0 ; uc_fw->user_overridden = user; - }else if (uc_fw->minor_ver_wanted &&i915_inject_load_error (i915, e)) { + }else if (uc_fw->minor_ver_wanted && +i915_inject_probe_error (i915, e)) {/* require prev minor version - hey, this should work! */ uc_fw->minor_ver_wanted -=1 ; uc_fw->user_overridden = user; - }else if (user &&i915_inject_load_error (i915, e)) { + }else if (user &&i915_inject_probe_error (i915, e)) {/* officially unsupported platform */ uc_fw->major_ver_wanted =0 ; uc_fw->minor_ver_wanted =0 ;
@@ -269,7 +271,7 @@ int intel_uc_fw_fetch(struct intel_uc_fw *uc_fw, struct drm_i915_private *i915)GEM_BUG_ON (!i915->wopcm.size);GEM_BUG_ON (!intel_uc_fw_is_enabled (uc_fw)); - err =i915_inject_load_error (i915, -ENXIO ); + err =i915_inject_probe_error (i915, -ENXIO );if (err)return err;
@@ -445,7 +447,7 @@ static int uc_fw_xfer(struct intel_uc_fw *uc_fw, struct intel_gt *gt,u64 offset;int ret; - ret =i915_inject_load_error (gt->i915, -ETIMEDOUT ); + ret =i915_inject_probe_error (gt->i915, -ETIMEDOUT );if (ret)return ret;
@@ -506,7 +508,7 @@ int intel_uc_fw_upload(struct intel_uc_fw *uc_fw, struct intel_gt *gt,/* make sure the status was cleared the last time we reset the uc */ GEM_BUG_ON (intel_uc_fw_is_loaded (uc_fw)); - err =i915_inject_load_error (gt->i915, -ENOEXEC ); + err =i915_inject_probe_error (gt->i915, -ENOEXEC );if (err)return err;
drivers/gpu/drm/i915/i915_gem.c +2 -2
@@ -1484,11 +1484,11 @@ int i915_gem_init(struct drm_i915_private *dev_priv)if (ret) goto err_gt; - ret =i915_inject_load_error (dev_priv, -ENODEV ); + ret =i915_inject_probe_error (dev_priv, -ENODEV );if (ret) goto err_gt; - ret =i915_inject_load_error (dev_priv, -EIO ); + ret =i915_inject_probe_error (dev_priv, -EIO );if (ret) goto err_gt;
drivers/gpu/drm/i915/i915_utils.c +2 -2
@@ -54,8 +54,8 @@ __i915_printk(struct drm_i915_private *dev_priv, const char *level,#if IS_ENABLED (CONFIG_DRM_I915_DEBUG )static unsigned int i915_probe_fail_count; -int __i915_inject_load_error (struct drm_i915_private *i915,int err, -const char *func,int line) +int __i915_inject_probe_error (struct drm_i915_private *i915,int err, +const char *func,int line) {if (i915_probe_fail_count >= i915_modparams.inject_load_failure)return 0 ;
drivers/gpu/drm/i915/i915_utils.h +6 -6
@@ -60,20 +60,20 @@ __i915_printk(struct drm_i915_private *dev_priv, const char *level,#if IS_ENABLED (CONFIG_DRM_I915_DEBUG ) -int __i915_inject_load_error (struct drm_i915_private *i915,int err, -const char *func,int line); -#define i915_inject_load_error (_i915, _err) \ - __i915_inject_load_error((_i915), (_err), __func__, __LINE__) +int __i915_inject_probe_error (struct drm_i915_private *i915,int err, +const char *func,int line); +#define i915_inject_probe_error (_i915, _err) \ + __i915_inject_probe_error((_i915), (_err), __func__, __LINE__)bool i915_error_injected (void );#else -#define i915_inject_load_error (_i915, _err) 0 +#define i915_inject_probe_error (_i915, _err) 0#define i915_error_injected () false#endif -#define i915_inject_probe_failure (i915) i915_inject_load_error((i915), -ENODEV) +#define i915_inject_probe_failure (i915) i915_inject_probe_error((i915), -ENODEV)#define i915_probe_error (i915, fmt, ...) \ __i915_printk(i915, i915_error_injected() ? KERN_DEBUG : KERN_ERR, \
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 1/2] drm/i915: Fix i915_inject_load_error() name to read *_probe_*
Quoting Janusz Krzysztofik (2019-10-01 14:45:33)
Quoted 5 lines
Commit
50d84418f586("drm/i915: Add i915 toi915_inject_probe_failure") introduced new functions unfortunately named incompatibly with rules established by commitf2db53f14d3d("drm/i915: Replace "_load" with "_probe" consequently"). Fix it for consistency.
Quoted 7 lines
Suggested-by Michał Wajdeczko <[email protected]>Signed-off-by Janusz Krzysztofik <[email protected]>Cc Michał Wajdeczko <[email protected]>Cc Michał Winiarski <[email protected]>Cc Piotr Piórkowski <[email protected]>Cc Tomasz Lis <[email protected]>Cc Joonas Lahtinen <[email protected]>
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/2 drm/i915: Rename "inject_load_failure" module parameter
In reply to Janusz KrzysztofikCommit f2db53f14d3d ("drm/i915: Replace "_load" with "_probe" consequently") deliberately left the name of the module parameter unchanged as that would require a corresponding change on IGT size. Now as the IGT side change has been submitted, complete the switch to the "probe" nomenclature.
May affect custom user applications utilizing the old name.
--- drivers/gpu/drm/i915/i915_params.c | 2 +- drivers/gpu/drm/i915/i915_params.h | 2 +- drivers/gpu/drm/i915/i915_utils.c | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-)
drivers/gpu/drm/i915/i915_params.c +1 -1
@@ -165,7 +165,7 @@ i915_param_named_unsafe(enable_dp_mst, bool, 0600, "Enable multi-stream transport (MST) for new DisplayPort sinks. (default: true)");#if IS_ENABLED (CONFIG_DRM_I915_DEBUG ) -i915_param_named_unsafe (inject_load_failure, uint,0400 , +i915_param_named_unsafe (inject_probe_failure, uint,0400 ,"Force an error after a number of failure check points (0:disabled (default), N:force failure at the Nth failure check point)" );#endif
drivers/gpu/drm/i915/i915_params.h +1 -1
@@ -62,7 +62,7 @@ struct drm_printer; param(int, mmio_debug, -IS_ENABLED(CONFIG_DRM_I915_DEBUG_MMIO)) \ param(int, edp_vswing, 0) \ param(int, reset, 2) \ - param(unsigned int, inject_load_failure, 0) \ + param(unsigned int, inject_probe_failure, 0) \ param(int, fastboot, -1) \ param(int, enable_dpcd_backlight, 0) \ param(char *, force_probe, CONFIG_DRM_I915_FORCE_PROBE) \
drivers/gpu/drm/i915/i915_utils.c +5 -5
@@ -57,22 +57,22 @@ static unsigned int i915_probe_fail_count;int __i915_inject_probe_error (struct drm_i915_private *i915,int err,const char *func,int line) { -if (i915_probe_fail_count >= i915_modparams.inject_load_failure) +if (i915_probe_fail_count >= i915_modparams.inject_probe_failure)return 0 ; -if (++i915_probe_fail_count < i915_modparams.inject_load_failure) +if (++i915_probe_fail_count < i915_modparams.inject_probe_failure)return 0 ;__i915_printk (i915,KERN_INFO ,"Injecting failure %d at checkpoint %u [%s:%d]\n" , - err, i915_modparams.inject_load_failure, func, line); - i915_modparams.inject_load_failure =0 ; + err, i915_modparams.inject_probe_failure, func, line); + i915_modparams.inject_probe_failure =0 ;return err; }bool i915_error_injected (void ) { -return i915_probe_fail_count && !i915_modparams.inject_load_failure; +return i915_probe_fail_count && !i915_modparams.inject_probe_failure; }#endif
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 2/2] drm/i915: Rename "inject_load_failure" module parameter
Quoting Janusz Krzysztofik (2019-10-01 14:45:34)
Quoted 7 lines
Commit
f2db53f14d3d("drm/i915: Replace "_load" with "_probe" consequently") deliberately left the name of the module parameter unchanged as that would require a corresponding change on IGT size. Now as the IGT side change has been submitted, complete the switch to the "probe" nomenclature.May affect custom user applications utilizing the old name.
It's an unsafe modparam that only is compiled in for debugging, with no long term effect after modprobe. There are no user applications for this.
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 2/2] drm/i915: Rename "inject_load_failure" module parameter
Hi Chris,
Quoted 7 lines · CEST Chris Wilson
Quoting Janusz Krzysztofik (2019-10-01 14:45:34)
Quoted 6 lines
Commit
f2db53f14d3d("drm/i915: Replace "_load" with "_probe" consequently") deliberately left the name of the module parameter unchanged as that would require a corresponding change on IGT size. Now as the IGT side change has been submitted, complete the switch to the "probe" nomenclature.
Quoted 5 lines
Quoted 1 line
May affect custom user applications utilizing the old name.
It's an unsafe modparam that only is compiled in for debugging, with no long term effect after modprobe. There are no user applications for this.
OK, I'll drop that sentence.
Thanks,
Janusz
Quoted 2 lines
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 2/2] drm/i915: Rename "inject_load_failure" module parameter
In reply to Janusz KrzysztofikQuoting Janusz Krzysztofik (2019-10-01 14:45:34)
Quoted 8 lines
Commit
f2db53f14d3d("drm/i915: Replace "_load" with "_probe" consequently") deliberately left the name of the module parameter unchanged as that would require a corresponding change on IGT size. Now as the IGT side change has been submitted, complete the switch to the "probe" nomenclature.May affect custom user applications utilizing the old name.
Quoted 7 lines
Suggested-by Joonas Lahtinen <[email protected]>Signed-off-by Janusz Krzysztofik <[email protected]>Cc Michał Wajdeczko <[email protected]>Cc Michał Winiarski <[email protected]>Cc Piotr Piórkowski <[email protected]>Cc Tomasz Lis <[email protected]>Cc Joonas Lahtinen <[email protected]>
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.BAT: failure for Conclude load -> probe naming convention switch
In reply to Janusz Krzysztofik== Series Details ==
== Series Details ==
Series: Conclude load -> probe naming convention switch
URL : https://patchwork.freedesktop.org/series/67448/
State : failure
== Summary ==
Series 67448 revision 1 Test-with: <[email protected]> not found
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx