Re: fs: Expand __fd_install_received() to accept fd

2020-06-22 Thread Kees Cook
On Mon, Jun 22, 2020 at 04:11:30PM +0100, Colin Ian King wrote: > Hi, > > static analysis with Coverity has detected a potential issue with the > following commit: > > commit 8336af9ab8c5d64a309cbf72648054af61548899 > Author: Kees Cook > Date: Wed Jun 10 08:46:58 2020 -0700 > > fs: Expand

Re: [PATCH v1 03/11] soc: mediatek: cmdq: add write_s function

2020-06-22 Thread Matthias Brugger
On 22/06/2020 17:36, Dennis-YC Hsieh wrote: > Hi Matthias, > > thanks for your comment. > > On Mon, 2020-06-22 at 13:07 +0200, Matthias Brugger wrote: >> >> On 21/06/2020 16:18, Dennis YC Hsieh wrote: >>> add write_s function in cmdq helper functions which >>> writes value contains in internal

Re: DMA Engine: Transfer From Userspace

2020-06-22 Thread Vinod Koul
On 22-06-20, 14:01, Thomas Ruf wrote: > > On 22 June 2020 at 06:47 Vinod Koul wrote: > > > > On 21-06-20, 22:36, Federico Vaga wrote: > > > On Sun, Jun 21, 2020 at 12:54:57PM +0530, Vinod Koul wrote: > > > > On 19-06-20, 16:31, Dave Jiang wrote: > > > > > > > > > > > > > > > On 6/19/2020 3:47 P

Re: [PATCH RFC v8 02/11] vhost: use batched get_vq_desc version

2020-06-22 Thread Michael S. Tsirkin
On Fri, Jun 19, 2020 at 08:07:57PM +0200, Eugenio Perez Martin wrote: > On Mon, Jun 15, 2020 at 2:28 PM Eugenio Perez Martin > wrote: > > > > On Thu, Jun 11, 2020 at 5:22 PM Konrad Rzeszutek Wilk > > wrote: > > > > > > On Thu, Jun 11, 2020 at 07:34:19AM -0400, Michael S. Tsirkin wrote: > > > > As

Re: [PATCH 2/7] tty: serial: Add poll_get_irq() to the polling interface

2020-06-22 Thread Daniel Thompson
On Mon, Jun 22, 2020 at 07:56:19PM +0530, Sumit Garg wrote: > From: Daniel Thompson Sumit, to some extent this mail is me yelling at myself two years ago although, in my defence, at the time I choose not to post it because I knew it wasn't right. I'm a bit concerned to see the TODO: comment crit

Re: [PATCH] lib: update DEBUG_SHIRQ docs to match reality

2020-06-22 Thread Wolfram Sang
Hi Andy, > > Maybe your case was like Krzysztof's case where the issue turned out to > > be the extra interrupt on deregistering after a deferred probe? He > > thought it was the initial interrupt but it wasn't. > > Commit > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commi

[PATCH v4] drm/mediatek: check plane visibility in atomic_update

2020-06-22 Thread Hsin-Yi Wang
Disable the plane if it's not visible. Otherwise mtk_ovl_layer_config() would proceed with invalid plane and we may see vblank timeout. Fixes: 119f5173628a ("drm/mediatek: Add DRM Driver for Mediatek SoC MT8173.") Signed-off-by: Hsin-Yi Wang Reviewed-by: Chun-Kuang Hu Reviewed-by: Tomasz Figa -

Re: [PATCH v6 4/5] cpufreq: qcom: Update the bandwidth levels on frequency change

2020-06-22 Thread Matthias Kaehlcke
On Mon, Jun 22, 2020 at 01:46:48PM +0530, Sibi Sankar wrote: > Add support to parse optional OPP table attached to the cpu node when > the OPP bandwidth values are populated. This allows for scaling of > DDR/L3 bandwidth levels with frequency change. > > Signed-off-by: Sibi Sankar Reviewed-by: M

Re: [PATCH RFC v8 02/11] vhost: use batched get_vq_desc version

2020-06-22 Thread Michael S. Tsirkin
On Wed, Jun 17, 2020 at 11:19:26AM +0800, Jason Wang wrote: > > On 2020/6/11 下午7:34, Michael S. Tsirkin wrote: > > static void vhost_vq_free_iovecs(struct vhost_virtqueue *vq) > > { > > kfree(vq->descs); > > @@ -394,6 +400,9 @@ static long vhost_dev_alloc_iovecs(struct vhost_dev > > *dev)

Re: [PATCH] lib: update DEBUG_SHIRQ docs to match reality

2020-06-22 Thread Andy Shevchenko
On Mon, Jun 22, 2020 at 6:56 PM Wolfram Sang wrote: > > > Maybe your case was like Krzysztof's case where the issue turned out to > > > be the extra interrupt on deregistering after a deferred probe? He > > > thought it was the initial interrupt but it wasn't. > > > > Commit > > https://git.kerne

URGENT REPLY.

2020-06-22 Thread Karim Zakari
Good-Day Friend, Hope you are doing great Today. I have a proposed business deal worthy (US$16.5 Million Dollars) that will benefit both parties. This is legitimate' legal and your personality will not be compromised. Waiting for your response for more details, As you are willing to execute

Re: mt7612 suspend/resume issue

2020-06-22 Thread Lorenzo Bianconi
> On Mon, Jun 22, 2020 at 4:53 PM Lorenzo Bianconi > wrote: > > > On Sun, Jun 21, 2020 at 10:54 PM Lorenzo Bianconi > > > wrote: > > > > > > +static int __maybe_unused > > > > > > +mt76x2e_suspend(struct pci_dev *pdev, pm_message_t state) > > > > > > +{ > > > > > > + struct mt76_dev *mdev = pc

Re: [PATCH 3/7] kgdb: Add request_nmi() to the io ops table for kgdboc

2020-06-22 Thread Daniel Thompson
On Mon, Jun 22, 2020 at 07:56:20PM +0530, Sumit Garg wrote: > From: Daniel Thompson > > Add request_nmi() callback to install a non-maskable interrupt handler > corresponding to IRQ retrieved from polling interface. If NMI handler > installation fails due to missing support from underlying irqchi

[PATCH 2/5] Huawei BMA: Adding Huawei BMA driver: host_cdev_drv

2020-06-22 Thread yunaixin03610
From: yunaixin The BMA software is a system management software offered by Huawei. It supports the status monitoring, performance monitoring, and event monitoring of various components, including server CPUs, memory, hard disks, NICs, IB cards, PCIe cards, RAID controller cards, and optical mo

[PATCH 0/5] Adding Huawei BMA drivers

2020-06-22 Thread yunaixin03610
From: yunaixin This patch set contains 5 communication drivers for Huawei BMA software. The BMA software is a system management software. It supports the status monitoring, performance monitoring, and event monitoring of various components, including server CPUs, memory, hard disks, NICs, IB card

[PATCH 4/5] Huawei BMA: Adding Huawei BMA driver: cdev_veth_drv

2020-06-22 Thread yunaixin03610
From: yunaixin The BMA software is a system management software offered by Huawei. It supports the status monitoring, performance monitoring, and event monitoring of various components, including server CPUs, memory, hard disks, NICs, IB cards, PCIe cards, RAID controller cards, and optical mo

[PATCH 1/5] Huawei BMA: Adding Huawei BMA driver: host_edma_drv

2020-06-22 Thread yunaixin03610
From: yunaixin The BMA software is a system management software offered by Huawei. It supports the status monitoring, performance monitoring, and event monitoring of various components, including server CPUs, memory, hard disks, NICs, IB cards, PCIe cards, RAID controller cards, and optical mo

Re: [PATCH 1/3] mfd: ds1374: Introduce Dallas/Maxim DS1374 MFD core driver

2020-06-22 Thread kernel test robot
Hi "Johnson, Thank you for the patch! Yet something to improve: [auto build test ERROR on abelloni/rtc-next] [also build test ERROR on linux/master linus/master v5.8-rc2 next-20200622] [cannot apply to ljones-mfd/for-mfd-next] [If your patch is applied to the wrong git tree, kindly drop

Re: [PATCH] ASoC: fsl_mqs: Fix unchecked return value for clk_prepare_enable

2020-06-22 Thread Markus Elfring
> Fix unchecked return value for clk_prepare_enable. > > And because clk_prepare_enable and clk_disable_unprepare should > check input clock parameter is NULL or not, then we don't need > to check it before calling the function. I propose to split the adjustment of two function implementations int

Re: [PATCH v2] dma-pool: Fix too large DMA pools on medium systems

2020-06-22 Thread Robin Murphy
On 2020-06-21 21:20, David Rientjes wrote: On Sun, 21 Jun 2020, Guenter Roeck wrote: This patch results in a boot failure in some of my powerpc boot tests, specifically those testing boots from mptsas1068 devices. Error message: mptsas :00:02.0: enabling device ( -> 0002) mptbase: ioc0

[PATCH] kvm: lapic: fix broken vcpu hotplug

2020-06-22 Thread Igor Mammedov
Guest fails to online hotplugged CPU with error smpboot: do_boot_cpu failed(-1) to wakeup CPU#4 It's caused by the fact that kvm_apic_set_state(), which used to call recalculate_apic_map() unconditionally and pulled hotplugged CPU into apic map, is updating map conditionally [1] on state change

Re: [PATCH] proc: Avoid a thundering herd of threads freeing proc dentries

2020-06-22 Thread willy
On Mon, Jun 22, 2020 at 10:20:40AM -0500, Eric W. Biederman wrote: > Junxiao Bi writes: > > On 6/20/20 9:27 AM, Matthew Wilcox wrote: > >> On Fri, Jun 19, 2020 at 05:42:45PM -0500, Eric W. Biederman wrote: > >>> Junxiao Bi writes: > Still high lock contention. Collect the following hot path.

Re: [PATCH v2 1/3] mfd: core: Make a best effort attempt to match devices with the correct of_nodes

2020-06-22 Thread Frank Rowand
On 2020-06-22 03:09, Lee Jones wrote: > On Thu, 11 Jun 2020, Lee Jones wrote: > >> Currently, when a child platform device (sometimes referred to as a >> sub-device) is registered via the Multi-Functional Device (MFD) API, >> the framework attempts to match the newly registered platform device >>

[PATCH 3/5] Huawei BMA: Adding Huawei BMA driver: host_veth_drv

2020-06-22 Thread yunaixin03610
From: yunaixin The BMA software is a system management software offered by Huawei. It supports the status monitoring, performance monitoring, and event monitoring of various components, including server CPUs, memory, hard disks, NICs, IB cards, PCIe cards, RAID controller cards, and optical mo

Re: [PATCH 0/3] pinctrl: single: support #pinctrl-cells = 2

2020-06-22 Thread Tony Lindgren
* Drew Fustini [200618 05:52]: > Currently, pinctrl-single only allows #pinctrl-cells = 1. > > This series will allow pinctrl-single to also support #pinctrl-cells = 2 > > If "pinctrl-single,pins" has 3 arguments (offset, conf, mux) then > pcs_parse_one_pinctrl_entry() does an OR operation on to

Re: [PATCH RFC v8 02/11] vhost: use batched get_vq_desc version

2020-06-22 Thread Eugenio Perez Martin
On Mon, Jun 22, 2020 at 5:55 PM Michael S. Tsirkin wrote: > > On Fri, Jun 19, 2020 at 08:07:57PM +0200, Eugenio Perez Martin wrote: > > On Mon, Jun 15, 2020 at 2:28 PM Eugenio Perez Martin > > wrote: > > > > > > On Thu, Jun 11, 2020 at 5:22 PM Konrad Rzeszutek Wilk > > > wrote: > > > > > > > > O

Re: [PATCH v1 03/11] soc: mediatek: cmdq: add write_s function

2020-06-22 Thread Dennis-YC Hsieh
Hi Matthias, On Mon, 2020-06-22 at 17:54 +0200, Matthias Brugger wrote: > > On 22/06/2020 17:36, Dennis-YC Hsieh wrote: > > Hi Matthias, > > > > thanks for your comment. > > > > On Mon, 2020-06-22 at 13:07 +0200, Matthias Brugger wrote: > >> > >> On 21/06/2020 16:18, Dennis YC Hsieh wrote: > >>

Re: [PATCH] scripts: add dummy report mode to add_namespace.cocci

2020-06-22 Thread Shuah Khan
On 6/22/20 9:06 AM, Greg Kroah-Hartman wrote: On Mon, Jun 22, 2020 at 08:46:18AM -0600, Shuah Khan wrote: On 6/22/20 2:03 AM, Matthias Maennich wrote: On Thu, Jun 04, 2020 at 02:39:18PM -0600, Shuah Khan wrote: On 6/4/20 1:31 PM, Julia Lawall wrote: On Thu, 4 Jun 2020, Matthias Maennich wro

[no subject]

2020-06-22 Thread Marc Grondin
unsubscribe

Re: [PATCH][v2] PM / s2idle: Clear _TIF_POLLING_NRFLAG before suspend to idle

2020-06-22 Thread Rafael J. Wysocki
On Tue, Jun 16, 2020 at 6:03 AM Chen Yu wrote: > > Suspend to idle was found to not work on Goldmont CPU recently. > And the issue was triggered due to: > > 1. On Goldmont the CPU in idle can only be woken up via IPIs, >not POLLING mode: >Commit 08e237fa56a1 ("x86/cpu: Add workaround for M

Re: [PATCH 1/2] exec: Don't set group_exit_task during a coredump

2020-06-22 Thread Eric W. Biederman
Linus Torvalds writes: > On Fri, Jun 19, 2020 at 11:36 AM Eric W. Biederman > wrote: >> >> Instead test SIGNAL_GROUP_COREDUMP in signal_group_exit(). > > You say "instead", but the patch itself doesn't agree: > >> static inline int signal_group_exit(const struct signal_struct *sig) >> { >> -

Re: [PATCH v4] page_alloc: consider highatomic reserve in watermark fast

2020-06-22 Thread Mel Gorman
On Mon, Jun 22, 2020 at 04:23:04PM +0200, Michal Hocko wrote: > On Mon 22-06-20 11:04:39, Mel Gorman wrote: > > On Mon, Jun 22, 2020 at 06:40:20PM +0900, ? wrote: > > > >But more importantly, I have hard time to follow why we need both > > > >zone_watermark_fast and zone_watermark_ok now. T

Re: [PATCH 1/2] drm/msm: Fix address space size after refactor.

2020-06-22 Thread Jordan Crouse
On Wed, Jun 17, 2020 at 07:39:08PM -0700, Rob Clark wrote: > On Wed, Jun 17, 2020 at 1:53 PM Eric Anholt wrote: > > > > Previously the address space went from 16M to ~0u, but with the > > refactor one of the 'f's was dropped, limiting us to 256MB. > > Additionally, the new interface takes a start

[PATCH] spi: fsl: add missing __iomem annotation

2020-06-22 Thread Luc Van Oostenryck
The field mspi->reg_base is annotated as an __iomem pointer. Good. However, this field is often assigned to a temporary variable: before being used. For example: struct fsl_spi_reg *reg_base = mspi->reg_base; But this variable is missing the __iomem annotation. So, add the missing __iomem

KMSAN: uninit-value in hash_net6_add

2020-06-22 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:f0d5ec90 kmsan: apply __no_sanitize_memory to dotraplinkag.. git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=172113cd10 kernel config: https://syzkaller.appspot.co

Re: [PATCH v2] drivers/virt/fsl_hypervisor: Correcting error handling path

2020-06-22 Thread Souptick Joarder
On Wed, Jun 17, 2020 at 8:22 AM Souptick Joarder wrote: > > First, when memory allocation for sg_list_unaligned failed, there > is no point of calling put_pages() as we haven't pinned any pages. > > Second, if get_user_pages_fast() failed we should unpinned num_pinned > pages, no point of checking

Re: [PATCH RFC v8 02/11] vhost: use batched get_vq_desc version

2020-06-22 Thread Michael S. Tsirkin
On Mon, Jun 22, 2020 at 06:11:21PM +0200, Eugenio Perez Martin wrote: > On Mon, Jun 22, 2020 at 5:55 PM Michael S. Tsirkin wrote: > > > > On Fri, Jun 19, 2020 at 08:07:57PM +0200, Eugenio Perez Martin wrote: > > > On Mon, Jun 15, 2020 at 2:28 PM Eugenio Perez Martin > > > wrote: > > > > > > > > O

Re: [PATCH] PCI/IOV: Plug VF bus creation race

2020-06-22 Thread Bjorn Helgaas
On Mon, Jun 22, 2020 at 02:18:20PM +0100, Marc Zyngier wrote: > On Sun, 7 Jun 2020 10:43:48 +0100 > Marc Zyngier wrote: > > Hi Bjorn, > > > On a system that creates VFs for multiple PFs in parallel (in > > this case, network bringup at boot time), and when these VFs > > end-up on the same bus,

Re: [PATCH v2] perf flamegraph: explicitly set utf-8 encoding

2020-06-22 Thread Arnaldo Carvalho de Melo
Em Fri, Jun 19, 2020 at 05:32:31PM +0200, Andreas Gerstmayr escreveu: > on some platforms the default encoding is not utf-8, > which causes an UnicodeDecodeError when reading the flamegraph template > and writing the flamegraph Thanks, applied. - Arnaldo > Signed-off-by: Andreas Gerstmayr > --

[PATCH] input: i8042: remove redundant assignment to variable retval

2020-06-22 Thread Colin King
From: Colin Ian King The variable retval is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- drivers/input/serio/i8042.c |

Re: [PATCH 1/2] exec: Don't set group_exit_task during a coredump

2020-06-22 Thread Linus Torvalds
On Mon, Jun 22, 2020 at 9:24 AM Eric W. Biederman wrote: > > Why do you think the test sig->group_exit_task != NULL should be removed > for the commit to make sense? Because that's what your commit message _said_. It still implies that with your changed language. And honestly, wouldn't it be a

Re: [PATCH v2 00/11] KVM: Support guest MAXPHYADDR < host MAXPHYADDR

2020-06-22 Thread Tom Lendacky
On 6/19/20 6:07 PM, Paolo Bonzini wrote: > On 19/06/20 23:52, Tom Lendacky wrote: >>> A more subtle issue is when the host MAXPHYADDR is larger than that >>> of the guest. Page faults caused by reserved bits on the guest won't >>> cause an EPT violation/NPF and hence we also check guest MAXPHYADDR

Re: DMA Engine: Transfer From Userspace

2020-06-22 Thread Thomas Ruf
> On 22 June 2020 at 17:54 Vinod Koul wrote: > > > On 22-06-20, 14:01, Thomas Ruf wrote: > > > On 22 June 2020 at 06:47 Vinod Koul wrote: > > > > > > On 21-06-20, 22:36, Federico Vaga wrote: > > > > On Sun, Jun 21, 2020 at 12:54:57PM +0530, Vinod Koul wrote: > > > > > On 19-06-20, 16:31, Dav

Re: [PATCH v2 00/11] KVM: Support guest MAXPHYADDR < host MAXPHYADDR

2020-06-22 Thread Tom Lendacky
On 6/22/20 10:23 AM, Paolo Bonzini wrote: > On 22/06/20 17:08, Mohammed Gamal wrote: >>> Also, something to consider. On AMD, when memory encryption is >>> enabled (via the SYS_CFG MSR), a guest can actually have a larger >>> MAXPHYADDR than the host. How do these patches all play into that? > >

Re: [PATCH 4/7] serial: kgdb_nmi: Add support for interrupt based fallback

2020-06-22 Thread Daniel Thompson
On Mon, Jun 22, 2020 at 07:56:21PM +0530, Sumit Garg wrote: > From: Daniel Thompson > > Add a generic NMI fallback to support kgdb NMI console feature which can > be overridden by arch specific implementation. arch_kgdb_ops.enable_nmi should probably be killed off. Given we now have request_nmi(

KASAN: use-after-free Read in tipc_udp_nl_dump_remoteip (2)

2020-06-22 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:67c20de3 net: Add MODULE_DESCRIPTION entries to network mo.. git tree: net console output: https://syzkaller.appspot.com/x/log.txt?x=13ff86a510 kernel config: https://syzkaller.appspot.com/x/.config?x=45c80de7244166e1 dashboar

WARNING: suspicious RCU usage in tipc_udp_send_msg

2020-06-22 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:67c20de3 net: Add MODULE_DESCRIPTION entries to network mo.. git tree: net console output: https://syzkaller.appspot.com/x/log.txt?x=16de7aed10 kernel config: https://syzkaller.appspot.com/x/.config?x=45c80de7244166e1 dashboar

Re: [PATCH 0/2] Allow breaking up Thunderbolt/USB4 updates

2020-06-22 Thread Mika Westerberg
Hi Mario, On Mon, Jun 22, 2020 at 09:30:33AM -0500, Mario Limonciello wrote: > Currently updates to Thunderbolt and USB4 controllers are fully atomic > actions. When writing into the non-active NVM nothing gets flushed to > the hardware until authenticate is sent. > > There has been some desire t

Re: [PATCH 2/5] Huawei BMA: Adding Huawei BMA driver: host_cdev_drv

2020-06-22 Thread Randy Dunlap
On 6/22/20 9:03 AM, yunaixin03...@163.com wrote: > diff --git a/drivers/net/ethernet/huawei/bma/Makefile > b/drivers/net/ethernet/huawei/bma/Makefile > index 8582fb3998fb..c9bbcbf2a388 100644 > --- a/drivers/net/ethernet/huawei/bma/Makefile > +++ b/drivers/net/ethernet/huawei/bma/Makefile > @@ -3,

Re: [PATCH 3/5] Huawei BMA: Adding Huawei BMA driver: host_veth_drv

2020-06-22 Thread Randy Dunlap
On 6/22/20 9:03 AM, yunaixin03...@163.com wrote: > diff --git a/drivers/net/ethernet/huawei/bma/Makefile > b/drivers/net/ethernet/huawei/bma/Makefile > index c9bbcbf2a388..e6e46d820082 100644 > --- a/drivers/net/ethernet/huawei/bma/Makefile > +++ b/drivers/net/ethernet/huawei/bma/Makefile > @@ -3,

RE: [PATCH 0/2] Allow breaking up Thunderbolt/USB4 updates

2020-06-22 Thread Mario.Limonciello
> -Original Message- > From: Mika Westerberg > Sent: Monday, June 22, 2020 11:38 AM > To: Limonciello, Mario > Cc: Andreas Noever; Michael Jamet; Yehezkel Bernat; linux-...@vger.kernel.org; > linux-kernel@vger.kernel.org > Subject: Re: [PATCH 0/2] Allow breaking up Thunderbolt/USB4 updates

Re: [PATCH 1/2] thunderbolt: Add support for separating the flush to SPI and authenticate

2020-06-22 Thread Mika Westerberg
On Mon, Jun 22, 2020 at 09:30:34AM -0500, Mario Limonciello wrote: > This allows userspace to have a shorter period of time that the device > is unusable and to call it at a more convenient time. > > For example flushing the image may happen while the user is using the > machine and authenticating

Re: [PATCH] Revert "kernel/printk: add kmsg SEEK_CUR handling"

2020-06-22 Thread Linus Torvalds
On Mon, Jun 22, 2020 at 6:38 AM Bruno Meneguele wrote: > > However, the issue with glibc is their fd checking on dprintf using: > > lseek(offset == 0, whence == SEEK_CUR) > > Which, technically, isn't a relative seek operation in my opinion, thus > I'm also not sure that returning EINVAL is correc

Re: [PATCH 4/5] Huawei BMA: Adding Huawei BMA driver: cdev_veth_drv

2020-06-22 Thread Randy Dunlap
On 6/22/20 9:03 AM, yunaixin03...@163.com wrote: > diff --git a/drivers/net/ethernet/huawei/bma/Makefile > b/drivers/net/ethernet/huawei/bma/Makefile > index e6e46d820082..c626618f47fb 100644 > --- a/drivers/net/ethernet/huawei/bma/Makefile > +++ b/drivers/net/ethernet/huawei/bma/Makefile > @@ -5,

[PATCH V7 4/4] x86/resctrl: Use appropriate API for strings terminated by newline

2020-06-22 Thread Reinette Chatre
The user input to files in the resctrl filesystem are expected to be terminated with a newline. Testing the user input includes a test for the presence of a newline and then replacing the newline with NUL byte followed by comparison using strcmp(). sysfs_streq() exists to test if strings are equal

[PATCH V7 0/4] x86/resctrl: Enable user to view and select thread throttling mode

2020-06-22 Thread Reinette Chatre
V6 upstream submission available from: https://lore.kernel.org/lkml/cover.1589922949.git.reinette.cha...@intel.com Patches apply against v5.8-rc2 base-commit: 48778464bb7d346b47157d21ffde2af6b2d39110 Changes since V6: - Rebase against v5.8-rc2 - Add Andy's Reviewed-by tag to patch 4 V5 upstream

[PATCH V7 2/4] x86/resctrl: Enumerate per-thread MBA

2020-06-22 Thread Reinette Chatre
From: Fenghua Yu Some systems support per-thread Memory Bandwidth Allocation (MBA) which applies a throttling delay value to each hardware thread instead of to a core. Per-thread MBA is enumerated by CPUID. No feature flag is shown in /proc/cpuinfo. User applications need to check a resctrl thro

[PATCH V7 1/4] x86/resctrl: Enable user to view and select thread throttling mode

2020-06-22 Thread Reinette Chatre
Intel Memory Bandwidth Allocation (MBA) control is provided per processor core. At the same time different CLOS, configured with different bandwidth percentages, can be assigned to the hardware threads sharing a core. In the original implementation of MBA the maximum throttling of the per-thread CL

[PATCH V7 3/4] x86/resctrl: Enable per-thread MBA

2020-06-22 Thread Reinette Chatre
From: Fenghua Yu Current Memory Bandwidth Allocation (MBA) hardware has a limitation: all threads on the same core must have the same delay value. If there are different delay values across threads on one core, the original MBA implementation allocates the max delay value to the core and an updat

Re: [PATCH 0/3] pinctrl: single: support #pinctrl-cells = 2

2020-06-22 Thread Drew Fustini
On Mon, Jun 22, 2020 at 09:11:32AM -0700, Tony Lindgren wrote: > * Drew Fustini [200618 05:52]: > > Currently, pinctrl-single only allows #pinctrl-cells = 1. > > > > This series will allow pinctrl-single to also support #pinctrl-cells = 2 > > > > If "pinctrl-single,pins" has 3 arguments (offset,

[PATCH 5/6] ARM: dts: Configure am3 and am4 sgx for genpd and drop platform data

2020-06-22 Thread Tony Lindgren
We can power off the SGX power domain when not in use when we configure it for genpd. And with that change, we can now also drop the old unused legacy platform data. Signed-off-by: Tony Lindgren --- arch/arm/boot/dts/am33xx.dtsi | 2 + arch/arm/boot/dts/am4372.dtsi

[PATCHv3 0/6] Add initial genpd support for omap PRM driver

2020-06-22 Thread Tony Lindgren
Hi all, Here is v3 set of patches to add genpd support to the PRM (Power and Reset Module) driver. Initially we just add one hardware accelerator power domain for sgx, and one interconnect instance for l4_abe. The rest of the SoC specific domain data is probably best added one SoC at a time based

[PATCH 6/6] ARM: dts: Configure omap4 and 5 l4_abe for genpd and drop platform data

2020-06-22 Thread Tony Lindgren
We can power off l4_abe domain when not in use when we configure it for genpd. And with that change, we can now also drop the old unused legacy platform data. Note that we also need to now use "simple-pm-bus" instead of "simple-bus" for PM runtime to get enabled for the bus. Signed-off-by: Tony L

Re: [GIT PULL] regmap fixes for v5.8-rc2

2020-06-22 Thread Linus Torvalds
On Mon, Jun 22, 2020 at 5:09 AM Mark Brown wrote: > > This (and my other pull requests today) are unsigned because I've > automated the final checks and sending of the mails and that's not > really compatible with signing the mails. I don't personally check email signatures anyway. I do check the

[PATCH 1/6] dt-bindings: omap: Update PRM binding for genpd

2020-06-22 Thread Tony Lindgren
The PRM (Power and Reset Module) has a register to enable and disable the related power domain, so let's update the binding for that. Cc: devicet...@vger.kernel.org Cc: Rob Herring Signed-off-by: Tony Lindgren --- Documentation/devicetree/bindings/arm/omap/prm-inst.txt | 2 ++ 1 file changed, 2

[PATCH 4/6] soc: ti: omap-prm: Configure omap4 and 5 l4_abe power domain

2020-06-22 Thread Tony Lindgren
Let's add omap4 and 5 l4_abe interconnect instance for the power domain. Signed-off-by: Tony Lindgren --- drivers/soc/ti/omap_prm.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/soc/ti/omap_prm.c b/drivers/soc/ti/omap_prm.c --- a/drivers/soc/ti/omap_prm.c ++

[PATCH 2/6] soc: ti: omap-prm: Add basic power domain support

2020-06-22 Thread Tony Lindgren
The PRM controller has currently only support for resets while the power domains are still handled in the platform code. Let's add basic power domain support to enable and disable a PRM controlled power domain if configured in the devicetree. This can be used for various hardware accelerators, and

[PATCH 3/6] soc: ti: omap-prm: Configure sgx power domain for am3 and am4

2020-06-22 Thread Tony Lindgren
Let's configure only sgx power domain for am3 and am4 to start with. Signed-off-by: Tony Lindgren --- drivers/soc/ti/omap_prm.c | 24 ++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/drivers/soc/ti/omap_prm.c b/drivers/soc/ti/omap_prm.c --- a/drivers/soc/ti

Re: [PATCH] kvm: lapic: fix broken vcpu hotplug

2020-06-22 Thread Paolo Bonzini
On 22/06/20 18:08, Igor Mammedov wrote: > Guest fails to online hotplugged CPU with error > smpboot: do_boot_cpu failed(-1) to wakeup CPU#4 > > It's caused by the fact that kvm_apic_set_state(), which used to call > recalculate_apic_map() unconditionally and pulled hotplugged CPU into > apic map

Re: [PATCH 0/3] pinctrl: single: support #pinctrl-cells = 2

2020-06-22 Thread Tony Lindgren
* Drew Fustini [200622 16:47]: > On Mon, Jun 22, 2020 at 09:11:32AM -0700, Tony Lindgren wrote: > > * Drew Fustini [200618 05:52]: > > > Currently, pinctrl-single only allows #pinctrl-cells = 1. > > > > > > This series will allow pinctrl-single to also support #pinctrl-cells = 2 > > > > > > If

Re: [PATCH 1/5] Huawei BMA: Adding Huawei BMA driver: host_edma_drv

2020-06-22 Thread Randy Dunlap
On 6/22/20 9:03 AM, yunaixin03...@163.com wrote: > diff --git a/drivers/net/ethernet/huawei/bma/edma_drv/Kconfig > b/drivers/net/ethernet/huawei/bma/edma_drv/Kconfig > new file mode 100644 > index ..97829c5487c2 > --- /dev/null > +++ b/drivers/net/ethernet/huawei/bma/edma_drv/Kconfig >

Re: drivers/gpu/drm/panel/panel-samsung-ld9040.c:240:12: warning: stack frame size of 8312 bytes in function 'ld9040_prepare'

2020-06-22 Thread Nick Desaulniers
On Sat, Jun 20, 2020 at 3:09 PM Vladimir Oltean wrote: > > On Sat, 20 Jun 2020 at 21:22, kernel test robot wrote: > > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > > master > > head: 4333a9b0b67bb4e8bcd91bdd80da80b0ec151162 > > commit: 79591b7db21d255db158afa

Re: [PATCH] max732x_probe: remove redundant check

2020-06-22 Thread Bartosz Golaszewski
czw., 18 cze 2020 o 01:58 Gaurav Singh napisał(a): > > The check : if (pdata) is redundant since its already > dereferenced before: pdata->have_64bit_regs; > pdata is not initialized after that hence remove > this null check. > > Signed-off-by: Gaurav Singh > --- > drivers/gpio/gpio-max732x.c |

Re: [PATCH 5.7] x86/crypto: aesni: Fix build with LLVM_IAS=1

2020-06-22 Thread Sedat Dilek
On Mon, Jun 22, 2020 at 5:50 PM Sedat Dilek wrote: > Craig Topper suggested me in ClangBuiltLinux issue #1050: > > > I think the "too many positional arguments" is because the parser isn't able > > to handle the trailing commas. > > > > The "unknown use of instruction mnemonic" is because the mac

Re: [PATCH 1/2] net: phy: export phy_disable_interrupts()

2020-06-22 Thread kernel test robot
Hi Jisheng, I love your patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.8-rc2 next-20200622] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use as documented in https://git

Re: [PATCH v1 1/1] pci: controller: cadence: fix wrong path in comment

2020-06-22 Thread Bjorn Helgaas
Please use "git log --oneline" to help construct the subject line. Maybe: PCI: cadence-ep: Remove obsolete path from comment On Mon, Jun 22, 2020 at 11:15:20AM +0200, Flavio Suligoi wrote: > This comment still refers to the old driver pathname, > when all PCI drivers were located directly under

Re: [PATCH 2/2] thunderbolt: Add support for authenticate on disconnect

2020-06-22 Thread Mika Westerberg
On Mon, Jun 22, 2020 at 09:30:35AM -0500, Mario Limonciello wrote: > Some external devices can support completing thunderbolt authentication > when they are unplugged. For this to work though, the link controller must > remain operational. > > The only device known to support this right now is the

Re: [PATCH v2 1/3] mfd: core: Make a best effort attempt to match devices with the correct of_nodes

2020-06-22 Thread Lee Jones
On Mon, 22 Jun 2020, Frank Rowand wrote: > On 2020-06-22 03:09, Lee Jones wrote: > > On Thu, 11 Jun 2020, Lee Jones wrote: > > > >> Currently, when a child platform device (sometimes referred to as a > >> sub-device) is registered via the Multi-Functional Device (MFD) API, > >> the framework atte

Re: [PATCH v2] gpio: rcar: handle pm_runtime_get_sync failure case

2020-06-22 Thread Bartosz Golaszewski
śr., 17 cze 2020 o 09:43 Geert Uytterhoeven napisał(a): > > On Wed, Jun 17, 2020 at 9:40 AM Navid Emamdoost > wrote: > > Calling pm_runtime_get_sync increments the counter even in case of > > failure, causing incorrect ref count. Call pm_runtime_put if > > pm_runtime_get_sync fails. > > > > Signe

Re: [GIT PULL] regmap fixes for v5.8-rc2

2020-06-22 Thread pr-tracker-bot
The pull request you sent on Mon, 22 Jun 2020 12:39:14 +0100: > https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git > tags/regmap-fix-v5.8-rc2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/2a00087068542b4324b54a14278acabc50f2a61b Thank you! -- Deet-

[PATCH] drm/msm: Fix up the rest of the messed up address sizes

2020-06-22 Thread Jordan Crouse
msm_gem_address_space_create() changed to take a start/length instead of a start/end for the iova space but all of the callers were just cut and pasted from the old usage. Most of the mistakes have been fixed up so just catch up the rest. Fixes: ccac7ce373c1 ("drm/msm: Refactor address space initi

Re: [GIT PULL] regulator fixes for v5.8-rc2

2020-06-22 Thread pr-tracker-bot
The pull request you sent on Mon, 22 Jun 2020 12:40:20 +0100: > https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git > tags/regulator-fix-v5.8-rc2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/751645789f7cffddb0715d51fd9e72986ad9ecaf Thank you! --

INFO: trying to register non-static key in skb_queue_tail

2020-06-22 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:f8f02d5c USB: OTG: rename product list of devices git tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing console output: https://syzkaller.appspot.com/x/log.txt?x=17205bae10 kernel config: https:

Re: [PATCH v6 12/19] mm: memcg/slab: use a single set of kmem_caches for all accounted allocations

2020-06-22 Thread Shakeel Butt
On Mon, Jun 8, 2020 at 4:07 PM Roman Gushchin wrote: > > This is fairly big but mostly red patch, which makes all accounted > slab allocations use a single set of kmem_caches instead of > creating a separate set for each memory cgroup. > > Because the number of non-root kmem_caches is now capped b

Re: [PATCH 14/21] KVM: Move x86's version of struct kvm_mmu_memory_cache to common code

2020-06-22 Thread Sean Christopherson
On Wed, Jun 10, 2020 at 02:58:21PM -0700, Ben Gardon wrote: > On Wed, Jun 10, 2020 at 12:01 PM Ben Gardon wrote: > > > diff --git a/arch/x86/include/asm/kvm_host.h > > > b/arch/x86/include/asm/kvm_host.h > > > index fb99e6776e27..8e8fea13b6c7 100644 > > > --- a/arch/x86/include/asm/kvm_host.h > >

Re: [PATCH] dt-bindings: backlight: Convert common backlight bindings to DT schema

2020-06-22 Thread Daniel Thompson
On Fri, Jun 19, 2020 at 11:53:41PM +0200, Sam Ravnborg wrote: > > diff --git > > a/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.yaml > > b/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.yaml > > new file mode 100644 > > index ..7e1f109a38a4 > > --- /d

Re: Strange problem with SCTP+IPv6

2020-06-22 Thread Corey Minyard
On Mon, Jun 22, 2020 at 08:01:23PM +0800, Xin Long wrote: > On Sun, Jun 21, 2020 at 11:56 PM Corey Minyard wrote: > > > > I've stumbled upon a strange problem with SCTP and IPv6. If I create an > > sctp listening socket on :: and set the IPV6_V6ONLY socket option on it, > > then I make a connecti

Re: [PATCH 00/16] mm/hmm/nouveau: THP mapping and migration

2020-06-22 Thread Ralph Campbell
On 6/22/20 5:39 AM, Jason Gunthorpe wrote: On Fri, Jun 19, 2020 at 02:56:33PM -0700, Ralph Campbell wrote: These patches apply to linux-5.8.0-rc1. Patches 1-3 should probably go into 5.8, the others can be queued for 5.9. Patches 4-6 improve the HMM self tests. Patch 7-8 prepare nouveau for th

Re: [PATCH v16 00/14] Introduce Data Access MONitor (DAMON)

2020-06-22 Thread Shakeel Butt
Hi SeongJae, On Mon, Jun 22, 2020 at 1:42 AM SeongJae Park wrote: > > Last week, this patchset received 5 'Reviewed-by' tags, but no further > comments > for changes. I updated the documentation, but the change is only small. For > the reason, I'm only asking more reviews rather than posting t

Re: [GIT PULL] regmap fixes for v5.8-rc2

2020-06-22 Thread Mark Brown
On Mon, Jun 22, 2020 at 09:46:24AM -0700, Linus Torvalds wrote: > That said, automating the mailing is *not* incompatible with having a > real name in the "From" line. Can you please make your scripting at > least say "Mark Brown " rather than just > "broo...@kernel.org". Sure, will do - my MTA f

Re: [PATCH v2 01/16] docs: deprecated.rst: Add uninitialized_var()

2020-06-22 Thread Nick Desaulniers
On Fri, Jun 19, 2020 at 8:30 PM Kees Cook wrote: > > Nothing should be using this macro, and the entire idea of tricking the > compiler into silencing such warnings is a mistake. > > Signed-off-by: Kees Cook Reviewed-by: Nick Desaulniers > --- > Documentation/process/deprecated.rst | 18 +

[tip: x86/fsgsbase] selftests/x86: Add a syscall_arg_fault_64 test for negative GSBASE

2020-06-22 Thread tip-bot2 for Andy Lutomirski
The following commit has been merged into the x86/fsgsbase branch of tip: Commit-ID: a5d25e01c8146ad8846da4760422e12242fceafe Gitweb: https://git.kernel.org/tip/a5d25e01c8146ad8846da4760422e12242fceafe Author:Andy Lutomirski AuthorDate:Wed, 27 May 2020 16:02:36 -07:00 Comm

Re: [PATCH v2 00/11] KVM: Support guest MAXPHYADDR < host MAXPHYADDR

2020-06-22 Thread Paolo Bonzini
On 22/06/20 18:33, Tom Lendacky wrote: > I'm not a big fan of trapping #PF for this. Can't this have a performance > impact on the guest? If I'm not mistaken, Qemu will default to TCG > physical address size (40-bits), unless told otherwise, causing #PF to now > be trapped. Maybe libvirt defaults t

Re: [PATCH] Replace HTTP links with HTTPS ones: Documentation/process

2020-06-22 Thread Miguel Ojeda
On Mon, Jun 22, 2020 at 3:06 PM Jonathan Corbet wrote: > > As has been noted elsewhere, checkpatch.pl seems like the appropriate > place to make this check. As for "the entire tree"...if this job gets > completed, "git grep" should be a fine way to do that. `checkpatch` is not really enforced in

Re: [PATCH v2] USB: Serial: cypress_M8: Enable Simply Automated UPB PIM

2020-06-22 Thread James Hilliard
On Mon, Jun 22, 2020 at 2:53 AM Johan Hovold wrote: > > On Tue, Jun 16, 2020 at 04:04:03PM -0600, James Hilliard wrote: > > This is a UPB(Universal Powerline Bus) PIM(Powerline Interface Module) > > which allows for controlling multiple UPB compatible devices from > > Linux using the standard seri

Re: [PATCH v2 04/16] b43: Remove uninitialized_var() usage

2020-06-22 Thread Nick Desaulniers
On Fri, Jun 19, 2020 at 8:30 PM Kees Cook wrote: > > Using uninitialized_var() is dangerous as it papers over real bugs[1] > (or can in the future), and suppresses unrelated compiler warnings (e.g. > "unused variable"). If the compiler thinks it is uninitialized, either > simply initialize the var

Re: [PATCH] KVM: x86/mmu: Avoid mixing gpa_t with gfn_t in walk_addr_generic()

2020-06-22 Thread Paolo Bonzini
On 22/06/20 17:14, Vitaly Kuznetsov wrote: > translate_gpa() returns a GPA, assigning it to 'real_gfn' seems obviously > wrong. There is no real issue because both 'gpa_t' and 'gfn_t' are u64 and > we don't use the value in 'real_gfn' as a GFN, we do > > real_gfn = gpa_to_gfn(real_gfn); > > inst

Re: [PATCH 2/2] selftests/fpu: Add an FPU selftest

2020-06-22 Thread Borislav Petkov
On Sun, Jun 21, 2020 at 03:55:00AM +0800, kernel test robot wrote: > Hi Borislav, > > Thank you for the patch! Yet something to improve: > > [auto build test ERROR on kselftest/next] > [also build test ERROR on tip/auto-latest linus/master v5.8-rc1 next-20200618] > [cannot apply to tip/x86/core]

Re: [PATCH 13/19] mm: memcontrol: drop unused try/commit/cancel charge API

2020-06-22 Thread Ben Widawsky
On 20-05-08 14:31:00, Johannes Weiner wrote: > There are no more users. RIP in peace. > Would it make sense to update Documentation/admin-guide/cgroup-v1/memcg_test.rst too? I don't have the history on this file, or why it exists (it does say implementation details can be changed). > Signed-off-

Re: [PATCH v1 03/11] soc: mediatek: cmdq: add write_s function

2020-06-22 Thread Matthias Brugger
On 22/06/2020 18:12, Dennis-YC Hsieh wrote: > Hi Matthias, > > On Mon, 2020-06-22 at 17:54 +0200, Matthias Brugger wrote: >> >> On 22/06/2020 17:36, Dennis-YC Hsieh wrote: >>> Hi Matthias, >>> >>> thanks for your comment. >>> >>> On Mon, 2020-06-22 at 13:07 +0200, Matthias Brugger wrote: >

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