Re: [PATCH] media: usbvision: fixed coding style

2020-07-28 Thread Hans Verkuil
Hi Dhiraj, On 28/07/2020 16:30, Dhiraj Sharma wrote: > As per eudyptula challenge task 10 I had to fix coding styles. Thus I > used checkpatch.pl script and fixed a chunk of warnings and few errors. As both drivers/staging/media/usbvision/Kconfig and .../TODO say, this driver is deprecated and wi

[PATCH RFC leds + net-next v4 2/2] net: phy: marvell: add support for PHY LEDs via LED class

2020-07-28 Thread Marek Behún
This patch adds support for controlling the LEDs connected to several families of Marvell PHYs via the PHY HW LED trigger API. These families are: 88E1112, 88E1121R, 88E1240, 88E1340S, 88E1510 and 88E1545. More can be added. This patch does not yet add support for compound LED modes. This could be

[PATCH RFC leds + net-next v4 0/2] Add support for LEDs on Marvell PHYs

2020-07-28 Thread Marek Behún
Hi, this is v4 of my RFC adding support for LEDs connected to Marvell PHYs. Please note that if you want to test this, you still need to first apply the patch adding the LED private triggers support from Pavel's tree. https://git.kernel.org/pub/scm/linux/kernel/git/pavel/linux-leds.git/commit/?h=

[PATCH RFC leds + net-next v4 1/2] net: phy: add API for LEDs controlled by PHY HW

2020-07-28 Thread Marek Behún
Many PHYs support various HW control modes for LEDs connected directly to them. This adds code for registering such LEDs when described in device tree and also adds a new private LED trigger called phydev-hw-mode. When this trigger is enabled for a LED, the various HW control modes which the PHY s

Re: [PATCH v5 0/4] SFH: Add Support for AMD Sensor Fusion Hub

2020-07-28 Thread Richard Neumann
Hi, Am Dienstag, den 28.07.2020, 16:58 +0200 schrieb Marco Felsch: > Hi, > > On 20-05-29 17:21, Andy Shevchenko wrote: > > On Fri, May 29, 2020 at 4:42 PM Sandeep Singh < > > sandeep.si...@amd.com> wrote: > > > From: Sandeep Singh > > > > > > AMD SFH(Sensor Fusion Hub) is HID based driver.SFH F

Re: [PATCH v4 71/78] drm/vc4: hdmi: Implement finer-grained hooks

2020-07-28 Thread Dave Stevenson
Hi Maxime On Wed, 8 Jul 2020 at 18:44, Maxime Ripard wrote: > > In order to prevent some pixels getting stuck in an unflushable FIFO on > bcm2711, we need to enable the HVS, the pixelvalve (the CRTC) and the HDMI > controller (the encoder) in an intertwined way, and with tight delays. > > However

Re: [PATCH v9 0/4] driver core: add probe error check helper

