Various cleanup
Subsystems (2)
cover Various cleanup
To improve consistency in the driver, and to pave the way for further cleanup patches, do various bits of tidying.
David Weinehall (4):
drm/i915: Cosmetic fixes in i915_drv.h
drm/i915: Consistent struct device naming
drm/i915: Consistent drm_minor use
drm/i915: pdev cleanup
drivers/gpu/drm/i915/i915_drv.c | 150 +++++++++++++++++--------------- drivers/gpu/drm/i915/i915_drv.h | 10 +-- drivers/gpu/drm/i915/i915_gem_gtt.c | 40 +++++---- drivers/gpu/drm/i915/i915_gem_stolen.c | 17 ++-- drivers/gpu/drm/i915/i915_gpu_error.c | 9 +- drivers/gpu/drm/i915/i915_suspend.c | 6 +- drivers/gpu/drm/i915/i915_sysfs.c | 90 +++++++++---------- drivers/gpu/drm/i915/intel_audio.c | 38 ++++---- drivers/gpu/drm/i915/intel_display.c | 25 ++++-- drivers/gpu/drm/i915/intel_fbdev.c | 3 +- drivers/gpu/drm/i915/intel_guc_loader.c | 3 +- drivers/gpu/drm/i915/intel_i2c.c | 3 +- drivers/gpu/drm/i915/intel_runtime_pm.c | 56 ++++++------ drivers/gpu/drm/i915/intel_sdvo.c | 4 +- 14 files changed, 244 insertions(+), 210 deletions(-)
Signature · 6 lines
2.8.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 1/4 drm/i915: Cosmetic fixes in i915_drv.h
Fix minor whitespace issues plus a typo.
--- drivers/gpu/drm/i915/i915_drv.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/i915_drv.h +3 -3
@@ -2520,7 +2520,7 @@ struct drm_i915_cmd_table {BUILD_BUG (); \ __p; \ }) -#define INTEL_INFO (p) (&__I915__(p)->info) +#define INTEL_INFO (p) (&__I915__(p)->info)#define INTEL_GEN (p) (INTEL_INFO(p)->gen)#define INTEL_DEVID (p) (INTEL_INFO(p)->device_id)
@@ -2814,7 +2814,7 @@ extern int i915_suspend_switcheroo(struct drm_device *dev, pm_message_t state);extern int i915_resume_switcheroo (struct drm_device *dev);int intel_sanitize_enable_ppgtt (struct drm_i915_private *dev_priv, -int enable_ppgtt); +int enable_ppgtt);bool intel_sanitize_semaphores (struct drm_i915_private *dev_priv,int value);
@@ -3768,7 +3768,7 @@ __raw_write(64, q)#undef __raw_write/* These are untraced mmio-accessors that are only valid to be used inside -* criticial sections inside IRQ handlers where forcewake is explicitly +* critical sections inside IRQ handlers where forcewake is explicitly * controlled. * Think twice, and think again, before using these. * Note: Should only be used between intel_uncore_forcewake_irqlock() and
Signature · 6 lines
2.8.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 1/4] drm/i915: Cosmetic fixes in i915_drv.h
Quoted 3 lines · David Weinehall
Fix minor whitespace issues plus a typo.
Signed-off-by David Weinehall <[email protected]>
-Chris
Signature · 5 lines
Chris Wilson, Intel Open Source Technology Centre _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/4 drm/i915: Consistent struct device naming
In reply to David WeinehallWe currently have a mix of struct device *device, struct device *kdev, and struct device *dev (the latter forcing us to refer to struct drm_device as something else than the normal dev).
To simplify things, always use kdev when referring to struct device.
--- drivers/gpu/drm/i915/i915_drv.c | 96 ++++++++++++++++----------------- drivers/gpu/drm/i915/i915_drv.h | 4 +- drivers/gpu/drm/i915/i915_gem_gtt.c | 6 +-- drivers/gpu/drm/i915/i915_sysfs.c | 62 ++++++++++----------- drivers/gpu/drm/i915/intel_audio.c | 38 ++++++------- drivers/gpu/drm/i915/intel_runtime_pm.c | 36 ++++++------- 6 files changed, 121 insertions(+), 121 deletions(-)
drivers/gpu/drm/i915/i915_drv.c +48 -48
@@ -77,7 +77,7 @@ __i915_printk(struct drm_i915_private *dev_priv, const char *level, const char *fmt, ...) { static bool shown_bug_once; -struct device *dev = dev_priv->drm.dev; +struct device *kdev = dev_priv->drm.dev;bool is_error = level[1 ] <=KERN_ERR [1 ];bool is_debug = level[1 ] ==KERN_DEBUG [1 ];struct va_format vaf;
@@ -91,11 +91,11 @@ __i915_printk(struct drm_i915_private *dev_priv, const char *level, vaf.fmt = fmt; vaf.va = &args; -dev_printk (level, dev,"[" DRM_NAME ":%ps] %pV" , +dev_printk (level, kdev,"[" DRM_NAME ":%ps] %pV" ,__builtin_return_address (0 ), &vaf);if (is_error && !shown_bug_once) { -dev_notice (dev,"%s" ,FDO_BUG_MSG ); +dev_notice (kdev,"%s" ,FDO_BUG_MSG ); shown_bug_once = true; }
@@ -1475,9 +1475,9 @@ out:return error; } -static int i915_drm_suspend_late (struct drm_device *drm_dev,bool hibernation) +static int i915_drm_suspend_late (struct drm_device *dev,bool hibernation) { -struct drm_i915_private *dev_priv =to_i915 (drm_dev); +struct drm_i915_private *dev_priv =to_i915 (dev);bool fw_csr;int ret;
@@ -1511,7 +1511,7 @@ static int i915_drm_suspend_late(struct drm_device *drm_dev, bool hibernation) goto out; } -pci_disable_device (drm_dev->pdev); +pci_disable_device (dev->pdev);/* * During hibernation on some platforms the BIOS may try to access * the device even though it's already in D3 and hang the machine. So
@@ -1525,7 +1525,7 @@ static int i915_drm_suspend_late(struct drm_device *drm_dev, bool hibernation)* Acer Aspire 1830T */ if (!(hibernation &&INTEL_INFO (dev_priv)->gen <6 )) -pci_set_power_state (drm_dev->pdev, PCI_D3hot); +pci_set_power_state (dev->pdev, PCI_D3hot); dev_priv->suspended_to_idle =suspend_to_idle (dev_priv);
@@ -1822,25 +1822,25 @@ error:return ret; } -static int i915_pm_suspend (struct device *dev) +static int i915_pm_suspend (struct device *kdev) { -struct pci_dev *pdev =to_pci_dev (dev); -struct drm_device *drm_dev =pci_get_drvdata (pdev); +struct pci_dev *pdev =to_pci_dev (kdev); +struct drm_device *dev =pci_get_drvdata (pdev); -if (!drm_dev) { -dev_err (dev,"DRM not initialized, aborting suspend.\n" ); +if (!dev) { +dev_err (kdev,"DRM not initialized, aborting suspend.\n" );return -ENODEV ; } -if (drm_dev->switch_power_state ==DRM_SWITCH_POWER_OFF ) +if (dev->switch_power_state ==DRM_SWITCH_POWER_OFF )return 0 ; -return i915_drm_suspend (drm_dev); +return i915_drm_suspend (dev); } -static int i915_pm_suspend_late (struct device *dev) +static int i915_pm_suspend_late (struct device *kdev) { -struct drm_device *drm_dev = &dev_to_i915 (dev)->drm; +struct drm_device *dev = &kdev_to_i915 (kdev)->drm;/* * We have a suspend ordering issue with the snd-hda driver also
@@ -1851,57 +1851,57 @@ static int i915_pm_suspend_late(struct device *dev)* FIXME: This should be solved with a special hdmi sink device or * similar so that power domains can be employed. */ -if (drm_dev->switch_power_state ==DRM_SWITCH_POWER_OFF ) +if (dev->switch_power_state ==DRM_SWITCH_POWER_OFF )return 0 ; -return i915_drm_suspend_late (drm_dev, false); +return i915_drm_suspend_late (dev, false); } -static int i915_pm_poweroff_late (struct device *dev) +static int i915_pm_poweroff_late (struct device *kdev) { -struct drm_device *drm_dev = &dev_to_i915 (dev)->drm; +struct drm_device *dev = &kdev_to_i915 (kdev)->drm; -if (drm_dev->switch_power_state ==DRM_SWITCH_POWER_OFF ) +if (dev->switch_power_state ==DRM_SWITCH_POWER_OFF )return 0 ; -return i915_drm_suspend_late (drm_dev, true); +return i915_drm_suspend_late (dev, true); } -static int i915_pm_resume_early (struct device *dev) +static int i915_pm_resume_early (struct device *kdev) { -struct drm_device *drm_dev = &dev_to_i915 (dev)->drm; +struct drm_device *dev = &kdev_to_i915 (kdev)->drm; -if (drm_dev->switch_power_state ==DRM_SWITCH_POWER_OFF ) +if (dev->switch_power_state ==DRM_SWITCH_POWER_OFF )return 0 ; -return i915_drm_resume_early (drm_dev); +return i915_drm_resume_early (dev); } -static int i915_pm_resume (struct device *dev) +static int i915_pm_resume (struct device *kdev) { -struct drm_device *drm_dev = &dev_to_i915 (dev)->drm; +struct drm_device *dev = &kdev_to_i915 (kdev)->drm; -if (drm_dev->switch_power_state ==DRM_SWITCH_POWER_OFF ) +if (dev->switch_power_state ==DRM_SWITCH_POWER_OFF )return 0 ; -return i915_drm_resume (drm_dev); +return i915_drm_resume (dev); }/* freeze: before creating the hibernation_image */ -static int i915_pm_freeze (struct device *dev) +static int i915_pm_freeze (struct device *kdev) { -return i915_pm_suspend (dev); +return i915_pm_suspend (kdev); } -static int i915_pm_freeze_late (struct device *dev) +static int i915_pm_freeze_late (struct device *kdev) {int ret; - ret =i915_pm_suspend_late (dev); + ret =i915_pm_suspend_late (kdev);if (ret)return ret; - ret =i915_gem_freeze_late (dev_to_i915 (dev)); + ret =i915_gem_freeze_late (kdev_to_i915 (kdev));if (ret)return ret;
@@ -1909,25 +1909,25 @@ static int i915_pm_freeze_late(struct device *dev) }/* thaw: called after creating the hibernation image, but before turning off. */ -static int i915_pm_thaw_early (struct device *dev) +static int i915_pm_thaw_early (struct device *kdev) { -return i915_pm_resume_early (dev); +return i915_pm_resume_early (kdev); } -static int i915_pm_thaw (struct device *dev) +static int i915_pm_thaw (struct device *kdev) { -return i915_pm_resume (dev); +return i915_pm_resume (kdev); }/* restore: called after loading the hibernation image. */ -static int i915_pm_restore_early (struct device *dev) +static int i915_pm_restore_early (struct device *kdev) { -return i915_pm_resume_early (dev); +return i915_pm_resume_early (kdev); } -static int i915_pm_restore (struct device *dev) +static int i915_pm_restore (struct device *kdev) { -return i915_pm_resume (dev); +return i915_pm_resume (kdev); }/*
@@ -2289,9 +2289,9 @@ static int vlv_resume_prepare(struct drm_i915_private *dev_priv,return ret; } -static int intel_runtime_suspend (struct device *device) +static int intel_runtime_suspend (struct device *kdev) { -struct pci_dev *pdev =to_pci_dev (device); +struct pci_dev *pdev =to_pci_dev (kdev);struct drm_device *dev =pci_get_drvdata (pdev);struct drm_i915_private *dev_priv =to_i915 (dev);int ret;
@@ -2317,7 +2317,7 @@ static int intel_runtime_suspend(struct device *device)* Bump the expiration timestamp, otherwise the suspend won't * be rescheduled. */ -pm_runtime_mark_last_busy (device); +pm_runtime_mark_last_busy (kdev);return -EAGAIN ; }
@@ -2396,9 +2396,9 @@ static int intel_runtime_suspend(struct device *device)return 0 ; } -static int intel_runtime_resume (struct device *device) +static int intel_runtime_resume (struct device *kdev) { -struct pci_dev *pdev =to_pci_dev (device); +struct pci_dev *pdev =to_pci_dev (kdev);struct drm_device *dev =pci_get_drvdata (pdev);struct drm_i915_private *dev_priv =to_i915 (dev);int ret =0 ;
drivers/gpu/drm/i915/i915_drv.h +2 -2
@@ -2067,9 +2067,9 @@ static inline struct drm_i915_private *to_i915(const struct drm_device *dev) return container_of(dev, struct drm_i915_private, drm); } -static inline struct drm_i915_private *dev_to_i915 (struct device *dev) +static inline struct drm_i915_private *kdev_to_i915 (struct device *kdev) { -return to_i915 (dev_get_drvdata (dev)); +return to_i915 (dev_get_drvdata (kdev)); }static inline struct drm_i915_private *guc_to_i915 (struct intel_guc *guc)
drivers/gpu/drm/i915/i915_gem_gtt.c +3 -3
@@ -324,16 +324,16 @@ static gen6_pte_t iris_pte_encode(dma_addr_t addr,static int __setup_page_dma (struct drm_device *dev,struct i915_page_dma *p,gfp_t flags) { -struct device *device = &dev->pdev->dev; +struct device *kdev = &dev->pdev->dev; p->page =alloc_page (flags);if (!p->page)return -ENOMEM ; - p->daddr =dma_map_page (device, + p->daddr =dma_map_page (kdev, p->page,0 ,4096 ,PCI_DMA_BIDIRECTIONAL ); -if (dma_mapping_error (device, p->daddr)) { +if (dma_mapping_error (kdev, p->daddr)) {__free_page (p->page);return -EINVAL ; }
drivers/gpu/drm/i915/i915_sysfs.c +31 -31
202 lines not on this page · raw message
drivers/gpu/drm/i915/intel_audio.c +19 -19
@@ -581,20 +581,20 @@ void intel_init_audio_hooks(struct drm_i915_private *dev_priv) } } -static void i915_audio_component_get_power (struct device *dev) +static void i915_audio_component_get_power (struct device *kdev) { -intel_display_power_get (dev_to_i915 (dev),POWER_DOMAIN_AUDIO ); +intel_display_power_get (kdev_to_i915 (kdev),POWER_DOMAIN_AUDIO ); } -static void i915_audio_component_put_power (struct device *dev) +static void i915_audio_component_put_power (struct device *kdev) { -intel_display_power_put (dev_to_i915 (dev),POWER_DOMAIN_AUDIO ); +intel_display_power_put (kdev_to_i915 (kdev),POWER_DOMAIN_AUDIO ); } -static void i915_audio_component_codec_wake_override (struct device *dev, +static void i915_audio_component_codec_wake_override (struct device *kdev,bool enable) { -struct drm_i915_private *dev_priv =dev_to_i915 (dev); +struct drm_i915_private *dev_priv =kdev_to_i915 (kdev);u32 tmp;if (!IS_SKYLAKE (dev_priv) && !IS_KABYLAKE (dev_priv))
@@ -618,9 +618,9 @@ static void i915_audio_component_codec_wake_override(struct device *dev, }/* Get CDCLK in kHz */ -static int i915_audio_component_get_cdclk_freq (struct device *dev) +static int i915_audio_component_get_cdclk_freq (struct device *kdev) { -struct drm_i915_private *dev_priv =dev_to_i915 (dev); +struct drm_i915_private *dev_priv =kdev_to_i915 (kdev);if (WARN_ON_ONCE (!HAS_DDI (dev_priv)))return -ENODEV ;
@@ -628,10 +628,10 @@ static int i915_audio_component_get_cdclk_freq(struct device *dev)return dev_priv->cdclk_freq; } -static int i915_audio_component_sync_audio_rate (struct device *dev, +static int i915_audio_component_sync_audio_rate (struct device *kdev,int port,int rate) { -struct drm_i915_private *dev_priv =dev_to_i915 (dev); +struct drm_i915_private *dev_priv =kdev_to_i915 (kdev);struct intel_encoder *intel_encoder;struct intel_crtc *crtc;struct drm_display_mode *mode;
@@ -701,11 +701,11 @@ static int i915_audio_component_sync_audio_rate(struct device *dev,return err; } -static int i915_audio_component_get_eld (struct device *dev,int port, +static int i915_audio_component_get_eld (struct device *kdev,int port,bool *enabled,unsigned char *buf,int max_bytes) { -struct drm_i915_private *dev_priv =dev_to_i915 (dev); +struct drm_i915_private *dev_priv =kdev_to_i915 (kdev);struct intel_encoder *intel_encoder;struct intel_digital_port *intel_dig_port;const u8 *eld;
@@ -739,11 +739,11 @@ static const struct i915_audio_component_ops i915_audio_component_ops = { .get_eld = i915_audio_component_get_eld, }; -static int i915_audio_component_bind (struct device *i915_dev, -struct device *hda_dev,void *data) +static int i915_audio_component_bind (struct device *i915_kdev, +struct device *hda_kdev,void *data) {struct i915_audio_component *acomp = data; -struct drm_i915_private *dev_priv =dev_to_i915 (i915_dev); +struct drm_i915_private *dev_priv =kdev_to_i915 (i915_kdev);int i;if (WARN_ON (acomp->ops || acomp->dev))
@@ -751,7 +751,7 @@ static int i915_audio_component_bind(struct device *i915_dev,drm_modeset_lock_all (&dev_priv->drm); acomp->ops = &i915_audio_component_ops; - acomp->dev = i915_dev; + acomp->dev = i915_kdev;BUILD_BUG_ON (MAX_PORTS !=I915_MAX_PORTS );for (i =0 ; i <ARRAY_SIZE (acomp->aud_sample_rate); i++) acomp->aud_sample_rate[i] =0 ;
@@ -761,11 +761,11 @@ static int i915_audio_component_bind(struct device *i915_dev,return 0 ; } -static void i915_audio_component_unbind (struct device *i915_dev, -struct device *hda_dev,void *data) +static void i915_audio_component_unbind (struct device *i915_kdev, +struct device *hda_kdev,void *data) {struct i915_audio_component *acomp = data; -struct drm_i915_private *dev_priv =dev_to_i915 (i915_dev); +struct drm_i915_private *dev_priv =kdev_to_i915 (i915_kdev);drm_modeset_lock_all (&dev_priv->drm); acomp->ops =NULL ;
drivers/gpu/drm/i915/intel_runtime_pm.c +18 -18
@@ -2284,7 +2284,7 @@ int intel_power_domains_init(struct drm_i915_private *dev_priv)*/ void intel_power_domains_fini (struct drm_i915_private *dev_priv) { -struct device *device = &dev_priv->drm.pdev->dev; +struct device *kdev = &dev_priv->drm.pdev->dev;/* * The i915.ko module is still not prepared to be loaded when
@@ -2306,7 +2306,7 @@ void intel_power_domains_fini(struct drm_i915_private *dev_priv)* the platform doesn't support runtime PM. */ if (!HAS_RUNTIME_PM (dev_priv)) -pm_runtime_put (device); +pm_runtime_put (kdev); }static void intel_power_domains_sync_hw (struct drm_i915_private *dev_priv)
@@ -2648,9 +2648,9 @@ void intel_power_domains_suspend(struct drm_i915_private *dev_priv)void intel_runtime_pm_get (struct drm_i915_private *dev_priv) {struct drm_device *dev = &dev_priv->drm; -struct device *device = &dev->pdev->dev; +struct device *kdev = &dev->pdev->dev; -pm_runtime_get_sync (device); +pm_runtime_get_sync (kdev);atomic_inc (&dev_priv->pm.wakeref_count);assert_rpm_wakelock_held (dev_priv);
@@ -2669,10 +2669,10 @@ void intel_runtime_pm_get(struct drm_i915_private *dev_priv)bool intel_runtime_pm_get_if_in_use (struct drm_i915_private *dev_priv) {struct drm_device *dev = &dev_priv->drm; -struct device *device = &dev->pdev->dev; +struct device *kdev = &dev->pdev->dev;if (IS_ENABLED (CONFIG_PM )) { -int ret =pm_runtime_get_if_in_use (device); +int ret =pm_runtime_get_if_in_use (kdev);/* * In cases runtime PM is disabled by the RPM core and we get
@@ -2711,10 +2711,10 @@ bool intel_runtime_pm_get_if_in_use(struct drm_i915_private *dev_priv)void intel_runtime_pm_get_noresume (struct drm_i915_private *dev_priv) {struct drm_device *dev = &dev_priv->drm; -struct device *device = &dev->pdev->dev; +struct device *kdev = &dev->pdev->dev;assert_rpm_wakelock_held (dev_priv); -pm_runtime_get_noresume (device); +pm_runtime_get_noresume (kdev);atomic_inc (&dev_priv->pm.wakeref_count); }
@@ -2730,14 +2730,14 @@ void intel_runtime_pm_get_noresume(struct drm_i915_private *dev_priv)void intel_runtime_pm_put (struct drm_i915_private *dev_priv) {struct drm_device *dev = &dev_priv->drm; -struct device *device = &dev->pdev->dev; +struct device *kdev = &dev->pdev->dev;assert_rpm_wakelock_held (dev_priv);if (atomic_dec_and_test (&dev_priv->pm.wakeref_count))atomic_inc (&dev_priv->pm.atomic_seq); -pm_runtime_mark_last_busy (device); -pm_runtime_put_autosuspend (device); +pm_runtime_mark_last_busy (kdev); +pm_runtime_put_autosuspend (kdev); }/**
@@ -2753,10 +2753,10 @@ void intel_runtime_pm_put(struct drm_i915_private *dev_priv)void intel_runtime_pm_enable (struct drm_i915_private *dev_priv) {struct drm_device *dev = &dev_priv->drm; -struct device *device = &dev->pdev->dev; +struct device *kdev = &dev->pdev->dev; -pm_runtime_set_autosuspend_delay (device,10000 );/* 10s */ -pm_runtime_mark_last_busy (device); +pm_runtime_set_autosuspend_delay (kdev,10000 );/* 10s */ +pm_runtime_mark_last_busy (kdev);/* * Take a permanent reference to disable the RPM functionality and drop
@@ -2765,10 +2765,10 @@ void intel_runtime_pm_enable(struct drm_i915_private *dev_priv)* platforms without RPM support. */ if (!HAS_RUNTIME_PM (dev)) { -pm_runtime_dont_use_autosuspend (device); -pm_runtime_get_sync (device); +pm_runtime_dont_use_autosuspend (kdev); +pm_runtime_get_sync (kdev); }else { -pm_runtime_use_autosuspend (device); +pm_runtime_use_autosuspend (kdev); }/*
@@ -2776,6 +2776,6 @@ void intel_runtime_pm_enable(struct drm_i915_private *dev_priv)* We drop that here and will reacquire it during unloading in * intel_power_domains_fini(). */ -pm_runtime_put_autosuspend (device); +pm_runtime_put_autosuspend (kdev); }
Signature · 6 lines
2.8.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 2/4] drm/i915: Consistent struct device naming
Quoted 7 lines · David Weinehall
We currently have a mix of struct device *device, struct device *kdev, and struct device *dev (the latter forcing us to refer to struct
drm_deviceas something else than the normal dev).To simplify things, always use kdev when referring to struct device.
Signed-off-by David Weinehall <[email protected]>
kdev may be confused with kdev_t, but seems reasonable due to kobj.
This patch is an improvement, so
but I was wondering if
struct device *dev;
struct drm_device *drm;
struct i915_device *i915;
(struct i915_device is move apt now than drm_i915_private due to the subclassing)
made more sense as a longterm goal?
-Chris
Signature · 5 lines
Chris Wilson, Intel Open Source Technology Centre _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Joonas Lahtinen
maintainerRe: [PATCH 2/4] drm/i915: Consistent struct device naming
Quoted 11 lines · Chris Wilson
Quoted 8 lines · David Weinehall
We currently have a mix of struct device *device, struct device *kdev, and struct device *dev (the latter forcing us to refer to struct
drm_deviceas something else than the normal dev).To simplify things, always use kdev when referring to struct device.
Signed-off-by David Weinehall <[email protected]>kdev may be confused with
kdev_t, but seems reasonable due to kobj.
Quoted 9 lines
This patch is an improvement, so
Reviewed-by Chris Wilson <[email protected]>but I was wondering if
struct device *dev;
structdrm_device*drm;
structi915_device*i915;
I'd vote for this scheme.
Regards, Joonas
Quoted 6 lines
(struct
i915_deviceis move apt now thandrm_i915_privatedue to the subclassing)made more sense as a longterm goal?
-Chris
Signature · 7 lines
Joonas Lahtinen Open Source Technology Center Intel Corporation _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Jani Nikula
maintainerRe: [PATCH 2/4] drm/i915: Consistent struct device naming
Quoted 15 lines · Joonas Lahtinen
Quoted 14 lines · Chris Wilson
Quoted 8 lines · David Weinehall
We currently have a mix of struct device *device, struct device *kdev, and struct device *dev (the latter forcing us to refer to struct
drm_deviceas something else than the normal dev).To simplify things, always use kdev when referring to struct device.
Signed-off-by David Weinehall <[email protected]>kdev may be confused with
kdev_t, but seems reasonable due to kobj.This patch is an improvement, so
Reviewed-by Chris Wilson <[email protected]>
Quoted 8 lines
Quoted 6 lines
but I was wondering if
struct device *dev;
structdrm_device*drm;
structi915_device*i915;I'd vote for this scheme.
In the driver,
30 out of 52 struct device * decls use "dev".
1233 out of 1251 struct drm_device * decls use "dev".
2112 out of 2154 struct drm_i915_private * decls use "dev_priv".
By all means change struct device *dev to something else, like kdev, or whatever.
But do we really not have better things to do than come up with ways to create tons of rename churn, increasing the cognitive burden of developers, forcing rebases of tons of in-flight code making it harder to get code in, creating conflicts for backporting fixes, and so on?
I'm firmly behind sticking with struct drm_i915_private *dev_priv and struct drm_device *dev.
BR,
Jani.
Quoted 9 lines
Regards, Joonas
Quoted 6 lines
(struct
i915_deviceis move apt now thandrm_i915_privatedue to the subclassing)made more sense as a longterm goal?
-Chris
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 3/4 drm/i915: Consistent drm_minor use
In reply to David WeinehallUse consistent naming for drm_minor, and always use kdev_to_drm_minor() to convert kdev to drm_minor.
--- drivers/gpu/drm/i915/i915_sysfs.c | 52 +++++++++++++++++++-------------------- 1 file changed, 26 insertions(+), 26 deletions(-)
drivers/gpu/drm/i915/i915_sysfs.c +26 -26
@@ -76,7 +76,7 @@ show_rc6_mask(struct device *kdev, struct device_attribute *attr, char *buf)static ssize_t show_rc6_ms (struct device *kdev,struct device_attribute *attr,char *buf) { -struct drm_minor *dminor =dev_get_drvdata (kdev); +struct drm_minor *dminor =kdev_to_drm_minor (kdev);u32 rc6_residency =calc_residency (dminor->dev,GEN6_GT_GFX_RC6 );return snprintf (buf,PAGE_SIZE ,"%u\n" , rc6_residency); }
@@ -100,7 +100,7 @@ show_rc6pp_ms(struct device *kdev, struct device_attribute *attr, char *buf)static ssize_t show_media_rc6_ms (struct device *kdev,struct device_attribute *attr,char *buf) { -struct drm_minor *dminor =dev_get_drvdata (kdev); +struct drm_minor *dminor =kdev_to_drm_minor (kdev);u32 rc6_residency =calc_residency (dminor->dev,VLV_GT_MEDIA_RC6 );return snprintf (buf,PAGE_SIZE ,"%u\n" , rc6_residency); }
@@ -266,8 +266,8 @@ static struct bin_attribute dpf_attrs_1 = {static ssize_t gt_act_freq_mhz_show (struct device *kdev,struct device_attribute *attr,char *buf) { -struct drm_minor *minor =kdev_to_drm_minor (kdev); -struct drm_device *dev = minor->dev; +struct drm_minor *dminor =kdev_to_drm_minor (kdev); +struct drm_device *dev = dminor->dev;struct drm_i915_private *dev_priv =to_i915 (dev);int ret;
@@ -298,8 +298,8 @@ static ssize_t gt_act_freq_mhz_show(struct device *kdev,static ssize_t gt_cur_freq_mhz_show (struct device *kdev,struct device_attribute *attr,char *buf) { -struct drm_minor *minor =kdev_to_drm_minor (kdev); -struct drm_device *dev = minor->dev; +struct drm_minor *dminor =kdev_to_drm_minor (kdev); +struct drm_device *dev = dminor->dev;struct drm_i915_private *dev_priv =to_i915 (dev); return snprintf(buf, PAGE_SIZE, "%d\n",
@@ -309,8 +309,8 @@ static ssize_t gt_cur_freq_mhz_show(struct device *kdev,static ssize_t gt_boost_freq_mhz_show (struct device *kdev,struct device_attribute *attr,char *buf) { -struct drm_minor *minor =kdev_to_drm_minor (kdev); -struct drm_i915_private *dev_priv =to_i915 (minor->dev); +struct drm_minor *dminor =kdev_to_drm_minor (kdev); +struct drm_i915_private *dev_priv =to_i915 (dminor->dev); return snprintf(buf, PAGE_SIZE, "%d\n", intel_gpu_freq(dev_priv,
@@ -321,8 +321,8 @@ static ssize_t gt_boost_freq_mhz_store(struct device *kdev,struct device_attribute *attr, const char *buf, size_t count) { - struct drm_minor *minor = kdev_to_drm_minor(kdev); -struct drm_device *dev = minor->dev; + struct drm_minor *dminor = kdev_to_drm_minor(kdev); +struct drm_device *dev = dminor->dev;struct drm_i915_private *dev_priv =to_i915 (dev);u32 val;ssize_t ret;
@@ -346,8 +346,8 @@ static ssize_t gt_boost_freq_mhz_store(struct device *kdev,static ssize_t vlv_rpe_freq_mhz_show (struct device *kdev,struct device_attribute *attr,char *buf) { -struct drm_minor *minor =kdev_to_drm_minor (kdev); -struct drm_device *dev = minor->dev; +struct drm_minor *dminor =kdev_to_drm_minor (kdev); +struct drm_device *dev = dminor->dev;struct drm_i915_private *dev_priv =to_i915 (dev); return snprintf(buf, PAGE_SIZE, "%d\n",
@@ -357,8 +357,8 @@ static ssize_t vlv_rpe_freq_mhz_show(struct device *kdev,static ssize_t gt_max_freq_mhz_show (struct device *kdev,struct device_attribute *attr,char *buf) { -struct drm_minor *minor =kdev_to_drm_minor (kdev); -struct drm_device *dev = minor->dev; +struct drm_minor *dminor =kdev_to_drm_minor (kdev); +struct drm_device *dev = dminor->dev;struct drm_i915_private *dev_priv =to_i915 (dev); return snprintf(buf, PAGE_SIZE, "%d\n",
@@ -370,8 +370,8 @@ static ssize_t gt_max_freq_mhz_store(struct device *kdev,struct device_attribute *attr, const char *buf, size_t count) { - struct drm_minor *minor = kdev_to_drm_minor(kdev); -struct drm_device *dev = minor->dev; + struct drm_minor *dminor = kdev_to_drm_minor(kdev); +struct drm_device *dev = dminor->dev;struct drm_i915_private *dev_priv =to_i915 (dev);u32 val;ssize_t ret;
@@ -418,8 +418,8 @@ static ssize_t gt_max_freq_mhz_store(struct device *kdev,static ssize_t gt_min_freq_mhz_show (struct device *kdev,struct device_attribute *attr,char *buf) { -struct drm_minor *minor =kdev_to_drm_minor (kdev); -struct drm_device *dev = minor->dev; +struct drm_minor *dminor =kdev_to_drm_minor (kdev); +struct drm_device *dev = dminor->dev;struct drm_i915_private *dev_priv =to_i915 (dev); return snprintf(buf, PAGE_SIZE, "%d\n",
@@ -431,8 +431,8 @@ static ssize_t gt_min_freq_mhz_store(struct device *kdev,struct device_attribute *attr, const char *buf, size_t count) { - struct drm_minor *minor = kdev_to_drm_minor(kdev); -struct drm_device *dev = minor->dev; + struct drm_minor *dminor = kdev_to_drm_minor(kdev); +struct drm_device *dev = dminor->dev;struct drm_i915_private *dev_priv =to_i915 (dev);u32 val;ssize_t ret;
@@ -490,8 +490,8 @@ static DEVICE_ATTR(gt_RPn_freq_mhz, S_IRUGO, gt_rp_mhz_show, NULL);/* For now we have a static number of RP states */ static ssize_t gt_rp_mhz_show (struct device *kdev,struct device_attribute *attr,char *buf) { -struct drm_minor *minor =kdev_to_drm_minor (kdev); -struct drm_device *dev = minor->dev; +struct drm_minor *dminor =kdev_to_drm_minor (kdev); +struct drm_device *dev = dminor->dev;struct drm_i915_private *dev_priv =to_i915 (dev);u32 val;
@@ -538,8 +538,8 @@ static ssize_t error_state_read(struct file *filp, struct kobject *kobj, {struct device *kdev =kobj_to_dev (kobj); -struct drm_minor *minor =kdev_to_drm_minor (kdev); -struct drm_device *dev = minor->dev; +struct drm_minor *dminor =kdev_to_drm_minor (kdev); +struct drm_device *dev = dminor->dev;struct i915_error_state_file_priv error_priv;struct drm_i915_error_state_buf error_str;ssize_t ret_count =0 ;
@@ -573,8 +573,8 @@ static ssize_t error_state_write(struct file *file, struct kobject *kobj, loff_t off, size_t count) {struct device *kdev =kobj_to_dev (kobj); -struct drm_minor *minor =kdev_to_drm_minor (kdev); -struct drm_device *dev = minor->dev; +struct drm_minor *dminor =kdev_to_drm_minor (kdev); +struct drm_device *dev = dminor->dev;int ret;DRM_DEBUG_DRIVER ("Resetting error state\n" );
Signature · 6 lines
2.8.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 3/4] drm/i915: Consistent drm_minor use
Quoted 4 lines · David Weinehall
Use consistent naming for
drm_minor, and always usekdev_to_drm_minor()to convert kdev todrm_minor.Signed-off-by David Weinehall <[email protected]>
I would have gone with struct drm_minor *minor, since there is no confusion here (and dminor is a note ;)
Had you made kdev_to_drm_minor() typesafe (inline function) then I would have classed it as an overall improvement and just grumbled about the choice of name. As it stands, it doesn't make me feel the code is substantially improved.
-Chris
Signature · 5 lines
Chris Wilson, Intel Open Source Technology Centre _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Joonas Lahtinen
maintainerRe: [PATCH 3/4] drm/i915: Consistent drm_minor use
Quoted 9 lines · Chris Wilson
Quoted 5 lines · David Weinehall
Use consistent naming for
drm_minor, and always usekdev_to_drm_minor()to convert kdev todrm_minor.Signed-off-by David Weinehall <[email protected]>I would have gone with struct
drm_minor*minor, since there is no confusion here (and dminor is a note ;)
I think depending on if we end up with kdev or dev, then match with dminor/minor.
Regards, Joonas
Signature · 7 lines
Joonas Lahtinen Open Source Technology Center Intel Corporation _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 4/4 drm/i915: pdev cleanup
In reply to David WeinehallIn an effort to simplify things for a future push of dev_priv instead of dev wherever possible, always take pdev via dev_priv where feasible, eliminating the direct access from dev. Right now this only eliminates a few cases of dev, but it also obviates that we pass dev into a lot of functions where dev_priv would be the more obvious choice.
--- drivers/gpu/drm/i915/i915_drv.c | 58 +++++++++++++++++++-------------- drivers/gpu/drm/i915/i915_gem_gtt.c | 34 +++++++++++-------- drivers/gpu/drm/i915/i915_gem_stolen.c | 17 +++++----- drivers/gpu/drm/i915/i915_gpu_error.c | 9 ++--- drivers/gpu/drm/i915/i915_suspend.c | 6 ++-- drivers/gpu/drm/i915/intel_display.c | 25 +++++++++----- drivers/gpu/drm/i915/intel_fbdev.c | 3 +- drivers/gpu/drm/i915/intel_guc_loader.c | 3 +- drivers/gpu/drm/i915/intel_i2c.c | 3 +- drivers/gpu/drm/i915/intel_runtime_pm.c | 30 +++++++++-------- drivers/gpu/drm/i915/intel_sdvo.c | 4 ++- 11 files changed, 113 insertions(+), 79 deletions(-)
drivers/gpu/drm/i915/i915_drv.c +34 -24
@@ -232,6 +232,7 @@ static int i915_getparam(struct drm_device *dev, void *data, struct drm_file *file_priv) {struct drm_i915_private *dev_priv =to_i915 (dev); +struct pci_dev *pdev = dev_priv->drm.pdev;drm_i915_getparam_t *param = data;int value;
@@ -242,10 +243,10 @@ static int i915_getparam(struct drm_device *dev, void *data,/* Reject all old ums/dri params. */ return -ENODEV ;case I915_PARAM_CHIPSET_ID : - value = dev->pdev->device; + value = pdev->device;break ;case I915_PARAM_REVISION : - value = dev->pdev->revision; + value = pdev->revision;break ;case I915_PARAM_HAS_GEM : value =1 ;
@@ -516,7 +517,7 @@ static void i915_switcheroo_set_state(struct pci_dev *pdev, enum vga_switcheroo_pr_info ("switched on\n" ); dev->switch_power_state =DRM_SWITCH_POWER_CHANGING ;/* i915 resume handler doesn't set to D0 */ -pci_set_power_state (dev->pdev,PCI_D0 ); +pci_set_power_state (pdev,PCI_D0 );i915_resume_switcheroo (dev); dev->switch_power_state =DRM_SWITCH_POWER_ON ; }else {
@@ -585,6 +586,7 @@ static void i915_gem_fini(struct drm_device *dev)static int i915_load_modeset_init (struct drm_device *dev) {struct drm_i915_private *dev_priv =to_i915 (dev); +struct pci_dev *pdev = dev_priv->drm.pdev;int ret;if (i915_inject_load_failure ())
@@ -601,13 +603,13 @@ static int i915_load_modeset_init(struct drm_device *dev)* then we do not take part in VGA arbitration and the * vga_client_register() fails with -ENODEV. */ - ret =vga_client_register (dev->pdev, dev,NULL , i915_vga_set_decode); + ret =vga_client_register (pdev, dev,NULL , i915_vga_set_decode);if (ret && ret != -ENODEV ) goto out;intel_register_dsm_handler (); - ret =vga_switcheroo_register_client (dev->pdev, &i915_switcheroo_ops, false); + ret =vga_switcheroo_register_client (pdev, &i915_switcheroo_ops, false);if (ret) goto cleanup_vga_client;
@@ -659,9 +661,9 @@ cleanup_irq: cleanup_csr:intel_csr_ucode_fini (dev_priv);intel_power_domains_fini (dev_priv); -vga_switcheroo_unregister_client (dev->pdev); +vga_switcheroo_unregister_client (pdev); cleanup_vga_client: -vga_client_register (dev->pdev,NULL ,NULL ,NULL ); +vga_client_register (pdev,NULL ,NULL ,NULL ); out:return ret; }
@@ -879,6 +881,7 @@ static void i915_driver_cleanup_early(struct drm_i915_private *dev_priv)static int i915_mmio_setup (struct drm_device *dev) {struct drm_i915_private *dev_priv =to_i915 (dev); +struct pci_dev *pdev = dev_priv->drm.pdev;int mmio_bar;int mmio_size;
@@ -895,7 +898,7 @@ static int i915_mmio_setup(struct drm_device *dev) mmio_size =512 *1024 ; else mmio_size =2 *1024 *1024 ; - dev_priv->regs =pci_iomap (dev->pdev, mmio_bar, mmio_size); + dev_priv->regs =pci_iomap (pdev, mmio_bar, mmio_size);if (dev_priv->regs ==NULL ) {DRM_ERROR ("failed to map registers\n" );
@@ -911,9 +914,10 @@ static int i915_mmio_setup(struct drm_device *dev)static void i915_mmio_cleanup (struct drm_device *dev) {struct drm_i915_private *dev_priv =to_i915 (dev); +struct pci_dev *pdev = dev_priv->drm.pdev;intel_teardown_mchbar (dev); -pci_iounmap (dev->pdev, dev_priv->regs); +pci_iounmap (pdev, dev_priv->regs); }/**
@@ -992,6 +996,7 @@ static void intel_sanitize_options(struct drm_i915_private *dev_priv)*/ static int i915_driver_init_hw (struct drm_i915_private *dev_priv) { +struct pci_dev *pdev = dev_priv->drm.pdev;struct drm_device *dev = &dev_priv->drm;struct i915_ggtt *ggtt = &dev_priv->ggtt;uint32_t aperture_size;
@@ -1028,11 +1033,11 @@ static int i915_driver_init_hw(struct drm_i915_private *dev_priv) goto out_ggtt; } -pci_set_master (dev->pdev); +pci_set_master (pdev);/* overlay on gen2 is broken and can't address above 1G */ if (IS_GEN2 (dev)) { - ret =dma_set_coherent_mask (&dev->pdev->dev,DMA_BIT_MASK (30 )); + ret =dma_set_coherent_mask (&pdev->dev,DMA_BIT_MASK (30 ));if (ret) {DRM_ERROR ("failed to set DMA mask\n" );
@@ -1050,7 +1055,7 @@ static int i915_driver_init_hw(struct drm_i915_private *dev_priv)* which also needs to be handled carefully. */ if (IS_BROADWATER (dev) ||IS_CRESTLINE (dev)) { - ret =dma_set_coherent_mask (&dev->pdev->dev,DMA_BIT_MASK (32 )); + ret =dma_set_coherent_mask (&pdev->dev,DMA_BIT_MASK (32 ));if (ret) {DRM_ERROR ("failed to set DMA mask\n" );
@@ -1093,7 +1098,7 @@ static int i915_driver_init_hw(struct drm_i915_private *dev_priv)* stuck interrupts on some machines. */ if (!IS_I945G (dev) && !IS_I945GM (dev)) { -if (pci_enable_msi (dev->pdev) <0 ) +if (pci_enable_msi (pdev) <0 )DRM_DEBUG_DRIVER ("can't enable MSI" ); }
@@ -1111,11 +1116,12 @@ out_ggtt:*/ static void i915_driver_cleanup_hw (struct drm_i915_private *dev_priv) { +struct pci_dev *pdev = dev_priv->drm.pdev;struct drm_device *dev = &dev_priv->drm;struct i915_ggtt *ggtt = &dev_priv->ggtt; -if (dev->pdev->msi_enabled) -pci_disable_msi (dev->pdev); +if (pdev->msi_enabled) +pci_disable_msi (pdev);pm_qos_remove_request (&dev_priv->pm_qos);arch_phys_wc_del (ggtt->mtrr);
@@ -1287,6 +1293,7 @@ out_free_priv:void i915_driver_unload (struct drm_device *dev) {struct drm_i915_private *dev_priv =to_i915 (dev); +struct pci_dev *pdev = dev_priv->drm.pdev;intel_fbdev_fini (dev);
@@ -1315,8 +1322,8 @@ void i915_driver_unload(struct drm_device *dev)kfree (dev_priv->vbt.lfp_lvds_vbt_mode); dev_priv->vbt.lfp_lvds_vbt_mode =NULL ; -vga_switcheroo_unregister_client (dev->pdev); -vga_client_register (dev->pdev,NULL ,NULL ,NULL ); +vga_switcheroo_unregister_client (pdev); +vga_client_register (pdev,NULL ,NULL ,NULL );intel_csr_ucode_fini (dev_priv);
@@ -1413,6 +1420,7 @@ static bool suspend_to_idle(struct drm_i915_private *dev_priv)static int i915_drm_suspend (struct drm_device *dev) {struct drm_i915_private *dev_priv =to_i915 (dev); +struct pci_dev *pdev = dev_priv->drm.pdev;pci_power_t opregion_target_state;int error;
@@ -1429,11 +1437,11 @@ static int i915_drm_suspend(struct drm_device *dev)drm_kms_helper_poll_disable (dev); -pci_save_state (dev->pdev); +pci_save_state (pdev); error =i915_gem_suspend (dev);if (error) { -dev_err (&dev->pdev->dev, +dev_err (&pdev->dev,"GEM idle failed, resume might fail\n" ); goto out; }
@@ -1478,6 +1486,7 @@ out:static int i915_drm_suspend_late (struct drm_device *dev,bool hibernation) {struct drm_i915_private *dev_priv =to_i915 (dev); +struct pci_dev *pdev = dev_priv->drm.pdev;bool fw_csr;int ret;
@@ -1511,7 +1520,7 @@ static int i915_drm_suspend_late(struct drm_device *dev, bool hibernation) goto out; } -pci_disable_device (dev->pdev); +pci_disable_device (pdev);/* * During hibernation on some platforms the BIOS may try to access * the device even though it's already in D3 and hang the machine. So
@@ -1525,7 +1534,7 @@ static int i915_drm_suspend_late(struct drm_device *dev, bool hibernation)* Acer Aspire 1830T */ if (!(hibernation &&INTEL_INFO (dev_priv)->gen <6 )) -pci_set_power_state (dev->pdev, PCI_D3hot); +pci_set_power_state (pdev, PCI_D3hot); dev_priv->suspended_to_idle =suspend_to_idle (dev_priv);
@@ -1641,6 +1650,7 @@ static int i915_drm_resume(struct drm_device *dev)static int i915_drm_resume_early (struct drm_device *dev) {struct drm_i915_private *dev_priv =to_i915 (dev); +struct pci_dev *pdev = dev_priv->drm.pdev;int ret;/*
@@ -1663,7 +1673,7 @@ static int i915_drm_resume_early(struct drm_device *dev)* the device powered we can also remove the following set power state * call. */ - ret =pci_set_power_state (dev->pdev,PCI_D0 ); + ret =pci_set_power_state (pdev,PCI_D0 );if (ret) {DRM_ERROR ("failed to set PCI D0 power state (%d)\n" , ret); goto out;
@@ -1682,12 +1692,12 @@ static int i915_drm_resume_early(struct drm_device *dev)* depend on the device enable refcount we can't anyway depend on them * disabling/enabling the device. */ -if (pci_enable_device (dev->pdev)) { +if (pci_enable_device (pdev)) { ret = -EIO ; goto out; } -pci_set_master (dev->pdev); +pci_set_master (pdev);disable_rpm_wakeref_asserts (dev_priv);
drivers/gpu/drm/i915/i915_gem_gtt.c +20 -14
@@ -348,10 +348,12 @@ static int setup_page_dma(struct drm_device *dev, struct i915_page_dma *p)static void cleanup_page_dma (struct drm_device *dev,struct i915_page_dma *p) { +struct pci_dev *pdev = dev->pdev; +if (WARN_ON (!p->page))return ; -dma_unmap_page (&dev->pdev->dev, p->daddr,4096 ,PCI_DMA_BIDIRECTIONAL ); +dma_unmap_page (&pdev->dev, p->daddr,4096 ,PCI_DMA_BIDIRECTIONAL );__free_page (p->page);memset (p,0 ,sizeof (*p)); }
@@ -2718,11 +2720,12 @@ void i915_gem_gtt_finish_object(struct drm_i915_gem_object *obj) {struct drm_device *dev = obj->base.dev;struct drm_i915_private *dev_priv =to_i915 (dev); +struct pci_dev *pdev = dev_priv->drm.pdev;bool interruptible; interruptible =do_idling (dev_priv); -dma_unmap_sg (&dev->pdev->dev, obj->pages->sgl, obj->pages->nents, +dma_unmap_sg (&pdev->dev, obj->pages->sgl, obj->pages->nents,PCI_DMA_BIDIRECTIONAL );undo_idling (dev_priv, interruptible);
@@ -2967,13 +2970,14 @@ static int ggtt_probe_common(struct drm_device *dev, size_t gtt_size) {struct drm_i915_private *dev_priv =to_i915 (dev); +struct pci_dev *pdev = dev_priv->drm.pdev;struct i915_ggtt *ggtt = &dev_priv->ggtt;struct i915_page_scratch *scratch_page;phys_addr_t ggtt_phys_addr;/* For Modern GENs the PTEs and register space are split in the BAR */ - ggtt_phys_addr =pci_resource_start (dev->pdev,0 ) + - (pci_resource_len (dev->pdev,0 ) /2 ); + ggtt_phys_addr =pci_resource_start (pdev,0 ) + + (pci_resource_len (pdev,0 ) /2 );/* * On BXT writes larger than 64 bit to the GTT pagetable range will be
@@ -3081,17 +3085,18 @@ static int gen8_gmch_probe(struct i915_ggtt *ggtt) {struct drm_device *dev = ggtt->base.dev;struct drm_i915_private *dev_priv =to_i915 (dev); +struct pci_dev *pdev = dev_priv->drm.pdev;u16 snb_gmch_ctl;int ret;/* TODO: We're not aware of mappable constraints on gen8 yet */ - ggtt->mappable_base =pci_resource_start (dev->pdev,2 ); - ggtt->mappable_end =pci_resource_len (dev->pdev,2 ); + ggtt->mappable_base =pci_resource_start (pdev,2 ); + ggtt->mappable_end =pci_resource_len (pdev,2 ); -if (!pci_set_dma_mask (dev->pdev,DMA_BIT_MASK (39 ))) -pci_set_consistent_dma_mask (dev->pdev,DMA_BIT_MASK (39 )); +if (!pci_set_dma_mask (pdev,DMA_BIT_MASK (39 ))) +pci_set_consistent_dma_mask (pdev,DMA_BIT_MASK (39 )); -pci_read_config_word (dev->pdev,SNB_GMCH_CTRL , &snb_gmch_ctl); +pci_read_config_word (pdev,SNB_GMCH_CTRL , &snb_gmch_ctl);if (INTEL_INFO (dev)->gen >=9 ) { ggtt->stolen_size =gen9_get_stolen_size (snb_gmch_ctl);
@@ -3130,11 +3135,12 @@ static int gen8_gmch_probe(struct i915_ggtt *ggtt)static int gen6_gmch_probe (struct i915_ggtt *ggtt) {struct drm_device *dev = ggtt->base.dev; +struct pci_dev *pdev = dev->pdev;u16 snb_gmch_ctl;int ret; - ggtt->mappable_base =pci_resource_start (dev->pdev,2 ); - ggtt->mappable_end =pci_resource_len (dev->pdev,2 ); + ggtt->mappable_base =pci_resource_start (pdev,2 ); + ggtt->mappable_end =pci_resource_len (pdev,2 );/* 64/512MB is the current min/max we actually know of, but this is just * a coarse sanity check.
@@ -3144,9 +3150,9 @@ static int gen6_gmch_probe(struct i915_ggtt *ggtt)return -ENXIO ; } -if (!pci_set_dma_mask (dev->pdev,DMA_BIT_MASK (40 ))) -pci_set_consistent_dma_mask (dev->pdev,DMA_BIT_MASK (40 )); -pci_read_config_word (dev->pdev,SNB_GMCH_CTRL , &snb_gmch_ctl); +if (!pci_set_dma_mask (pdev,DMA_BIT_MASK (40 ))) +pci_set_consistent_dma_mask (pdev,DMA_BIT_MASK (40 )); +pci_read_config_word (pdev,SNB_GMCH_CTRL , &snb_gmch_ctl); ggtt->stolen_size =gen6_get_stolen_size (snb_gmch_ctl); ggtt->size =gen6_get_total_gtt_size (snb_gmch_ctl);
drivers/gpu/drm/i915/i915_gem_stolen.c +9 -8
@@ -92,6 +92,7 @@ void i915_gem_stolen_remove_node(struct drm_i915_private *dev_priv,static unsigned long i915_stolen_to_physical (struct drm_device *dev) {struct drm_i915_private *dev_priv =to_i915 (dev); +struct pci_dev *pdev = dev_priv->drm.pdev;struct i915_ggtt *ggtt = &dev_priv->ggtt;struct resource *r;u32 base;
@@ -111,7 +112,7 @@ static unsigned long i915_stolen_to_physical(struct drm_device *dev)if (INTEL_INFO (dev)->gen >=3 ) {u32 bsm; -pci_read_config_dword (dev->pdev,INTEL_BSM , &bsm); +pci_read_config_dword (pdev,INTEL_BSM , &bsm); base = bsm &INTEL_BSM_MASK ; }else if (IS_I865G (dev)) {
@@ -122,7 +123,7 @@ static unsigned long i915_stolen_to_physical(struct drm_device *dev)* always at TOUD? Ie. is it always the last * one to be allocated by the BIOS? */ -pci_bus_read_config_word (dev->pdev->bus,PCI_DEVFN (0 ,0 ), +pci_bus_read_config_word (pdev->bus,PCI_DEVFN (0 ,0 ),I865_TOUD , &toud); base = toud <<16 ;
@@ -131,13 +132,13 @@ static unsigned long i915_stolen_to_physical(struct drm_device *dev)u32 tom;u8 tmp; -pci_bus_read_config_byte (dev->pdev->bus,PCI_DEVFN (0 ,0 ), +pci_bus_read_config_byte (pdev->bus,PCI_DEVFN (0 ,0 ),I85X_ESMRAMC , &tmp);if (tmp &TSEG_ENABLE ) tseg_size =MB (1 ); -pci_bus_read_config_byte (dev->pdev->bus,PCI_DEVFN (0 ,1 ), +pci_bus_read_config_byte (pdev->bus,PCI_DEVFN (0 ,1 ),I85X_DRB3 , &tmp); tom = tmp *MB (32 );
@@ -147,7 +148,7 @@ static unsigned long i915_stolen_to_physical(struct drm_device *dev)u32 tom;u8 tmp; -pci_bus_read_config_byte (dev->pdev->bus,PCI_DEVFN (0 ,0 ), +pci_bus_read_config_byte (pdev->bus,PCI_DEVFN (0 ,0 ),I845_ESMRAMC , &tmp);if (tmp &TSEG_ENABLE ) {
@@ -161,7 +162,7 @@ static unsigned long i915_stolen_to_physical(struct drm_device *dev) } } -pci_bus_read_config_byte (dev->pdev->bus,PCI_DEVFN (0 ,0 ), +pci_bus_read_config_byte (pdev->bus,PCI_DEVFN (0 ,0 ),I830_DRB3 , &tmp); tom = tmp *MB (32 );
@@ -171,7 +172,7 @@ static unsigned long i915_stolen_to_physical(struct drm_device *dev)u32 tom;u8 tmp; -pci_bus_read_config_byte (dev->pdev->bus,PCI_DEVFN (0 ,0 ), +pci_bus_read_config_byte (pdev->bus,PCI_DEVFN (0 ,0 ),I830_ESMRAMC , &tmp);if (tmp &TSEG_ENABLE ) {
@@ -181,7 +182,7 @@ static unsigned long i915_stolen_to_physical(struct drm_device *dev) tseg_size =KB (512 ); } -pci_bus_read_config_byte (dev->pdev->bus,PCI_DEVFN (0 ,0 ), +pci_bus_read_config_byte (pdev->bus,PCI_DEVFN (0 ,0 ),I830_DRB3 , &tmp); tom = tmp *MB (32 );
drivers/gpu/drm/i915/i915_gpu_error.c +5 -4
@@ -328,6 +328,7 @@ int i915_error_state_to_str(struct drm_i915_error_state_buf *m, {struct drm_device *dev = error_priv->dev;struct drm_i915_private *dev_priv =to_i915 (dev); +struct pci_dev *pdev = dev_priv->drm.pdev;struct drm_i915_error_state *error = error_priv->error;struct drm_i915_error_object *obj;int i, j, offset, elt;
@@ -358,11 +359,11 @@ int i915_error_state_to_str(struct drm_i915_error_state_buf *m, }err_printf (m,"Reset count: %u\n" , error->reset_count);err_printf (m,"Suspend count: %u\n" , error->suspend_count); -err_printf (m,"PCI ID: 0x%04x\n" , dev->pdev->device); -err_printf (m,"PCI Revision: 0x%02x\n" , dev->pdev->revision); +err_printf (m,"PCI ID: 0x%04x\n" , pdev->device); +err_printf (m,"PCI Revision: 0x%02x\n" , pdev->revision);err_printf (m,"PCI Subsystem: %04x:%04x\n" , - dev->pdev->subsystem_vendor, - dev->pdev->subsystem_device); + pdev->subsystem_vendor, + pdev->subsystem_device);err_printf (m,"IOMMU enabled?: %d\n" , error->iommu);if (HAS_CSR (dev)) {
drivers/gpu/drm/i915/i915_suspend.c +4 -2
@@ -104,6 +104,7 @@ static void i915_restore_display(struct drm_device *dev)int i915_save_state (struct drm_device *dev) {struct drm_i915_private *dev_priv =to_i915 (dev); +struct pci_dev *pdev = dev_priv->drm.pdev;int i;mutex_lock (&dev->struct_mutex);
@@ -111,7 +112,7 @@ int i915_save_state(struct drm_device *dev)i915_save_display (dev);if (IS_GEN4 (dev)) -pci_read_config_word (dev->pdev,GCDGMBUS , +pci_read_config_word (pdev,GCDGMBUS , &dev_priv->regfile.saveGCDGMBUS);/* Cache mode state */
@@ -149,6 +150,7 @@ int i915_save_state(struct drm_device *dev)int i915_restore_state (struct drm_device *dev) {struct drm_i915_private *dev_priv =to_i915 (dev); +struct pci_dev *pdev = dev_priv->drm.pdev;int i;mutex_lock (&dev->struct_mutex);
@@ -156,7 +158,7 @@ int i915_restore_state(struct drm_device *dev)i915_gem_restore_fences (dev);if (IS_GEN4 (dev)) -pci_write_config_word (dev->pdev,GCDGMBUS , +pci_write_config_word (pdev,GCDGMBUS , dev_priv->regfile.saveGCDGMBUS);i915_restore_display (dev);
drivers/gpu/drm/i915/intel_display.c +16 -9
@@ -6814,9 +6814,10 @@ static int i9xx_misc_get_display_clock_speed(struct drm_device *dev)static int pnv_get_display_clock_speed (struct drm_device *dev) { +struct pci_dev *pdev = dev->pdev;u16 gcfgc =0 ; -pci_read_config_word (dev->pdev,GCFGC , &gcfgc); +pci_read_config_word (pdev,GCFGC , &gcfgc);switch (gcfgc &GC_DISPLAY_CLOCK_MASK ) {case GC_DISPLAY_CLOCK_267_MHZ_PNV :
@@ -6838,9 +6839,10 @@ static int pnv_get_display_clock_speed(struct drm_device *dev)static int i915gm_get_display_clock_speed (struct drm_device *dev) { +struct pci_dev *pdev = dev->pdev;u16 gcfgc =0 ; -pci_read_config_word (dev->pdev,GCFGC , &gcfgc); +pci_read_config_word (pdev,GCFGC , &gcfgc);if (gcfgc &GC_LOW_FREQUENCY_ENABLE )return 133333 ;
@@ -6862,6 +6864,7 @@ static int i865_get_display_clock_speed(struct drm_device *dev)static int i85x_get_display_clock_speed (struct drm_device *dev) { +struct pci_dev *pdev = dev->pdev;u16 hpllcc =0 ;/*
@@ -6869,10 +6872,10 @@ static int i85x_get_display_clock_speed(struct drm_device *dev)* encoding is different :( * FIXME is this the right way to detect 852GM/852GMV? */ -if (dev->pdev->revision ==0x1 ) +if (pdev->revision ==0x1 )return 133333 ; -pci_bus_read_config_word (dev->pdev->bus, +pci_bus_read_config_word (pdev->bus,PCI_DEVFN (0 ,3 ),HPLLCC , &hpllcc);/* Assume that the hardware is in the high speed state. This
@@ -6973,10 +6976,11 @@ static unsigned int intel_hpll_vco(struct drm_device *dev)static int gm45_get_display_clock_speed (struct drm_device *dev) { +struct pci_dev *pdev = dev->pdev;unsigned int cdclk_sel, vco =intel_hpll_vco (dev);uint16_t tmp =0 ; -pci_read_config_word (dev->pdev,GCFGC , &tmp); +pci_read_config_word (pdev,GCFGC , &tmp); cdclk_sel = (tmp >>12 ) &0x1 ;
@@ -6995,6 +6999,7 @@ static int gm45_get_display_clock_speed(struct drm_device *dev)static int i965gm_get_display_clock_speed (struct drm_device *dev) { +struct pci_dev *pdev = dev->pdev;static const uint8_t div_3200[] = {16 ,10 ,8 };static const uint8_t div_4000[] = {20 ,12 ,10 };static const uint8_t div_5333[] = {24 ,16 ,14 };
@@ -7002,7 +7007,7 @@ static int i965gm_get_display_clock_speed(struct drm_device *dev)unsigned int cdclk_sel, vco =intel_hpll_vco (dev);uint16_t tmp =0 ; -pci_read_config_word (dev->pdev,GCFGC , &tmp); +pci_read_config_word (pdev,GCFGC , &tmp); cdclk_sel = ((tmp >>8 ) &0x1f ) -1 ;
@@ -7032,6 +7037,7 @@ fail:static int g33_get_display_clock_speed (struct drm_device *dev) { +struct pci_dev *pdev = dev->pdev;static const uint8_t div_3200[] = {12 ,10 ,8 ,7 ,5 ,16 };static const uint8_t div_4000[] = {14 ,12 ,10 ,8 ,6 ,20 };static const uint8_t div_4800[] = {20 ,14 ,12 ,10 ,8 ,24 };
@@ -7040,7 +7046,7 @@ static int g33_get_display_clock_speed(struct drm_device *dev)unsigned int cdclk_sel, vco =intel_hpll_vco (dev);uint16_t tmp =0 ; -pci_read_config_word (dev->pdev,GCFGC , &tmp); +pci_read_config_word (pdev,GCFGC , &tmp); cdclk_sel = (tmp >>4 ) &0x7 ;
@@ -15470,15 +15476,16 @@ static void intel_init_quirks(struct drm_device *dev)static void i915_disable_vga (struct drm_device *dev) {struct drm_i915_private *dev_priv =to_i915 (dev); +struct pci_dev *pdev = dev_priv->drm.pdev;u8 sr1;i915_reg_t vga_reg =i915_vgacntrl_reg (dev);/* WaEnableVGAAccessThroughIOPort:ctg,elk,ilk,snb,ivb,vlv,hsw */ -vga_get_uninterruptible (dev->pdev,VGA_RSRC_LEGACY_IO ); +vga_get_uninterruptible (pdev,VGA_RSRC_LEGACY_IO );outb (SR01 ,VGA_SR_INDEX ); sr1 =inb (VGA_SR_DATA );outb (sr1 |1 <<5 ,VGA_SR_DATA ); -vga_put (dev->pdev,VGA_RSRC_LEGACY_IO ); +vga_put (pdev,VGA_RSRC_LEGACY_IO );udelay (300 );I915_WRITE (vga_reg,VGA_DISP_DISABLE );
drivers/gpu/drm/i915/intel_fbdev.c +2 -1
@@ -183,6 +183,7 @@ static int intelfb_create(struct drm_fb_helper *helper,struct intel_framebuffer *intel_fb = ifbdev->fb;struct drm_device *dev = helper->dev;struct drm_i915_private *dev_priv =to_i915 (dev); +struct pci_dev *pdev = dev_priv->drm.pdev;struct i915_ggtt *ggtt = &dev_priv->ggtt;struct fb_info *info;struct drm_framebuffer *fb;
@@ -283,7 +284,7 @@ static int intelfb_create(struct drm_fb_helper *helper, i915_gem_obj_ggtt_offset(obj), obj);mutex_unlock (&dev->struct_mutex); -vga_switcheroo_client_fb_set (dev->pdev, info); +vga_switcheroo_client_fb_set (pdev, info);return 0 ; out_destroy_fbi:
drivers/gpu/drm/i915/intel_guc_loader.c +2 -1
@@ -553,6 +553,7 @@ fail:static void guc_fw_fetch (struct drm_device *dev,struct intel_guc_fw *guc_fw) { +struct pci_dev *pdev = dev->pdev;struct drm_i915_gem_object *obj;const struct firmware *fw;struct guc_css_header *css;
@@ -562,7 +563,7 @@ static void guc_fw_fetch(struct drm_device *dev, struct intel_guc_fw *guc_fw)DRM_DEBUG_DRIVER ("before requesting firmware: GuC fw fetch status %s\n" ,intel_guc_fw_status_repr (guc_fw->guc_fw_fetch_status)); - err =request_firmware (&fw, guc_fw->guc_fw_path, &dev->pdev->dev); + err =request_firmware (&fw, guc_fw->guc_fw_path, &pdev->dev);if (err) goto fail;if (!fw)
drivers/gpu/drm/i915/intel_i2c.c +2 -1
@@ -633,6 +633,7 @@ static const struct i2c_algorithm gmbus_algorithm = {int intel_setup_gmbus (struct drm_device *dev) {struct drm_i915_private *dev_priv =to_i915 (dev); +struct pci_dev *pdev = dev_priv->drm.pdev;struct intel_gmbus *bus;unsigned int pin;int ret;
@@ -663,7 +664,7 @@ int intel_setup_gmbus(struct drm_device *dev)"i915 gmbus %s" , get_gmbus_pin(dev_priv, pin)->name); - bus->adapter.dev.parent = &dev->pdev->dev; + bus->adapter.dev.parent = &pdev->dev; bus->dev_priv = dev_priv; bus->adapter.algo = &gmbus_algorithm;
drivers/gpu/drm/i915/intel_runtime_pm.c +16 -14
@@ -287,6 +287,7 @@ void intel_display_set_init_power(struct drm_i915_private *dev_priv,*/ static void hsw_power_well_post_enable (struct drm_i915_private *dev_priv) { +struct pci_dev *pdev = dev_priv->drm.pdev;struct drm_device *dev = &dev_priv->drm;/*
@@ -299,9 +300,9 @@ static void hsw_power_well_post_enable(struct drm_i915_private *dev_priv)* sure vgacon can keep working normally without triggering interrupts * and error messages. */ -vga_get_uninterruptible (dev->pdev,VGA_RSRC_LEGACY_IO ); +vga_get_uninterruptible (pdev,VGA_RSRC_LEGACY_IO );outb (inb (VGA_MSR_READ ),VGA_MSR_WRITE ); -vga_put (dev->pdev,VGA_RSRC_LEGACY_IO ); +vga_put (pdev,VGA_RSRC_LEGACY_IO );if (IS_BROADWELL (dev)) gen8_irq_power_well_post_enable(dev_priv,
@@ -318,7 +319,7 @@ static void hsw_power_well_pre_disable(struct drm_i915_private *dev_priv)static void skl_power_well_post_enable (struct drm_i915_private *dev_priv,struct i915_power_well *power_well) { -struct drm_device *dev = &dev_priv->drm; +struct pci_dev *pdev = dev_priv->drm.pdev;/* * After we re-enable the power well, if we touch VGA register 0x3d5
@@ -331,9 +332,9 @@ static void skl_power_well_post_enable(struct drm_i915_private *dev_priv,* and error messages. */ if (power_well->data ==SKL_DISP_PW_2 ) { -vga_get_uninterruptible (dev->pdev,VGA_RSRC_LEGACY_IO ); +vga_get_uninterruptible (pdev,VGA_RSRC_LEGACY_IO );outb (inb (VGA_MSR_READ ),VGA_MSR_WRITE ); -vga_put (dev->pdev,VGA_RSRC_LEGACY_IO ); +vga_put (pdev,VGA_RSRC_LEGACY_IO );gen8_irq_power_well_post_enable (dev_priv,1 <<PIPE_C |1 <<PIPE_B );
@@ -2647,8 +2648,8 @@ void intel_power_domains_suspend(struct drm_i915_private *dev_priv)*/ void intel_runtime_pm_get (struct drm_i915_private *dev_priv) { -struct drm_device *dev = &dev_priv->drm; -struct device *kdev = &dev->pdev->dev; +struct pci_dev *pdev = dev_priv->drm.pdev; +struct device *kdev = &pdev->dev;pm_runtime_get_sync (kdev);
@@ -2668,8 +2669,8 @@ void intel_runtime_pm_get(struct drm_i915_private *dev_priv)*/ bool intel_runtime_pm_get_if_in_use (struct drm_i915_private *dev_priv) { -struct drm_device *dev = &dev_priv->drm; -struct device *kdev = &dev->pdev->dev; +struct pci_dev *pdev = dev_priv->drm.pdev; +struct device *kdev = &pdev->dev;if (IS_ENABLED (CONFIG_PM )) {int ret =pm_runtime_get_if_in_use (kdev);
@@ -2710,8 +2711,8 @@ bool intel_runtime_pm_get_if_in_use(struct drm_i915_private *dev_priv)*/ void intel_runtime_pm_get_noresume (struct drm_i915_private *dev_priv) { -struct drm_device *dev = &dev_priv->drm; -struct device *kdev = &dev->pdev->dev; +struct pci_dev *pdev = dev_priv->drm.pdev; +struct device *kdev = &pdev->dev;assert_rpm_wakelock_held (dev_priv);pm_runtime_get_noresume (kdev);
@@ -2729,8 +2730,8 @@ void intel_runtime_pm_get_noresume(struct drm_i915_private *dev_priv)*/ void intel_runtime_pm_put (struct drm_i915_private *dev_priv) { -struct drm_device *dev = &dev_priv->drm; -struct device *kdev = &dev->pdev->dev; +struct pci_dev *pdev = dev_priv->drm.pdev; +struct device *kdev = &pdev->dev;assert_rpm_wakelock_held (dev_priv);if (atomic_dec_and_test (&dev_priv->pm.wakeref_count))
@@ -2752,8 +2753,9 @@ void intel_runtime_pm_put(struct drm_i915_private *dev_priv)*/ void intel_runtime_pm_enable (struct drm_i915_private *dev_priv) { +struct pci_dev *pdev = dev_priv->drm.pdev;struct drm_device *dev = &dev_priv->drm; -struct device *kdev = &dev->pdev->dev; +struct device *kdev = &pdev->dev;pm_runtime_set_autosuspend_delay (kdev,10000 );/* 10s */ pm_runtime_mark_last_busy (kdev);
drivers/gpu/drm/i915/intel_sdvo.c +3 -1
@@ -2930,10 +2930,12 @@ static bool intel_sdvo_init_ddc_proxy(struct intel_sdvo *sdvo, struct drm_device *dev) { + struct pci_dev *pdev = dev->pdev; + sdvo->ddc.owner =THIS_MODULE ; sdvo->ddc.class =I2C_CLASS_DDC ;snprintf (sdvo->ddc.name,I2C_NAME_SIZE ,"SDVO DDC proxy" ); - sdvo->ddc.dev.parent = &dev->pdev->dev; + sdvo->ddc.dev.parent = &pdev->dev; sdvo->ddc.algo_data = sdvo; sdvo->ddc.algo = &intel_sdvo_ddc_proxy;
Signature · 6 lines
2.8.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 4/4] drm/i915: pdev cleanup
Quoted 8 lines · David Weinehall
In an effort to simplify things for a future push of
dev_privinstead of dev wherever possible, always take pdev viadev_privwhere feasible, eliminating the direct access from dev. Right now this only eliminates a few cases of dev, but it also obviates that we pass dev into a lot of functions wheredev_privwould be the more obvious choice.Signed-off-by David Weinehall <[email protected]>
-Chris
Signature · 5 lines
Chris Wilson, Intel Open Source Technology Centre _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Ro.CI.BAT: failure for Various cleanup
In reply to David Weinehall== Series Details ==
== Series Details ==
Series: Various cleanup
URL : https://patchwork.freedesktop.org/series/10458/
State : failure
== Summary ==
Series 10458v1 Various cleanup
http://patchwork.freedesktop.org/api/1.0/series/10458/revisions/1/mbox
Test drv_module_reload_basic:
pass -> SKIP (ro-hsw-i7-4770r)
Test kms_cursor_legacy:
Subgroup basic-cursor-vs-flip-legacy:
fail -> PASS (ro-ilk1-i5-650)
Subgroup basic-flip-vs-cursor-legacy:
fail -> PASS (fi-hsw-i7-4770k)
Subgroup basic-flip-vs-cursor-varying-size:
fail -> PASS (ro-hsw-i7-4770r)
pass -> FAIL (ro-snb-i7-2620M)
Test kms_flip:
Subgroup basic-flip-vs-wf_vblank:
pass -> FAIL (ro-byt-n2820)fi-hsw-i7-4770k total:239 pass:217 dwarn:0 dfail:0 fail:0 skip:22 fi-kbl-qkkr total:239 pass:181 dwarn:30 dfail:0 fail:2 skip:26 fi-skl-i5-6260u total:239 pass:223 dwarn:0 dfail:0 fail:2 skip:14 fi-skl-i7-6700k total:239 pass:207 dwarn:0 dfail:0 fail:4 skip:28 fi-snb-i7-2600 total:239 pass:197 dwarn:0 dfail:0 fail:0 skip:42 ro-bdw-i5-5250u total:240 pass:219 dwarn:4 dfail:0 fail:1 skip:16 ro-bdw-i7-5557U total:240 pass:224 dwarn:0 dfail:0 fail:0 skip:16 ro-bdw-i7-5600u total:240 pass:207 dwarn:0 dfail:0 fail:1 skip:32 ro-bsw-n3050 total:240 pass:194 dwarn:0 dfail:0 fail:4 skip:42 ro-byt-n2820 total:240 pass:196 dwarn:0 dfail:0 fail:4 skip:40 ro-hsw-i3-4010u total:240 pass:214 dwarn:0 dfail:0 fail:0 skip:26 ro-hsw-i7-4770r total:240 pass:213 dwarn:0 dfail:0 fail:0 skip:27 ro-ilk-i7-620lm total:240 pass:173 dwarn:1 dfail:0 fail:1 skip:65 ro-ilk1-i5-650 total:235 pass:174 dwarn:0 dfail:0 fail:1 skip:60 ro-ivb-i7-3770 total:240 pass:205 dwarn:0 dfail:0 fail:0 skip:35 ro-ivb2-i7-3770 total:240 pass:209 dwarn:0 dfail:0 fail:0 skip:31 ro-skl3-i5-6260u total:240 pass:222 dwarn:0 dfail:0 fail:4 skip:14 ro-snb-i7-2620M total:240 pass:197 dwarn:0 dfail:0 fail:2 skip:41
Results at /archive/results/CI_IGT_test/RO_Patchwork_1657/
6f87e85 drm-intel-nightly: 2016y-08m-01d-14h-53m-17s UTC integration manifest 41390c7 drm/i915: pdev cleanup
107bbb0 drm/i915: Consistent drm_minor use
5e1995d drm/i915: Consistent struct device naming
a8d01a3 drm/i915: Cosmetic fixes in i915_drv.h
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx