Re: [PATCH] sysfs: Add sysfs_emit to replace sprintf to PAGE_SIZE buffers.

2020-08-28 Thread Denis Efremov
Hi, On 8/29/20 1:52 AM, Joe Perches wrote: > sprintf does not know the PAGE_SIZE maximum of the temporary buffer > used for outputting sysfs content requests and it's possible to > overrun the buffer length. > > Add a generic sysfs_emit mechanism that knows that the size of the > temporary buffer

Re: aarch64 iio build error [PATCH]

2020-08-28 Thread Randy Dunlap
On 8/24/20 12:39 PM, Dave Airlie wrote: > Hi Jonahtan, > > Since rc1 my aarch64 builds have been failing > > MODPOST Module.symvers > ERROR: modpost: "devm_iio_triggered_buffer_setup" > [drivers/iio/adc/rockchip_saradc.ko] undefined! > ERROR: modpost: "iio_trigger_notify_done" > [drivers/iio/ad

Re: [PATCH] sysfs: Add sysfs_emit to replace sprintf to PAGE_SIZE buffers.

2020-08-28 Thread Greg Kroah-Hartman
On Fri, Aug 28, 2020 at 11:41:00PM -0700, Joe Perches wrote: > On Sat, 2020-08-29 at 08:22 +0200, Greg Kroah-Hartman wrote: > > On Fri, Aug 28, 2020 at 03:52:13PM -0700, Joe Perches wrote: > > > sprintf does not know the PAGE_SIZE maximum of the temporary buffer > > > used for outputting sysfs cont

Re: linux-next: build failure after merge of the net-next tree

2020-08-28 Thread Sven Joachim
On 2020-08-28 16:42 -0700, Randy Dunlap wrote: > On 8/28/20 4:16 PM, Brian Vazquez wrote: >> On Fri, Aug 28, 2020 at 8:12 AM Randy Dunlap wrote: >>> >>> On 8/28/20 8:09 AM, Sven Joachim wrote: On 2020-08-27 11:12 -0700, Brian Vazquez wrote: > I've been trying to reproduce it with yo

Re: [PATCH 1/1] Fix silent audio output and corrupted input on MSI X570-A PRO

2020-08-28 Thread Takashi Iwai
On Sat, 29 Aug 2020 04:49:46 +0200, Dan Crawford wrote: > > From: Dan Crawford > > Following Christian Lachner's patch for Gigabyte X570-based motherboards, > also patch the MSI X570-A PRO motherboard; the ALC1220 codec requires the > same workaround for Clevo laptops to enforce the DAC/mixer co

[PATCH v3 10/18] iio: amplifiers: hmc425a: Simplify with dev_err_probe()

2020-08-28 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and also it prints the error value. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Andy Shevchenko --- Changes since v2: 1. Wrap dev_err_probe() lines at 80 character Changes since v1: 1. Wrap dev_er

[PATCH v3 11/18] iio: chemical: scd30: Simplify with dev_err_probe()

2020-08-28 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and also it prints the error value. Signed-off-by: Krzysztof Kozlowski Acked-by: Tomasz Duszynski Reviewed-by: Andy Shevchenko --- Changes since v1: 1. Wrap dev_err_probe() lines at 100 character 2. A

[PATCH v3 04/18] iio: adc: exynos_adc: Simplify with dev_err_probe()

2020-08-28 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and also it prints the error value. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Andy Shevchenko --- Changes since v2: 1. Wrap dev_err_probe() lines at 80 character Changes since v1: 1. Wrap dev_er

[PATCH v3 14/18] iio: light: isl29018: Simplify with dev_err_probe()

2020-08-28 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and also it prints the error value. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Andy Shevchenko --- drivers/iio/light/isl29018.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff

[PATCH v3 16/18] iio: magnetometer: ak8974: Simplify with dev_err_probe()

2020-08-28 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and also it prints the error value. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Andy Shevchenko Acked-by: Linus Walleij --- Changes since v1: 1. Wrap dev_err_probe() lines at 100 character --- dr

[PATCH v3 15/18] iio: light: tsl2772: Simplify with dev_err_probe()

2020-08-28 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and also it prints the error value. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Andy Shevchenko --- Changes since v1: 1. Wrap dev_err_probe() lines at 100 character --- drivers/iio/light/tsl2772.c

[PATCH v3 17/18] iio: magnetometer: mag3110: Simplify with dev_err_probe()

2020-08-28 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and also it prints the error value. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Andy Shevchenko --- drivers/iio/magnetometer/mag3110.c | 20 ++-- 1 file changed, 6 insertions(+), 14

[PATCH v3 13/18] iio: imu: inv_mpu6050: Simplify with dev_err_probe()

2020-08-28 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and also it prints the error value. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Andy Shevchenko Reviewed-by: Jean-Baptiste Maneyrol --- drivers/iio/imu/inv_mpu6050/inv_mpu_core.c | 20 ++---

[PATCH v3 18/18] iio: multiplexer: iio-mux: Simplify with dev_err_probe()

2020-08-28 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and also it prints the error value. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Andy Shevchenko --- Changes since v2: 1. Wrap dev_err_probe() lines at 80 character --- drivers/iio/multiplexer/iio-

[PATCH v3 07/18] iio: adc: rcar-gyroadc: Simplify with dev_err_probe()

2020-08-28 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and also it prints the error value. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Andy Shevchenko --- Changes since v2: 1. Wrap dev_err_probe() lines at 80 character Changes since v1: 1. Wrap dev_er

[PATCH v3 08/18] iio: adc: stm32: Simplify with dev_err_probe()

2020-08-28 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and also it prints the error value. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Andy Shevchenko --- Changes since v2: 1. Wrap dev_err_probe() lines at 80 character Changes since v1: 1. Convert to

[PATCH v3 05/18] iio: adc: ltc2497: Simplify with dev_err_probe()

2020-08-28 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and also it prints the error value. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Andy Shevchenko --- Changes since v2: 1. Wrap dev_err_probe() lines at 80 character Changes since v1: 1. Wrap dev_er

[PATCH v3 09/18] iio: afe: iio-rescale: Simplify with dev_err_probe()

2020-08-28 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and also it prints the error value. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Andy Shevchenko --- Changes since v2: 1. Wrap dev_err_probe() lines at 80 character Changes since v1: 1. Wrap dev_er

[PATCH v3 01/18] iio: accel: bma180: Simplify with dev_err_probe()

2020-08-28 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and also it prints the error value. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Andy Shevchenko --- drivers/iio/accel/bma180.c | 20 1 file changed, 8 insertions(+), 12 deletion

[PATCH v3 06/18] iio: adc: meson_saradc: Simplify with dev_err_probe()

2020-08-28 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and also it prints the error value. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Andy Shevchenko --- drivers/iio/adc/meson_saradc.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff

[PATCH v3 12/18] iio: dac: dpot-dac: Simplify with dev_err_probe()

2020-08-28 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and also it prints the error value. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Andy Shevchenko --- drivers/iio/dac/dpot-dac.c | 16 ++-- 1 file changed, 6 insertions(+), 10 deletions(-)

[PATCH v3 02/18] iio: accel: mma8452: Simplify with dev_err_probe()

2020-08-28 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and also it prints the error value. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Andy Shevchenko --- drivers/iio/accel/mma8452.c | 20 ++-- 1 file changed, 6 insertions(+), 14 deletio

[PATCH v3 03/18] iio: adc: envelope-detector: Simplify with dev_err_probe()

2020-08-28 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and also it prints the error value. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Andy Shevchenko --- Changes since v2: 1. Wrap dev_err_probe() lines at 80 character Changes since v1: 1. Wrap dev_err

Re: [PATCH 08/20] media: pci: saa7164.c: Replace if(cond) BUG with BUG_ON

2020-08-28 Thread Mauro Carvalho Chehab
Hi Daniel, Em Fri, 7 Aug 2020 05:35:35 -0300 "Daniel W. S. Almeida" escreveu: > From: "Daniel W. S. Almeida" > > Fix the following coccinelle reports: > > drivers/media/pci/saa7164/saa7164-buffer.c:254:3-6: WARNING: Use BUG_ON > instead of if condition followed by BUG. > > drivers/media/pci

Re: [PATCH] sysfs: Add sysfs_emit to replace sprintf to PAGE_SIZE buffers.

2020-08-28 Thread Joe Perches
On Sat, 2020-08-29 at 08:22 +0200, Greg Kroah-Hartman wrote: > On Fri, Aug 28, 2020 at 03:52:13PM -0700, Joe Perches wrote: > > sprintf does not know the PAGE_SIZE maximum of the temporary buffer > > used for outputting sysfs content requests and it's possible to > > overrun the buffer length. > >

Re: [PATCH] microblaze: fix kbuild redundant file warning

2020-08-28 Thread Masahiro Yamada
On Sat, Aug 29, 2020 at 3:35 AM Randy Dunlap wrote: > > From: Randy Dunlap > > Fix build warning since this file is already listed in > include/asm-generic/Kbuild. > > ../scripts/Makefile.asm-generic:25: redundant generic-y found in > arch/microblaze/include/asm/Kbuild: hw_irq.h > > Fixes: 7e8f5

Re: [PATCH v2 1/3] platform/x86: Add Intel Input Output Manager (IOM) driver

2020-08-28 Thread Greg Kroah-Hartman
On Fri, Aug 28, 2020 at 03:20:22PM +, Mani, Rajmohan wrote: > Hi Greg, > > > Subject: Re: [PATCH v2 1/3] platform/x86: Add Intel Input Output Manager > > (IOM) driver > > > > Hi Greg, > > > > On Fri, Aug 28, 2020 at 09:43:59AM +0200, Greg Kroah-Hartman wrote: > > > I still find this crazy th

[PATCH v4] dt-bindings: mmc: fsl-imx-esdhc: Fix i.MX 8 compatible matching

2020-08-28 Thread Krzysztof Kozlowski
The i.MX 8 DTSes use two compatibles so update the binding to fix dtbs_check warnings like: arch/arm64/boot/dts/freescale/imx8mn-evk.dt.yaml: mmc@30b4: compatible: ['fsl,imx8mn-usdhc', 'fsl,imx7d-usdhc'] is too long From schema: Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.yam

Re: [PATCH v3 12/19] dt-bindings: mmc: fsl-imx-esdhc: Fix i.MX 8 compatible matching

2020-08-28 Thread Krzysztof Kozlowski
On Fri, 28 Aug 2020 at 23:38, Rob Herring wrote: > > On Tue, 25 Aug 2020 21:35:29 +0200, Krzysztof Kozlowski wrote: > > The i.MX 8 DTSes use two compatibles so update the binding to fix > > dtbs_check warnings like: > > > > arch/arm64/boot/dts/freescale/imx8mn-evk.dt.yaml: mmc@30b4: > >

Re: [PATCH] sysfs: Add sysfs_emit to replace sprintf to PAGE_SIZE buffers.

2020-08-28 Thread Greg Kroah-Hartman
On Fri, Aug 28, 2020 at 03:52:13PM -0700, Joe Perches wrote: > sprintf does not know the PAGE_SIZE maximum of the temporary buffer > used for outputting sysfs content requests and it's possible to > overrun the buffer length. > > Add a generic sysfs_emit mechanism that knows that the size of the >

Re: INFO: task hung in tls_sk_proto_close

2020-08-28 Thread syzbot
syzbot has found a reproducer for the following issue on: HEAD commit:b36c9697 Add linux-next specific files for 20200828 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=11ae3d6190 kernel config: https://syzkaller.appspot.com/x/.config?x

[RFC v5 6/6] usb: dwc3: gadget: Ensure enough TXFIFO space for USB configuration

2020-08-28 Thread Wesley Cheng
If TXFIFO resizing is enabled, then based on if endpoint bursting is required or not, a larger amount of FIFO space is benefical. Sometimes a particular interface can take all the available FIFO space, leading to other interfaces not functioning properly. This callback ensures that the minimum fi

[RFC v5 4/6] usb: gadget: configfs: Check USB configuration before adding

2020-08-28 Thread Wesley Cheng
Ensure that the USB gadget is able to support the configuration being added based on the number of endpoints required from all interfaces. This is for accounting for any bandwidth or space limitations. Signed-off-by: Wesley Cheng --- drivers/usb/gadget/configfs.c | 22 ++ 1

[RFC v5 5/6] usb: gadget: udc: core: Introduce check_config to verify USB configuration

2020-08-28 Thread Wesley Cheng
Some UDCs may have constraints on how many high bandwidth endpoints it can support in a certain configuration. This API allows for the composite driver to pass down the total number of endpoints to the UDC so it can verify it has the required resources to support the configuration. Signed-off-by:

[RFC v5 3/6] dt-bindings: usb: dwc3: Add entry for tx-fifo-resize

2020-08-28 Thread Wesley Cheng
Re-introduce the comment for the tx-fifo-resize setting for the DWC3 controller. This allows for vendors to control if they require the TX FIFO resizing logic on their HW, as the default FIFO size configurations may already be sufficient. Signed-off-by: Wesley Cheng Acked-by: Rob Herring --- D

[RFC v5 2/6] arm64: boot: dts: qcom: sm8150: Enable dynamic TX FIFO resize logic

2020-08-28 Thread Wesley Cheng
Enable the flexible TX FIFO resize logic on SM8150. Using a larger TX FIFO SZ can help account for situations when system latency is greater than the USB bus transmission latency. Signed-off-by: Wesley Cheng --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 1 + 1 file changed, 1 insertion(+) diff --

[RFC v5 0/6] Re-introduce TX FIFO resize for larger EP bursting

2020-08-28 Thread Wesley Cheng
Changes in V5: - Added check_config() logic, which is used to communicate the number of EPs used in a particular configuration. Based on this, the DWC3 gadget driver has the ability to know the maximum number of eps utilized in all configs. This helps reduce unnecessary allocation to unu

[RFC v5 1/6] usb: dwc3: Resize TX FIFOs to meet EP bursting requirements

2020-08-28 Thread Wesley Cheng
Some devices have USB compositions which may require multiple endpoints that support EP bursting. HW defined TX FIFO sizes may not always be sufficient for these compositions. By utilizing flexible TX FIFO allocation, this allows for endpoints to request the required FIFO depth to achieve higher

RE: [RFC] sched/topology: NUMA topology limitations

2020-08-28 Thread Song Bao Hua (Barry Song)
> Subject: RE: [RFC] sched/topology: NUMA topology limitations > > > Subject: [RFC] sched/topology: NUMA topology limitations > > > > (For those of you who already got this one: sorry! I messed up LKML and > > Vincent's addresses) > > > > Hi, > > > > Some of you may have noticed me struggling to p

RE: [RFC] sched/topology: NUMA topology limitations

2020-08-28 Thread Song Bao Hua (Barry Song)
> Subject: [RFC] sched/topology: NUMA topology limitations > > (For those of you who already got this one: sorry! I messed up LKML and > Vincent's addresses) > > Hi, > > Some of you may have noticed me struggling to plug some topology holes in > [1]. While digging in there I realized there are s

[PATCH 2/3] ia64: remove unneeded header includes from

2020-08-28 Thread Masahiro Yamada
includes too many unneeded headers. This commit cuts off a lot of header includes. What we need to include are: - for DECLARE_PER_CPU(u64, ia64_mca_pal_base) - for NR_CPUS - for u8, u64, size_t, etc. - for KERNEL_STACK_SIZE The other header includes are actually unneeded. previously

[PATCH 0/3] ia64: clean-up header dependency and build process, fix build warning

2020-08-28 Thread Masahiro Yamada
Randy Dunlap reports the following warning with CONFIG_IA64_PALINFO=m: ../scripts/Makefile.build:68: 'arch/ia64/kernel/palinfo.ko' will not be built even though obj-m is specified. ../scripts/Makefile.build:69: You cannot use subdir-y/m to visit a module Makefile. Use obj-y/m instead. This co

[PATCH 3/3] ia64: remove generated/nr-irqs.h generation to fix build warning

2020-08-28 Thread Masahiro Yamada
Randy reports the following warning when building ARCH=ia64 with CONFIG_IA64_PALINFO=m: ../scripts/Makefile.build:68: 'arch/ia64/kernel/palinfo.ko' will not be built even though obj-m is specified. ../scripts/Makefile.build:69: You cannot use subdir-y/m to visit a module Makefile. Use obj-y/m in

[PATCH 1/3] ia64: do not typedef struct pal_min_state_area_s

2020-08-28 Thread Masahiro Yamada
Documentation/process/coding-style.rst says: Please don't use things like ``vps_t``. It's a **mistake** to use typedef for structures and pointers. This commit converts as follows: struct pal_min_state_area_s -> struct pal_min_state_area pal_min_state_area_t -> struct pal_min_

Re: [PATCH v3 4/5] fpga manager: xilinx-spi: add error checking after gpiod_get_value()

2020-08-28 Thread kernel test robot
Hi Luca, I love your patch! Perhaps something to improve: [auto build test WARNING on v5.9-rc2] [also build test WARNING on next-20200828] [cannot apply to xlnx/master] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '-

Re: [PATCH v1 1/1] scsi: ufshcd: Allow zero value setting to Auto-Hibernate Timer

2020-08-28 Thread Bart Van Assche
On 2020-08-28 18:05, Bao D. Nguyen wrote: > static ssize_t auto_hibern8_show(struct device *dev, >struct device_attribute *attr, char *buf) > { > + u32 ahit; > struct ufs_hba *hba = dev_get_drvdata(dev); Although not strictly required for SCSI code, how

[PATCH 1/1] samples/seccomp: eliminate two boring compile warnings in user-trap.c

2020-08-28 Thread Zhen Lei
samples/seccomp/user-trap.c is compiled with $(userccflags), and the latter does not contain -fno-strict-aliasing, so the warnings reported as below. Due to add "userccflags += -fno-strict-aliasin" will impact other files, so use __attribute__((__may_alias__)) to suppress it exactly. My gcc versio

Re: [RFC][PATCH 6/7] freelist: Lock less freelist

2020-08-28 Thread Cameron
> I'm curious whether it is correct to just set the prev->refs to zero and > return > @prev? So that it can remove an unneeded "add()&get()" pair (although in > an unlikely branch) and __freelist_add() can be folded into freelist_add() > for tidier code. That is a very good question. I believe it

[PATCH] [v2] ext4: Fix error handling code in add_new_gdb

2020-08-28 Thread Dinghao Liu
When ext4_journal_get_write_access() fails, we should terminate the execution flow and release n_group_desc, iloc.bh, dind and gdb_bh. Signed-off-by: Dinghao Liu --- Changelog: v2: - Remove changes to ext4_handle_dirty_super()'s error handling path. --- fs/ext4/resize.c | 4 +++- 1 file

Re: [PATCH 1/5] KVM: nVMX: Fix VMX controls MSRs setup when nested VMX enabled

2020-08-28 Thread Xiaoyao Li
On 8/29/2020 9:49 AM, Chenyi Qiang wrote: On 8/29/2020 1:43 AM, Jim Mattson wrote: On Fri, Aug 28, 2020 at 1:54 AM Chenyi Qiang wrote: KVM supports the nested VM_{EXIT, ENTRY}_LOAD_IA32_PERF_GLOBAL_CTRL and VM_{ENTRY_LOAD, EXIT_CLEAR}_BNDCFGS, but they doesn't expose during the setup of nes

[PATCH 1/1] Fix silent audio output and corrupted input on MSI X570-A PRO

2020-08-28 Thread Dan Crawford
From: Dan Crawford Following Christian Lachner's patch for Gigabyte X570-based motherboards, also patch the MSI X570-A PRO motherboard; the ALC1220 codec requires the same workaround for Clevo laptops to enforce the DAC/mixer connection path. Set up a quirk entry for that. I suspect most if all

Re: [PATCH v4 2/2] usb typec: mt6360: Add MT6360 Type-C DT binding documentation

2020-08-28 Thread ChiYuan Huang
ChiYuan Huang 於 2020年8月29日 週六 上午8:32寫道: > > Rob Herring 於 2020年8月29日 週六 上午6:05寫道: > > > > On Fri, Aug 28, 2020 at 06:30:36PM +0800, cy_huang wrote: > > > From: ChiYuan Huang > > > > > > Add a devicetree binding documentation for the MT6360 Type-C driver. > > > > > > usb typec: mt6360: Rename DT

Re: Re: [PATCH] ext4: Fix memleak in add_new_gdb

2020-08-28 Thread dinghao . liu
> On Thu 27-08-20 14:28:43, Dinghao Liu wrote: > > When ext4_journal_get_write_access() fails, we should release > > n_group_desc, iloc.bh, dind and gdb_bh to prevent memleak. > > It's the same when ext4_handle_dirty_super() fails, but we > > don't need to release dind here because it has been rele

Re: [RFC][PATCH 7/7] kprobes: Replace rp->free_instance with freelist

2020-08-28 Thread Cameron
On Fri, Aug 28, 2020 at 10:29 PM Cameron wrote: > I thought about this some more, and actually, it should be safe. Although I should note that it's important that the flags/refcount are not overwritten even after the node is taken off the freelist. Cameron

Re: [RFC][PATCH 7/7] kprobes: Replace rp->free_instance with freelist

2020-08-28 Thread Cameron
On Fri, Aug 28, 2020 at 5:18 AM wrote: > So the freelist->refs thing is supposed to pin freelist->next for > concurrent usage, but if we instantly stick it on the > current->kretprobe_instances llist while it's still elevated, we'll > overwrite ->next, which would be bad. I thought about this som

Re: [PATCH] mtd: ck804xrom: fix missing pci device put in error paths

2020-08-28 Thread James Bond
Hi Miquèl, Thanks for your feedback. I have just rechecked this function and find that "pdev" currently is already put inside ck804xrom_cleanup, so my previous patch is meaningless... The current calling order is like: window->pdev = pci_dev_get(pdev); ... ck804xrom_cleanup(window)

[PATCH] gpu/ipu-v3:reduce protected code area in ipu idmac get/put

2020-08-28 Thread Bernard Zhao
This change will speed-up a bit these ipu_idmac_get & ipu_idmac_put processing and there is no need to protect kzalloc & kfree. Signed-off-by: Bernard Zhao --- drivers/gpu/ipu-v3/ipu-common.c | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/drivers/g

Re: [PATCH v4 18/23] sched: Fix try_invoke_on_locked_down_task() semantics

2020-08-28 Thread Masami Hiramatsu
On Fri, 28 Aug 2020 21:29:55 +0900 Masami Hiramatsu wrote: > From: Peter Zijlstra In the next version I will drop this since I will merge the kretprobe_holder things into removing kretporbe hash patch. However, this patch itself seems fixing a bug of commit 2beaf3280e57 ("sched/core: Add funct

[RESEND PATCH] vfs: add RWF_NOAPPEND flag for pwritev2

2020-08-28 Thread Rich Felker
The pwrite function, originally defined by POSIX (thus the "p"), is defined to ignore O_APPEND and write at the offset passed as its argument. However, historically Linux honored O_APPEND if set and ignored the offset. This cannot be changed due to stability policy, but is documented in the man pag

[PATCH] seccomp: kill process instead of thread for unknown actions

2020-08-28 Thread Rich Felker
Asynchronous termination of a thread outside of the userspace thread library's knowledge is an unsafe operation that leaves the process in an inconsistent, corrupt, and possibly unrecoverable state. In order to make new actions that may be added in the future safe on kernels not aware of them, chan

Re: [PATCH] crypto: cavium/nitrox: add an error message to explain the failure of pci_request_mem_regions

2020-08-28 Thread George Acosta
Hi Herbert, I just noticed a small potential issue about the calling sequence of pci_disable_device and dev_err. Do you think it will be better to call dev_err before we call pci_disable_device(pdev) , or the order here does not matter? On Fri, Aug 28, 2020 at 2:19 AM Herbert Xu wrote: > > On Thu

Re: [PATCH 1/5] KVM: nVMX: Fix VMX controls MSRs setup when nested VMX enabled

2020-08-28 Thread Chenyi Qiang
On 8/29/2020 1:43 AM, Jim Mattson wrote: On Fri, Aug 28, 2020 at 1:54 AM Chenyi Qiang wrote: KVM supports the nested VM_{EXIT, ENTRY}_LOAD_IA32_PERF_GLOBAL_CTRL and VM_{ENTRY_LOAD, EXIT_CLEAR}_BNDCFGS, but they doesn't expose during the setup of nested VMX controls MSR. Aren't these feat

Re: [PATCH v5 00/20] gpio: cdev: add uAPI v2

2020-08-28 Thread Kent Gibson
On Fri, Aug 28, 2020 at 04:37:19PM +0200, Linus Walleij wrote: > On Fri, Aug 28, 2020 at 12:47 AM Kent Gibson wrote: > > > The particular use case I am considering is one I had been asked about - > > changing a requested line from input with edge detection to output, and > > vice versa. Losing in

Re: INFO: task hung in usb_bulk_msg

2020-08-28 Thread Alan Stern
On Fri, Aug 28, 2020 at 05:52:16AM -0700, syzbot wrote: > syzbot has found a reproducer for the following issue on: > > HEAD commit:15bc20c6 Merge tag 'tty-5.9-rc3' of git://git.kernel.org/p.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=1052a66990

Re: [PATCH v4 19/23] kprobes: Remove kretprobe hash

2020-08-28 Thread Masami Hiramatsu
On Fri, 28 Aug 2020 22:29:12 +0200 Peter Zijlstra wrote: > On Fri, Aug 28, 2020 at 07:32:11PM +, eddy...@trendmicro.com wrote: > > > > > -Original Message- > > > From: Masami Hiramatsu > > > > > > @@ -1311,24 +1257,23 @@ void kprobe_busy_end(void) > > > void kprobe_flush_task(struc

[PATCH] Staging: rtl8723bs: os_dep: fixed some coding style issues

2020-08-28 Thread Ross Schmidt
Fixed some coding style issues. Signed-off-by: Ross Schmidt --- drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c index f1e2829a19a7..2b2f4505b98b 100644

Re: [RFC/RFT PATCH 3/6] arm64, numa: Move pcibus_to_node definition to generic numa code

2020-08-28 Thread Atish Patra
On Fri, Aug 28, 2020 at 9:15 AM Bjorn Helgaas wrote: > > On Fri, Aug 28, 2020 at 10:48:30AM +0100, Jonathan Cameron wrote: > > On Fri, 14 Aug 2020 14:47:22 -0700 > > Atish Patra wrote: > > > > > pcibus_to_node is used only when numa is enabled and does not depend > > > on ISA. Thus, it can be mov

Re: [PATCH] drm/i915/display: fix uninitialized variable

2020-08-28 Thread Souza, Jose
Just merged the first patch that fixed this issue, thanks anyways. 2034c2129bc4a91d471815d4dc7a2a69eaa5338d - drm/i915/display: Ensure that ret is always initialized in icl_combo_phy_verify_state On Tue, 2020-08-25 at 16:20 -0700, t...@redhat.com wrote: > From: Tom Rix < > t...@redhat.com > > >

Warning on Kernel 5.9.0-rc1 on PowerBook G4 (ppc32), bisected to a5c3b9ffb0f4

2020-08-28 Thread Larry Finger
In kernel 5.9.0-rc1 on a PowerBook G4 (ppc32), several warnings of the following type are logged: [ cut here ] WARNING: CPU: 0 PID: 1 at arch/powerpc/mm/pgtable.c:185 set_pte_at+0x20/0x100 Modules linked in: CPU: 0 PID: 1 Comm: swapper Not tainted 5.9.0-rc2 #2 NIP:

[PATCH v1 1/1] scsi: ufshcd: Allow zero value setting to Auto-Hibernate Timer

2020-08-28 Thread Bao D. Nguyen
The zero value Auto-Hibernate Timer is a valid setting, and it indicates the Auto-Hibernate feature being disabled. Correctly support this setting. In addition, when this value is queried from sysfs, read from the host controller's register and return that value instead of using the RAM value. Sig

[PATCH net-next v3 2/3] hinic: add support to query rq info

2020-08-28 Thread Luo bin
add debugfs node for querying rq info, for example: cat /sys/kernel/debug/hinic/:15:00.0/RQs/0x0/rq_hw_pi Signed-off-by: Luo bin --- V0~V1: - remove command interfaces to the read only files - split addition of each object into a separate patch .../net/ethernet/huawei/hinic/hinic_debugfs.c

[PATCH net-next v3 1/3] hinic: add support to query sq info

2020-08-28 Thread Luo bin
add debugfs node for querying sq info, for example: cat /sys/kernel/debug/hinic/:15:00.0/SQs/0x0/sq_pi Signed-off-by: Luo bin --- V0~V1: - remove command interfaces to the read only files - split addition of each object into a separate patch drivers/net/ethernet/huawei/hinic/Makefile|

[PATCH net-next v3 3/3] hinic: add support to query function table

2020-08-28 Thread Luo bin
add debugfs node for querying function table, for example: cat /sys/kernel/debug/hinic/:15:00.0/func_table/valid Signed-off-by: Luo bin --- V0~V1: - remove command interfaces to the read only files - split addition of each object into a separate patch V1~V2: - remove vlan_id and vlan_mode fr

[PATCH net-next v3 0/3] hinic: add debugfs support

2020-08-28 Thread Luo bin
add debugfs node for querying sq/rq info and function table Luo bin (3): hinic: add support to query sq info hinic: add support to query rq info hinic: add support to query function table drivers/net/ethernet/huawei/hinic/Makefile| 3 +- .../net/ethernet/huawei/hinic/hinic_debugfs.c

Re: [PATCH 3/4] sh: Add SECCOMP_FILTER

2020-08-28 Thread Rich Felker
On Fri, Aug 28, 2020 at 01:03:00PM -0400, Rich Felker wrote: > On Fri, Aug 28, 2020 at 06:38:09PM +0200, John Paul Adrian Glaubitz wrote: > > Hi! > > > > On 8/28/20 6:30 PM, Rich Felker wrote: > > > I'm about to test a patch along these lines and will report what I > > > find. > > > > Let me know

Re: [PATCH net-next v1 3/3] hinic: add support to query function table

2020-08-28 Thread luobin (L)
On 2020/8/29 1:19, Jakub Kicinski wrote: > On Fri, 28 Aug 2020 11:16:22 +0800 luobin (L) wrote: >> On 2020/8/28 3:44, Jakub Kicinski wrote: >>> On Thu, 27 Aug 2020 19:13:21 +0800 Luo bin wrote: + switch (idx) { + case VALID: + return funcfg_table_elem->dw0.bs.valid;

Re: [RFC/RFT PATCH 2/6] arm64, numa: Change the numa init function name to be generic

2020-08-28 Thread Atish Patra
On Fri, Aug 28, 2020 at 2:37 AM Jonathan Cameron wrote: > > On Fri, 14 Aug 2020 14:47:21 -0700 > Atish Patra wrote: > > > As we are using generic numa implementation code, modify the init function > > name to indicate that generic implementation. > > > > Signed-off-by: Atish Patra > > --- > > a

Re: [PATCH v4 2/2] usb typec: mt6360: Add MT6360 Type-C DT binding documentation

2020-08-28 Thread ChiYuan Huang
Rob Herring 於 2020年8月29日 週六 上午6:06寫道: > > On Fri, Aug 28, 2020 at 06:30:36PM +0800, cy_huang wrote: > > From: ChiYuan Huang > > > > Add a devicetree binding documentation for the MT6360 Type-C driver. > > > > usb typec: mt6360: Rename DT binding doument from mt6360 to mt636x > > > > Signed-off-by

Re: [PATCH v4 2/2] usb typec: mt6360: Add MT6360 Type-C DT binding documentation

2020-08-28 Thread ChiYuan Huang
Rob Herring 於 2020年8月29日 週六 上午6:05寫道: > > On Fri, Aug 28, 2020 at 06:30:36PM +0800, cy_huang wrote: > > From: ChiYuan Huang > > > > Add a devicetree binding documentation for the MT6360 Type-C driver. > > > > usb typec: mt6360: Rename DT binding doument from mt6360 to mt636x > > > > Signed-off-by

Re: [RFC/RFT PATCH 1/6] numa: Move numa implementation to common code

2020-08-28 Thread Atish Patra
On Fri, Aug 28, 2020 at 2:24 AM Jonathan Cameron wrote: > > On Fri, 14 Aug 2020 14:47:20 -0700 > Atish Patra wrote: > > > ARM64 numa implementation is generic enough that RISC-V can reuse that > > implementation with very minor cosmetic changes. This will help both > > ARM64 and RISC-V in terms o

include/asm-generic/qspinlock.h:94:9: sparse: sparse: context imbalance in '__msm_console_write' - unexpected unlock

2020-08-28 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 005c53447a63cbce10de37406975a34d7bdc8704 commit: 0e4f7f920a5c6bfe5e851e989f27b35a0cc7fb7e tty: serial: msm_serial: Fix lockup for sysrq and oops date: 9 months ago config: arm64-randconfig-s031-20200829 (a

Re: [PATCH v36 12/24] x86/sgx: Add SGX_IOC_ENCLAVE_CREATE

2020-08-28 Thread Jarkko Sakkinen
On Thu, Aug 27, 2020 at 04:24:50PM +0300, Jarkko Sakkinen wrote: > > > + * @arg: userspace pointer to a struct sgx_enclave_create instance > > > + * > > > + * Allocate kernel data structures for a new enclave and execute ECREATE > > > after > > > + * verifying the correctness of the provided SECS.

Re: [PATCH v6 2/2] ASoC: qcom: sc7180: Add machine driver for sound card registration

2020-08-28 Thread Pierre-Louis Bossart
+config SND_SOC_SC7180 + tristate "SoC Machine driver for SC7180 boards" + depends on SND_SOC_QCOM this depends is probably not necessary, the code is already in an if case. + select SND_SOC_QCOM_COMMON + select SND_SOC_LPASS_SC7180 + select SND_SOC_MAX98357A +

[PATCH] microblaze: fix min_low_pfn/max_low_pfn build errors

2020-08-28 Thread Randy Dunlap
Fix min_low_pfn/max_low_pfn build errors for arch/microblaze/: (e.g.) ERROR: "min_low_pfn" [drivers/rpmsg/virtio_rpmsg_bus.ko] undefined! ERROR: "min_low_pfn" [drivers/hwtracing/intel_th/intel_th_msu_sink.ko] undefined! ERROR: "min_low_pfn" [drivers/hwtracing/intel_th/intel_th_msu.ko] undef

[PATCH] ia64: fix min_low_pfn/max_low_pfn build errors

2020-08-28 Thread Randy Dunlap
Fix min_low_pfn/max_low_pfn build errors for arch/ia64/: (e.g.) ERROR: "max_low_pfn" [drivers/rpmsg/virtio_rpmsg_bus.ko] undefined! ERROR: "min_low_pfn" [drivers/rpmsg/virtio_rpmsg_bus.ko] undefined! ERROR: "min_low_pfn" [drivers/hwtracing/intel_th/intel_th_msu.ko] undefined! ERROR: "max_low_p

[PATCH] iio: sx9310: Prefer async probe

2020-08-28 Thread Douglas Anderson
On one board I found that: probe of 5-0028 returned 1 after 259547 usecs There's no reason to block probe of all other devices on our probe. Turn on async probe. Signed-off-by: Douglas Anderson --- NOTE: I haven't done any analysis of the driver to see _why_ it's so slow, only that I have meas

[ALTERNATE PATCH] memblock: fix min_low_pfn/max_low_pfn build errors

2020-08-28 Thread Randy Dunlap
Export min_low_pfn & max_low_pfn in mm/memblock.c to fix build errors on arch/microblaze/ and arch/ia64/: (e.g.) ERROR: "max_low_pfn" [drivers/rpmsg/virtio_rpmsg_bus.ko] undefined! ERROR: "min_low_pfn" [drivers/rpmsg/virtio_rpmsg_bus.ko] undefined! ERROR: "max_low_pfn" [drivers/mtd/spi-nor/s

[PATCH] spmi: prefix spmi bus device names with "spmi"

2020-08-28 Thread David Collins
Change the format of spmi bus device names from: - Example: 0-01 to this: spmi- Example: spmi0-01 This helps to disambiguate SPMI device regmaps from I2C ones at /sys/kernel/debug/regmap since I2C devices use a very similar naming scheme: 0-. Signed-off-by: David Collins --- drivers

Re: linux-next: build failure after merge of the net-next tree

2020-08-28 Thread Randy Dunlap
On 8/28/20 4:16 PM, Brian Vazquez wrote: > On Fri, Aug 28, 2020 at 8:12 AM Randy Dunlap wrote: >> >> On 8/28/20 8:09 AM, Sven Joachim wrote: >>> On 2020-08-27 11:12 -0700, Brian Vazquez wrote: >>> I've been trying to reproduce it with your config but I didn't succeed. I also looked at th

Re: [GIT PULL] io_uring fixes for 5.9-rc3

2020-08-28 Thread pr-tracker-bot
The pull request you sent on Fri, 28 Aug 2020 14:03:22 -0600: > git://git.kernel.dk/linux-block.git tags/io_uring-5.9-2020-08-28 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/24148d8648e37f8c15bedddfa50d14a31a0582c5 Thank you! -- Deet-doot-dot, I am a bot. https://

Re: [PATCH v36 12/24] x86/sgx: Add SGX_IOC_ENCLAVE_CREATE

2020-08-28 Thread Jarkko Sakkinen
On Thu, Aug 27, 2020 at 06:15:27PM +0200, Borislav Petkov wrote: > On Thu, Aug 27, 2020 at 04:24:36PM +0300, Jarkko Sakkinen wrote: > > I have not checked if this passes checkpatch.pl yet, but I would > > be surprised if that did not pass (obviously I'll check that). > > Right, when you're done wi

Re: [PATCH v36 22/24] selftests/x86: Add a selftest for SGX

2020-08-28 Thread Jarkko Sakkinen
On Thu, Aug 27, 2020 at 08:20:51AM -0700, Sean Christopherson wrote: > On Thu, Aug 27, 2020 at 12:47:04AM -0400, Nathaniel McCallum wrote: > > > +int main(int argc, char *argv[], char *envp[]) > > > +{ > > > + struct sgx_enclave_exception exception; > > > + struct vdso_symtab symtab; >

Re: [RFC PATCH v7 09/23] sched/fair: Fix forced idle sibling starvation corner case

2020-08-28 Thread Vineeth Pillai
On 8/28/20 5:25 PM, Peter Zijlstra wrote: The only pupose of this loop seem to be to find if we have a forceidle; surely we can avoid that by storing this during the pick. The idea was to kick each cpu that was force idle. But now, thinking about it, we just need to kick one as it will pick f

Re: [PATCH 4.19 1/7] sdhci: tegra: Remove SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK for Tegra210

2020-08-28 Thread Sowjanya Komatineni
On 8/28/20 4:15 PM, Sasha Levin wrote: On Fri, Aug 28, 2020 at 03:25:11PM -0700, Sowjanya Komatineni wrote: commit b5a84ecf025a ("mmc: tegra: Add Tegra210 support") What does this line above represent? SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK is set incorrectly in above commit when Tegra210 su

[PATCH] ASoC: rt5682: Prefer async probe

2020-08-28 Thread Douglas Anderson
The probe of rt5682 is pretty slow. A quick measurement shows that it takes ~650 ms on at least one board. There's no reason to block all other drivers waiting for this probe to finish. Set the flag to allow other drivers to probe while we're probing. Signed-off-by: Douglas Anderson --- NOTE:

Re: linux-next: build failure after merge of the net-next tree

2020-08-28 Thread Brian Vazquez
On Fri, Aug 28, 2020 at 8:12 AM Randy Dunlap wrote: > > On 8/28/20 8:09 AM, Sven Joachim wrote: > > On 2020-08-27 11:12 -0700, Brian Vazquez wrote: > > > >> I've been trying to reproduce it with your config but I didn't > >> succeed. I also looked at the file after the preprocessor and it > >> loo

Re: [PATCH 4.19 1/7] sdhci: tegra: Remove SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK for Tegra210

2020-08-28 Thread Sasha Levin
On Fri, Aug 28, 2020 at 03:25:11PM -0700, Sowjanya Komatineni wrote: commit b5a84ecf025a ("mmc: tegra: Add Tegra210 support") What does this line above represent? SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK is set for Tegra210 from the beginning of Tegra210 support in the driver. Tegra210 SDMMC hard

Re: [PATCH v3] net: Use standardized (IANA) local port range

2020-08-28 Thread David Miller
From: Stephen Hemminger Date: Fri, 28 Aug 2020 14:52:03 -0700 > Changing the default range impacts existing users. Since Linux has been doing > this for so long, I don't think just because a standards body decided to > reserve > some space is sufficient justification to do this. Agreed, there i

Re: [PATCH] of: of_match_node: Make stub an inline function to avoid W=1 warnings

2020-08-28 Thread Rob Herring
On Fri, Aug 28, 2020 at 7:00 AM Andrew Lunn wrote: > > On Fri, Aug 28, 2020 at 04:19:39AM +0200, Andrew Lunn wrote: > > When building without CONFIG_OF and W=1, errors are given about unused > > arrays of match data, because of_match_node is stubbed as a macro. The > > compile does not see it take

Re: [PATCH v6 2/2] ASoC: qcom: sc7180: Add machine driver for sound card registration

2020-08-28 Thread Doug Anderson
Hi, On Wed, Aug 26, 2020 at 4:05 AM Cheng-Yi Chiang wrote: > > +config SND_SOC_SC7180 > + tristate "SoC Machine driver for SC7180 boards" > + depends on SND_SOC_QCOM > + select SND_SOC_QCOM_COMMON > + select SND_SOC_LPASS_SC7180 > + select SND_SOC_MAX98357A > +

  1   2   3   4   5   6   7   8   9   10   >