[PATCH v16 0/5] powerpc/crash: Kernel handling of CPU and memory hotplug

2024-02-17 Thread Sourabh Jain
Commit 247262756121 ("crash: add generic infrastructure for crash hotplug support") added a generic infrastructure that allows architectures to selectively update the kdump image component during CPU or memory add/remove events within the kernel itself. This patch series adds crash hotplug handler

[PATCH v16 1/5] crash: forward memory_notify arg to arch crash hotplug handler

2024-02-17 Thread Sourabh Jain
In the event of memory hotplug or online/offline events, the crash memory hotplug notifier `crash_memhp_notifier()` receives a `memory_notify` object but doesn't forward that object to the generic and architecture-specific crash hotplug handler. The `memory_notify` object contains the starting PFN

[PATCH v16 2/5] crash: add a new kexec flag for hotplug support

2024-02-17 Thread Sourabh Jain
Commit a72bbec70da2 ("crash: hotplug support for kexec_load()") introduced a new kexec flag, `KEXEC_UPDATE_ELFCOREHDR`. Kexec tool uses this flag to indicate to the kernel that it is safe to modify the elfcorehdr of the kdump image loaded using the kexec_load system call. However, it is possible t

[PATCH v16 3/5] powerpc/kexec: turn some static helper functions public

2024-02-17 Thread Sourabh Jain
Move the functions update_cpus_node and get_crash_memory_ranges from kexec/file_load_64.c to kexec/core_64.c to make these functions usable by other kexec components. get_crash_memory_ranges uses functions defined in ranges.c, so take ranges.c out of CONFIG_KEXEC_FILE. Later in the series, these

[PATCH v16 4/5] powerpc: add crash CPU hotplug support

2024-02-17 Thread Sourabh Jain
Due to CPU/Memory hotplug or online/offline events, the elfcorehdr (which describes the CPUs and memory of the crashed kernel) and FDT (Flattened Device Tree) of kdump image becomes outdated. Consequently, attempting dump collection with an outdated elfcorehdr or FDT can lead to failed or inaccurat

[PATCH v16 5/5] powerpc: add crash memory hotplug support

2024-02-17 Thread Sourabh Jain
Extend the arch crash hotplug handler, as introduced by the patch title ("powerpc: add crash CPU hotplug support"), to also support memory add/remove events. Elfcorehdr describes the memory of the crash kernel to capture the kernel; hence, it needs to be updated if memory resources change due to m

Re: [PATCH v12 08/15] media: uapi: Define audio sample format fourcc type

2024-02-17 Thread Mauro Carvalho Chehab
Em Thu, 18 Jan 2024 20:32:01 +0800 Shengjiu Wang escreveu: > The audio sample format definition is from alsa, > the header file is include/uapi/sound/asound.h, but > don't include this header file directly, because in > user space, there is another copy in alsa-lib. > There will be conflict in us

Re: [PATCH v12 07/15] media: v4l2: Add audio capture and output support

2024-02-17 Thread Mauro Carvalho Chehab
Em Thu, 18 Jan 2024 20:32:00 +0800 Shengjiu Wang escreveu: > Audio signal processing has the requirement for memory to > memory similar as Video. > > This patch is to add this support in v4l2 framework, defined > new buffer type V4L2_BUF_TYPE_AUDIO_CAPTURE and > V4L2_BUF_TYPE_AUDIO_OUTPUT, defin

Re: [PATCH v12 10/15] media: uapi: Add audio rate controls support

2024-02-17 Thread Mauro Carvalho Chehab
Em Thu, 18 Jan 2024 20:32:03 +0800 Shengjiu Wang escreveu: > Add V4L2_CID_M2M_AUDIO_SOURCE_RATE and V4L2_CID_M2M_AUDIO_DEST_RATE > new IDs for rate control. > > Add V4L2_CID_M2M_AUDIO_SOURCE_RATE_OFFSET and > V4L2_CID_M2M_AUDIO_DEST_RATE_OFFSET for clock drift. > > Signed-off-by: Shengjiu Wang

Re: [PATCH v3] powerpc: Add gpr1 and fpu save/restore functions

2024-02-17 Thread Christophe Leroy
Le 16/02/2024 à 18:24, Timothy Pearson a écrit : > When building the kernel in size optimized mode with the amdgpu module > enabled, > gcc will begin referencing external gpr1 and fpu save/restore functions. This > will then cause a linker failure as we do not link against libgcc which > normal

Re: [PATCH v3] powerpc: Add gpr1 and fpu save/restore functions

2024-02-17 Thread Timothy Pearson
- Original Message - > From: "christophe leroy" > To: "Timothy Pearson" > Cc: "linuxppc-dev" > Sent: Saturday, February 17, 2024 10:39:06 AM > Subject: Re: [PATCH v3] powerpc: Add gpr1 and fpu save/restore functions > Le 16/02/2024 à 18:24, Timothy Pearson a écrit : >> When building

[GIT PULL] Please pull powerpc/linux.git powerpc-6.8-3 tag

2024-02-17 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Linus, Please pull some more powerpc fixes for 6.8. This is a bit of a big batch for rc4, but just due to holiday hangover and because I didn't send any fixes last week due to a late revert request. I think next week should be back to normal. c

Re: [GIT PULL] Please pull powerpc/linux.git powerpc-6.8-3 tag

2024-02-17 Thread pr-tracker-bot
The pull request you sent on Sun, 18 Feb 2024 11:16:14 +1100: > https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git > tags/powerpc-6.8-3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/c02197fc9076e7d991c8f6adc11759c5ba52ddc6 Thank you! -- Deet-doot-do

Re: [PATCH v11 0/5]arm64: add ARCH_HAS_COPY_MC support

2024-02-17 Thread Tong Tiangen
Hi Mark: Kindly ping :) Thanks. Tong. 在 2024/2/7 21:21, Tong Tiangen 写道: With the increase of memory capacity and density, the probability of memory error also increases. The increasing size and density of server RAM in data centers and clouds have shown increased uncorrectable memory errors.