Re: [PATCH v11 0/7] Introduction of PSCR Framework and Related Components

Faruque Ansari <[email protected]> Mon, 29 Jun 2026 16:44:18 +0530
Newsgroups dev.linux.lists.chrome-platform,org.kernel.vger.linux-kernel,org.kernel.vger.linux-pm
Message-ID <[email protected]>

On 29-Jun-26 4:40 PM, Faruque Ansari wrote:
> Hi Oleksij,
> 
>>
>> Hello all,
>>
>> This patch series introduces the Power State Change Reasons Recording
>> (PSCRR) framework and its related components into the kernel. The PSCR
>> framework is designed for systems where traditional methods of storing
>> power state change reasons, like PMICs or watchdogs, are inadequate. It
>> provides a structured way to store reasons for system shutdowns and
>> reboots, such as under-voltage or software-triggered events, in
>> non-volatile hardware storage.
>>
>> These changes are critical for systems requiring detailed postmortem
>> analysis and where immediate power-down scenarios limit traditional
>> storage options. The framework also assists bootloaders and early-stage
>> system components in making informed recovery decisions.
>>
>>
> 
> Just wanted to understand rational behind creating this new framework 
> (PSCRR) for
> reboot reason recording and not considering extending the existing 
> nvmem-reboot
> framework ? As, this framework already provides a way to represent nvmem 
> cell in
> the DT and the driver as well can discover it. Would it be correct if 
> nvmem-reboot
> driver itself is extended with the features which this framework provides ?
> 
> or was there any other reason you decided to create a new framework ?
> 
> Thanks,
> Faruque