Re: [PATCH v2] mm/memory_hotplug: drain per-cpu pages again during memory offline

2020-09-03 Thread Andrew Morton
On Thu, 3 Sep 2020 19:36:26 +0200 David Hildenbrand wrote: > (still on vacation, back next week on Tuesday) > > I didn't look into discussions in v1, but to me this looks like we are > trying to hide an actual bug by implementing hacks in the caller > (repeated calls to drain_all_pages()). What

Re: [PATCH v6 7/7] KVM: selftests: Add test for user space MSR handling

2020-09-03 Thread Aaron Lewis
> +static void handle_rdmsr(struct kvm_run *run) > +{ > + run->msr.data = run->msr.index; > + msr_reads++; > + > + if (run->msr.index == MSR_SYSCALL_MASK || > + run->msr.index == MSR_GS_BASE) { > + TEST_ASSERT(run->msr.reason != KVM_MSR_EXIT_REASON_FILTER,

Re: [PATCH v2] mm/memory_hotplug: drain per-cpu pages again during memory offline

2020-09-03 Thread David Hildenbrand
> Am 03.09.2020 um 21:31 schrieb Andrew Morton : > > On Thu, 3 Sep 2020 19:36:26 +0200 David Hildenbrand wrote: > >> (still on vacation, back next week on Tuesday) >> >> I didn't look into discussions in v1, but to me this looks like we are >> trying to hide an actual bug by implementing

Re: [PATCH v3 1/2] MAINTAINERS: Consolidate Analog Devices IIO entries and remove Beniamin Bia

2020-09-03 Thread Andy Shevchenko
On Thu, Sep 3, 2020 at 9:19 PM Krzysztof Kozlowski wrote: > > Emails to Beniamin Bia bounce with no such address so remove him from > maintainers. After this removal, many entries for Analog Devices Inc > IIO drivers look exactly the same so consolidate them. > > Suggested-by: Andy Shevchenko >

Re: [PATCH v2 0/3] Expose recovery/coredump configuration from sysfs

2020-09-03 Thread Mathieu Poirier
On Wed, Sep 02, 2020 at 04:14:19PM -0700, risha...@codeaurora.org wrote: > On 2020-09-01 15:05, Mathieu Poirier wrote: > > Hi Rishabh, > > > > On Thu, Aug 27, 2020 at 12:48:48PM -0700, Rishabh Bhatnagar wrote: > > > From Android R onwards Google has restricted access to debugfs in user > > > and

Re: [PATCH net-next RFC v3 01/14] devlink: Add reload action option to devlink reload command

2020-09-03 Thread Jakub Kicinski
On Thu, 3 Sep 2020 07:57:29 +0200 Jiri Pirko wrote: > Wed, Sep 02, 2020 at 05:30:25PM CEST, k...@kernel.org wrote: > >On Wed, 2 Sep 2020 11:46:27 +0200 Jiri Pirko wrote: > >> >? Do we need such change there too or keep it as is, each action by itself > >> >and return what was performed ? >

Re: [PATCH 2/3] media: Add support for the AM/FM radio chip KT0913 from KT Micro.

2020-09-03 Thread Santiago Hormazabal
Hi Joe, Thanks for the feedback. On Thu, 3 Sep 2020 at 13:45, Joe Perches wrote: > > On Mon, 2020-08-31 at 19:06 -0300, Santiago Hormazabal wrote: > > This chip requires almost no support components and can used over I2C. > > The driver uses the I2C bus and exposes the controls as a V4L2 radio.

[PATCH net-next v2] net: phy: dp83867: Fix various styling and space issues

2020-09-03 Thread Dan Murphy
Fix spacing issues reported for misaligned switch..case and extra new lines. Also updated the file header to comply with networking commet style. Reviewed-by: Florian Fainelli Signed-off-by: Dan Murphy --- drivers/net/phy/dp83867.c | 45 ++- 1 file changed,

[PATCH v2 1/3] dt-bindings: mailbox: fsl,mu: Fix i.MX 8QXP compatible matching

2020-09-03 Thread Krzysztof Kozlowski
The Mailbox on i.MX 8QXP (fsl,imx8qxp-mu) can also be compatible with fsl,imx8-mu-scu (for fast IPC) so adjust the compatibles to fix dtbs_check warnings like: arch/arm64/boot/dts/freescale/imx8qxp-mek.dt.yaml: mailbox@5d1f: compatible: ['fsl,imx8-mu-scu', 'fsl,imx8qxp-mu',

Re: [PATCH] zram: add restriction on dynamic zram device creation

2020-09-03 Thread Minchan Kim
Hello, Yi, On Tue, Sep 01, 2020 at 02:42:47PM +0800, Yi Wang wrote: > From: zhanglin > > Add max_num_devices to limit dynamic zram device creation to prevent > potential OOM > > Signed-off-by: zhanglin > --- > drivers/block/zram/zram_drv.c | 26 +++--- > 1 file changed,

[PATCH v2 3/3] MAINTAINERS: Add dt-bindings to mailbox entry

2020-09-03 Thread Krzysztof Kozlowski
Cover the dt-bindings of mailbox drivers by mailbox maintainers entry. Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1. New patch --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index bb0cb31d323b..d3d8dedbaf22 100644 --- a/MAINTAINERS

[PATCH v2 2/3] dt-bindings: mailbox: fsl,mu: Add missing power-domains

2020-09-03 Thread Krzysztof Kozlowski
Add quite common property - power-domains - to fix dtbs_check warnings like: arch/arm64/boot/dts/freescale/imx8qxp-mek.dt.yaml: mailbox@5d28: 'power-domains' does not match any of the regexes: 'pinctrl-[0-9]+' Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1. Add missing

Re: [PATCH v4 06/10] vfio/fsl-mc: Added lock support in preparation for interrupt handling

2020-09-03 Thread Auger Eric
Hi Diana On 8/26/20 11:33 AM, Diana Craciun wrote: > Only the DPRC object allocates interrupts from the MSI > interrupt domain. The interrupts are managed by the DPRC in > a pool of interrupts. The access to this pool of interrupts > has to be protected with a lock. > This patch extends the

Re: a crash when running strace from persistent memory

2020-09-03 Thread Linus Torvalds
On Thu, Sep 3, 2020 at 12:24 PM Mikulas Patocka wrote: > > There's a bug when you run strace from dax-based filesystem. > > -- create real or emulated persistent memory device (/dev/pmem0) > mkfs.ext2 /dev/pmem0 > -- mount it > mount -t ext2 -o dax /dev/pmem0 /mnt/test > -- copy the system to it

[PATCH v2 3/8] EDAC/mce_amd: Use struct cpuinfo_x86.node_id for NodeId

2020-09-03 Thread Yazen Ghannam
From: Yazen Ghannam The edac_mce_amd module calls decode_dram_ecc() on AMD Family17h and later systems. This function is used in amd64_edac_mod to do system-specific decoding for DRAM ECC errors. The function takes a "NodeId" as a parameter. In AMD documentation, NodeId is used to identify a

[PATCH v2 4/8] x86/MCE/AMD: Use defines for register addresses in translation code

2020-09-03 Thread Yazen Ghannam
From: Yazen Ghannam Replace raw register offset values in the AMD address translation code with named definitions. Also, drop comments that only note the register names. Signed-off-by: Yazen Ghannam --- Link: https://lkml.kernel.org/r/20200814191449.183998-3-yazen.ghan...@amd.com v1 -> v2: *

[PATCH v2 0/8] AMD MCA Address Translation Updates

2020-09-03 Thread Yazen Ghannam
From: Yazen Ghannam This patchset includes updates for the MCA Address Translation process on recent AMD systems. Patches 1 & 3: Fixes an input to the address translation function. The translation requires a physical Die ID (NodeId in AMD documentation) rather than a logicial NUMA node ID. This

[PATCH v2 5/8] x86/MCE/AMD: Use macros to get bitfields in translation code

2020-09-03 Thread Yazen Ghannam
From: Yazen Ghannam Define macros to get individual bits and bitfields. Use these to make the code more readable. Signed-off-by: Yazen Ghannam --- Link: https://lkml.kernel.org/r/20200814191449.183998-3-yazen.ghan...@amd.com v1 -> v2: * New patch based on comments for v1 Patch 2.

[PATCH v2 8/8] x86/MCE/AMD Support new memory interleaving modes during address translation

2020-09-03 Thread Yazen Ghannam
From: Muralidhara M K Add support for new memory interleaving modes used in current AMD systems. Check if the system is using a current Data Fabric version or a legacy version as some bit and register definitions have changed. Tested on AMD reference platforms with the following memory

Re: [PATCH v3 3/7] ASoC: sun4i-i2s: Add support for H6 I2S

2020-09-03 Thread Clément Péron
Hi Maxime, On Wed, 29 Jul 2020 at 17:16, Mark Brown wrote: > > On Wed, Jul 29, 2020 at 04:39:27PM +0200, Maxime Ripard wrote: > > > It really looks like the polarity of LRCK is fine though. The first word > > is sent with LRCK low, and then high, so we have channel 0 and then > > channel 1 which

[PATCH v2 7/8] x86/MCE/AMD: Group register reads in translation code

2020-09-03 Thread Yazen Ghannam
From: Yazen Ghannam ...so that bitfield extraction can be done together to simplify future patches. Signed-off-by: Yazen Ghannam --- Link: https://lkml.kernel.org/r/20200814191449.183998-3-yazen.ghan...@amd.com v1 -> v2: * New patch based on comments for v1 Patch 2.

[PATCH v2 6/8] x86/MCE/AMD: Drop tmp variable in translation code

2020-09-03 Thread Yazen Ghannam
From: Yazen Ghannam Remove the "tmp" variable used to save register values. Save the values in existing variables, if possible. The register values are 32 bits. Use separate "reg_" variables to hold the register values if the existing variable sizes doesn't match, or if no bitfields in a

Re: [PATCH] KVM: x86: VMX: Make smaller physical guest address space support user-configurable

2020-09-03 Thread Paolo Bonzini
On 03/09/20 20:32, Jim Mattson wrote: >> [Checking writes to CR3] would be way too slow. Even the current >> trapping of present #PF can introduce some slowdown depending on the >> workload. > > Yes, I was concerned about that...which is why I would not want to > enable pedantic mode. But if

[PATCH v2 2/8] x86/CPU/AMD: Remove amd_get_nb_id()

2020-09-03 Thread Yazen Ghannam
From: Yazen Ghannam The Last Level Cache ID is returned by amd_get_nb_id(). In practice, this value is the same as the AMD NodeId for callers of this function. The NodeId is saved in struct cpuinfo_x86.node_id. Replace calls to amd_get_nb_id() with the logical CPU's node_id and remove the

[PATCH] selftests/bpf: Fix check in global_data_init.

2020-09-03 Thread Hao Luo
The returned value of bpf_object__open_file() should be checked with libbpf_get_error() rather than NULL. This fix prevents test_progs from crash when test_global_data.o is not present. Signed-off-by: Hao Luo --- tools/testing/selftests/bpf/prog_tests/global_data_init.c | 3 ++- 1 file changed,

[PATCH RESEND] epic100: switch from 'pci_' to 'dma_' API

2020-09-03 Thread Christophe JAILLET
The wrappers in include/linux/pci-dma-compat.h should go away. The patch has been generated with the coccinelle script below and has been hand modified to replace GFP_ with a correct flag. It has been compile tested. When memory is allocated in 'epic_init_one()', GFP_KERNEL can be used because

Re: Question on task_blocks_on_rt_mutex()

2020-09-03 Thread Paul E. McKenney
On Wed, Sep 02, 2020 at 08:54:10AM -0700, Paul E. McKenney wrote: > On Tue, Sep 01, 2020 at 06:51:28PM -0700, Davidlohr Bueso wrote: > > On Tue, 01 Sep 2020, Paul E. McKenney wrote: > > > > > And it appears that a default-niced CPU-bound SCHED_OTHER process is > > > not preempted by a newly

[PATCH RESEND] smsc9420: switch from 'pci_' to 'dma_' API

2020-09-03 Thread Christophe JAILLET
The wrappers in include/linux/pci-dma-compat.h should go away. The patch has been generated with the coccinelle script below and has been hand modified to replace GFP_ with a correct flag. It has been compile tested. When memory is allocated in 'smsc9420_probe()', GFP_KERNEL can be used because

[PATCH v2 1/8] x86/CPU/AMD: Save NodeId on AMD-based systems

2020-09-03 Thread Yazen Ghannam
From: Yazen Ghannam AMD systems provide a "NodeId" value that represents a global ID indicating to which "Node" a logical CPU belongs. The "Node" is a physical structure equivalent to a Die, and it should not be confused with logical structures like NUMA node. Logical nodes can be adjusted based

Re: [RESEND PATCH v3 3/3] phy: Add USB HSIC PHY driver for Marvell MMP3 SoC

2020-09-03 Thread Lubomir Rintel
On Mon, Aug 31, 2020 at 02:28:08PM +0530, Vinod Koul wrote: > On 18-08-20, 00:34, Lubomir Rintel wrote: > > Add PHY driver for the HSICs found on Marvell MMP3 SoC. The driver is > > rather straightforward -- the PHY essentially just needs to be enabled. > > > > Signed-off-by: Lubomir Rintel > >

Re: [PATCH v4 07/10] vfio/fsl-mc: Add irq infrastructure for fsl-mc devices

2020-09-03 Thread Auger Eric
Hi Diana, On 8/26/20 11:33 AM, Diana Craciun wrote: > This patch adds the skeleton for interrupt support > for fsl-mc devices. The interrupts are not yet functional, > the functionality will be added by subsequent patches. > > Signed-off-by: Bharat Bhushan > Signed-off-by: Diana Craciun > ---

Re: [PATCH V2 1/6] perf tools: Consolidate --control option parsing into one function

2020-09-03 Thread Arnaldo Carvalho de Melo
Em Wed, Sep 02, 2020 at 07:06:51PM +0300, Alexey Budankov escreveu: > > On 01.09.2020 12:37, Adrian Hunter wrote: > > Consolidate --control option parsing into one function, in preparation for > > adding FIFO file name options. > > > > Signed-off-by: Adrian Hunter > > --- > >

Re: [PATCH V2 2/6] perf tools: Handle read errors from ctl_fd

2020-09-03 Thread Arnaldo Carvalho de Melo
Em Wed, Sep 02, 2020 at 07:11:14PM +0300, Alexey Budankov escreveu: > > On 01.09.2020 12:37, Adrian Hunter wrote: > > Handle read errors from ctl_fd such as EINTR, EAGAIN and EWOULDBLOCK. > > > > Signed-off-by: Adrian Hunter > > --- > > tools/perf/util/evlist.c | 16 +++- > > 1

Re: [PATCH V2 3/6] perf tools: Use AsciiDoc formatting for --control option documentation

2020-09-03 Thread Arnaldo Carvalho de Melo
Em Wed, Sep 02, 2020 at 07:12:43PM +0300, Alexey Budankov escreveu: > > On 01.09.2020 12:37, Adrian Hunter wrote: > > The --control option does not display well in man pages unless AsciiDoc > > formatting is used. > > > > Signed-off-by: Adrian Hunter > > --- > >

[PATCH V2 1/5] iommu: Handle freelists when using deferred flushing in iommu drivers

2020-09-03 Thread Tom Murphy
Allow the iommu_unmap_fast to return newly freed page table pages and pass the freelist to queue_iova in the dma-iommu ops path. This is useful for iommu drivers (in this case the intel iommu driver) which need to wait for the ioTLB to be flushed before newly free/unmapped page table pages can be

[PATCH V2 0/5] Convert the intel iommu driver to the dma-iommu api

2020-09-03 Thread Tom Murphy
This patchset converts the intel iommu driver to the dma-iommu api. While converting the driver I exposed a bug in the intel i915 driver which causes a huge amount of artifacts on the screen of my laptop. You can see a picture of it here:

[PATCH V2 2/5] iommu: Add iommu_dma_free_cpu_cached_iovas function

2020-09-03 Thread Tom Murphy
to dma-iommu ops Add a iommu_dma_free_cpu_cached_iovas function to allow drivers which use the dma-iommu ops to free cached cpu iovas. Signed-off-by: Tom Murphy --- drivers/iommu/dma-iommu.c | 9 + include/linux/dma-iommu.h | 3 +++ 2 files changed, 12 insertions(+) diff --git

[PATCH V2 4/5] iommu/vt-d: Convert intel iommu driver to the iommu ops

2020-09-03 Thread Tom Murphy
Convert the intel iommu driver to the dma-iommu api. Remove the iova handling and reserve region code from the intel iommu driver. Signed-off-by: Tom Murphy --- drivers/iommu/Kconfig | 1 + drivers/iommu/intel/iommu.c | 756 +++- 2 files changed, 51

[PATCH V2 3/5] iommu: allow the dma-iommu api to use bounce buffers

2020-09-03 Thread Tom Murphy
Allow the dma-iommu api to use bounce buffers for untrusted devices. This is a copy of the intel bounce buffer code. Signed-off-by: Tom Murphy --- drivers/iommu/dma-iommu.c | 94 ++--- drivers/iommu/intel/iommu.c | 6 +++ drivers/iommu/iommu.c | 10

[PATCH V2 5/5] DO NOT MERGE: iommu: disable list appending in dma-iommu

2020-09-03 Thread Tom Murphy
Disable combining sg segments in the dma-iommu api. Combining the sg segments exposes a bug in the intel i915 driver which causes visual artifacts and the screen to freeze. This is most likely because of how the i915 handles the returned list. It probably doesn't respect the returned value

Re: [PATCH V3 4/6] perf tools: Add FIFO file names as alternative options to --control

2020-09-03 Thread Arnaldo Carvalho de Melo
Em Wed, Sep 02, 2020 at 08:03:08PM +0300, Alexey Budankov escreveu: > > On 02.09.2020 13:57, Adrian Hunter wrote: > > Enable the --control option to accept file names as an alternative to > > file descriptors. > > > > Example: > > > > $ mkfifo perf.control > > $ mkfifo perf.ack > > $ cat

Dear Friend,

2020-09-03 Thread Ali Hamadu,
Dear Friend, Please i need your kind Assistance. I will be very glad if you can assist me to receive this sum of ( $22. Million US dollars.) into your bank account for the benefit of our both families, reply me if you are ready to receive this fund.

Re: [RFC PATCH v7 17/23] kernel/entry: Add support for core-wide protection of kernel-mode

2020-09-03 Thread Joel Fernandes
On Thu, Sep 3, 2020 at 9:43 AM Dario Faggioli wrote: > > On Thu, 2020-09-03 at 00:34 -0400, Joel Fernandes wrote: > > On Wed, Sep 2, 2020 at 12:57 PM Dario Faggioli > > wrote: > > > 2) protection of the kernel from the other thread running in > > > userspace > > > may be achieved in different

Re: [PATCH 0/8] Convert the intel iommu driver to the dma-iommu api

2020-09-03 Thread Tom Murphy
On Fri, 28 Aug 2020 at 00:34, Tom Murphy wrote: > > On Thu, 27 Aug 2020 at 22:36, Logan Gunthorpe wrote: > > > > > > > > On 2020-08-23 6:04 p.m., Tom Murphy wrote: > > > I have added a check for the sg_dma_len == 0 : > > > """ > > > } __sgt_iter(struct scatterlist *sgl, bool dma) { > > >

[PATCH v2 00/20] Add Allwinner H3/H5/H6/A64 HDMI audio

2020-09-03 Thread Clément Péron
Hi, Regarding the I2S LRCK polarity, Maxime Ripard test it and found that the LRCK is fine: https://lkml.org/lkml/2020/7/29/581. So the patch introduce this modification has been reverted. I have tested this on Allwinner H6 but this should be tested on older platform like sun4i family. Regards,

[PATCH v2 01/20] Revert "ASoC: sun4i-i2s: Fix the LRCK polarity"

2020-09-03 Thread Clément Péron
This reverts commit dd657eae8164f7e4bafe8b875031a7c6c50646a9. There was a misinterpretation of the analysis using a scope. After rechecking this using a logical analyzer the LRCK polarity is fine. Fixes: dd657eae8164 ("ASoC: sun4i-i2s: Fix the LRCK polarity") Signed-off-by: Clément Péron ---

Re: [RFC PATCH v7 17/23] kernel/entry: Add support for core-wide protection of kernel-mode

2020-09-03 Thread Joel Fernandes
On Thu, Sep 3, 2020 at 9:20 AM Thomas Gleixner wrote: > > On Thu, Sep 03 2020 at 00:34, Joel Fernandes wrote: > > On Wed, Sep 2, 2020 at 12:57 PM Dario Faggioli wrote: > >> 2) protection of the kernel from the other thread running in userspace > >> may be achieved in different ways. This is one,

[PATCH v2 16/20] arm64: dts: allwinner: a64: Add HDMI audio to Pine64

2020-09-03 Thread Clément Péron
From: Marcus Cooper Enable HDMI audio on Pine64. Signed-off-by: Marcus Cooper Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts

[PATCH v2 02/20] ASoC: sun4i-i2s: Add support for H6 I2S

2020-09-03 Thread Clément Péron
From: Jernej Skrabec H6 I2S is very similar to that in H3, except it supports up to 16 channels. Signed-off-by: Jernej Skrabec Signed-off-by: Marcus Cooper Signed-off-by: Clément Péron --- sound/soc/sunxi/sun4i-i2s.c | 221 1 file changed, 221

[PATCH v2 15/20] arm: sun8i: h3: Add HDMI audio to Beelink X2

2020-09-03 Thread Clément Péron
From: Marcus Cooper Enable HDMI audio on the Beelink X2. Signed-off-by: Marcus Cooper Signed-off-by: Clément Péron --- arch/arm/boot/dts/sun8i-h3-beelink-x2.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3-beelink-x2.dts

[PATCH v2 06/28] objtool: Don't autodetect vmlinux.o

2020-09-03 Thread Sami Tolvanen
With LTO, we run objtool on vmlinux.o, but don't want noinstr validation. This change requires --vmlinux to be passed to objtool explicitly. Suggested-by: Peter Zijlstra Signed-off-by: Sami Tolvanen --- scripts/link-vmlinux.sh | 2 +- tools/objtool/builtin-check.c | 10 +- 2

[PATCH v2 03/20] ASoC: sun4i-i2s: Adjust LRCLK width

2020-09-03 Thread Clément Péron
From: Marcus Cooper Some codecs such as i2s based HDMI audio and the Pine64 DAC require a different amount of bit clocks per frame than what is calculated by the sample width. Use the values obtained by the tdm slot bindings to adjust the LRCLK width accordingly. Signed-off-by: Marcus Cooper

[PATCH v2 15/28] init: lto: ensure initcall ordering

2020-09-03 Thread Sami Tolvanen
With LTO, the compiler doesn't necessarily obey the link order for initcalls, and initcall variables need globally unique names to avoid collisions at link time. This change exports __KBUILD_MODNAME and adds the initcall_id() macro, which uses it together with __COUNTER__ and __LINE__ to help

[PATCH v2 16/28] init: lto: fix PREL32 relocations

2020-09-03 Thread Sami Tolvanen
With LTO, the compiler can rename static functions to avoid global naming collisions. As initcall functions are typically static, renaming can break references to them in inline assembly. This change adds a global stub with a stable name for each initcall to fix the issue when PREL32 relocations

[PATCH v2 22/28] arm64: export CC_USING_PATCHABLE_FUNCTION_ENTRY

2020-09-03 Thread Sami Tolvanen
Since arm64 does not use -pg in CC_FLAGS_FTRACE with DYNAMIC_FTRACE_WITH_REGS, skip running recordmcount by exporting CC_USING_PATCHABLE_FUNCTION_ENTRY. Signed-off-by: Sami Tolvanen --- arch/arm64/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Makefile

[PATCH v2 28/28] x86, build: allow LTO_CLANG and THINLTO to be selected

2020-09-03 Thread Sami Tolvanen
Allow CONFIG_LTO_CLANG and CONFIG_THINLTO to be enabled. Signed-off-by: Sami Tolvanen --- arch/x86/Kconfig | 2 ++ arch/x86/Makefile | 5 + 2 files changed, 7 insertions(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 6de2e5c0bdba..0a49008c2363 100644 --- a/arch/x86/Kconfig +++

[PATCH 3/4] arm64: dts: exynos: Remove undocumented i2s properties in Exynos5433

2020-09-03 Thread Krzysztof Kozlowski
Few I2S device node properties were not documented and not used by any of the drivers. Remove them to fix dtbs_check warning: arch/arm64/boot/dts/exynos/exynos5433-tm2.dt.yaml: i2s@14d6: Additional properties are not allowed ('samsung,supports-rstclr', 'samsung,supports-tdm',

[PATCH v2 27/28] x86, relocs: Ignore L4_PAGE_OFFSET relocations

2020-09-03 Thread Sami Tolvanen
L4_PAGE_OFFSET is a constant value, so don't warn about absolute relocations. Signed-off-by: Sami Tolvanen --- arch/x86/tools/relocs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/tools/relocs.c b/arch/x86/tools/relocs.c index ce7188cbdae5..8f3bf34840ce 100644 ---

[PATCH v2 21/28] drivers/misc/lkdtm: disable LTO for rodata.o

2020-09-03 Thread Sami Tolvanen
Disable LTO for rodata.o to allow objcopy to be used to manipulate sections. Signed-off-by: Sami Tolvanen Acked-by: Kees Cook --- drivers/misc/lkdtm/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/misc/lkdtm/Makefile b/drivers/misc/lkdtm/Makefile index

[PATCH v2 25/28] arm64: allow LTO_CLANG and THINLTO to be selected

2020-09-03 Thread Sami Tolvanen
Allow CONFIG_LTO_CLANG and CONFIG_THINLTO to be enabled. Signed-off-by: Sami Tolvanen --- arch/arm64/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 6d232837cbee..2699fc5d332e 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@

[PATCH v2 20/28] efi/libstub: disable LTO

2020-09-03 Thread Sami Tolvanen
With CONFIG_LTO_CLANG, we produce LLVM bitcode instead of ELF object files. Since LTO is not really needed here and the Makefile assumes we produce an object file, disable LTO for libstub. Signed-off-by: Sami Tolvanen --- drivers/firmware/efi/libstub/Makefile | 2 ++ 1 file changed, 2

[PATCH 1/4] ASoC: odroid: Add missing properties

2020-09-03 Thread Krzysztof Kozlowski
Usage of "unevaluatedProperties: false" is not correct as it suppresses warnings about all undocumented properties. Instead, add all missing properties. Signed-off-by: Krzysztof Kozlowski --- Fixup for: https://lore.kernel.org/lkml/30b8ea43-c2d0-5ddf-dc16-a8fe80d47...@samsung.com/ ---

[PATCH 4/4] ARM: dts: exynos: Add clocks sound node in Exynos5422 Odroid XU4

2020-09-03 Thread Krzysztof Kozlowski
The dtschema expects "clocks" property if "assigned-clocks" are used. Add reference to all parent clocks to silence the dtbs_check warnings. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos5422-odroidxu4.dts | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH v2 26/28] x86, vdso: disable LTO only for vDSO

2020-09-03 Thread Sami Tolvanen
Remove the undefined DISABLE_LTO flag from the vDSO, and filter out CC_FLAGS_LTO flags instead where needed. Note that while we could use Clang's LTO for the 64-bit vDSO, it won't add noticeable benefit for the small amount of C code. Signed-off-by: Sami Tolvanen ---

[PATCH 2/4] ASoC: samsung-i2s: Add missing properties

2020-09-03 Thread Krzysztof Kozlowski
Usage of "unevaluatedProperties: false" is not correct as it suppresses warnings about all undocumented properties. Instead, add all missing properties. Signed-off-by: Krzysztof Kozlowski --- Fixup for:

[PATCH v2 24/28] KVM: arm64: disable LTO for the nVHE directory

2020-09-03 Thread Sami Tolvanen
We use objcopy to manipulate ELF binaries for the nvhe code, which fails with LTO as the compiler produces LLVM bitcode instead. Disable LTO for this code to allow objcopy to be used. Signed-off-by: Sami Tolvanen --- arch/arm64/kvm/hyp/nvhe/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH v2 23/28] arm64: vdso: disable LTO

2020-09-03 Thread Sami Tolvanen
Disable LTO for the vDSO by filtering out CC_FLAGS_LTO, as there's no point in using link-time optimization for the small about of C code. Signed-off-by: Sami Tolvanen --- arch/arm64/kernel/vdso/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH v2 14/28] kbuild: lto: remove duplicate dependencies from .mod files

2020-09-03 Thread Sami Tolvanen
With LTO, llvm-nm prints out symbols for each archive member separately, which results in a lot of duplicate dependencies in the .mod file when CONFIG_TRIM_UNUSED_SYMS is enabled. When a module consists of several compilation units, the output can exceed the default xargs command size limit and

[PATCH v2 18/28] modpost: lto: strip .lto from module names

2020-09-03 Thread Sami Tolvanen
With LTO, everything is compiled into LLVM bitcode, so we have to link each module into native code before modpost. Kbuild uses the .lto.o suffix for these files, which also ends up in module information. This change strips the unnecessary .lto suffix from the module name. Suggested-by: Bill

[PATCH v2 19/28] scripts/mod: disable LTO for empty.c

2020-09-03 Thread Sami Tolvanen
With CONFIG_LTO_CLANG, clang generates LLVM IR instead of ELF object files. As empty.o is used for probing target properties, disable LTO for it to produce an object file instead. Signed-off-by: Sami Tolvanen --- scripts/mod/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [RFC PATCH] cma: make number of CMA areas dynamic, remove CONFIG_CMA_AREAS

2020-09-03 Thread Roman Gushchin
On Wed, Sep 02, 2020 at 08:02:04PM -0700, Mike Kravetz wrote: > The number of distinct CMA areas is limited by the constant > CONFIG_CMA_AREAS. In most environments, this was set to a default > value of 7. Not too long ago, support was added to allocate hugetlb > gigantic pages from CMA. More

[PATCH v2 17/28] PCI: Fix PREL32 relocations for LTO

2020-09-03 Thread Sami Tolvanen
With Clang's Link Time Optimization (LTO), the compiler can rename static functions to avoid global naming collisions. As PCI fixup functions are typically static, renaming can break references to them in inline assembly. This change adds a global stub to DECLARE_PCI_FIXUP_SECTION to fix the issue

[PATCH v2 13/28] kbuild: lto: merge module sections

2020-09-03 Thread Sami Tolvanen
LLD always splits sections with LTO, which increases module sizes. This change adds a linker script that merges the split sections in the final module. Suggested-by: Nick Desaulniers Signed-off-by: Sami Tolvanen --- Makefile | 2 ++ scripts/module-lto.lds | 26

Re: [PATCH 6/7] dt-bindings: i2c: imx: Use unevaluatedProperties

2020-09-03 Thread Krzysztof Kozlowski
On Thu, 3 Sep 2020 at 18:41, Rob Herring wrote: > > On Sat, Aug 29, 2020 at 01:17:59PM +0200, Krzysztof Kozlowski wrote: > > Additional properties actually might appear (e.g. power-domains or child > > nodes) so use unevaluatedProperties to fix dtbs_check warnings like: > > > >

Re: [PATCH] selftests/bpf: Fix check in global_data_init.

2020-09-03 Thread Andrii Nakryiko
On Thu, Sep 3, 2020 at 1:06 PM Hao Luo wrote: > > The returned value of bpf_object__open_file() should be checked with > libbpf_get_error() rather than NULL. This fix prevents test_progs from > crash when test_global_data.o is not present. > > Signed-off-by: Hao Luo > --- thanks! Acked-by:

[PATCH v2 10/28] kbuild: lto: fix module versioning

2020-09-03 Thread Sami Tolvanen
With CONFIG_MODVERSIONS, version information is linked into each compilation unit that exports symbols. With LTO, we cannot use this method as all C code is compiled into LLVM bitcode instead. This change collects symbol versions into .symversions files and merges them in link-vmlinux.sh where

[PATCH v2 11/28] kbuild: lto: postpone objtool

2020-09-03 Thread Sami Tolvanen
With LTO, LLVM bitcode won't be compiled into native code until modpost_link, or modfinal for modules. This change postpones calls to objtool until after these steps. Signed-off-by: Sami Tolvanen --- arch/Kconfig | 2 +- scripts/Makefile.build| 2 ++ scripts/Makefile.modfinal

[PATCH v2 12/28] kbuild: lto: limit inlining

2020-09-03 Thread Sami Tolvanen
This change limits function inlining across translation unit boundaries in order to reduce the binary size with LTO. The -import-instr-limit flag defines a size limit, as the number of LLVM IR instructions, for importing functions from other TUs, defaulting to 100. Based on testing with arm64

[PATCH v2 20/20] arm64: defconfig: Enable Allwinner i2s driver

2020-09-03 Thread Clément Péron
Enable Allwinner I2S driver for arm64 defconfig. Signed-off-by: Clément Péron --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 5828b42f5243..4eaac49dccbb 100644 ---

[PATCH v2 19/20] arm64: dts: sun50i-h6-orangepi-3: Enable HDMI audio

2020-09-03 Thread Clément Péron
From: Ondrej Jirman The board has HDMI output, enable audio on it. Signed-off-by: Ondrej Jirman Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts | 8 1 file changed, 8 insertions(+) diff --git

[PATCH v2 09/28] kbuild: add support for Clang LTO

2020-09-03 Thread Sami Tolvanen
This change adds build system support for Clang's Link Time Optimization (LTO). With -flto, instead of ELF object files, Clang produces LLVM bitcode, which is compiled into native code at link time, allowing the final binary to be optimized globally. For more details, see:

[PATCH v2 07/28] kbuild: add support for objtool mcount

2020-09-03 Thread Sami Tolvanen
This change adds build support for using objtool to generate __mcount_loc sections. Signed-off-by: Sami Tolvanen --- Makefile | 38 ++ kernel/trace/Kconfig | 5 + scripts/Makefile.build | 9 + 3 files changed, 40 insertions(+),

[PATCH v2 08/28] x86, build: use objtool mcount

2020-09-03 Thread Sami Tolvanen
Select HAVE_OBJTOOL_MCOUNT if STACK_VALIDATION is selected to use objtool to generate __mcount_loc sections for dynamic ftrace with Clang and gcc <5. Signed-off-by: Sami Tolvanen --- arch/x86/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index

[PATCH v2 13/20] arm64: dts: allwinner: a64: Add HDMI audio

2020-09-03 Thread Clément Péron
From: Marcus Cooper Add a simple-soundcard to link audio between HDMI and I2S. Signed-off-by: Jernej Skrabec Signed-off-by: Marcus Cooper Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git

[PATCH v2 03/28] lib/string.c: implement stpcpy

2020-09-03 Thread Sami Tolvanen
From: Nick Desaulniers LLVM implemented a recent "libcall optimization" that lowers calls to `sprintf(dest, "%s", str)` where the return value is used to `stpcpy(dest, str) - dest`. This generally avoids the machinery involved in parsing format strings. `stpcpy` is just like `strcpy` except it

Re: [PATCH] platform/chrome: Kconfig: Remove the transitional MFD_CROS_EC config

2020-09-03 Thread Gwendal Grignou
On Thu, Sep 3, 2020 at 8:02 AM Guenter Roeck wrote: > > On Thu, Sep 3, 2020 at 7:17 AM Enric Balletbo i Serra > wrote: > > > > The MFD_CROS_EC config was a transitional Kconfig option to not break > > current defconfigs in the kernel. Now, this is not required anymore > > because all the

[PATCH v2 18/20] ARM: dts: sun8i-h3: Enable HDMI audio on Orange Pi PC/One

2020-09-03 Thread Clément Péron
From: Ondrej Jirman The board has HDMI output, enable audio on it. Signed-off-by: Ondrej Jirman Signed-off-by: Clément Péron --- arch/arm/boot/dts/sun8i-h3-orangepi-one.dts | 8 arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts | 8 2 files changed, 16 insertions(+) diff --git

[PATCH v2 14/20] arm: sun8i: h3: Add HDMI audio to Orange Pi 2

2020-09-03 Thread Clément Péron
From: Marcus Cooper Enable HDMI audio on the Orange Pi 2. Signed-off-by: Marcus Cooper Signed-off-by: Clément Péron --- arch/arm/boot/dts/sun8i-h3-orangepi-2.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts

[PATCH v2 04/28] RAS/CEC: Fix cec_init() prototype

2020-09-03 Thread Sami Tolvanen
From: Luca Stefani late_initcall() expects a function that returns an integer. Update the function signature to match. [ bp: Massage commit message into proper sentences. ] Fixes: 9554bfe403nd ("x86/mce: Convert the CEC to use the MCE notifier") Signed-off-by: Luca Stefani Signed-off-by:

[PATCH v2 17/20] arm64: dts: allwinner: Enable HDMI audio on Orange Pi PC 2

2020-09-03 Thread Clément Péron
From: Ondrej Jirman The board has HDMI output, enable audio on it. Signed-off-by: Ondrej Jirman Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts | 8 1 file changed, 8 insertions(+) diff --git

[PATCH v2 05/28] objtool: Add a pass for generating __mcount_loc

2020-09-03 Thread Sami Tolvanen
From: Peter Zijlstra Add the --mcount option for generating __mcount_loc sections needed for dynamic ftrace. Using this pass requires the kernel to be compiled with -mfentry and CC_USING_NOP_MCOUNT to be defined in Makefile. Link:

[PATCH v2 08/20] arm64: dts: allwinner: h6: Add HDMI audio node

2020-09-03 Thread Clément Péron
From: Jernej Skrabec Add a simple-soundcard to link audio between HDMI and I2S. Signed-off-by: Jernej Skrabec Signed-off-by: Marcus Cooper Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 32 1 file changed, 32 insertions(+) diff --git

[PATCH v2 12/20] arm64: dts: allwinner: a64: Add DAI node for HDMI

2020-09-03 Thread Clément Péron
From: Marcus Cooper Add the new DAI block for I2S2 which is used for HDMI audio. Signed-off-by: Marcus Cooper Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git

[PATCH v2 01/28] x86/boot/compressed: Disable relocation relaxation

2020-09-03 Thread Sami Tolvanen
From: Arvind Sankar The x86-64 psABI [0] specifies special relocation types (R_X86_64_[REX_]GOTPCRELX) for indirection through the Global Offset Table, semantically equivalent to R_X86_64_GOTPCREL, which the linker can take advantage of for optimization (relaxation) at link time. This is

[PATCH v2 02/28] x86/asm: Replace __force_order with memory clobber

2020-09-03 Thread Sami Tolvanen
From: Arvind Sankar The CRn accessor functions use __force_order as a dummy operand to prevent the compiler from reordering CRn reads/writes with respect to each other. The fact that the asm is volatile should be enough to prevent this: volatile asm statements should be executed in program

[PATCH v2 11/20] arm: dts: sunxi: h3/h5: Add HDMI audio

2020-09-03 Thread Clément Péron
From: Marcus Cooper Add a simple-soundcard to link audio between HDMI and I2S. Signed-off-by: Jernej Skrabec Signed-off-by: Marcus Cooper Signed-off-by: Clément Péron --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git

[PATCH v2 07/20] ASoC: sun4i-i2s: Fix sun8i volatile regs

2020-09-03 Thread Clément Péron
The FIFO TX reg is volatile and sun8i i2s register mapping is different from sun4i. Even if in this case it's doesn't create an issue, Avoid setting some regs that are undefined in sun8i. Signed-off-by: Clément Péron Acked-by: Maxime Ripard --- sound/soc/sunxi/sun4i-i2s.c | 15 +++

[PATCH v2 00/28] Add support for Clang LTO

2020-09-03 Thread Sami Tolvanen
This patch series adds support for building x86_64 and arm64 kernels with Clang's Link Time Optimization (LTO). In addition to performance, the primary motivation for LTO is to allow Clang's Control-Flow Integrity (CFI) to be used in the kernel. Google has shipped millions of Pixel devices

[PATCH v2 10/20] arm: dts: sunxi: h3/h5: Add DAI node for HDMI

2020-09-03 Thread Clément Péron
From: Marcus Cooper Add the new DAI block for I2S2 which is used for HDMI audio. Signed-off-by: Marcus Cooper Signed-off-by: Clément Péron --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/sunxi-h3-h5.dtsi

[PATCH v2 05/20] ASoC: sun4i-i2s: Set sign extend sample

2020-09-03 Thread Clément Péron
From: Marcus Cooper On the newer SoCs such as the H3 and A64 this is set by default to transfer a 0 after each sample in each slot. However the A10 and A20 SoCs that this driver was developed on had a default setting where it padded the audio gain with zeros. This isn't a problem while we have

<    1   2   3   4   5   6   7   8   9   10   >