[PATCH v2 net-next 2/2] nfc: s3fwrn5: Remove hard coded interrupt trigger type from the i2c module

2020-12-08 Thread Bongsu Jeon
From: Bongsu Jeon For the flexible control of interrupt trigger type, remove the hard coded interrupt trigger type in the i2c module. The trigger type will be loaded from a dts. Signed-off-by: Bongsu Jeon --- drivers/nfc/s3fwrn5/i2c.c | 7 ++- 1 file changed, 6 insertions(+), 1

[PATCH v4 1/6] dt-bindings: remoteproc: Add binding doc for PRU cores in the PRU-ICSS

2020-12-08 Thread Grzegorz Jaszczyk
From: Suman Anna The Programmable Real-Time Unit and Industrial Communication Subsystem (PRU-ICSS or simply PRUSS) on various TI SoCs consists of dual 32-bit RISC cores (Programmable Real-Time Units, or PRUs) for program execution. The K3 AM65x amd J721E SoCs have the next generation of the

How do I read kernel audit messages using NETLINK_AUDIT in user space

2020-12-08 Thread Bhat, Jayalakshmi Manjunath
Hi All, I am trying to read kernel audit messages specially generated by XFRM in user space. I wrote Netlink client stub to read the audit message as below. But the call recvfrom gets blocked indefinite. Can any one tell me what am I doing wrong? Regards, Jayalakshmi #include #include

[PATCH v2 net-next 1/2] dt-bindings: net: nfc: s3fwrn5: Change I2C interrupt trigger type

2020-12-08 Thread Bongsu Jeon
From: Bongsu Jeon Change interrupt trigger from IRQ_TYPE_LEVEL_HIGH to IRQ_TYPE_EDGE_RISING for stable NFC I2C interrupt handling. Samsung's NFC Firmware sends an i2c frame as below. 1. NFC Firmware sets the GPIO(interrupt pin) high when there is an i2c frame to send. 2. If the CPU's I2C

[PATCH v4 0/6] Add a PRU remoteproc driver

2020-12-08 Thread Grzegorz Jaszczyk
Hi All, The Programmable Real-Time Unit and Industrial Communication Subsystem (PRU-ICSS or simply PRUSS) on various TI SoCs consists of dual 32-bit RISC cores (Programmable Real-Time Units, or PRUs) for program execution. The K3 AM65x and J721E SoCs have the next generation of the PRU-ICSS IP,

[PATCH v2 net-next 0/2] nfc: s3fwrn5: Change I2C interrupt trigger to EDGE_RISING

2020-12-08 Thread Bongsu Jeon
From: Bongsu Jeon For stable Samsung's I2C interrupt handling, I changed the interrupt trigger from IRQ_TYPE_LEVEL_HIGH to IRQ_TYPE_EDGE_RISING and removed the hard coded interrupt trigger type in the i2c module for the flexible control. 1/2 is the changed dt binding for the edge rising

Re: Howto listen to/handle gpio state changes ? Re: [PATCH v2 2/2] drivers: gpio: add virtio-gpio guest driver

2020-12-08 Thread Enrico Weigelt, metux IT consult
On 08.12.20 10:38, Linus Walleij wrote: Hi, > This is Bartosz territory, but the gpio-mockup.c driver will insert > IRQs into the system, he went and added really core stuff > into kernel/irq to make this happen. Notice that in Kconfig > it does: > > select IRQ_SIM > > Then this is used: >

[PATCH] soc: ti: omap-prm: Fix boot time errors for rst_map_012 bits 0 and 1

2020-12-08 Thread Tony Lindgren
We have rst_map_012 used for various accelerators like dsp, ipu and iva. For these use cases, we have rstctrl bit 2 control the subsystem module reset, and have and bits 0 and 1 control the accelerator specific features. If the bootloader, or kexec boot, has left any accelerator specific reset

Re: [PATCH] mmc: mediatek: mark PM functions as __maybe_unused

2020-12-08 Thread Arnd Bergmann
On Mon, Dec 7, 2020 at 1:33 PM Paul Cercueil wrote: > Le ven. 4 déc. 2020 à 15:14, Arnd Bergmann a écrit > By the way, as I'm ending up doing the same in a different context, I > think it would be useful to have a IF_ENABLED() macro defined like this: > > #define IF_ENABLED(_cfg, _ptr)

Re: [PATCH next v3 2/3] printk: define CONSOLE_LOG_MAX in printk.h

2020-12-08 Thread Petr Mladek
On Tue 2020-12-08 08:48:57, John Ogness wrote: > On 2020-12-07, John Ogness wrote: > > CONSOLE_EXT_LOG_MAX for extended console messages is already defined > > in printk.h. Define CONSOLE_LOG_MAX there as well so that future > > changes can make use of the constant for non-extended console > >

Re: Why the auxiliary cipher in gss_krb5_crypto.c?

2020-12-08 Thread Ard Biesheuvel
On Tue, 8 Dec 2020 at 14:25, David Howells wrote: > > I wonder - would it make sense to reserve two arrays of scatterlist structs > and a mutex per CPU sufficient to map up to 1MiB of pages with each array > while the krb5 service is in use? > > That way sunrpc could, say, grab the mutex, map the

Re: Why the auxiliary cipher in gss_krb5_crypto.c?

2020-12-08 Thread David Howells
David Howells wrote: > I wonder - would it make sense to reserve two arrays of scatterlist structs > and a mutex per CPU sufficient to map up to 1MiB of pages with each array > while the krb5 service is in use? Actually, simply reserving a set per CPU is probably unnecessary. We could, say,

