Re: [PATCHv8 1/5] powerpc/setup : Enable boot_cpu_hwid for PPC32

2023-10-09 Thread Sourabh Jain
Hello Pingfan, With this patch series applied, the kdump kernel fails to boot on powerpc with nr_cpus=1. Console logs: --- [root]# echo c > /proc/sysrq-trigger [   74.783235] sysrq: Trigger a crash [   74.783244] Kernel panic - not syncing: sysrq triggered crash [   74.783252]

Re: [PATCH v6 4/9] mm: thp: Introduce anon_orders and anon_always_mask sysfs files

2023-10-09 Thread Andrew Morton
On Sun, 08 Oct 2023 09:54:22 +1100 Michael Ellerman wrote: > > I don't know why powerpc's PTE_INDEX_SIZE is variable. > > To allow a single vmlinux to boot using either the Hashed Page Table > MMU, or Radix Tree MMU, which have different page table geometry. > > That's a pretty crucial feature

[PATCH] ibmvnic: replace deprecated strncpy with strscpy

2023-10-09 Thread Justin Stitt
polated VPD buff\n"); } --- base-commit: cbf3a2cb156a2c911d8f38d8247814b4c07f49a2 change-id: 20231009-strncpy-drivers-net-ethernet-ibm-ibmvnic-c-e0900ba19e56 Best regards, -- Justin Stitt

Re: [PATCH v2 00/89] fs: new accessor methods for inode atime and mtime

2023-10-09 Thread Christian Brauner
On Wed, Oct 04, 2023 at 02:52:21PM -0400, Jeff Layton wrote: > v2: > - bugfix in mtime handling > - incorporate _sec and _nsec accessor functions (Chuck Lever) > - move i_generation to plug hole after changing timestamps (Amir Goldstein) > > While working on the multigrain timestamp changes,

[net-next v3 5/5] netdev: use napi_schedule bool instead of napi_schedule_prep/__napi_schedule

2023-10-09 Thread Christian Marangi
Replace if condition of napi_schedule_prep/__napi_schedule and use bool from napi_schedule directly where possible. Signed-off-by: Christian Marangi --- Changes v3: - Drop toshiba change and rework in separate patch --- drivers/net/ethernet/atheros/atlx/atl1.c | 4 +---

[net-next v3 4/5] net: tc35815: rework network interface interrupt logic

2023-10-09 Thread Christian Marangi
Rework network interface logic. Before this change, the code flow was: 1. Disable interrupt 2. Try to schedule a NAPI 3. Check if it was possible (NAPI is not already scheduled) 4. emit BUG() if we receive interrupt while a NAPI is scheduled If some application busy poll or set gro_flush_timeout

[net-next v3 3/5] netdev: replace napi_reschedule with napi_schedule

2023-10-09 Thread Christian Marangi
Now that napi_schedule return a bool, we can drop napi_reschedule that does the same exact function. The function comes from a very old commit bfe13f54f502 ("ibm_emac: Convert to use napi_struct independent of struct net_device") and the purpose is actually deprecated in favour of different logic.

[net-next v3 2/5] netdev: make napi_schedule return bool on NAPI successful schedule

2023-10-09 Thread Christian Marangi
Change napi_schedule to return a bool on NAPI successful schedule. This might be useful for some driver to do additional steps after a NAPI has been scheduled. Suggested-by: Eric Dumazet Signed-off-by: Christian Marangi Reviewed-by: Eric Dumazet --- Changes v2: - Add Suggested-by tag - Add

[net-next v3 1/5] netdev: replace simple napi_schedule_prep/__napi_schedule to napi_schedule

2023-10-09 Thread Christian Marangi
Replace drivers that still use napi_schedule_prep/__napi_schedule with napi_schedule helper as it does the same exact check and call. Signed-off-by: Christian Marangi Reviewed-by: Eric Dumazet --- Changes v3: - Add Reviewed-by tag Changes v2: - Add missing semicolon ---

[PATCH v3 9/9] efi: move screen_info into efi init code

2023-10-09 Thread Arnd Bergmann
From: Arnd Bergmann After the vga console no longer relies on global screen_info, there are only two remaining use cases: - on the x86 architecture, it is used for multiple boot methods (bzImage, EFI, Xen, kexec) to commucate the initial VGA or framebuffer settings to a number of device

[PATCH v3 8/9] hyperv: avoid dependency on screen_info

2023-10-09 Thread Arnd Bergmann
From: Arnd Bergmann The two hyperv framebuffer drivers (hyperv_fb or hyperv_drm_drv) access the global screen_info in order to take over from the sysfb framebuffer, which in turn could be handled by simplefb, simpledrm or efifb. Similarly, the vmbus_drv code marks the original EFI framebuffer as

[PATCH v3 7/9] vga16fb: drop powerpc support

2023-10-09 Thread Arnd Bergmann
From: Arnd Bergmann I noticed that commit 0db5b61e0dc07 ("fbdev/vga16fb: Create EGA/VGA devices in sysfb code") broke vga16fb on non-x86 platforms, because the sysfb code never creates a vga-framebuffer device when screen_info.orig_video_isVGA is set to '1' instead of VIDEO_TYPE_VGAC. However,

[PATCH v3 6/9] vgacon: clean up global screen_info instances

2023-10-09 Thread Arnd Bergmann
From: Arnd Bergmann To prepare for completely separating the VGA console screen_info from the one used in EFI/sysfb, rename the vgacon instances and make them local as much as possible. ia64 and arm both have confurations with vgacon and efi, but the contents never overlaps because ia64 has no

[PATCH v3 5/9] vgacon: remove screen_info dependency

2023-10-09 Thread Arnd Bergmann
From: Arnd Bergmann The vga console driver is fairly self-contained, and only used by architectures that explicitly initialize the screen_info settings. Chance every instance that picks the vga console by setting conswitchp to call a function instead, and pass a reference to the screen_info

