drm/i915: Move drm_vblank_init() to i915_load_modeset_init()
Subsystems (2)
PATCH 1/4 drm/i915: Move drm_vblank_init() to i915_load_modeset_init()
i915_load_modeset_init() is a more suitable place than i915_driver_load() as vblank is part of modeset.
--- drivers/gpu/drm/i915/i915_drv.c | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-)
drivers/gpu/drm/i915/i915_drv.c +7 -12
@@ -645,6 +645,13 @@ static int i915_load_modeset_init(struct drm_device *dev)if (i915_inject_load_failure ())return -ENODEV ; +if (INTEL_INFO (dev_priv)->num_pipes) { + ret =drm_vblank_init (&dev_priv->drm, +INTEL_INFO (dev_priv)->num_pipes); +if (ret) + goto out; + } +intel_bios_init (dev_priv);/* If we have > 1 VGA cards, then we need to arbitrate access
@@ -1712,18 +1719,6 @@ int i915_driver_load(struct pci_dev *pdev, const struct pci_device_id *ent)if (ret <0 ) goto out_cleanup_mmio; -/* -* TODO: move the vblank init and parts of modeset init steps into one -* of the i915_driver_init_/i915_driver_register functions according -* to the role/effect of the given init step. -*/ -if (INTEL_INFO (dev_priv)->num_pipes) { - ret =drm_vblank_init (&dev_priv->drm, -INTEL_INFO (dev_priv)->num_pipes); -if (ret) - goto out_cleanup_hw; - } - ret =i915_load_modeset_init (&dev_priv->drm);if (ret <0 ) goto out_cleanup_hw;
Signature · 6 lines
2.19.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/4 drm/i915: Move FBC init and cleanup calls to modeset functions
Although FBC helps save power it do not belongs to power management also the cleanup was placed in i915_driver_unload() also not a good place. intel_modeset_init()/intel_modeset_cleanup() are better places also this will help make easy disable features that depends in display being enabled in driver.
--- drivers/gpu/drm/i915/i915_drv.c | 1 - drivers/gpu/drm/i915/intel_display.c | 4 ++++ drivers/gpu/drm/i915/intel_pm.c | 2 -- 3 files changed, 4 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/i915_drv.c +0 -1
@@ -1778,7 +1778,6 @@ void i915_driver_unload(struct drm_device *dev)i915_reset_error_state (dev_priv);i915_gem_fini (dev_priv); -intel_fbc_cleanup_cfb (dev_priv);intel_power_domains_fini_hw (dev_priv);
drivers/gpu/drm/i915/intel_display.c +4 -0
@@ -15016,6 +15016,8 @@ int intel_modeset_init(struct drm_device *dev)intel_init_quirks (dev_priv); +intel_fbc_init (dev_priv); +intel_init_pm (dev_priv);/*
@@ -15829,6 +15831,8 @@ void intel_modeset_cleanup(struct drm_device *dev)intel_teardown_gmbus (dev_priv);destroy_workqueue (dev_priv->modeset_wq); + +intel_fbc_cleanup_cfb (dev_priv); }/*
drivers/gpu/drm/i915/intel_pm.c +0 -2
@@ -9435,8 +9435,6 @@ void intel_init_clock_gating_hooks(struct drm_i915_private *dev_priv)/* Set up chip specific power management-related functions */ void intel_init_pm (struct drm_i915_private *dev_priv) { -intel_fbc_init (dev_priv); -/* For cxsr */ if (IS_PINEVIEW (dev_priv))i915_pineview_get_mem_freq (dev_priv);
Signature · 6 lines
2.19.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 2/4] drm/i915: Move FBC init and cleanup calls to modeset functions
Quoted 41 lines · José Roberto de Souza
Although FBC helps save power it do not belongs to power management also the cleanup was placed in
i915_driver_unload()also not a good place. intel_modeset_init()/intel_modeset_cleanup() are better places also this will help make easy disable features that depends in display being enabled in driver.Cc Jani Nikula <[email protected]>Cc Ville Syrjälä <[email protected]>Signed-off-by José Roberto de Souza <[email protected]>--- drivers/gpu/drm/i915/i915_drv.c | 1 - drivers/gpu/drm/i915/intel_display.c | 4 ++++ drivers/gpu/drm/i915/intel_pm.c | 2 -- 3 files changed, 4 insertions(+), 3 deletions(-)drivers/gpu/drm/i915/i915_drv.c +0
-1@@ -1778,7 +1778,6 @@ void i915_driver_unload(struct drm_device *dev)i915_reset_error_state (dev_priv);i915_gem_fini (dev_priv); -intel_fbc_cleanup_cfb (dev_priv);intel_power_domains_fini_hw (dev_priv);drivers/gpu/drm/i915/intel_display.c +2
-0@@ -15016,6 +15016,8 @@ int intel_modeset_init(struct drm_device *dev)intel_init_quirks (dev_priv); +intel_fbc_init (dev_priv); +intel_init_pm (dev_priv);/*
drivers/gpu/drm/i915/intel_display.c void intel_modeset_cleanup(struct drm_device *dev) · line 15835
Quoted 5 lines
drivers/gpu/drm/i915/intel_display.c +2
-0@@ -15829,6 +15831,8 @@ void intel_modeset_cleanup(struct drm_device *dev)intel_teardown_gmbus (dev_priv);destroy_workqueue (dev_priv->modeset_wq); + +intel_fbc_cleanup_cfb (dev_priv);
This whole thing is a bit dubious. Presumably we should have cleaned this up already when we disabled all the outputs. But fbc could use a bit of work in general so no point in worrying about such details now.
Quoted 18 lines
drivers/gpu/drm/i915/intel_display.c +0
-0}/* drivers/gpu/drm/i915/intel_pm.c +0
-2@@ -9435,8 +9435,6 @@ void intel_init_clock_gating_hooks(struct drm_i915_private *dev_priv)/* Set up chip specific power management-related functions */ void intel_init_pm (struct drm_i915_private *dev_priv) { -intel_fbc_init (dev_priv); -/* For cxsr */ if (IS_PINEVIEW (dev_priv))i915_pineview_get_mem_freq (dev_priv);Signature · 1 line
2.19.1
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 3/4 drm/i915: Move intel_init_ipc() call to i915_load_modeset_init()
In reply to José Roberto de SouzaIPC is a display feature, so i915_load_modeset_init() is the right place to initialize it.
--- drivers/gpu/drm/i915/i915_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/i915_drv.c +2 -2
@@ -706,6 +706,8 @@ static int i915_load_modeset_init(struct drm_device *dev)/* Only enable hotplug handling once the fbdev is fully set up. */ intel_hpd_init (dev_priv); +intel_init_ipc (dev_priv); +return 0 ; cleanup_gem:
@@ -1725,8 +1727,6 @@ int i915_driver_load(struct pci_dev *pdev, const struct pci_device_id *ent)i915_driver_register (dev_priv); -intel_init_ipc (dev_priv); -enable_rpm_wakeref_asserts (dev_priv);i915_welcome_messages (dev_priv);
Signature · 6 lines
2.19.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 3/4] drm/i915: Move intel_init_ipc() call to i915_load_modeset_init()
Quoted 15 lines · José Roberto de Souza
IPC is a display feature, so
i915_load_modeset_init()is the right place to initialize it.Cc Jani Nikula <[email protected]>Cc Ville Syrjälä <[email protected]>Signed-off-by José Roberto de Souza <[email protected]>--- drivers/gpu/drm/i915/i915_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/i915_drv.c +0
-0
drivers/gpu/drm/i915/i915_drv.c static int i915_load_modeset_init(struct drm_device *dev) · line 710
Quoted 5 lines
drivers/gpu/drm/i915/i915_drv.c +2
-0@@ -706,6 +706,8 @@ static int i915_load_modeset_init(struct drm_device *dev)/* Only enable hotplug handling once the fbdev is fully set up. */ intel_hpd_init (dev_priv); +intel_init_ipc (dev_priv); +
Hrm. So we won't actually use ipc for whatever initial commits we do during the setup. That seems a bit odd. Oh well, one more thing to put on the skl wm TODO list.
Patch is
Quoted 14 lines
drivers/gpu/drm/i915/i915_drv.c +0
-2return 0 ; cleanup_gem:@@ -1725,8 +1727,6 @@ int i915_driver_load(struct pci_dev *pdev, const struct pci_device_id *ent)i915_driver_register (dev_priv); -intel_init_ipc (dev_priv); -enable_rpm_wakeref_asserts (dev_priv);i915_welcome_messages (dev_priv);Signature · 1 line
2.19.1
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 4/4 drm/i915: Keep overlay functions naming consistent
In reply to José Roberto de SouzaAll other overlay functions(almost all other functions in i915) follow intel_overlay_verb, so renaming overlay ones that do not match that.
--- drivers/gpu/drm/i915/i915_drv.c | 2 +- drivers/gpu/drm/i915/intel_display.c | 2 +- drivers/gpu/drm/i915/intel_drv.h | 4 ++-- drivers/gpu/drm/i915/intel_overlay.c | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-)
drivers/gpu/drm/i915/i915_drv.c +1 -1
@@ -694,7 +694,7 @@ static int i915_load_modeset_init(struct drm_device *dev)if (ret) goto cleanup_modeset; -intel_setup_overlay (dev_priv); +intel_overlay_setup (dev_priv);if (INTEL_INFO (dev_priv)->num_pipes ==0 )return 0 ;
drivers/gpu/drm/i915/intel_display.c +1 -1
@@ -15826,7 +15826,7 @@ void intel_modeset_cleanup(struct drm_device *dev)drm_mode_config_cleanup (dev); -intel_cleanup_overlay (dev_priv); +intel_overlay_cleanup (dev_priv);intel_teardown_gmbus (dev_priv);
drivers/gpu/drm/i915/intel_drv.h +2 -2
@@ -1962,8 +1962,8 @@ struct intel_encoder *intel_get_lvds_encoder(struct drm_device *dev);bool intel_is_dual_link_lvds (struct drm_device *dev);/* intel_overlay.c */ -void intel_setup_overlay (struct drm_i915_private *dev_priv); -void intel_cleanup_overlay (struct drm_i915_private *dev_priv); +void intel_overlay_setup (struct drm_i915_private *dev_priv); +void intel_overlay_cleanup (struct drm_i915_private *dev_priv);int intel_overlay_switch_off (struct intel_overlay *overlay);int intel_overlay_put_image_ioctl (struct drm_device *dev,void *data,struct drm_file *file_priv);
drivers/gpu/drm/i915/intel_overlay.c +2 -2
@@ -1338,7 +1338,7 @@ static int get_registers(struct intel_overlay *overlay, bool use_phys)return err; } -void intel_setup_overlay (struct drm_i915_private *dev_priv) +void intel_overlay_setup (struct drm_i915_private *dev_priv) {struct intel_overlay *overlay;int ret;
@@ -1387,7 +1387,7 @@ void intel_setup_overlay(struct drm_i915_private *dev_priv)kfree (overlay); } -void intel_cleanup_overlay (struct drm_i915_private *dev_priv) +void intel_overlay_cleanup (struct drm_i915_private *dev_priv) {struct intel_overlay *overlay;
Signature · 6 lines
2.19.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 4/4] drm/i915: Keep overlay functions naming consistent
Quoted 7 lines · José Roberto de Souza
All other overlay functions(almost all other functions in i915) follow
intel_overlay_verb, so renaming overlay ones that do not match that.Cc Jani Nikula <[email protected]>Cc Ville Syrjälä <[email protected]>Signed-off-by José Roberto de Souza <[email protected]>
Quoted 72 lines
--- drivers/gpu/drm/i915/i915_drv.c | 2 +- drivers/gpu/drm/i915/intel_display.c | 2 +- drivers/gpu/drm/i915/intel_drv.h | 4 ++-- drivers/gpu/drm/i915/intel_overlay.c | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-)drivers/gpu/drm/i915/i915_drv.c +1
-1@@ -694,7 +694,7 @@ static int i915_load_modeset_init(struct drm_device *dev)if (ret) goto cleanup_modeset; -intel_setup_overlay (dev_priv); +intel_overlay_setup (dev_priv);if (INTEL_INFO (dev_priv)->num_pipes ==0 )return 0 ;drivers/gpu/drm/i915/intel_display.c +1
-1@@ -15826,7 +15826,7 @@ void intel_modeset_cleanup(struct drm_device *dev)drm_mode_config_cleanup (dev); -intel_cleanup_overlay (dev_priv); +intel_overlay_cleanup (dev_priv);intel_teardown_gmbus (dev_priv);drivers/gpu/drm/i915/intel_drv.h +2
-2@@ -1962,8 +1962,8 @@ struct intel_encoder *intel_get_lvds_encoder(struct drm_device *dev);bool intel_is_dual_link_lvds (struct drm_device *dev);/* intel_overlay.c */ -void intel_setup_overlay (struct drm_i915_private *dev_priv); -void intel_cleanup_overlay (struct drm_i915_private *dev_priv); +void intel_overlay_setup (struct drm_i915_private *dev_priv); +void intel_overlay_cleanup (struct drm_i915_private *dev_priv);int intel_overlay_switch_off (struct intel_overlay *overlay);int intel_overlay_put_image_ioctl (struct drm_device *dev,void *data,struct drm_file *file_priv);drivers/gpu/drm/i915/intel_overlay.c +2
-2@@ -1338,7 +1338,7 @@ static int get_registers(struct intel_overlay *overlay, bool use_phys)return err; } -void intel_setup_overlay (struct drm_i915_private *dev_priv) +void intel_overlay_setup (struct drm_i915_private *dev_priv) {struct intel_overlay *overlay;int ret;@@ -1387,7 +1387,7 @@ void intel_setup_overlay(struct drm_i915_private *dev_priv)kfree (overlay); } -void intel_cleanup_overlay (struct drm_i915_private *dev_priv) +void intel_overlay_cleanup (struct drm_i915_private *dev_priv) {struct intel_overlay *overlay;Signature · 1 line
2.19.1
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for series starting with [1/4] drm/i915: Move drm_vblank_init() to i915_load_modeset_init()
In reply to José Roberto de Souza== Series Details ==
== Series Details ==
Series: series starting with [1/4] drm/i915: Move drm_vblank_init() to i915_load_modeset_init()
URL : https://patchwork.freedesktop.org/series/52196/
State : success
== Summary ==
= CI Bug Log - changes from CI_DRM_5103 -> Patchwork_10763 =
== Summary - SUCCESS ==
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/52196/revisions/1/mbox/
== Known issues ==
Here are the changes found in Patchwork_10763 that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@kms_frontbuffer_tracking@basic:
fi-byt-clapper: PASS -> FAIL (fdo#103167)
==== Possible fixes ====
igt@gem_ctx_create@basic-files:
fi-icl-u2: DMESG-WARN (fdo#107724) -> PASS
igt@kms_flip@basic-flip-vs-modeset:
fi-hsw-4770r: DMESG-WARN (fdo#105602) -> PASS
igt@kms_pipe_crc_basic@read-crc-pipe-b:
fi-byt-clapper: FAIL (fdo#107362) -> PASS
igt@kms_pipe_crc_basic@suspend-read-crc-pipe-b:
fi-byt-clapper: FAIL (fdo#107362, fdo#103191) -> PASS
igt@prime_vgem@basic-fence-flip:
fi-ilk-650: FAIL (fdo#104008) -> PASS
==== Warnings ====
igt@drv_selftest@live_contexts:
fi-icl-u: INCOMPLETE (fdo#108315) -> DMESG-FAIL (fdo#108569) fdo#103167 https://bugs.freedesktop.org/show_bug.cgi?id=103167
fdo#103191 https://bugs.freedesktop.org/show_bug.cgi?id=103191
fdo#104008 https://bugs.freedesktop.org/show_bug.cgi?id=104008
fdo#105602 https://bugs.freedesktop.org/show_bug.cgi?id=105602
fdo#107362 https://bugs.freedesktop.org/show_bug.cgi?id=107362
fdo#107724 https://bugs.freedesktop.org/show_bug.cgi?id=107724
fdo#108315 https://bugs.freedesktop.org/show_bug.cgi?id=108315
fdo#108569 https://bugs.freedesktop.org/show_bug.cgi?id=108569
== Participating hosts (54 -> 47) ==
Missing (7): fi-kbl-soraka fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-snb-2520m fi-ctg-p8600
== Build changes ==
* Linux: CI_DRM_5103 -> Patchwork_10763
CI_DRM_5103: 23c1138030ad65402f698ab0b356e2f55722bc77 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4712: a3ede1b535ac8137f6949c468edd7054453d5dae @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_10763: 7a69abca569cb6e1542149c2063ce8fdabdf8d86 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
7a69abca569c drm/i915: Keep overlay functions naming consistent 4cbcb5cae77f drm/i915: Move intel_init_ipc() call to i915_load_modeset_init() ce980f9acb03 drm/i915: Move FBC init and cleanup calls to modeset functions 88e72bd5b93e drm/i915: Move drm_vblank_init() to i915_load_modeset_init()
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_10763/issues.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.IGT: success for series starting with [1/4] drm/i915: Move drm_vblank_init() to i915_load_modeset_init()
In reply to José Roberto de Souza== Series Details ==
== Series Details ==
Series: series starting with [1/4] drm/i915: Move drm_vblank_init() to i915_load_modeset_init()
URL : https://patchwork.freedesktop.org/series/52196/
State : success
== Summary ==
= CI Bug Log - changes from CI_DRM_5103_full -> Patchwork_10763_full =
== Summary - SUCCESS ==
No regressions found.
== Known issues ==
Here are the changes found in Patchwork_10763_full that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@gem_cpu_reloc@full:
shard-skl: NOTRUN -> INCOMPLETE (fdo#108073)
igt@gem_exec_schedule@pi-ringfull-bsd:
shard-skl: NOTRUN -> FAIL (fdo#103158)
igt@kms_color@pipe-b-legacy-gamma:
shard-apl: PASS -> FAIL (fdo#104782)
igt@kms_cursor_crc@cursor-128x128-offscreen:
shard-skl: PASS -> FAIL (fdo#103232) +1
igt@kms_cursor_crc@cursor-128x42-sliding:
shard-apl: PASS -> FAIL (fdo#103232) +1
igt@kms_cursor_crc@cursor-256x256-suspend:
shard-apl: PASS -> FAIL (fdo#103232, fdo#103191)
igt@kms_cursor_crc@cursor-64x64-random:
shard-glk: PASS -> FAIL (fdo#103232)
igt@kms_flip_tiling@flip-to-y-tiled:
shard-skl: PASS -> FAIL (fdo#107931) +1
igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-onoff:
shard-apl: PASS -> FAIL (fdo#103167) +2
igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-pri-shrfb-draw-mmap-gtt:
shard-glk: PASS -> FAIL (fdo#103167)
igt@kms_plane_alpha_blend@pipe-a-alpha-opaque-fb:
shard-skl: NOTRUN -> FAIL (fdo#108145) +1
igt@kms_plane_alpha_blend@pipe-a-constant-alpha-max:
shard-glk: PASS -> FAIL (fdo#108145)
igt@kms_plane_alpha_blend@pipe-b-coverage-7efc:
shard-skl: PASS -> FAIL (fdo#107815)
igt@pm_rpm@modeset-lpsp-stress:
shard-skl: PASS -> INCOMPLETE (fdo#107807) +1
==== Possible fixes ====
igt@drm_import_export@import-close-race-flink:
shard-skl: TIMEOUT (fdo#108667) -> PASS
igt@gem_exec_reuse@baggage:
shard-apl: DMESG-WARN (fdo#108690) -> PASS
igt@kms_busy@extended-modeset-hang-newfb-with-reset-render-b:
shard-hsw: DMESG-WARN (fdo#107956) -> PASS
igt@kms_color@pipe-a-degamma:
shard-apl: FAIL (fdo#104782, fdo#108145) -> PASS
igt@kms_color@pipe-b-ctm-max:
shard-apl: FAIL (fdo#108147) -> PASS
igt@kms_cursor_crc@cursor-128x128-random:
shard-apl: FAIL (fdo#103232) -> PASS +1
igt@kms_flip@2x-flip-vs-expired-vblank-interruptible:
shard-glk: FAIL (fdo#105363) -> PASS
igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-pwrite:
shard-apl: FAIL (fdo#103167) -> PASS +1
igt@kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-onoff:
shard-glk: FAIL (fdo#103167) -> PASS +2
igt@kms_plane@pixel-format-pipe-a-planes:
shard-apl: FAIL (fdo#103166) -> PASS
igt@kms_plane_multiple@atomic-pipe-a-tiling-x:
shard-glk: FAIL (fdo#103166) -> PASS
igt@pm_rpm@drm-resources-equal:
shard-skl: INCOMPLETE (fdo#107807) -> PASS
igt@pm_rpm@modeset-non-lpsp-stress-no-wait:
shard-skl: INCOMPLETE (fdo#107807) -> SKIP fdo#103158 https://bugs.freedesktop.org/show_bug.cgi?id=103158
fdo#103166 https://bugs.freedesktop.org/show_bug.cgi?id=103166
fdo#103167 https://bugs.freedesktop.org/show_bug.cgi?id=103167
fdo#103191 https://bugs.freedesktop.org/show_bug.cgi?id=103191
fdo#103232 https://bugs.freedesktop.org/show_bug.cgi?id=103232
fdo#104782 https://bugs.freedesktop.org/show_bug.cgi?id=104782
fdo#105363 https://bugs.freedesktop.org/show_bug.cgi?id=105363
fdo#107807 https://bugs.freedesktop.org/show_bug.cgi?id=107807
fdo#107815 https://bugs.freedesktop.org/show_bug.cgi?id=107815
fdo#107931 https://bugs.freedesktop.org/show_bug.cgi?id=107931
fdo#107956 https://bugs.freedesktop.org/show_bug.cgi?id=107956
fdo#108073 https://bugs.freedesktop.org/show_bug.cgi?id=108073
fdo#108145 https://bugs.freedesktop.org/show_bug.cgi?id=108145
fdo#108147 https://bugs.freedesktop.org/show_bug.cgi?id=108147
fdo#108667 https://bugs.freedesktop.org/show_bug.cgi?id=108667
fdo#108690 https://bugs.freedesktop.org/show_bug.cgi?id=108690
== Participating hosts (6 -> 6) ==
No changes in participating hosts
== Build changes ==
* Linux: CI_DRM_5103 -> Patchwork_10763
CI_DRM_5103: 23c1138030ad65402f698ab0b356e2f55722bc77 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4712: a3ede1b535ac8137f6949c468edd7054453d5dae @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_10763: 7a69abca569cb6e1542149c2063ce8fdabdf8d86 @ 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_10763/shards.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 6 lines · José Roberto de Souza
i915_load_modeset_init()is a more suitable place thani915_driver_load()as vblank is part of modeset.Cc Jani Nikula <[email protected]>Cc Ville Syrjälä <[email protected]>Signed-off-by José Roberto de Souza <[email protected]>
Quoted 43 lines
--- drivers/gpu/drm/i915/i915_drv.c | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-)drivers/gpu/drm/i915/i915_drv.c +7
-12@@ -645,6 +645,13 @@ static int i915_load_modeset_init(struct drm_device *dev)if (i915_inject_load_failure ())return -ENODEV ; +if (INTEL_INFO (dev_priv)->num_pipes) { + ret =drm_vblank_init (&dev_priv->drm, +INTEL_INFO (dev_priv)->num_pipes); +if (ret) + goto out; + } +intel_bios_init (dev_priv);/* If we have > 1 VGA cards, then we need to arbitrate access @@ -1712,18 +1719,6 @@ int i915_driver_load(struct pci_dev *pdev, const struct pci_device_id *ent)if (ret <0 ) goto out_cleanup_mmio; -/* -* TODO: move the vblank init and parts of modeset init steps into one -* of the i915_driver_init_/i915_driver_register functions according -* to the role/effect of the given init step. -*/ -if (INTEL_INFO (dev_priv)->num_pipes) { - ret =drm_vblank_init (&dev_priv->drm, -INTEL_INFO (dev_priv)->num_pipes); -if (ret) - goto out_cleanup_hw; - } - ret =i915_load_modeset_init (&dev_priv->drm);if (ret <0 ) goto out_cleanup_hw;Signature · 1 line
2.19.1
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 10 lines · Ville Syrjälä
Quoted 6 lines · José Roberto de Souza
i915_load_modeset_init()is a more suitable place thani915_driver_load()as vblank is part of modeset.Cc Jani Nikula <[email protected]>Cc Ville Syrjälä <[email protected]>Signed-off-by José Roberto de Souza <[email protected]>Reviewed-by Ville Syrjälä <[email protected]>
Thanks for the reviews, patches pushed to drm-intel-next-queued
Quoted 41 lines
Quoted 41 lines
--- drivers/gpu/drm/i915/i915_drv.c | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-)drivers/gpu/drm/i915/i915_drv.c +7
-0@@ -645,6 +645,13 @@ static int i915_load_modeset_init(struct drm_device *dev)if (i915_inject_load_failure ())return -ENODEV ; +if (INTEL_INFO (dev_priv)->num_pipes) { + ret =drm_vblank_init (&dev_priv->drm, +INTEL_INFO (dev_priv)->num_pipes); +if (ret) + goto out; + } +intel_bios_init (dev_priv);drivers/gpu/drm/i915/i915_drv.c +0
-2/* If we have > 1 VGA cards, then we need to arbitrate access @@ -1712,18 +1719,6 @@ int i915_driver_load(struct pci_dev *pdev, const struct pci_device_id *ent)if (ret <0 ) goto out_cleanup_mmio; -/* -* TODO: move the vblank init and parts of modeset init steps into one
drivers/gpu/drm/i915/i915_drv.c +0
-1-* of the i915_driver_init_/i915_driver_register functions according
drivers/gpu/drm/i915/i915_drv.c +0
-6-* to the role/effect of the given init step. -*/ -if (INTEL_INFO (dev_priv)->num_pipes) { - ret =drm_vblank_init (&dev_priv->drm, -INTEL_INFO (dev_priv)->num_pipes); -if (ret)
Quoted 8 lines
Quoted 8 lines
drivers/gpu/drm/i915/i915_drv.c +0
-3- goto out_cleanup_hw; - } - ret =i915_load_modeset_init (&dev_priv->drm);if (ret <0 ) goto out_cleanup_hw;Signature · 1 line
2.19.1
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx