Re: [PATCH v3 4/5] vfio: Remove CONFIG_VFIO_SPAPR_EEH

2022-10-18 Thread Christoph Hellwig
> +#if IS_ENABLED(CONFIG_EEH) && IS_ENABLED(CONFIG_VFIO_IOMMU_SPAPR_TCE) > #include > #endif > > @@ -689,7 +689,7 @@ void vfio_pci_core_close_device(struct vfio_device > *core_vdev) > vdev->sriov_pf_core_dev->vf_token->users--; >

Re: [PATCH] powerpc/hv-gpci: Fix hv_gpci event list

2022-10-18 Thread Michael Ellerman
Kajol Jain writes: > Based on getPerfCountInfo v1.018 documentation, some of the > hv_gpci events got deprecated for platforms firmware that > supports counter_info_version 0x8 or above. > > Patch fixes the hv_gpci event list by adding a new attribute > group called "hv_gpci_event_attrs_v6" and a

Re: [PATCH] powerpc/hv-gpci: Fix hv_gpci event list

2022-10-18 Thread Athira Rajeev
> On 20-Sep-2022, at 10:08 PM, Kajol Jain wrote: > > Based on getPerfCountInfo v1.018 documentation, some of the > hv_gpci events got deprecated for platforms firmware that > supports counter_info_version 0x8 or above. > > Patch fixes the hv_gpci event list by adding a new attribute > group

Re: sched/debug: CPU hotplug operation suffers in a large cpu systems

2022-10-18 Thread Greg Kroah-Hartman
On Tue, Oct 18, 2022 at 04:07:06PM +0530, Vishal Chourasia wrote: > On Mon, Oct 17, 2022 at 04:54:11PM +0200, Greg Kroah-Hartman wrote: > > On Mon, Oct 17, 2022 at 04:19:31PM +0200, Peter Zijlstra wrote: > > > > > > +GregKH who actually knows about debugfs. > > > > > > On Mon, Oct 17, 2022 at

[PATCH 1/2] tools/perf: Fix printing os->prefix in CSV metrics output

2022-10-18 Thread Athira Rajeev
Perf stat with CSV output option prints an extra empty string as first field in metrics output line. Sample output below: # ./perf stat -x, --per-socket -a -C 1 ls S0,1,1.78,msec,cpu-clock,1785146,100.00,0.973,CPUs utilized

Re: [PATCH v3 0/7] Create a new sound card to access MICFIL based on rpmsg channel

2022-10-18 Thread Mark Brown
On Fri, 30 Sep 2022 14:44:34 +0800, Chancel Liu wrote: > At a previous time, we have successfully created a virtual sound card > based on rpmsg. The sound card works under this mechanism Cortex-A core > tells the Cortex-M core the format, rate, channel, .etc configuration > of the PCM parameters

Re: [PATCH] ASoC: fsl_micfil: Add Hardware Voice Activity Detector support

2022-10-18 Thread Mark Brown
On Fri, 23 Sep 2022 17:31:34 +0800, Shengjiu Wang wrote: > The Hardware Voice Activity Detector (HWVAD) is a block > responsible for detect voice activity in a channel selected > by the user. It can be configured in Envelope-based or > Energy-based mode. > > There are additional two interrupts

Re: [PATCH] mm: remove kern_addr_valid() completely

2022-10-18 Thread Michael Ellerman
Kefeng Wang writes: > Most architectures(except arm64/x86/sparc) simply return 1 for > kern_addr_valid(), which is only used in read_kcore(), and it > calls copy_from_kernel_nofault() which could check whether the > address is a valid kernel address, so no need kern_addr_valid(), > let's remove

[PATCH 2/2] tools/perf: Fix printing field separator in CSV metrics output

2022-10-18 Thread Athira Rajeev
In perf stat with CSV output option, number of fields in metrics output is not matching with number of fields in other event output lines. Sample output below after applying patch to fix printing os->prefix. # ./perf stat -x, --per-socket -a -C 1 ls

Re: [PATCH AUTOSEL 5.10 04/16] powerpc/hw_breakpoint: Avoid relying on caller synchronization