[PATCH v3 4/9] vgacon, arch/*: remove unused screen_info definitions

2023-10-09 Thread Arnd Bergmann
From: Arnd Bergmann A number of architectures either kept the screen_info definition for historical purposes as it used to be required by the generic VT code, or they copied it from another architecture in order to build the VGA console driver in an allmodconfig build. The mips definition is

[PATCH v3 3/9] dummycon: limit Arm console size hack to footbridge

2023-10-09 Thread Arnd Bergmann
From: Arnd Bergmann The dummycon default console size used to be determined by architecture, but now this is a Kconfig setting on everything except ARM. Tracing this back in the historic git trees, this was used to match the size of VGA console or VGA framebuffer on early machines, but nowadays

[PATCH v3 2/9] vgacon: rework screen_info #ifdef checks

2023-10-09 Thread Arnd Bergmann
From: Arnd Bergmann On non-x86 architectures, the screen_info variable is generally only used for the VGA console where supported, and in some cases the EFI framebuffer or vga16fb. Now that we have a definite list of which architectures actually use it for what, use consistent #ifdef checks so

[PATCH v3 1/9] vgacon: rework Kconfig dependencies

2023-10-09 Thread Arnd Bergmann
From: Arnd Bergmann The list of dependencies here is phrased as an opt-out, but this is missing a lot of architectures that don't actually support VGA consoles, and some of the entries are stale: - powerpc used to support VGA consoles in the old arch/ppc codebase, but the merged

[PATCH v3 0/9] video: screen_info cleanups

2023-10-09 Thread Arnd Bergmann
From: Arnd Bergmann v3 changelog No real changes, just rebased for context changes, and picked up the Acks. This now conflicts with the ia64 removal and introduces one new dependency on IA64, but that is harmless and trivial to deal with later. Link:

[PATCH] usb: Use device_get_match_data()

2023-10-09 Thread Rob Herring
Use preferred device_get_match_data() instead of of_match_device() to get the driver match data. With this, adjust the includes to explicitly include the correct headers. Signed-off-by: Rob Herring --- drivers/usb/chipidea/ci_hdrc_usb2.c | 11 +-- drivers/usb/dwc2/params.c |

Re: [PATCH] powerpc/pseries/vas: Migration suspend waits for no in-progress open windows

2023-10-09 Thread Nathan Lynch
Hi Haren, Haren Myneni writes: > The hypervisor returns migration failure if all VAS windows are not > closed. During pre-migration stage, vas_migration_handler() sets > migration_in_progress flag and closes all windows from the list. > The allocate VAS window routine checks the migration flag,

[PATCH net-next] net: ethernet: Use device_get_match_data()

2023-10-09 Thread Rob Herring
Use preferred device_get_match_data() instead of of_match_device() to get the driver match data. With this, adjust the includes to explicitly include the correct headers. Signed-off-by: Rob Herring --- drivers/net/ethernet/altera/altera_tse.h | 2 +-

Re: [RFC PATCH v12 05/33] KVM: Convert KVM_ARCH_WANT_MMU_NOTIFIER to CONFIG_KVM_GENERIC_MMU_NOTIFIER

2023-10-09 Thread Anup Patel
On Thu, Sep 14, 2023 at 7:25 AM Sean Christopherson wrote: > > Convert KVM_ARCH_WANT_MMU_NOTIFIER into a Kconfig and select it where > appropriate to effectively maintain existing behavior. Using a proper > Kconfig will simplify building more functionality on top of KVM's > mmu_notifier

Re: [EXT] Re: Re: [PATCH v2 1/2] ASoC: dt-bindings: fsl_rpmsg: List DAPM endpoints ignoring system suspend

2023-10-09 Thread Mark Brown
On Sat, Oct 07, 2023 at 11:13:49AM +, Chancel Liu wrote: > Instead of "fsl,lpa-widgets", I would like to add a common property > "ignore-suspend-widgets" in sound-card-common.yaml file. So not only rpmsg > sound cards but also other sound cards which have such feature can use this > property

Re: KUEP broken on FSP2?

2023-10-09 Thread Christophe Leroy
Le 09/10/2023 à 17:12, Eddie James a écrit : > > On 10/9/23 08:14, Michael Ellerman wrote: >> Eddie James writes: >>> Hi, >>> >>> I'm attempting to run linux 6.1 on my FSP2, but my kernel crashes >>> attempting to get into userspace. The init script works, but the first >>> binary (mount) I

[Bug 216156] [bisected] kmemleak: Not scanning unknown object at 0xc00000007f000000

2023-10-09 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=216156 --- Comment #14 from Erhard F. (erhar...@mailbox.org) --- Thanks for having a look at the issue! Applied your patch on top of v6.5.6 but it didn't work out. Now I get: [...] drmem: No dynamic reconfiguration memory found ata5.00: ATAPI:

Re: KUEP broken on FSP2?

2023-10-09 Thread Eddie James
On 10/9/23 08:14, Michael Ellerman wrote: Eddie James writes: Hi, I'm attempting to run linux 6.1 on my FSP2, but my kernel crashes attempting to get into userspace. The init script works, but the first binary (mount) I run results in oops. Can anyone help me to debug this further or

Re: [RFC PATCH v5 11/11] media: audm2m: add virtual driver for audio memory to memory

2023-10-09 Thread Hans Verkuil
On 28/09/2023 11:00, Shengjiu Wang wrote: > Audio memory to memory virtual driver use video memory to memory > virtual driver vim2m.c as example. The main difference is > device type is VFL_TYPE_AUDIO and device cap type is V4L2_CAP_AUDIO_M2M. > > The device_run function is a dummy function,

Re: [RFC PATCH v5 09/11] media: uapi: define audio sample format fourcc type

2023-10-09 Thread Hans Verkuil
Hi Shengjiu, On 28/09/2023 11:00, Shengjiu Wang wrote: > 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

Re: [RFC PATCH v5 08/11] media: uapi: Add audio rate controls support

2023-10-09 Thread Hans Verkuil
On 28/09/2023 11:00, Shengjiu Wang wrote: > Audio rate controls is used for user to configure is -> are for -> by the > the audio sample rate to driver. > > Add V4L2_CID_ASRC_SOURCE_RATE and V4L2_CID_ASRC_DEST_RATE > new ID for ASRC rate control. ID -> IDs > > Signed-off-by: Shengjiu Wang >

Re: [PATCH v7 10/30] net: wan: Add support for QMC HDLC

2023-10-09 Thread Herve Codina
Hi Jakub, On Fri, 6 Oct 2023 14:47:02 -0700 Jakub Kicinski wrote: > On Thu, 28 Sep 2023 09:06:28 +0200 Herve Codina wrote: > > +static int qmc_hdlc_close(struct net_device *netdev) > > +{ > > + struct qmc_hdlc *qmc_hdlc = netdev_to_qmc_hdlc(netdev); > > + struct qmc_hdlc_desc *desc; > > +

Re: [RFC PATCH v5 07/11] media: v4l2: Add audio capture and output support

2023-10-09 Thread Hans Verkuil
On 28/09/2023 11:00, Shengjiu Wang wrote: > 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, defined new format

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

2023-10-09 Thread Sourabh Jain
/powerpc-make-fadump-resilient-with-memory-add-remove-events/20231009-122519 base: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next patch link: https://lore.kernel.org/r/20231009041953.36139-2-sourabhjain%40linux.ibm.com patch subject: [PATCH v3 1/3] powerpc: make fadump

[PATCH] powerpc/code-patching: Perform hwsync in __patch_instruction() in case of failure

2023-10-09 Thread Christophe Leroy
Commit c28c15b6d28a ("powerpc/code-patching: Use temporary mm for Radix MMU") added a hwsync for when __patch_instruction() fails, we results in a quite odd unbalanced logic. Instead of calling mb() when __patch_instruction() returns an error, call mb() in the __patch_instruction()'s error path

Re: KUEP broken on FSP2?

2023-10-09 Thread Michael Ellerman
Eddie James writes: > Hi, > > I'm attempting to run linux 6.1 on my FSP2, but my kernel crashes > attempting to get into userspace. The init script works, but the first > binary (mount) I run results in oops. Can anyone help me to debug this > further or suggest anything? Hi Eddie, It looks

[PATCHv8 5/5] powerpc/setup: alloc extra paca_ptrs to hold boot_cpuid

2023-10-09 Thread Pingfan Liu
paca_ptrs should be large enough to hold the boot_cpuid, hence, its lower boundary is set to the bigger one between boot_cpuid+1 and nr_cpus. On the other hand, some kernel component: -1. the timer assumes cpu0 online since the timer_list->flags subfield 'TIMER_CPUMASK' is zero if not initialized

[PATCHv8 4/5] powerpc/cpu: Skip impossible cpu during iteration on a core

2023-10-09 Thread Pingfan Liu
The threads in a core have equal status, so the code introduces a for loop pattern to execute the same task on each thread: for (i = first_thread; i < first_thread + threads_per_core; i++) Now that some threads may not be in the cpu_possible_mask, the iteration skips those threads by checking

[PATCHv8 1/5] powerpc/setup : Enable boot_cpu_hwid for PPC32

2023-10-09 Thread Pingfan Liu
In order to identify the boot cpu, its intserv[] should be recorded and checked in smp_setup_cpu_maps(). smp_setup_cpu_maps() is shared between PPC64 and PPC32. Since PPC64 has already used boot_cpu_hwid to carry that information, enabling this variable on PPC32 so later it can also be used to

[PATCHv8 3/5] powerpc/setup: Handle the case when boot_cpuid greater than nr_cpus

2023-10-09 Thread Pingfan Liu
If the boot_cpuid is smaller than nr_cpus, it requires extra effort to ensure the boot_cpu is in cpu_present_mask. This can be achieved by reserving the last quota for the boot cpu. Note: the restriction on nr_cpus will be lifted with more effort in the successive patches Signed-off-by: Pingfan

[PATCHv8 2/5] powerpc/setup: Loosen the mapping between cpu logical id and its seq in dt

2023-10-09 Thread Pingfan Liu
*** Idea *** For kexec -p, the boot cpu can be not the cpu0, this causes the problem of allocating memory for paca_ptrs[]. However, in theory, there is no requirement to assign cpu's logical id as its present sequence in the device tree. But there is something like cpu_first_thread_sibling(),

[PATCHv8 0/5] enable nr_cpus for powerpc

2023-10-09 Thread Pingfan Liu
Since my last v4 [1], the code has undergone great changes. The paca[] array has been reorganized and indexed by paca_ptrs[], which dramatically decreases the memory consumption even if there are many unpresent cpus in the middle. However, reordering the logical cpu numbers can further decrease

Re: [net-next PATCH v2 4/4] netdev: use napi_schedule bool instead of napi_schedule_prep/__napi_schedule

2023-10-09 Thread Eric Dumazet
On Sun, Oct 8, 2023 at 8:27 PM Christian Marangi wrote: > > On Sun, Oct 08, 2023 at 09:08:41AM +0200, Eric Dumazet wrote: > > On Fri, Oct 6, 2023 at 8:49 PM Christian Marangi > > wrote: > > > > > > On Thu, Oct 05, 2023 at 06:16:26PM +0200, Eric Dumazet wrote: > > > > On Tue, Oct 3, 2023 at 8:36 

Re: [PATCH 00/20] mtd: Convert to platform remove callback returning void

2023-10-09 Thread Tudor Ambarus
On 10/8/23 21:01, Uwe Kleine-König wrote: > Hello, > > this series converts all platform drivers below drivers/mtd to use the > .remove_new() callback. Compared to the traditional .remove() callback > .remove_new() returns no value. This is a good thing because the driver > core doesn't (and

RE: [PATCH v2 3/9] iommu/vt-d: Use ops->blocked_domain

2023-10-09 Thread Tian, Kevin
> From: Jason Gunthorpe > Sent: Thursday, September 28, 2023 7:48 AM > > Trivially migrate to the ops->blocked_domain for the existing global > static. > > Reviewed-by: Lu Baolu > Signed-off-by: Jason Gunthorpe Reviewed-by: Kevin Tian

RE: [PATCH v2 2/9] iommu/vt-d: Update the definition of the blocking domain

2023-10-09 Thread Tian, Kevin
> From: Jason Gunthorpe > Sent: Thursday, September 28, 2023 7:48 AM > > The global static should pre-define the type and the NOP free function can > be now left as NULL. > > Reviewed-by: Lu Baolu > Signed-off-by: Jason Gunthorpe Reviewed-by: Kevin Tian

RE: [PATCH v2 1/9] iommu: Move IOMMU_DOMAIN_BLOCKED global statics to ops->blocked_domain

2023-10-09 Thread Tian, Kevin
> From: Jason Gunthorpe > Sent: Thursday, September 28, 2023 7:48 AM > > Following the pattern of identity domains, just assign the BLOCKED domain > global statics to a value in ops. Update the core code to use the global > static directly. > > Update powerpc to use the new scheme and remove

RE: [PATCH v2 4/9] iommufd: Convert to alloc_domain_paging()

2023-10-09 Thread Tian, Kevin
> From: Jason Gunthorpe > Sent: Thursday, September 28, 2023 7:48 AM > > Move the global static blocked domain to the ops and convert the > unmanaged > domain to domain_alloc_paging. > > Signed-off-by: Jason Gunthorpe Reviewed-by: Kevin Tian

Re: [PATCH v2 00/15] sysctl: Remove sentinel elements from drivers

2023-10-09 Thread Joel Granados
On Sun, Oct 08, 2023 at 09:28:00AM +1100, Michael Ellerman wrote: > Joel Granados writes: > > On Mon, Oct 02, 2023 at 12:27:18PM +, Christophe Leroy wrote: > >> Le 02/10/2023 à 10:55, Joel Granados via B4 Relay a écrit : > >> > From: Joel Granados > >> > > > <--- snip ---> > >> > -

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

2023-10-09 Thread kernel test robot
suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Sourabh-Jain/powerpc-make-fadump-resilient-with-memory-add-remove-events/20231009-122519 base: https://git.kernel.org/pub/scm/linux/kernel

[RFC PATCH 5/6] powerpc/dexcr: Add sysctl entry for SBHE system override

2023-10-09 Thread Benjamin Gray
The DEXCR Speculative Branch Hint Enable (SBHE) aspect controls whether the hints provided by BO field of Branch instructions are obeyed during speculative execution. SBHE behaviour per ISA 3.1B: 0: The hints provided by BO field of Branch instructions may be ignored during