Re: [RFC] mm/gup.c: Updated return value of {get|pin}_user_pages_fast()

2020-05-07 Thread Jan Kara
On Wed 06-05-20 21:38:40, Souptick Joarder wrote: > On Wed, May 6, 2020 at 6:29 PM Jan Kara wrote: > > > > On Wed 06-05-20 17:51:39, Souptick Joarder wrote: > > > On Wed, May 6, 2020 at 3:36 PM Jan Kara wrote: > > > > > > > > On Wed 06-05-20 02:06:56, Souptick Joarder wrote: > > > > > On Wed, May

Re: KASAN: use-after-free Write in snd_rawmidi_kernel_write1

2020-05-07 Thread Greg Kroah-Hartman
On Thu, May 07, 2020 at 11:56:22AM +0200, Takashi Iwai wrote: > On Thu, 07 May 2020 10:23:02 +0200, > Greg Kroah-Hartman wrote: > > > > On Thu, May 07, 2020 at 04:04:25PM +0800, butt3rflyh4ck wrote: > > > I report a bug (in linux-5.7-rc1) found by syzkaller. > > > > > > kernel config: > > > http

Re: [PATCHv2] kretprobe: Prevent triggering kretprobe from within kprobe_flush_task

2020-05-07 Thread Jiri Olsa
On Fri, May 01, 2020 at 11:01:07AM +0900, Masami Hiramatsu wrote: > On Tue, 28 Apr 2020 23:36:27 +0200 > Jiri Olsa wrote: > > > On Fri, Apr 17, 2020 at 04:38:10PM +0900, Masami Hiramatsu wrote: > > > > SNIP > > > > > > > > > > The code within the kretprobe handler checks for probe reentrancy,

Re: [PATCH] iomm/arm-smmu: Add stall implementation hook

2020-05-07 Thread Sai Prakash Ranjan
Hi Will, Robin On 2020-04-22 01:50, Sai Prakash Ranjan wrote: Add stall implementation hook to enable stalling faults on QCOM platforms which supports it without causing any kind of hardware mishaps. Without this on QCOM platforms, GPU faults can cause unrelated GPU memory accesses to return zer

Re: KASAN: use-after-free Write in snd_rawmidi_kernel_write1

2020-05-07 Thread Takashi Iwai
On Thu, 07 May 2020 12:13:10 +0200, Greg Kroah-Hartman wrote: > > On Thu, May 07, 2020 at 11:56:22AM +0200, Takashi Iwai wrote: > > On Thu, 07 May 2020 10:23:02 +0200, > > Greg Kroah-Hartman wrote: > > > > > > On Thu, May 07, 2020 at 04:04:25PM +0800, butt3rflyh4ck wrote: > > > > I report a bug (

Re: [PATCH] arm64/cpufeature: Verify KVM capabilities during CPU hotplug

2020-05-07 Thread Marc Zyngier
On Thu, 7 May 2020 11:49:47 +0530 Anshuman Khandual wrote: Hi Anshuman, > This validates KVM capabilities like VMID width, IPA range for hotplug CPU > against system finalized values. While here, it factors out get_vmid_bits() > for general use and also defines ID_AA64MMFR0_PARANGE_MASK. nit:

RE: [PATCH] ima: Allow imasig requirement to be satisfied by EVM portable signatures

2020-05-07 Thread Roberto Sassu
> -Original Message- > From: linux-integrity-ow...@vger.kernel.org [mailto:linux-integrity- > ow...@vger.kernel.org] On Behalf Of Roberto Sassu > Sent: Friday, April 24, 2020 12:40 PM > To: Mimi Zohar ; mj...@google.com > Cc: linux-integr...@vger.kernel.org; linux-security-mod...@vger.kerne

Re: [PATCH v6] MIPS: Loongson: Add DMA support for LS7A

2020-05-07 Thread Tiezhu Yang
On 05/07/2020 09:41 AM, Huacai Chen wrote: Hi, Christoph, On Wed, May 6, 2020 at 10:44 PM Christoph Hellwig wrote: On Wed, May 06, 2020 at 04:47:30PM +0800, Huacai Chen wrote: For the above reasons, I think what you are concerned is not a big deal. I don't think so, this is obviously a regre

[PATCH v3 0/5] MTK MDP driver cleanups to prep for futher work

2020-05-07 Thread Eizan Miyamoto
It most notably converts an array of MDP components to a list instead, but also removes some unused fields. This series of patches does some cleanup in preparation for futher work so that hardware video decode works on 4.19 and later kernels. We are planning on adding a dummy driver for the rele

[PATCH v3 3/5] [media] mtk-mdp: handle vpu_wdt_reg_handler() errors during probe

2020-05-07 Thread Eizan Miyamoto
This is a cleanup to better handle errors during MDP probe. Signed-off-by: Eizan Miyamoto Reviewed-by: Enric Balletbo i Serra --- Changes in v3: None Changes in v2: - remove unnecessary error handling labels in favor of err_m2m_register drivers/media/platform/mtk-mdp/mtk_mdp_core.c | 8 ++

[PATCH v3 2/5] [media] mtk-mdp: handle vb2_dma_contig_set_max_seg_size errors during probe

2020-05-07 Thread Eizan Miyamoto
This is a cleanup to better handle errors during MDP probe. Signed-off-by: Eizan Miyamoto Reviewed-by: Enric Balletbo i Serra --- Changes in v3: None Changes in v2: - remove unnecessary error handling labels in favor of err_m2m_register drivers/media/platform/mtk-mdp/mtk_mdp_core.c | 6 +-

[PATCH v3 1/5] [media] mtk-mdp: remove mtk_mdp_comp.regs from mtk_mdp_comp.h

2020-05-07 Thread Eizan Miyamoto
These fields are not used and can be removed. Signed-off-by: Eizan Miyamoto Reviewed-by: Enric Balletbo I Serra --- Changes in v3: None Changes in v2: None drivers/media/platform/mtk-mdp/mtk_mdp_comp.c | 1 - drivers/media/platform/mtk-mdp/mtk_mdp_comp.h | 2 -- 2 files changed, 3 deletions(-

Re: [PATCH] mtd: lpddr: fix excessive stack usage with clang

2020-05-07 Thread Miquel Raynal
Nathan Chancellor wrote on Tue, 5 May 2020 19:38:28 -0700: > On Tue, May 05, 2020 at 04:01:16PM +0200, Arnd Bergmann wrote: > > Building lpddr2_nvm with clang can result in a giant stack usage > > in one function: > > > > drivers/mtd/lpddr/lpddr2_nvm.c:399:12: error: stack frame size of 1144

[PATCH v3 4/5] [media] mtk-mdp: convert mtk_mdp_dev.comp array to list

2020-05-07 Thread Eizan Miyamoto
The functions mtk_mdp_register/unregister_component have been created to add / remove items from the list of components. This will eventually enable us to specify a list of components in the device tree instead of hardcoding them into this driver. The list is modified by a single thread at driver

[PATCH] media: usb: ttusb-dec: reduce the number of memory reads in ttusb_dec_handle_irq()

2020-05-07 Thread Jia-Ju Bai
In ttusb_dec_handle_irq(), buffer[4] is continuously read from memory three times, without being modified. To reduce the number of memory reads, buffer[4] is first assigned to a local variable index, and then index is used to replace buffer[4]. Signed-off-by: Jia-Ju Bai --- drivers/media/usb/tt

[PATCH v3 5/5] [media] mtk-mdp: Remove mtk_mdp_comp.id and supporting functionality

2020-05-07 Thread Eizan Miyamoto
Since components are registered in a list, the numeric component id that specified a location in an array is not necessary. Signed-off-by: Eizan Miyamoto --- Changes in v3: - Removed extra Signed-off-by: tag from commit messages. - Removed extra line break in mtk_mdp_core.c - Update cover letter

Re: KASAN: use-after-free Write in snd_rawmidi_kernel_write1

2020-05-07 Thread Amadeusz Sławiński
On 5/7/2020 11:56 AM, Takashi Iwai wrote: On Thu, 07 May 2020 10:23:02 +0200, Greg Kroah-Hartman wrote: On Thu, May 07, 2020 at 04:04:25PM +0800, butt3rflyh4ck wrote: I report a bug (in linux-5.7-rc1) found by syzkaller. kernel config: https://github.com/butterflyhack/syzkaller-fuzz/blob/

Re: [PATCHv4 0/6] iommu/arm-smmu: Allow client devices to select identity mapping

2020-05-07 Thread Sai Prakash Ranjan
Hi Will, Joerg On 2020-04-21 00:03, Sai Prakash Ranjan wrote: This series allows DRM, Modem devices to set a default identity mapping in qcom smmu implementation. Patch 1 is cleanup to support other SoCs to call into QCOM specific implementation. Patch 2 sets the default identity domain for DR

Re: [PATCHv4 0/6] iommu/arm-smmu: Allow client devices to select identity mapping

2020-05-07 Thread Will Deacon
On Thu, May 07, 2020 at 03:58:06PM +0530, Sai Prakash Ranjan wrote: > Hi Will, Joerg > > On 2020-04-21 00:03, Sai Prakash Ranjan wrote: > > This series allows DRM, Modem devices to set a default > > identity mapping in qcom smmu implementation. > > > > Patch 1 is cleanup to support other SoCs to

[PATCH v3 00/15] virtio-mem: paravirtualized memory

2020-05-07 Thread David Hildenbrand
This series is based on latest linux-next. The patches are located at: https://github.com/davidhildenbrand/linux.git virtio-mem-v3 Patch #1 - #10 where contained in v2 and only contain minor modifications (mostly smaller fixes). The remaining patches are new and contain smaller optimizations.

[PATCH v2] fork: prevent accidental access to clone3 features

2020-05-07 Thread Christian Brauner
Jan reported an issue where an interaction between sign-extending clone's flag argument on ppc64le and the new CLONE_INTO_CGROUP feature causes clone() to consistently fail with EBADF. The whole story is a little longer. The legacy clone() syscall is odd in a bunch of ways and here two things inte

[PATCH v3 02/15] virtio-mem: Allow to specify an ACPI PXM as nid

2020-05-07 Thread David Hildenbrand
We want to allow to specify (similar as for a DIMM), to which node a virtio-mem device (and, therefore, its memory) belongs. Add a new virtio-mem feature flag and export pxm_to_node, so it can be used in kernel module context. Acked-by: Michal Hocko # for the export Acked-by: "Rafael J. Wysocki"

Re: [RFC] mm/gup.c: Updated return value of {get|pin}_user_pages_fast()

2020-05-07 Thread Souptick Joarder
On Thu, May 7, 2020 at 3:43 PM Jan Kara wrote: > > On Wed 06-05-20 21:38:40, Souptick Joarder wrote: > > On Wed, May 6, 2020 at 6:29 PM Jan Kara wrote: > > > > > > On Wed 06-05-20 17:51:39, Souptick Joarder wrote: > > > > On Wed, May 6, 2020 at 3:36 PM Jan Kara wrote: > > > > > > > > > > On Wed

[PATCH v3 03/15] virtio-mem: Paravirtualized memory hotunplug part 1

2020-05-07 Thread David Hildenbrand
Unplugging subblocks of memory blocks that are offline is easy. All we have to do is watch out for concurrent onlining activity. Tested-by: Pankaj Gupta Cc: "Michael S. Tsirkin" Cc: Jason Wang Cc: Oscar Salvador Cc: Michal Hocko Cc: Igor Mammedov Cc: Dave Young Cc: Andrew Morton Cc: Dan Wi

[PATCH v3 04/15] virtio-mem: Paravirtualized memory hotunplug part 2

2020-05-07 Thread David Hildenbrand
We also want to unplug online memory (contained in online memory blocks and, therefore, managed by the buddy), and eventually replug it later. When requested to unplug memory, we use alloc_contig_range() to allocate subblocks in online memory blocks (so we are the owner) and send them to our hyper

[PATCH v3 01/15] virtio-mem: Paravirtualized memory hotplug

2020-05-07 Thread David Hildenbrand
Each virtio-mem device owns exactly one memory region. It is responsible for adding/removing memory from that memory region on request. When the device driver starts up, the requested amount of memory is queried and then plugged to Linux. On request, further memory can be plugged or unplugged. Thi

[PATCH v3 05/15] mm: Allow to offline unmovable PageOffline() pages via MEM_GOING_OFFLINE

2020-05-07 Thread David Hildenbrand
virtio-mem wants to allow to offline memory blocks of which some parts were unplugged (allocated via alloc_contig_range()), especially, to later offline and remove completely unplugged memory blocks. The important part is that PageOffline() has to remain set until the section is offline, so these p

[PATCH v3 08/15] virtio-mem: Offline and remove completely unplugged memory blocks

2020-05-07 Thread David Hildenbrand
Let's offline+remove memory blocks once all subblocks are unplugged. We can use the new Linux MM interface for that. As no memory is in use anymore, this shouldn't take a long time and shouldn't fail. There might be corner cases where the offlining could still fail (especially, if another notifier

[PATCH v3 06/15] virtio-mem: Allow to offline partially unplugged memory blocks

2020-05-07 Thread David Hildenbrand
Dropping the reference count of PageOffline() pages during MEM_GOING_ONLINE allows offlining code to skip them. However, we also have to clear PG_reserved, because PG_reserved pages get detected as unmovable right away. Take care of restoring the reference count when offlining is canceled. Clarify

Re: [PATCH] xhci: Make debug message consistent with bus and port number

2020-05-07 Thread Mathias Nyman
On 7.5.2020 11.21, Greg Kroah-Hartman wrote: > On Thu, May 07, 2020 at 03:58:36PM +0800, Kai-Heng Feng wrote: >> >> >>> On May 7, 2020, at 15:31, Greg Kroah-Hartman >>> wrote: >>> >>> On Thu, May 07, 2020 at 03:15:01PM +0800, Kai-Heng Feng wrote: > On May 7, 2020, at 14:45, Greg Kro

[PATCH v3 11/15] virtio-mem: Add parent resource for all added "System RAM"

2020-05-07 Thread David Hildenbrand
Let's add a parent resource, named after the virtio device (inspired by drivers/dax/kmem.c). This allows user space to identify which memory belongs to which virtio-mem device. With this change and two virtio-mem devices: :/# cat /proc/iomem -0fff : Reserved 000

[PATCH v3 14/15] virtio-mem: Use -ETXTBSY as error code if the device is busy

2020-05-07 Thread David Hildenbrand
Let's be able to distinguish if the device or if memory is busy. Cc: "Michael S. Tsirkin" Cc: Pankaj Gupta Signed-off-by: David Hildenbrand --- drivers/virtio/virtio_mem.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/drivers/virtio/virtio_mem.c b/driver

[PATCH v3 10/15] MAINTAINERS: Add myself as virtio-mem maintainer

2020-05-07 Thread David Hildenbrand
Let's make sure patches/bug reports find the right person. Cc: "Michael S. Tsirkin" Signed-off-by: David Hildenbrand --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 4d43ea5468b5..ad2b34f4dd66 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @

Re: [PATCHv2] iommu/arm-smmu: Make remove callback message more informative

2020-05-07 Thread Robin Murphy
On 2020-05-07 11:04 am, Sai Prakash Ranjan wrote: Hi, On 2020-05-07 05:40, Doug Anderson wrote: Hi, On Thu, Apr 23, 2020 at 7:35 AM Doug Anderson wrote: Hi, On Thu, Apr 23, 2020 at 2:55 AM Sai Prakash Ranjan wrote: > > Currently on reboot/shutdown, the following messages are > displayed

[PATCH v3 07/15] mm/memory_hotplug: Introduce offline_and_remove_memory()

2020-05-07 Thread David Hildenbrand
virtio-mem wants to offline and remove a memory block once it unplugged all subblocks (e.g., using alloc_contig_range()). Let's provide an interface to do that from a driver. virtio-mem already supports to offline partially unplugged memory blocks. Offlining a fully unplugged memory block will not

[PATCH v3 15/15] virtio-mem: Try to unplug the complete online memory block first

2020-05-07 Thread David Hildenbrand
Right now, we always try to unplug single subblocks when processing an online memory block. Let's try to unplug the complete online memory block first, in case it is fully plugged and the unplug request is large enough. Fallback to single subblocks in case the memory block cannot get unplugged as a

[PATCH v3 09/15] virtio-mem: Better retry handling

2020-05-07 Thread David Hildenbrand
Let's start with a retry interval of 5 seconds and double the time until we reach 5 minutes, in case we keep getting errors. Reset the retry interval in case we succeeded. The two main reasons for having to retry are - The hypervisor is busy and cannot process our request - We cannot reach the des

[PATCH v3 13/15] virtio-mem: Unplug subblocks right-to-left

2020-05-07 Thread David Hildenbrand
We unplug blocks right-to-left, let's also unplug subblocks within a block right-to-left. Cc: "Michael S. Tsirkin" Cc: Pankaj Gupta Signed-off-by: David Hildenbrand --- drivers/virtio/virtio_mem.c | 38 - 1 file changed, 16 insertions(+), 22 deletions(-) di

[PATCH v3 12/15] virtio-mem: Drop manual check for already present memory

2020-05-07 Thread David Hildenbrand
Registering our parent resource will fail if any memory is still present (e.g., because somebody unloaded the driver and tries to reload it). No need for the manual check. Move our "unplug all" handling to after registering the resource. Cc: "Michael S. Tsirkin" Cc: Pankaj Gupta Signed-off-by:

Re: KASAN: use-after-free Write in snd_rawmidi_kernel_write1

2020-05-07 Thread Takashi Iwai
On Thu, 07 May 2020 12:27:41 +0200, Amadeusz SX2awiX4ski wrote: > > > > On 5/7/2020 11:56 AM, Takashi Iwai wrote: > > On Thu, 07 May 2020 10:23:02 +0200, > > Greg Kroah-Hartman wrote: > >> > >> On Thu, May 07, 2020 at 04:04:25PM +0800, butt3rflyh4ck wrote: > >>> I report a bug (in linux-5.7-rc1)

Re: [PATCH] Driver: hv: vmbus: drop a no long applicable comment

2020-05-07 Thread Wei Liu
On Wed, May 06, 2020 at 05:49:05PM +, Michael Kelley wrote: > From: Wei Liu Sent: Wednesday, May 6, 2020 9:08 AM > > > > None of the things mentioned in the comment is initialized in hv_init. > > They've been moved elsewhere. > > > > Signed-off-by: Wei Liu > > --- > > drivers/hv/vmbus_drv.

Re: [PATCH 3/4] scripts/checkstack.pl: add arm push handling for stack usage

2020-05-07 Thread Masahiro Yamada
(+CC Andi Kleen, and more mentor) On Thu, Apr 30, 2020 at 9:50 PM Maninder Singh wrote: > > To count stack usage of push {*, fp, ip, lr, pc} instruction in ARM, > if FRAME POINTER is enabled. > e.g. c01f0d48: e92ddff0 push {r4, r5, r6, r7, r8, r9, sl, fp, ip, lr, pc} > > c01f0d50 : > c01f0d44:

Re: [PATCH 4/4] scripts/checkstack.pl: fix arm sp regex

2020-05-07 Thread Masahiro Yamada
On Thu, Apr 30, 2020 at 9:50 PM Maninder Singh wrote: > > if objdump has below entries; > c01ed608 : > c01ed614: e24ddff7sub sp, sp, #120; 0x78 > > c01f0d50 : > c01f0d50: e24dd094sub sp, sp, #140; 0x8c > > scripts fails to read stack usage. > so making r

Re: [PATCH] platform/x86: dell-laptop: don't register platform::micmute if the related tokens don't exist.

2020-05-07 Thread Andy Shevchenko
+Cc: Mario On Thu, May 7, 2020 at 12:42 PM wrote: > > From: Koba Ko > > Error messge is issued, > "platform::micmute: Setting an LED's brightness failed (-19)", > Even the device isn't presented. > > Get the related tokens of SMBIOS, GLOBAL_MIC_MUTE_DISABLE/ENABLE. > If one of two tokens doesn't

[PATCH] arm64: vdso: Add --eh-frame-hdr to ldflags

2020-05-07 Thread Vincenzo Frascino
LLVM's unwinder depends on the .eh_frame_hdr being present for unwinding. However, when compiling Linux with GCC, the section is not present in the vdso library object and when compiling with Clang, it is present, but it has zero length. With GCC the problem was not spotted because libgcc unwinder

Re: KASAN: use-after-free Write in snd_rawmidi_kernel_write1

2020-05-07 Thread Takashi Iwai
On Thu, 07 May 2020 12:36:14 +0200, Takashi Iwai wrote: > > On Thu, 07 May 2020 12:27:41 +0200, > Amadeusz SX2awiX4ski wrote: > > > > So if I follow this correctly, you call spin_unlock_irqrestore twice > > in case of error? > > Erm no, this is obviously wrong. The error path needs re-lock. > W

Re: [PATCH v3 07/15] mm/memory_hotplug: Introduce offline_and_remove_memory()

2020-05-07 Thread Michael S. Tsirkin
On Thu, May 07, 2020 at 12:31:11PM +0200, David Hildenbrand wrote: > virtio-mem wants to offline and remove a memory block once it unplugged > all subblocks (e.g., using alloc_contig_range()). Let's provide > an interface to do that from a driver. virtio-mem already supports to > offline partially

KASAN: use-after-free Write in get_block

2020-05-07 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:ac935d22 Add linux-next specific files for 20200415 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=13f7824c10 kernel config: https://syzkaller.appspot.com/x/.config?x=bc498783097e9019 dashboard

Re: [GRUB PATCH RFC 12/18] i386/efi: Report UEFI Secure Boot status to the Linux kernel

2020-05-07 Thread Daniel Kiper
On Wed, May 06, 2020 at 11:36:49AM -0700, Matthew Garrett wrote: > On Wed, May 6, 2020 at 6:33 AM Daniel Kiper wrote: > > > > On Tue, May 05, 2020 at 10:29:05AM -0700, Matthew Garrett wrote: > > > On Mon, May 4, 2020 at 4:25 PM Daniel Kiper > > > wrote: > > > > > > > > Otherwise the kernel does

Re: [PATCH v3 10/15] MAINTAINERS: Add myself as virtio-mem maintainer

2020-05-07 Thread Michael S. Tsirkin
On Thu, May 07, 2020 at 12:31:14PM +0200, David Hildenbrand wrote: > Let's make sure patches/bug reports find the right person. > > Cc: "Michael S. Tsirkin" > Signed-off-by: David Hildenbrand Make this patch 2 in the series, or even squash into patch 1. > --- > MAINTAINERS | 7 +++ > 1 fi

Re: [PATCH v3 05/15] mm: Allow to offline unmovable PageOffline() pages via MEM_GOING_OFFLINE

2020-05-07 Thread Michael S. Tsirkin
On Thu, May 07, 2020 at 12:31:09PM +0200, David Hildenbrand wrote: > virtio-mem wants to allow to offline memory blocks of which some parts > were unplugged (allocated via alloc_contig_range()), especially, to later > offline and remove completely unplugged memory blocks. The important part > is th

Re: [PATCH v3 00/15] virtio-mem: paravirtualized memory

2020-05-07 Thread Michael S. Tsirkin
On Thu, May 07, 2020 at 12:31:04PM +0200, David Hildenbrand wrote: > This series is based on latest linux-next. The patches are located at: > https://github.com/davidhildenbrand/linux.git virtio-mem-v3 > > Patch #1 - #10 where contained in v2 and only contain minor modifications > (mostly smal

Re: [PATCH 06/11] net: ethernet: mtk-eth-mac: new driver

2020-05-07 Thread Bartosz Golaszewski
czw., 7 maj 2020 o 11:46 Mark-MC.Lee napisał(a): > > Hi Bartosz: > I think the naming of this driver and its Kconfig option is too generic > that will confuse with current mediatek SoCs eth driver architecture(for > all mt7xxx SoCs). > Since mtk_eth_mac.c is not a common MAC part for all mediat

Re: [PATCH] KVM: arm/arm64: release kvm->mmu_lock in loop to prevent starvation

2020-05-07 Thread Suzuki K Poulose
On 04/15/2020 09:42 AM, Jiang Yi wrote: Do cond_resched_lock() in stage2_flush_memslot() like what is done in unmap_stage2_range() and other places holding mmu_lock while processing a possibly large range of memory. Signed-off-by: Jiang Yi --- virt/kvm/arm/mmu.c | 3 +++ 1 file changed, 3 in

Re: [PATCH] iomm/arm-smmu: Add stall implementation hook

2020-05-07 Thread Robin Murphy
On 2020-05-07 11:14 am, Sai Prakash Ranjan wrote: Hi Will, Robin On 2020-04-22 01:50, Sai Prakash Ranjan wrote: Add stall implementation hook to enable stalling faults on QCOM platforms which supports it without causing any kind of hardware mishaps. Without this on QCOM platforms, GPU faults ca

Re: [PATCHv2] iommu/arm-smmu: Make remove callback message more informative

2020-05-07 Thread Sai Prakash Ranjan
On 2020-05-07 16:03, Robin Murphy wrote: On 2020-05-07 11:04 am, Sai Prakash Ranjan wrote: Hi, On 2020-05-07 05:40, Doug Anderson wrote: Hi, On Thu, Apr 23, 2020 at 7:35 AM Doug Anderson wrote: Hi, On Thu, Apr 23, 2020 at 2:55 AM Sai Prakash Ranjan wrote: > > Currently on reboot/shutdow

[PATCH] sched/fair: Return true,false in voluntary_active_balance()

2020-05-07 Thread Jason Yan
Fix the following coccicheck warning: kernel/sched/fair.c:9375:9-10: WARNING: return of 0/1 in function 'voluntary_active_balance' with return type bool Signed-off-by: Jason Yan --- kernel/sched/fair.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/sched/fair

[PATCH] kgdb: Return true in kgdb_nmi_poll_knock()

2020-05-07 Thread Jason Yan
Fix the following coccicheck warning: include/linux/kgdb.h:301:54-55: WARNING: return of 0/1 in function 'kgdb_nmi_poll_knock' with return type bool Signed-off-by: Jason Yan --- include/linux/kgdb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/kgdb.h b/inclu

Re: KASAN: use-after-free Write in snd_rawmidi_kernel_write1

2020-05-07 Thread Greg Kroah-Hartman
On Thu, May 07, 2020 at 12:19:18PM +0200, Takashi Iwai wrote: > On Thu, 07 May 2020 12:13:10 +0200, > Greg Kroah-Hartman wrote: > > > > On Thu, May 07, 2020 at 11:56:22AM +0200, Takashi Iwai wrote: > > > On Thu, 07 May 2020 10:23:02 +0200, > > > Greg Kroah-Hartman wrote: > > > > > > > > On Thu, M

[PATCH] drm/amd/display: remove variable "result" in dcn20_patch_unknown_plane_state()

2020-05-07 Thread Jason Yan
Fix the following coccicheck warning: drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c:3216:16-22: Unneeded variable: "result". Return "DC_OK" on line 3229 Signed-off-by: Jason Yan --- drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletio

[PATCH] ata: return true in ata_is_host_link()

2020-05-07 Thread Jason Yan
Fix the following coccicheck warning: include/linux/libata.h:1446:8-9: WARNING: return of 0/1 in function 'ata_is_host_link' with return type bool Signed-off-by: Jason Yan --- include/linux/libata.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/libata.h b/inc

[PATCH] b43: remove dead function b43_rssinoise_postprocess()

2020-05-07 Thread Jason Yan
This function is dead for more than 10 years. Remove it. Signed-off-by: Jason Yan --- drivers/net/wireless/broadcom/b43/xmit.c | 13 - 1 file changed, 13 deletions(-) diff --git a/drivers/net/wireless/broadcom/b43/xmit.c b/drivers/net/wireless/broadcom/b43/xmit.c index 058745219516

Re: [PATCHv4 0/6] iommu/arm-smmu: Allow client devices to select identity mapping

2020-05-07 Thread Sai Prakash Ranjan
Hi Will, On 2020-05-07 16:01, Will Deacon wrote: On Thu, May 07, 2020 at 03:58:06PM +0530, Sai Prakash Ranjan wrote: Hi Will, Joerg On 2020-04-21 00:03, Sai Prakash Ranjan wrote: > This series allows DRM, Modem devices to set a default > identity mapping in qcom smmu implementation. > > Patch

[PATCH] drm/vmwgfx: Return true in function vmw_fence_obj_signaled()

2020-05-07 Thread Jason Yan
Fix the following coccicheck warning: drivers/gpu/drm/vmwgfx/vmwgfx_fence.c:518:9-10: WARNING: return of 0/1 in function 'vmw_fence_obj_signaled' with return type bool Signed-off-by: Jason Yan --- drivers/gpu/drm/vmwgfx/vmwgfx_fence.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH] USB: Remove dead code in usb_choose_configuration()

2020-05-07 Thread Jason Yan
This code is dead for more than 10 years. Remove it. Signed-off-by: Jason Yan --- drivers/usb/core/generic.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/usb/core/generic.c b/drivers/usb/core/generic.c index 4626227a6dd2..1c93192fc136 100644 --- a/drivers/usb/core/generic.c +

Re: [GRUB PATCH RFC 00/18] i386: Intel TXT secure launcher

2020-05-07 Thread Daniel Kiper
Hi Łukasz, On Tue, May 05, 2020 at 04:38:02PM +0200, Lukasz Hawrylko wrote: > On Tue, 2020-05-05 at 01:21 +0200, Daniel Kiper wrote: > > Hi, > > > > This is an RFC patchset for the GRUB introducing the Intel TXT secure > > launcher. > > This is a part of larger work known as the TrenchBoot. Patch

[PATCH net-next] net: mlx4: remove unneeded variable "err" in mlx4_en_ethtool_add_mac_rule()

2020-05-07 Thread Jason Yan
Fix the following coccicheck warning: drivers/net/ethernet/mellanox/mlx4/en_ethtool.c:1396:5-8: Unneeded variable: "err". Return "0" on line 1411 Signed-off-by: Jason Yan --- drivers/net/ethernet/mellanox/mlx4/en_ethtool.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dr

[PATCH net-next] net: atheros: remove dead code in atl1c_resume()

2020-05-07 Thread Jason Yan
This code has been marked dead for nearly 10 years. Remove it. Signed-off-by: Jason Yan --- drivers/net/ethernet/atheros/atl1c/atl1c_main.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/net/ethernet/atheros/atl1c/atl1c_main.c b/drivers/net/ethernet/atheros/atl1c/atl1c_main.c

[PATCH net-next] net: tulip: de4x5: make PCI_signature() return void

2020-05-07 Thread Jason Yan
This function always return 0 now, we can make it return void to simplify the code. This fixes the following coccicheck warning: drivers/net/ethernet/dec/tulip/de4x5.c:3908:11-17: Unneeded variable: "status". Return "0" on line 3912 Signed-off-by: Jason Yan --- drivers/net/ethernet/dec/tulip/de

[PATCH net-next] net: encx24j600: make encx24j600_hw_init() return void

2020-05-07 Thread Jason Yan
This function always return 0 now, we can make it return void to simplify the code. This fixes the following coccicheck warning: drivers/net/ethernet/microchip/encx24j600.c:609:5-8: Unneeded variable: "ret". Return "0" on line 653 Signed-off-by: Jason Yan --- drivers/net/ethernet/microchip/encx

[PATCH net-next] igb: make igb_set_fc_watermarks() return void

2020-05-07 Thread Jason Yan
This function always return 0 now, we can make it return void to simplify the code. This fixes the following coccicheck warning: drivers/net/ethernet/intel/igb/e1000_mac.c:728:5-12: Unneeded variable: "ret_val". Return "0" on line 751 Signed-off-by: Jason Yan --- drivers/net/ethernet/intel/igb/

RTL8723BS driver doesn't work for,me but I can help testing

2020-05-07 Thread Tobias Baumann
Hello Community I was referred to you by Martin. I have an older Android TV box that runs for over 3 years with Armbian Linux (Debian Jessie Headless Kernel 3.10.99). I'm looking forward to the new kernels and I'm glad that older hardware is still supported. Together with Oleg(balbes150) and Mart

Re: [PATCH v2 1/2] [media] mtk-mdp: add driver to probe mdp components

2020-05-07 Thread Eizan Miyamoto
On Thu, May 7, 2020 at 2:54 AM Enric Balletbo Serra wrote: > > Hi Eizan, > > Thank you for the patch. > > Missatge de Eizan Miyamoto del dia dc., 6 de maig > 2020 a les 10:41: > > > > Broadly, this patch (1) adds a driver for various MTK MDP components to > > go alongside the main MTK MDP driver,

Re: [PATCH net 11/16] net: ethernet: marvell: mvneta: fix fixed-link phydev leaks

2020-05-07 Thread Greg Kroah-Hartman
On Thu, May 07, 2020 at 08:47:34AM +0200, Greg Kroah-Hartman wrote: > On Thu, May 07, 2020 at 08:44:12AM +0200, Johan Hovold wrote: > > On Thu, May 07, 2020 at 12:27:53AM +0530, Naresh Kamboju wrote: > > > On Tue, 29 Nov 2016 at 00:00, Johan Hovold wrote: > > > > > > > > Make sure to deregister an

[PATCH] dca: Use PTR_ERR_OR_ZERO() to simplify code

2020-05-07 Thread Tang Bin
The function PTR_ERR_OR_ZERO() contains the check of IS_ERR() and the return of PTR_ERR() or zero. Signed-off-by: Zhang Shengju Signed-off-by: Tang Bin --- drivers/dca/dca-sysfs.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/dca/dca-sysfs.c b/drivers/dca/dca-sy

Re: [PATCH] platform/x86: dell-laptop: don't register platform::micmute if the related tokens don't exist.

2020-05-07 Thread Pali Rohár
On Thursday 07 May 2020 17:42:42 koba...@canonical.com wrote: > From: Koba Ko > > Error messge is issued, > "platform::micmute: Setting an LED's brightness failed (-19)", > Even the device isn't presented. > > Get the related tokens of SMBIOS, GLOBAL_MIC_MUTE_DISABLE/ENABLE. > If one of two toke

[PATCH V2] Enable stmpe811 on stm32f429-disco board

2020-05-07 Thread dillon . minfei
This patchset has following one patchs changed in V2 based on V1 Changes in V2: [Patch V2 3/4]: remove id, blocks, irq-trigger from dts node. Changes in V1: [Patch 1/4]: add I2C3 support on STM32F429 SoC [Patch 2/4]: Add pin map for I2C3 controller on stm32f4 [Patch 3/4]: enable stmpe811 on s

[PATCH V2 1/4] ARM: dts: stm32: add I2C3 support on STM32F429 SoC

2020-05-07 Thread dillon . minfei
From: dillon min This patch adds I2C3 instances of the STM32F429 SoC Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f429.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi index d777069..257b843 10064

Re: [PATCH] media: usb: ttusb-dec: reduce the number of memory reads in ttusb_dec_handle_irq()

2020-05-07 Thread Greg KH
On Thu, May 07, 2020 at 06:25:21PM +0800, Jia-Ju Bai wrote: > In ttusb_dec_handle_irq(), buffer[4] is continuously read from memory > three times, without being modified. > To reduce the number of memory reads, buffer[4] is first assigned to a > local variable index, and then index is used to repl

[PATCH V2 2/4] ARM: dts: stm32: Add pin map for I2C3 controller on stm32f4

2020-05-07 Thread dillon . minfei
From: dillon min This patch adds the pin configuration for I2C3 controller on stm32f4. Signed-off-by: dillon min --- arch/arm/boot/dts/stm32f4-pinctrl.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/stm32f4-pinctrl.dtsi b/arch/arm/boot/dts/stm32f4-pinc

[PATCH V2 3/4] ARM: dts: stm32: enable stmpe811 on stm32429-disco board

2020-05-07 Thread dillon . minfei
From: dillon min Enable the stmpe811 touch screen on stm32429-disco board. Signed-off-by: dillon min [PATCH 3/4]: ARM: dts: stm32: enable stmpe811 on stm32429-disco V2: patch 3: remove unused id, blocks, irq-trigger V1: patch 4: fix read touch screen xyz timeout bug patch 3: enable stmpe_tou

[PATCH V2 4/4] i2c: stm32f4: Fix stmpe811 get xyz data timeout issue

2020-05-07 Thread dillon . minfei
From: dillon min As stm32f429's internal flash is 2Mbytes and compiled kernel image bigger than 2Mbytes, so we have to load kernel image to sdram on stm32f429-disco board which has 8Mbytes sdram space. based on above context, as you knows kernel running on external sdram is more slower than inte

Re: net: broadcom: fix a mistake about ioremap resource

2020-05-07 Thread Markus Elfring
>> I hope that other contributors can convince you to improve also this >> commit message considerably. >> Would you like to fix the spelling besides other wording weaknesses? > > How about this wording: > > Commit d7a5502b0bb8b ("net: broadcom: convert to > devm_platform_ioremap_resource_byname()"

[x86/head/64] e5a6f186af: BUG:kernel_hang_in_boot_stage

2020-05-07 Thread kernel test robot
6afc353 #1 Command line: ip=vm-snb-ssd-16::dhcp root=/dev/ram0 user=lkp job=/lkp/jobs/scheduled/vm-snb-ssd-16/boot-1-yocto-x86_64-minimal-20190520.cgz-e5a6f186afc353e4462a28b4bf127e872e0716b2-20200507-6867-rkmir2-3.yaml ARCH=x86_64 kconfig=x86_64-lkp branch=linux-devel/devel-hourly-20200506

Re: [PATCH] sched/fair: Return true,false in voluntary_active_balance()

2020-05-07 Thread Valentin Schneider
On 07/05/20 12:06, Jason Yan wrote: > Fix the following coccicheck warning: > > kernel/sched/fair.c:9375:9-10: WARNING: return of 0/1 in function > 'voluntary_active_balance' with return type bool > It's perfectly safe to return 0/1 in a boolean function; that said seeing as this is the second a

Re: [PATCH] arm64/cpuinfo: Move HWCAP name arrays alongside their bit definitions

2020-05-07 Thread Mark Rutland
On Thu, May 07, 2020 at 03:26:30PM +0530, Anshuman Khandual wrote: > All HWCAP name arrays (i.e hwcap_str, compat_hwcap_str, compat_hwcap2_str) > that are scanned for /proc/cpuinfo output are detached from their bit fild > definitions making it difficult to corelate. This is also bit problematic >

[net-next] net:enetc: bug fix for qos sfi operate space after freed

2020-05-07 Thread Po Liu
'Dan Carpenter' reported: This code frees "sfi" and then dereferences it on the next line: > kfree(sfi); > clear_bit(sfi->index, epsfp.psfp_sfi_bitmap); This "sfi->index" should be "index". Reported-by: Dan Carpenter Signed-off-by: Po Liu --- drivers/net/etherne

Re: [PATCH v3 00/15] virtio-mem: paravirtualized memory

2020-05-07 Thread David Hildenbrand
On 07.05.20 12:48, Michael S. Tsirkin wrote: > On Thu, May 07, 2020 at 12:31:04PM +0200, David Hildenbrand wrote: >> This series is based on latest linux-next. The patches are located at: >> https://github.com/davidhildenbrand/linux.git virtio-mem-v3 >> >> Patch #1 - #10 where contained in v2 a

RE: [EXT] Re: [PATCH v1 net-next 4/6] net: mscc: ocelot: VCAP IS1 support

2020-05-07 Thread Xiaoliang Yang
Hi Allan, > Hi Vladimir, > > On 06.05.2020 13:53, Vladimir Oltean wrote: [snip] > >At the moment, the driver does not support more than 1 action. We might > >need to change that, but we can still install more filters with the > >same key and still be fine (see more below). When there is more t

Re: [PATCH v3 10/15] MAINTAINERS: Add myself as virtio-mem maintainer

2020-05-07 Thread David Hildenbrand
On 07.05.20 12:47, Michael S. Tsirkin wrote: > On Thu, May 07, 2020 at 12:31:14PM +0200, David Hildenbrand wrote: >> Let's make sure patches/bug reports find the right person. >> >> Cc: "Michael S. Tsirkin" >> Signed-off-by: David Hildenbrand > > Make this patch 2 in the series, or even squash i

Re: [PATCH 4/5] platform/x86: intel-vbtn: Also handle tablet-mode switch on "Detachable" and "Portable" chassis-types

2020-05-07 Thread Hans de Goede
Hi, On 5/5/20 4:27 PM, Andy Shevchenko wrote: On Tue, May 5, 2020 at 5:22 PM wrote: -Original Message- From: platform-driver-x86-ow...@vger.kernel.org On Behalf Of Hans de Goede Sent: Tuesday, May 5, 2020 4:06 AM To: Limonciello, Mario; dvh...@infradead.org; a...@infradead.org Cc: l

[PATCH -next] drm/amd/dc: Remove a useless comparison

2020-05-07 Thread ChenTao
Fix the following warning: 'en' is uint32_t and can never be negative. drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/hw_hpd.c:132:10: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] if ((en < GPIO_DDC_LINE_MIN) || (en > GPIO_DDC_LINE_MAX)) { drivers/gpu/drm/amd/am

Re: [PATCH v3 07/15] mm/memory_hotplug: Introduce offline_and_remove_memory()

2020-05-07 Thread David Hildenbrand
;> mm/memory_hotplug.c| 37 ++ >> 2 files changed, 38 insertions(+) > > I get: > > error: sha1 information is lacking or useless (mm/memory_hotplug.c). > error: could not build fake ancestor > > which version is this against

RE: [EXT] Re: [PATCH v5] iommu/virtio: Use page size bitmap supported by endpoint

2020-05-07 Thread Bharat Bhushan
> -Original Message- > From: Michael S. Tsirkin > Sent: Wednesday, May 6, 2020 5:53 AM > To: Bharat Bhushan > Cc: jean-phili...@linaro.org; j...@8bytes.org; jasow...@redhat.com; > virtualizat...@lists.linux-foundation.org; io...@lists.linux-foundation.org; > linux-kernel@vger.kernel.or

Re: linux-next: manual merge of the iommu tree with the s390 tree

2020-05-07 Thread Pierre Morel
On 2020-05-07 05:58, Stephen Rothwell wrote: Hi all, Today's linux-next merge of the iommu tree got a conflict in: drivers/iommu/s390-iommu.c between commit: d08d6f5d7524 ("s390/pci: adaptation of iommu to multifunction") from the s390 tree and commit: 522af649e57b ("iommu/s390:

[PATCH 4/4] thermal: qoriq: Add platform dependencies

2020-05-07 Thread Geert Uytterhoeven
The QorIQ Thermal Monitoring Unit is only present on Freescale E500MC and Layerscape SoCs, and on NXP i.MX8 SoCs. Add platform dependencies to the QORIQ_THERMAL config symbol, to avoid asking the user about it when configuring a kernel without support for any of the aforementioned SoCs. Signed-of

[PATCH 1/4] ahci: qoriq: Add platform dependencies

2020-05-07 Thread Geert Uytterhoeven
The Freescale QorIQ AHCI SATA controller is only present on Freescale Layerscape SoCs. Add platform dependencies to the AHCI_QORIQ config symbol, to avoid asking the user about it when configuring a kernel without Layerscape support. Signed-off-by: Geert Uytterhoeven --- drivers/ata/Kconfig | 1

[PATCH 0/4] qoriq: Add platform dependencies

2020-05-07 Thread Geert Uytterhoeven
Hi all, Several QorIQ blocks are only present on Freescale or NXP SoCs. This series adds platform dependencies to the corresponding config ymbols, to avoid asking the user about them when configuring a kernel without support for these SoCs. Most patches in this series are independent, but

[PATCH 2/4] cpufreq: qoriq: Add platform dependencies

2020-05-07 Thread Geert Uytterhoeven
The Freescale QorIQ clock controller is only present on Freescale E500MC and Layerscape SoCs. Add platform dependencies to the QORIQ_CPUFREQ config symbol, to avoid asking the user about it when configuring a kernel without E500MC or Layerscape support. Signed-off-by: Geert Uytterhoeven --- dri

[PATCH 3/4] clk: qoriq: Add platform dependencies

2020-05-07 Thread Geert Uytterhoeven
The Freescale QorIQ clock controller is only present on Freescale E500MC and Layerscape SoCs. Add platform dependencies to the CLK_QORIQ config symbol, to avoid asking the user about it when configuring a kernel without E500MC or Layerscape support. Signed-off-by: Geert Uytterhoeven --- drivers

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