ACPI: Fix selecting the wrong ACPI fwnode for the iGPU on some Dell laptops
Subsystems (2)
PATCH v2 1/1 ACPI: Fix selecting the wrong ACPI fwnode for the iGPU on some Dell laptops
The Dell Latitude E6430 both with and without the optional NVidia dGPU has a bug in its ACPI tables which is causing Linux to assign the wrong ACPI fwnode / companion to the pci_device for the i915 iGPU.
Specifically under the PCI root bridge there are these 2 ACPI Device()s :
Scope (_SB.PCI0)
{
Device (GFX0)
{
Name (_ADR, 0x00020000) // _ADR: Address
}
...
Device (VID)
{
Name (_ADR, 0x00020000) // _ADR: Address
...
Method (_DOS, 1, NotSerialized) // _DOS: Disable Output Switching
{
VDP8 = Arg0
VDP1 (One, VDP8)
}
Method (_DOD, 0, NotSerialized) // _DOD: Display Output Devices
{
...
}
...
}}
The non-functional GFX0 ACPI device is a problem, because this gets returned as ACPI companion-device by acpi_find_child_device() for the iGPU.
This is a long standing problem and the i915 driver does use the ACPI companion for some things, but works fine without it.
However since commit 63f534b8bad9 ("ACPI: PCI: Rework acpi_get_pci_dev()") acpi_get_pci_dev() relies on the physical-node pointer in the acpi_device and that is set on the wrong acpi_device because of the wrong acpi_find_child_device() return. This breaks the ACPI video code, leading to non working backlight control in some cases.
Add a type.backlight flag, mark ACPI video bus devices with this and make find_child_checks() return a higher score for children with this flag set, so that it picks the right companion-device.
---
Changes in v2:
- Switch to Rafael's suggested implementation using a type.backlight flag and only make find_child_checks() return a higher score when this is set
--- drivers/acpi/glue.c | 14 ++++++++++++-- drivers/acpi/scan.c | 7 +++++-- include/acpi/acpi_bus.h | 3 ++- 3 files changed, 19 insertions(+), 5 deletions(-)
drivers/acpi/glue.c +12 -2
@@ -75,7 +75,8 @@ static struct acpi_bus_type *acpi_get_bus_type(struct device *dev) }#define FIND_CHILD_MIN_SCORE 1 -#define FIND_CHILD_MAX_SCORE 2 +#define FIND_CHILD_MID_SCORE 2 +#define FIND_CHILD_MAX_SCORE 3static int match_any (struct acpi_device *adev,void *not_used) {
@@ -96,8 +97,17 @@ static int find_child_checks(struct acpi_device *adev, bool check_children)return -ENODEV ; status =acpi_evaluate_integer (adev->handle,"_STA" ,NULL , &sta); -if (status ==AE_NOT_FOUND ) +if (status ==AE_NOT_FOUND ) { +/* +* Special case: backlight device objects without _STA are +* preferred to other objects with the same _ADR value, because +* it is more likely that they are actually useful. +*/ +if (adev->pnp.type.backlight) +return FIND_CHILD_MID_SCORE ; +return FIND_CHILD_MIN_SCORE ; + }if (ACPI_FAILURE (status) || !(sta &ACPI_STA_DEVICE_ENABLED ))return -ENODEV ;
drivers/acpi/scan.c +5 -2
@@ -1370,9 +1370,12 @@ static void acpi_set_pnp_ids(acpi_handle handle, struct acpi_device_pnp *pnp,* Some devices don't reliably have _HIDs & _CIDs, so add * synthetic HIDs to make sure drivers can find them. */ -if (acpi_is_video_device (handle)) +if (acpi_is_video_device (handle)) {acpi_add_id (pnp,ACPI_VIDEO_HID ); -else if (acpi_bay_match (handle)) + pnp->type.backlight =1 ; +break ; + } +if (acpi_bay_match (handle))acpi_add_id (pnp,ACPI_BAY_HID );else if (acpi_dock_match (handle))acpi_add_id (pnp,ACPI_DOCK_HID );
include/acpi/acpi_bus.h +2 -1
@@ -230,7 +230,8 @@ struct acpi_pnp_type { u32 hardware_id:1; u32 bus_address:1; u32 platform_id:1; - u32 reserved:29; + u32 backlight:1; + u32 reserved:28; };struct acpi_device_pnp {
Signature · 1 line
2.39.0
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for ACPI: Fix selecting the wrong ACPI fwnode for the iGPU on some Dell laptops (rev3)
== Series Details ==
== Series Details ==
Series: ACPI: Fix selecting the wrong ACPI fwnode for the iGPU on some Dell laptops (rev3)
URL : https://patchwork.freedesktop.org/series/112572/
State : warning
== Summary ==
Error: dim checkpatch failed7f834ef56961 ACPI: Fix selecting the wrong ACPI fwnode for the iGPU on some Dell laptops -:57: WARNING:BAD_SIGN_OFF: Co-developed-by and Signed-off-by: name/email do not match #57:
total: 0 errors, 1 warnings, 0 checks, 50 lines checked
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for ACPI: Fix selecting the wrong ACPI fwnode for the iGPU on some Dell laptops (rev3)
In reply to Hans de Goede== Series Details ==
== Series Details ==
Series: ACPI: Fix selecting the wrong ACPI fwnode for the iGPU on some Dell laptops (rev3)
URL : https://patchwork.freedesktop.org/series/112572/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_12569 -> Patchwork_112572v3
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/index.html
Participating hosts (41 -> 40)
------------------------------
Additional (1): fi-rkl-11600
Missing (2): fi-kbl-soraka fi-snb-2520m
Known issues
------------
Here are the changes found in Patchwork_112572v3 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@debugfs_test@basic-hwmon:
- fi-rkl-11600: NOTRUN -> [SKIP][1] ([i915#7456])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/fi-rkl-11600/igt@[email protected]
* igt@gem_exec_suspend@basic-s3@smem:
- fi-rkl-11600: NOTRUN -> [INCOMPLETE][2] ([i915#7793])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/fi-rkl-11600/igt@gem_exec_suspend@[email protected]
* igt@gem_huc_copy@huc-copy:
- fi-rkl-11600: NOTRUN -> [SKIP][3] ([i915#2190])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/fi-rkl-11600/igt@[email protected]
* igt@gem_lmem_swapping@basic:
- fi-rkl-11600: NOTRUN -> [SKIP][4] ([i915#4613]) +3 similar issues
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/fi-rkl-11600/igt@[email protected]
* igt@gem_tiled_pread_basic:
- fi-rkl-11600: NOTRUN -> [SKIP][5] ([i915#3282])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/fi-rkl-11600/igt@gem_tiled_pread_basic.html
* igt@i915_pm_backlight@basic-brightness:
- fi-rkl-11600: NOTRUN -> [SKIP][6] ([i915#7561])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/fi-rkl-11600/igt@[email protected]
* igt@i915_suspend@basic-s3-without-i915:
- fi-rkl-11600: NOTRUN -> [FAIL][7] ([fdo#103375])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/fi-rkl-11600/igt@[email protected]
* igt@kms_chamelium_hpd@dp-hpd-fast:
- fi-rkl-11600: NOTRUN -> [SKIP][8] ([i915#7828]) +7 similar issues
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/fi-rkl-11600/igt@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor:
- fi-rkl-11600: NOTRUN -> [SKIP][9] ([i915#4103])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/fi-rkl-11600/igt@[email protected]
* igt@kms_force_connector_basic@force-load-detect:
- fi-rkl-11600: NOTRUN -> [SKIP][10] ([fdo#109285] / [i915#4098])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/fi-rkl-11600/igt@[email protected]
* igt@kms_psr@primary_page_flip:
- fi-rkl-11600: NOTRUN -> [SKIP][11] ([i915#1072]) +3 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/fi-rkl-11600/igt@kms_psr@primary_page_flip.html
* igt@kms_setmode@basic-clone-single-crtc:
- fi-rkl-11600: NOTRUN -> [SKIP][12] ([i915#3555] / [i915#4098])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/fi-rkl-11600/igt@[email protected]
* igt@prime_vgem@basic-read:
- fi-rkl-11600: NOTRUN -> [SKIP][13] ([fdo#109295] / [i915#3291] / [i915#3708]) +2 similar issues
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/fi-rkl-11600/igt@[email protected]
* igt@prime_vgem@basic-userptr:
- fi-rkl-11600: NOTRUN -> [SKIP][14] ([fdo#109295] / [i915#3301] / [i915#3708])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/fi-rkl-11600/igt@[email protected]
#### Possible fixes ####
* igt@i915_selftest@live@gt_lrc:
- {bat-adlp-9}: [INCOMPLETE][15] ([i915#4983]) -> [PASS][16]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12569/bat-adlp-9/igt@i915_selftest@live@gt_lrc.html
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/bat-adlp-9/igt@i915_selftest@live@gt_lrc.html
* igt@i915_selftest@live@gt_pm:
- {bat-rpls-2}: [DMESG-FAIL][17] ([i915#4258]) -> [PASS][18]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12569/bat-rpls-2/igt@i915_selftest@live@gt_pm.html
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/bat-rpls-2/igt@i915_selftest@live@gt_pm.html
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#103375]: https://bugs.freedesktop.org/show_bug.cgi?id=103375
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#109295]: https://bugs.freedesktop.org/show_bug.cgi?id=109295
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
[i915#3291]: https://gitlab.freedesktop.org/drm/intel/issues/3291
[i915#3301]: https://gitlab.freedesktop.org/drm/intel/issues/3301
[i915#3546]: https://gitlab.freedesktop.org/drm/intel/issues/3546
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#4098]: https://gitlab.freedesktop.org/drm/intel/issues/4098
[i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#4258]: https://gitlab.freedesktop.org/drm/intel/issues/4258
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4983]: https://gitlab.freedesktop.org/drm/intel/issues/4983
[i915#6367]: https://gitlab.freedesktop.org/drm/intel/issues/6367
[i915#6997]: https://gitlab.freedesktop.org/drm/intel/issues/6997
[i915#7456]: https://gitlab.freedesktop.org/drm/intel/issues/7456
[i915#7561]: https://gitlab.freedesktop.org/drm/intel/issues/7561
[i915#7793]: https://gitlab.freedesktop.org/drm/intel/issues/7793
[i915#7828]: https://gitlab.freedesktop.org/drm/intel/issues/7828
Build changes
-------------
* Linux: CI_DRM_12569 -> Patchwork_112572v3
CI-20190529: 20190529
CI_DRM_12569: 739b2ee4e76d9cd64e5fbe834b682e550e496cf4 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7115: c162d70b00c6f4cf6a0ba1ca7a7e2ad8f7190646 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_112572v3: 739b2ee4e76d9cd64e5fbe834b682e550e496cf4 @ git://anongit.freedesktop.org/gfx-ci/linux
### Linux commits
62816aac799f ACPI: Fix selecting the wrong ACPI fwnode for the iGPU on some Dell laptops
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/index.html
Patchwork
CI[Intel-gfx] ✓ Fi.CI.IGT: success for ACPI: Fix selecting the wrong ACPI fwnode for the iGPU on some Dell laptops (rev3)
In reply to Hans de Goede== Series Details ==
== Series Details ==
Series: ACPI: Fix selecting the wrong ACPI fwnode for the iGPU on some Dell laptops (rev3)
URL : https://patchwork.freedesktop.org/series/112572/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_12569_full -> Patchwork_112572v3_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/index.html
Participating hosts (14 -> 10)
------------------------------
Missing (4): shard-rkl0 pig-kbl-iris pig-glk-j5005 pig-skl-6260u
Known issues
------------
Here are the changes found in Patchwork_112572v3_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_lmem_swapping@massive:
- shard-glk: NOTRUN -> [SKIP][1] ([fdo#109271] / [i915#4613])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/shard-glk3/igt@[email protected]
* igt@kms_ccs@pipe-b-bad-aux-stride-y_tiled_gen12_mc_ccs:
- shard-glk: NOTRUN -> [SKIP][2] ([fdo#109271] / [i915#3886])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/shard-glk3/igt@kms_ccs@pipe-b-bad-aux-stride-y_tiled_gen12_mc_ccs.html
* igt@kms_flip@plain-flip-ts-check-interruptible@a-hdmi-a1:
- shard-glk: [PASS][3] -> [FAIL][4] ([i915#2122])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12569/shard-glk9/igt@kms_flip@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/shard-glk6/igt@kms_flip@[email protected]
* igt@kms_frontbuffer_tracking@psr-rgb565-draw-mmap-gtt:
- shard-glk: NOTRUN -> [SKIP][5] ([fdo#109271]) +40 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/shard-glk3/igt@[email protected]
* igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area:
- shard-glk: NOTRUN -> [SKIP][6] ([fdo#109271] / [i915#658])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/shard-glk3/igt@[email protected]
* igt@sysfs_clients@sema-25:
- shard-glk: NOTRUN -> [SKIP][7] ([fdo#109271] / [i915#2994])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/shard-glk3/igt@[email protected]
#### Possible fixes ####
* igt@drm_fdinfo@virtual-idle:
- {shard-rkl}: [FAIL][8] ([i915#7742]) -> [PASS][9]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12569/shard-rkl-4/igt@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/shard-rkl-1/igt@[email protected]
* igt@fbdev@read:
- {shard-rkl}: [SKIP][10] ([i915#2582]) -> [PASS][11]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12569/shard-rkl-3/igt@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/shard-rkl-6/igt@[email protected]
* igt@gem_exec_balancer@fairslice:
- {shard-rkl}: [SKIP][12] ([i915#6259]) -> [PASS][13]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12569/shard-rkl-5/igt@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/shard-rkl-3/igt@[email protected]
* igt@gem_exec_reloc@basic-write-read-noreloc:
- {shard-rkl}: [SKIP][14] ([i915#3281]) -> [PASS][15] +9 similar issues
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12569/shard-rkl-2/igt@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/shard-rkl-5/igt@[email protected]
* igt@gem_mmap_gtt@coherency:
- {shard-rkl}: [SKIP][16] ([fdo#111656]) -> [PASS][17]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12569/shard-rkl-2/igt@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/shard-rkl-5/igt@[email protected]
* igt@gem_pread@bench:
- {shard-rkl}: [SKIP][18] ([i915#3282]) -> [PASS][19] +2 similar issues
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12569/shard-rkl-2/igt@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/shard-rkl-5/igt@[email protected]
* igt@gen9_exec_parse@batch-invalid-length:
- {shard-rkl}: [SKIP][20] ([i915#2527]) -> [PASS][21] +3 similar issues
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12569/shard-rkl-2/igt@[email protected]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/shard-rkl-5/igt@[email protected]
* igt@i915_pipe_stress@stress-xrgb8888-untiled:
- {shard-tglu}: [SKIP][22] ([i915#1845]) -> [PASS][23]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12569/shard-tglu-6/igt@[email protected]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/shard-tglu-5/igt@[email protected]
* igt@i915_pm_rc6_residency@rc6-idle@rcs0:
- {shard-dg1}: [FAIL][24] ([i915#3591]) -> [PASS][25]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12569/shard-dg1-17/igt@i915_pm_rc6_residency@[email protected]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/shard-dg1-15/igt@i915_pm_rc6_residency@[email protected]
* igt@i915_pm_rpm@dpms-mode-unset-lpsp:
- {shard-rkl}: [SKIP][26] ([i915#1397]) -> [PASS][27]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12569/shard-rkl-2/igt@[email protected]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/shard-rkl-6/igt@[email protected]
* igt@i915_pm_rpm@fences:
- {shard-rkl}: [SKIP][28] ([i915#1849]) -> [PASS][29]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12569/shard-rkl-3/igt@[email protected]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/shard-rkl-6/igt@[email protected]
* igt@kms_ccs@pipe-b-bad-aux-stride-y_tiled_gen12_rc_ccs:
- {shard-rkl}: [SKIP][30] ([i915#1845] / [i915#4098]) -> [PASS][31] +17 similar issues
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12569/shard-rkl-2/igt@kms_ccs@pipe-b-bad-aux-stride-y_tiled_gen12_rc_ccs.html
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/shard-rkl-6/igt@kms_ccs@pipe-b-bad-aux-stride-y_tiled_gen12_rc_ccs.html
* igt@kms_cursor_legacy@flip-vs-cursor-crc-legacy:
- {shard-tglu}: [SKIP][32] ([i915#1845] / [i915#7651]) -> [PASS][33] +2 similar issues
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12569/shard-tglu-6/igt@[email protected]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/shard-tglu-5/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-badstride:
- {shard-rkl}: [SKIP][34] ([i915#1849] / [i915#4098]) -> [PASS][35] +7 similar issues
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12569/shard-rkl-3/igt@[email protected]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/shard-rkl-6/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-rgb565-draw-mmap-gtt:
- {shard-tglu}: [SKIP][36] ([i915#1849]) -> [PASS][37] +2 similar issues
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12569/shard-tglu-6/igt@[email protected]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/shard-tglu-5/igt@[email protected]
* igt@kms_psr@cursor_blt:
- {shard-rkl}: [SKIP][38] ([i915#1072]) -> [PASS][39] +1 similar issue
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12569/shard-rkl-2/igt@kms_psr@cursor_blt.html
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/shard-rkl-6/igt@kms_psr@cursor_blt.html
* igt@kms_vblank@pipe-d-ts-continuation-dpms-rpm:
- {shard-tglu}: [SKIP][40] ([i915#7651]) -> [PASS][41] +7 similar issues
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12569/shard-tglu-6/igt@[email protected]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/shard-tglu-5/igt@[email protected]
* igt@prime_vgem@coherency-gtt:
- {shard-rkl}: [SKIP][42] ([fdo#109295] / [fdo#111656] / [i915#3708]) -> [PASS][43]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12569/shard-rkl-2/igt@[email protected]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_112572v3/shard-rkl-5/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109274]: https://bugs.freedesktop.org/show_bug.cgi?id=109274
[fdo#109279]: https://bugs.freedesktop.org/show_bug.cgi?id=109279
[fdo#109280]: https://bugs.freedesktop.org/show_bug.cgi?id=109280
[fdo#109283]: https://bugs.freedesktop.org/show_bug.cgi?id=109283
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#109289]: https://bugs.freedesktop.org/show_bug.cgi?id=109289
[fdo#109295]: https://bugs.freedesktop.org/show_bug.cgi?id=109295
[fdo#109312]: https://bugs.freedesktop.org/show_bug.cgi?id=109312
[fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315
[fdo#109506]: https://bugs.freedesktop.org/show_bug.cgi?id=109506
[fdo#109642]: https://bugs.freedesktop.org/show_bug.cgi?id=109642
[fdo#110189]: https://bugs.freedesktop.org/show_bug.cgi?id=110189
[fdo#110723]: https://bugs.freedesktop.org/show_bug.cgi?id=110723
[fdo#111068]: https://bugs.freedesktop.org/show_bug.cgi?id=111068
[fdo#111614]: https://bugs.freedesktop.org/show_bug.cgi?id=111614
[fdo#111615]: https://bugs.freedesktop.org/show_bug.cgi?id=111615
[fdo#111644]: https://bugs.freedesktop.org/show_bug.cgi?id=111644
[fdo#111656]: https://bugs.freedesktop.org/show_bug.cgi?id=111656
[fdo#111825]: https://bugs.freedesktop.org/show_bug.cgi?id=111825
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[fdo#112283]: https://bugs.freedesktop.org/show_bug.cgi?id=112283
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#132]: https://gitlab.freedesktop.org/drm/intel/issues/132
[i915#1397]: https://gitlab.freedesktop.org/drm/intel/issues/1397
[i915#1722]: https://gitlab.freedesktop.org/drm/intel/issues/1722
[i915#1825]: https://gitlab.freedesktop.org/drm/intel/issues/1825
[i915#1839]: https://gitlab.freedesktop.org/drm/intel/issues/1839
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#1849]: https://gitlab.freedesktop.org/drm/intel/issues/1849
[i915#2122]: https://gitlab.freedesktop.org/drm/intel/issues/2122
[i915#2437]: https://gitlab.freedesktop.org/drm/intel/issues/2437
[i915#2527]: https://gitlab.freedesktop.org/drm/intel/issues/2527
[i915#2575]: https://gitlab.freedesktop.org/drm/intel/issues/2575
[i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582
[i915#2587]: https://gitlab.freedesktop.org/drm/intel/issues/2587
[i915#2658]: https://gitlab.freedesktop.org/drm/intel/issues/2658
[i915#2672]: https://gitlab.freedesktop.org/drm/intel/issues/2672
[i915#2681]: https://gitlab.freedesktop.org/drm/intel/issues/2681
[i915#280]: https://gitlab.freedesktop.org/drm/intel/issues/280
[i915#2842]: https://gitlab.freedesktop.org/drm/intel/issues/2842
[i915#2856]: https://gitlab.freedesktop.org/drm/intel/issues/2856
[i915#2920]: https://gitlab.freedesktop.org/drm/intel/issues/2920
[i915#2994]: https://gitlab.freedesktop.org/drm/intel/issues/2994
[i915#3116]: https://gitlab.freedesktop.org/drm/intel/issues/3116
[i915#3281]: https://gitlab.freedesktop.org/drm/intel/issues/3281
[i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
[i915#3291]: https://gitlab.freedesktop.org/drm/intel/issues/3291
[i915#3297]: https://gitlab.freedesktop.org/drm/intel/issues/3297
[i915#3299]: https://gitlab.freedesktop.org/drm/intel/issues/3299
[i915#3301]: https://gitlab.freedesktop.org/drm/intel/issues/3301
[i915#3323]: https://gitlab.freedesktop.org/drm/intel/issues/3323
[i915#3359]: https://gitlab.freedesktop.org/drm/intel/issues/3359
[i915#3361]: https://gitlab.freedesktop.org/drm/intel/issues/3361
[i915#3469]: https://gitlab.freedesktop.org/drm/intel/issues/3469
[i915#3528]: https://gitlab.freedesktop.org/drm/intel/issues/3528
[i915#3536]: https://gitlab.freedesktop.org/drm/intel/issues/3536
[i915#3546]: https://gitlab.freedesktop.org/drm/intel/issues/3546
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3591]: https://gitlab.freedesktop.org/drm/intel/issues/3591
[i915#3637]: https://gitlab.freedesktop.org/drm/intel/issues/3637
[i915#3638]: https://gitlab.freedesktop.org/drm/intel/issues/3638
[i915#3689]: https://gitlab.freedesktop.org/drm/intel/issues/3689
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#3734]: https://gitlab.freedesktop.org/drm/intel/issues/3734
[i915#3742]: https://gitlab.freedesktop.org/drm/intel/issues/3742
[i915#3886]: https://gitlab.freedesktop.org/drm/intel/issues/3886
[i915#404]: https://gitlab.freedesktop.org/drm/intel/issues/404
[i915#4070]: https://gitlab.freedesktop.org/drm/intel/issues/4070
[i915#4078]: https://gitlab.freedesktop.org/drm/intel/issues/4078
[i915#4098]: https://gitlab.freedesktop.org/drm/intel/issues/4098
[i915#4270]: https://gitlab.freedesktop.org/drm/intel/issues/4270
[i915#4281]: https://gitlab.freedesktop.org/drm/intel/issues/4281
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4767]: https://gitlab.freedesktop.org/drm/intel/issues/4767
[i915#4877]: https://gitlab.freedesktop.org/drm/intel/issues/4877
[i915#5030]: https://gitlab.freedesktop.org/drm/intel/issues/5030
[i915#5176]: https://gitlab.freedesktop.org/drm/intel/issues/5176
[i915#5235]: https://gitlab.freedesktop.org/drm/intel/issues/5235
[i915#5286]: https://gitlab.freedesktop.org/drm/intel/issues/5286
[i915#5289]: https://gitlab.freedesktop.org/drm/intel/issues/5289
[i915#5325]: https://gitlab.freedesktop.org/drm/intel/issues/5325
[i915#5327]: https://gitlab.freedesktop.org/drm/intel/issues/5327
[i915#533]: https://gitlab.freedesktop.org/drm/intel/issues/533
[i915#5439]: https://gitlab.freedesktop.org/drm/intel/issues/5439
[i915#5784]: https://gitlab.freedesktop.org/drm/intel/issues/5784
[i915#6095]: https://gitlab.freedesktop.org/drm/intel/issues/6095
[i915#6245]: https://gitlab.freedesktop.org/drm/intel/issues/6245
[i915#6248]: https://gitlab.freedesktop.org/drm/intel/issues/6248
[i915#6252]: https://gitlab.freedesktop.org/drm/intel/issues/6252
[i915#6259]: https://gitlab.freedesktop.org/drm/intel/issues/6259
[i915#6334]: https://gitlab.freedesktop.org/drm/intel/issues/6334
[i915#6335]: https://gitlab.freedesktop.org/drm/intel/issues/6335
[i915#6497]: https://gitlab.freedesktop.org/drm/intel/issues/6497
[i915#658]: https://gitlab.freedesktop.org/drm/intel/issues/658
[i915#6768]: https://gitlab.freedesktop.org/drm/intel/issues/6768
[i915#6944]: https://gitlab.freedesktop.org/drm/intel/issues/6944
[i915#6946]: https://gitlab.freedesktop.org/drm/intel/issues/6946
[i915#6953]: https://gitlab.freedesktop.org/drm/intel/issues/6953
[i915#7052]: https://gitlab.freedesktop.org/drm/intel/issues/7052
[i915#7116]: https://gitlab.freedesktop.org/drm/intel/issues/7116
[i915#7118]: https://gitlab.freedesktop.org/drm/intel/issues/7118
[i915#7128]: https://gitlab.freedesktop.org/drm/intel/issues/7128
[i915#7561]: https://gitlab.freedesktop.org/drm/intel/issues/7561
[i915#7651]: https://gitlab.freedesktop.org/drm/intel/issues/7651
[i915#7697]: https://gitlab.freedesktop.org/drm/intel/issues/7697
[i915#7701]: https://gitlab.freedesktop.org/drm/intel/issues/7701
[i915#7707]: https://gitlab.freedesktop.org/drm/intel/issues/7707
[i915#7711]: https://gitlab.freedesktop.org/drm/intel/issues/7711
[i915#7742]: https://gitlab.freedesktop.org/drm/intel/issues/7742
[i915#7828]: https://gitlab.freedesktop.org/drm/intel/issues/7828
Build changes
-------------
* Linux: CI_DRM_12569 -> Patchwork_112572v3
* Piglit: piglit_4509 -> None
CI-20190529: 20190529
CI_DRM_12569: 739b2ee4e76d9cd64e5fbe834b682e550e496cf4 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7115: c162d70b00c6f4cf6a0ba1ca7a7e2ad8f7190646 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_112572v3: 739b2ee4e76d9cd64e5fbe834b682e550e496cf4 @ 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_112572v3/index.html
Quoted 120 lines · Hans de Goede
The Dell Latitude E6430 both with and without the optional NVidia dGPU has a bug in its ACPI tables which is causing Linux to assign the wrong ACPI fwnode / companion to the
pci_devicefor the i915 iGPU.Specifically under the PCI root bridge there are these 2 ACPI Device()s :
Scope (_SB.PCI0)
{ Device (GFX0) { Name (_ADR, 0x00020000) // _ADR: Address } ... Device (VID) { Name (_ADR, 0x00020000) // _ADR: Address ... Method (_DOS, 1, NotSerialized) // _DOS: Disable Output Switching { VDP8 = Arg0 VDP1 (One, VDP8) } Method (_DOD, 0, NotSerialized) // _DOD: Display Output Devices { ... } ... }}
The non-functional GFX0 ACPI device is a problem, because this gets returned as ACPI companion-device by
acpi_find_child_device()for the iGPU.This is a long standing problem and the i915 driver does use the ACPI companion for some things, but works fine without it.
However since commit
63f534b8bad9("ACPI: PCI: Reworkacpi_get_pci_dev()")acpi_get_pci_dev()relies on the physical-node pointer in theacpi_deviceand that is set on the wrongacpi_devicebecause of the wrongacpi_find_child_device()return. This breaks the ACPI video code, leading to non working backlight control in some cases.Add a type.backlight flag, mark ACPI video bus devices with this and make
find_child_checks()return a higher score for children with this flag set, so that it picks the right companion-device.Co-developed-by Rafael J. Wysocki <[email protected]>Signed-off-by Hans de Goede <[email protected]>---
Changes in v2:
- Switch to Rafael's suggested implementation using a type.backlight flag and only makefind_child_checks()return a higher score when this is set--- drivers/acpi/glue.c | 14 ++++++++++++-- drivers/acpi/scan.c | 7 +++++-- include/acpi/acpi_bus.h | 3 ++- 3 files changed, 19 insertions(+), 5 deletions(-)drivers/acpi/glue.c +12
-2@@ -75,7 +75,8 @@ static struct acpi_bus_type *acpi_get_bus_type(struct device *dev) }#define FIND_CHILD_MIN_SCORE 1 -#define FIND_CHILD_MAX_SCORE 2 +#define FIND_CHILD_MID_SCORE 2 +#define FIND_CHILD_MAX_SCORE 3static int match_any (struct acpi_device *adev,void *not_used) {@@ -96,8 +97,17 @@ static int find_child_checks(struct acpi_device *adev, bool check_children)return -ENODEV ; status =acpi_evaluate_integer (adev->handle,"_STA" ,NULL , &sta); -if (status ==AE_NOT_FOUND ) +if (status ==AE_NOT_FOUND ) { +/* +* Special case: backlight device objects without _STA are +* preferred to other objects with the same _ADR value, because +* it is more likely that they are actually useful. +*/ +if (adev->pnp.type.backlight) +return FIND_CHILD_MID_SCORE ; +return FIND_CHILD_MIN_SCORE ; + }if (ACPI_FAILURE (status) || !(sta &ACPI_STA_DEVICE_ENABLED ))return -ENODEV ;drivers/acpi/scan.c +5
-2@@ -1370,9 +1370,12 @@ static void acpi_set_pnp_ids(acpi_handle handle, struct acpi_device_pnp *pnp,* Some devices don't reliably have _HIDs & _CIDs, so add * synthetic HIDs to make sure drivers can find them. */ -if (acpi_is_video_device (handle)) +if (acpi_is_video_device (handle)) {acpi_add_id (pnp,ACPI_VIDEO_HID ); -else if (acpi_bay_match (handle)) + pnp->type.backlight =1 ; +break ; + } +if (acpi_bay_match (handle))acpi_add_id (pnp,ACPI_BAY_HID );else if (acpi_dock_match (handle))acpi_add_id (pnp,ACPI_DOCK_HID );include/acpi/acpi_bus.h +0
-0
include/acpi/acpi_bus.h struct acpi_pnp_type {
Quoted 10 lines
include/acpi/acpi_bus.h +2
-2@@ -230,7 +230,8 @@ struct acpi_pnp_type { u32 hardware_id:1; u32 bus_address:1; u32 platform_id:1; - u32 reserved:29; + u32 backlight:1; + u32 reserved:28; };struct acpi_device_pnp { --
Applied as 6.2-rc material, thanks!
Hi,
Quoted 129 lines · Rafael J. Wysocki
Quoted 128 lines · Hans de Goede
The Dell Latitude E6430 both with and without the optional NVidia dGPU has a bug in its ACPI tables which is causing Linux to assign the wrong ACPI fwnode / companion to the
pci_devicefor the i915 iGPU.Specifically under the PCI root bridge there are these 2 ACPI Device()s :
Scope (_SB.PCI0)
{ Device (GFX0) { Name (_ADR, 0x00020000) // _ADR: Address } ... Device (VID) { Name (_ADR, 0x00020000) // _ADR: Address ... Method (_DOS, 1, NotSerialized) // _DOS: Disable Output Switching { VDP8 = Arg0 VDP1 (One, VDP8) } Method (_DOD, 0, NotSerialized) // _DOD: Display Output Devices { ... } ... }}
The non-functional GFX0 ACPI device is a problem, because this gets returned as ACPI companion-device by
acpi_find_child_device()for the iGPU.This is a long standing problem and the i915 driver does use the ACPI companion for some things, but works fine without it.
However since commit
63f534b8bad9("ACPI: PCI: Reworkacpi_get_pci_dev()")acpi_get_pci_dev()relies on the physical-node pointer in theacpi_deviceand that is set on the wrongacpi_devicebecause of the wrongacpi_find_child_device()return. This breaks the ACPI video code, leading to non working backlight control in some cases.Add a type.backlight flag, mark ACPI video bus devices with this and make
find_child_checks()return a higher score for children with this flag set, so that it picks the right companion-device.Co-developed-by Rafael J. Wysocki <[email protected]>Signed-off-by Hans de Goede <[email protected]>---
Changes in v2:
- Switch to Rafael's suggested implementation using a type.backlight flag and only makefind_child_checks()return a higher score when this is set--- drivers/acpi/glue.c | 14 ++++++++++++-- drivers/acpi/scan.c | 7 +++++-- include/acpi/acpi_bus.h | 3 ++- 3 files changed, 19 insertions(+), 5 deletions(-)drivers/acpi/glue.c +12
-2@@ -75,7 +75,8 @@ static struct acpi_bus_type *acpi_get_bus_type(struct device *dev) }#define FIND_CHILD_MIN_SCORE 1 -#define FIND_CHILD_MAX_SCORE 2 +#define FIND_CHILD_MID_SCORE 2 +#define FIND_CHILD_MAX_SCORE 3static int match_any (struct acpi_device *adev,void *not_used) {@@ -96,8 +97,17 @@ static int find_child_checks(struct acpi_device *adev, bool check_children)return -ENODEV ; status =acpi_evaluate_integer (adev->handle,"_STA" ,NULL , &sta); -if (status ==AE_NOT_FOUND ) +if (status ==AE_NOT_FOUND ) { +/* +* Special case: backlight device objects without _STA are +* preferred to other objects with the same _ADR value, because +* it is more likely that they are actually useful. +*/ +if (adev->pnp.type.backlight) +return FIND_CHILD_MID_SCORE ; +return FIND_CHILD_MIN_SCORE ; + }if (ACPI_FAILURE (status) || !(sta &ACPI_STA_DEVICE_ENABLED ))return -ENODEV ;drivers/acpi/scan.c +5
-2@@ -1370,9 +1370,12 @@ static void acpi_set_pnp_ids(acpi_handle handle, struct acpi_device_pnp *pnp,* Some devices don't reliably have _HIDs & _CIDs, so add * synthetic HIDs to make sure drivers can find them. */ -if (acpi_is_video_device (handle)) +if (acpi_is_video_device (handle)) {acpi_add_id (pnp,ACPI_VIDEO_HID ); -else if (acpi_bay_match (handle)) + pnp->type.backlight =1 ; +break ; + } +if (acpi_bay_match (handle))acpi_add_id (pnp,ACPI_BAY_HID );else if (acpi_dock_match (handle))acpi_add_id (pnp,ACPI_DOCK_HID );include/acpi/acpi_bus.h +2
-1@@ -230,7 +230,8 @@ struct acpi_pnp_type { u32 hardware_id:1; u32 bus_address:1; u32 platform_id:1; - u32 reserved:29; + u32 backlight:1; + u32 reserved:28; };
Quoted 4 lines
include/acpi/acpi_bus.h struct acpi_pnp_type {
Quoted 2 lines
include/acpi/acpi_bus.h +0
-1struct acpi_device_pnp { --Applied as 6.2-rc material, thanks!
Thanks.
I just realized this probably needs a:
tag, so that it gets picked up for 6.1.y
Regards,
Hans
Rafael J. Wysocki
maintainerQuoted 138 lines · Hans de Goede
Hi,
Quoted 129 lines · Rafael J. Wysocki
Quoted 128 lines · Hans de Goede
The Dell Latitude E6430 both with and without the optional NVidia dGPU has a bug in its ACPI tables which is causing Linux to assign the wrong ACPI fwnode / companion to the
pci_devicefor the i915 iGPU.Specifically under the PCI root bridge there are these 2 ACPI Device()s :
Scope (_SB.PCI0)
{ Device (GFX0) { Name (_ADR, 0x00020000) // _ADR: Address } ... Device (VID) { Name (_ADR, 0x00020000) // _ADR: Address ... Method (_DOS, 1, NotSerialized) // _DOS: Disable Output Switching { VDP8 = Arg0 VDP1 (One, VDP8) } Method (_DOD, 0, NotSerialized) // _DOD: Display Output Devices { ... } ... }}
The non-functional GFX0 ACPI device is a problem, because this gets returned as ACPI companion-device by
acpi_find_child_device()for the iGPU.This is a long standing problem and the i915 driver does use the ACPI companion for some things, but works fine without it.
However since commit
63f534b8bad9("ACPI: PCI: Reworkacpi_get_pci_dev()")acpi_get_pci_dev()relies on the physical-node pointer in theacpi_deviceand that is set on the wrongacpi_devicebecause of the wrongacpi_find_child_device()return. This breaks the ACPI video code, leading to non working backlight control in some cases.Add a type.backlight flag, mark ACPI video bus devices with this and make
find_child_checks()return a higher score for children with this flag set, so that it picks the right companion-device.Co-developed-by Rafael J. Wysocki <[email protected]>Signed-off-by Hans de Goede <[email protected]>---
Changes in v2:
- Switch to Rafael's suggested implementation using a type.backlight flag and only makefind_child_checks()return a higher score when this is set--- drivers/acpi/glue.c | 14 ++++++++++++-- drivers/acpi/scan.c | 7 +++++-- include/acpi/acpi_bus.h | 3 ++- 3 files changed, 19 insertions(+), 5 deletions(-)drivers/acpi/glue.c +12
-2@@ -75,7 +75,8 @@ static struct acpi_bus_type *acpi_get_bus_type(struct device *dev) }#define FIND_CHILD_MIN_SCORE 1 -#define FIND_CHILD_MAX_SCORE 2 +#define FIND_CHILD_MID_SCORE 2 +#define FIND_CHILD_MAX_SCORE 3static int match_any (struct acpi_device *adev,void *not_used) {@@ -96,8 +97,17 @@ static int find_child_checks(struct acpi_device *adev, bool check_children)return -ENODEV ; status =acpi_evaluate_integer (adev->handle,"_STA" ,NULL , &sta); -if (status ==AE_NOT_FOUND ) +if (status ==AE_NOT_FOUND ) { +/* +* Special case: backlight device objects without _STA are +* preferred to other objects with the same _ADR value, because +* it is more likely that they are actually useful. +*/ +if (adev->pnp.type.backlight) +return FIND_CHILD_MID_SCORE ; +return FIND_CHILD_MIN_SCORE ; + }if (ACPI_FAILURE (status) || !(sta &ACPI_STA_DEVICE_ENABLED ))return -ENODEV ;drivers/acpi/scan.c +5
-2@@ -1370,9 +1370,12 @@ static void acpi_set_pnp_ids(acpi_handle handle, struct acpi_device_pnp *pnp,* Some devices don't reliably have _HIDs & _CIDs, so add * synthetic HIDs to make sure drivers can find them. */ -if (acpi_is_video_device (handle)) +if (acpi_is_video_device (handle)) {acpi_add_id (pnp,ACPI_VIDEO_HID ); -else if (acpi_bay_match (handle)) + pnp->type.backlight =1 ; +break ; + } +if (acpi_bay_match (handle))acpi_add_id (pnp,ACPI_BAY_HID );else if (acpi_dock_match (handle))acpi_add_id (pnp,ACPI_DOCK_HID );include/acpi/acpi_bus.h +2
-1@@ -230,7 +230,8 @@ struct acpi_pnp_type { u32 hardware_id:1; u32 bus_address:1; u32 platform_id:1; - u32 reserved:29; + u32 backlight:1; + u32 reserved:28; };Quoted 4 lines
include/acpi/acpi_bus.h struct acpi_pnp_type {
Quoted 2 lines
include/acpi/acpi_bus.h +0
-1struct acpi_device_pnp { --Applied as 6.2-rc material, thanks!
Quoted 7 lines
Thanks.
I just realized this probably needs a:
Fixes 63f534b8bad9 ("ACPI: PCI: Rework acpi_get_pci_dev()")tag, so that it gets picked up for 6.1.y
I've added that tag to it, thanks!