From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4E9616E02E for ; Tue, 15 Sep 2020 06:19:00 +0000 (UTC) Message-ID: From: Janusz Krzysztofik Date: Tue, 15 Sep 2020 08:18:56 +0200 In-Reply-To: References: <20200914133652.13021-1-uma.shankar@intel.com> MIME-Version: 1.0 Subject: Re: [igt-dev] [PATCH i-g-t] tests/device_reset: Work around for driver unbind issue with audio List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: "Vudum, Lakshminarayana" , "Shankar, Uma" , "igt-dev@lists.freedesktop.org" Cc: "Bernatowicz, Marcin" List-ID: Hi Lakshmi, On Mon, 2020-09-14 at 20:47 +0000, Vudum, Lakshminarayana wrote: > @Janusz Krzysztofik Can you share the link to the failure that contains IGT warning? Here it is: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_9008/shard-hsw4/igt@device_reset@unbind-reset-rebind.html and before the change for reference: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5783/shard-hsw8/igt@device_reset@unbind-reset-rebind.html Thanks, Janusz > > > Thanks, > Lakshmi. > -----Original Message----- > From: Janusz Krzysztofik > Sent: Monday, September 14, 2020 12:19 PM > To: Shankar, Uma ; igt-dev@lists.freedesktop.org > Cc: Bernatowicz, Marcin ; Deak, Imre ; Vudum, Lakshminarayana > Subject: Re: [PATCH i-g-t] tests/device_reset: Work around for driver unbind issue with audio > > On Mon, 2020-09-14 at 19:06 +0530, Uma Shankar wrote: > > Unbinding the i915 driver on some Haswell and Broadwell platforms with > > Azalia audio results in a kernel WARNING on "i915 raw-wakerefs=1 > > wakelocks=1 on cleanup". The issue can be worked around by manually > > enabling runtime power management for the conflicting audio adapter. > > Use that method but also display a warning to preserve visibility of > > the issue. Also tag the workaround with a FIXME comment. > > > > Suggested-by: Janusz Krzysztofik > > Signed-off-by: Uma Shankar > > Reviewed-by: Janusz Krzysztofik > > Pushed. > > @Lakshmi, since kernel WARN has been replaced with an IGT warning but the issue remains the same, please update the filter of the bug. > > Thanks, > Janusz > > > --- > > tests/device_reset.c | 11 +++++++++++ > > 1 file changed, 11 insertions(+) > > > > diff --git a/tests/device_reset.c b/tests/device_reset.c index > > b1181b3b..9cb59ee4 100644 > > --- a/tests/device_reset.c > > +++ b/tests/device_reset.c > > @@ -232,9 +232,20 @@ static void set_device_filter(const char* > > dev_path) > > > > static void unbind_reset_rebind(struct device_fds *dev) { > > + uint32_t devid = intel_get_drm_devid(dev->fds.dev); > > igt_debug("close the device\n"); > > close_if_opened(&dev->fds.dev); > > > > + /** > > + * FIXME: Unbinding the i915 driver on some platforms with Azalia audio > > + * results in a kernel WARN on "i915 raw-wakerefs=1 wakelocks=1 on cleanup". > > + * The below CI friendly user level workaround prevents the warning from > > + * appearing. Drop this hack as soon as this is fixed in the kernel. > > + */ > > + if (igt_warn_on_f((bool) IS_HASWELL(devid) || IS_BROADWELL(devid), > > + "Manually enabling audio PM to work around a kernel WARN\n")) > > + igt_pm_enable_audio_runtime_pm(); > > + > > driver_unbind(dev); > > > > initiate_device_reset(dev); _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev