[PATCH v2 0/2] ASoC: fsl_mqs: Add i.MX95 platform support

2024-05-21 Thread Shengjiu Wang
There are two MQS instances on the i.MX95 platform. The definition of bit positions in the control register are different. In order to support these MQS modules, define two compatible strings to distinguish them. changes in v2: - remove "fsl,mqs-ctrl" property - use two compatible strings to disti

[PATCH v2 1/2] ASoC: dt-bindings: fsl,mqs: Add i.MX95 platform support

2024-05-21 Thread Shengjiu Wang
There are two MQS instances on the i.MX95 platform. The definition of bit positions in the control register are different. In order to support these MQS modules, define two compatible strings to distinguish them. As one instance is in the always-on domain, another is in the net controller domain,

[PATCH v2 2/2] ASoC: fsl_mqs: Add i.MX95 platform support

2024-05-21 Thread Shengjiu Wang
There are two MQS instances on the i.MX95 platform. The definition of bit positions in the control register are different. In order to support these MQS modules, define two compatible strings to distinguish them. Define different soc data according to compatible strings On i.MX95 one instance in

Re: [PATCH v2 1/1] powerpc/numa: Online a node if PHB is attached.

2024-05-21 Thread Srikar Dronamraju
* Nilay Shroff [2024-05-17 19:55:23]: Hi Nilay, > In the current design, a numa-node is made online only if > that node is attached to cpu/memory. With this design, if > any PCI/IO device is found to be attached to a numa-node > which is not online then the numa-node id of the corresponding > PC

[PATCH v2 2/6] KVM: VMX: Move PLE grow/shrink helpers above vmx_vcpu_load()

2024-05-21 Thread Sean Christopherson
Move VMX's {grow,shrink}_ple_window() above vmx_vcpu_load() in preparation of moving the sched_in logic, which handles shrinking the PLE window, into vmx_vcpu_load(). No functional change intended. Signed-off-by: Sean Christopherson --- arch/x86/kvm/vmx/vmx.c | 64 +-

[PATCH v2 6/6] KVM: x86: Drop now-superflous setting of l1tf_flush_l1d in vcpu_run()

2024-05-21 Thread Sean Christopherson
Now that KVM unconditionally sets l1tf_flush_l1d in kvm_arch_vcpu_load(), drop the redundant store from vcpu_run(). The flag is cleared only when VM-Enter is imminent, deep below vcpu_run(), i.e. barring a KVM bug, it's impossible for l1tf_flush_l1d to be cleared between loading the vCPU and calli

[PATCH v2 4/6] KVM: Delete the now unused kvm_arch_sched_in()

2024-05-21 Thread Sean Christopherson
Delete kvm_arch_sched_in() now that all implementations are nops. Signed-off-by: Sean Christopherson --- arch/arm64/include/asm/kvm_host.h | 1 - arch/loongarch/include/asm/kvm_host.h | 1 - arch/mips/include/asm/kvm_host.h | 1 - arch/powerpc/include/asm/kvm_host.h | 1 - arch/riscv/

[PATCH v2 3/6] KVM: x86: Fold kvm_arch_sched_in() into kvm_arch_vcpu_load()

2024-05-21 Thread Sean Christopherson
Fold the guts of kvm_arch_sched_in() into kvm_arch_vcpu_load(), keying off the recently added kvm_vcpu.scheduled_out as appropriate. Note, there is a very slight functional change, as PLE shrink updates will now happen after blasting WBINVD, but that is quite uninteresting as the two operations do

[PATCH v2 5/6] KVM: x86: Unconditionally set l1tf_flush_l1d during vCPU load

2024-05-21 Thread Sean Christopherson
Always set l1tf_flush_l1d during kvm_arch_vcpu_load() instead of setting it only when the vCPU is being scheduled back in. The flag is processed only when VM-Enter is imminent, and KVM obviously needs to load the vCPU before VM-Enter, so attempting to precisely set l1tf_flush_l1d provides no meani

[PATCH v2 1/6] KVM: Add a flag to track if a loaded vCPU is scheduled out

2024-05-21 Thread Sean Christopherson
Add a kvm_vcpu.scheduled_out flag to track if a vCPU is in the process of being scheduled out (vCPU put path), or if the vCPU is being reloaded after being scheduled out (vCPU load path). In the short term, this will allow dropping kvm_arch_sched_in(), as arch code can query scheduled_out during k

[PATCH v2 0/6] KVM: Fold kvm_arch_sched_in() into kvm_arch_vcpu_load()

2024-05-21 Thread Sean Christopherson
Drop kvm_arch_sched_in() and instead add and use kvm_vcpu.scheduled_out to communicate to kvm_arch_vcpu_load() that the vCPU is being scheduling back in. While fiddling with an idea for optimizing state management on AMD CPUs, I wanted to skip re-saving certain host state when a vCPU is scheduled

Re: [RFC PATCH v2 18/20] powerpc/64s: Use contiguous PMD/PUD instead of HUGEPD

2024-05-21 Thread Nicholas Piggin
On Tue May 21, 2024 at 2:43 AM AEST, Christophe Leroy wrote: > > > Le 20/05/2024 à 14:54, Nicholas Piggin a écrit : > > On Sat May 18, 2024 at 5:00 AM AEST, Christophe Leroy wrote: > >> On book3s/64, the only user of hugepd is hash in 4k mode. > >> > >> All other setups (hash-64, radix-4, radix-64)

[PATCH v5 44/68] selftests/powerpc: Drop define _GNU_SOURCE

