Re: [patch RFC 00/15] mm/highmem: Provide a preemptible variant of kmap_atomic & friends

2020-09-23 Thread Thomas Gleixner
On Wed, Sep 23 2020 at 17:12, Steven Rostedt wrote: > On Wed, 23 Sep 2020 22:55:54 +0200 > Then scratch the idea of having anonymous local_lock() and just bring > local_lock in directly? Then have a kmap local lock, which would only > block those that need to do a kmap. That's still going to end u

Re: [PATCH] mm: swapfile: avoid split_swap_cluster() NULL pointer dereference

2020-09-23 Thread Huang, Ying
Rafael Aquini writes: >> >> If there's a race, we should fix the race. But the code path for >> swapcache insertion is, >> >> add_to_swap() >> get_swap_page() /* Return if fails to allocate */ >> add_to_swap_cache() >> SetPageSwapCache() >> >> While the code path to split THP is, >>

Re: [PATCH v13 2/2] Add PWM fan controller driver for LGM SoC

2020-09-23 Thread Uwe Kleine-König
Hello, (hhm Thierry already announced to have taken this patch, so my review is late.) On Tue, Sep 15, 2020 at 04:23:37PM +0800, Rahul Tanwar wrote: > Intel Lightning Mountain(LGM) SoC contains a PWM fan controller. > This PWM controller does not have any other consumer, it is a > dedicated PWM c

[PATCH v4 1/2] Add UFFD_USER_MODE_ONLY

2020-09-23 Thread Lokesh Gidra
userfaultfd handles page faults from both user and kernel code. Add a new UFFD_USER_MODE_ONLY flag for userfaultfd(2) that makes the resulting userfaultfd object refuse to handle faults from kernel mode, treating these faults as if SIGBUS were always raised, causing the kernel code to fail with EFA

[PATCH v4 0/2] Control over userfaultfd kernel-fault handling

2020-09-23 Thread Lokesh Gidra
This patch series is split from [1]. The other series enables SELinux support for userfaultfd file descriptors so that its creation and movement can be controlled. It has been demonstrated on various occasions that suspending kernel code execution for an arbitrary amount of time at any access to u

[PATCH v4 2/2] Add user-mode only option to unprivileged_userfaultfd sysctl knob

2020-09-23 Thread Lokesh Gidra
With this change, when the knob is set to 0, it allows unprivileged users to call userfaultfd, like when it is set to 1, but with the restriction that page faults from only user-mode can be handled. In this mode, an unprivileged user (without SYS_CAP_PTRACE capability) must pass UFFD_USER_MODE_ONLY

[PATCH] clk/qcom: fix spelling typo

2020-09-23 Thread Wang Qing
Modify the comment typo: "compliment" -> "complement". Signed-off-by: Wang Qing --- drivers/clk/qcom/clk-alpha-pll.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/clk/qcom/clk-alpha-pll.c b/drivers/clk/qcom/clk-alpha-pll.c index 26139ef..5644311 --- a/dri

Re: [PATCH 00/10] rpmsg: Make RPMSG name service modular

2020-09-23 Thread Guennadi Liakhovetski
Hi Mathieu, Sorry for a delayed response, after I'd sent that my message I've subscribed to remoteproc and it seems during that transition some messages were only delivered from the list and not directly to me or something similar has happened. On Tue, Sep 22, 2020 at 01:12:41PM -0600, Mathieu

Re: [PATCH 1/2 v2] iio: event: use short-hand variable in iio_device_{un}register_eventset functions

