Re: [PATCH 4/4] ASoC: fsl: drop unneeded snd_soc_dai_set_drvdata

2021-02-17 Thread Nicolin Chen
On Sat, Feb 13, 2021 at 11:19:07AM +0100, Julia Lawall wrote: > snd_soc_dai_set_drvdata is not needed when the set data comes from > snd_soc_dai_get_drvdata or dev_get_drvdata. The problem was fixed > usingthe following semantic patch: (http://coccinelle.lip6.fr/) > > // > @@ > expression x,y,e;

Re: [PATCH] arm64: defconfig: enable modern virtio pci device

2021-02-17 Thread Jason Wang
On 2021/2/11 下午7:52, Arnd Bergmann wrote: On Wed, Feb 10, 2021 at 8:05 PM Anders Roxell wrote: Since patch ("virtio-pci: introduce modern device module") got added it is not possible to boot a defconfig kernel in qemu with a virtio pci device. Add CONFIG_VIRTIO_PCI_MODERN=y fragment makes th

linux-next: manual merge of the devicetree tree with the powerpc tree

2021-02-17 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the devicetree tree got a conflict in: arch/powerpc/kexec/elf_64.c between commit: 2377c92e37fe ("powerpc/kexec_file: fix FDT size estimation for kdump kernel") from the powerpc tree and commit: 130b2d59cec0 ("powerpc: Use common of_kexec_alloc_and_se

Re: [PATCH v18 00/10] Carry forward IMA measurement log on kexec on ARM64

2021-02-17 Thread Rob Herring
On Sat, Feb 13, 2021 at 08:10:38AM -0800, Lakshmi Ramasubramanian wrote: > On kexec file load Integrity Measurement Architecture (IMA) subsystem > may verify the IMA signature of the kernel and initramfs, and measure > it. The command line parameters passed to the kernel in the kexec call > may al

Re: [PATCH 1/4] add generic builtin command line

2021-02-17 Thread Andrew Morton
On Mon, 15 Feb 2021 11:32:01 -0800 Daniel Gimpelevich wrote: > On Thu, 2019-03-21 at 15:15 -0700, Andrew Morton wrote: > > On Thu, 21 Mar 2019 08:13:08 -0700 Daniel Walker wrote: > > > On Wed, Mar 20, 2019 at 08:14:33PM -0700, Andrew Morton wrote: > > > > The patches (or some version of them) a

Re: [PATCH v5 10/10] powerpc/signal64: Use __get_user() to copy sigset_t

2021-02-17 Thread Christopher M. Riedl
On Fri Feb 12, 2021 at 3:21 PM CST, Daniel Axtens wrote: > "Christopher M. Riedl" writes: > > > Usually sigset_t is exactly 8B which is a "trivial" size and does not > > warrant using __copy_from_user(). Use __get_user() directly in > > anticipation of future work to remove the trivial size optimi

Re: [PATCH v5 05/10] powerpc/signal64: Remove TM ifdefery in middle of if/else block

2021-02-17 Thread Christopher M. Riedl
On Thu Feb 11, 2021 at 11:21 PM CST, Daniel Axtens wrote: > Hi Chris, > > > Rework the messy ifdef breaking up the if-else for TM similar to > > commit f1cf4f93de2f ("powerpc/signal32: Remove ifdefery in middle of > > if/else"). > > I'm not sure what 'the messy ifdef' and 'the if-else for TM' is (

Re: [PATCH kernel 2/2] powerpc/iommu: Do not immediately panic when failed IOMMU table allocation

2021-02-17 Thread Leonardo Bras
On Tue, 2021-02-16 at 14:33 +1100, Alexey Kardashevskiy wrote: > Most platforms allocate IOMMU table structures (specifically it_map) > at the boot time and when this fails - it is a valid reason for panic(). > > However the powernv platform allocates it_map after a device is returned > to the hos

Re: [PATCH v5 07/10] powerpc/signal64: Replace restore_sigcontext() w/ unsafe_restore_sigcontext()

2021-02-17 Thread Christopher M. Riedl
On Fri Feb 12, 2021 at 3:17 PM CST, Daniel Axtens wrote: > Hi Chris, > > > Previously restore_sigcontext() performed a costly KUAP switch on every > > uaccess operation. These repeated uaccess switches cause a significant > > drop in signal handling performance. > > > > Rewrite restore_sigcontext()

Re: [PATCH v5 06/10] powerpc/signal64: Replace setup_sigcontext() w/ unsafe_setup_sigcontext()

2021-02-17 Thread Christopher M. Riedl
On Thu Feb 11, 2021 at 11:41 PM CST, Daniel Axtens wrote: > Hi Chris, > > > Previously setup_sigcontext() performed a costly KUAP switch on every > > uaccess operation. These repeated uaccess switches cause a significant > > drop in signal handling performance. > > > > Rewrite setup_sigcontext() to

Re: [PATCH kernel 1/2] powerpc/iommu: Allocate it_map by vmalloc

2021-02-17 Thread Leonardo Bras
On Tue, 2021-02-16 at 14:33 +1100, Alexey Kardashevskiy wrote: > The IOMMU table uses the it_map bitmap to keep track of allocated DMA > pages. This has always been a contiguous array allocated at either > the boot time or when a passed through device is returned to the host OS. > The it_map memory

Re: [PATCH 2/2] powerpc/uaccess: Move might_fault() into user_access_begin()

2021-02-17 Thread Christophe Leroy
Michael Ellerman a écrit : Christophe Leroy writes: Le 08/02/2021 à 14:57, Michael Ellerman a écrit : We have a might_fault() check in __unsafe_put_user_goto(), but that is dangerous as it potentially calls lots of code while user access is enabled. It also triggers the check Alexey added t