Re: [PATCH 02/12] powerpc/pseries: Restructure hvc_get_chars() endianness

2024-02-19 Thread Christophe Leroy
Michael ? Any reason for not picking that one ? Le 30/10/2023 à 14:16, Aneesh Kumar K.V a écrit : > Benjamin Gray writes: > >> Sparse reports an endian mismatch in hvc_get_chars(). >> >> At first it seemed like the retbuf should be __be64[], but actually >> retbuf holds serialized registers

Re: [PATCH 00/13] kmsan: Enable on powerpc

2024-02-19 Thread Christophe Leroy
Le 14/12/2023 à 06:55, Nicholas Miehlbradt a écrit : > This series provides the minimal support for Kernal Memory Sanitizer on > powerpc pseries le guests. Kernal Memory Sanitizer is a tool which detects > uses of uninitialized memory. Currently KMSAN is clang only. > > The clang support for

Re: [PATCH] powerpc: remove unused *_syscall_64.o variables in Makefile

2024-02-19 Thread Michael Ellerman
Masahiro Yamada writes: > +To: Daniel Axtens Unfortunately dja doesn't work on the kernel anymore. > Maybe, we should check if the issue fixed by > 2f26ed1764b42a8c40d9c48441c73a70d805decf > came back. That crash is specific to Power8, which probably no one is running syzkaller on anymore. If

Re: [PATCH] mm/debug_vm_pgtable: Fix BUG_ON with pud advanced test

2024-02-19 Thread Aneesh Kumar K.V
On 2/20/24 8:16 AM, Andrew Morton wrote: > On Mon, 29 Jan 2024 13:43:39 +0530 "Aneesh Kumar K.V" > wrote: > >>> return (pud_val(pud) & (_PAGE_PSE|_PAGE_DEVMAP)) == _PAGE_PSE; >>> } >>> #endif >>> >>> #ifdef CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD >>> static inline int pud_devmap(pud_t

Re: [PATCH] mm/debug_vm_pgtable: Fix BUG_ON with pud advanced test

2024-02-19 Thread Andrew Morton
On Mon, 29 Jan 2024 13:43:39 +0530 "Aneesh Kumar K.V" wrote: > > return (pud_val(pud) & (_PAGE_PSE|_PAGE_DEVMAP)) == _PAGE_PSE; > > } > > #endif > > > > #ifdef CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD > > static inline int pud_devmap(pud_t pud) > > { > > return !!(pud_val(pud)

Re: [PATCH RFC] powerpc/pseries: exploit H_PAGE_SET_UNUSED for partition migration

2024-02-19 Thread Nathan Lynch
> > Although the H_PAGE_INIT hcall's H_PAGE_SET_UNUSED historically has > been tied to the cooperative memory overcommit (CMO) platform feature, > the flag also is treated by the PowerVM hypervisor as a hint that the > page contents need not be copied to the destination during a live > partition

Re: [PATCH 01/13] kmsan: Export kmsan_handle_dma

2024-02-19 Thread Christophe Leroy
Le 14/12/2023 à 06:55, Nicholas Miehlbradt a écrit : > kmsan_handle_dma is required by virtio drivers. Export kmsan_handle_dma > so that the drivers can be compiled as modules. > > Signed-off-by: Nicholas Miehlbradt > --- > mm/kmsan/hooks.c | 1 + > 1 file changed, 1 insertion(+) > > diff

[PATCHv8 1/2] watchdog/softlockup: low-overhead detection of interrupt

2024-02-19 Thread Bitao Hu
The following softlockup is caused by interrupt storm, but it cannot be identified from the call tree. Because the call tree is just a snapshot and doesn't fully capture the behavior of the CPU during the soft lockup. watchdog: BUG: soft lockup - CPU#28 stuck for 23s! [fio:83921] ... Call

[PATCHv8 0/2] *** Detect interrupt storm in softlockup ***

2024-02-19 Thread Bitao Hu
Hi, guys. I have implemented a low-overhead method for detecting interrupt storm in softlockup. Please review it, all comments are welcome. Changes from v7 to v8: - From Thomas Gleixner, implement statistics within the interrupt core code and provide sensible interfaces for the watchdog code.

[PATCHv8 2/2] watchdog/softlockup: report the most frequent interrupts

2024-02-19 Thread Bitao Hu
When the watchdog determines that the current soft lockup is due to an interrupt storm based on CPU utilization, reporting the most frequent interrupts could be good enough for further troubleshooting. Below is an example of interrupt storm. The call tree does not provide useful information, but

Re: [RESEND PATCH net v4 1/2] soc: fsl: qbman: Always disable interrupts when taking cgr_lock

2024-02-19 Thread Vladimir Oltean
Hi Sean, On Thu, Feb 15, 2024 at 11:23:26AM -0500, Sean Anderson wrote: > smp_call_function_single disables IRQs when executing the callback. To > prevent deadlocks, we must disable IRQs when taking cgr_lock elsewhere. > This is already done by qman_update_cgr and qman_delete_cgr; fix the > other

Re: [PATCH v6 12/18] arm64/mm: Wire up PTE_CONT for user mappings

2024-02-19 Thread Catalin Marinas
On Fri, Feb 16, 2024 at 12:53:43PM +, Ryan Roberts wrote: > On 16/02/2024 12:25, Catalin Marinas wrote: > > On Thu, Feb 15, 2024 at 10:31:59AM +, Ryan Roberts wrote: > >> +pte_t contpte_ptep_get_lockless(pte_t *orig_ptep) > >> +{ > >> + /* > >> + * Gather access/dirty bits, which may be

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

2024-02-19 Thread Mauro Carvalho Chehab
Em Mon, 19 Feb 2024 12:05:02 +0800 Shengjiu Wang escreveu: > Hi Mauro > > On Sat, Feb 17, 2024 at 5:19 PM Mauro Carvalho Chehab > wrote: > > > > Em Thu, 18 Jan 2024 20:32:01 +0800 > > Shengjiu Wang escreveu: > > > > > The audio sample format definition is from alsa, > > > the header file is

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

2024-02-19 Thread Mauro Carvalho Chehab
Em Mon, 19 Feb 2024 14:03:37 +0800 Shengjiu Wang escreveu: > On Sat, Feb 17, 2024 at 5:57 PM Mauro Carvalho Chehab > wrote: > > > > 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

Re: [kvm-unit-tests PATCH v4 8/8] migration: add a migration selftest

2024-02-19 Thread Nicholas Piggin
On Mon Feb 19, 2024 at 4:56 PM AEST, Thomas Huth wrote: > On 17/02/2024 08.19, Nicholas Piggin wrote: > > On Fri Feb 16, 2024 at 9:15 PM AEST, Thomas Huth wrote: > >> On 09/02/2024 10.11, Nicholas Piggin wrote: > >>> Add a selftest for migration support in guest library and test harness > >>>

[PATCH next] bus: fsl-mc: constify the struct device_type usage

2024-02-19 Thread Ricardo B. Marliere
ype; +extern const struct device_type fsl_mc_bus_dpci_type; +extern const struct device_type fsl_mc_bus_dpdmai_type; static inline bool is_fsl_mc_bus_dprc(const struct fsl_mc_device *mc_dev) { --- base-commit: b401b621758e46812da61fa58a67c3fd8d91de0d change-id: 20240219-device_cleanup-fsl-mc-b2d8f7a5308d Best regards, -- Ricardo B. Marliere

Re: [PATCH v7 1/3] powerpc: make fadump resilient with memory add/remove events

2024-02-19 Thread Sourabh Jain
Hello Hari, On 23/01/24 15:39, Hari Bathini wrote: On 11/01/24 7:39 pm, Sourabh Jain wrote: Due to changes in memory resources caused by either memory hotplug or online/offline events, the elfcorehdr, which describes the CPUs and memory of the crashed kernel to the kernel that collects the