2020-09-23 Thread Alexandru Ardelean
On Wed, Sep 23, 2020 at 11:13 PM Jonathan Cameron wrote: > > On Mon, 21 Sep 2020 13:31:55 +0300 > Alexandru Ardelean wrote: > > > With the recent 'iio_dev_opaque' variable name, these two functions are > > looking a bit ugly. > > > > This change uses an 'ev_int' variable for the > > iio_device_{u

[PATCH 11/13] bdi: replace BDI_CAP_STABLE_WRITES with a queue and a sb flag

2020-09-23 Thread Christoph Hellwig
The BDI_CAP_STABLE_WRITES is one of the few bits of information in the backing_dev_info shared between the block drivers and the writeback code. To help untangling the dependency replace it with a queue flag and a superblock flag derived from it. This also helps with the case of e.g. a file system

bdi cleanups v7

2020-09-23 Thread Christoph Hellwig
Hi Jens, this series contains a bunch of different BDI cleanups. The biggest item is to isolate block drivers from the BDI in preparation of changing the lifetime of the block device BDI in a follow up series. Changes since v6: - add a new blk_queue_update_readahead helper and use it in stackin

[PATCH 12/13] bdi: invert BDI_CAP_NO_ACCT_WB

2020-09-23 Thread Christoph Hellwig
Replace BDI_CAP_NO_ACCT_WB with a positive BDI_CAP_WRITEBACK_ACCT to make the checks more obvious. Also remove the pointless bdi_cap_account_writeback wrapper that just obsfucates the check. Signed-off-by: Christoph Hellwig Reviewed-by: Jan Kara Reviewed-by: Johannes Thumshirn --- fs/fuse/ino

[PATCH 10/13] mm: use SWP_SYNCHRONOUS_IO more intelligently

2020-09-23 Thread Christoph Hellwig
There is no point in trying to call bdev_read_page if SWP_SYNCHRONOUS_IO is not set, as the device won't support it. Signed-off-by: Christoph Hellwig Reviewed-by: Jan Kara Reviewed-by: Johannes Thumshirn --- mm/page_io.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-)

[PATCH 13/13] bdi: replace BDI_CAP_NO_{WRITEBACK,ACCT_DIRTY} with a single flag

2020-09-23 Thread Christoph Hellwig
Replace the two negative flags that are always used together with a single positive flag that indicates the writeback capability instead of two related non-capabilities. Also remove the pointless wrappers to just check the flag. Signed-off-by: Christoph Hellwig Reviewed-by: Jan Kara Reviewed-by

[PATCH 05/13] bdi: initialize ->ra_pages and ->io_pages in bdi_init

2020-09-23 Thread Christoph Hellwig
Set up a readahead size by default, as very few users have a good reason to change it. This means code, ecryptfs, and orangefs now set up the values while they were previously missing it, while ubifs, mtd and vboxsf manually set it to 0 to avoid readahead. Signed-off-by: Christoph Hellwig Review

[PATCH 04/13] aoe: set an optimal I/O size

2020-09-23 Thread Christoph Hellwig
aoe forces a larger readahead size, but any reason to do larger I/O is not limited to readahead. Also set the optimal I/O size, and remove the local constants in favor of just using SZ_2G. Signed-off-by: Christoph Hellwig Reviewed-by: Jan Kara --- drivers/block/aoe/aoeblk.c | 4 ++-- 1 file ch

[PATCH 09/13] bdi: remove BDI_CAP_SYNCHRONOUS_IO

2020-09-23 Thread Christoph Hellwig
BDI_CAP_SYNCHRONOUS_IO is only checked in the swap code, and used to decided if ->rw_page can be used on a block device. Just check up for the method instead. The only complication is that zram needs a second set of block_device_operations as it can switch between modes that actually support ->rw

[PATCH 03/13] bcache: inherit the optimal I/O size

2020-09-23 Thread Christoph Hellwig
Inherit the optimal I/O size setting just like the readahead window, as any reason to do larger I/O does not apply to just readahead. Signed-off-by: Christoph Hellwig Reviewed-by: Jan Kara Acked-by: Coly Li --- drivers/md/bcache/super.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dri

[PATCH 08/13] bdi: remove BDI_CAP_CGROUP_WRITEBACK

2020-09-23 Thread Christoph Hellwig
Just checking SB_I_CGROUPWB for cgroup writeback support is enough. Either the file system allocates its own bdi (e.g. btrfs), in which case it is known to support cgroup writeback, or the bdi comes from the block layer, which always supports cgroup writeback. Signed-off-by: Christoph Hellwig Rev

[PATCH 07/13] block: lift setting the readahead size into the block layer

2020-09-23 Thread Christoph Hellwig
Drivers shouldn't really mess with the readahead size, as that is a VM concept. Instead set it based on the optimal I/O size by lifting the algorithm from the md driver when registering the disk. Also set bdi->io_pages there as well by applying the same scheme based on max_sectors. To ensure the

[PATCH 01/13] fs: remove the unused SB_I_MULTIROOT flag

2020-09-23 Thread Christoph Hellwig
The last user of SB_I_MULTIROOT is disappeared with commit f2aedb713c28 ("NFS: Add fs_context support.") Signed-off-by: Christoph Hellwig Reviewed-by: Jan Kara Reviewed-by: Johannes Thumshirn --- fs/namei.c | 4 ++-- include/linux/fs.h | 1 - 2 files changed, 2 insertions(+), 3 deletio

[PATCH 02/13] drbd: remove dead code in device_to_statistics

2020-09-23 Thread Christoph Hellwig
Ever since the switch to blk-mq, a lower device not used for VM writeback will not be marked congested, so the check will never trigger. Signed-off-by: Christoph Hellwig Reviewed-by: Jan Kara Reviewed-by: Johannes Thumshirn --- drivers/block/drbd/drbd_nl.c | 6 -- 1 file changed, 6 deletio

Re: [PATCH] KVM: SVM: Add a dedicated INVD intercept routine

2020-09-23 Thread Paolo Bonzini
On 23/09/20 22:40, Tom Lendacky wrote: >>> +static int invd_interception(struct vcpu_svm *svm) >>> +{ >>> + /* >>> +* Can't do emulation on an SEV guest and INVD is emulated >>> +* as a NOP, so just skip the instruction. >>> +*/ >>> + return (sev_guest(svm->vcpu.kvm)) >>> +

[PATCH v3 4/4] venus: put dummy vote on video-mem path after last session release

2020-09-23 Thread Mansur Alisha Shaik
As per current implementation, video driver is unvoting "videom-mem" path for last video session during vdec_session_release(). While video playback when we try to suspend device, we see video clock warnings since votes are already removed during vdec_session_release(). corrected this by putting d

[PATCH 06/13] md: update the optimal I/O size on reshape

2020-09-23 Thread Christoph Hellwig
The raid5 and raid10 drivers currently update the read-ahead size, but not the optimal I/O size on reshape. To prepare for deriving the read-ahead size from the optimal I/O size make sure it is updated as well. Signed-off-by: Christoph Hellwig Acked-by: Song Liu Reviewed-by: Johannes Thumshirn

[PATCH v3 2/4] venus: core: vote for video-mem path

2020-09-23 Thread Mansur Alisha Shaik
Currently video driver is voting for venus0-ebi path during buffer processing with an average bandwidth of all the instances and unvoting during session release. While video streaming when we try to do XO-SD using the command "echo mem > /sys/power/state command" , device is not entering to suspen

[PATCH v3 3/4] venus: core: vote with average bandwidth and peak bandwidth as zero

2020-09-23 Thread Mansur Alisha Shaik
As per bandwidth table video driver is voting with average bandwidth for "video-mem" and "cpu-cfg" paths as peak bandwidth is zero in bandwidth table. Fixes: 7482a983d ("media: venus: redesign clocks and pm domains control") Signed-off-by: Mansur Alisha Shaik --- Changes in v3: - Added fixes tag

[PATCH v3 1/4] venus: core: change clk enable and disable order in resume and suspend

2020-09-23 Thread Mansur Alisha Shaik
Currently video driver is voting after clk enable and un voting before clk disable. This is incorrect, video driver should vote before clk enable and unvote after clk disable. Corrected this by changing the order of clk enable and clk disable. Fixes: 7482a983d ("media: venus: redesign clocks and

[PATCH v3 3/6] clk: axi-clkgen: add support for ZynqMP (UltraScale)

2020-09-23 Thread Alexandru Ardelean
From: Dragos Bogdan This IP core also works and is supported on the Xilinx ZynqMP (UltraScale) FPGA boards. This patch enables the driver to be available on these platforms as well. Signed-off-by: Dragos Bogdan Signed-off-by: Alexandru Ardelean --- drivers/clk/Kconfig | 2 +- 1 file changed,

[PATCH v3 6/6] clk: axi-clkgen: Add support for FPGA info

2020-09-23 Thread Alexandru Ardelean
From: Mircea Caprioru This patch adds support for vco maximum and minimum ranges in accordance with fpga speed grade, voltage, device package, technology and family. This new information is extracted from two new registers implemented in the ip core: ADI_REG_FPGA_INFO and ADI_REG_FPGA_VOLTAGE, wh

[PATCH v3 0/4] Venus - change clk enable, disable order and change bw values

2020-09-23 Thread Mansur Alisha Shaik
The intention of this patchset is to correct clock enable and disable order and vote for venus-ebi and cpucfg paths with average bandwidth instad of peak bandwidth since with current implementation we are seeing clock related warning during XO-SD and suspend device while video playback Mansur Alis

[PATCH v3 2/6] clk: axi-clkgen: Set power bits for fractional mode

2020-09-23 Thread Alexandru Ardelean
From: Lars-Peter Clausen Using the fractional dividers requires some additional power bits to be set. The fractional power bits are not documented and the current heuristic for setting them seems be insufficient for some cases. Just always set all the fractional power bits when in fractional mod

Re: [PATCH] KVM: Enable hardware before doing arch VM initialization

2020-09-23 Thread Paolo Bonzini
On 24/09/20 08:31, Huacai Chen wrote: > Hi, Sean, > > On Thu, Sep 24, 2020 at 3:00 AM Sean Christopherson > wrote: >> >> Swap the order of hardware_enable_all() and kvm_arch_init_vm() to >> accommodate Intel's Trust Domain Extension (TDX), which needs VMX to be >> fully enabled during VM init in

[PATCH v3 4/6] clk: axi-clkgen: Respect ZYNQMP PFD/VCO frequency limits

2020-09-23 Thread Alexandru Ardelean
From: Mathias Tausen Since axi-clkgen is now supported on ZYNQMP, make sure the max/min frequencies of the PFD and VCO are respected. Signed-off-by: Mathias Tausen Signed-off-by: Alexandru Ardelean --- drivers/clk/clk-axi-clkgen.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/dri

[PATCH v3 1/6] clk: axi-clkgen: Add support for fractional dividers

2020-09-23 Thread Alexandru Ardelean
From: Lars-Peter Clausen The axi-clkgen has (optional) fractional dividers on the output clock divider and feedback clock divider path. Utilizing the fractional dividers allows for a better resolution of the output clock, being able to synthesize more frequencies. Rework the driver support to su

[PATCH v3 5/6] include: fpga: adi-axi-common.h: add definitions for supported FPGAs

2020-09-23 Thread Alexandru Ardelean
From: Mircea Caprioru All (newer) FPGA IP cores supported by Analog Devices, store information in the synthesized designs. This information describes various parameters, including the family of boards on which this is deployed, speed-grade, and so on. Currently, some of these definitions are dep

[PATCH] net/ethernet/broadcom: fix spelling typo

2020-09-23 Thread Wang Qing
Modify the comment typo: "compliment" -> "complement". Signed-off-by: Wang Qing --- drivers/net/ethernet/broadcom/bnx2x/bnx2x_reg.h | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_reg.h b/drivers/net/ethernet/broadco

[PATCH v3 0/6] clk: axi-clk-gen: misc updates to the driver

2020-09-23 Thread Alexandru Ardelean
These patches synchronize the driver with the current state in the Analog Devices Linux tree: https://github.com/analogdevicesinc/linux/ They have been in the tree for about 2-3, so they did receive some testing. Highlights are: * Add support for fractional dividers (Lars-Peter Clausen) * Enabl

Re: [PATCH] leds: lp50xx: Fix an error handling path in 'lp50xx_probe_dt()'

2020-09-23 Thread Dan Carpenter
On Wed, Sep 23, 2020 at 08:49:56PM +0200, Christophe JAILLET wrote: > Le 23/09/2020 à 15:35, Dan Carpenter a écrit : > > I've added Heikki Krogerus to the CC list because my question is mostly > > about commit 59abd83672f7 ("drivers: base: Introducing software nodes to > > the firmware node framewo

Re: [RFC PATCH 1/9] misc: Add Surface Aggregator subsystem

2020-09-23 Thread Greg Kroah-Hartman
On Wed, Sep 23, 2020 at 10:34:23PM +0200, Maximilian Luz wrote: > In short: Concurrent execution of the counter functions works, as far as > I can tell at least, and, as you see by the long answer, I have to spend > some time and think about the duplicate-value problem (again). If you've > managed

[PATCH RESEND] sched/fair: Fix wrong cpu selecting from isolated domain

2020-09-23 Thread Xunlei Pang
We've met problems that occasionally tasks with full cpumask (e.g. by putting it into a cpuset or setting to full affinity) were migrated to our isolated cpus in production environment. After some analysis, we found that it is due to the current select_idle_smt() not considering the sched_domain m

[PATCH] iwlwifi: mvm: Increase session protection duration for association

2020-09-23 Thread Kai-Heng Feng
Sometimes Intel AX201 fails to associate with AP: [ 839.290042] wlp0s20f3: authenticate with xx:xx:xx:xx:xx:xx [ 839.291737] wlp0s20f3: send auth to xx:xx:xx:xx:xx:xx (try 1/3) [ 839.350010] wlp0s20f3: send auth to xx:xx:xx:xx:xx:xx (try 2/3) [ 839.360826] wlp0s20f3: authenticated [ 839.363205

Re: [RFC PATCH 8/9] surface_aggregator: Add DebugFS interface

2020-09-23 Thread Greg Kroah-Hartman
On Thu, Sep 24, 2020 at 12:06:54AM +0200, Maximilian Luz wrote: > On 9/23/20 8:29 PM, Greg Kroah-Hartman wrote: > > On Wed, Sep 23, 2020 at 08:03:38PM +0200, Maximilian Luz wrote: > > > On 9/23/20 6:14 PM, Greg Kroah-Hartman wrote: > > [...] > > > > So the -EFAULT returned by put_user should have

linux-next: manual merge of the nvdimm tree with the vfs tree

2020-09-23 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the nvdimm tree got a conflict in: lib/iov_iter.c between commit: e33ea6e5ba6a ("x86/uaccess: Use pointer masking to limit uaccess speculation") from the vfs tree and commit: 0a78de3d4b7b ("x86, powerpc: Rename memcpy_mcsafe() to copy_mc_to_{user, ke

[PATCH] sound/soc/codecs: fix spelling typo in comments

2020-09-23 Thread Wang Qing
Modify the comment typo: "compliment" -> "complement". Signed-off-by: Wang Qing --- sound/soc/codecs/ak4458.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/ak4458.h b/sound/soc/codecs/ak4458.h index f906215..e43144c --- a/sound/soc/codecs/ak4458.h +++ b/sou

Re: [PATCH] rpadlpar_io:Add MODULE_DESCRIPTION entries to kernel modules

2020-09-23 Thread Oliver O'Halloran
On Thu, Sep 24, 2020 at 3:15 PM Mamatha Inamdar wrote: > > This patch adds a brief MODULE_DESCRIPTION to rpadlpar_io kernel modules > (descriptions taken from Kconfig file) > > Signed-off-by: Mamatha Inamdar > --- > drivers/pci/hotplug/rpadlpar_core.c |1 + > 1 file changed, 1 insertion(+) >

[PATCH -next] MIPS: OCTEON: fix error - use 'ret' after remove it

2020-09-23 Thread Qinglang Miao
Variable ret was removed in commit 0ee69c589ec("MIPS: OCTEON: use devm_platform_ioremap_resource") but still being used in devm_release_mem_region which is unneeded. So remove this line to fix error. Fixes: 0ee69c589ec("MIPS: OCTEON: use devm_platform_ioremap_resource") Reported-by: kernel test ro

Re: [PATCH] clk: rockchip: Initialize hw to error to avoid undefined behavior

2020-09-23 Thread Heiko Stübner
Am Donnerstag, 24. September 2020, 02:44:41 CEST schrieb Stephen Boyd: > We can get down to this return value from ERR_CAST() without > initializing hw. Set it to -ENOMEM so that we always return something > sane. > > Fixes the following smatch warning: > > drivers/clk/rockchip/clk-half-divider.c

Re: [PATCH v20 00/15] Introduce Data Access MONitor (DAMON)

2020-09-23 Thread SeongJae Park
On Wed, 23 Sep 2020 10:04:57 -0700 Shakeel Butt wrote: > On Mon, Aug 17, 2020 at 3:52 AM SeongJae Park wrote: > > > > From: SeongJae Park > > > > Changes from Previous Version > > = > > > > - Place 'CREATE_TRACE_POINTS' after '#include' statements (Steven Rostedt) >

linux-next: manual merge of the nvdimm tree with the vfs tree

2020-09-23 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the nvdimm tree got conflicts in: arch/x86/include/asm/uaccess_64.h between commit: e33ea6e5ba6a ("x86/uaccess: Use pointer masking to limit uaccess speculation") from the vfs tree and commit: 0a78de3d4b7b ("x86, powerpc: Rename memcpy_mcsafe() to cop

Re: [PATCH 2/2] printk: Make the console flush configurable in hotplug path

2020-09-23 Thread Sergey Senozhatsky
On (20/09/23 17:08), Prasad Sodagudi wrote: > From: Mohammed Khajapasha > > The thread which initiates the hot plug can get scheduled > out, while trying to acquire the console lock, > thus increasing the hot plug latency. This option > allows to selectively disable the console flush and > in tur

Re: [RFC PATCH 0/3] KVM: Introduce "VM bugged" concept

2020-09-23 Thread Christian Borntraeger
On 24.09.20 00:45, Sean Christopherson wrote: > This series introduces a concept we've discussed a few times in x86 land. > The crux of the problem is that x86 has a few cases where KVM could > theoretically encounter a software or hardware bug deep in a call stack > without any sane way to prop

[PATCH] power: fix spelling typo

2020-09-23 Thread Wang Qing
Modify the comment typo: "compliment" -> "complement". Signed-off-by: Wang Qing --- drivers/power/supply/ab8500_fg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/power/supply/ab8500_fg.c b/drivers/power/supply/ab8500_fg.c index 7eec415..592a73d --- a/drivers/po

RE: [EXT] Re: [PATCH] net: fec: Keep device numbering consistent with datasheet

2020-09-23 Thread Andy Duan
From: David Miller Sent: Thursday, September 24, 2020 4:32 AM > From: Stefan Riedmueller > Date: Wed, 23 Sep 2020 16:25:28 +0200 > > > From: Christian Hemp > > > > Make use of device tree alias for device enumeration to keep the > > device order consistent with the naming in the datasheet. > >

Re: [PATCH v2 2/2] USB: misc: Add onboard_usb_hub driver

2020-09-23 Thread Greg Kroah-Hartman
On Wed, Sep 23, 2020 at 03:25:45PM -0700, Matthias Kaehlcke wrote: > On Mon, Sep 21, 2020 at 06:18:37PM -0700, Matthias Kaehlcke wrote: > > On Sun, Sep 20, 2020 at 04:17:20PM +0200, Greg Kroah-Hartman wrote: > > > On Thu, Sep 17, 2020 at 11:46:22AM -0700, Matthias Kaehlcke wrote: > > > > > > > > ..

[PATCH] null_blk: synchronization fix for zoned device

2020-09-23 Thread Kanchan Joshi
Parallel write,read,zone-mgmt operations accessing/altering zone state and write-pointer may get into race. Avoid the situation by using a new spinlock for zoned device. Concurrent zone-appends (on a zone) returning same write-pointer issue is also avoided using this lock. Signed-off-by: Kanchan J

Re: [PATCH 5/5] perf test: Add expand cgroup event test

2020-09-23 Thread Namhyung Kim
On Thu, Sep 24, 2020 at 7:36 AM Ian Rogers wrote: > > On Tue, Sep 22, 2020 at 7:00 PM Namhyung Kim wrote: > > > > It'll expand given events for cgroups A, B and C. > > > > $ ./perf test -v expansion > > 69: Event expansion for cgroups : > > --- start --- > > test chil

[PATCH] arm64: dts: rockchip: disable USB type-c DisplayPort

2020-09-23 Thread Jian-Hong Pan
The cdn-dp sub driver probes the device failed on PINEBOOK Pro. kernel: cdn-dp fec0.dp: [drm:cdn_dp_probe [rockchipdrm]] *ERROR* missing extcon or phy kernel: cdn-dp: probe of fec0.dp failed with error -22 Then, the device halts all of the DRM related device jobs. For example, the operat

[PATCH] USB: serial: pl2303: add device-id for HP GC device

2020-09-23 Thread Scott Chen
This is adds a device id for HP LD381 which is a pl2303GC-base device. Signed-off-by: Scott Chen --- drivers/usb/serial/pl2303.c | 1 + drivers/usb/serial/pl2303.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c index 048452d8a4a4..

[PATCH] rcu: Clarify nocb kthreads naming in RCU_NOCB_CPU config

2020-09-23 Thread Neeraj Upadhyay
Clarify the "x" in rcuox/N naming in RCU_NOCB_CPU config description. Signed-off-by: Neeraj Upadhyay --- kernel/rcu/Kconfig | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/kernel/rcu/Kconfig b/kernel/rcu/Kconfig index b71e21f..5b22747 100644 --- a/kernel/rcu/Kconf

Re: [PATCH 2/2] printk: Make the console flush configurable in hotplug path

2020-09-23 Thread Greg KH
On Wed, Sep 23, 2020 at 05:08:32PM -0700, Prasad Sodagudi wrote: > From: Mohammed Khajapasha > > The thread which initiates the hot plug can get scheduled > out, while trying to acquire the console lock, > thus increasing the hot plug latency. This option > allows to selectively disable the conso

Re: [PATCH 1/2] genirq/cpuhotplug: Reduce logging level for couple of prints

2020-09-23 Thread Greg KH
On Wed, Sep 23, 2020 at 05:08:31PM -0700, Prasad Sodagudi wrote: > During the cpu hot plug stress testing, couple of messages > continuous flooding on to the console is causing timers > migration delay. Delayed time migrations from hot plugging > core is causing device instability with watchdog. So

Re: [PATCH] KVM: Enable hardware before doing arch VM initialization

2020-09-23 Thread Huacai Chen
Hi, Sean, On Thu, Sep 24, 2020 at 3:00 AM Sean Christopherson wrote: > > Swap the order of hardware_enable_all() and kvm_arch_init_vm() to > accommodate Intel's Trust Domain Extension (TDX), which needs VMX to be > fully enabled during VM init in order to make SEAMCALLs. > > This also provides co

Re: [PATCH] ARM: dts: document pinctrl-single,pins when #pinctrl-cells = 2

2020-09-23 Thread Trent Piepho
On Wed, Sep 23, 2020 at 11:06 PM Tony Lindgren wrote: > > * Trent Piepho [200924 05:49]: > > On Wed, Sep 23, 2020 at 10:43 PM Tony Lindgren wrote: > > > > > > * Trent Piepho [200924 01:34]: > > > > On Tue, Sep 22, 2020 at 11:57 PM Tony Lindgren wrote: > > > > > > > > > > Also FYI, folks have a

Re: [PATCH] mm: swapfile: avoid split_swap_cluster() NULL pointer dereference

2020-09-23 Thread Rafael Aquini
On Thu, Sep 24, 2020 at 11:51:17AM +0800, Huang, Ying wrote: > Rafael Aquini writes: > > The bug here is quite simple: split_swap_cluster() misses checking for > > lock_cluster() returning NULL before committing to change > > cluster_info->flags. > > I don't think so. We shouldn't run into this

[PATCH V2] doc: zh_CN: add translatation for btrfs

2020-09-23 Thread Wang Qing
Translate Documentation/filesystems/btrfs.rst into Chinese. Signed-off-by: Wang Qing --- .../translations/zh_CN/filesystems/btrfs.rst | 37 ++ 1 file changed, 37 insertions(+) diff --git a/Documentation/translations/zh_CN/filesystems/btrfs.rst b/Documentation/translat

Re: [RFC V2 0/9] x86/mmu:Introduce parallel memory virtualization to boost performance

2020-09-23 Thread Wanpeng Li
Any comments? Paolo! :) On Wed, 9 Sep 2020 at 11:04, Wanpeng Li wrote: > > Any comments? guys! > On Tue, 1 Sep 2020 at 19:52, wrote: > > > > From: Yulei Zhang > > > > Currently in KVM memory virtulization we relay on mmu_lock to > > synchronize the memory mapping update, which make vCPUs work >

[PATCH] net: usb: ax88179_178a: add Toshiba usb 3.0 adapter

2020-09-23 Thread Wilken Gottwalt
Reposted and added netdev as suggested by Jakub Kicinski. --- Adds the driver_info and usb ids of the AX88179 based Toshiba USB 3.0 ethernet adapter. Signed-off-by: Wilken Gottwalt --- drivers/net/usb/ax88179_178a.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/

Re: [PATCH] xen-blkback: add a parameter for disabling of persistent grants

2020-09-23 Thread SeongJae Park
On Wed, 23 Sep 2020 16:09:30 -0400 Konrad Rzeszutek Wilk wrote: > On Tue, Sep 22, 2020 at 09:01:25AM +0200, SeongJae Park wrote: > > From: SeongJae Park > > > > Persistent grants feature provides high scalability. On some small > > systems, however, it could incur data copy overhead[1] and th

[PATCH V2] doc: zh_CN: add translatation for tmpfs.rst

2020-09-23 Thread Wang Qing
Translate Documentation/filesystems/tmpfs.rst into Chinese. Signed-off-by: Wang Qing --- .../translations/zh_CN/filesystems/index.rst | 3 +- .../translations/zh_CN/filesystems/tmpfs.rst | 146 + 2 files changed, 148 insertions(+), 1 deletion(-) diff --git a/Do

Re: [PATCH 1/7] perf bench: Add build-id injection benchmark

2020-09-23 Thread Namhyung Kim
Hi Ian, On Thu, Sep 24, 2020 at 7:13 AM Ian Rogers wrote: > > On Wed, Sep 23, 2020 at 1:05 AM Namhyung Kim wrote: > > > > Sometimes I can see perf record piped with perf inject take long time > > processing build-id. So add inject-build-id benchmark to the > > internals benchmark suite to measu

RE: [PATCH v6 5/8] clk: clock-wizard: Add support for fractional support

2020-09-23 Thread Shubhrajyoti Datta
Hi , Thanks for the review. > -Original Message- > From: Stephen Boyd > Sent: Tuesday, September 22, 2020 2:48 AM > To: Shubhrajyoti Datta ; linux-...@vger.kernel.org > Cc: devicet...@vger.kernel.org; linux-kernel@vger.kernel.org; > de...@driverdev.osuosl.org; robh...@kernel.org; > gre...

Re: [PATCH v4 2/2] leds: mt6360: Add LED driver for MT6360

2020-09-23 Thread Gene Chen
Jacek Anaszewski 於 2020年9月24日 週四 上午5:49寫道: > > Hi Gene, > > Thank you for the update. I have some more comments below. > > On 9/23/20 2:50 PM, Gene Chen wrote: > > From: Gene Chen > > > > Add MT6360 LED driver include 2-channel Flash LED with torch/strobe mode, > > and 4-channel RGB LED support

Re: [PATCH v2 5/5] clk: qcom: add video clock controller driver for SM8250

2020-09-23 Thread Stephen Boyd
Quoting Jonathan Marek (2020-09-23 17:54:59) > On 9/23/20 7:30 PM, Stephen Boyd wrote: > > Quoting Jonathan Marek (2020-09-23 09:07:16) > >> On 9/22/20 2:46 PM, Stephen Boyd wrote: > >>> Quoting Jonathan Marek (2020-09-03 20:09:54) > >>> > + .ops = &clk_branch2_ops, > >>>

Re: [PATCH printk 3/5] printk: use buffer pool for sprint buffers

2020-09-23 Thread Sergey Senozhatsky
On (20/09/22 17:44), John Ogness wrote: > +/* > + * The sprint buffers are used with interrupts disabled, so each CPU > + * only requires 2 buffers: for non-NMI and NMI contexts. Recursive > + * printk() calls are handled by the safe buffers. > + */ > +#define SPRINT_CTX_DEPTH 2 > + > +/* Static sp

linux-next: build warning after merge of the pwm tree

2020-09-23 Thread Stephen Rothwell
Hi all, After merging the pwm tree, today's linux-next build (x86_64 allmodconfig) produced this warning: WARNING: modpost: missing MODULE_LICENSE() in drivers/pwm/pwm-intel-lgm.o Introduced by commit 9fba318f0f7f ("Add PWM fan controller driver for LGM SoC") -- Cheers, Stephen Rothwell p

Re: [PATCH v3 7/7] clk: qcom: Add display clock controller driver for SM8250

2020-09-23 Thread Stephen Boyd
Quoting Jonathan Marek (2020-09-23 09:10:04) > On 9/22/20 3:00 PM, Stephen Boyd wrote: > > Quoting Jonathan Marek (2020-09-11 08:34:07) > >> diff --git a/drivers/clk/qcom/dispcc-sm8250.c > >> b/drivers/clk/qcom/dispcc-sm8250.c > >> new file mode 100644 > >> index ..7c0f384a3a42 > >> --

Re: [PATCH v3 6/7] clk: qcom: Add display clock controller driver for SM8150

2020-09-23 Thread Stephen Boyd
Quoting Jonathan Marek (2020-09-23 09:24:04) > On 9/22/20 3:04 PM, Stephen Boyd wrote: > > Quoting Jonathan Marek (2020-09-11 08:34:06) > >> Add support for the display clock controller found on SM8150 > >> based devices. This would allow display drivers to probe and > >> control their clocks. > >>

Re: [PATCH v1 1/6] dt_bindings: mfd: Add ROHM BD9576MUF and BD9573MUF PMICs

2020-09-23 Thread Vaittinen, Matti
On Wed, 2020-09-23 at 08:27 -0600, Rob Herring wrote: > On Sat, Sep 19, 2020 at 5:46 AM Vaittinen, Matti > wrote: > > Thanks Rob for taking a look at this! > > > > On Fri, 2020-09-18 at 11:28 -0600, Rob Herring wrote: > > > On Thu, Sep 17, 2020 at 11:01:52AM +0300, Matti Vaittinen wrote: > > > >

[PATCH v2] perf annotate mips: Add perf arch instructions annotate handlers

2020-09-23 Thread Peng Fan
From: Dengcheng Zhu Support the MIPS architecture using the ins_ops association method. With this patch, perf-annotate can work well on MIPS. Testing it with a perf.data file collected on a mips machine: $./perf annotate -i perf.data : Disassembly of section .text: :

Re: [PATCH] drm/rockchip: skip probed failed device

2020-09-23 Thread Jian-Hong Pan
Heiko Stübner 於 2020年9月23日 週三 下午7:16寫道: > > Am Mittwoch, 23. September 2020, 13:05:26 CEST schrieb Robin Murphy: > > On 2020-09-23 07:59, Jian-Hong Pan wrote: > > > The cdn-dp sub driver probes the device failed on PINEBOOK Pro. > > > > > > kernel: cdn-dp fec0.dp: [drm:cdn_dp_probe [rockchipdr

Re: [PATCH] ARM: dts: document pinctrl-single,pins when #pinctrl-cells = 2

2020-09-23 Thread Tony Lindgren
* Trent Piepho [200924 05:49]: > On Wed, Sep 23, 2020 at 10:43 PM Tony Lindgren wrote: > > > > * Trent Piepho [200924 01:34]: > > > On Tue, Sep 22, 2020 at 11:57 PM Tony Lindgren wrote: > > > > > > > > Also FYI, folks have also complained for a long time that the > > > > pinctrl-single > > > >

[PATCH v2] fs: Kill DCACHE_DONTCACHE dentry even if DCACHE_REFERENCED is set

2020-09-23 Thread Hao Li
If DCACHE_REFERENCED is set, fast_dput() will return true, and then retain_dentry() have no chance to check DCACHE_DONTCACHE. As a result, the dentry won't be killed and the corresponding inode can't be evicted. In the following example, the DAX policy can't take effects unless we do a drop_caches

Re: [PATCH] Revert "net: linkwatch: add check for netdevice being present to linkwatch_do_dev"

2020-09-23 Thread Saeed Mahameed
On Wed, 2020-09-23 at 17:23 -0700, David Miller wrote: > From: David Miller > Date: Wed, 23 Sep 2020 17:21:25 -0700 (PDT) > > > If an async code path tests 'present', gets true, and then the RTNL > > holding synchronous code path puts the device into D3hot > immediately > > afterwards, the async

Re: [PATCH] ARM: dts: document pinctrl-single,pins when #pinctrl-cells = 2

2020-09-23 Thread Trent Piepho
On Wed, Sep 23, 2020 at 10:43 PM Tony Lindgren wrote: > > * Trent Piepho [200924 01:34]: > > On Tue, Sep 22, 2020 at 11:57 PM Tony Lindgren wrote: > > > > > > Also FYI, folks have also complained for a long time that the > > > pinctrl-single > > > binding mixes mux and conf values while they sh

Re: [Linux-stm32] [PATCH 3/3] ARM: dts: stm32: update stm32mp151 for remote proc synchronisation support

2020-09-23 Thread Ahmad Fatoum
Hello Arnaud, On 8/27/20 9:21 AM, Arnaud Pouliquen wrote: > Two backup registers are used to store the Cortex-M4 state and the resource > table address. > Declare the tamp node and add associated properties in m4_rproc node > to allow Linux to attach to a firmware loaded by the first boot stages.

Re: [PATCH] ARM: dts: document pinctrl-single,pins when #pinctrl-cells = 2

2020-09-23 Thread Tony Lindgren
* Trent Piepho [200924 01:34]: > On Tue, Sep 22, 2020 at 11:57 PM Tony Lindgren wrote: > > > > Also FYI, folks have also complained for a long time that the pinctrl-single > > binding mixes mux and conf values while they should be handled separately. > > > > Instead of combining two fields when

Re: [PATCH v2 0/6] clk: axi-clk-gen: misc updates to the driver

2020-09-23 Thread Alexandru Ardelean
On Thu, Sep 24, 2020 at 7:53 AM Moritz Fischer wrote: > > Hi Stephen, > > On Wed, Sep 23, 2020 at 04:58:33PM -0700, Stephen Boyd wrote: > > Quoting Alexandru Ardelean (2020-09-22 23:22:33) > > > On Tue, Sep 22, 2020 at 10:42 PM Stephen Boyd wrote: > > > > > > > > Quoting Moritz Fischer (2020-09-1

Re: [PATCH printk 3/5] printk: use buffer pool for sprint buffers

2020-09-23 Thread Sergey Senozhatsky
On (20/09/23 17:11), Petr Mladek wrote: > > AFAIK, there is one catch. We need to use va_copy() around > the 1st call because va_format can be proceed only once. > Current printk() should be good enough for reporting, say, "Kernel stack overflow" errors. Is extra pressure that va_copy() adds somet

[PATCH] Input: trackpoint - enable Synaptics trackpoints

2020-09-23 Thread Vincent Huang
Add Synaptics IDs in trackpoint_start_protocol() to mark them as valid. Signed-off-by: Vincent Huang --- drivers/input/mouse/trackpoint.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/input/mouse/trackpoint.c b/drivers/input/mouse/trackpoint.c index 854d5e758724..ef2fa0905208 100

Re: [PATCH] KVM: Enable hardware before doing arch VM initialization

2020-09-23 Thread Christian Borntraeger
On 23.09.20 20:57, Sean Christopherson wrote: > Swap the order of hardware_enable_all() and kvm_arch_init_vm() to > accommodate Intel's Trust Domain Extension (TDX), which needs VMX to be > fully enabled during VM init in order to make SEAMCALLs. > > This also provides consistent ordering betwe

Re: [PATCH] doc: zh_CN: add translatation for btrfs

2020-09-23 Thread Alex Shi
Hi Qing, It looks like all vivo guys patch has 'charset=y' problem and mess code which fails on a success 'git am'. I have to repeat the same reminder again and again... Could you guys double your patches before send out? and make sure docs looks good on webpage, like https://www.kernel.org/doc

[PATCH v3] mm: cma: indefinitely retry allocations in cma_alloc

2020-09-23 Thread Chris Goldsworthy
V1: Introduces a retry loop that attempts a CMA allocation a finite number of times before giving up: https://lkml.org/lkml/2020/8/5/1097 https://lkml.org/lkml/2020/8/11/893 V2: Introduces an indefinite retry for CMA allocations. David Hildenbrand raised a page pinning example which precludes d

[PATCH v3] mm: cma: indefinitely retry allocations in cma_alloc

2020-09-23 Thread Chris Goldsworthy
CMA allocations will fail if 'pinned' pages are in a CMA area, since we cannot migrate pinned pages. The _refcount of a struct page being greater than _mapcount for that page can cause pinning for anonymous pages. This is because try_to_unmap(), which (1) is called in the CMA allocation path, and

[PATCH] rpadlpar_io:Add MODULE_DESCRIPTION entries to kernel modules

2020-09-23 Thread Mamatha Inamdar
This patch adds a brief MODULE_DESCRIPTION to rpadlpar_io kernel modules (descriptions taken from Kconfig file) Signed-off-by: Mamatha Inamdar --- drivers/pci/hotplug/rpadlpar_core.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/hotplug/rpadlpar_core.c b/drivers/pci/hotplug

Re: [PATCH v2] mm: cma: indefinitely retry allocations in cma_alloc

2020-09-23 Thread Chris Goldsworthy
On 2020-09-17 10:54, Chris Goldsworthy wrote: On 2020-09-15 00:53, David Hildenbrand wrote: On 14.09.20 20:33, Chris Goldsworthy wrote: On 2020-09-14 02:31, David Hildenbrand wrote: On 11.09.20 21:17, Chris Goldsworthy wrote: So, inside of cma_alloc(), instead of giving up when alloc_contig_

Re: [PATCH v2] powerpc/pci: unmap legacy INTx interrupts when a PHB is removed

2020-09-23 Thread Alexey Kardashevskiy
On 23/09/2020 17:06, Cédric Le Goater wrote: > On 9/23/20 2:33 AM, Qian Cai wrote: >> On Fri, 2020-08-07 at 12:18 +0200, Cédric Le Goater wrote: >>> When a passthrough IO adapter is removed from a pseries machine using >>> hash MMU and the XIVE interrupt mode, the POWER hypervisor expects the >>

Re: [PATCH v3 2/3] misc: bcm-vk: add Broadcom VK driver

2020-09-23 Thread Greg Kroah-Hartman
On Wed, Sep 23, 2020 at 09:43:55PM -0700, Scott Branden wrote: > >> +struct bcm_vk_tty { > >> + struct tty_port port; > >> + uint32_t to_offset; /* bar offset to use */ > >> + uint32_t to_size; /* to VK buffer size */ > >> + uint32_t wr;/* write offset shadow */ > >> + ui

Re: [PATCH -next] crypto: qat - remove unnecessary mutex_init()

2020-09-23 Thread Giovanni Cabiddu
On Wed, Sep 16, 2020 at 07:21:21AM +0100, Qinglang Miao wrote: > The mutex adf_ctl_lock is initialized statically. It is > unnecessary to initialize by mutex_init(). > > Signed-off-by: Qinglang Miao Acked-by: Giovanni Cabiddu > --- > drivers/crypto/qat/qat_common/adf_ctl_drv.c | 2 -- > 1 fil

Re: [PATCH -next] crypto: qat - convert to use DEFINE_SEQ_ATTRIBUTE macro

2020-09-23 Thread Giovanni Cabiddu
On Wed, Sep 16, 2020 at 03:50:17AM +0100, Liu Shixin wrote: > Use DEFINE_SEQ_ATTRIBUTE macro to simplify the code. > > Signed-off-by: Liu Shixin Acked-by: Giovanni Cabiddu > --- > drivers/crypto/qat/qat_common/adf_cfg.c | 19 + > .../qat/qat_common/adf_transport_debug.c | 4

  1   2   3   4   5   6   7   8   9   10   >