2022-10-18 Thread Pavel Machek
Hi! > From: Marco Elver > > [ Upstream commit f95e5a3d59011eec1257d0e76de1e1f8969d426f ] > > Internal data structures (cpu_bps, task_bps) of powerpc's hw_breakpoint > implementation have relied on nr_bp_mutex serializing access to them. > > Before overhauling synchronization of

Re: [PATCH] mm: remove kern_addr_valid() completely

2022-10-18 Thread Helge Deller
On 10/18/22 09:40, Kefeng Wang wrote: Most architectures(except arm64/x86/sparc) simply return 1 for kern_addr_valid(), which is only used in read_kcore(), and it calls copy_from_kernel_nofault() which could check whether the address is a valid kernel address, so no need kern_addr_valid(), let's

Re: [PATCH] mm: remove kern_addr_valid() completely

2022-10-18 Thread WANG Xuerui
On 2022/10/18 15:40, Kefeng Wang wrote: Most architectures(except arm64/x86/sparc) simply return 1 for one space before the opening parens kern_addr_valid(), which is only used in read_kcore(), and it calls copy_from_kernel_nofault() which could check whether the address is a valid kernel

[PATCH] mm: remove kern_addr_valid() completely

2022-10-18 Thread Kefeng Wang
Most architectures(except arm64/x86/sparc) simply return 1 for kern_addr_valid(), which is only used in read_kcore(), and it calls copy_from_kernel_nofault() which could check whether the address is a valid kernel address, so no need kern_addr_valid(), let's remove unneeded kern_addr_valid()

Re: [PATCH] mm: remove kern_addr_valid() completely

2022-10-18 Thread Heiko Carstens
On Tue, Oct 18, 2022 at 03:40:14PM +0800, Kefeng Wang wrote: > Most architectures(except arm64/x86/sparc) simply return 1 for > kern_addr_valid(), which is only used in read_kcore(), and it > calls copy_from_kernel_nofault() which could check whether the > address is a valid kernel address, so no

Re: [PATCH] mm: remove kern_addr_valid() completely

2022-10-18 Thread Geert Uytterhoeven
On Tue, Oct 18, 2022 at 9:25 AM Kefeng Wang wrote: > Most architectures(except arm64/x86/sparc) simply return 1 for > kern_addr_valid(), which is only used in read_kcore(), and it > calls copy_from_kernel_nofault() which could check whether the > address is a valid kernel address, so no need

Re: [PATCH] mm: remove kern_addr_valid() completely

2022-10-18 Thread Christoph Hellwig
Thanks, this is long overdue! Acked-by: Christoph Hellwig

[PATCH v7 8/8] [WIP] arm64: dts: ls1088ardb: Add serdes bindings

2022-10-18 Thread Sean Anderson
This is a first stab at adding serdes support on the LS1088A. Linux hangs around when the serdes is initialized if the si5341 is enabled, so it's commented out. The MC firmware needs to be fairly new (it must support DPAA2_MAC_FEATURE_PROTOCOL_CHANGE), and the DPC needs to set the macs to

[PATCH v7 7/8] arm64: dts: ls1046ardb: Add serdes bindings

