drm/i915: Rename functions to match their entry points
Subsystems (4)
v3 cover drm/i915: Rename functions to match their entry points
Need for this was identified while working on split of driver unbind path into _remove() and _release() parts. Consistency in function naming has been recognized as helpful when trying to work out which phase the code is in.
v2: * early_probe pairs better with late_release (Chris),
* exclude patch 6/6 "drm/i915: Rename "inject_load_failure" module parameter" for now, it requires updates on user (IGT) side
* rebase on top of "drm/i915: Drop extern qualifiers from header function prototypes"
v3: * fix typo in commit message of 3/5 (now 4/6) (Joonas)
* bundle with "drm/i915: Drop extern qualifiers from header function prototypes", which the series depends on, as 1/6 (Chris)
Resubmitting with Reviewed-by: clauses added.
Janusz Krzysztofik (6):
drm/i915: Drop extern qualifiers from header function prototypes drm/i915: Rename "_load"/"_unload" to match PCI entry points drm/i915: Replace "_load" with "_probe" consequently drm/i915: Propagate "_release" function name suffix down drm/i915: Propagate "_remove" function name suffix down drm/i915: Propagate "_probe" function name suffix down
drivers/gpu/drm/i915/display/intel_bios.c | 4 +- drivers/gpu/drm/i915/display/intel_bios.h | 2 +- .../gpu/drm/i915/display/intel_connector.c | 2 +- drivers/gpu/drm/i915/display/intel_display.c | 2 +- .../drm/i915/display/intel_display_power.c | 6 +- .../drm/i915/display/intel_display_power.h | 2 +- drivers/gpu/drm/i915/gem/i915_gem_object.h | 2 +- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 2 +- drivers/gpu/drm/i915/gvt/gtt.h | 13 ++- drivers/gpu/drm/i915/i915_drv.c | 107 +++++++++--------- drivers/gpu/drm/i915/i915_drv.h | 61 +++++----- drivers/gpu/drm/i915/i915_gem.c | 12 +- drivers/gpu/drm/i915/i915_gem_gtt.c | 4 +- drivers/gpu/drm/i915/i915_gem_gtt.h | 2 +- drivers/gpu/drm/i915/i915_irq.h | 4 +- drivers/gpu/drm/i915/i915_pci.c | 6 +- drivers/gpu/drm/i915/intel_gvt.c | 7 +- drivers/gpu/drm/i915/intel_gvt.h | 5 +- drivers/gpu/drm/i915/intel_runtime_pm.c | 2 +- drivers/gpu/drm/i915/intel_runtime_pm.h | 2 +- drivers/gpu/drm/i915/intel_uncore.c | 2 +- drivers/gpu/drm/i915/intel_wopcm.c | 2 +- drivers/gpu/drm/i915/oa/i915_oa_bdw.h | 2 +- drivers/gpu/drm/i915/oa/i915_oa_bxt.h | 2 +- drivers/gpu/drm/i915/oa/i915_oa_cflgt2.h | 2 +- drivers/gpu/drm/i915/oa/i915_oa_cflgt3.h | 2 +- drivers/gpu/drm/i915/oa/i915_oa_chv.h | 2 +- drivers/gpu/drm/i915/oa/i915_oa_cnl.h | 2 +- drivers/gpu/drm/i915/oa/i915_oa_glk.h | 2 +- drivers/gpu/drm/i915/oa/i915_oa_hsw.h | 2 +- drivers/gpu/drm/i915/oa/i915_oa_icl.h | 2 +- drivers/gpu/drm/i915/oa/i915_oa_kblgt2.h | 2 +- drivers/gpu/drm/i915/oa/i915_oa_kblgt3.h | 2 +- drivers/gpu/drm/i915/oa/i915_oa_sklgt2.h | 2 +- drivers/gpu/drm/i915/oa/i915_oa_sklgt3.h | 2 +- drivers/gpu/drm/i915/oa/i915_oa_sklgt4.h | 2 +- include/drm/i915_drm.h | 10 +- 37 files changed, 145 insertions(+), 144 deletions(-)
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 1/6 drm/i915: Drop extern qualifiers from header function prototypes
Follow dim checkpatch recommendation so it doesn't complain on that now and again on header file modifications.
v2: drop testing leftover (Chris)
--- drivers/gpu/drm/i915/gem/i915_gem_object.h | 2 +- drivers/gpu/drm/i915/gvt/gtt.h | 13 +++--- drivers/gpu/drm/i915/i915_drv.h | 47 ++++++++++------------ drivers/gpu/drm/i915/i915_irq.h | 4 +- drivers/gpu/drm/i915/oa/i915_oa_bdw.h | 2 +- drivers/gpu/drm/i915/oa/i915_oa_bxt.h | 2 +- drivers/gpu/drm/i915/oa/i915_oa_cflgt2.h | 2 +- drivers/gpu/drm/i915/oa/i915_oa_cflgt3.h | 2 +- drivers/gpu/drm/i915/oa/i915_oa_chv.h | 2 +- drivers/gpu/drm/i915/oa/i915_oa_cnl.h | 2 +- drivers/gpu/drm/i915/oa/i915_oa_glk.h | 2 +- drivers/gpu/drm/i915/oa/i915_oa_hsw.h | 2 +- drivers/gpu/drm/i915/oa/i915_oa_icl.h | 2 +- drivers/gpu/drm/i915/oa/i915_oa_kblgt2.h | 2 +- drivers/gpu/drm/i915/oa/i915_oa_kblgt3.h | 2 +- drivers/gpu/drm/i915/oa/i915_oa_sklgt2.h | 2 +- drivers/gpu/drm/i915/oa/i915_oa_sklgt3.h | 2 +- drivers/gpu/drm/i915/oa/i915_oa_sklgt4.h | 2 +- include/drm/i915_drm.h | 10 ++--- 19 files changed, 51 insertions(+), 53 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_object.h +1 -1
@@ -81,7 +81,7 @@ i915_gem_object_lookup(struct drm_file *file, u32 handle) }__deprecated -extern struct drm_gem_object * +struct drm_gem_object *drm_gem_object_lookup (struct drm_file *file,u32 handle); __attribute__((nonnull))
drivers/gpu/drm/i915/gvt/gtt.h +7 -6
@@ -205,17 +205,18 @@ struct intel_vgpu_gtt {struct intel_vgpu_scratch_pt scratch_pt[GTT_TYPE_MAX ]; }; -extern int intel_vgpu_init_gtt (struct intel_vgpu *vgpu); -extern void intel_vgpu_clean_gtt (struct intel_vgpu *vgpu); +int intel_vgpu_init_gtt (struct intel_vgpu *vgpu); +void intel_vgpu_clean_gtt (struct intel_vgpu *vgpu);void intel_vgpu_reset_ggtt (struct intel_vgpu *vgpu,bool invalidate_old);void intel_vgpu_invalidate_ppgtt (struct intel_vgpu *vgpu); -extern int intel_gvt_init_gtt (struct intel_gvt *gvt); +int intel_gvt_init_gtt (struct intel_gvt *gvt);void intel_vgpu_reset_gtt (struct intel_vgpu *vgpu); -extern void intel_gvt_clean_gtt (struct intel_gvt *gvt); +void intel_gvt_clean_gtt (struct intel_gvt *gvt); -extern struct intel_vgpu_mm *intel_gvt_find_ppgtt_mm (struct intel_vgpu *vgpu, -int page_table_level,void *root_entry); +struct intel_vgpu_mm *intel_gvt_find_ppgtt_mm (struct intel_vgpu *vgpu, +int page_table_level, +void *root_entry);struct intel_vgpu_oos_page {struct intel_vgpu_ppgtt_spt *spt;
drivers/gpu/drm/i915/i915_drv.h +22 -25
78 lines not on this page · raw message
drivers/gpu/drm/i915/i915_irq.h +2 -2
@@ -13,8 +13,8 @@struct drm_i915_private ;struct intel_crtc ; -extern void intel_irq_init (struct drm_i915_private *dev_priv); -extern void intel_irq_fini (struct drm_i915_private *dev_priv); +void intel_irq_init (struct drm_i915_private *dev_priv); +void intel_irq_fini (struct drm_i915_private *dev_priv);int intel_irq_install (struct drm_i915_private *dev_priv);void intel_irq_uninstall (struct drm_i915_private *dev_priv);
drivers/gpu/drm/i915/oa/i915_oa_bdw.h +1 -1
@@ -10,6 +10,6 @@#ifndef __I915_OA_BDW_H__#define __I915_OA_BDW_H__ -extern void i915_perf_load_test_config_bdw (struct drm_i915_private *dev_priv); +void i915_perf_load_test_config_bdw (struct drm_i915_private *dev_priv);#endif
drivers/gpu/drm/i915/oa/i915_oa_bxt.h +1 -1
@@ -10,6 +10,6 @@#ifndef __I915_OA_BXT_H__#define __I915_OA_BXT_H__ -extern void i915_perf_load_test_config_bxt (struct drm_i915_private *dev_priv); +void i915_perf_load_test_config_bxt (struct drm_i915_private *dev_priv);#endif
drivers/gpu/drm/i915/oa/i915_oa_cflgt2.h +1 -1
@@ -10,6 +10,6 @@#ifndef __I915_OA_CFLGT2_H__#define __I915_OA_CFLGT2_H__ -extern void i915_perf_load_test_config_cflgt2 (struct drm_i915_private *dev_priv); +void i915_perf_load_test_config_cflgt2 (struct drm_i915_private *dev_priv);#endif
drivers/gpu/drm/i915/oa/i915_oa_cflgt3.h +1 -1
@@ -10,6 +10,6 @@#ifndef __I915_OA_CFLGT3_H__#define __I915_OA_CFLGT3_H__ -extern void i915_perf_load_test_config_cflgt3 (struct drm_i915_private *dev_priv); +void i915_perf_load_test_config_cflgt3 (struct drm_i915_private *dev_priv);#endif
drivers/gpu/drm/i915/oa/i915_oa_chv.h +1 -1
@@ -10,6 +10,6 @@#ifndef __I915_OA_CHV_H__#define __I915_OA_CHV_H__ -extern void i915_perf_load_test_config_chv (struct drm_i915_private *dev_priv); +void i915_perf_load_test_config_chv (struct drm_i915_private *dev_priv);#endif
drivers/gpu/drm/i915/oa/i915_oa_cnl.h +1 -1
@@ -10,6 +10,6 @@#ifndef __I915_OA_CNL_H__#define __I915_OA_CNL_H__ -extern void i915_perf_load_test_config_cnl (struct drm_i915_private *dev_priv); +void i915_perf_load_test_config_cnl (struct drm_i915_private *dev_priv);#endif
drivers/gpu/drm/i915/oa/i915_oa_glk.h +1 -1
@@ -10,6 +10,6 @@#ifndef __I915_OA_GLK_H__#define __I915_OA_GLK_H__ -extern void i915_perf_load_test_config_glk (struct drm_i915_private *dev_priv); +void i915_perf_load_test_config_glk (struct drm_i915_private *dev_priv);#endif
drivers/gpu/drm/i915/oa/i915_oa_hsw.h +1 -1
@@ -10,6 +10,6 @@#ifndef __I915_OA_HSW_H__#define __I915_OA_HSW_H__ -extern void i915_perf_load_test_config_hsw (struct drm_i915_private *dev_priv); +void i915_perf_load_test_config_hsw (struct drm_i915_private *dev_priv);#endif
drivers/gpu/drm/i915/oa/i915_oa_icl.h +1 -1
@@ -10,6 +10,6 @@#ifndef __I915_OA_ICL_H__#define __I915_OA_ICL_H__ -extern void i915_perf_load_test_config_icl (struct drm_i915_private *dev_priv); +void i915_perf_load_test_config_icl (struct drm_i915_private *dev_priv);#endif
drivers/gpu/drm/i915/oa/i915_oa_kblgt2.h +1 -1
@@ -10,6 +10,6 @@#ifndef __I915_OA_KBLGT2_H__#define __I915_OA_KBLGT2_H__ -extern void i915_perf_load_test_config_kblgt2 (struct drm_i915_private *dev_priv); +void i915_perf_load_test_config_kblgt2 (struct drm_i915_private *dev_priv);#endif
drivers/gpu/drm/i915/oa/i915_oa_kblgt3.h +1 -1
@@ -10,6 +10,6 @@#ifndef __I915_OA_KBLGT3_H__#define __I915_OA_KBLGT3_H__ -extern void i915_perf_load_test_config_kblgt3 (struct drm_i915_private *dev_priv); +void i915_perf_load_test_config_kblgt3 (struct drm_i915_private *dev_priv);#endif
drivers/gpu/drm/i915/oa/i915_oa_sklgt2.h +1 -1
@@ -10,6 +10,6 @@#ifndef __I915_OA_SKLGT2_H__#define __I915_OA_SKLGT2_H__ -extern void i915_perf_load_test_config_sklgt2 (struct drm_i915_private *dev_priv); +void i915_perf_load_test_config_sklgt2 (struct drm_i915_private *dev_priv);#endif
drivers/gpu/drm/i915/oa/i915_oa_sklgt3.h +1 -1
@@ -10,6 +10,6 @@#ifndef __I915_OA_SKLGT3_H__#define __I915_OA_SKLGT3_H__ -extern void i915_perf_load_test_config_sklgt3 (struct drm_i915_private *dev_priv); +void i915_perf_load_test_config_sklgt3 (struct drm_i915_private *dev_priv);#endif
drivers/gpu/drm/i915/oa/i915_oa_sklgt4.h +1 -1
@@ -10,6 +10,6 @@#ifndef __I915_OA_SKLGT4_H__#define __I915_OA_SKLGT4_H__ -extern void i915_perf_load_test_config_sklgt4 (struct drm_i915_private *dev_priv); +void i915_perf_load_test_config_sklgt4 (struct drm_i915_private *dev_priv);#endif
include/drm/i915_drm.h +5 -5
@@ -30,11 +30,11 @@#include <uapi/drm/i915_drm.h> /* For use by IPS driver */ -extern unsigned long i915_read_mch_val (void ); -extern bool i915_gpu_raise (void ); -extern bool i915_gpu_lower (void ); -extern bool i915_gpu_busy (void ); -extern bool i915_gpu_turbo_disable (void ); +unsigned long i915_read_mch_val (void ); +bool i915_gpu_raise (void ); +bool i915_gpu_lower (void ); +bool i915_gpu_busy (void ); +bool i915_gpu_turbo_disable (void );/* Exported from arch/x86/kernel/early-quirks.c */ extern struct resource intel_graphics_stolen_res;
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 2/6 drm/i915: Rename "_load"/"_unload" to match PCI entry points
In reply to Janusz KrzysztofikCurrent names of i915_driver_load/unload() functions originate in legacy DRM stubs. Reduce nomenclature ambiguity by renaming them to match their current use as helpers called from PCI entry points.
Suggested by: Chris Wilson <[email protected]>
--- drivers/gpu/drm/i915/i915_drv.c | 8 ++++---- drivers/gpu/drm/i915/i915_drv.h | 4 ++-- drivers/gpu/drm/i915/i915_pci.c | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-)
drivers/gpu/drm/i915/i915_drv.c +4 -4
@@ -1876,17 +1876,17 @@ static void i915_driver_destroy(struct drm_i915_private *i915) }/** -* i915_driver_load - setup chip and create an initial config +* i915_driver_probe - setup chip and create an initial config * @pdev: PCI device * @ent: matching PCI ID entry * -* The driver load routine has to do several things: +* The driver probe routine has to do several things: * - drive output discovery via intel_modeset_init() * - initialize the memory manager * - allocate initial config memory * - setup the DRM framebuffer with the allocated memory */ -int i915_driver_load (struct pci_dev *pdev,const struct pci_device_id *ent) +int i915_driver_probe (struct pci_dev *pdev,const struct pci_device_id *ent) {const struct intel_device_info *match_info = (struct intel_device_info *)ent->driver_data;
@@ -1952,7 +1952,7 @@ int i915_driver_load(struct pci_dev *pdev, const struct pci_device_id *ent)return ret; } -void i915_driver_unload (struct drm_device *dev) +void i915_driver_remove (struct drm_device *dev) {struct drm_i915_private *dev_priv =to_i915 (dev);struct pci_dev *pdev = dev_priv->drm.pdev;
drivers/gpu/drm/i915/i915_drv.h +2 -2
@@ -2396,8 +2396,8 @@ long i915_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg);#endif extern const struct dev_pm_ops i915_pm_ops; -int i915_driver_load (struct pci_dev *pdev,const struct pci_device_id *ent); -void i915_driver_unload (struct drm_device *dev); +int i915_driver_probe (struct pci_dev *pdev,const struct pci_device_id *ent); +void i915_driver_remove (struct drm_device *dev);void intel_engine_init_hangcheck (struct intel_engine_cs *engine);void intel_hangcheck_init (struct drm_i915_private *dev_priv);
drivers/gpu/drm/i915/i915_pci.c +2 -2
@@ -878,7 +878,7 @@ static void i915_pci_remove(struct pci_dev *pdev)if (!dev)/* driver load aborted, nothing to cleanup */ return ; -i915_driver_unload (dev); +i915_driver_remove (dev);drm_dev_put (dev);pci_set_drvdata (pdev,NULL );
@@ -953,7 +953,7 @@ static int i915_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)if (vga_switcheroo_client_probe_defer (pdev))return -EPROBE_DEFER ; - err =i915_driver_load (pdev, ent); + err =i915_driver_probe (pdev, ent);if (err)return err;
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 3/6 drm/i915: Replace "_load" with "_probe" consequently
In reply to Janusz KrzysztofikUse the "_probe" nomenclature not only in i915_driver_probe() helper name but also in other related function / variable names for consistency. Only the userspace exposed name of a related module parameter is left untouched.
--- .../gpu/drm/i915/display/intel_connector.c | 2 +- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 2 +- drivers/gpu/drm/i915/i915_drv.c | 20 +++++++++---------- drivers/gpu/drm/i915/i915_drv.h | 10 +++++----- drivers/gpu/drm/i915/i915_gem.c | 8 ++++---- drivers/gpu/drm/i915/i915_pci.c | 2 +- drivers/gpu/drm/i915/intel_gvt.c | 2 +- drivers/gpu/drm/i915/intel_uncore.c | 2 +- drivers/gpu/drm/i915/intel_wopcm.c | 2 +- 9 files changed, 25 insertions(+), 25 deletions(-)
drivers/gpu/drm/i915/display/intel_connector.c +1 -1
@@ -118,7 +118,7 @@ int intel_connector_register(struct drm_connector *connector)if (ret) goto err; -if (i915_inject_load_failure ()) { +if (i915_inject_probe_failure ()) { ret = -EFAULT ; goto err_backlight; }
drivers/gpu/drm/i915/gt/intel_engine_cs.c +1 -1
@@ -426,7 +426,7 @@ int intel_engines_init_mmio(struct drm_i915_private *i915)WARN_ON (engine_mask &GENMASK (BITS_PER_TYPE (mask) -1 ,I915_NUM_ENGINES )); -if (i915_inject_load_failure ()) +if (i915_inject_probe_failure ())return -ENODEV ;for (i =0 ; i <ARRAY_SIZE (intel_engines); i++) {
drivers/gpu/drm/i915/i915_drv.c +10 -10
@@ -81,14 +81,14 @@static struct drm_driver driver;#if IS_ENABLED (CONFIG_DRM_I915_DEBUG ) -static unsigned int i915_load_fail_count; +static unsigned int i915_probe_fail_count; -bool __i915_inject_load_failure (const char *func,int line) +bool __i915_inject_probe_failure (const char *func,int line) { -if (i915_load_fail_count >= i915_modparams.inject_load_failure) +if (i915_probe_fail_count >= i915_modparams.inject_load_failure)return false; -if (++i915_load_fail_count == i915_modparams.inject_load_failure) { +if (++i915_probe_fail_count == i915_modparams.inject_load_failure) {DRM_INFO ("Injecting failure at checkpoint %u [%s:%d]\n" , i915_modparams.inject_load_failure, func, line); i915_modparams.inject_load_failure =0 ;
@@ -100,7 +100,7 @@ bool __i915_inject_load_failure(const char *func, int line)bool i915_error_injected (void ) { -return i915_load_fail_count && !i915_modparams.inject_load_failure; +return i915_probe_fail_count && !i915_modparams.inject_load_failure; }#endif
@@ -687,7 +687,7 @@ static int i915_load_modeset_init(struct drm_device *dev)struct pci_dev *pdev = dev_priv->drm.pdev;int ret; -if (i915_inject_load_failure ()) +if (i915_inject_probe_failure ())return -ENODEV ;if (HAS_DISPLAY (dev_priv)) {
@@ -903,7 +903,7 @@ static int i915_driver_init_early(struct drm_i915_private *dev_priv) {int ret =0 ; -if (i915_inject_load_failure ()) +if (i915_inject_probe_failure ())return -ENODEV ;intel_device_info_subplatform_init (dev_priv);
@@ -997,7 +997,7 @@ static int i915_driver_init_mmio(struct drm_i915_private *dev_priv) {int ret; -if (i915_inject_load_failure ()) +if (i915_inject_probe_failure ())return -ENODEV ;if (i915_get_bridge_dev (dev_priv))
@@ -1541,7 +1541,7 @@ static int i915_driver_init_hw(struct drm_i915_private *dev_priv)struct pci_dev *pdev = dev_priv->drm.pdev;int ret; -if (i915_inject_load_failure ()) +if (i915_inject_probe_failure ())return -ENODEV ;intel_device_info_runtime_init (dev_priv);
@@ -1947,7 +1947,7 @@ int i915_driver_probe(struct pci_dev *pdev, const struct pci_device_id *ent) out_pci_disable:pci_disable_device (pdev); out_fini: -i915_load_error (dev_priv,"Device initialization failed (%d)\n" , ret); +i915_probe_error (dev_priv,"Device initialization failed (%d)\n" , ret);i915_driver_destroy (dev_priv);return ret; }
drivers/gpu/drm/i915/i915_drv.h +5 -5
@@ -122,20 +122,20 @@#if IS_ENABLED (CONFIG_DRM_I915_DEBUG ) -bool __i915_inject_load_failure (const char *func,int line); -#define i915_inject_load_failure () \ - __i915_inject_load_failure(__func__, __LINE__) +bool __i915_inject_probe_failure (const char *func,int line); +#define i915_inject_probe_failure () \ + __i915_inject_probe_failure(__func__, __LINE__)bool i915_error_injected (void );#else -#define i915_inject_load_failure () false +#define i915_inject_probe_failure () false#define i915_error_injected () false#endif -#define i915_load_error (i915, fmt, ...) \ +#define i915_probe_error (i915, fmt, ...) \ __i915_printk(i915, i915_error_injected() ? KERN_DEBUG : KERN_ERR, \ fmt, ##__VA_ARGS__)
drivers/gpu/drm/i915/i915_gem.c +4 -4
@@ -1515,12 +1515,12 @@ int i915_gem_init(struct drm_i915_private *dev_priv)if (ret) goto err_gt; -if (i915_inject_load_failure ()) { +if (i915_inject_probe_failure ()) { ret = -ENODEV ; goto err_gt; } -if (i915_inject_load_failure ()) { +if (i915_inject_probe_failure ()) { ret = -EIO ; goto err_gt; }
@@ -1582,8 +1582,8 @@ int i915_gem_init(struct drm_i915_private *dev_priv)* for all other failure, such as an allocation failure, bail. */ if (!i915_reset_failed (dev_priv)) { -i915_load_error (dev_priv, -"Failed to initialize GPU, declaring it wedged!\n" ); +i915_probe_error (dev_priv, +"Failed to initialize GPU, declaring it wedged!\n" );i915_gem_set_wedged (dev_priv); }
drivers/gpu/drm/i915/i915_pci.c +1 -1
@@ -957,7 +957,7 @@ static int i915_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)if (err)return err; -if (i915_inject_load_failure ()) { +if (i915_inject_probe_failure ()) {i915_pci_remove (pdev);return -ENODEV ; }
drivers/gpu/drm/i915/intel_gvt.c +1 -1
@@ -95,7 +95,7 @@ int intel_gvt_init(struct drm_i915_private *dev_priv) {int ret; -if (i915_inject_load_failure ()) +if (i915_inject_probe_failure ())return -ENODEV ;if (!i915_modparams.enable_gvt) {
drivers/gpu/drm/i915/intel_uncore.c +1 -1
@@ -1331,7 +1331,7 @@ static int __fw_domain_init(struct intel_uncore *uncore,GEM_BUG_ON (domain_id >=FW_DOMAIN_ID_COUNT );GEM_BUG_ON (uncore->fw_domain[domain_id]); -if (i915_inject_load_failure ()) +if (i915_inject_probe_failure ())return -ENOMEM ; d =kzalloc (sizeof (*d),GFP_KERNEL );
drivers/gpu/drm/i915/intel_wopcm.c +1 -1
@@ -177,7 +177,7 @@ int intel_wopcm_init(struct intel_wopcm *wopcm)GEM_BUG_ON (!wopcm->size); -if (i915_inject_load_failure ()) +if (i915_inject_probe_failure ())return -E2BIG ;if (guc_fw_size >= wopcm->size) {
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 4/6 drm/i915: Propagate "_release" function name suffix down
In reply to Janusz KrzysztofikReplace mixed "_fini"/"_cleanup"/"_cleanup_hw" suffixes found in names of functions called from i915_driver_release() with "_release" suffix consistently. This provides better code readability, especially helpful when trying to work out which phase the code is in.
Functions names starting with "i915_driver_", i.e., those defined in drivers/gpu/dri/i915/i915_drv.c, just have their "cleanup" or "fini" parts of their names replaced with the "_release" suffix, while names of functions coming from other source files have been suffixed with "_driver_release" to avoid ambiguity with other possible .release entry points.
v2: early_probe pairs better with late_release (Chris)
v3: fix typo in commit message (Joonas)
--- drivers/gpu/drm/i915/i915_drv.c | 33 +++++++++++++------------ drivers/gpu/drm/i915/i915_drv.h | 2 +- drivers/gpu/drm/i915/i915_gem.c | 2 +- drivers/gpu/drm/i915/i915_gem_gtt.c | 4 +-- drivers/gpu/drm/i915/i915_gem_gtt.h | 2 +- drivers/gpu/drm/i915/intel_runtime_pm.c | 2 +- drivers/gpu/drm/i915/intel_runtime_pm.h | 2 +- 7 files changed, 24 insertions(+), 23 deletions(-)
drivers/gpu/drm/i915/i915_drv.c +17 -16
@@ -758,7 +758,7 @@ static int i915_load_modeset_init(struct drm_device *dev) cleanup_gem:i915_gem_suspend (dev_priv);i915_gem_fini_hw (dev_priv); -i915_gem_fini (dev_priv); +i915_gem_driver_release (dev_priv); cleanup_modeset:intel_modeset_cleanup (dev); cleanup_irq:
@@ -968,10 +968,11 @@ static int i915_driver_init_early(struct drm_i915_private *dev_priv) }/** -* i915_driver_cleanup_early - cleanup the setup done in i915_driver_init_early() +* i915_driver_late_release - cleanup the setup done in +* i915_driver_init_early() * @dev_priv: device private */ -static void i915_driver_cleanup_early (struct drm_i915_private *dev_priv) +static void i915_driver_late_release (struct drm_i915_private *dev_priv) {intel_irq_fini (dev_priv);intel_power_domains_cleanup (dev_priv);
@@ -1034,10 +1035,10 @@ static int i915_driver_init_mmio(struct drm_i915_private *dev_priv) }/** -* i915_driver_cleanup_mmio - cleanup the setup done in i915_driver_init_mmio() +* i915_driver_mmio_release - cleanup the setup done in i915_driver_init_mmio() * @dev_priv: device private */ -static void i915_driver_cleanup_mmio (struct drm_i915_private *dev_priv) +static void i915_driver_mmio_release (struct drm_i915_private *dev_priv) {intel_teardown_mchbar (dev_priv);intel_uncore_fini_mmio (&dev_priv->uncore);
@@ -1690,7 +1691,7 @@ static int i915_driver_init_hw(struct drm_i915_private *dev_priv)pci_disable_msi (pdev);pm_qos_remove_request (&dev_priv->pm_qos); err_ggtt: -i915_ggtt_cleanup_hw (dev_priv); +i915_ggtt_driver_release (dev_priv); err_perf:i915_perf_fini (dev_priv);return ret;
@@ -1935,15 +1936,15 @@ int i915_driver_probe(struct pci_dev *pdev, const struct pci_device_id *ent) out_cleanup_hw:i915_driver_cleanup_hw (dev_priv); -i915_ggtt_cleanup_hw (dev_priv); +i915_ggtt_driver_release (dev_priv);/* Paranoia: make sure we have disabled everything before we exit. */ intel_sanitize_gt_powersave (dev_priv); out_cleanup_mmio: -i915_driver_cleanup_mmio (dev_priv); +i915_driver_mmio_release (dev_priv); out_runtime_pm_put:enable_rpm_wakeref_asserts (&dev_priv->runtime_pm); -i915_driver_cleanup_early (dev_priv); +i915_driver_late_release (dev_priv); out_pci_disable:pci_disable_device (pdev); out_fini:
@@ -2006,19 +2007,19 @@ static void i915_driver_release(struct drm_device *dev)disable_rpm_wakeref_asserts (rpm); -i915_gem_fini (dev_priv); +i915_gem_driver_release (dev_priv); -i915_ggtt_cleanup_hw (dev_priv); +i915_ggtt_driver_release (dev_priv);/* Paranoia: make sure we have disabled everything before we exit. */ intel_sanitize_gt_powersave (dev_priv); -i915_driver_cleanup_mmio (dev_priv); +i915_driver_mmio_release (dev_priv);enable_rpm_wakeref_asserts (rpm); -intel_runtime_pm_cleanup (rpm); +intel_runtime_pm_driver_release (rpm); -i915_driver_cleanup_early (dev_priv); +i915_driver_late_release (dev_priv);i915_driver_destroy (dev_priv); }
@@ -2211,7 +2212,7 @@ static int i915_drm_suspend_late(struct drm_device *dev, bool hibernation) out:enable_rpm_wakeref_asserts (rpm);if (!dev_priv->uncore.user_forcewake.count) -intel_runtime_pm_cleanup (rpm); +intel_runtime_pm_driver_release (rpm);return ret; }
@@ -2975,7 +2976,7 @@ static int intel_runtime_suspend(struct device *kdev) }enable_rpm_wakeref_asserts (rpm); -intel_runtime_pm_cleanup (rpm); +intel_runtime_pm_driver_release (rpm);if (intel_uncore_arm_unclaimed_mmio_detection (&dev_priv->uncore))DRM_ERROR ("Unclaimed access detected prior to suspending\n" );
drivers/gpu/drm/i915/i915_drv.h +1 -1
@@ -2538,7 +2538,7 @@ void i915_gem_init_mmio(struct drm_i915_private *i915);int __must_check i915_gem_init (struct drm_i915_private *dev_priv);int __must_check i915_gem_init_hw (struct drm_i915_private *dev_priv);void i915_gem_fini_hw (struct drm_i915_private *dev_priv); -void i915_gem_fini (struct drm_i915_private *dev_priv); +void i915_gem_driver_release (struct drm_i915_private *dev_priv);int i915_gem_wait_for_idle (struct drm_i915_private *dev_priv,unsigned int flags,long timeout);void i915_gem_suspend (struct drm_i915_private *dev_priv);
drivers/gpu/drm/i915/i915_gem.c +1 -1
@@ -1620,7 +1620,7 @@ void i915_gem_fini_hw(struct drm_i915_private *dev_priv)i915_gem_drain_freed_objects (dev_priv); } -void i915_gem_fini (struct drm_i915_private *dev_priv) +void i915_gem_driver_release (struct drm_i915_private *dev_priv) {mutex_lock (&dev_priv->drm.struct_mutex);intel_engines_cleanup (dev_priv);
drivers/gpu/drm/i915/i915_gem_gtt.c +2 -2
@@ -2880,10 +2880,10 @@ static void ggtt_cleanup_hw(struct i915_ggtt *ggtt) }/** -* i915_ggtt_cleanup_hw - Clean up GGTT hardware initialization +* i915_ggtt_driver_release - Clean up GGTT hardware initialization * @i915: i915 device */ -void i915_ggtt_cleanup_hw (struct drm_i915_private *i915) +void i915_ggtt_driver_release (struct drm_i915_private *i915) {struct pagevec *pvec;
drivers/gpu/drm/i915/i915_gem_gtt.h +1 -1
@@ -628,7 +628,7 @@ int i915_ggtt_enable_hw(struct drm_i915_private *dev_priv);void i915_ggtt_enable_guc (struct drm_i915_private *i915);void i915_ggtt_disable_guc (struct drm_i915_private *i915);int i915_init_ggtt (struct drm_i915_private *dev_priv); -void i915_ggtt_cleanup_hw (struct drm_i915_private *dev_priv); +void i915_ggtt_driver_release (struct drm_i915_private *dev_priv);int i915_ppgtt_init_hw (struct intel_gt *gt);
drivers/gpu/drm/i915/intel_runtime_pm.c +1 -1
@@ -592,7 +592,7 @@ void intel_runtime_pm_disable(struct intel_runtime_pm *rpm)pm_runtime_put (kdev); } -void intel_runtime_pm_cleanup (struct intel_runtime_pm *rpm) +void intel_runtime_pm_driver_release (struct intel_runtime_pm *rpm) {int count =atomic_read (&rpm->wakeref_count);
drivers/gpu/drm/i915/intel_runtime_pm.h +1 -1
@@ -173,7 +173,7 @@ enable_rpm_wakeref_asserts(struct intel_runtime_pm *rpm)void intel_runtime_pm_init_early (struct intel_runtime_pm *rpm);void intel_runtime_pm_enable (struct intel_runtime_pm *rpm);void intel_runtime_pm_disable (struct intel_runtime_pm *rpm); -void intel_runtime_pm_cleanup (struct intel_runtime_pm *rpm); +void intel_runtime_pm_driver_release (struct intel_runtime_pm *rpm);intel_wakeref_t intel_runtime_pm_get (struct intel_runtime_pm *rpm);intel_wakeref_t intel_runtime_pm_get_if_in_use (struct intel_runtime_pm *rpm);
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 5/6 drm/i915: Propagate "_remove" function name suffix down
In reply to Janusz KrzysztofikSimilar to the "_release" case, consistently replace mixed "_cleanup"/"_fini"/"_fini_hw" components found in names of functions called from i915_driver_remove() with "_remove" or "_driver_remove" suffixes for better code readability.
--- drivers/gpu/drm/i915/display/intel_bios.c | 4 ++-- drivers/gpu/drm/i915/display/intel_bios.h | 2 +- drivers/gpu/drm/i915/display/intel_display.c | 2 +- .../drm/i915/display/intel_display_power.c | 6 ++--- .../drm/i915/display/intel_display_power.h | 2 +- drivers/gpu/drm/i915/i915_drv.c | 24 +++++++++---------- drivers/gpu/drm/i915/i915_drv.h | 4 ++-- drivers/gpu/drm/i915/i915_gem.c | 2 +- drivers/gpu/drm/i915/intel_gvt.c | 5 ++-- drivers/gpu/drm/i915/intel_gvt.h | 5 ++-- 10 files changed, 29 insertions(+), 27 deletions(-)
drivers/gpu/drm/i915/display/intel_bios.c +2 -2
@@ -1908,10 +1908,10 @@ void intel_bios_init(struct drm_i915_private *dev_priv) }/** -* intel_bios_cleanup - Free any resources allocated by intel_bios_init() +* intel_bios_driver_remove - Free any resources allocated by intel_bios_init() * @dev_priv: i915 device instance */ -void intel_bios_cleanup (struct drm_i915_private *dev_priv) +void intel_bios_driver_remove (struct drm_i915_private *dev_priv) {kfree (dev_priv->vbt.child_dev); dev_priv->vbt.child_dev =NULL ;
drivers/gpu/drm/i915/display/intel_bios.h +1 -1
@@ -228,7 +228,7 @@ struct mipi_pps_data { } __packed;void intel_bios_init (struct drm_i915_private *dev_priv); -void intel_bios_cleanup (struct drm_i915_private *dev_priv); +void intel_bios_driver_remove (struct drm_i915_private *dev_priv);bool intel_bios_is_valid_vbt (const void *buf,size_t size);bool intel_bios_is_tv_present (struct drm_i915_private *dev_priv);bool intel_bios_is_lvds_present (struct drm_i915_private *dev_priv,u8 *i2c_pin);
drivers/gpu/drm/i915/display/intel_display.c +1 -1
@@ -17092,7 +17092,7 @@ static void intel_hpd_poll_fini(struct drm_device *dev)drm_connector_list_iter_end (&conn_iter); } -void intel_modeset_cleanup (struct drm_device *dev) +void intel_modeset_driver_remove (struct drm_device *dev) {struct drm_i915_private *dev_priv =to_i915 (dev);
drivers/gpu/drm/i915/display/intel_display_power.c +3 -3
@@ -4902,7 +4902,7 @@ static void intel_power_domains_verify_state(struct drm_i915_private *dev_priv);* * It will return with power domains disabled (to be enabled later by * intel_power_domains_enable()) and must be paired with -* intel_power_domains_fini_hw(). +* intel_power_domains_driver_remove(). */ void intel_power_domains_init_hw (struct drm_i915_private *i915,bool resume) {
@@ -4954,7 +4954,7 @@ void intel_power_domains_init_hw(struct drm_i915_private *i915, bool resume) }/** -* intel_power_domains_fini_hw - deinitialize hw power domain state +* intel_power_domains_driver_remove - deinitialize hw power domain state * @i915: i915 device instance * * De-initializes the display power domain HW state. It also ensures that the
@@ -4964,7 +4964,7 @@ void intel_power_domains_init_hw(struct drm_i915_private *i915, bool resume)* intel_power_domains_disable()) and must be paired with * intel_power_domains_init_hw(). */ -void intel_power_domains_fini_hw (struct drm_i915_private *i915) +void intel_power_domains_driver_remove (struct drm_i915_private *i915) {intel_wakeref_t wakeref__maybe_unused =fetch_and_zero (&i915->power_domains.wakeref);
drivers/gpu/drm/i915/display/intel_display_power.h +1 -1
@@ -241,7 +241,7 @@ void gen9_enable_dc5(struct drm_i915_private *dev_priv);int intel_power_domains_init (struct drm_i915_private *dev_priv);void intel_power_domains_cleanup (struct drm_i915_private *dev_priv);void intel_power_domains_init_hw (struct drm_i915_private *dev_priv,bool resume); -void intel_power_domains_fini_hw (struct drm_i915_private *dev_priv); +void intel_power_domains_driver_remove (struct drm_i915_private *dev_priv);void icl_display_core_init (struct drm_i915_private *dev_priv,bool resume);void icl_display_core_uninit (struct drm_i915_private *dev_priv);void intel_power_domains_enable (struct drm_i915_private *dev_priv);
drivers/gpu/drm/i915/i915_drv.c +12 -12
@@ -757,16 +757,16 @@ static int i915_load_modeset_init(struct drm_device *dev) cleanup_gem:i915_gem_suspend (dev_priv); -i915_gem_fini_hw (dev_priv); +i915_gem_driver_remove (dev_priv);i915_gem_driver_release (dev_priv); cleanup_modeset: -intel_modeset_cleanup (dev); +intel_modeset_driver_remove (dev); cleanup_irq:intel_irq_uninstall (dev_priv);intel_gmbus_teardown (dev_priv); cleanup_csr:intel_csr_ucode_fini (dev_priv); -intel_power_domains_fini_hw (dev_priv); +intel_power_domains_driver_remove (dev_priv);vga_switcheroo_unregister_client (pdev); cleanup_vga_client:vga_client_register (pdev,NULL ,NULL ,NULL );
@@ -1698,10 +1698,10 @@ static int i915_driver_init_hw(struct drm_i915_private *dev_priv) }/** -* i915_driver_cleanup_hw - cleanup the setup done in i915_driver_init_hw() +* i915_driver_hw_remove - cleanup the setup done in i915_driver_hw_probe() * @dev_priv: device private */ -static void i915_driver_cleanup_hw (struct drm_i915_private *dev_priv) +static void i915_driver_hw_remove (struct drm_i915_private *dev_priv) {struct pci_dev *pdev = dev_priv->drm.pdev;
@@ -1935,7 +1935,7 @@ int i915_driver_probe(struct pci_dev *pdev, const struct pci_device_id *ent)return 0 ; out_cleanup_hw: -i915_driver_cleanup_hw (dev_priv); +i915_driver_hw_remove (dev_priv);i915_ggtt_driver_release (dev_priv);/* Paranoia: make sure we have disabled everything before we exit. */
@@ -1976,11 +1976,11 @@ void i915_driver_remove(struct drm_device *dev)drm_atomic_helper_shutdown (dev); -intel_gvt_cleanup (dev_priv); +intel_gvt_driver_remove (dev_priv); -intel_modeset_cleanup (dev); +intel_modeset_driver_remove (dev); -intel_bios_cleanup (dev_priv); +intel_bios_driver_remove (dev_priv);vga_switcheroo_unregister_client (pdev);vga_client_register (pdev,NULL ,NULL ,NULL );
@@ -1991,11 +1991,11 @@ void i915_driver_remove(struct drm_device *dev)cancel_delayed_work_sync (&dev_priv->gpu_error.hangcheck_work);i915_reset_error_state (dev_priv); -i915_gem_fini_hw (dev_priv); +i915_gem_driver_remove (dev_priv); -intel_power_domains_fini_hw (dev_priv); +intel_power_domains_driver_remove (dev_priv); -i915_driver_cleanup_hw (dev_priv); +i915_driver_hw_remove (dev_priv);enable_rpm_wakeref_asserts (&dev_priv->runtime_pm); }
drivers/gpu/drm/i915/i915_drv.h +2 -2
@@ -2537,7 +2537,7 @@ bool i915_gem_unset_wedged(struct drm_i915_private *dev_priv);void i915_gem_init_mmio (struct drm_i915_private *i915);int __must_check i915_gem_init (struct drm_i915_private *dev_priv);int __must_check i915_gem_init_hw (struct drm_i915_private *dev_priv); -void i915_gem_fini_hw (struct drm_i915_private *dev_priv); +void i915_gem_driver_remove (struct drm_i915_private *dev_priv);void i915_gem_driver_release (struct drm_i915_private *dev_priv);int i915_gem_wait_for_idle (struct drm_i915_private *dev_priv,unsigned int flags,long timeout);
@@ -2693,7 +2693,7 @@ mkwrite_device_info(struct drm_i915_private *dev_priv)/* modesetting */ void intel_modeset_init_hw (struct drm_device *dev);int intel_modeset_init (struct drm_device *dev); -void intel_modeset_cleanup (struct drm_device *dev); +void intel_modeset_driver_remove (struct drm_device *dev);int intel_modeset_vga_set_state (struct drm_i915_private *dev_priv,bool state);void intel_display_resume (struct drm_device *dev);void i915_redisable_vga (struct drm_i915_private *dev_priv);
drivers/gpu/drm/i915/i915_gem.c +1 -1
@@ -1600,7 +1600,7 @@ int i915_gem_init(struct drm_i915_private *dev_priv)return ret; } -void i915_gem_fini_hw (struct drm_i915_private *dev_priv) +void i915_gem_driver_remove (struct drm_i915_private *dev_priv) {GEM_BUG_ON (dev_priv->gt.awake);
drivers/gpu/drm/i915/intel_gvt.c +3 -2
@@ -122,13 +122,14 @@ int intel_gvt_init(struct drm_i915_private *dev_priv) }/** -* intel_gvt_cleanup - cleanup GVT components when i915 driver is unloading +* intel_gvt_driver_remove - cleanup GVT components when i915 driver is +* unbinding * @dev_priv: drm i915 private * * * This function is called at the i915 driver unloading stage, to shutdown * GVT components and release the related resources. */ -void intel_gvt_cleanup (struct drm_i915_private *dev_priv) +void intel_gvt_driver_remove (struct drm_i915_private *dev_priv) {if (!intel_gvt_active (dev_priv))return ;
drivers/gpu/drm/i915/intel_gvt.h +3 -2
@@ -28,7 +28,7 @@ struct drm_i915_private;#ifdef CONFIG_DRM_I915_GVT int intel_gvt_init (struct drm_i915_private *dev_priv); -void intel_gvt_cleanup (struct drm_i915_private *dev_priv); +void intel_gvt_driver_remove (struct drm_i915_private *dev_priv);int intel_gvt_init_device (struct drm_i915_private *dev_priv);void intel_gvt_clean_device (struct drm_i915_private *dev_priv);int intel_gvt_init_host (void );
@@ -38,7 +38,8 @@ static inline int intel_gvt_init(struct drm_i915_private *dev_priv) {return 0 ; } -static inline void intel_gvt_cleanup (struct drm_i915_private *dev_priv) + +static inline void intel_gvt_driver_remove (struct drm_i915_private *dev_priv) { }
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 6/6 drm/i915: Propagate "_probe" function name suffix down
In reply to Janusz KrzysztofikSimilar to the "_release" and "_remove" cases, consequently replace "_init" components of names of functions called from i915_driver_probe() with "_probe" suffixes for better code readability.
--- drivers/gpu/drm/i915/i915_drv.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-)
drivers/gpu/drm/i915/i915_drv.c +13 -13
@@ -681,7 +681,7 @@ static const struct vga_switcheroo_client_ops i915_switcheroo_ops = { .can_switch = i915_switcheroo_can_switch, }; -static int i915_load_modeset_init (struct drm_device *dev) +static int i915_driver_modeset_probe (struct drm_device *dev) {struct drm_i915_private *dev_priv =to_i915 (dev);struct pci_dev *pdev = dev_priv->drm.pdev;
@@ -890,7 +890,7 @@ static void intel_detect_preproduction_hw(struct drm_i915_private *dev_priv) }/** -* i915_driver_init_early - setup state not requiring device access +* i915_driver_early_probe - setup state not requiring device access * @dev_priv: device private * * Initialize everything that is a "SW-only" state, that is state not
@@ -899,7 +899,7 @@ static void intel_detect_preproduction_hw(struct drm_i915_private *dev_priv)* system memory allocation, setting up device specific attributes and * function hooks not requiring accessing the device. */ -static int i915_driver_init_early (struct drm_i915_private *dev_priv) +static int i915_driver_early_probe (struct drm_i915_private *dev_priv) {int ret =0 ;
@@ -969,7 +969,7 @@ static int i915_driver_init_early(struct drm_i915_private *dev_priv)/** * i915_driver_late_release - cleanup the setup done in -* i915_driver_init_early() +* i915_driver_early_probe() * @dev_priv: device private */ static void i915_driver_late_release (struct drm_i915_private *dev_priv)
@@ -986,7 +986,7 @@ static void i915_driver_late_release(struct drm_i915_private *dev_priv) }/** -* i915_driver_init_mmio - setup device MMIO +* i915_driver_mmio_probe - setup device MMIO * @dev_priv: device private * * Setup minimal device state necessary for MMIO accesses later in the
@@ -994,7 +994,7 @@ static void i915_driver_late_release(struct drm_i915_private *dev_priv)* side effects or exposing the driver via kernel internal or user space * interfaces. */ -static int i915_driver_init_mmio (struct drm_i915_private *dev_priv) +static int i915_driver_mmio_probe (struct drm_i915_private *dev_priv) {int ret;
@@ -1035,7 +1035,7 @@ static int i915_driver_init_mmio(struct drm_i915_private *dev_priv) }/** -* i915_driver_mmio_release - cleanup the setup done in i915_driver_init_mmio() +* i915_driver_mmio_release - cleanup the setup done in i915_driver_mmio_probe() * @dev_priv: device private */ static void i915_driver_mmio_release (struct drm_i915_private *dev_priv)
@@ -1531,13 +1531,13 @@ static void edram_detect(struct drm_i915_private *dev_priv) }/** -* i915_driver_init_hw - setup state requiring device access +* i915_driver_hw_probe - setup state requiring device access * @dev_priv: device private * * Setup state that requires accessing the device, but doesn't require * exposing the driver via kernel internal or userspace interfaces. */ -static int i915_driver_init_hw (struct drm_i915_private *dev_priv) +static int i915_driver_hw_probe (struct drm_i915_private *dev_priv) {struct pci_dev *pdev = dev_priv->drm.pdev;int ret;
@@ -1906,7 +1906,7 @@ int i915_driver_probe(struct pci_dev *pdev, const struct pci_device_id *ent)if (ret) goto out_fini; - ret =i915_driver_init_early (dev_priv); + ret =i915_driver_early_probe (dev_priv);if (ret <0 ) goto out_pci_disable;
@@ -1914,15 +1914,15 @@ int i915_driver_probe(struct pci_dev *pdev, const struct pci_device_id *ent)i915_detect_vgpu (dev_priv); - ret =i915_driver_init_mmio (dev_priv); + ret =i915_driver_mmio_probe (dev_priv);if (ret <0 ) goto out_runtime_pm_put; - ret =i915_driver_init_hw (dev_priv); + ret =i915_driver_hw_probe (dev_priv);if (ret <0 ) goto out_cleanup_mmio; - ret =i915_load_modeset_init (&dev_priv->drm); + ret =i915_driver_modeset_probe (&dev_priv->drm);if (ret <0 ) goto out_cleanup_hw;
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915: Rename functions to match their entry points (rev3)
In reply to Janusz Krzysztofik== Series Details ==
== Series Details ==
Series: drm/i915: Rename functions to match their entry points (rev3)
URL : https://patchwork.freedesktop.org/series/63541/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6472 -> Patchwork_13643
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13643/
Known issues
------------
Here are the changes found in Patchwork_13643 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@kms_chamelium@dp-crc-fast:
- fi-cml-u2: [PASS][1] -> [FAIL][2] ([fdo#110627])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6472/fi-cml-u2/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13643/fi-cml-u2/igt@[email protected]
* igt@kms_chamelium@hdmi-hpd-fast:
- fi-kbl-7500u: [PASS][3] -> [FAIL][4] ([fdo#109485])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6472/fi-kbl-7500u/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13643/fi-kbl-7500u/igt@[email protected]
* igt@kms_frontbuffer_tracking@basic:
- fi-icl-u2: [PASS][5] -> [FAIL][6] ([fdo#103167])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6472/fi-icl-u2/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13643/fi-icl-u2/igt@[email protected]
#### Possible fixes ####
* igt@i915_selftest@live_execlists:
- fi-skl-gvtdvm: [DMESG-FAIL][7] ([fdo#111108]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6472/fi-skl-gvtdvm/igt@i915_selftest@live_execlists.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13643/fi-skl-gvtdvm/igt@i915_selftest@live_execlists.html
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#109485]: https://bugs.freedesktop.org/show_bug.cgi?id=109485
[fdo#110627]: https://bugs.freedesktop.org/show_bug.cgi?id=110627
[fdo#111108]: https://bugs.freedesktop.org/show_bug.cgi?id=111108
Participating hosts (54 -> 45)
------------------------------
Missing (9): fi-kbl-7567u fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-byt-clapper fi-icl-y fi-icl-dsi fi-bdw-samus
Build changes
-------------
* Linux: CI_DRM_6472 -> Patchwork_13643
CI_DRM_6472: 649e17f8cfe7361cbc104427d155f685cf7151d5 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5094: d7f140b5b02d054183a74842b4579cf7f5533927 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_13643: 6b8bf3561b308aeac7e3e3c4f9366cb8a69d547b @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
6b8bf3561b30 drm/i915: Propagate "_probe" function name suffix down 8a98e67ae6e4 drm/i915: Propagate "_remove" function name suffix down 3740fa749341 drm/i915: Propagate "_release" function name suffix down 06fb7768f7b5 drm/i915: Replace "_load" with "_probe" consequently 94debfbf411e drm/i915: Rename "_load"/"_unload" to match PCI entry points 968fac008e47 drm/i915: Drop extern qualifiers from header function prototypes
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13643/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: ✓ Fi.CI.BAT: success for drm/i915: Rename functions to match their entry points (rev3)
Quoting Patchwork (2019-07-12 14:14:34)
Quoted 11 lines
== Series Details ==
Series: drm/i915: Rename functions to match their entry points (rev3)
URL : https://patchwork.freedesktop.org/series/63541/
State : success== Summary ==
CI Bug Log - changes from
CI_DRM_6472->Patchwork_13643
====================================================
Quoted 8 lines
Summary
-------**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13643/
And pushed. Thanks for the continual improvements, -Chris
_______________________________________________
Intel-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.IGT: success for drm/i915: Rename functions to match their entry points (rev3)
In reply to Janusz Krzysztofik== Series Details ==
== Series Details ==
Series: drm/i915: Rename functions to match their entry points (rev3)
URL : https://patchwork.freedesktop.org/series/63541/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6472_full -> Patchwork_13643_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Known issues
------------
Here are the changes found in Patchwork_13643_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_pm_rpm@i2c:
- shard-hsw: [PASS][1] -> [FAIL][2] ([fdo#104097])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6472/shard-hsw6/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13643/shard-hsw6/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-pwrite:
- shard-iclb: [PASS][3] -> [FAIL][4] ([fdo#103167]) +1 similar issue
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6472/shard-iclb4/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-pwrite.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13643/shard-iclb7/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-pwrite.html
* igt@kms_frontbuffer_tracking@fbc-suspend:
- shard-apl: [PASS][5] -> [DMESG-WARN][6] ([fdo#108566]) +2 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6472/shard-apl6/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13643/shard-apl8/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-coverage-7efc:
- shard-skl: [PASS][7] -> [FAIL][8] ([fdo#108145] / [fdo#110403])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6472/shard-skl7/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13643/shard-skl5/igt@[email protected]
* igt@kms_psr@psr2_cursor_blt:
- shard-iclb: [PASS][9] -> [SKIP][10] ([fdo#109441]) +2 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6472/shard-iclb2/igt@kms_psr@psr2_cursor_blt.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13643/shard-iclb3/igt@kms_psr@psr2_cursor_blt.html
* igt@kms_setmode@basic:
- shard-skl: [PASS][11] -> [FAIL][12] ([fdo#99912])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6472/shard-skl5/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13643/shard-skl4/igt@[email protected]
* igt@perf@polling:
- shard-skl: [PASS][13] -> [FAIL][14] ([fdo#110728])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6472/shard-skl5/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13643/shard-skl5/igt@[email protected]
#### Possible fixes ####
* igt@gem_ctx_isolation@bcs0-s3:
- shard-apl: [DMESG-WARN][15] ([fdo#108566]) -> [PASS][16] +2 similar issues
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6472/shard-apl4/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13643/shard-apl1/igt@[email protected]
* igt@gem_tiled_swapping@non-threaded:
- shard-iclb: [INCOMPLETE][17] ([fdo#107713] / [fdo#108686]) -> [PASS][18]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6472/shard-iclb4/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13643/shard-iclb6/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-render:
- shard-iclb: [FAIL][19] ([fdo#103167]) -> [PASS][20]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6472/shard-iclb2/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-render.html
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13643/shard-iclb2/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-cur-indfb-draw-render.html
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-render:
- shard-iclb: [INCOMPLETE][21] ([fdo#106978] / [fdo#107713]) -> [PASS][22]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6472/shard-iclb7/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-render.html
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13643/shard-iclb3/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-render.html
* igt@kms_frontbuffer_tracking@fbcpsr-suspend:
- shard-skl: [INCOMPLETE][23] ([fdo#104108] / [fdo#106978]) -> [PASS][24]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6472/shard-skl6/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13643/shard-skl5/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-constant-alpha-min:
- shard-skl: [FAIL][25] ([fdo#108145]) -> [PASS][26] +1 similar issue
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6472/shard-skl6/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13643/shard-skl5/igt@[email protected]
* igt@kms_psr@psr2_primary_page_flip:
- shard-iclb: [SKIP][27] ([fdo#109441]) -> [PASS][28]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6472/shard-iclb8/igt@kms_psr@psr2_primary_page_flip.html
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13643/shard-iclb2/igt@kms_psr@psr2_primary_page_flip.html
* igt@kms_setmode@basic:
- shard-apl: [FAIL][29] ([fdo#99912]) -> [PASS][30]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6472/shard-apl5/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13643/shard-apl4/igt@[email protected]
- shard-kbl: [FAIL][31] ([fdo#99912]) -> [PASS][32]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6472/shard-kbl6/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13643/shard-kbl6/igt@[email protected]
* igt@perf@blocking:
- shard-skl: [FAIL][33] ([fdo#110728]) -> [PASS][34]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6472/shard-skl7/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13643/shard-skl3/igt@[email protected]
#### Warnings ####
* igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-mmap-wc:
- shard-skl: [FAIL][35] ([fdo#108040]) -> [FAIL][36] ([fdo#103167])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6472/shard-skl2/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-mmap-wc.html
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13643/shard-skl7/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-mmap-wc.html
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#104097]: https://bugs.freedesktop.org/show_bug.cgi?id=104097
[fdo#104108]: https://bugs.freedesktop.org/show_bug.cgi?id=104108
[fdo#106978]: https://bugs.freedesktop.org/show_bug.cgi?id=106978
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#108040]: https://bugs.freedesktop.org/show_bug.cgi?id=108040
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566
[fdo#108686]: https://bugs.freedesktop.org/show_bug.cgi?id=108686
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#110403]: https://bugs.freedesktop.org/show_bug.cgi?id=110403
[fdo#110728]: https://bugs.freedesktop.org/show_bug.cgi?id=110728
[fdo#99912]: https://bugs.freedesktop.org/show_bug.cgi?id=99912
Participating hosts (10 -> 10)
------------------------------
No changes in participating hosts
Build changes
-------------
* Linux: CI_DRM_6472 -> Patchwork_13643
CI_DRM_6472: 649e17f8cfe7361cbc104427d155f685cf7151d5 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5094: d7f140b5b02d054183a74842b4579cf7f5533927 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_13643: 6b8bf3561b308aeac7e3e3c4f9366cb8a69d547b @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13643/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx