[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH] xen/char: implement suspend/resume calls for SCIF driver
On 28/03/2025 09:57, Julien Grall wrote: > > > Hi Michal, > > On 28/03/2025 08:39, Orzel, Michal wrote: >> >> >> On 28/03/2025 08:08, Mykola Kvach wrote: >>> >>> >>> From: Volodymyr Babchuk <volodymyr_babchuk@xxxxxxxx> >>> >>> The changes have been tested only on the Renesas R-Car H3 Starter Kit board. >>> >>> Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@xxxxxxxx> >>> Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx> >>> Signed-off-by: Mykola Kvach <mykola_kvach@xxxxxxxx> >> I'm afraid that without a suspend feature on Arm merged, this is just >> introducing a dead code which we try to eliminate both for MISRA and safety. >> I'd prefer to wait for the suspend feature to be merged first. > > This patch is not different from the ns16550 driver which already have > suspend/resume callback and users. They will be used by but the caller > is not used on Arm yet. So you are saying the code there is not MISRA > compliant? If so, is this reported by ECLAIR? NS also works for x86 that has suspend feature. SCIF only works for Arm that does not have suspend feature. Neither NS nor SCIF are enabled in ECLAIR. We have enabled MISRA 2.1 rule about unreachable code (suspend is example of unreachable because it *cannot* be executed), but it's not clean i.e. gating. > > Regardless that, I don't think the full suspend/resume series would > help. AFAIR, the caller will be protected with a config (SUSPEND > something). So IIUC your definition, this code will still be "dead code" > in certain config. Therefore are you suggesting to protect everything > suspend specific code with SUSPEND? I'd say so, yes. > > If the answer is yes, how about introducing the SUSPEND config now? This > would allow to get some of the code merged in advance. Better this than nothing. But in case of this patch, why would we take it anyway without suspend feature? I'd prefer to add SUSPEND config and protect existing code i.e. NS that can work on x86 but not on Arm, etc. ~Michal
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |