RE: nvdimm,pmem: makedumpfile: __vtop4_x86_64: Can't get a valid pte.

2022-11-30 Thread Dan Williams
lizhij...@fujitsu.com wrote: > Hi folks, > > I'm going to make crash coredump support pmem region. So > I have modified kexec-tools to add pmem region to PT_LOAD of vmcore. > > But it failed at makedumpfile, log are as following: > > In my environment, i found the last 512 pages in pmem region

[PATCH v7 1/2] kexec: Introduce kexec_with_frozen_processes

2022-11-30 Thread Ricardo Ribalda
Drivers running .shutdown() might want to wait for userspace to complete before exiting. If userspace is frozen and we are running kexec they will stall the computer. Add a way for them to figure out if they should just skip waiting for userspace. Cc: sta...@vger.kernel.org Fixes: 83bfc7e793b5

[PATCH v7 0/2] ASoC: SOF: Fix deadlock when shutdown a frozen userspace

2022-11-30 Thread Ricardo Ribalda
Since: 83bfc7e793b5 ("ASoC: SOF: core: unregister clients and machine drivers in .shutdown") we wait for all the workloads to be completed during shutdown. This was done to avoid a stall once the device is started again. Unfortunately this has the side effect of stalling kexec(), if the

[PATCH v7 2/2] ASoC: SOF: Fix deadlock when shutdown a frozen userspace

2022-11-30 Thread Ricardo Ribalda
During kexec(), the userspace might frozen. Therefore we cannot wait for it to complete. During a kexec with frozen processe do not unregister the clients. This fixes: [ 84.943749] Freezing user space processes ... (elapsed 0.111 seconds) done. [ 246.784446] INFO: task kexec-lite:5123

Re: [PATCH v6 2/2] ASoC: SOF: Fix deadlock when shutdown a frozen userspace

2022-11-30 Thread Pierre-Louis Bossart
On 11/30/22 09:47, Ricardo Ribalda wrote: > During kexec(), the userspace is frozen. Therefore we cannot wait for it > to complete. > > Avoid running snd_sof_machine_unregister during shutdown. That's not what you are doing below - you only unregister clients conditionally. I don't know if

[PATCH v6 0/2] ASoC: SOF: Fix deadlock when shutdown a frozen userspace

2022-11-30 Thread Ricardo Ribalda
Since: 83bfc7e793b5 ("ASoC: SOF: core: unregister clients and machine drivers in .shutdown") we wait for all the workloads to be completed during shutdown. This was done to avoid a stall once the device is started again. Unfortunately this has the side effect of stalling kexec(), if the

[PATCH v6 1/2] kexec: Introduce kexec_with_frozen_processes

2022-11-30 Thread Ricardo Ribalda
Drivers running .shutdown() might want to wait for userspace to complete before exiting. If userspace is frozen and we are running kexec they will stall the computer. Add a way for them to figure out if they should just skip waiting for userspace. Signed-off-by: Ricardo Ribalda ---

[PATCH v6 2/2] ASoC: SOF: Fix deadlock when shutdown a frozen userspace

2022-11-30 Thread Ricardo Ribalda
During kexec(), the userspace is frozen. Therefore we cannot wait for it to complete. Avoid running snd_sof_machine_unregister during shutdown. This fixes: [ 84.943749] Freezing user space processes ... (elapsed 0.111 seconds) done. [ 246.784446] INFO: task kexec-lite:5123 blocked for more

[ANNOUNCE] kexec-tools v2.0.26 preparation

2022-11-30 Thread Simon Horman
Hi all, I am planning to release kexec-tools v2.0.26 in the next two weeks to roughly coincide with the release of the v6.1 kernel. I would like to ask interested parties to send any patches they would like included in v2.0.26 within one week so they can be considered for inclusion in an rc