Re: [PATCH v3 3/6] remoteproc: pru: Add support for PRU specific interrupt configuration

2020-12-08 Thread Grzegorz Jaszczyk
Hi Mathieu On Mon, 7 Dec 2020 at 18:37, Mathieu Poirier wrote: [...] > > +static int pru_handle_intrmap(struct rproc *rproc) > > +{ > > + struct device *dev = rproc->dev.parent; > > + struct pru_rproc *pru = rproc->priv; > > + struct pru_irq_rsc *rsc = pru->pru_interrupt_map; > > +

Re: [PATCH next v3 3/3] printk: remove logbuf_lock protection for ringbuffer

2020-12-08 Thread Petr Mladek
On Mon 2020-12-07 23:26:20, John Ogness wrote: > Since the ringbuffer is lockless, there is no need for it to be > protected by @logbuf_lock. Remove @logbuf_lock protection of the > ringbuffer. This patch removes the protection only on the write part. Please, make it clear here and also in the

RE: [PATCH -next] thermal: intel_pch_thermal: fix build for ACPI not enabled

2020-12-08 Thread Pawnikar, Sumeet R
> -Original Message- > From: Randy Dunlap > Sent: Tuesday, November 17, 2020 8:08 AM > To: linux-kernel@vger.kernel.org > Cc: Randy Dunlap ; Pawnikar, Sumeet R > ; Daniel Lezcano ; > Zhang, Rui ; Amit Kucheria ; linux- > p...@vger.kernel.org > Subject: [PATCH -next] thermal:

Re: [PATCH v2 1/1] ARM: dts: mmp2-olpc-xo-1-75: clear the warnings when make dtbs

2020-12-08 Thread Arnd Bergmann
On Mon, Dec 7, 2020 at 9:47 AM Zhen Lei wrote: > > The check_spi_bus_bridge() in scripts/dtc/checks.c requires that the node > have "spi-slave" property must with "#address-cells = <0>" and > "#size-cells = <0>". But currently both "#address-cells" and "#size-cells" > properties are deleted, the

Re: [PATCH v2 2/4] spi: Add devicetree bindings documentation for Loongson SPI

2020-12-08 Thread Mark Brown
On Tue, Dec 08, 2020 at 06:47:10PM +0800, zhangqing wrote: > On 12/08/2020 04:40 PM, Sergei Shtylyov wrote: > > > +Required properties: > > > +- #interrupts: No hardware interrupt. > >You say it's a required prop, yet yuoe example doesn't have it... > I want to emphasize here that

Re: [PATCH 3/5] drm: Add and export function drm_gem_cma_mmap_noncoherent

2020-12-08 Thread Paul Cercueil
Hi Christoph, Le mar. 3 nov. 2020 à 19:13, Paul Cercueil a écrit : Hi Christoph, Le mar. 3 nov. 2020 à 18:50, Christoph Hellwig a écrit : On Mon, Nov 02, 2020 at 10:06:49PM +, Paul Cercueil wrote: This function can be used by drivers that need to mmap dumb buffers created with

[PATCH net-next] net: atheros: simplify the return expression of atl2_phy_setup_autoneg_adv()

2020-12-08 Thread Zheng Yongjun
Simplify the return expression. Signed-off-by: Zheng Yongjun --- drivers/net/ethernet/atheros/atlx/atl2.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/net/ethernet/atheros/atlx/atl2.c b/drivers/net/ethernet/atheros/atlx/atl2.c index

Re: [PATCH v2 1/4] spi: LS7A: Add Loongson LS7A SPI controller driver support

2020-12-08 Thread Mark Brown
On Tue, Dec 08, 2020 at 03:44:24PM +0800, Qing Zhang wrote: > v2: > - keep Kconfig and Makefile sorted > - make the entire comment a C++ one so things look more intentional You say this but... > +++ b/drivers/spi/spi-ls7a.c > @@ -0,0 +1,324 @@ > +// SPDX-License-Identifier: GPL-2.0-only > +/* >

[PATCH v2 2/2] scsi: ufs: Uninline ufshcd_vops_device_reset function

2020-12-08 Thread Stanley Chu
Since more and more statements showing up in ufshcd_vops_device_reset(), uninline it to allow compiler making possibly better optimization. Signed-off-by: Stanley Chu --- drivers/scsi/ufs/ufshcd.c | 27 ++- drivers/scsi/ufs/ufshcd.h | 19 +-- 2 files

[PATCH v2 1/2] scsi: ufs: Re-enable WriteBooster after device reset

2020-12-08 Thread Stanley Chu
UFS 3.1 specification mentions that below WriteBooster flags will be set to default value, say disabled, after power cycle or any type of reset event. Thus we need to reset those flag variables kept in struct hba to align the device status and ensure WriteBooster related functions being configured

[PATCH v2 0/2] scsi: ufs: Re-enable WB after device reset

2020-12-08 Thread Stanley Chu
Hi, This series fixes up an issue that WB is not re-enabled after device reset. Stanley Chu (2): scsi: ufs: Re-enable WriteBooster after device reset scsi: ufs: Uninline ufshcd_vops_device_reset function drivers/scsi/ufs/ufshcd.c | 27 ++- drivers/scsi/ufs/ufshcd.h

[PATCH net-next] net/mlx5: simplify the return expression of mlx5_esw_offloads_pair()

2020-12-08 Thread Zheng Yongjun
Simplify the return expression. Signed-off-by: Zheng Yongjun --- drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c

Re: [PATCH] virtio: replace constant parameter '1' with num

2020-12-08 Thread Michael S. Tsirkin
On Tue, Dec 08, 2020 at 07:57:51PM +0800, liush wrote: > 'num' can represent the value of out_sgs(in_sags), no need to pass > in constant parameters in 'virtqueue_add'. > > Signed-off-by: liush Point being? A constant is likely easier for the compiler to optimize ... > --- >

Re: [PATCH v2] vfio iommu type1: Improve vfio_iommu_type1_pin_pages performance

2020-12-08 Thread xuxiaoyang (C)
On 2020/11/21 15:58, xuxiaoyang (C) wrote: > vfio_pin_pages() accepts an array of unrelated iova pfns and processes > each to return the physical pfn. When dealing with large arrays of > contiguous iovas, vfio_iommu_type1_pin_pages is very inefficient because > it is processed page by page.In

Re: [PATCH net-next] net: openvswitch: conntrack: simplify the return expression of ovs_ct_limit_get_default_limit()

2020-12-08 Thread Eelco Chaudron
On 8 Dec 2020, at 13:13, Zheng Yongjun wrote: > Simplify the return expression. > > Signed-off-by: Zheng Yongjun Change looks good to me. Reviewed-by: Eelco Chaudron

[PATCH net-next] net/mlx4: simplify the return expression of mlx4_init_cq_table()

2020-12-08 Thread Zheng Yongjun
Simplify the return expression. Signed-off-by: Zheng Yongjun --- drivers/net/ethernet/mellanox/mlx4/cq.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx4/cq.c b/drivers/net/ethernet/mellanox/mlx4/cq.c index

Re: [PATCH v8 00/16] Add support for Clang LTO

2020-12-08 Thread Arnd Bergmann
On Tue, Dec 8, 2020 at 1:15 PM Arnd Bergmann wrote: > On Tue, Dec 1, 2020 at 10:37 PM 'Sami Tolvanen' via Clang Built Linux > wrote: > > - many builds complain about thousands of duplicate symbols in the kernel, > e.g. > ld.lld: error: duplicate symbol: qrtr_endpoint_post > >>> defined in

[PATCH net-next] drivers: net: ionic: simplify the return expression of ionic_set_rxfh()

2020-12-08 Thread Zheng Yongjun
Simplify the return expression. Signed-off-by: Zheng Yongjun --- drivers/net/ethernet/pensando/ionic/ionic_ethtool.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/net/ethernet/pensando/ionic/ionic_ethtool.c

[PATCH net-next] drivers: net: qlcnic: simplify the return expression of qlcnic_sriov_vf_shutdown()

2020-12-08 Thread Zheng Yongjun
Simplify the return expression. Signed-off-by: Zheng Yongjun --- drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c

Re: [PATCH 1/4] sched/fair: Remove SIS_AVG_CPU

2020-12-08 Thread Mel Gorman
On Tue, Dec 08, 2020 at 02:43:10PM +0100, Vincent Guittot wrote: > On Tue, 8 Dec 2020 at 14:36, Mel Gorman wrote: > > > > On Tue, Dec 08, 2020 at 02:24:32PM +0100, Vincent Guittot wrote: > > > > > Nitpick: > > > > > > > > > > Since now avg_cost and avg_idle are only used w/ SIS_PROP, they could

Re: [PATCH] dt-bindings: Correct GV11B GPU register sizes

2020-12-08 Thread Thierry Reding
On Mon, Dec 07, 2020 at 05:13:52PM -0600, Rob Herring wrote: > On Tue, 24 Nov 2020 12:18:42 +, Jon Hunter wrote: > > Commit 90a09178f309 ("dt-bindings: Add documentation for GV11B GPU") > > added the GV11B GPU device-tree bindings information but incorrectly > > added an additional 0 to the

Re: [PATCH] vdpa/mlx5: Use write memory barrier after updating CQ index

2020-12-08 Thread Michael S. Tsirkin
On Tue, Dec 08, 2020 at 11:15:00AM +0200, Eli Cohen wrote: > On Mon, Dec 07, 2020 at 10:51:44AM +0800, Jason Wang wrote: > > > > On 2020/12/6 下午6:57, Eli Cohen wrote: > > > Make sure to put write memory barrier after updating CQ consumer index > > > so the hardware knows that there are available

Re: [PATCH] thermal/core: Emit a warning if the thermal zone is updated without ops

2020-12-08 Thread Daniel Lezcano
Hi Lukasz, On 08/12/2020 10:36, Lukasz Luba wrote: > Hi Daniel, [ ... ] >>     static void thermal_zone_device_init(struct thermal_zone_device *tz) >> @@ -553,11 +555,9 @@ void thermal_zone_device_update(struct >> thermal_zone_device *tz, >>   if (atomic_read(_suspend)) >>  

Re: [PATCH v2 03/10] ovl: check privs before decoding file handle

2020-12-08 Thread Amir Goldstein
On Mon, Dec 7, 2020 at 6:36 PM Miklos Szeredi wrote: > > CAP_DAC_READ_SEARCH is required by open_by_handle_at(2) so check it in > ovl_decode_real_fh() as well to prevent privilege escalation for > unprivileged overlay mounts. > > Signed-off-by: Miklos Szeredi > --- > fs/overlayfs/namei.c | 3

Re: [PATCH v4 11/19] sched/core: Make migrate disable and CPU hotplug cooperative

2020-12-08 Thread Qian Cai
On Mon, 2020-12-07 at 19:27 +, Valentin Schneider wrote: > Ok, can reproduce this on a TX2 on next-20201207. I didn't use your config, > I oldconfig'd my distro config and only modified it to CONFIG_PREEMPT_NONE. > Interestingly the BUG happens on CPU127 here too... I think that number is

Re: [PATCH v4 1/4] pwm: pca9685: Switch to atomic API

2020-12-08 Thread Thierry Reding
On Tue, Dec 08, 2020 at 11:12:18AM +0100, Clemens Gruber wrote: > Hello Uwe, > > On Tue, Dec 08, 2020 at 10:10:33AM +0100, Uwe Kleine-König wrote: > > Hello Clemens, > > > > On Tue, Dec 08, 2020 at 12:13:44AM +0100, Clemens Gruber wrote: > > > On Mon, Dec 07, 2020 at 11:00:25PM +0100, Uwe

Re: [PATCH 1/4] sched/fair: Remove SIS_AVG_CPU

2020-12-08 Thread Vincent Guittot
On Tue, 8 Dec 2020 at 14:36, Mel Gorman wrote: > > On Tue, Dec 08, 2020 at 02:24:32PM +0100, Vincent Guittot wrote: > > > > Nitpick: > > > > > > > > Since now avg_cost and avg_idle are only used w/ SIS_PROP, they could go > > > > completely into the SIS_PROP if condition. > > > > > > > > > >

Re: [PATCH 1/4] sched/fair: Remove SIS_AVG_CPU

2020-12-08 Thread Mel Gorman
On Tue, Dec 08, 2020 at 02:24:32PM +0100, Vincent Guittot wrote: > > > Nitpick: > > > > > > Since now avg_cost and avg_idle are only used w/ SIS_PROP, they could go > > > completely into the SIS_PROP if condition. > > > > > > > Yeah, I can do that. In the initial prototype, that happened in a > >

[PATCH 1/1] scsi: Fix possible buffer overflows in storvsc_queuecommand

2020-12-08 Thread Xiaohui Zhang
From: Zhang Xiaohui storvsc_queuecommand() calls memcpy() without checking the destination size may trigger a buffer overflower, which a local user could use to cause denial of service or the execution of arbitrary code. Fix it by putting the length check before calling memcpy(). Signed-off-by:

[PATCH] extcon: max77693: Fix modalias string

2020-12-08 Thread Marek Szyprowski
The platform device driver name is "max77693-muic", so advertise it properly in the modalias string. This fixes automated module loading when this driver is compiled as a module. Fixes: db1b9037424b ("extcon: MAX77693: Add extcon-max77693 driver to support Maxim MAX77693 MUIC device")

Re: [PATCH v2 08/39] scripts: get_abi.pl: prevent duplicated file names

2020-12-08 Thread Nícolas F . R . A . Prado
On Fri, Oct 30, 2020 at 08:40:27AM +0100, Mauro Carvalho Chehab wrote: > The same filename may exist on multiple directories within > ABI. Create separate entries at the internal database for > each of them. > > Signed-off-by: Mauro Carvalho Chehab > --- > scripts/get_abi.pl | 15

RE: [PATCH v2 2/2] iio: dac: ad5766: add driver support for AD5766

2020-12-08 Thread Pop, Cristian
> -Original Message- > From: Jonathan Cameron > Sent: Saturday, December 5, 2020 8:01 PM > To: Pop, Cristian > Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; > devicet...@vger.kernel.org; robh...@kernel.org > Subject: Re: [PATCH v2 2/2] iio: dac: ad5766: add driver

[PATCH v5 15/15] arm64: Remove logic to kill 32-bit tasks on 64-bit-only cores

2020-12-08 Thread Will Deacon
The scheduler now knows enough about these braindead systems to place 32-bit tasks accordingly, so throw out the safety checks and allow the ret-to-user path to avoid do_notify_resume() if there is nothing to do. Signed-off-by: Will Deacon --- arch/arm64/kernel/process.c | 14 +-

[PATCH v5 09/15] sched: Reject CPU affinity changes based on task_cpu_possible_mask()

2020-12-08 Thread Will Deacon
Reject explicit requests to change the affinity mask of a task via set_cpus_allowed_ptr() if the requested mask is not a subset of the mask returned by task_cpu_possible_mask(). This ensures that the 'cpus_mask' for a given task cannot contain CPUs which are incapable of executing it, except in

[PATCH v5 13/15] arm64: Prevent offlining first CPU with 32-bit EL0 on mismatched system

2020-12-08 Thread Will Deacon
If we want to support 32-bit applications, then when we identify a CPU with mismatched 32-bit EL0 support we must ensure that we will always have an active 32-bit CPU available to us from then on. This is important for the scheduler, because is_cpu_allowed() will be constrained to 32-bit CPUs for

[PATCH v5 10/15] sched: Introduce force_compatible_cpus_allowed_ptr() to limit CPU affinity

2020-12-08 Thread Will Deacon
Asymmetric systems may not offer the same level of userspace ISA support across all CPUs, meaning that some applications cannot be executed by some CPUs. As a concrete example, upcoming arm64 big.LITTLE designs do not feature support for 32-bit applications on both clusters. Although userspace

[PATCH v5 14/15] arm64: Hook up cmdline parameter to allow mismatched 32-bit EL0

2020-12-08 Thread Will Deacon
Allow systems with mismatched 32-bit support at EL0 to run 32-bit applications based on a new kernel parameter. Signed-off-by: Will Deacon --- Documentation/admin-guide/kernel-parameters.txt | 8 arch/arm64/kernel/cpufeature.c | 7 +++ 2 files changed, 15

[PATCH v5 11/15] arm64: Implement task_cpu_possible_mask()

2020-12-08 Thread Will Deacon
Provide an implementation of task_cpu_possible_mask() so that we can prevent 64-bit-only cores being added to the 'cpus_mask' for compat tasks on systems with mismatched 32-bit support at EL0, Signed-off-by: Will Deacon --- arch/arm64/include/asm/mmu_context.h | 13 + 1 file

[PATCH v5 12/15] arm64: exec: Adjust affinity for compat tasks with mismatched 32-bit EL0

2020-12-08 Thread Will Deacon
When exec'ing a 32-bit task on a system with mismatched support for 32-bit EL0, try to ensure that it starts life on a CPU that can actually run it. Reviewed-by: Quentin Perret Signed-off-by: Will Deacon --- arch/arm64/kernel/process.c | 14 +- 1 file changed, 13 insertions(+), 1

[PATCH v5 08/15] cpuset: Honour task_cpu_possible_mask() in guarantee_online_cpus()

2020-12-08 Thread Will Deacon
Asymmetric systems may not offer the same level of userspace ISA support across all CPUs, meaning that some applications cannot be executed by some CPUs. As a concrete example, upcoming arm64 big.LITTLE designs do not feature support for 32-bit applications on both clusters. Modify

[PATCH v5 07/15] cpuset: Don't use the cpu_possible_mask as a last resort for cgroup v1

2020-12-08 Thread Will Deacon
If the scheduler cannot find an allowed CPU for a task, cpuset_cpus_allowed_fallback() will widen the affinity to cpu_possible_mask if cgroup v1 is in use. In preparation for allowing architectures to provide their own fallback mask, just return early if we're not using cgroup v2 and allow

[PATCH v5 06/15] sched: Introduce task_cpu_possible_mask() to limit fallback rq selection

2020-12-08 Thread Will Deacon
Asymmetric systems may not offer the same level of userspace ISA support across all CPUs, meaning that some applications cannot be executed by some CPUs. As a concrete example, upcoming arm64 big.LITTLE designs do not feature support for 32-bit applications on both clusters. On such a system, we

[PATCH v5 05/15] arm64: Advertise CPUs capable of running 32-bit applications in sysfs

2020-12-08 Thread Will Deacon
Since 32-bit applications will be killed if they are caught trying to execute on a 64-bit-only CPU in a mismatched system, advertise the set of 32-bit capable CPUs to userspace in sysfs. Reviewed-by: Greg Kroah-Hartman Signed-off-by: Will Deacon --- .../ABI/testing/sysfs-devices-system-cpu

[PATCH v5 02/15] arm64: Allow mismatched 32-bit EL0 support

2020-12-08 Thread Will Deacon
When confronted with a mixture of CPUs, some of which support 32-bit applications and others which don't, we quite sensibly treat the system as 64-bit only for userspace and prevent execve() of 32-bit binaries. Unfortunately, some crazy folks have decided to build systems like this with the

[PATCH v5 03/15] KVM: arm64: Kill 32-bit vCPUs on systems with mismatched EL0 support

2020-12-08 Thread Will Deacon
If a vCPU is caught running 32-bit code on a system with mismatched support at EL0, then we should kill it. Acked-by: Marc Zyngier Signed-off-by: Will Deacon --- arch/arm64/kvm/arm.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/arm64/kvm/arm.c

[PATCH v5 04/15] arm64: Kill 32-bit applications scheduled on 64-bit-only CPUs

2020-12-08 Thread Will Deacon
Scheduling a 32-bit application on a 64-bit-only CPU is a bad idea. Ensure that 32-bit applications always take the slow-path when returning to userspace on a system with mismatched support at EL0, so that we can avoid trying to run on a 64-bit-only CPU and force a SIGKILL instead.

Re: sparse annotation for error types?

2020-12-08 Thread Dan Carpenter
Hi Zhang, Are you using Coccinelle to detect these bugs? On Sat, Dec 05, 2020 at 02:32:50PM -0800, Jakub Kicinski wrote: > Hi! > > Recently we've been getting a steady stream of patches from Changzhong > to fix missing assignment to error variables before jumping to error > cases. I've mucked

[PATCH v5 01/15] arm64: cpuinfo: Split AArch32 registers out into a separate struct

2020-12-08 Thread Will Deacon
In preparation for late initialisation of the "sanitised" AArch32 register state, move the AArch32 registers out of 'struct cpuinfo' and into their own struct definition. Signed-off-by: Will Deacon --- arch/arm64/include/asm/cpu.h | 44 +++-- arch/arm64/kernel/cpufeature.c |

[PATCH v5 00/15] An alternative series for asymmetric AArch32 systems

2020-12-08 Thread Will Deacon
Hi all, Christmas has come early: it's time for version five of these patches which have previously appeared here: v1: https://lore.kernel.org/r/20201027215118.27003-1-w...@kernel.org v2: https://lore.kernel.org/r/20201109213023.15092-1-w...@kernel.org v3:

Re: Why the auxiliary cipher in gss_krb5_crypto.c?

2020-12-08 Thread David Howells
I wonder - would it make sense to reserve two arrays of scatterlist structs and a mutex per CPU sufficient to map up to 1MiB of pages with each array while the krb5 service is in use? That way sunrpc could, say, grab the mutex, map the input and output buffers, do the entire crypto op in one go

Re: [PATCH 1/4] sched/fair: Remove SIS_AVG_CPU

2020-12-08 Thread Vincent Guittot
On Tue, 8 Dec 2020 at 11:59, Mel Gorman wrote: > > On Tue, Dec 08, 2020 at 11:07:19AM +0100, Dietmar Eggemann wrote: > > On 07/12/2020 10:15, Mel Gorman wrote: > > > SIS_AVG_CPU was introduced as a means of avoiding a search when the > > > average search cost indicated that the search would

Re: [RFC PATCH v2 0/2] add simple copy support

2020-12-08 Thread Johannes Thumshirn
On 08/12/2020 14:13, Javier González wrote: > On 08.12.2020 12:37, Johannes Thumshirn wrote: >> On 08/12/2020 13:22, Javier González wrote: >>> Good idea. Are you thinking of a sysfs entry to select the backend? >> >> Not sure on this one, initially I thought of a sysfs file, but then >> how would

Re: [PATCH 6/6] mm/gup: migrate pinned pages out of movable zone

2020-12-08 Thread Jason Gunthorpe
On Mon, Dec 07, 2020 at 09:48:48PM -0500, Daniel Jordan wrote: > Jason Gunthorpe writes: > > On Fri, Dec 04, 2020 at 03:05:46PM -0500, Daniel Jordan wrote: > >> Well Alex can correct me, but I went digging and a comment from the > >> first type1 vfio commit says the iommu API didn't promise to

Project Funding

2020-12-08 Thread Vickery Financial Services, Inc
Hello Sir/Ma, We are a leading investment company working on project financing internationally. We grant loan at a low interest rate of 2% RIO per anum. Kindly revert back if interested for further proceedings and negotiations. For further inquiries contact us. Best Regards, Jacopo

Re: Pass modules to Linux kernel without initrd

2020-12-08 Thread Enrico Weigelt, metux IT consult
On 08.12.20 11:58, Paul Menzel wrote: > Thank you. I know this and do it myself. But, the requirement is to use > the distribution Linux kernel (package). I am sorry for being unclear. What about rebuilding the distro package ? Actually, I wonder why using a generic (bloated) full-blown distro

[PATCH v3 1/3] dt-bindings: iio: dac: AD5766 yaml documentation

2020-12-08 Thread Cristian Pop
This adds device tree bindings for the AD5766 DAC. Signed-off-by: Cristian Pop --- Changes in v3: - Fix errors .../bindings/iio/dac/adi,ad5766.yaml | 58 +++ 1 file changed, 58 insertions(+) create mode 100644

[PATCH v3 2/3] Documentation/ABI/testing: Add documentation for AD5766 new ABI

2020-12-08 Thread Cristian Pop
New interface is proposed for dither functionality. This future allows composing an external signals to the selected output channel. The dither signal can be turned on/off, scaled, inverted, or it can be selected from different sources. Signed-off-by: Cristian Pop ---

[PATCH v3 3/3] iio: dac: ad5766: add driver support for AD5766

2020-12-08 Thread Cristian Pop
The AD5766/AD5767 are 16-channel, 16-bit/12-bit, voltage output dense DACs Digital-to-Analog converters. This change adds support for these DACs. Link: https://www.analog.com/media/en/technical-documentation/data-sheets/ad5766-5767.pdf Signed-off-by: Cristian Pop --- Changelog in v3:

Re: [PATCH v4 3/4] scmi-cpufreq: get opp_shared_cpus from opp-v2 for EM

2020-12-08 Thread Nicola Mazzucato
Hi All, thanks for your feedback, please see below On 12/8/20 12:22 PM, Sudeep Holla wrote: > On Tue, Dec 08, 2020 at 11:34:36AM +, Lukasz Luba wrote: >> >> >> On 12/8/20 11:20 AM, Sudeep Holla wrote: >>> On Tue, Dec 08, 2020 at 12:56:11PM +0530, Viresh Kumar wrote: On 08-12-20, 07:22,

RE: [PATCH 2/3] rwsem: Implement down_read_interruptible

2020-12-08 Thread David Laight
From: Peter Zijlstra > Sent: 08 December 2020 12:32 > > On Tue, Dec 08, 2020 at 09:12:36AM +, David Laight wrote: > > From: Waiman Long > > > Sent: 07 December 2020 19:02 > > ... > > > > How much more difficult would it be to also add a timeout option? > > > > I looked at adding one to the

Re: [RFC PATCH v2 0/2] add simple copy support

2020-12-08 Thread Javier González
On 08.12.2020 12:37, Johannes Thumshirn wrote: On 08/12/2020 13:22, Javier González wrote: Good idea. Are you thinking of a sysfs entry to select the backend? Not sure on this one, initially I thought of a sysfs file, but then how would you do it. One "global" sysfs entry is probably a bad

[PATCH v3] erofs: avoiding using generic_block_bmap

2020-12-08 Thread Huang Jianan
iblock indicates the number of i_blkbits-sized blocks rather than sectors. In addition, considering buffer_head limits mapped size to 32-bits, should avoid using generic_block_bmap. Fixes: 9da681e017a3 ("staging: erofs: support bmap") Signed-off-by: Huang Jianan Signed-off-by: Guo Weichao ---

Re: [PATCH v2 06/10] ovl: user xattr

2020-12-08 Thread Amir Goldstein
On Mon, Dec 7, 2020 at 6:37 PM Miklos Szeredi wrote: > > Optionally allow using "user.overlay." namespace instead of > "trusted.overlay." There are several occurrences of "trusted.overlay" string in code and Documentation, which is fine. But maybe only adjust the comment for testing xattr

Re: [PATCH v3 4/5] powerpc/fault: Avoid heavy search_exception_tables() verification

2020-12-08 Thread Aneesh Kumar K.V
On 12/8/20 2:07 PM, Christophe Leroy wrote: search_exception_tables() is an heavy operation, we have to avoid it. When KUAP is selected, we'll know the fault has been blocked by KUAP. Otherwise, it behaves just as if the address was already in the TLBs and no fault was generated. Signed-off-by:

[PATCH 1/1] mwifiex: Fix possible buffer overflows in mwifiex_config_scan

2020-12-08 Thread Xiaohui Zhang
From: Zhang Xiaohui mwifiex_config_scan() calls memcpy() without checking the destination size may trigger a buffer overflower, which a local user could use to cause denial of service or the execution of arbitrary code. Fix it by putting the length check before calling memcpy(). Signed-off-by:

Re: [PATCH v3 2/3] Documentation: DT: binding documentation for regulator-poweroff

2020-12-08 Thread Michael Klein
Thanks for reviewing! On Tue, Dec 08, 2020 at 11:13:58AM +0100, Maxime Ripard wrote: On Mon, Dec 07, 2020 at 03:27:55PM +0100, Michael Klein wrote: Add devicetree binding documentation for regulator-poweroff driver. Signed-off-by: Michael Klein --- .../power/reset/regulator-poweroff.yaml

Re: [PATCH][next] drm/mediatek: avoid dereferencing a null hdmi_phy on an error message

2020-12-08 Thread Vinod Koul
On 08-12-20, 09:50, Chunfeng Yun wrote: > On Mon, 2020-12-07 at 15:09 +, Colin King wrote: > > From: Colin Ian King > > > > Currently there is a null pointer check for hdmi_phy that implies it > > may be null, however a dev_err messages dereferences this potential null > > pointer. Avoid a

Re: [PATCH v5 2/3] usb: serial: xr_serial: Add gpiochip support

2020-12-08 Thread Manivannan Sadhasivam
On Tue, Dec 08, 2020 at 01:41:52PM +0100, Linus Walleij wrote: > On Tue, Dec 8, 2020 at 10:57 AM Johan Hovold wrote: > > [Me] > > > > A better approach might be to create an array of names > > > prepended with something device-unique like the USB > > > bus topology? Or do we need a helper to

Re: Are read-only static labels incompatible with kernel modules?

2020-12-08 Thread Peter Zijlstra
On Mon, Dec 07, 2020 at 09:37:54PM +0100, Andrey Konovalov wrote: > Hi, > > I'm getting a crash when trying to load a module into a kernel that > uses __ro_after_init static labels, see the crash below. The label is > defined and initialized in the main kernel binary, and is used in the > module.

Re: [PATCH 00/19] rcu/nocb: De-offload and re-offload support v4

2020-12-08 Thread Frederic Weisbecker
Hi Boqun Feng, On Tue, Dec 08, 2020 at 10:41:31AM +0800, Boqun Feng wrote: > Hi Frederic, > > On Fri, Nov 13, 2020 at 01:13:15PM +0100, Frederic Weisbecker wrote: > > This keeps growing up. Rest assured, most of it is debug code and sanity > > checks. > > > > Boqun Feng found that holding rnp

[PATCH v3 0/4] dt-bindings: reset: convert Hisilicon reset controller bindings to json-schema

2020-12-08 Thread Zhen Lei
v2 --> v3: 1. Keep device tree patches and reset driver patch separate, as they were in v1. That is, revert v2. 2. When the new compatible match failed, fall back to the deprecated compatible. 3. Fix a typo, correct "hi3660,rst-syscon" to "hisilicon,rst-syscon". v1 --> v2: Merge the driver and

[PATCH v3 2/4] arm64: dts: correct vendor prefix hisi to hisilicon

2020-12-08 Thread Zhen Lei
The vendor prefix of "Hisilicon Limited" is "hisilicon", it is clearly stated in "vendor-prefixes.yaml". Fixes: 35ca8168133c ("arm64: dts: Add dts files for Hisilicon Hi3660 SoC") Fixes: dd8c7b78c11b ("arm64: dts: Add devicetree for Hisilicon Hi3670 SoC") Signed-off-by: Zhen Lei Cc: Chen Feng

[PATCH v3 4/4] dt-bindings: reset: convert Hisilicon reset controller bindings to json-schema

2020-12-08 Thread Zhen Lei
Convert the Hisilicon reset controller binding to DT schema format using json-schema. Signed-off-by: Zhen Lei --- .../bindings/reset/hisilicon,hi3660-reset.txt | 44 - .../bindings/reset/hisilicon,hi3660-reset.yaml | 77 ++ 2 files changed, 77

[PATCH v3 3/4] dt-bindings: reset: correct vendor prefix hisi to hisilicon

2020-12-08 Thread Zhen Lei
The vendor prefix of "Hisilicon Limited" is "hisilicon", it is clearly stated in "vendor-prefixes.yaml". Fixes: 836e23549583 ("dt-bindings: Document the hi3660 reset bindings") Signed-off-by: Zhen Lei Cc: Zhangfei Gao --- Documentation/devicetree/bindings/reset/hisilicon,hi3660-reset.txt | 4

Re: [PATCH] net: 8021q: vlan: reduce noise in driver initialization

2020-12-08 Thread kernel test robot
h, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Enrico-Weigelt-metux-IT-consult/net-8021q-vlan-reduce-noise-in-driver-initialization/20201208-165821 base: https://git.kernel.org/pub/scm/linux/kernel/git/tor

[PATCH v3 1/4] reset: hisilicon: correct vendor prefix

2020-12-08 Thread Zhen Lei
The vendor prefix of "Hisilicon Limited" is "hisilicon", it is clearly stated in "vendor-prefixes.yaml". For backward compatibility reasons fall back to the deprecated compatible if the new one failed. Fixes: 1527058736fa ("reset: hisilicon: add reset-hi3660") Signed-off-by: Zhen Lei Cc:

Re: [RFC PATCH] drm/panel: Make backlight attachment lazy

2020-12-08 Thread Thierry Reding
On Mon, Dec 07, 2020 at 10:44:46PM -0600, Bjorn Andersson wrote: > Some bridge chips, such as the TI SN65DSI86 DSI/eDP bridge, provides > means of generating a PWM signal for backlight control of the attached > panel. The provided PWM chip is typically controlled by the > pwm-backlight driver,

[tip:x86/platform] BUILD SUCCESS c9624cb7db1c418cbdc8fd2cde6835f83cd0f8a2

2020-12-08 Thread kernel test robot
randconfig-a005-20201208 i386 randconfig-a006-20201208 i386 randconfig-a013-20201208 i386 randconfig-a014-20201208 i386 randconfig-a011-20201208 i386 randconfig-a015-20201208 i386 randconfig

Re: [PATCH v1 4/4] cpufreq: intel_pstate: Implement the ->adjust_perf() callback

2020-12-08 Thread Peter Zijlstra
On Mon, Dec 07, 2020 at 05:38:58PM +0100, Rafael J. Wysocki wrote: > +static void intel_cpufreq_adjust_perf(unsigned int cpunum, > + unsigned long min_perf, > + unsigned long target_perf, > +

Re: [PATCH] clk: zynqmp: enable COMMON_CLK_ZYNQMP for ARCH_ZYNQMP automatically

2020-12-08 Thread Michal Simek
Hi, On 08. 12. 20 13:35, quanyang.w...@windriver.com wrote: > From: Quanyang Wang > > The Zynqmp Ultrascale clock controller generates clocks for peripherals, > so we need to enable it when ARCH_ZYNQMP is selected. > > Signed-off-by: Quanyang Wang > --- > drivers/clk/zynqmp/Kconfig | 1 + >

Re: [PATCH v5 2/3] usb: serial: xr_serial: Add gpiochip support

2020-12-08 Thread Linus Walleij
On Tue, Dec 8, 2020 at 10:57 AM Johan Hovold wrote: > [Me] > > A better approach might be to create an array of names > > prepended with something device-unique like the USB > > bus topology? Or do we need a helper to help naming the > > GPIOs? What would be helpful here? > > > > name =

Re: [PATCH bpf-next v4 10/11] bpf: Add tests for new BPF atomic operations

2020-12-08 Thread Brendan Jackman
On Mon, Dec 07, 2020 at 07:18:57PM -0800, Yonghong Song wrote: > > > On 12/7/20 8:07 AM, Brendan Jackman wrote: > > The prog_test that's added depends on Clang/LLVM features added by > > Yonghong in commit 286daafd6512 (was https://reviews.llvm.org/D72184 ). > > > > Note the use of a define

Re: [PATCH 2/4] phy: Add LVDS configuration options

2020-12-08 Thread Laurent Pinchart
Hi Liu, Thank you for the patch. On Fri, Dec 04, 2020 at 03:33:42PM +0800, Liu Ying wrote: > This patch allows LVDS PHYs to be configured through > the generic functions and through a custom structure > added to the generic union. > > The parameters added here are based on common LVDS PHY >

[PATCH] ubifs:Fixed print foramt mismatch in ubifs

2020-12-08 Thread Fangping Liang
fs/ubifs/super.c: function mount_ubifs: the format specifier "lld" need arg type "long long", but the according arg "old_idx_sz" has type "unsigned long long" Signed-off-by: Fangping Liang --- fs/ubifs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ubifs/super.c

Re: [RFC PATCH v2 0/2] add simple copy support

2020-12-08 Thread Johannes Thumshirn
On 08/12/2020 13:22, Javier González wrote: > Good idea. Are you thinking of a sysfs entry to select the backend? Not sure on this one, initially I thought of a sysfs file, but then how would you do it. One "global" sysfs entry is probably a bad idea. Having one per block device to select native

[PATCH] clk: zynqmp: enable COMMON_CLK_ZYNQMP for ARCH_ZYNQMP automatically

2020-12-08 Thread quanyang . wang
From: Quanyang Wang The Zynqmp Ultrascale clock controller generates clocks for peripherals, so we need to enable it when ARCH_ZYNQMP is selected. Signed-off-by: Quanyang Wang --- drivers/clk/zynqmp/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/zynqmp/Kconfig

Re: [PATCH] net: dsa: sja1105: Remove an unprofessional word from the code comments

2020-12-08 Thread Vladimir Oltean
Hi Aswin, On Tue, Dec 08, 2020 at 04:03:32PM +0530, Aswin C wrote: > Remove the word 'retarded' from the code comments with a more professional > word > 'erroneous' to make it less profane. > --- > drivers/net/dsa/sja1105/sja1105_dynamic_config.c | 2 +- > 1 file changed, 1 insertion(+), 1

Re: [PATCH v2 2/2] drivers: gpio: add virtio-gpio guest driver

2020-12-08 Thread Enrico Weigelt, metux IT consult
On 08.12.20 11:10, Michal Suchánek wrote: Hi, > The console driver provides early console which should initialize > without any transport. I have not tested it actually works but the code > seems to be there to support this use case. What does it do if it hasn't got any transport yet ? Just

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