2022-10-18 Thread Sean Anderson
This adds appropriate bindings for the macs which use the SerDes. The 156.25MHz fixed clock is a crystal. The 100MHz clocks (there are actually 3) come from a Renesas 6V49205B at address 69 on i2c0. There is no driver for this device (and as far as I know all you can do with the 100MHz clocks is

[PATCH v7 0/8] phy: Add support for Lynx 10G SerDes

2022-10-18 Thread Sean Anderson
This adds support for the Lynx 10G SerDes found on the QorIQ T-series and Layerscape series. Due to limited time and hardware, only support for the LS1046ARDB is added in this initial series. There is a sketch for LS1088ARDB support, but it is incomplete. Dynamic reconfiguration does not work.

[PATCH v7 1/8] dt-bindings: phy: Add 2500BASE-X and 10GBASE-R

2022-10-18 Thread Sean Anderson
This adds some modes necessary for Lynx 10G support. 2500BASE-X, also known as 2.5G SGMII, is 1000BASE-X/SGMII overclocked to 3.125 GHz, with autonegotiation disabled. 10GBASE-R, also known as XFI, is the protocol spoken between the PMA and PMD ethernet layers for 10GBASE-T and 10GBASE-S/L/E. It

[PATCH v7 6/8] arm64: dts: ls1088a: Add serdes bindings

2022-10-18 Thread Sean Anderson
This adds bindings for the SerDes devices. They are disabled by default to prevent any breakage on existing boards. Signed-off-by: Sean Anderson --- (no changes since v4) Changes in v4: - Convert to new bindings Changes in v3: - New arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 18

Re: [PATCH] powerpc/perf: Fix hv-24x7 metric events for power10

2022-10-18 Thread Arnaldo Carvalho de Melo
Em Tue, Oct 18, 2022 at 09:24:44AM +0530, Madhavan Srinivasan escreveu: > > On 10/17/22 7:03 PM, Arnaldo Carvalho de Melo wrote: > > Em Fri, Oct 14, 2022 at 07:32:20PM +0530, Kajol Jain escreveu: > > > Testcase stat_all_metrics.sh fails in powerpc: > > > > > > 90: perf all metrics test : FAILED!

[PATCH v7 3/8] dt-bindings: clock: Add ids for Lynx 10g PLLs

2022-10-18 Thread Sean Anderson
This adds ids for the Lynx 10g SerDes's internal PLLs. These may be used with assigned-clock* to specify a particular frequency to use. For example, to set the second PLL (at offset 0x20)'s frequency, use LYNX10G_PLLa(1). These are for use only in the device tree, and are not otherwise used by the

[PATCH v7 2/8] dt-bindings: phy: Add Lynx 10G phy binding

2022-10-18 Thread Sean Anderson
This adds a binding for the SerDes module found on QorIQ processors. Each phy is a subnode of the top-level device, possibly supporting multiple lanes and protocols. This "thick" #phy-cells is used due to allow for better organization of parameters. Note that the particular parameters necessary to

[PATCH v7 4/8] phy: fsl: Add Lynx 10G SerDes driver

2022-10-18 Thread Sean Anderson
This adds support for the Lynx 10G "SerDes" devices found on various NXP QorIQ SoCs. There may be up to four SerDes devices on each SoC, each supporting up to eight lanes. Protocol support for each SerDes is highly heterogeneous, with each SoC typically having a totally different selection of

[PATCH v7 5/8] arm64: dts: ls1046a: Add serdes bindings

2022-10-18 Thread Sean Anderson
This adds bindings for the SerDes devices. They are disabled by default to prevent any breakage on existing boards. Signed-off-by: Sean Anderson --- (no changes since v4) Changes in v4: - Convert to new bindings Changes in v3: - Describe modes in device tree Changes in v2: - Use one phy cell

Re: [PATCH] mm: remove kern_addr_valid() completely

2022-10-18 Thread Guo Ren
On Tue, Oct 18, 2022 at 3:21 PM Kefeng Wang wrote: > > Most architectures(except arm64/x86/sparc) simply return 1 for > kern_addr_valid(), which is only used in read_kcore(), and it > calls copy_from_kernel_nofault() which could check whether the > address is a valid kernel address, so no need

[powerpc:fixes-test] BUILD SUCCESS dc398a084d459f065658855454e09f2778f8c5cc

2022-10-18 Thread kernel test robot
currituck_defconfig powerpc mpc834x_mds_defconfig arc randconfig-r043-20221018 s390 randconfig-r044-20221018 riscvrandconfig-r042-20221018 x86_64randconfig-a011 x86_64randconfig-a013

[powerpc:fixes] BUILD SUCCESS 2147783d6bf0b7ca14c72a25527dc5135bd17f65

2022-10-18 Thread kernel test robot
randconfig-r043-20221018 s390 randconfig-r044-20221018 riscvrandconfig-r042-20221018 x86_64 rhel-8.3-func x86_64rhel-8.3-kselftests i386 allyesconfig i386