Hi Gyeyong and Troy, On Sun Nov 29, 2026 at 9:40 PM CST, Troy Mitchell wrote: > Hi Gyeyoung and Baihui, > > On Sun Nov 29, 2026 at 6:27 AM GMT, Gyeyoung Baek wrote: > > Hi Baihui, > > > > On Fri, Nov 27, 2026 at 12:41 PM Baihui Liang > > <[email protected]> wrote: > >> > >> pvr_power_device_idle() rejects runtime suspend while the firmware > >> hasn't reached ROGUE_FWIF_POW_IDLE. The PM core doesn't reschedule > >> idle notification after rejection, so no further pm_runtime_put() > >> arrives on an idle GPU and the device stays powered indefinitely. > >> > >> Move the idle check into pvr_power_device_suspend() and return -EBUSY > >> after pm_runtime_mark_last_busy() so the PM core reschedules the > >> autosuspend timer and retries until the firmware is idle. > >> > >> Factor the power-off sequence into a helper and call it from the > >> removal path with runtime PM disabled, bypassing the idle check. > >> Power off before destroying the job and free-list ID arrays, since > >> the IRQ handler can still process firmware commands during shutdown > >> and look up free-list IDs. > >> > > > > This looks like the right fix to me. However, testing it on J722S > > exposed a separate, pre-existing issue: > > - The firmware doesn't seem to report ROGUE_FWIF_POW_IDLE after boot > > until it has processed a command. > > - Without this patch the GPU just stays active after probe; with it, > > runtime suspend is retried indefinitely. > > > > I've sent a fix for that separately [1]. I think that one should be > > applied before this patch. With both, it works fine on J722S. > > Thanks for testing on J722S. I don't think this patch depends on [1], > though. The post-boot idle report is a separate, pre-existing issue. > So I'd leave the order to the maintainers, and Baihui doesn't need > to mention the dependency.
Agreed with Troy and thanks for testing on J722S and catching that separate issue. I'll keep this patch standalone and leave the merge order to the maintainers. > > > > Two minor things: > > - The Fixes tag seems to be missing (as sashiko suggested) > > Agreed. > > > - The reproduction steps from v1 (repeated vulkaninfo on K3) are no > > longer in the commit message. It would be good to add them back, so > > it's clear when the issue occurs. > > Yes, below the --- line. > > With these addressed: > > Reviewed-by: Troy Mitchell <[email protected]> > > > [1] > > https://lore.kernel.org/dri-devel/[email protected]/ Thanks both for the testing and review! I'll add the Fixes tag and put the K3 reproduction steps back below the '---' line in v4. Since the maintainer also requested some code changes on this patch, I'll drop the Tested-by and Reviewed-by tags for v4 and CC you both once it's ready. Best regards, Baihui
