* [Intel-gfx] [RFC PATCH] component: do not leave master devres group open after bind
@ 2021-09-21 11:18 Kai Vehmanen
2021-09-21 11:18 ` Kai Vehmanen
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: Kai Vehmanen @ 2021-09-21 11:18 UTC (permalink / raw)
To: alsa-devel, tiwai, jani.nikula, Imre Deak, dri-devel,
Russell King, gregkh
Cc: Rafael J . Wysocki, kai.vehmanen, intel-gfx
In current code, the devres group for aggregate master is left open
after call to component_master_add_*(). This leads to problems when the
master does further managed allocations on its own. When any
participating driver calls component_del(), this leads to immediate
release of resources.
This came up when investigating a page fault occurring with i915 DRM
driver unbind with 5.15-rc1 kernel. The following sequence occurs:
i915_pci_remove()
-> intel_display_driver_unregister()
-> i915_audio_component_cleanup()
-> component_del()
-> component.c:take_down_master()
-> hdac_component_master_unbind() [via master->ops->unbind()]
-> devres_release_group(master->parent, NULL)
With older kernels this has not caused issues, but with audio driver
moving to use managed interfaces for more of its allocations, this no
longer works. Devres log shows following to occur:
component_master_add_with_match()
[ 126.886032] snd_hda_intel 0000:00:1f.3: DEVRES ADD 00000000323ccdc5 devm_component_match_release (24 bytes)
[ 126.886045] snd_hda_intel 0000:00:1f.3: DEVRES ADD 00000000865cdb29 grp< (0 bytes)
[ 126.886049] snd_hda_intel 0000:00:1f.3: DEVRES ADD 000000001b480725 grp< (0 bytes)
audio driver completes its PCI probe()
[ 126.892238] snd_hda_intel 0000:00:1f.3: DEVRES ADD 000000001b480725 pcim_iomap_release (48 bytes)
component_del() called() at DRM/i915 unbind()
[ 137.579422] i915 0000:00:02.0: DEVRES REL 00000000ef44c293 grp< (0 bytes)
[ 137.579445] snd_hda_intel 0000:00:1f.3: DEVRES REL 00000000865cdb29 grp< (0 bytes)
[ 137.579458] snd_hda_intel 0000:00:1f.3: DEVRES REL 000000001b480725 pcim_iomap_release (48 bytes)
So the "devres_release_group(master->parent, NULL)" ends up freeing the
pcim_iomap allocation. Upon next runtime resume, the audio driver will
cause a page fault as the iomap alloc was released without the driver
knowing about it.
Fix this issue by using the "struct master" pointer as identifier for
the devres group, and by closing the devres group after the master->ops->bind()
call is done. This allows devres allocations done by the driver acting as
master to be isolated from the binding state of the aggregate driver. This
modifies the logic originally introduced in commit 9e1ccb4a7700
("drivers/base: fix devres handling for master device").
BugLink: https://gitlab.freedesktop.org/drm/intel/-/issues/4136
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
---
drivers/base/component.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
Hi,
I'm sending this as RFC as I'm not sure of the implications of
not leaving the devres group open might have to other users
of the component framework.
For audio, the current behaviour seems very problematic. The display
codec is usually just one of many audio codecs attached to the controller,
and unbind of the display codec (and the aggregate driver created with
DRM), should not bring down the whole audio card.
However, now all allocations audio driver does after call to
component_master_add_with_match(), will be freed when display
driver calls component_del().
Closing the devres group at end of component_master_add_*() would
seem the cleanest option. Looking for feedback whether this approach
is feasible. One alternative would be for the audio driver to
close the "last opened" group after its call to component_master_add(),
but this seems messy (audio would make assumptions on component.c
internals).
diff --git a/drivers/base/component.c b/drivers/base/component.c
index 5e79299f6c3f..870485cbbb87 100644
--- a/drivers/base/component.c
+++ b/drivers/base/component.c
@@ -246,7 +246,7 @@ static int try_to_bring_up_master(struct master *master,
return 0;
}
- if (!devres_open_group(master->parent, NULL, GFP_KERNEL))
+ if (!devres_open_group(master->parent, master, GFP_KERNEL))
return -ENOMEM;
/* Found all components */
@@ -258,6 +258,7 @@ static int try_to_bring_up_master(struct master *master,
return ret;
}
+ devres_close_group(master->parent, NULL);
master->bound = true;
return 1;
}
@@ -282,7 +283,7 @@ static void take_down_master(struct master *master)
{
if (master->bound) {
master->ops->unbind(master->parent);
- devres_release_group(master->parent, NULL);
+ devres_release_group(master->parent, master);
master->bound = false;
}
}
base-commit: 930e99a51fcc8b1254e0a45fbe0cd5a5b8a704a5
--
2.32.0
^ permalink raw reply related [flat|nested] 7+ messages in thread* [Intel-gfx] [RFC PATCH] component: do not leave master devres group open after bind 2021-09-21 11:18 [Intel-gfx] [RFC PATCH] component: do not leave master devres group open after bind Kai Vehmanen @ 2021-09-21 11:18 ` Kai Vehmanen 2021-09-21 14:08 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for " Patchwork ` (4 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: Kai Vehmanen @ 2021-09-21 11:18 UTC (permalink / raw) To: alsa-devel, tiwai, jani.nikula, Imre Deak, dri-devel, Russell King, gregkh Cc: Rafael J . Wysocki, kai.vehmanen, intel-gfx In current code, the devres group for aggregate master is left open after call to component_master_add_*(). This leads to problems when the master does further managed allocations on its own. When any participating driver calls component_del(), this leads to immediate release of resources. This came up when investigating a page fault occurring with i915 DRM driver unbind with 5.15-rc1 kernel. The following sequence occurs: i915_pci_remove() -> intel_display_driver_unregister() -> i915_audio_component_cleanup() -> component_del() -> component.c:take_down_master() -> hdac_component_master_unbind() [via master->ops->unbind()] -> devres_release_group(master->parent, NULL) With older kernels this has not caused issues, but with audio driver moving to use managed interfaces for more of its allocations, this no longer works. Devres log shows following to occur: component_master_add_with_match() [ 126.886032] snd_hda_intel 0000:00:1f.3: DEVRES ADD 00000000323ccdc5 devm_component_match_release (24 bytes) [ 126.886045] snd_hda_intel 0000:00:1f.3: DEVRES ADD 00000000865cdb29 grp< (0 bytes) [ 126.886049] snd_hda_intel 0000:00:1f.3: DEVRES ADD 000000001b480725 grp< (0 bytes) audio driver completes its PCI probe() [ 126.892238] snd_hda_intel 0000:00:1f.3: DEVRES ADD 000000001b480725 pcim_iomap_release (48 bytes) component_del() called() at DRM/i915 unbind() [ 137.579422] i915 0000:00:02.0: DEVRES REL 00000000ef44c293 grp< (0 bytes) [ 137.579445] snd_hda_intel 0000:00:1f.3: DEVRES REL 00000000865cdb29 grp< (0 bytes) [ 137.579458] snd_hda_intel 0000:00:1f.3: DEVRES REL 000000001b480725 pcim_iomap_release (48 bytes) So the "devres_release_group(master->parent, NULL)" ends up freeing the pcim_iomap allocation. Upon next runtime resume, the audio driver will cause a page fault as the iomap alloc was released without the driver knowing about it. Fix this issue by using the "struct master" pointer as identifier for the devres group, and by closing the devres group after the master->ops->bind() call is done. This allows devres allocations done by the driver acting as master to be isolated from the binding state of the aggregate driver. This modifies the logic originally introduced in commit 9e1ccb4a7700 ("drivers/base: fix devres handling for master device"). BugLink: https://gitlab.freedesktop.org/drm/intel/-/issues/4136 Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> --- drivers/base/component.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) Hi, I'm sending this as RFC as I'm not sure of the implications of not leaving the devres group open might have to other users of the component framework. For audio, the current behaviour seems very problematic. The display codec is usually just one of many audio codecs attached to the controller, and unbind of the display codec (and the aggregate driver created with DRM), should not bring down the whole audio card. However, now all allocations audio driver does after call to component_master_add_with_match(), will be freed when display driver calls component_del(). Closing the devres group at end of component_master_add_*() would seem the cleanest option. Looking for feedback whether this approach is feasible. One alternative would be for the audio driver to close the "last opened" group after its call to component_master_add(), but this seems messy (audio would make assumptions on component.c internals). diff --git a/drivers/base/component.c b/drivers/base/component.c index 5e79299f6c3f..870485cbbb87 100644 --- a/drivers/base/component.c +++ b/drivers/base/component.c @@ -246,7 +246,7 @@ static int try_to_bring_up_master(struct master *master, return 0; } - if (!devres_open_group(master->parent, NULL, GFP_KERNEL)) + if (!devres_open_group(master->parent, master, GFP_KERNEL)) return -ENOMEM; /* Found all components */ @@ -258,6 +258,7 @@ static int try_to_bring_up_master(struct master *master, return ret; } + devres_close_group(master->parent, NULL); master->bound = true; return 1; } @@ -282,7 +283,7 @@ static void take_down_master(struct master *master) { if (master->bound) { master->ops->unbind(master->parent); - devres_release_group(master->parent, NULL); + devres_release_group(master->parent, master); master->bound = false; } } base-commit: 930e99a51fcc8b1254e0a45fbe0cd5a5b8a704a5 -- 2.32.0 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for component: do not leave master devres group open after bind 2021-09-21 11:18 [Intel-gfx] [RFC PATCH] component: do not leave master devres group open after bind Kai Vehmanen 2021-09-21 11:18 ` Kai Vehmanen @ 2021-09-21 14:08 ` Patchwork 2021-09-21 14:37 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork ` (3 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: Patchwork @ 2021-09-21 14:08 UTC (permalink / raw) To: Kai Vehmanen; +Cc: intel-gfx == Series Details == Series: component: do not leave master devres group open after bind URL : https://patchwork.freedesktop.org/series/94889/ State : warning == Summary == $ dim checkpatch origin/drm-tip b30f203aee1a component: do not leave master devres group open after bind -:46: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line) #46: the devres group, and by closing the devres group after the master->ops->bind() total: 0 errors, 1 warnings, 0 checks, 23 lines checked ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Intel-gfx] ✓ Fi.CI.BAT: success for component: do not leave master devres group open after bind 2021-09-21 11:18 [Intel-gfx] [RFC PATCH] component: do not leave master devres group open after bind Kai Vehmanen 2021-09-21 11:18 ` Kai Vehmanen 2021-09-21 14:08 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for " Patchwork @ 2021-09-21 14:37 ` Patchwork 2021-09-21 17:33 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork ` (2 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: Patchwork @ 2021-09-21 14:37 UTC (permalink / raw) To: Kai Vehmanen; +Cc: intel-gfx [-- Attachment #1: Type: text/plain, Size: 10817 bytes --] == Series Details == Series: component: do not leave master devres group open after bind URL : https://patchwork.freedesktop.org/series/94889/ State : success == Summary == CI Bug Log - changes from CI_DRM_10619 -> Patchwork_21109 ==================================================== Summary ------- **SUCCESS** No regressions found. External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/index.html Known issues ------------ Here are the changes found in Patchwork_21109 that come from known issues: ### IGT changes ### #### Issues hit #### * igt@amdgpu/amd_basic@cs-compute: - fi-cfl-guc: NOTRUN -> [SKIP][1] ([fdo#109271]) +17 similar issues [1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/fi-cfl-guc/igt@amdgpu/amd_basic@cs-compute.html * igt@amdgpu/amd_basic@cs-sdma: - fi-cfl-8109u: NOTRUN -> [SKIP][2] ([fdo#109271]) +17 similar issues [2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/fi-cfl-8109u/igt@amdgpu/amd_basic@cs-sdma.html * igt@amdgpu/amd_basic@memory-alloc: - fi-cml-u2: NOTRUN -> [SKIP][3] ([fdo#109315]) +17 similar issues [3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/fi-cml-u2/igt@amdgpu/amd_basic@memory-alloc.html * igt@amdgpu/amd_basic@query-info: - fi-bsw-kefka: NOTRUN -> [SKIP][4] ([fdo#109271]) +17 similar issues [4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/fi-bsw-kefka/igt@amdgpu/amd_basic@query-info.html - fi-glk-dsi: NOTRUN -> [SKIP][5] ([fdo#109271]) +17 similar issues [5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/fi-glk-dsi/igt@amdgpu/amd_basic@query-info.html - fi-kbl-8809g: NOTRUN -> [SKIP][6] ([fdo#109271]) [6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/fi-kbl-8809g/igt@amdgpu/amd_basic@query-info.html * igt@amdgpu/amd_basic@semaphore: - fi-icl-y: NOTRUN -> [SKIP][7] ([fdo#109315]) +17 similar issues [7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/fi-icl-y/igt@amdgpu/amd_basic@semaphore.html * igt@amdgpu/amd_cs_nop@fork-compute0: - fi-ivb-3770: NOTRUN -> [SKIP][8] ([fdo#109271]) +18 similar issues [8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/fi-ivb-3770/igt@amdgpu/amd_cs_nop@fork-compute0.html * igt@amdgpu/amd_cs_nop@sync-compute0: - fi-kbl-r: NOTRUN -> [SKIP][9] ([fdo#109271]) +17 similar issues [9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/fi-kbl-r/igt@amdgpu/amd_cs_nop@sync-compute0.html * igt@amdgpu/amd_cs_nop@sync-fork-gfx0: - fi-skl-6600u: NOTRUN -> [SKIP][10] ([fdo#109271]) +17 similar issues [10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/fi-skl-6600u/igt@amdgpu/amd_cs_nop@sync-fork-gfx0.html - fi-cfl-8700k: NOTRUN -> [SKIP][11] ([fdo#109271]) +17 similar issues [11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/fi-cfl-8700k/igt@amdgpu/amd_cs_nop@sync-fork-gfx0.html * igt@amdgpu/amd_cs_nop@sync-gfx0: - fi-kbl-7567u: NOTRUN -> [SKIP][12] ([fdo#109271]) +17 similar issues [12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/fi-kbl-7567u/igt@amdgpu/amd_cs_nop@sync-gfx0.html * igt@amdgpu/amd_prime@i915-to-amd: - fi-snb-2520m: NOTRUN -> [SKIP][13] ([fdo#109271]) +18 similar issues [13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/fi-snb-2520m/igt@amdgpu/amd_prime@i915-to-amd.html * igt@i915_selftest@live@gt_pm: - fi-kbl-soraka: NOTRUN -> [DMESG-FAIL][14] ([i915#1886] / [i915#2291]) [14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/fi-kbl-soraka/igt@i915_selftest@live@gt_pm.html #### Possible fixes #### * igt@core_hotunplug@unbind-rebind: - fi-cfl-guc: [INCOMPLETE][15] ([i915#4130] / [i915#4136]) -> [PASS][16] [15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/fi-cfl-guc/igt@core_hotunplug@unbind-rebind.html [16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/fi-cfl-guc/igt@core_hotunplug@unbind-rebind.html - fi-cfl-8700k: [INCOMPLETE][17] ([i915#4130] / [i915#4136]) -> [PASS][18] [17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/fi-cfl-8700k/igt@core_hotunplug@unbind-rebind.html [18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/fi-cfl-8700k/igt@core_hotunplug@unbind-rebind.html - fi-cfl-8109u: [INCOMPLETE][19] ([i915#4130]) -> [PASS][20] [19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/fi-cfl-8109u/igt@core_hotunplug@unbind-rebind.html [20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/fi-cfl-8109u/igt@core_hotunplug@unbind-rebind.html - fi-kbl-7567u: [INCOMPLETE][21] ([i915#4130]) -> [PASS][22] [21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/fi-kbl-7567u/igt@core_hotunplug@unbind-rebind.html [22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/fi-kbl-7567u/igt@core_hotunplug@unbind-rebind.html * igt@i915_module_load@reload: - fi-kbl-8809g: [INCOMPLETE][23] ([i915#4130] / [i915#4136]) -> [PASS][24] [23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/fi-kbl-8809g/igt@i915_module_load@reload.html [24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/fi-kbl-8809g/igt@i915_module_load@reload.html - fi-cml-u2: [INCOMPLETE][25] ([i915#4136]) -> [PASS][26] [25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/fi-cml-u2/igt@i915_module_load@reload.html [26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/fi-cml-u2/igt@i915_module_load@reload.html - {fi-tgl-dsi}: [INCOMPLETE][27] ([i915#4136]) -> [PASS][28] [27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/fi-tgl-dsi/igt@i915_module_load@reload.html [28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/fi-tgl-dsi/igt@i915_module_load@reload.html - {fi-ehl-2}: [INCOMPLETE][29] ([i915#4136]) -> [PASS][30] [29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/fi-ehl-2/igt@i915_module_load@reload.html [30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/fi-ehl-2/igt@i915_module_load@reload.html - fi-kbl-r: [INCOMPLETE][31] ([i915#4130] / [i915#4136]) -> [PASS][32] [31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/fi-kbl-r/igt@i915_module_load@reload.html [32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/fi-kbl-r/igt@i915_module_load@reload.html - fi-snb-2520m: [INCOMPLETE][33] ([i915#4179]) -> [PASS][34] [33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/fi-snb-2520m/igt@i915_module_load@reload.html [34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/fi-snb-2520m/igt@i915_module_load@reload.html - fi-kbl-soraka: [INCOMPLETE][35] ([i915#4136]) -> [PASS][36] [35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/fi-kbl-soraka/igt@i915_module_load@reload.html [36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/fi-kbl-soraka/igt@i915_module_load@reload.html - fi-skl-6600u: [INCOMPLETE][37] ([i915#4130] / [i915#4136]) -> [PASS][38] [37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/fi-skl-6600u/igt@i915_module_load@reload.html [38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/fi-skl-6600u/igt@i915_module_load@reload.html - fi-ivb-3770: [INCOMPLETE][39] ([i915#4179]) -> [PASS][40] [39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/fi-ivb-3770/igt@i915_module_load@reload.html [40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/fi-ivb-3770/igt@i915_module_load@reload.html - fi-bsw-kefka: [INCOMPLETE][41] ([i915#4136]) -> [PASS][42] [41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/fi-bsw-kefka/igt@i915_module_load@reload.html [42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/fi-bsw-kefka/igt@i915_module_load@reload.html - fi-glk-dsi: [INCOMPLETE][43] ([i915#4136]) -> [PASS][44] [43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/fi-glk-dsi/igt@i915_module_load@reload.html [44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/fi-glk-dsi/igt@i915_module_load@reload.html - fi-icl-y: [INCOMPLETE][45] ([i915#4136]) -> [PASS][46] [45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/fi-icl-y/igt@i915_module_load@reload.html [46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/fi-icl-y/igt@i915_module_load@reload.html - {fi-jsl-1}: [TIMEOUT][47] ([i915#4136]) -> [PASS][48] [47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/fi-jsl-1/igt@i915_module_load@reload.html [48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/fi-jsl-1/igt@i915_module_load@reload.html * igt@i915_pm_rpm@module-reload: - {fi-jsl-1}: [INCOMPLETE][49] -> [PASS][50] [49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/fi-jsl-1/igt@i915_pm_rpm@module-reload.html [50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/fi-jsl-1/igt@i915_pm_rpm@module-reload.html {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#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315 [fdo#112080]: https://bugs.freedesktop.org/show_bug.cgi?id=112080 [i915#1759]: https://gitlab.freedesktop.org/drm/intel/issues/1759 [i915#1886]: https://gitlab.freedesktop.org/drm/intel/issues/1886 [i915#2291]: https://gitlab.freedesktop.org/drm/intel/issues/2291 [i915#2373]: https://gitlab.freedesktop.org/drm/intel/issues/2373 [i915#2575]: https://gitlab.freedesktop.org/drm/intel/issues/2575 [i915#4130]: https://gitlab.freedesktop.org/drm/intel/issues/4130 [i915#4136]: https://gitlab.freedesktop.org/drm/intel/issues/4136 [i915#4179]: https://gitlab.freedesktop.org/drm/intel/issues/4179 Participating hosts (35 -> 30) ------------------------------ Missing (5): bat-dg1-6 fi-tgl-1115g4 fi-bsw-cyan bat-jsl-1 fi-bdw-samus Build changes ------------- * Linux: CI_DRM_10619 -> Patchwork_21109 CI-20190529: 20190529 CI_DRM_10619: d8d6f841d62dab4d161cc1735c5646cb989d0315 @ git://anongit.freedesktop.org/gfx-ci/linux IGT_6213: e9ae59cb8b4f1e7bc61a9261f33fc7e52ae06c65 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git Patchwork_21109: b30f203aee1a39691aa90bda392947794611c91c @ git://anongit.freedesktop.org/gfx-ci/linux == Linux commits == b30f203aee1a component: do not leave master devres group open after bind == Logs == For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/index.html [-- Attachment #2: Type: text/html, Size: 13743 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Intel-gfx] ✗ Fi.CI.IGT: failure for component: do not leave master devres group open after bind 2021-09-21 11:18 [Intel-gfx] [RFC PATCH] component: do not leave master devres group open after bind Kai Vehmanen ` (2 preceding siblings ...) 2021-09-21 14:37 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork @ 2021-09-21 17:33 ` Patchwork 2021-09-21 17:43 ` [Intel-gfx] [RFC PATCH] " Imre Deak 2021-09-21 21:49 ` Russell King (Oracle) 5 siblings, 0 replies; 7+ messages in thread From: Patchwork @ 2021-09-21 17:33 UTC (permalink / raw) To: Kai Vehmanen; +Cc: intel-gfx [-- Attachment #1: Type: text/plain, Size: 30282 bytes --] == Series Details == Series: component: do not leave master devres group open after bind URL : https://patchwork.freedesktop.org/series/94889/ State : failure == Summary == CI Bug Log - changes from CI_DRM_10619_full -> Patchwork_21109_full ==================================================== Summary ------- **FAILURE** Serious unknown changes coming with Patchwork_21109_full absolutely need to be verified manually. If you think the reported changes have nothing to do with the changes introduced in Patchwork_21109_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI. Possible new issues ------------------- Here are the unknown changes that may have been introduced in Patchwork_21109_full: ### IGT changes ### #### Possible regressions #### * igt@gem_softpin@noreloc-s3: - shard-apl: NOTRUN -> [INCOMPLETE][1] [1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-apl7/igt@gem_softpin@noreloc-s3.html * igt@kms_cursor_legacy@long-nonblocking-modeset-vs-cursor-atomic: - shard-apl: [PASS][2] -> [FAIL][3] [2]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/shard-apl8/igt@kms_cursor_legacy@long-nonblocking-modeset-vs-cursor-atomic.html [3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-apl8/igt@kms_cursor_legacy@long-nonblocking-modeset-vs-cursor-atomic.html Known issues ------------ Here are the changes found in Patchwork_21109_full that come from known issues: ### IGT changes ### #### Issues hit #### * igt@gem_ctx_persistence@process: - shard-snb: NOTRUN -> [SKIP][4] ([fdo#109271] / [i915#1099]) +6 similar issues [4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-snb6/igt@gem_ctx_persistence@process.html * igt@gem_ctx_shared@q-in-order: - shard-snb: NOTRUN -> [SKIP][5] ([fdo#109271]) +327 similar issues [5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-snb5/igt@gem_ctx_shared@q-in-order.html * igt@gem_eio@unwedge-stress: - shard-tglb: [PASS][6] -> [TIMEOUT][7] ([i915#2369] / [i915#3063] / [i915#3648]) [6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/shard-tglb2/igt@gem_eio@unwedge-stress.html [7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-tglb3/igt@gem_eio@unwedge-stress.html * igt@gem_exec_fair@basic-deadline: - shard-apl: NOTRUN -> [FAIL][8] ([i915#2846]) [8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-apl8/igt@gem_exec_fair@basic-deadline.html * igt@gem_exec_fair@basic-pace-share@rcs0: - shard-glk: [PASS][9] -> [FAIL][10] ([i915#2842]) [9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/shard-glk1/igt@gem_exec_fair@basic-pace-share@rcs0.html [10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-glk8/igt@gem_exec_fair@basic-pace-share@rcs0.html * igt@gem_render_copy@x-tiled-to-vebox-yf-tiled: - shard-kbl: NOTRUN -> [SKIP][11] ([fdo#109271]) +84 similar issues [11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-kbl6/igt@gem_render_copy@x-tiled-to-vebox-yf-tiled.html * igt@gem_userptr_blits@coherency-sync: - shard-iclb: NOTRUN -> [SKIP][12] ([fdo#109290]) [12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-iclb1/igt@gem_userptr_blits@coherency-sync.html * igt@gem_userptr_blits@input-checking: - shard-apl: NOTRUN -> [DMESG-WARN][13] ([i915#3002]) [13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-apl3/igt@gem_userptr_blits@input-checking.html * igt@gen9_exec_parse@bb-oversize: - shard-iclb: NOTRUN -> [SKIP][14] ([i915#2856]) [14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-iclb1/igt@gen9_exec_parse@bb-oversize.html * igt@gen9_exec_parse@shadow-peek: - shard-tglb: NOTRUN -> [SKIP][15] ([i915#2856]) +1 similar issue [15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-tglb1/igt@gen9_exec_parse@shadow-peek.html * igt@i915_pm_dc@dc3co-vpb-simulation: - shard-skl: NOTRUN -> [SKIP][16] ([fdo#109271] / [i915#658]) [16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-skl3/igt@i915_pm_dc@dc3co-vpb-simulation.html - shard-tglb: NOTRUN -> [SKIP][17] ([i915#1904]) [17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-tglb8/igt@i915_pm_dc@dc3co-vpb-simulation.html - shard-glk: NOTRUN -> [SKIP][18] ([fdo#109271] / [i915#658]) [18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-glk4/igt@i915_pm_dc@dc3co-vpb-simulation.html - shard-iclb: NOTRUN -> [SKIP][19] ([i915#588]) [19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-iclb2/igt@i915_pm_dc@dc3co-vpb-simulation.html * igt@i915_pm_dc@dc6-psr: - shard-iclb: [PASS][20] -> [FAIL][21] ([i915#454]) [20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/shard-iclb5/igt@i915_pm_dc@dc6-psr.html [21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-iclb3/igt@i915_pm_dc@dc6-psr.html * igt@i915_pm_dc@dc9-dpms: - shard-apl: [PASS][22] -> [FAIL][23] ([i915#3343]) [22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/shard-apl7/igt@i915_pm_dc@dc9-dpms.html [23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-apl3/igt@i915_pm_dc@dc9-dpms.html * igt@i915_pm_rpm@gem-execbuf-stress-pc8: - shard-iclb: NOTRUN -> [SKIP][24] ([fdo#109293] / [fdo#109506]) [24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-iclb1/igt@i915_pm_rpm@gem-execbuf-stress-pc8.html * igt@i915_suspend@sysfs-reader: - shard-tglb: [PASS][25] -> [INCOMPLETE][26] ([i915#456]) [25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/shard-tglb6/igt@i915_suspend@sysfs-reader.html [26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-tglb7/igt@i915_suspend@sysfs-reader.html * igt@kms_big_fb@linear-16bpp-rotate-270: - shard-tglb: NOTRUN -> [SKIP][27] ([fdo#111614]) +1 similar issue [27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-tglb8/igt@kms_big_fb@linear-16bpp-rotate-270.html - shard-iclb: NOTRUN -> [SKIP][28] ([fdo#110725] / [fdo#111614]) [28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-iclb2/igt@kms_big_fb@linear-16bpp-rotate-270.html * igt@kms_big_fb@linear-32bpp-rotate-0: - shard-glk: [PASS][29] -> [DMESG-WARN][30] ([i915#118] / [i915#95]) [29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/shard-glk3/igt@kms_big_fb@linear-32bpp-rotate-0.html [30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-glk8/igt@kms_big_fb@linear-32bpp-rotate-0.html * igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-180-hflip: - shard-apl: NOTRUN -> [SKIP][31] ([fdo#109271] / [i915#3777]) +1 similar issue [31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-apl6/igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-180-hflip.html * igt@kms_big_fb@yf-tiled-max-hw-stride-64bpp-rotate-180-hflip-async-flip: - shard-iclb: NOTRUN -> [SKIP][32] ([fdo#110723]) [32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-iclb1/igt@kms_big_fb@yf-tiled-max-hw-stride-64bpp-rotate-180-hflip-async-flip.html * igt@kms_big_joiner@2x-modeset: - shard-tglb: NOTRUN -> [SKIP][33] ([i915#2705]) [33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-tglb6/igt@kms_big_joiner@2x-modeset.html * igt@kms_big_joiner@invalid-modeset: - shard-iclb: NOTRUN -> [SKIP][34] ([i915#2705]) [34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-iclb1/igt@kms_big_joiner@invalid-modeset.html * igt@kms_ccs@pipe-a-ccs-on-another-bo-y_tiled_gen12_mc_ccs: - shard-apl: NOTRUN -> [SKIP][35] ([fdo#109271] / [i915#3886]) +8 similar issues [35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-apl1/igt@kms_ccs@pipe-a-ccs-on-another-bo-y_tiled_gen12_mc_ccs.html * igt@kms_ccs@pipe-a-crc-sprite-planes-basic-y_tiled_gen12_mc_ccs: - shard-tglb: NOTRUN -> [SKIP][36] ([i915#3689] / [i915#3886]) [36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-tglb6/igt@kms_ccs@pipe-a-crc-sprite-planes-basic-y_tiled_gen12_mc_ccs.html * igt@kms_ccs@pipe-b-bad-rotation-90-y_tiled_gen12_mc_ccs: - shard-kbl: NOTRUN -> [SKIP][37] ([fdo#109271] / [i915#3886]) +4 similar issues [37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-kbl4/igt@kms_ccs@pipe-b-bad-rotation-90-y_tiled_gen12_mc_ccs.html * igt@kms_ccs@pipe-b-ccs-on-another-bo-y_tiled_ccs: - shard-tglb: NOTRUN -> [SKIP][38] ([i915#3689]) +4 similar issues [38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-tglb1/igt@kms_ccs@pipe-b-ccs-on-another-bo-y_tiled_ccs.html * igt@kms_ccs@pipe-c-crc-sprite-planes-basic-y_tiled_gen12_rc_ccs_cc: - shard-iclb: NOTRUN -> [SKIP][39] ([fdo#109278] / [i915#3886]) [39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-iclb2/igt@kms_ccs@pipe-c-crc-sprite-planes-basic-y_tiled_gen12_rc_ccs_cc.html - shard-glk: NOTRUN -> [SKIP][40] ([fdo#109271] / [i915#3886]) [40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-glk4/igt@kms_ccs@pipe-c-crc-sprite-planes-basic-y_tiled_gen12_rc_ccs_cc.html * igt@kms_cdclk@mode-transition: - shard-apl: NOTRUN -> [SKIP][41] ([fdo#109271]) +238 similar issues [41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-apl7/igt@kms_cdclk@mode-transition.html - shard-iclb: NOTRUN -> [SKIP][42] ([i915#3742]) [42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-iclb1/igt@kms_cdclk@mode-transition.html * igt@kms_chamelium@hdmi-edid-change-during-suspend: - shard-apl: NOTRUN -> [SKIP][43] ([fdo#109271] / [fdo#111827]) +19 similar issues [43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-apl1/igt@kms_chamelium@hdmi-edid-change-during-suspend.html * igt@kms_chamelium@vga-hpd-without-ddc: - shard-snb: NOTRUN -> [SKIP][44] ([fdo#109271] / [fdo#111827]) +14 similar issues [44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-snb6/igt@kms_chamelium@vga-hpd-without-ddc.html * igt@kms_color_chamelium@pipe-a-degamma: - shard-kbl: NOTRUN -> [SKIP][45] ([fdo#109271] / [fdo#111827]) +7 similar issues [45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-kbl2/igt@kms_color_chamelium@pipe-a-degamma.html * igt@kms_color_chamelium@pipe-c-gamma: - shard-iclb: NOTRUN -> [SKIP][46] ([fdo#109284] / [fdo#111827]) +3 similar issues [46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-iclb1/igt@kms_color_chamelium@pipe-c-gamma.html * igt@kms_color_chamelium@pipe-d-degamma: - shard-glk: NOTRUN -> [SKIP][47] ([fdo#109271] / [fdo#111827]) +5 similar issues [47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-glk4/igt@kms_color_chamelium@pipe-d-degamma.html - shard-skl: NOTRUN -> [SKIP][48] ([fdo#109271] / [fdo#111827]) +4 similar issues [48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-skl3/igt@kms_color_chamelium@pipe-d-degamma.html - shard-tglb: NOTRUN -> [SKIP][49] ([fdo#109284] / [fdo#111827]) +5 similar issues [49]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-tglb8/igt@kms_color_chamelium@pipe-d-degamma.html - shard-iclb: NOTRUN -> [SKIP][50] ([fdo#109278] / [fdo#109284] / [fdo#111827]) [50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-iclb2/igt@kms_color_chamelium@pipe-d-degamma.html * igt@kms_content_protection@atomic: - shard-apl: NOTRUN -> [TIMEOUT][51] ([i915#1319]) [51]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-apl1/igt@kms_content_protection@atomic.html * igt@kms_content_protection@atomic-dpms: - shard-kbl: NOTRUN -> [TIMEOUT][52] ([i915#1319]) +1 similar issue [52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-kbl3/igt@kms_content_protection@atomic-dpms.html * igt@kms_content_protection@dp-mst-type-1: - shard-iclb: NOTRUN -> [SKIP][53] ([i915#3116]) [53]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-iclb2/igt@kms_content_protection@dp-mst-type-1.html - shard-tglb: NOTRUN -> [SKIP][54] ([i915#3116]) [54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-tglb8/igt@kms_content_protection@dp-mst-type-1.html * igt@kms_content_protection@uevent: - shard-apl: NOTRUN -> [FAIL][55] ([i915#2105]) [55]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-apl7/igt@kms_content_protection@uevent.html * igt@kms_cursor_crc@pipe-a-cursor-32x32-sliding: - shard-tglb: NOTRUN -> [SKIP][56] ([i915#3319]) [56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-tglb6/igt@kms_cursor_crc@pipe-a-cursor-32x32-sliding.html * igt@kms_cursor_crc@pipe-b-cursor-512x512-offscreen: - shard-skl: NOTRUN -> [SKIP][57] ([fdo#109271]) +55 similar issues [57]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-skl3/igt@kms_cursor_crc@pipe-b-cursor-512x512-offscreen.html - shard-iclb: NOTRUN -> [SKIP][58] ([fdo#109278] / [fdo#109279]) +2 similar issues [58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-iclb2/igt@kms_cursor_crc@pipe-b-cursor-512x512-offscreen.html * igt@kms_cursor_crc@pipe-d-cursor-512x512-onscreen: - shard-tglb: NOTRUN -> [SKIP][59] ([fdo#109279] / [i915#3359]) +3 similar issues [59]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-tglb6/igt@kms_cursor_crc@pipe-d-cursor-512x512-onscreen.html * igt@kms_cursor_legacy@2x-long-flip-vs-cursor-legacy: - shard-iclb: NOTRUN -> [SKIP][60] ([fdo#109274] / [fdo#109278]) +1 similar issue [60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-iclb1/igt@kms_cursor_legacy@2x-long-flip-vs-cursor-legacy.html * igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions: - shard-skl: [PASS][61] -> [FAIL][62] ([i915#2346]) [61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/shard-skl10/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions.html [62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-skl5/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions.html * igt@kms_dp_tiled_display@basic-test-pattern-with-chamelium: - shard-tglb: NOTRUN -> [SKIP][63] ([i915#3528]) [63]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-tglb6/igt@kms_dp_tiled_display@basic-test-pattern-with-chamelium.html * igt@kms_flip@2x-flip-vs-panning: - shard-iclb: NOTRUN -> [SKIP][64] ([fdo#109274]) [64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-iclb2/igt@kms_flip@2x-flip-vs-panning.html * igt@kms_flip@flip-vs-suspend-interruptible@a-dp1: - shard-kbl: [PASS][65] -> [DMESG-WARN][66] ([i915#180]) +8 similar issues [65]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/shard-kbl2/igt@kms_flip@flip-vs-suspend-interruptible@a-dp1.html [66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-kbl7/igt@kms_flip@flip-vs-suspend-interruptible@a-dp1.html * igt@kms_flip@plain-flip-ts-check@a-edp1: - shard-skl: [PASS][67] -> [FAIL][68] ([i915#2122]) [67]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/shard-skl9/igt@kms_flip@plain-flip-ts-check@a-edp1.html [68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-skl9/igt@kms_flip@plain-flip-ts-check@a-edp1.html * igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytileccs: - shard-tglb: NOTRUN -> [SKIP][69] ([i915#2587]) [69]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-tglb1/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytileccs.html * igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytilercccs: - shard-kbl: NOTRUN -> [SKIP][70] ([fdo#109271] / [i915#2672]) [70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-kbl6/igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytilercccs.html * igt@kms_frontbuffer_tracking@fbc-2p-rte: - shard-tglb: NOTRUN -> [SKIP][71] ([fdo#111825]) +17 similar issues [71]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-tglb8/igt@kms_frontbuffer_tracking@fbc-2p-rte.html * igt@kms_frontbuffer_tracking@fbcpsr-suspend: - shard-iclb: [PASS][72] -> [TIMEOUT][73] ([i915#123]) [72]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/shard-iclb1/igt@kms_frontbuffer_tracking@fbcpsr-suspend.html [73]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-iclb7/igt@kms_frontbuffer_tracking@fbcpsr-suspend.html * igt@kms_frontbuffer_tracking@psr-2p-scndscrn-cur-indfb-draw-mmap-wc: - shard-iclb: NOTRUN -> [SKIP][74] ([fdo#109280]) +15 similar issues [74]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-iclb2/igt@kms_frontbuffer_tracking@psr-2p-scndscrn-cur-indfb-draw-mmap-wc.html * igt@kms_hdr@bpc-switch-dpms: - shard-skl: [PASS][75] -> [FAIL][76] ([i915#1188]) [75]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/shard-skl3/igt@kms_hdr@bpc-switch-dpms.html [76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-skl6/igt@kms_hdr@bpc-switch-dpms.html * igt@kms_pipe_crc_basic@nonblocking-crc-pipe-d-frame-sequence: - shard-kbl: NOTRUN -> [SKIP][77] ([fdo#109271] / [i915#533]) +1 similar issue [77]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-kbl6/igt@kms_pipe_crc_basic@nonblocking-crc-pipe-d-frame-sequence.html * igt@kms_plane@plane-panning-bottom-right-suspend@pipe-b-planes: - shard-kbl: NOTRUN -> [DMESG-WARN][78] ([i915#180]) [78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-kbl1/igt@kms_plane@plane-panning-bottom-right-suspend@pipe-b-planes.html * igt@kms_plane_alpha_blend@pipe-a-alpha-transparent-fb: - shard-apl: NOTRUN -> [FAIL][79] ([i915#265]) [79]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-apl3/igt@kms_plane_alpha_blend@pipe-a-alpha-transparent-fb.html * igt@kms_plane_alpha_blend@pipe-b-alpha-basic: - shard-apl: NOTRUN -> [FAIL][80] ([fdo#108145] / [i915#265]) +2 similar issues [80]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-apl1/igt@kms_plane_alpha_blend@pipe-b-alpha-basic.html * igt@kms_plane_alpha_blend@pipe-c-alpha-basic: - shard-kbl: NOTRUN -> [FAIL][81] ([fdo#108145] / [i915#265]) +1 similar issue [81]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-kbl6/igt@kms_plane_alpha_blend@pipe-c-alpha-basic.html * igt@kms_plane_alpha_blend@pipe-d-constant-alpha-min: - shard-iclb: NOTRUN -> [SKIP][82] ([fdo#109278]) +10 similar issues [82]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-iclb1/igt@kms_plane_alpha_blend@pipe-d-constant-alpha-min.html * igt@kms_plane_lowres@pipe-c-tiling-x: - shard-iclb: NOTRUN -> [SKIP][83] ([i915#3536]) [83]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-iclb1/igt@kms_plane_lowres@pipe-c-tiling-x.html * igt@kms_plane_scaling@scaler-with-clipping-clamping@pipe-c-scaler-with-clipping-clamping: - shard-apl: NOTRUN -> [SKIP][84] ([fdo#109271] / [i915#2733]) [84]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-apl6/igt@kms_plane_scaling@scaler-with-clipping-clamping@pipe-c-scaler-with-clipping-clamping.html * igt@kms_prime@basic-crc@first-to-second: - shard-tglb: NOTRUN -> [SKIP][85] ([i915#1836]) [85]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-tglb1/igt@kms_prime@basic-crc@first-to-second.html * igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area-5: - shard-apl: NOTRUN -> [SKIP][86] ([fdo#109271] / [i915#658]) +5 similar issues [86]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-apl1/igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area-5.html * igt@kms_psr2_sf@plane-move-sf-dmg-area-2: - shard-kbl: NOTRUN -> [SKIP][87] ([fdo#109271] / [i915#658]) +1 similar issue [87]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-kbl3/igt@kms_psr2_sf@plane-move-sf-dmg-area-2.html * igt@kms_psr@psr2_cursor_mmap_gtt: - shard-iclb: NOTRUN -> [SKIP][88] ([fdo#109441]) [88]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-iclb1/igt@kms_psr@psr2_cursor_mmap_gtt.html * igt@kms_psr@psr2_cursor_render: - shard-tglb: NOTRUN -> [FAIL][89] ([i915#132] / [i915#3467]) [89]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-tglb6/igt@kms_psr@psr2_cursor_render.html * igt@kms_psr@psr2_sprite_blt: - shard-iclb: [PASS][90] -> [SKIP][91] ([fdo#109441]) +1 similar issue [90]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/shard-iclb2/igt@kms_psr@psr2_sprite_blt.html [91]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-iclb6/igt@kms_psr@psr2_sprite_blt.html * igt@kms_rotation_crc@primary-yf-tiled-reflect-x-0: - shard-tglb: NOTRUN -> [SKIP][92] ([fdo#111615]) +1 similar issue [92]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-tglb3/igt@kms_rotation_crc@primary-yf-tiled-reflect-x-0.html * igt@kms_vblank@pipe-b-query-busy-hang: - shard-skl: NOTRUN -> [SKIP][93] ([fdo#109271] / [i915#3149]) [93]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-skl3/igt@kms_vblank@pipe-b-query-busy-hang.html * igt@kms_vblank@pipe-b-ts-continuation-suspend: - shard-kbl: NOTRUN -> [INCOMPLETE][94] ([i915#155] / [i915#180] / [i915#2828]) [94]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-kbl6/igt@kms_vblank@pipe-b-ts-continuation-suspend.html * igt@kms_vblank@pipe-d-ts-continuation-modeset-hang: - shard-glk: NOTRUN -> [SKIP][95] ([fdo#109271]) +49 similar issues [95]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-glk3/igt@kms_vblank@pipe-d-ts-continuation-modeset-hang.html * igt@kms_vblank@pipe-d-wait-idle: - shard-apl: NOTRUN -> [SKIP][96] ([fdo#109271] / [i915#533]) +2 similar issues [96]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-apl6/igt@kms_vblank@pipe-d-wait-idle.html * igt@kms_writeback@writeback-check-output: - shard-kbl: NOTRUN -> [SKIP][97] ([fdo#109271] / [i915#2437]) [97]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-kbl3/igt@kms_writeback@writeback-check-output.html * igt@kms_writeback@writeback-pixel-formats: - shard-apl: NOTRUN -> [SKIP][98] ([fdo#109271] / [i915#2437]) [98]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-apl7/igt@kms_writeback@writeback-pixel-formats.html * igt@perf@gen12-unprivileged-single-ctx-counters: - shard-iclb: NOTRUN -> [SKIP][99] ([fdo#109289]) +1 similar issue [99]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-iclb2/igt@perf@gen12-unprivileged-single-ctx-counters.html * igt@perf@short-reads: - shard-skl: [PASS][100] -> [FAIL][101] ([i915#51]) [100]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/shard-skl5/igt@perf@short-reads.html [101]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-skl1/igt@perf@short-reads.html * igt@prime_nv_pcopy@test3_2: - shard-iclb: NOTRUN -> [SKIP][102] ([fdo#109291]) [102]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-iclb1/igt@prime_nv_pcopy@test3_2.html * igt@prime_nv_test@nv_write_i915_gtt_mmap_read: - shard-tglb: NOTRUN -> [SKIP][103] ([fdo#109291]) +1 similar issue [103]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-tglb1/igt@prime_nv_test@nv_write_i915_gtt_mmap_read.html * igt@sysfs_clients@fair-0: - shard-glk: NOTRUN -> [SKIP][104] ([fdo#109271] / [i915#2994]) +1 similar issue [104]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-glk4/igt@sysfs_clients@fair-0.html * igt@sysfs_clients@fair-7: - shard-apl: NOTRUN -> [SKIP][105] ([fdo#109271] / [i915#2994]) +2 similar issues [105]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-apl6/igt@sysfs_clients@fair-7.html * igt@sysfs_clients@sema-25: - shard-iclb: NOTRUN -> [SKIP][106] ([i915#2994]) [106]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-iclb1/igt@sysfs_clients@sema-25.html #### Possible fixes #### * igt@core_hotunplug@unbind-rebind: - shard-glk: [INCOMPLETE][107] ([i915#4130]) -> [PASS][108] [107]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/shard-glk9/igt@core_hotunplug@unbind-rebind.html [108]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-glk3/igt@core_hotunplug@unbind-rebind.html - shard-iclb: [INCOMPLETE][109] ([i915#4130]) -> [PASS][110] [109]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/shard-iclb5/igt@core_hotunplug@unbind-rebind.html [110]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-iclb1/igt@core_hotunplug@unbind-rebind.html * igt@device_reset@unbind-reset-rebind: - shard-glk: [INCOMPLETE][111] -> [PASS][112] [111]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/shard-glk1/igt@device_reset@unbind-reset-rebind.html [112]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-glk4/igt@device_reset@unbind-reset-rebind.html * igt@gem_eio@in-flight-contexts-10ms: - shard-skl: [TIMEOUT][113] ([i915#3063]) -> [PASS][114] [113]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/shard-skl6/igt@gem_eio@in-flight-contexts-10ms.html [114]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-skl7/igt@gem_eio@in-flight-contexts-10ms.html * igt@gem_exec_fair@basic-none-rrul@rcs0: - shard-kbl: [FAIL][115] ([i915#2842]) -> [PASS][116] [115]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/shard-kbl3/igt@gem_exec_fair@basic-none-rrul@rcs0.html [116]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-kbl1/igt@gem_exec_fair@basic-none-rrul@rcs0.html * igt@i915_module_load@reload: - shard-skl: [INCOMPLETE][117] ([i915#4130] / [i915#4136]) -> [PASS][118] [117]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/shard-skl6/igt@i915_module_load@reload.html [118]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-skl3/igt@i915_module_load@reload.html - shard-tglb: [INCOMPLETE][119] ([i915#4130] / [i915#4136]) -> [PASS][120] [119]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/shard-tglb8/igt@i915_module_load@reload.html [120]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-tglb8/igt@i915_module_load@reload.html - shard-iclb: [INCOMPLETE][121] ([i915#4130] / [i915#4136]) -> [PASS][122] [121]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/shard-iclb4/igt@i915_module_load@reload.html [122]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-iclb2/igt@i915_module_load@reload.html - shard-kbl: [INCOMPLETE][123] ([i915#4130] / [i915#4136] / [i915#4179]) -> [PASS][124] [123]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/shard-kbl4/igt@i915_module_load@reload.html [124]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-kbl2/igt@i915_module_load@reload.html * igt@i915_suspend@sysfs-reader: - shard-kbl: [DMESG-WARN][125] ([i915#180]) -> [PASS][126] +3 similar issues [125]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/shard-kbl4/igt@i915_suspend@sysfs-reader.html [126]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-kbl4/igt@i915_suspend@sysfs-reader.html * igt@kms_big_fb@x-tiled-16bpp-rotate-180: - shard-kbl: [INCOMPLETE][127] ([i915#4136]) -> [PASS][128] [127]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/shard-kbl3/igt@kms_big_fb@x-tiled-16bpp-rotate-180.html [128]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-kbl1/igt@kms_big_fb@x-tiled-16bpp-rotate-180.html * igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size: - shard-skl: [FAIL][129] ([i915#2346] / [i915#533]) -> [PASS][130] [129]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/shard-skl4/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html [130]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-skl8/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html * igt@kms_fbcon_fbt@psr-suspend: - shard-tglb: [INCOMPLETE][131] ([i915#2411] / [i915#4173] / [i915#456]) -> [PASS][132] [131]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/shard-tglb7/igt@kms_fbcon_fbt@psr-suspend.html [132]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-tglb1/igt@kms_fbcon_fbt@psr-suspend.html * igt@kms_flip@flip-vs-expired-vblank-interruptible@a-edp1: - shard-skl: [FAIL][133] ([i915#79]) -> [PASS][134] [133]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10619/shard-skl9/igt@kms_flip@flip-vs-expired-vblank-interruptible@a-edp1.html [134]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/shard-skl9/igt@kms_flip@flip-vs-expired-vblank-interruptible@a-edp1.html * igt@kms_frontbuffer_tracking@fbc-suspend: - shard-apl: [DMESG-WARN][135] ([i915#180]) -> [PASS][136] +1 similar issue [135]: https == Logs == For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21109/index.html [-- Attachment #2: Type: text/html, Size: 33724 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Intel-gfx] [RFC PATCH] component: do not leave master devres group open after bind 2021-09-21 11:18 [Intel-gfx] [RFC PATCH] component: do not leave master devres group open after bind Kai Vehmanen ` (3 preceding siblings ...) 2021-09-21 17:33 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork @ 2021-09-21 17:43 ` Imre Deak 2021-09-21 21:49 ` Russell King (Oracle) 5 siblings, 0 replies; 7+ messages in thread From: Imre Deak @ 2021-09-21 17:43 UTC (permalink / raw) To: Kai Vehmanen Cc: alsa-devel, tiwai, jani.nikula, dri-devel, Russell King, gregkh, Rafael J . Wysocki, intel-gfx On Tue, Sep 21, 2021 at 02:18:10PM +0300, Kai Vehmanen wrote: > In current code, the devres group for aggregate master is left open > after call to component_master_add_*(). This leads to problems when the > master does further managed allocations on its own. When any > participating driver calls component_del(), this leads to immediate > release of resources. > > This came up when investigating a page fault occurring with i915 DRM > driver unbind with 5.15-rc1 kernel. The following sequence occurs: > > i915_pci_remove() > -> intel_display_driver_unregister() > -> i915_audio_component_cleanup() > -> component_del() > -> component.c:take_down_master() > -> hdac_component_master_unbind() [via master->ops->unbind()] > -> devres_release_group(master->parent, NULL) > > With older kernels this has not caused issues, but with audio driver > moving to use managed interfaces for more of its allocations, this no > longer works. Devres log shows following to occur: > > component_master_add_with_match() > [ 126.886032] snd_hda_intel 0000:00:1f.3: DEVRES ADD 00000000323ccdc5 devm_component_match_release (24 bytes) > [ 126.886045] snd_hda_intel 0000:00:1f.3: DEVRES ADD 00000000865cdb29 grp< (0 bytes) > [ 126.886049] snd_hda_intel 0000:00:1f.3: DEVRES ADD 000000001b480725 grp< (0 bytes) > > audio driver completes its PCI probe() > [ 126.892238] snd_hda_intel 0000:00:1f.3: DEVRES ADD 000000001b480725 pcim_iomap_release (48 bytes) > > component_del() called() at DRM/i915 unbind() > [ 137.579422] i915 0000:00:02.0: DEVRES REL 00000000ef44c293 grp< (0 bytes) > [ 137.579445] snd_hda_intel 0000:00:1f.3: DEVRES REL 00000000865cdb29 grp< (0 bytes) > [ 137.579458] snd_hda_intel 0000:00:1f.3: DEVRES REL 000000001b480725 pcim_iomap_release (48 bytes) > > So the "devres_release_group(master->parent, NULL)" ends up freeing the > pcim_iomap allocation. Upon next runtime resume, the audio driver will > cause a page fault as the iomap alloc was released without the driver > knowing about it. > > Fix this issue by using the "struct master" pointer as identifier for > the devres group, and by closing the devres group after the master->ops->bind() > call is done. This allows devres allocations done by the driver acting as > master to be isolated from the binding state of the aggregate driver. This > modifies the logic originally introduced in commit 9e1ccb4a7700 > ("drivers/base: fix devres handling for master device"). > > BugLink: https://gitlab.freedesktop.org/drm/intel/-/issues/4136 > Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> This makes sense to me and also seems to match the devres logic for component binding (component_bind()), where the only resources freed at unbind (or at bind failure) are those that were allocated in the components' bind hook. Any resource allocated later by the components are not affected by the unbinding: Acked-by: Imre Deak <imre.deak@intel.com> If for some reason the current behaviour was intentional, one alternative I can think of would be for audio to register itself with the component framework using a dedicated kdev object. Imo the component framework's devres semantics would need to be documented as well. > --- > drivers/base/component.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > Hi, > I'm sending this as RFC as I'm not sure of the implications of > not leaving the devres group open might have to other users > of the component framework. > > For audio, the current behaviour seems very problematic. The display > codec is usually just one of many audio codecs attached to the controller, > and unbind of the display codec (and the aggregate driver created with > DRM), should not bring down the whole audio card. > > However, now all allocations audio driver does after call to > component_master_add_with_match(), will be freed when display > driver calls component_del(). > > Closing the devres group at end of component_master_add_*() would > seem the cleanest option. Looking for feedback whether this approach > is feasible. One alternative would be for the audio driver to > close the "last opened" group after its call to component_master_add(), > but this seems messy (audio would make assumptions on component.c > internals). > > diff --git a/drivers/base/component.c b/drivers/base/component.c > index 5e79299f6c3f..870485cbbb87 100644 > --- a/drivers/base/component.c > +++ b/drivers/base/component.c > @@ -246,7 +246,7 @@ static int try_to_bring_up_master(struct master *master, > return 0; > } > > - if (!devres_open_group(master->parent, NULL, GFP_KERNEL)) > + if (!devres_open_group(master->parent, master, GFP_KERNEL)) > return -ENOMEM; > > /* Found all components */ > @@ -258,6 +258,7 @@ static int try_to_bring_up_master(struct master *master, > return ret; > } > > + devres_close_group(master->parent, NULL); > master->bound = true; > return 1; > } > @@ -282,7 +283,7 @@ static void take_down_master(struct master *master) > { > if (master->bound) { > master->ops->unbind(master->parent); > - devres_release_group(master->parent, NULL); > + devres_release_group(master->parent, master); > master->bound = false; > } > } > > base-commit: 930e99a51fcc8b1254e0a45fbe0cd5a5b8a704a5 > -- > 2.32.0 > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Intel-gfx] [RFC PATCH] component: do not leave master devres group open after bind 2021-09-21 11:18 [Intel-gfx] [RFC PATCH] component: do not leave master devres group open after bind Kai Vehmanen ` (4 preceding siblings ...) 2021-09-21 17:43 ` [Intel-gfx] [RFC PATCH] " Imre Deak @ 2021-09-21 21:49 ` Russell King (Oracle) 5 siblings, 0 replies; 7+ messages in thread From: Russell King (Oracle) @ 2021-09-21 21:49 UTC (permalink / raw) To: Kai Vehmanen Cc: alsa-devel, tiwai, jani.nikula, Imre Deak, dri-devel, gregkh, Rafael J . Wysocki, intel-gfx On Tue, Sep 21, 2021 at 02:18:10PM +0300, Kai Vehmanen wrote: > In current code, the devres group for aggregate master is left open > after call to component_master_add_*(). This leads to problems when the > master does further managed allocations on its own. When any > participating driver calls component_del(), this leads to immediate > release of resources. > > This came up when investigating a page fault occurring with i915 DRM > driver unbind with 5.15-rc1 kernel. The following sequence occurs: > > i915_pci_remove() > -> intel_display_driver_unregister() > -> i915_audio_component_cleanup() > -> component_del() > -> component.c:take_down_master() > -> hdac_component_master_unbind() [via master->ops->unbind()] > -> devres_release_group(master->parent, NULL) > > With older kernels this has not caused issues, but with audio driver > moving to use managed interfaces for more of its allocations, this no > longer works. Devres log shows following to occur: > > component_master_add_with_match() > [ 126.886032] snd_hda_intel 0000:00:1f.3: DEVRES ADD 00000000323ccdc5 devm_component_match_release (24 bytes) > [ 126.886045] snd_hda_intel 0000:00:1f.3: DEVRES ADD 00000000865cdb29 grp< (0 bytes) > [ 126.886049] snd_hda_intel 0000:00:1f.3: DEVRES ADD 000000001b480725 grp< (0 bytes) > > audio driver completes its PCI probe() > [ 126.892238] snd_hda_intel 0000:00:1f.3: DEVRES ADD 000000001b480725 pcim_iomap_release (48 bytes) > > component_del() called() at DRM/i915 unbind() > [ 137.579422] i915 0000:00:02.0: DEVRES REL 00000000ef44c293 grp< (0 bytes) > [ 137.579445] snd_hda_intel 0000:00:1f.3: DEVRES REL 00000000865cdb29 grp< (0 bytes) > [ 137.579458] snd_hda_intel 0000:00:1f.3: DEVRES REL 000000001b480725 pcim_iomap_release (48 bytes) > > So the "devres_release_group(master->parent, NULL)" ends up freeing the > pcim_iomap allocation. Upon next runtime resume, the audio driver will > cause a page fault as the iomap alloc was released without the driver > knowing about it. > > Fix this issue by using the "struct master" pointer as identifier for > the devres group, and by closing the devres group after the master->ops->bind() > call is done. This allows devres allocations done by the driver acting as > master to be isolated from the binding state of the aggregate driver. This > modifies the logic originally introduced in commit 9e1ccb4a7700 > ("drivers/base: fix devres handling for master device"). Yes, this is the right fix - I did not expect people to be claiming resources after adding the component master, since that is the point at which the master can become active. Hence all resources that may be used should either already be claimed, or (preferred) be claimed when the master gets the bind call. However, I think the i915 bits are more complex than that simple view, so putting the component stuff inside its own devres group and closing it at the end of try_to_bring_up_master() makes sense. Acked-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2021-09-21 21:59 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2021-09-21 11:18 [Intel-gfx] [RFC PATCH] component: do not leave master devres group open after bind Kai Vehmanen 2021-09-21 11:18 ` Kai Vehmanen 2021-09-21 14:08 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for " Patchwork 2021-09-21 14:37 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork 2021-09-21 17:33 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork 2021-09-21 17:43 ` [Intel-gfx] [RFC PATCH] " Imre Deak 2021-09-21 21:49 ` Russell King (Oracle)
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox