From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay.yourmailgateway.de (relay.yourmailgateway.de [188.68.61.103]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 70D6226D4CA; Sat, 14 Feb 2026 12:38:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=188.68.61.103 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771072742; cv=none; b=H4g8H6wKpgF2C79iNzjPuNjohk5iKP0/INardnGcX9/2/K4jTLGVoQ6UFZTPPKIz1P0XIAhny+0Du0C6UGvl79urniArY6tSHgnhoS7q6vfJxUt2WKn+uIlLIt0SeTe5/fnp0D4mAjXwwwtVFHXM+rzcJNE4BEi2WrPmw1HFKd8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771072742; c=relaxed/simple; bh=b7dYe84l7zv9UH8ZHnCf78uM7HPwb6jpk5ifK9Wt6oQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=kK5uuaW1cKjFCNA91KyRJjfwGSe1UZRsZyBYpaT+8nwod++as71CND0BjHRwTVYYOmABxW4711y7dwV045z1Yn9eHgn7jiOs5nU2Oe6/VpzoV/RvleWdo8DQsSw25TCdls0vWR/mNOuoCFYrJZK12Q1RXkGs8bcB5RYmG5mJ+/E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=leemhuis.info; spf=pass smtp.mailfrom=leemhuis.info; dkim=pass (2048-bit key) header.d=leemhuis.info header.i=@leemhuis.info header.b=dMT9mu22; arc=none smtp.client-ip=188.68.61.103 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=leemhuis.info Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=leemhuis.info Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=leemhuis.info header.i=@leemhuis.info header.b="dMT9mu22" Received: from mors-relay-8403.netcup.net (localhost [127.0.0.1]) by mors-relay-8403.netcup.net (Postfix) with ESMTPS id 4fCpW00R1Hz87q1; Sat, 14 Feb 2026 13:38:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=leemhuis.info; s=key2; t=1771072732; bh=b7dYe84l7zv9UH8ZHnCf78uM7HPwb6jpk5ifK9Wt6oQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=dMT9mu22w2vPUnRfc8uC3XhUjwjrtehWGPwet3un1UwxtZLt26zCg/jBijVXeHCx/ kMPR3u+mMh4w7kphjimWt43Zya9rHik51vwN3eX75mjULbyQh4QUNoaotYKniDAD1G yPSDqFmEEvE+ZJsXEw72Czayc8u5daE7WRRPR+ACey7/9MySmpZUybqTkfNOjqpq4u gmYgSOVLcZWmcAhPSXiu+3YcI34wbllY3l8bJ/bpDhTLnzJJGRqcco3juYJvUBtpx4 4uZ986GQc85xBxU/QYyPU0iqmMpuRaOhheFvG46Smzk+YIb47NakPIGDpwx8L/OMKu tXHRt/A8acQLw== Received: from policy01-mors.netcup.net (unknown [46.38.225.35]) by mors-relay-8403.netcup.net (Postfix) with ESMTPS id 4fCpVz6ppfz87pn; Sat, 14 Feb 2026 13:38:51 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at policy01-mors.netcup.net X-Spam-Flag: NO X-Spam-Score: -2.898 X-Spam-Level: Received: from mxe9fb.netcup.net (unknown [10.243.12.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by policy01-mors.netcup.net (Postfix) with ESMTPS id 4fCpVy2m6zz8t3w; Sat, 14 Feb 2026 13:38:50 +0100 (CET) Received: from [IPV6:2a02:8108:8984:1d00:a0cf:1912:4be:477f] (unknown [IPv6:2a02:8108:8984:1d00:a0cf:1912:4be:477f]) by mxe9fb.netcup.net (Postfix) with ESMTPSA id B8FE567516; Sat, 14 Feb 2026 13:38:48 +0100 (CET) Authentication-Results: mxe9fb; spf=pass (sender IP is 2a02:8108:8984:1d00:a0cf:1912:4be:477f) smtp.mailfrom=regressions@leemhuis.info smtp.helo=[IPV6:2a02:8108:8984:1d00:a0cf:1912:4be:477f] Received-SPF: pass (mxe9fb: connection is authenticated) Message-ID: <95fd3f52-c3ed-40c5-920f-11e8767f701d@leemhuis.info> Date: Sat, 14 Feb 2026 13:38:47 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] drm/imagination: Convert to dev_pm_domain_{at,de}tach_list() To: Marek Vasut , Matt Coster Cc: Geert Uytterhoeven , Frank Binns , Brajesh Gupta , Alessio Belle , Alexandru Dadu , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , "dri-devel@lists.freedesktop.org" , "linux-pm@vger.kernel.org" , "linux-renesas-soc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "regressions@lists.linux.dev" References: <194465eda54d1f852a9226cf691ddc5aa208e0a3.1769097977.git.geert+renesas@glider.be> <3e0def93-2f6c-4bcf-8ee5-bf607f2ca382@imgtec.com> From: Thorsten Leemhuis Content-Language: de-DE, en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-PPP-Message-ID: <177107272943.314894.13716331919870478042@mxe9fb.netcup.net> X-Rspamd-Server: rspamd-worker-8404 X-Rspamd-Queue-Id: B8FE567516 X-NC-CID: JcW2HXIZkZa21BQHEhACCJ9qwlBdFvPy9mVCe3kMvKZanKkbGuo= On 2/13/26 23:52, Marek Vasut wrote: > On 2/12/26 4:56 PM, Thorsten Leemhuis wrote: >> On 2/12/26 15:38, Marek Vasut wrote: >>> On 2/12/26 10:00 AM, Matt Coster wrote: >>>> On 11/02/2026 19:17, Marek Vasut wrote: >>>>> On 1/23/26 2:50 PM, Geert Uytterhoeven wrote: >>>>>> On Fri, 23 Jan 2026 at 14:36, Matt Coster >>>>>> wrote: >>>>>>> On 22/01/2026 16:08, Geert Uytterhoeven wrote: >>>>>>>> Call the dev_pm_domain_attach_list() and >>>>>>>> dev_pm_domain_detach_list() >>>>>>>> helpers instead of open-coding multi PM Domain handling. >>>>>>>> >>>>>>>> This changes behavior slightly: >>>>>>>>      - The new handling is also applied in case of a single PM >>>>>>>> Domain, >>>>>>>>      - PM Domains are now referred to by index instead of by >>>>>>>> name, but >>>>>>>>        "make dtbs_check" enforces the actual naming and ordering >>>>>>>> anyway, >>>>>>>>      - There are no longer device links created between virtual >>>>>>>> domain >>>>>>>>        devices, only between virtual devices and the parent device. >>>>>>> >>>>>>> We still need this guarantee, both at start and end of day. In the >>>>>>> current implementation dev_pm_domain_attach_list() iterates >>>>>>> forwards, >>>>>>> but so does dev_pm_domain_detach_list(). Even if we changed that, >>>>>>> I'd >>>>>>> prefer not to rely on the implementation details when we can >>>>>>> declare the >>>>>>> dependencies explicitly. >>>>>> >>>>>> Note that on R-Car, the PM Domains are nested (see e.g. >>>>>> r8a7795_areas[]), >>>>>> so they are always (un)powered in the correct order.  But that may >>>>>> not >>>>>> be the case in the integration on other SoCs. >>>>>> >>>>>>> We had/have a patch (attached) kicking around internally to use the >>>>>>> *_list() functions but keep the inter-domain links in place; it got >>>>>>> held >>>>>>> up by discussions as to whether we actually need those dependencies >>>>>>> for >>>>>>> the hardware to behave correctly. Your patch spurred me to run >>>>>>> around >>>>>>> the office and nag people a bit, and it seems we really do need to >>>>>>> care >>>>>>> about the ordering. >>>>>> >>>>>> OK. >>>>>> >>>>>>> Can you add the links back in for a V2 or I can properly send the >>>>>>> attached patch instead, I don't mind either way. >>>>>> >>>>>> Please move forward with your patch, you are the expert. >>>>>> I prefer not to be blamed for any breakage ;-) >>>>> >>>>> Has there been any progress on fixing this kernel crash ? >>>>> >>>>> There are already two proposed solutions, but no fix is upstream. >>>> >>>> Yes and no. Our patch to use dev_pm_domain_attach_list() has landed in >>>> drm-misc-next as commit e19cc5ab347e3 ("drm/imagination: Use>> >>>> dev_pm_domain_attach_list()"), but this does not fix the underlying >>>> issue of missing synchronization in the PM core[1] is still unresolved >>>> as far as I'm aware. >>> >>> OK, but the pvr driver can currently easily crash the kernel on boot if >>> firmware is missing, so that should be fixed soon, right ? >> >> Well, drm-misc-next afaik means that the above mentioned fix would only >> be merged in 7.1, which is ~4 months away, which is not really "soon" >> I'd say. Or did I misjudge this? > > The PM domain issue here crashes the kernel, so I think this would be > material for drm-misc-fixes . Yeah, sounds a lot like it. >>> I added the regressions list onto CC, because this seems like a problem >>> worth tracking. >> >> Noticed that and wondered what change caused the regression. > > I think this one: > > 330e76d31697 ("drm/imagination: Add power domain control") Thx; FWIW, that was merged for v6.16-rc1. >> Did not >> find a answer in a quick search on lore[1]. Because if it's a >> regression, we maybe should just revert the culprit for now according to >> Linus: >> https://lore.kernel.org/lkml/CAHk-=wi86AosXs66- >> yi54+mpQjPu0upxB8ZAfG+LsMyJmcuMSA@mail.gmail.com/ >> >> [1] I guess this was the initial report from Geert? >> https://lore.kernel.org/all/ >> CAMuHMdWapT40hV3c+CSBqFOW05aWcV1a6v_NiJYgoYi0i9_PDQ@mail.gmail.com/ > > It is. > > I think there are other SoCs which depend on the power domain commit, so > revert is not so clear cut anymore. Well, it's a judgement call. 330e76d31697 was merged less then a year ago, so I'd not be surprised at all if Linus would revert it in a case like this. But it seems it doesn't revert clearly anymore, which complicates things. > But SoCs which have hierarchical > power domains and which manage to probe this driver without having a > firmware available for the GPU will simply end with crashed kernel, > which is really not good. Does the patch Matt mentioned fix the crash? His "this does not fix the underlying issue [...]" (see quote earlier) makes it sound like the crash or some other problem (theoretical or practical? regression or not?) remains. If that's the case and no quick fix in sight I guess it would be best if someone affected could post a revert and then we can ask Linus if he wants to pick it up. Ciao, Thorsten