2020-07-28 Thread Andrzej Hajda
Hi Greg, Apparently the patchset has no more comments. Could you take the patches to your tree? At least 1st and 2nd. Regards Andrzej On 13.07.2020 16:43, Andrzej Hajda wrote: > Hi All, > > Thanks for comments. > > Changes since v8: > - fixed typo in function name, > - removed cocci script (

Re: [PATCH] mm: memcontrol: don't count limit-setting reclaim as memory pressure

2020-07-28 Thread Shakeel Butt
On Tue, Jul 28, 2020 at 6:53 AM Johannes Weiner wrote: > > When an outside process lowers one of the memory limits of a cgroup > (or uses the force_empty knob in cgroup1), direct reclaim is performed > in the context of the write(), in order to directly enforce the new > limit and have it being me

Re: [PATCH v4 09/10] Powerpc/smp: Create coregroup domain

2020-07-28 Thread Valentin Schneider
Hi, On 27/07/20 06:32, Srikar Dronamraju wrote: > Add percpu coregroup maps and masks to create coregroup domain. > If a coregroup doesn't exist, the coregroup domain will be degenerated > in favour of SMT/CACHE domain. > So there's at least one arm64 platform out there with the same "pairs of

Re: [PATCH v4 70/78] drm/vc4: hdmi: Always recenter the HDMI FIFO

2020-07-28 Thread Dave Stevenson
Hi Maxime On Wed, 8 Jul 2020 at 18:44, Maxime Ripard wrote: > > In order to avoid a pixel getting stuck in an unflushable FIFO, we need to > recenter the FIFO every time we're doing a modeset and not only if we're > connected to an HDMI monitor. > > Signed-off-by: Maxime Ripard Reviewed-by: Dav

[PATCH 4.19 00/85] 4.19.135-rc2 review

2020-07-28 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.19.135 release. There are 85 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Thu, 30 Jul 2020 15:01:05 +. Anything re

Re: [PATCH v4 69/78] drm/vc4: hdmi: Remove register dumps in enable

2020-07-28 Thread Dave Stevenson
Hi Maxime On Wed, 8 Jul 2020 at 18:44, Maxime Ripard wrote: > > The current code has some logic, disabled by default, to dump the register > setup in the HDMI controller. > > However, since we're going to split those functions in multiple, shorter, > functions that only make sense where they are

Re: [PATCH v4 68/78] drm/vc4: hdmi: Deal with multiple ALSA cards

2020-07-28 Thread Dave Stevenson
Hi Maxime On Wed, 8 Jul 2020 at 18:44, Maxime Ripard wrote: > > The HDMI driver was registering a single ALSA card so far with the name > vc4-hdmi. > > Obviously, this is not going to work anymore when will have multiple HDMI s/will/we > controllers since we will end up trying to register two f

Re: [External] [PATCH 4.19 76/86] mm: memcg/slab: fix memory leak at non-root kmem_cache destroy

2020-07-28 Thread Greg Kroah-Hartman
On Tue, Jul 28, 2020 at 08:56:41PM +0800, Muchun Song wrote: > On Mon, Jul 27, 2020 at 10:12 PM Greg Kroah-Hartman > wrote: > > > > From: Muchun Song > > > > commit d38a2b7a9c939e6d7329ab92b96559ccebf7b135 upstream. > > > > If the kmem_cache refcount is greater than one, we should not mark the >

Re: [PATCH v5 0/4] SFH: Add Support for AMD Sensor Fusion Hub

2020-07-28 Thread Marco Felsch
Hi, On 20-05-29 17:21, Andy Shevchenko wrote: > On Fri, May 29, 2020 at 4:42 PM Sandeep Singh wrote: > > > > From: Sandeep Singh > > > > AMD SFH(Sensor Fusion Hub) is HID based driver.SFH FW > > is part of MP2 processor (MP2 which is an ARM® Cortex-M4 > > core based co-processor to x86) and it r

Re: [PATCH v1 1/4] [RFC] fs/trampfd: Implement the trampoline file descriptor API

2020-07-28 Thread Madhavan T. Venkataraman
Thanks. See inline.. On 7/28/20 9:50 AM, Oleg Nesterov wrote: > On 07/28, madve...@linux.microsoft.com wrote: >> +bool is_trampfd_vma(struct vm_area_struct *vma) >> +{ >> +struct file *file = vma->vm_file; >> + >> +if (!file) >> +return false; >> +return !strcmp(file->f

Re: [PATCH v4 63/78] drm/vc4: hdmi: Use clk_set_min_rate instead

2020-07-28 Thread Dave Stevenson
Hi Maxime On Wed, 8 Jul 2020 at 18:44, Maxime Ripard wrote: > > The HSM clock needs to be running at 101% the pixel clock of the HDMI > controller, however it's shared between the two HDMI controllers, which > means that if the resolutions are different between the two HDMI > controllers, and the

Re: [PATCH v4 62/78] drm/vc4: hdmi: Adjust HSM clock rate depending on pixel rate

2020-07-28 Thread Dave Stevenson
Hi Maxime On Wed, 8 Jul 2020 at 18:44, Maxime Ripard wrote: > > The HSM clock needs to be setup at around 101% of the pixel rate. This > was done previously by setting the clock rate to 163.7MHz at probe time and > only check in mode_valid whether the mode pixel clock was under the pixel > clock

Re: [PATCH] media: usbvision: fixed coding style

2020-07-28 Thread Greg KH
On Tue, Jul 28, 2020 at 08:00:04PM +0530, Dhiraj Sharma wrote: > As per eudyptula challenge task 10 I had to fix coding styles. That is not needed in a changelog text. > Thus I > used checkpatch.pl script and fixed a chunk of warnings and few errors. Neither is this, please be specific about wha

Re: [PATCH] media: usbvision: fixed coding style

2020-07-28 Thread Greg KH
On Tue, Jul 28, 2020 at 08:00:04PM +0530, Dhiraj Sharma wrote: > As per eudyptula challenge task 10 I had to fix coding styles. Thus I > used checkpatch.pl script and fixed a chunk of warnings and few errors. > > Signed-off-by: Dhiraj Sharma > --- > .../staging/media/usbvision/usbvision-video.c

Re: [PATCH v17 17/21] mm/lru: replace pgdat lru_lock with lruvec lock

2020-07-28 Thread Alexander Duyck
On Tue, Jul 28, 2020 at 4:20 AM Alex Shi wrote: > > > > 在 2020/7/28 上午7:34, Alexander Duyck 写道: > >> @@ -1876,6 +1876,12 @@ static unsigned noinline_for_stack > >> move_pages_to_lru(struct lruvec *lruvec, > >> * > >> list_add(&page->lru,) >

Re: [PATCH] m68k/amiga: Add missing platform_device_unregister() call in amiga_init_devices()

2020-07-28 Thread Markus Elfring
> Add the missing platform_device_unregister() before return > from amiga_init_devices() in the error handling case. Will the tag “Fixes” become helpful for the commit message? … > +++ b/arch/m68k/amiga/platform.c > @@ -188,8 +188,10 @@ static int __init amiga_init_devices(void) >

Re: linux-next: Tree for Jul 28 (drivers/net/usb/)

2020-07-28 Thread Randy Dunlap
On 7/28/20 4:57 AM, Stephen Rothwell wrote: > Hi all, > > Changes since 20200727: > on i386: CONFIG_USB_USBNET=y # CONFIG_USB_NET_AX8817X is not set CONFIG_USB_NET_AX88179_178A=y CONFIG_USB_NET_CDCETHER=m CONFIG_USB_NET_CDC_EEM=m CONFIG_USB_NET_CDC_NCM=y CONFIG_USB_NET_HUAWEI_CDC_NCM=m CONFIG_U

Re: [PATCH v2] binder: Prevent context manager from incrementing ref 0

2020-07-28 Thread Jann Horn
On Tue, Jul 28, 2020 at 3:50 PM Martijn Coenen wrote: > On Mon, Jul 27, 2020 at 2:04 PM Jann Horn wrote: > > - task B opens /dev/binder once, creating binder_proc instance P3 > > - P3 calls P2 (via magic handle 0) with (void*)1 as argument (two-way > >transaction) > > - P2 receives the han

Re: [PATCH v1 1/4] [RFC] fs/trampfd: Implement the trampoline file descriptor API

2020-07-28 Thread Oleg Nesterov
On 07/28, madve...@linux.microsoft.com wrote: > > +bool is_trampfd_vma(struct vm_area_struct *vma) > +{ > + struct file *file = vma->vm_file; > + > + if (!file) > + return false; > + return !strcmp(file->f_path.dentry->d_name.name, trampfd_name); Hmm, this looks obvious

Re: [PATCH v2] soc: qcom: rpmh-rsc: Sleep waiting for tcs slots to be free

2020-07-28 Thread Doug Anderson
Hi, On Sun, Jul 26, 2020 at 2:44 AM Stanimir Varbanov wrote: > > Hi Stephen, > > On 7/25/20 12:17 AM, Stephen Boyd wrote: > > From: Stephen Boyd > > > > The busy loop in rpmh_rsc_send_data() is written with the assumption > > that the udelay will be preempted by the tcs_tx_done() irq handler whe

Re: [PATCH v4 61/78] drm/vc4: hdmi: Rename drm_encoder pointer in mode_valid

2020-07-28 Thread Dave Stevenson
Hi Maxime On Wed, 8 Jul 2020 at 18:44, Maxime Ripard wrote: > > The mode_valid hook on the encoder uses a pointer to a drm_encoder called > crtc, which is pretty confusing. Let's rename it to encoder to make it > clear what it is. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson >

Re: [PATCH 1/3] tools build feature: Use CC and CXX from parent

2020-07-28 Thread Jiri Olsa
On Sun, Jul 26, 2020 at 09:08:14PM -0700, Thomas Hebb wrote: > commit c8c188679ccf ("tools build: Use the same CC for feature detection > and actual build") changed these assignments from unconditional (:=) to > conditional (?=) so that they wouldn't clobber values from the > environment. However,

Re: [PATCH] [net/ipv6] ip6_output: Add ipv6_pinfo null check

2020-07-28 Thread Eric Dumazet
On 7/27/20 8:12 PM, Cong Wang wrote: > On Mon, Jul 27, 2020 at 7:14 PM Gaurav Singh wrote: >> >> Add return to fix build issue. Haven't reproduced this issue at >> my end. >> >> My hypothesis is this: In function: ip6_xmit(), we have >> const struct ipv6_pinfo *np = inet6_sk(sk); which returns

Re: [PATCH 1/3] watchdog: mtk_wdt: remove mt8xxx-resets.h

2020-07-28 Thread Guenter Roeck
On 7/28/20 3:42 AM, Crystal Guo wrote: > mt8xxx-resets.h actually just used to define TOPRGU_SW_RST_NUM. > Instead of resubmit the mt8xxx-reset.h for a new IC, get the number > of reset bits from dtsi is more easier to maintain. > > Signed-off-by: Crystal Guo > --- > drivers/watchdog/mtk_wdt.c |

WARNING: suspicious RCU usage - while installing a VM on a CPU listed under nohz_full

2020-07-28 Thread Nitesh Narayan Lal
Hi, I have recently come across an RCU trace with the 5.8-rc7 kernel that has the debug configs enabled while installing a VM on a CPU that is listed under nohz_full. Based on some of the initial debugging, my impression is that the issue is triggered because of the fastpath that is meant to opti

[PATCH 3/3] KVM: selftests: add KVM_MEM_PCI_HOLE test

2020-07-28 Thread Vitaly Kuznetsov
Test the newly introduced KVM_MEM_PCI_HOLE memslots: - Reads from all pages return '0xff' - Writes to all pages cause KVM_EXIT_MMIO Signed-off-by: Vitaly Kuznetsov --- tools/testing/selftests/kvm/Makefile | 1 + .../testing/selftests/kvm/include/kvm_util.h | 1 + tools/testing/self

[PATCH 1/3] KVM: x86: move kvm_vcpu_gfn_to_memslot() out of try_async_pf()

2020-07-28 Thread Vitaly Kuznetsov
No functional change intended. Slot flags will need to be analyzed prior to try_async_pf() when KVM_MEM_PCI_HOLE is implemented. Signed-off-by: Vitaly Kuznetsov --- arch/x86/kvm/mmu/mmu.c | 14 -- arch/x86/kvm/mmu/paging_tmpl.h | 7 +-- 2 files changed, 13 insertions(+),

[PATCH 0/3] KVM: x86: KVM_MEM_PCI_HOLE memory

2020-07-28 Thread Vitaly Kuznetsov
This is a continuation of "[PATCH RFC 0/5] KVM: x86: KVM_MEM_ALLONES memory" work: https://lore.kernel.org/kvm/20200514180540.52407-1-vkuzn...@redhat.com/ and pairs with Julia's "x86/PCI: Use MMCONFIG by default for KVM guests": https://lore.kernel.org/linux-pci/20200722001513.298315-1-jus...@redh

[PATCH 2/3] KVM: x86: introduce KVM_MEM_PCI_HOLE memory

2020-07-28 Thread Vitaly Kuznetsov
PCIe config space can (depending on the configuration) be quite big but usually is sparsely populated. Guest may scan it by accessing individual device's page which, when device is missing, is supposed to have 'pci hole' semantics: reads return '0xff' and writes get discarded. Compared to the alrea

RE: [PATCH] PCI: Mark AMD Navi10 GPU rev 0x00 ATS as broken

2020-07-28 Thread Deucher, Alexander
[AMD Public Use] > -Original Message- > From: Kai-Heng Feng > Sent: Tuesday, July 28, 2020 6:46 AM > To: bhelg...@google.com > Cc: Kai-Heng Feng ; Deucher, Alexander > ; open list:PCI SUBSYSTEM p...@vger.kernel.org>; open list > Subject: [PATCH] PCI: Mark AMD Navi10 GPU rev 0x00 ATS as

Re: [External] Re: [PATCH 4.19 00/86] 4.19.135-rc1 review

2020-07-28 Thread Naresh Kamboju
On Tue, 28 Jul 2020 at 18:33, Muchun Song wrote: > > Thanks for your test. I have reviewed the patch: > > [PATCH 4.19 76/86] mm: memcg/slab: fix memory leak at non-root > kmem_cache destroy > > There is a backport problem and I have pointed out the problem in that email. Thanks for your suggestio

[PATCH] ext4: check superblock mapped prior to get write access

2020-07-28 Thread Xianting Tian
One crash issue happened when directly down the network interface, which nbd device is connected to. The kernel version is kernel 4.14.0-115. According to the debug log and call trace, the buffer of ext4 superblock already unmapped after the network of nbd device down. But the code continue to run

Re: [PATCH 1/2] watchdog: imx7ulp: Strictly follow the sequence for wdog operations

2020-07-28 Thread Guenter Roeck
On 7/27/20 11:42 PM, Anson Huang wrote: > According to reference manual, the i.MX7ULP WDOG's operations should > follow below sequence: > > 1. disable global interrupts; > 2. unlock the wdog and wait unlock bit set; > 3. reconfigure the wdog and wait for reconfiguration bit set; > 4. enabel global

Re: [PATCH] media: atomisp-mt9m114: replace fixed function names

2020-07-28 Thread Juan Antonio Aldea-Armenteros
No I didn't intent to. I have sent another version. Thank you very much, Dan. Juan Antonio Aldea-Armenteros

Re: [RFC PATCH 0/5] madvise MADV_DOEXEC

2020-07-28 Thread Steven Sistare
On 7/28/2020 10:23 AM, Andy Lutomirski wrote: >> On Jul 27, 2020, at 10:02 AM, Anthony Yznaga >> wrote: >> >> This patchset adds support for preserving an anonymous memory range across >> exec(3) using a new madvise MADV_DOEXEC argument. The primary benefit for >> sharing memory in this manner,

Re: (EXT) Re: [PATCH] arm: dts: imx7: add QSPI

2020-07-28 Thread Marco Felsch
On 20-07-28 16:05, Matthias Schiffer wrote: > On Tue, 2020-07-28 at 15:51 +0200, Marco Felsch wrote: > > Hi Matthias, > > > > thanks for the patch. > > > > On 20-07-28 13:28, Matthias Schiffer wrote: > > > In preparation for an update of the TQ-Systems TQMa7x/MBa7x DTS, > > > add the > > > QSPI c

[PATCH] media: usbvision: fixed coding style

2020-07-28 Thread Dhiraj Sharma
As per eudyptula challenge task 10 I had to fix coding styles. Thus I used checkpatch.pl script and fixed a chunk of warnings and few errors. Signed-off-by: Dhiraj Sharma --- .../staging/media/usbvision/usbvision-video.c | 91 +++ 1 file changed, 52 insertions(+), 39 deletions(-)

Re: [PATCH -next] ARM: zx: remove redundant dev_err call in zx296702_pd_probe()

2020-07-28 Thread Jun Nie
Qinglang Miao 于2020年7月28日周二 上午10:24写道: > > There is a error message within devm_ioremap_resource > already, so remove the dev_err call to avoid redundant > error message. > > Signed-off-by: Qinglang Miao > --- > arch/arm/mach-zx/zx296702-pm-domain.c | 1 - > 1 file changed, 1 deletion(-) > Revie

Re: [PATCH 02/10] block: virtio-blk: check logical block size

2020-07-28 Thread Maxim Levitsky
On Wed, 2020-07-22 at 12:11 +0300, Maxim Levitsky wrote: > On Tue, 2020-07-21 at 22:55 -0400, Martin K. Petersen wrote: > > Christoph, > > > > > Hmm, I wonder if we should simply add the check and warning to > > > blk_queue_logical_block_size and add an error in that case. Then > > > drivers only

Re: [PATCH v2 0/3] media: vimc: Allow multiple capture devices to use the same sensor

2020-07-28 Thread Kaaira Gupta
On Tue, Jul 28, 2020 at 04:00:46PM +0200, Dafna Hirschfeld wrote: > > > On 28.07.20 14:07, Dafna Hirschfeld wrote: > > Hi > > > > On 28.07.20 13:39, Kaaira Gupta wrote: > > > On Mon, Jul 27, 2020 at 02:54:30PM -0300, Helen Koike wrote: > > > > Hi, > > > > > > > > On 7/27/20 11:31 AM, Kieran Bin

Re: [PATCH 1/2] ima: Pre-parse the list of keyrings in a KEY_CHECK rule

2020-07-28 Thread Lakshmi Ramasubramanian
On 7/27/20 7:08 AM, Tyler Hicks wrote: The ima_keyrings buffer was used as a work buffer for strsep()-based parsing of the "keyrings=" option of an IMA policy rule. This parsing was re-performed each time an asymmetric key was added to a kernel keyring for each loaded policy rule that contained a

Re: [PATCH v2 0/8] x86/kaslr: Cleanup and small bugfixes

2020-07-28 Thread Arvind Sankar
On Tue, Jul 28, 2020 at 01:06:17PM +0200, Ingo Molnar wrote: > > * Arvind Sankar wrote: > > > The first 7 patches are cleanup and minor bugfixes on the x86 KASLR > > code. > > > > The last one is a bit of an RFC. The memory regions used for KASLR are > > stored as 64-bit even on a 32-bit kernel

Re: [PATCH 14/15] x86/numa: remove redundant iteration over memblock.reserved

2020-07-28 Thread Baoquan He
On 07/28/20 at 05:15pm, Mike Rapoport wrote: > On Tue, Jul 28, 2020 at 07:02:54PM +0800, Baoquan He wrote: > > On 07/28/20 at 08:11am, Mike Rapoport wrote: > > > From: Mike Rapoport > > > > > > numa_clear_kernel_node_hotplug() function first traverses numa_meminfo > > > regions to set node ID in

Re: [RFC PATCH 0/5] madvise MADV_DOEXEC

2020-07-28 Thread Andy Lutomirski
> On Jul 27, 2020, at 10:02 AM, Anthony Yznaga > wrote: > > This patchset adds support for preserving an anonymous memory range across > exec(3) using a new madvise MADV_DOEXEC argument. The primary benefit for > sharing memory in this manner, as opposed to re-attaching to a named shared >

[Linux-kernel-mentees] [PATCH] block/floppy: Prevent kernel-infoleak in raw_cmd_copyout()

2020-07-28 Thread Peilin Ye
raw_cmd_copyout() is potentially copying uninitialized kernel stack memory since it is initializing `cmd` by assignment, which may cause the compiler to leave uninitialized holes in this structure. Fix it by using memcpy() instead. Cc: sta...@vger.kernel.org Fixes: 2145e15e0557 ("floppy: don't wri

Re: [PATCH v17 03/21] mm/compaction: correct the comments of compact_defer_shift

2020-07-28 Thread Alexander Duyck
On Tue, Jul 28, 2020 at 4:59 AM Alex Shi wrote: > > > >> * Compaction is deferred when compaction fails to result in a page > >> - * allocation success. 1 << compact_defer_limit compactions are skipped up > >> + * allocation success. compact_defer_shift++, compactions are skipped up > >> * to

Re: [External] Re: [PATCH v4] mm/hugetlb: add mempolicy check in the reservation routine

2020-07-28 Thread Muchun Song
On Tue, Jul 28, 2020 at 9:25 PM Baoquan He wrote: > > Hi Muchun, > > On 07/28/20 at 11:49am, Muchun Song wrote: > > In the reservation routine, we only check whether the cpuset meets > > the memory allocation requirements. But we ignore the mempolicy of > > MPOL_BIND case. If someone mmap hugetlb

Re: [PATCH 14/15] x86/numa: remove redundant iteration over memblock.reserved

2020-07-28 Thread Mike Rapoport
On Tue, Jul 28, 2020 at 07:02:54PM +0800, Baoquan He wrote: > On 07/28/20 at 08:11am, Mike Rapoport wrote: > > From: Mike Rapoport > > > > numa_clear_kernel_node_hotplug() function first traverses numa_meminfo > > regions to set node ID in memblock.reserved and than traverses > > memblock.reserve

Re: [PATCH 2/2] ima: Fail rule parsing when asymmetric key measurement isn't supportable

2020-07-28 Thread Lakshmi Ramasubramanian
On 7/27/20 7:08 AM, Tyler Hicks wrote: Measuring keys is currently only supported for asymmetric keys. In the future, this might change. For now, the "func=KEY_CHECK" and "keyrings=" options are only appropriate when CONFIG_IMA_MEASURE_ASYMMETRIC_KEYS is enabled. Make this clear at policy load s

Re: [PATCH v3] net: ethernet: mtk_eth_soc: fix mtu warning

2020-07-28 Thread Andrew Lunn
On Tue, Jul 28, 2020 at 02:27:43PM +0200, Frank Wunderlich wrote: > From: Landen Chao > > in recent Kernel-Versions there are warnings about incorrect MTU-Size > like these: > > eth0: mtu greater than device maximum > mtk_soc_eth 1b10.ethernet eth0: error -22 setting MTU to include DSA > ov

Re: [PATCH] block: Use non _rcu version of list functions for tag_set_list

2020-07-28 Thread Hannes Reinecke
On 7/28/20 3:29 PM, Daniel Wagner wrote: tag_set_list is only accessed under the tag_set_lock lock. There is no need for using the _rcu list functions. The _rcu list function were introduced to allow read access to the tag_set_list protected under RCU, see 705cda97ee3a ("blk-mq: Make it safe to

Re: [PATCH] mmc: tegra: Add Runtime PM callbacks

2020-07-28 Thread Jon Hunter
On 27/07/2020 13:47, Aniruddha Rao wrote: > Add runtime suspend/resume callbacks to save power > when the bus is not in use. > In runtime suspend > - Turn off the SDMMC host CAR clock. > - Turn off the trimmer/DLL circuit(BG) power supply(VREG). > - Turn off the SDMMC host internal clocks. > > R

[PATCH v4 3/4] dt-bindings: power: Add BQ28z610 compatible

2020-07-28 Thread Dan Murphy
Add the Texas Instruments bq28z610 battery monitor to the bq27xxx binding. Acked-by: Rob Herring Signed-off-by: Dan Murphy --- Documentation/devicetree/bindings/power/supply/bq27xxx.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/power/supply/bq27xxx.y

[PATCH v4 4/4] power: supply: bq27xxx_battery: Add the BQ28z610 Battery monitor

2020-07-28 Thread Dan Murphy
Add the Texas Instruments BQ28z610 battery monitor. The register address map is laid out the same as compared to other devices within the file. The battery status register bits are similar to the BQ27561 but they are different compared to other fuel gauge devices within this file. Signed-off-by:

[PATCH v4 2/4] power: supply: bq27xxx_battery: Add the BQ27561 Battery monitor

2020-07-28 Thread Dan Murphy
Add the Texas Instruments BQ27561 battery monitor. The register address map is laid out the same as compared to other devices within the file. The battery status register has differing bits to determine if the battery is full, discharging or dead. Signed-off-by: Dan Murphy --- drivers/power/sup

[PATCH v4 1/4] dt-bindings: power: Add BQ27561 compatible

2020-07-28 Thread Dan Murphy
Add the Texas Instruments bq27561 battery monitor to the bq27xxx binding. Acked-by: Rob Herring Signed-off-by: Dan Murphy --- Documentation/devicetree/bindings/power/supply/bq27xxx.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/power/supply/bq27xxx.ya

Re: [RESEND PATCH v5 08/11] ppc64/kexec_file: setup backup region for kdump kernel

2020-07-28 Thread Michael Ellerman
Hari Bathini writes: > diff --git a/arch/powerpc/kexec/file_load_64.c > b/arch/powerpc/kexec/file_load_64.c > index a5c1442590b2..88408b17a7f6 100644 > --- a/arch/powerpc/kexec/file_load_64.c > +++ b/arch/powerpc/kexec/file_load_64.c > @@ -697,6 +699,69 @@ static int update_usable_mem_fdt(void *f

[PATCH v1] scsi: ufs: Fix possible infinite loop in ufshcd_hold

2020-07-28 Thread Stanley Chu
In ufshcd_suspend(), after clk-gating is suspended and link is set as Hibern8 state, ufshcd_hold() is still possibly invoked before ufshcd_suspend() returns. For example, MediaTek's suspend vops may issue UIC commands which would call ufshcd_hold() during the command issuing flow. Now if UFSHCD_CA

Re: [PATCH v1 1/6] mm/page_alloc: tweak comments in has_unmovable_pages()

2020-07-28 Thread David Hildenbrand
On 28.07.20 15:48, Baoquan He wrote: > On 06/30/20 at 04:26pm, David Hildenbrand wrote: >> Let's move the split comment regarding bootmem allocations and memory >> holes, especially in the context of ZONE_MOVABLE, to the PageReserved() >> check. >> >> Cc: Andrew Morton >> Cc: Michal Hocko >> Cc:

Re: [PATCH] mm: memcontrol: restore proper dirty throttling when memory.high changes

2020-07-28 Thread Chris Down
Johannes Weiner writes: Commit 8c8c383c04f6 ("mm: memcontrol: try harder to set a new memory.high") inadvertently removed a callback to recalculate the writeback cache size in light of a newly configured memory.high limit. Without letting the writeback cache know about a potentially heavily redu

Re: [RFC PATCH 5/5] mm: introduce MADV_DOEXEC

2020-07-28 Thread Steven Sistare
On 7/28/2020 9:22 AM, Kirill Tkhai wrote: > On 27.07.2020 20:11, Anthony Yznaga wrote: >> madvise MADV_DOEXEC preserves a memory range across exec. Initially >> only supported for non-executable, non-stack, anonymous memory. >> MADV_DONTEXEC reverts the effect of a previous MADV_DOXEXEC call and >

Re: (EXT) Re: [PATCH] arm: dts: imx7: add QSPI

2020-07-28 Thread Matthias Schiffer
On Tue, 2020-07-28 at 15:51 +0200, Marco Felsch wrote: > Hi Matthias, > > thanks for the patch. > > On 20-07-28 13:28, Matthias Schiffer wrote: > > In preparation for an update of the TQ-Systems TQMa7x/MBa7x DTS, > > add the > > QSPI controller to imx7s.dtsi. > > > > Based-on-patch-by: Han Xu >

Re: [PATCH v3 2/4] power: supply: bq27xxx_battery: Add the BQ27561 Battery monitor

2020-07-28 Thread Dan Murphy
Sebastian On 7/27/20 5:36 PM, Sebastian Reichel wrote: Hi, On Tue, Jul 21, 2020 at 11:32:04AM -0500, Dan Murphy wrote: Add the Texas Instruments BQ27561 battery monitor. The register address map is laid out the same as compared to other devices within the file. The battery status register has

Re: [PATCH V4] Softirq:avoid large sched delay from the pending softirqs

2020-07-28 Thread jun qian
On Mon, Jul 27, 2020 at 11:41 PM Thomas Gleixner wrote: > > Qian, > > qianjun.ker...@gmail.com writes: > > /* > > * We restart softirq processing for at most MAX_SOFTIRQ_RESTART times, > > * but break the loop if need_resched() is set or after 2 ms. > > - * The MAX_SOFTIRQ_TIME provides a nic

Re: [PATCH V7 08/14] perf/x86/intel: Generic support for hardware TopDown metrics

2020-07-28 Thread Liang, Kan
On 7/28/2020 9:44 AM, pet...@infradead.org wrote: On Tue, Jul 28, 2020 at 09:28:39AM -0400, Liang, Kan wrote: On 7/28/2020 9:09 AM, Peter Zijlstra wrote: On Fri, Jul 24, 2020 at 03:10:52PM -0400, Liang, Kan wrote: diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/intel/core.c i

Re: [PATCH v2 0/3] media: vimc: Allow multiple capture devices to use the same sensor

2020-07-28 Thread Dafna Hirschfeld
On 28.07.20 14:07, Dafna Hirschfeld wrote: Hi On 28.07.20 13:39, Kaaira Gupta wrote: On Mon, Jul 27, 2020 at 02:54:30PM -0300, Helen Koike wrote: Hi, On 7/27/20 11:31 AM, Kieran Bingham wrote: Hi all, +Dafna for the thread discussion, as she's missed from the to/cc list. On 24/07/2020

Re: [PATCH net-next RFC 01/13] devlink: Add reload level option to devlink reload command

2020-07-28 Thread Jiri Pirko
Tue, Jul 28, 2020 at 02:58:02AM CEST, k...@kernel.org wrote: >On Mon, 27 Jul 2020 14:02:21 +0300 Moshe Shemesh wrote: >> Add devlink reload level to allow the user to request a specific reload >> level. The level parameter is optional, if not specified then driver's >> default reload level is used

Re: [Linux-kernel-mentees] [PATCH v3] media/v4l2-core: Fix kernel-infoleak in video_put_user()

2020-07-28 Thread Arnd Bergmann
On Tue, Jul 28, 2020 at 3:06 PM Dan Carpenter wrote: > > On Tue, Jul 28, 2020 at 02:22:29PM +0200, Linus Walleij wrote: > > On Mon, Jul 27, 2020 at 3:17 PM Dan Carpenter > > wrote: > > > > > Here are my latest warnings on linux-next from Friday. > > > > Thanks for sharing this Dan, very interest

Re: [PATCH v1 2/6] mm/page_isolation: don't dump_page(NULL) in set_migratetype_isolate()

2020-07-28 Thread Baoquan He
On 06/30/20 at 04:26pm, David Hildenbrand wrote: > Right now, if we have two isolations racing, we might trigger the > WARN_ON_ONCE() and to dump_page(NULL), dereferencing NULL. Let's just > return directly. > > In the future, we might want to report -EAGAIN to the caller instead, as > this could

Re: [PATCH] xen/balloon: add header guard

2020-07-28 Thread Boris Ostrovsky
On 7/28/20 7:42 AM, Roger Pau Monne wrote: > In order to protect against the header being included multiple times > on the same compilation unit. > > Signed-off-by: Roger Pau Monné Reviewed-by: Boris Ostrovsky

Re: [PATCH v1 2/2] Show /proc/self/net only for CAP_NET_ADMIN

2020-07-28 Thread Alexey Gladkov
On Mon, Jul 27, 2020 at 11:29:36AM -0500, Eric W. Biederman wrote: > Alexey Gladkov writes: > > > Show /proc/self/net only for CAP_NET_ADMIN if procfs is mounted with > > subset=pid option in user namespace. This is done to avoid possible > > information leakage. > > > > Signed-off-by: Alexey Gla

[PATCH] mm: memcontrol: restore proper dirty throttling when memory.high changes

2020-07-28 Thread Johannes Weiner
Commit 8c8c383c04f6 ("mm: memcontrol: try harder to set a new memory.high") inadvertently removed a callback to recalculate the writeback cache size in light of a newly configured memory.high limit. Without letting the writeback cache know about a potentially heavily reduced limit, it may permit t

[PATCH] mm: memcontrol: don't count limit-setting reclaim as memory pressure

2020-07-28 Thread Johannes Weiner
When an outside process lowers one of the memory limits of a cgroup (or uses the force_empty knob in cgroup1), direct reclaim is performed in the context of the write(), in order to directly enforce the new limit and have it being met by the time the write() returns. Currently, this reclaim activi

Re: [PATCH] arm: dts: imx7: add QSPI

2020-07-28 Thread Marco Felsch
Hi Matthias, thanks for the patch. On 20-07-28 13:28, Matthias Schiffer wrote: > In preparation for an update of the TQ-Systems TQMa7x/MBa7x DTS, add the > QSPI controller to imx7s.dtsi. > > Based-on-patch-by: Han Xu > Signed-off-by: Matthias Schiffer > --- > arch/arm/boot/dts/imx7s.dtsi | 13

Re: [PATCH v2] binder: Prevent context manager from incrementing ref 0

2020-07-28 Thread Martijn Coenen
Thanks Jann, the change LGTM, one question on the repro scenario that wasn't immediately obvious to me: On Mon, Jul 27, 2020 at 2:04 PM Jann Horn wrote: > - task B opens /dev/binder once, creating binder_proc instance P3 > - P3 calls P2 (via magic handle 0) with (void*)1 as argument (two-way >

Re: [Ksummit-discuss] Linux Foundation Technical Advisory Board Elections -- voting procedures

2020-07-28 Thread Daniel Vetter
On Tue, Jul 28, 2020 at 12:44 AM Bird, Tim wrote: > > > -Original Message- > > From: Laura Abbott > > > > On behalf of the Linux Foundation Technical Advisory Board (TAB), I'd > > like to announce the voting procedures for the 2020 TAB elections. > > The pool of eligible voters will consi

Re: [PATCH v1 1/6] mm/page_alloc: tweak comments in has_unmovable_pages()

2020-07-28 Thread Baoquan He
On 06/30/20 at 04:26pm, David Hildenbrand wrote: > Let's move the split comment regarding bootmem allocations and memory > holes, especially in the context of ZONE_MOVABLE, to the PageReserved() > check. > > Cc: Andrew Morton > Cc: Michal Hocko > Cc: Michael S. Tsirkin > Signed-off-by: David Hi

Re: [RESEND PATCH v5 07/11] ppc64/kexec_file: enable early kernel's OPAL calls

2020-07-28 Thread Michael Ellerman
Hari Bathini writes: > Kernel built with CONFIG_PPC_EARLY_DEBUG_OPAL enabled expects r8 & r9 > to be filled with OPAL base & entry addresses respectively. Setting > these registers allows the kernel to perform OPAL calls before the > device tree is parsed. I'm not convinced we want to do this. I

Re: [PATCH v3 1/5] of_address: Add bus type match for pci ranges parser

2020-07-28 Thread Rob Herring
On Tue, Jul 28, 2020 at 2:39 AM Thomas Bogendoerfer wrote: > > On Mon, Jul 27, 2020 at 11:50:14AM -0600, Rob Herring wrote: > > On Fri, Jul 24, 2020 at 7:45 PM Jiaxun Yang wrote: > > > > > > So the parser can be used to parse range property of ISA bus. > > > > > > As they're all using PCI-like me

Re: [PATCH V7 08/14] perf/x86/intel: Generic support for hardware TopDown metrics

2020-07-28 Thread peterz
On Tue, Jul 28, 2020 at 09:28:39AM -0400, Liang, Kan wrote: > > > On 7/28/2020 9:09 AM, Peter Zijlstra wrote: > > On Fri, Jul 24, 2020 at 03:10:52PM -0400, Liang, Kan wrote: > > > > > diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/intel/core.c > > > index 6cb079e0c9d9..010ac74afc09

Re: [RESEND PATCH v5 06/11] ppc64/kexec_file: restrict memory usage of kdump kernel

2020-07-28 Thread Michael Ellerman
Hari Bathini writes: > diff --git a/arch/powerpc/kexec/file_load_64.c > b/arch/powerpc/kexec/file_load_64.c > index 2df6f4273ddd..8df085a22fd7 100644 > --- a/arch/powerpc/kexec/file_load_64.c > +++ b/arch/powerpc/kexec/file_load_64.c > @@ -17,9 +17,21 @@ > #include > #include > #include > +

Re: [PATCH V3 vhost next 10/10] vdpa/mlx5: Add VDPA driver for supported mlx5 devices

2020-07-28 Thread kernel test robot
Hi Eli, Thank you for the patch! Yet something to improve: [auto build test ERROR on next-20200727] url: https://github.com/0day-ci/linux/commits/Eli-Cohen/VDPA-support-for-Mellanox-ConnectX-devices/20200728-140938 base:e9a523ff8f76de0768857f02ea76437d3b39d151 config: mips-allmodconfig

[PATCH v2 3/3] dt-bindings: timer: Add compatible for Mediatek MT8192

2020-07-28 Thread Seiya Wang
This commit adds dt-binding documentation of timer for Mediatek MT8192 SoC Platform. Change-Id: If932e44f116a4a8abd6c2400987685177eb1d1f8 Signed-off-by: Seiya Wang --- Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation

[PATCH v2 0/3] Add basic node support for Mediatek MT8192 SoC

2020-07-28 Thread Seiya Wang
MT8192 is a SoC based on 64bit ARMv8 architecture. It contains 4 CA55 and 4 CA76 cores. MT8192 share many HW IP with MT65xx series. This patchset was tested on MT8192 evaluation board and use correct clock to she ll. Based on v5.8-rc1 Change in v2: 1. Remove mt8192-power.h from mt8192.dtsi which

[PATCH] gpiolib: of: reset name variable in of_gpiochip_add_hog

2020-07-28 Thread trix
From: Tom Rix Clang static analysis reports this error gpiolib-of.c:664:9: warning: 2nd function call argument is an uninitialized value [core.CallAndMessage] ret = gpiod_hog(desc, name, lflags, dflags); name is sometimes set by of_parse_own_gpio name is always used by gpiod_hog So i

Re: [RFC PATCH 3/5] mm: introduce VM_EXEC_KEEP

2020-07-28 Thread Eric W. Biederman
Anthony Yznaga writes: > A vma with the VM_EXEC_KEEP flag is preserved across exec. For anonymous > vmas only. For safety, overlap with fixed address VMAs created in the new > mm during exec (e.g. the stack and elf load segments) is not permitted and > will cause the exec to fail. > (We are stu

[PATCH v2 2/3] dt-bindings: serial: Add compatible for Mediatek MT8192

2020-07-28 Thread Seiya Wang
This commit adds dt-binding documentation of uart for Mediatek MT8192 SoC Platform. Change-Id: I2189d57755107545d7b82d47f49c510b9bc72fa5 Acked-by: Rob Herring Signed-off-by: Seiya Wang --- Documentation/devicetree/bindings/serial/mtk-uart.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/

[PATCH v2 1/3] arm64: dts: Add Mediatek SoC MT8192 and evaluation board dts and Makefile

2020-07-28 Thread Seiya Wang
Add basic chip support for Mediatek MT8192 Change-Id: I3962ab4873a7bc2d89e0b7478ad73862ee308855 Signed-off-by: Seiya Wang --- arch/arm64/boot/dts/mediatek/Makefile | 1 + arch/arm64/boot/dts/mediatek/mt8192-evb.dts | 29 ++ arch/arm64/boot/dts/mediatek/mt8192.dtsi| 671 +

Re: [RFC PATCH 0/5] madvise MADV_DOEXEC

2020-07-28 Thread Christian Brauner
On Mon, Jul 27, 2020 at 02:00:17PM -0400, Steven Sistare wrote: > On 7/27/2020 1:07 PM, ebied...@xmission.com wrote: > > Anthony Yznaga writes: > > > >> This patchset adds support for preserving an anonymous memory range across > >> exec(3) using a new madvise MADV_DOEXEC argument. The primary b

Re: [PATCH v32 1/6] dt: bindings: lp50xx: Introduce the lp50xx family of RGB drivers

2020-07-28 Thread Dan Murphy
Pavel On 7/22/20 10:31 AM, Dan Murphy wrote: Introduce the bindings for the Texas Instruments LP5036, LP5030, LP5024, LP5018, LP5012 and LP5009 RGB LED device driver. The LP5036/30/24/18/12/9 can control RGB LEDs individually or as part of a control bank group. These devices have the ability to

Re: [PATCH v32 3/6] ARM: defconfig: u8500: Add LP55XX_COMMON config flag

2020-07-28 Thread Dan Murphy
Russel and Linus On 7/22/20 10:31 AM, Dan Murphy wrote: The dependencies for the LP55XX LED drivers have been updated so that the child devices (i.e. LP5521) now depends on the LP55XX_COMMON config flag as opposed to the device selecting the LP55XX_COMMON flag. The LP55XX_COMMON needs to be set

Re: [PATCH net-next] liquidio: Remove unneeded cast from memory allocation

2020-07-28 Thread wanghai (M)
在 2020/7/28 17:11, Joe Perches 写道: On Tue, 2020-07-28 at 16:42 +0800, wanghai (M) wrote: 在 2020/7/25 5:29, Joe Perches 写道: On Fri, 2020-07-24 at 21:00 +0800, Wang Hai wrote: Remove casting the values returned by memory allocation function. Coccinelle emits WARNING: ./drivers/net/ethernet/c

Re: [PATCH v5 5/6] kprobes: Use text_alloc() and text_free()

2020-07-28 Thread Masami Hiramatsu
On Tue, 28 Jul 2020 13:56:43 +0300 Ard Biesheuvel wrote: > On Tue, 28 Jul 2020 at 11:17, Masami Hiramatsu wrote: > > > Masami or Peter should correct me if I am wrong, but it seems to me > > > that the way kprobes uses these pages does not require them to be in > > > relative branching range of

[PATCHv3 20/19] perf metric: Fix runtime metric for powerpc

2020-07-28 Thread Jiri Olsa
Recent code factoring screwed up runtime metrics for powerpc, because we did not treat separate runtime metrics as single metrics, but added them as referenced ones. Fixing this by zero-ing parent metric object for __add_metric call. Also there's no need to pass metric object to resolve_metric fun

<    4   5   6   7   8   9   10   11   12   13   >