2024-05-21 Thread Edward Liaw
_GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent redefinition warnings. Signed-off-by: Edward Liaw --- tools/testing/selftests/powerpc/benchmarks/context_switch.c| 2 -- tools/testing/selftests/powerpc/benchmarks/exec_target.c | 2 -- tools/testing/selftests/powerp

Re: [PATCH 1/2] powerpc/uaccess: Fix build errors seen with GCC 14

2024-05-21 Thread Nick Desaulniers
On Tue, May 21, 2024 at 5:39 AM Michael Ellerman wrote: > > Building ppc64le_defconfig with GCC 14 fails with assembler errors: > > CC fs/readdir.o > /tmp/ccdQn0mD.s: Assembler messages: > /tmp/ccdQn0mD.s:212: Error: operand out of domain (18 is not a multiple of > 4) > /tmp/ccdQn0

[PATCH 1/2] powerpc/uaccess: Fix build errors seen with GCC 14

2024-05-21 Thread Michael Ellerman
Building ppc64le_defconfig with GCC 14 fails with assembler errors: CC fs/readdir.o /tmp/ccdQn0mD.s: Assembler messages: /tmp/ccdQn0mD.s:212: Error: operand out of domain (18 is not a multiple of 4) /tmp/ccdQn0mD.s:226: Error: operand out of domain (18 is not a multiple of 4) ...

[PATCH 2/2] powerpc/uaccess: Use YZ asm constraint for ld

2024-05-21 Thread Michael Ellerman
The 'ld' instruction requires a 4-byte aligned displacement because it is a DS-form instruction. But the "m" asm constraint doesn't enforce that. Add a special case of __get_user_asm2_goto() so that the "YZ" constraint can be used for "ld". The "Z" constraint is documented in the GCC manual Power

Re: [RFC PATCH v2 01/20] mm: Provide pagesize to pmd_populate()

2024-05-21 Thread Oscar Salvador
On Mon, May 20, 2024 at 04:24:51PM +, Christophe Leroy wrote: > I had a quick look at that document and it seems to provide a good > summary of MMU features and principles. However there are some > theoritical information which is not fully right in practice. For > instance when they say "Se

[PATCH v3 0/2] ASoC: fsl_xcvr: Support i.MX95 platform

2024-05-21 Thread Shengjiu Wang
On i.MX95 wakeup domain, there is one instance of Audio XCVR supporting SPDIF mode with a connection to the Audio XCVR physical interface. changes in v3: - refine the constraint for 'resets', 'clocks', 'interrupts' in document. changes in v2: - Merge patch 1&2, 3&4 from v1 together. - Add more co

[PATCH v3 2/2] ASoC: fsl_xcvr: Add support for i.MX95 platform

2024-05-21 Thread Shengjiu Wang
On i.MX95, the XCVR uses a new PLL in the PHY, which is General Purpose (GP) PLL. Add GP PLL configuration support in the driver and add the 'pll_ver' flag to distinguish different PLL on different platforms. The XCVR also use PHY but limited for SPDIF only case Add 'use_phy' flag to distinguish t

[PATCH v3 1/2] ASoC: dt-bindings: fsl,xcvr: Add compatible string for i.MX95

2024-05-21 Thread Shengjiu Wang
Add compatible string "fsl,imx95-xcvr" for i.MX95 platform. The difference between each platform is in below table. +-++--++ | SOC| PHY | eARC/ARC | SPDIF | +-++--++ | i.MX8MP | V1| Yes | Yes | +-+--

Re: [RFC PATCH v2 03/20] mm: Provide pmd to pte_leaf_size()

2024-05-21 Thread Oscar Salvador
On Fri, May 17, 2024 at 08:59:57PM +0200, Christophe Leroy wrote: > On powerpc 8xx, when a page is 8M size, the information is in the PMD > entry. So provide it to pte_leaf_size(). > > Signed-off-by: Christophe Leroy Overall looks good to me. Would be nicer if we could left the arch code untouc

Re: [RFC PATCH v2 06/20] powerpc/8xx: Fix size given to set_huge_pte_at()

2024-05-21 Thread Oscar Salvador
On Tue, May 21, 2024 at 10:48:21AM +1000, Michael Ellerman wrote: > Yeah I can. Does it actually cause a bug at runtime (I assume so)? No, currently set_huge_pte_at() from 8xx ignores the 'sz' parameter. But it will be used after this series. -- Oscar Salvador SUSE Labs

Re: [Patch v2] mm/memblock: discard .text/.data if CONFIG_ARCH_KEEP_MEMBLOCK not set

2024-05-21 Thread Mike Rapoport
Hi, On Fri, May 10, 2024 at 02:04:22AM +, Wei Yang wrote: > When CONFIG_ARCH_KEEP_MEMBLOCK not set, we expect to discard related > code and data. But it doesn't until CONFIG_MEMORY_HOTPLUG not set > neither. > > This patch puts memblock's .text/.data into its own section, so that it > only de

Re: CVE-2023-52665: powerpc/ps3_defconfig: Disable PPC64_BIG_ENDIAN_ELF_ABI_V2

2024-05-21 Thread Greg Kroah-Hartman
On Tue, May 21, 2024 at 09:47:33AM +1000, Michael Ellerman wrote: > Greg Kroah-Hartman writes: > > On Mon, May 20, 2024 at 05:35:32PM +0900, Geoff Levand wrote: > >> On 5/20/24 16:04, Michael Ellerman wrote: > >> > Greg Kroah-Hartman writes: > >> >> Description > >> >> === > >> >> > >> >>