[PATCH -next 2/9] rtlwifi: rtl8192c: fix comparison to bool warning in phy_common.c

2020-09-18 Thread Zheng Bin
Fixes coccicheck warning: drivers/net/wireless/realtek/rtlwifi/rtl8192c/phy_common.c:1106:14-18: WARNING: Comparison to bool Signed-off-by: Zheng Bin --- drivers/net/wireless/realtek/rtlwifi/rtl8192c/phy_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/w

[PATCH v17 0/2] Add initial support for slimport anx7625

2020-09-18 Thread Xin Ji
Hi all, The following series add support for the Slimport ANX7625 transmitter, a ultra-low power Full-HD 4K MIPI to DP transmitter designed for portable device. This is the v17 version, any mistakes, please let me know, I will fix it in the next series. Change history: v17: Fix comments from Da

Re: [PATCH v3 08/16] irqchip/gic: Configure SGIs as standard interrupts

2020-09-18 Thread Marc Zyngier
Hi James, On Fri, 18 Sep 2020 10:58:45 +0100, James Morse wrote: > > Hi Marc, > > (CC: +Jon) > > On 01/09/2020 15:43, Marc Zyngier wrote: > > Change the way we deal with GIC SGIs by turning them into proper > > IRQs, and calling into the arch code to register the interrupt range > > instead of

[PATCH v35 04/13] LRNG - add switchable DRNG support

2020-09-18 Thread Stephan Müller
The DRNG switch support allows replacing the DRNG mechanism of the LRNG. The switching support rests on the interface definition of include/linux/lrng.h. A new DRNG is implemented by filling in the interface defined in this header file. In addition to the DRNG, the extension also has to provide a

[PATCH v17 1/2] dt-bindings: drm/bridge: anx7625: MIPI to DP transmitter DT schema

2020-09-18 Thread Xin Ji
anx7625: MIPI to DP transmitter DT schema Signed-off-by: Xin Ji Reviewed-by: Rob Herring --- .../bindings/display/bridge/analogix,anx7625.yaml | 95 ++ 1 file changed, 95 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/analogix,anx7625.ya

[PATCH v17 2/2] drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP

2020-09-18 Thread Xin Ji
The ANX7625 is an ultra-low power 4K Mobile HD Transmitter designed for portable device. It converts MIPI DSI/DPI to DisplayPort 1.3 4K. Signed-off-by: Xin Ji Reported-by: kernel test robot Reported-by: Dan Carpenter --- drivers/gpu/drm/bridge/analogix/Kconfig |9 + drivers/gpu/drm/bridg

Re: [RFC PATCH V3 12/21] mmc: sdhci: UHS-II support, add hooks for additional operations

2020-09-18 Thread Ben Chuang
On Fri, Sep 18, 2020 at 9:15 AM AKASHI Takahiro wrote: > > Ben, > > On Thu, Sep 17, 2020 at 06:12:27PM +0800, Ben Chuang wrote: > > Hi Takahiro, > > > > On Thu, Sep 17, 2020 at 1:12 PM AKASHI Takahiro > > wrote: > > > > > > Adrian, Ben, > > > > > > Regarding _reset() function, > > > > > > On Fri,

Re: [PATCH 02/13] mm: use page_off_lru()

2020-09-18 Thread Yu Zhao
On Fri, Sep 18, 2020 at 09:37:00AM +0200, Michal Hocko wrote: > On Thu 17-09-20 21:00:40, Yu Zhao wrote: > > This patch replaces the only open-coded __ClearPageActive() with > > page_off_lru(). There is no open-coded __ClearPageUnevictable()s. > > > > Before this patch, we have: > > __ClearPag

Re: fbcon: remove soft scrollback code (missing Doc. patch)

2020-09-18 Thread Adam Borowski
On Wed, Sep 16, 2020 at 10:54:34PM +0200, Pavel Machek wrote: > On Mon 2020-09-14 18:28:34, Linus Torvalds wrote: > > Note that scrollback hasn't actually gone away entirely - the original > > scrollback supported by _hardware_ still exists. > > > > Of course, that's really just the old-fashioned

[PATCH] ASoC: fsl_sai: Instantiate snd_soc_dai_driver

2020-09-18 Thread Shengjiu Wang
Instantiate snd_soc_dai_driver for independent symmetric control. Otherwise the symmetric setting may be overwritten by other instance. Fixes: 08fdf65e37d5 ("ASoC: fsl_sai: Add asynchronous mode support") Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_sai.c | 19 +++ sound/so

[PATCH 2/2] iio: event: NULL-ify IIO device's event_interface ref during unregister

2020-09-18 Thread Alexandru Ardelean
Though we know that the iio_device_unregister_eventset() call is followed by the free-ing of the IIO device object, we should not make this assumption in the iio_device_unregister_eventset() function. It should allow for the clean unregistering of the event-set, allowing a re-register should we dec

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

2020-09-18 Thread Alexandru Ardelean
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_{un}register_eventset functions to make the code a little easier to read. Signed-off-by: Alexandru Ardelean --- drivers/iio/industrialio-event.c |

Re: [PATCH v4 2/3] Documentation: ABI: testing: mt6360: Add ADC sysfs guideline

2020-09-18 Thread Gene Chen
Jonathan Cameron 於 2020年9月18日 週五 下午4:05寫道: > > On Fri, 18 Sep 2020 15:21:44 +0800 > Gene Chen wrote: > > > Jonathan Cameron 於 2020年9月18日 週五 上午1:43寫道: > > > > > > On Wed, 16 Sep 2020 01:36:08 +0800 > > > Gene Chen wrote: > > > > > > > From: Gene Chen > > > > > > > > Add ABI documentation for mt

[PATCH v5] iio: core: Add optional symbolic label to a device channel

2020-09-18 Thread Cristian Pop
If a label is defined in the device tree for this channel add that to the channel specific attributes. This is useful for userspace to be able to identify an individual channel. Signed-off-by: Cristian Pop --- Changes in V5: Create patch for single commits. drivers/iio/industrialio-core.

Re: [PATCH v2 5/6] input: atc260x: Add onkey driver for ATC260x PMICs

2020-09-18 Thread Cristian Ciocaltea
Hi Dmitry, Thanks for the review! On Mon, Sep 14, 2020 at 02:09:41PM -0700, Dmitry Torokhov wrote: > Hi Cristian, > > On Sat, Aug 22, 2020 at 01:19:51AM +0300, Cristian Ciocaltea wrote: > > The Actions Semi ATC260x PMICs are able to manage an onkey button. > > This driver exposes the ATC260x onk

Re: [PATCHv3] perf kvm: add kvm-stat for arm64

2020-09-18 Thread Sergey Senozhatsky
On (20/09/18 09:20), Marc Zyngier wrote: > On 2020-09-18 01:32, Sergey Senozhatsky wrote: > > On (20/09/17 12:53), Marc Zyngier wrote: > > > Feel free to add a *new* tracepoint instead. > > > > Wouldn't we want a whole bunch of new tracepoints in this case? > > Yes. I don't have a better solution

Re: [PATCH -next] i2c: efm32: Use devm_platform_get_and_ioremap_resource()

2020-09-18 Thread Wangshaobo (bobo)
在 2020/9/18 18:01, Yicong Yang 写道: On 2020/9/18 16:25, Wang ShaoBo wrote: Make use of devm_platform_get_and_ioremap_resource() provided by driver core platform instead of duplicated analogue. dev_err() is removed because it has been done in devm_ioremap_resource(). Signed-off-by: Wang ShaoBo

[PATCH] dmabuf: fix NULL pointer dereference in dma_buf_release()

2020-09-18 Thread Charan Teja Reddy
NULL pointer dereference is observed while exporting the dmabuf but failed to allocate the 'struct file' which results into the dropping of the allocated dentry corresponding to this file in the dmabuf fs, which is ending up in dma_buf_release() and accessing the uninitialzed dentry->d_fsdata. Cal

Re: [PATCH v2 07/37] kasan: split out shadow.c from common.c

2020-09-18 Thread Andrey Konovalov
On Fri, Sep 18, 2020 at 10:17 AM Alexander Potapenko wrote: > > > diff --git a/mm/kasan/shadow.c b/mm/kasan/shadow.c > > new file mode 100644 > > index ..4888084ecdfc > > --- /dev/null > > +++ b/mm/kasan/shadow.c > > @@ -0,0 +1,509 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +/* >

Re: [PATCH v2 20/37] kasan: rename tags.c to tags_sw.c

2020-09-18 Thread Andrey Konovalov
On Fri, Sep 18, 2020 at 11:46 AM Alexander Potapenko wrote: > > > Also, as we are going to have CONFIG_KASAN_{SW,HW}_TAGS, won't it be > > better to call the files {report_,}tags_{sw,hw}.c ? > > Sorry for the typo, I meant "{report_,}{sw,hw}_tags.c, mirroring the > config names. The idea here was

Re: [PATCH] media: uAPI: buffer.rst: remove a left-over documentation

2020-09-18 Thread Sergey Senozhatsky
On (20/09/17 09:21), Mauro Carvalho Chehab wrote: > Changeset 129134e5415d ("media: media/v4l2: remove > V4L2_FLAG_MEMORY_NON_CONSISTENT flag") > reverted an uAPI flag, but it kept some left-overs at the documentation. > > Drop them too. This should solve this warning: > > Documentation/us

Re: [PATCH v2 05/37] kasan: rename KASAN_SHADOW_* to KASAN_GRANULE_*

2020-09-18 Thread Andrey Konovalov
On Fri, Sep 18, 2020 at 10:04 AM 'Alexander Potapenko' via kasan-dev wrote: > > On Tue, Sep 15, 2020 at 11:16 PM Andrey Konovalov > wrote: > > > > This is a preparatory commit for the upcoming addition of a new hardware > > tag-based (MTE-based) KASAN mode. > > > > The new mode won't be using sh

[GIT PULL] mtd: Fixes for v5.9-rc6

2020-09-18 Thread Vignesh Raghavendra
Hello Linus, Please pull the MTD changes for v5.9-rc6. I am sending this on behalf of MTD maintainers group this time around. Miquel/Richard, Could you please ACK the PR? Regards Vignesh The following changes since commit 856deb866d16e29bd65952e0289066f6078af773: Linux 5.9-rc5 (2020-09-13

Re: [PATCH v2 33/37] kasan, arm64: implement HW_TAGS runtime

2020-09-18 Thread Marco Elver
On Tue, Sep 15, 2020 at 11:16PM +0200, Andrey Konovalov wrote: [...] > arch/arm64/include/asm/memory.h | 4 +- > arch/arm64/kernel/setup.c | 1 - > include/linux/kasan.h | 6 +-- > include/linux/mm.h| 2 +- > include/linux/page-flags-layout.h | 2 +- > mm

[PATCH v3 2/4] kselftests/arm64: add nop checks for PAuth tests

2020-09-18 Thread Boyan Karatotev
From: Boyan Karatotev PAuth adds sign/verify controls to enable and disable groups of instructions in hardware for compatibility with libraries that do not implement PAuth. The kernel always enables them if it detects PAuth. Add a test that checks that each group of instructions is enabled, if t

[PATCH v3 3/4] kselftests/arm64: add PAuth test for whether exec() changes keys

2020-09-18 Thread Boyan Karatotev
From: Boyan Karatotev Kernel documentation states that it will change PAuth keys on exec() calls. Verify that all keys are correctly switched to new ones. Cc: Shuah Khan Cc: Catalin Marinas Cc: Will Deacon Reviewed-by: Vincenzo Frascino Reviewed-by: Amit Daniel Kachhap Acked-by: Shuah Khan

[PATCH v3 4/4] kselftests/arm64: add PAuth tests for single threaded consistency and differently initialized keys

2020-09-18 Thread Boyan Karatotev
From: Boyan Karatotev PAuth adds 5 different keys that can be used to sign addresses. Add a test that verifies that the kernel initializes them to different values and preserves them across context switches. Cc: Shuah Khan Cc: Catalin Marinas Cc: Will Deacon Reviewed-by: Vincenzo Frascino R

[PATCH v3 0/4] kselftests/arm64: add PAuth tests

2020-09-18 Thread Boyan Karatotev
Pointer Authentication (PAuth) is a security feature introduced in ARMv8.3. It introduces instructions to sign addresses and later check for potential corruption using a second modifier value and one of a set of keys. The signature, in the form of the Pointer Authentication Code (PAC), is stored in

[PATCH v3 1/4] kselftests/arm64: add a basic Pointer Authentication test

2020-09-18 Thread Boyan Karatotev
From: Boyan Karatotev PAuth signs and verifies return addresses on the stack. It does so by inserting a Pointer Authentication code (PAC) into some of the unused top bits of an address. This is achieved by adding paciasp/autiasp instructions at the beginning and end of a function. This feature i

Re: [RFC PATCH] locking/percpu-rwsem: use this_cpu_{inc|dec}() for read_count

2020-09-18 Thread Oleg Nesterov
On 09/18, Peter Zijlstra wrote: > > On Fri, Sep 18, 2020 at 12:01:12PM +0200, pet...@infradead.org wrote: > > + u64 sum = per_cpu_sum(*(u64 *)sem->read_count); > > Moo, that doesn't work, we have to do two separate sums. Or we can re-introduce "atomic_t slow_read_ctr". percpu_up_read_ir

[PATCH 2/3] ARM: mstar: Add interrupt controller to base dtsi

2020-09-18 Thread Daniel Palmer
Add the IRQ and FIQ intc instances to the base MStar/SigmaStar v7 dtsi. All of the known SoCs have both and at the same place with their common IPs using the same interrupt lines. Signed-off-by: Daniel Palmer --- arch/arm/boot/dts/mstar-v7.dtsi | 19 +++ 1 file changed, 19 insert

[PATCH 1/3] ARM: mstar: Select MStar intc

2020-09-18 Thread Daniel Palmer
MediaTek recently introduced support for the MStar interrupt controller that is also present in some of their chips as well as the MStar/Sigmastar chips. Almost all of the peripheral interrupts go through an instance of this controller in MStar/SigmaStar Arm v7 chips so we want to select it if CON

[PATCH 0/3] ARM: mstar: wire up interrupt controllers

2020-09-18 Thread Daniel Palmer
Mark-PK Tsai's driver for the MStar interrupt controller should be going into 5.10[0]. This small series selects the driver when building support for MStar/SigmaStar Arm v7 SoCs, adds the instances of it to the base dtsi and wires up the interrupt for pm_uart. 0 - https://lore.kernel.org/linux-ar

Re: [RFC PATCH V3 12/21] mmc: sdhci: UHS-II support, add hooks for additional operations

2020-09-18 Thread Ben Chuang
On Fri, Sep 18, 2020 at 2:38 PM AKASHI Takahiro wrote: > > Adrian, Ben, > > Regarding _set_ios() function, > > On Fri, Aug 21, 2020 at 05:08:32PM +0300, Adrian Hunter wrote: > > On 10/07/20 2:10 pm, Ben Chuang wrote: > > > From: Ben Chuang > > > > > > In this commit, UHS-II related operations wil

[PATCH 3/3] ARM: mstar: Add interrupt to pm_uart

2020-09-18 Thread Daniel Palmer
Since we now have support for the interrupt controller pm_uart's interrupt is routed through it make sense to wire up it's interrupt in the device tree. The interrupt is the same for all known chips so it goes in the base dtsi. Signed-off-by: Daniel Palmer --- arch/arm/boot/dts/mstar-v7.dtsi |

Re: [PATCH v6 0/8] powerpc/watchpoint: Bug fixes plus new feature flag

2020-09-18 Thread Michael Ellerman
Rogerio Alves writes: > On 9/2/20 1:29 AM, Ravi Bangoria wrote: >> Patch #1 fixes issue for quardword instruction on p10 predecessors. >> Patch #2 fixes issue for vector instructions. >> Patch #3 fixes a bug about watchpoint not firing when created with >> ptrace PPC_PTRACE_SETHWDEBUG an

Re: [PATCH 04/26] perf tools: Add filename__decompress function

2020-09-18 Thread Jiri Olsa
On Thu, Sep 17, 2020 at 03:54:55PM -0300, Arnaldo Carvalho de Melo wrote: > Em Mon, Sep 14, 2020 at 10:43:26PM +0200, Jiri Olsa escreveu: > > On Mon, Sep 14, 2020 at 12:35:54PM -0300, Arnaldo Carvalho de Melo wrote: > > > Em Sun, Sep 13, 2020 at 11:02:51PM +0200, Jiri Olsa escreveu: > > > > Factor

[PATCH] [v2] nvme: use correct upper limit for tag in nvme_handle_cqe()

2020-09-18 Thread Xianting Tian
We met a crash issue when hot-insert a nvme device, blk_mq_tag_to_rq() returned null(req=null), then crash happened in nvme_end_request(): req = blk_mq_tag_to_rq(); struct nvme_request *rq = nvme_req(req); //rq = req + 1 rq->result = result; <==crash here!!! [ 1124

Re: [PATCH v2 31/37] kasan, x86, s390: update undef CONFIG_KASAN

2020-09-18 Thread Marco Elver
On Tue, Sep 15, 2020 at 11:16PM +0200, Andrey Konovalov wrote: [...] > arch/s390/boot/string.c | 1 + > arch/x86/boot/compressed/misc.h | 1 + > 2 files changed, 2 insertions(+) > > diff --git a/arch/s390/boot/string.c b/arch/s390/boot/string.c > index b11e8108773a..faccb33b462c 100644 >

Re: [PATCHv3] perf kvm: add kvm-stat for arm64

2020-09-18 Thread Marc Zyngier
On 2020-09-18 11:35, Sergey Senozhatsky wrote: On (20/09/18 09:20), Marc Zyngier wrote: On 2020-09-18 01:32, Sergey Senozhatsky wrote: > On (20/09/17 12:53), Marc Zyngier wrote: > > Feel free to add a *new* tracepoint instead. > > Wouldn't we want a whole bunch of new tracepoints in this case?

Re: [PATCHv3] selftests: rtnetlink: load fou module for kci_test_encap_fou() test

2020-09-18 Thread Po-Hsu Lin
Hello folks, any thoughts on this patch? It can make the test pass and reduce the failure numbers in kselftests, it will be great to have this applied. Thanks PHLin On Tue, Sep 8, 2020 at 2:57 PM Po-Hsu Lin wrote: > > On Tue, Sep 8, 2020 at 4:12 AM Jakub Kicinski wrote: > > > > On Mon, 7 Sep

KASAN: null-ptr-deref Read in PageHuge

2020-09-18 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:6b02addb Add linux-next specific files for 20200915 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=17a7441d90 kernel config: https://syzkaller.appspot.com/x/.config?x=7086d0e9e44d4a14 dashboard

[PATCH v5] iio: adc: ad7768-1: Add channel label example

2020-09-18 Thread Cristian Pop
This is a demo usage of new "label" attribute for channel. Signed-off-by: Cristian Pop --- Changes in V5: Create a separate patch file for this commit drivers/iio/adc/ad7768-1.c | 49 ++ 1 file changed, 49 insertions(+) diff --git a/drivers/iio/adc/ad7768-1.c

RE: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-09-18 Thread Z.q. Hou
Hi Rob, Thanks a lot for your comments! > -Original Message- > From: Rob Herring > Sent: 2020年9月17日 4:29 > To: Z.q. Hou > Cc: linux-kernel@vger.kernel.org; PCI ; Lorenzo > Pieralisi ; Bjorn Helgaas > ; Gustavo Pimentel > ; Michael Walle ; > Ard Biesheuvel > Subject: Re: [PATCH] PCI: dw

Re: [PATCH] ASoC: Use memset_io to access I/O memory

2020-09-18 Thread Mark Brown
On Fri, Sep 18, 2020 at 06:00:19PM +0800, Shane Chien wrote: > /* clear the buffer for avoiding possible kernel info leaks */ > if (runtime->dma_area && !substream->ops->copy_user) > - memset(runtime->dma_area, 0, runtime->dma_bytes); > + memset_io(runtime->dma_

Re: [PATCH v2 1/2] tty: serial: print earlycon info after match->setup

2020-09-18 Thread Andy Shevchenko
On Tue, Sep 15, 2020 at 8:50 AM Hsin-Yi Wang wrote: > > 8250 devices may modify iotype in their own earlycon setup. For example: > 8250_mtk and 8250_uniphier force iotype to be MMIO32. Print earlycon info > after match->setup to reflect actual earlycon info. Thanks for an update. I prefer to see

Re: [RFC PATCH] locking/percpu-rwsem: use this_cpu_{inc|dec}() for read_count

2020-09-18 Thread peterz
On Fri, Sep 18, 2020 at 12:48:24PM +0200, Oleg Nesterov wrote: > Of course, this assumes that atomic_t->counter underflows "correctly", just > like "unsigned int". We're documented that we do. Lots of code relies on that. See Documentation/atomic_t.txt TYPES > But again, do we really want this?

RE: [PATCH] nvme: use correct upper limit for tag in nvme_handle_cqe()

2020-09-18 Thread Tianxianting
I am very sorry, Please ignore this patch, the code need to rewrite. -Original Message- From: tianxianting (RD) Sent: Friday, September 18, 2020 3:45 PM To: kbu...@kernel.org; ax...@fb.com; h...@lst.de; s...@grimberg.me Cc: linux-n...@lists.infradead.org; linux-kernel@vger.kernel.org; tia

Re: [PATCH v2] arm64: Enable PCI write-combine resources under sysfs

2020-09-18 Thread Catalin Marinas
On Fri, Sep 18, 2020 at 03:33:12AM +, Clint Sbisa wrote: > This change exposes write-combine mappings under sysfs for > prefetchable PCI resources on arm64. > > Originally, the usage of "write combine" here was driven by the x86 > definition of write combine. This definition is specific to x86

Re: [PATCH 02/13] mm: use page_off_lru()

2020-09-18 Thread Michal Hocko
On Fri 18-09-20 04:27:13, Yu Zhao wrote: > On Fri, Sep 18, 2020 at 09:37:00AM +0200, Michal Hocko wrote: > > On Thu 17-09-20 21:00:40, Yu Zhao wrote: > > > This patch replaces the only open-coded __ClearPageActive() with > > > page_off_lru(). There is no open-coded __ClearPageUnevictable()s. > > >

[PATCH] Bluetooth: Fix the vulnerable issue on enc key size

2020-09-18 Thread Alex Lu
When someone attacks the service provider, it creates connection, authenticates. Then it requests key size of one byte and it identifies the key with brute force methods. After l2cap info req/resp exchange is complete. the attacker sends l2cap connect with specific PSM. In above procedure, there

Re: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-09-18 Thread Michael Walle
Hi Zhiqiang, So the alternative solution seems to correct the PCIe enumeration, I will submit a patch to let the first access only read the Vendor ID. Please put me on CC of that patch. Thanks, -michael

Re: [PATCH -next] tty: serial: imx: fix link error with CONFIG_SERIAL_CORE_CONSOLE=n

2020-09-18 Thread Greg KH
On Fri, Sep 18, 2020 at 05:13:05PM +0800, Yang Yingliang wrote: > Fix the link error by selecting SERIAL_CORE_CONSOLE. > > aarch64-linux-gnu-ld: drivers/tty/serial/imx_earlycon.o: in function > `imx_uart_console_early_write': > imx_earlycon.c:(.text+0x84): undefined reference to `uart_console_wri

Re: [PATCH] dmabuf: fix NULL pointer dereference in dma_buf_release()

2020-09-18 Thread Christian König
Am 18.09.20 um 12:32 schrieb Charan Teja Reddy: NULL pointer dereference is observed while exporting the dmabuf but failed to allocate the 'struct file' which results into the dropping of the allocated dentry corresponding to this file in the dmabuf fs, which is ending up in dma_buf_release() and

Re: [PATCH -next] tty: hvc: fix link error with CONFIG_SERIAL_CORE_CONSOLE=n

2020-09-18 Thread Greg KH
On Fri, Sep 18, 2020 at 05:20:30PM +0800, Yang Yingliang wrote: > Fix the link error by selecting SERIAL_CORE_CONSOLE. > > aarch64-linux-gnu-ld: drivers/tty/hvc/hvc_dcc.o: in function > `dcc_early_write': > hvc_dcc.c:(.text+0x164): undefined reference to `uart_console_write' > > Reported-by: Hul

Re: [PATCH v2 00/10] KFENCE: A low-overhead sampling-based memory safety error detector

2020-09-18 Thread Qian Cai
On Tue, 2020-09-15 at 15:20 +0200, Marco Elver wrote: > This adds the Kernel Electric-Fence (KFENCE) infrastructure. KFENCE is a > low-overhead sampling-based memory safety error detector of heap > use-after-free, invalid-free, and out-of-bounds access errors. This > series enables KFENCE for the

Re: [PATCH v4] ASoC: tlv320adcx140: Add support for configuring GPIO pin

2020-09-18 Thread Mark Brown
On Fri, Sep 18, 2020 at 09:32:29AM +0200, Camel Guo wrote: > From: Camel Guo > > Add support to configure the GPIO pin to the specific configuration. > The GPIO pin can be configured as GPO, IRQ, SDOUT2, PDMCLK, MICBASE_EN, > GPI, MCLK, SDIN, PDMDIN1, PDMDIN2, PDMDIN3 or PDMDIN4 and the output >

Re: [V9fs-developer] [PATCH 02/13] 9p: Tell the VFS that readpage was synchronous

2020-09-18 Thread Matthew Wilcox
On Fri, Sep 18, 2020 at 07:59:19AM +0200, Dominique Martinet wrote: > Matthew Wilcox (Oracle) wrote on Thu, Sep 17, 2020: > > diff --git a/fs/9p/vfs_addr.c b/fs/9p/vfs_addr.c > > index cce9ace651a2..506ca0ba2ec7 100644 > > --- a/fs/9p/vfs_addr.c > > +++ b/fs/9p/vfs_addr.c > > @@ -280,6 +280,10 @@ s

[PATCH] regmap: debugfs: Add back in erroneously removed initialisation of ret

2020-09-18 Thread Charles Keepax
Fixes: 94cc89eb8fa5 ("regmap: debugfs: Fix handling of name string for debugfs init delays") Reported-by: kernel test robot Reported-by: Dan Carpenter Signed-off-by: Charles Keepax --- drivers/base/regmap/regmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base

WARNING in close_fs_devices (2)

2020-09-18 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:e4c26faa Merge tag 'usb-5.9-rc5' of git://git.kernel.org/p.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15bf162190 kernel config: https://syzkaller.appspot.com/x/.config?x=c61610091f4ca8c4 das

[PATCH v5 1/6] genirq: define an empty function set_handle_irq() if !GENERIC_IRQ_MULTI_HANDLER

2020-09-18 Thread Zhen Lei
To avoid compilation error if an irqchip driver references the function set_handle_irq() but may not select GENERIC_IRQ_MULTI_HANDLER on some systems. For example, the Synopsys DesignWare APB interrupt controller (dw_apb_ictl) is used as the secondary interrupt controller on arc, csky, arm64, and

[PATCH v5 2/6] irqchip: dw-apb-ictl: prepare for support hierarchy irq domain

2020-09-18 Thread Zhen Lei
Rename some functions and variables in advance, to make the next patch looks more clear. The details are as follows: 1. rename dw_apb_ictl_handler() to dw_apb_ictl_handle_irq_cascaded(). 2. change (1 << hwirq) to BIT(hwirq). In function dw_apb_ictl_init(): 1. rename local variable irq to parent_ir

[PATCH v5 4/6] dt-bindings: dw-apb-ictl: support hierarchy irq domain

2020-09-18 Thread Zhen Lei
Add support to use dw-apb-ictl as primary interrupt controller. Signed-off-by: Zhen Lei --- .../bindings/interrupt-controller/snps,dw-apb-ictl.txt | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/interrupt-controller/snps,d

[PATCH v5 5/6] dt-bindings: dw-apb-ictl: convert to json-schema

2020-09-18 Thread Zhen Lei
Convert the Synopsys DesignWare APB interrupt controller (dw_apb_ictl) binding to DT schema format using json-schema. Signed-off-by: Zhen Lei --- .../interrupt-controller/snps,dw-apb-ictl.txt | 43 - .../interrupt-controller/snps,dw-apb-ictl.yaml | 75 ++

[PATCH v5 0/6] irqchip: dw-apb-ictl: support hierarchy irq domain

2020-09-18 Thread Zhen Lei
v4 --> v5: 1. Add WARN_ON(1) in set_handle_irq() if !GENERIC_IRQ_MULTI_HANDLER 2. Convert "snps,dw-apb-ictl.txt" to "snps,dw-apb-ictl.yaml" 3. Fix the errors detected by "snps,dw-apb-ictl.yaml" on arch/arc v3 --> v4: 1. remove "gc->chip_types[0].chip.irq_eoi = irq_gc_noop;", the "chip.irq_eoi" ho

[PATCH v5 6/6] ARC: [dts] fix the errors detected by dtbs_check

2020-09-18 Thread Zhen Lei
xxx/arc/boot/dts/axs101.dt.yaml: dw-apb-ictl@e0012000: $nodename:0: \ 'dw-apb-ictl@e0012000' does not match '^interrupt-controller(@[0-9a-f,]+)*$' >From schema: xxx/interrupt-controller/snps,dw-apb-ictl.yaml The node name of the interrupt controller must start with "interrupt-controller" instead o

[PATCH v5 3/6] irqchip: dw-apb-ictl: support hierarchy irq domain

2020-09-18 Thread Zhen Lei
Add support to use dw-apb-ictl as primary interrupt controller. Suggested-by: Marc Zyngier Signed-off-by: Zhen Lei Tested-by: Haoyu Lv --- drivers/irqchip/Kconfig | 2 +- drivers/irqchip/irq-dw-apb-ictl.c | 74 ++- 2 files changed, 67 insertions(+

Re: [PATCH 02/13] mm: use page_off_lru()

2020-09-18 Thread Michal Hocko
On Fri 18-09-20 04:27:13, Yu Zhao wrote: > On Fri, Sep 18, 2020 at 09:37:00AM +0200, Michal Hocko wrote: [...] > And I have asked this before: why does 'the compound page situation' > even matter here? Perhaps if you could give a concrete example related > to the code change and help me understand

[PATCH] PCI: Cadence: Add quirk for Gen2 controller to do autonomous speed change.

2020-09-18 Thread Nadeem Athani
Cadence controller will not initiate autonomous speed change if strapped as Gen2. The Retrain bit is set as a quirk to trigger this speed change. Signed-off-by: Nadeem Athani --- drivers/pci/controller/cadence/pcie-cadence-host.c | 13 + drivers/pci/controller/cadence/pcie-cadence.

[PATCH] efivarfs: Replace invalid slashes with exclamation marks in dentries.

2020-09-18 Thread Michael Schaller
Without this patch efivarfs_alloc_dentry creates dentries with slashes in their name if the respective EFI variable has slashes in its name. This in turn causes EIO on getdents64, which prevents a complete directory listing of /sys/firmware/efi/efivars/. This patch replaces the invalid shlashes wi

[PATCH v4 1/2] dt-bindings: tlv320adcx140: Add GPIO config and drive config

2020-09-18 Thread Camel Guo
From: Camel Guo Add properties for configuring the General Purpose Input Output (GPIO). There are 2 settings for GPIO, configuration and the output drive type. Signed-off-by: Camel Guo Acked-by: Dan Murphy --- v4: - Rebase v3: - Fix typo - Add Acked-By from Dan .../bindings/sound/t

[PATCH v5] iio:Documentation: Add documentation for label channel attribute

2020-09-18 Thread Cristian Pop
If a label is defined in the device tree for this channel add that to the channel specific attributes. This is useful for userspace to be able to identify an individual channel. Signed-off-by: Cristian Pop --- Changes in V5: Create a separate patch file for this commit. Documentation/ABI/testing

Re: [PATCH v4] ASoC: tlv320adcx140: Add support for configuring GPIO pin

2020-09-18 Thread Camel Guo
Mark On 9/18/20 1:18 PM, Mark Brown wrote: On Fri, Sep 18, 2020 at 09:32:29AM +0200, Camel Guo wrote: From: Camel Guo Add support to configure the GPIO pin to the specific configuration. The GPIO pin can be configured as GPO, IRQ, SDOUT2, PDMCLK, MICBASE_EN, GPI, MCLK, SDIN, PDMDIN1, PDMDIN2,

Re: [PATCH printk 1/3] printk: move printk_info into separate array

2020-09-18 Thread John Ogness
On 2020-09-18, Petr Mladek wrote: >> --- a/kernel/printk/printk.c >> +++ b/kernel/printk/printk.c >> @@ -1097,6 +1097,7 @@ static char setup_dict_buf[CONSOLE_EXT_LOG_MAX] >> __initdata; >> >> void __init setup_log_buf(int early) >> { >> +struct printk_info *new_infos; >> unsigned int

[PATCH 01/13] dt-bindings: arm: fsl: update TQ-Systems SoMs and boards based on i.MX7

2020-09-18 Thread Matthias Schiffer
Introduce compatible strings for the TQMa7x SoMs. Signed-off-by: Matthias Schiffer --- Documentation/devicetree/bindings/arm/fsl.yaml | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bin

[PATCH 08/13] ARM: dts: imx7-mba7: update MMC aliases

2020-09-18 Thread Matthias Schiffer
Together with the recently merged support for alias-based MMC host numbering, this makes the MMC devices names match what the bootloader expects. Signed-off-by: Matthias Schiffer --- arch/arm/boot/dts/imx7-mba7.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/imx7

[PATCH 03/13] ARM: dts: imx7-mba7: update compatible strings

2020-09-18 Thread Matthias Schiffer
Include the SoM compatible string. Signed-off-by: Matthias Schiffer --- arch/arm/boot/dts/imx7d-mba7.dts | 2 +- arch/arm/boot/dts/imx7s-mba7.dts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/imx7d-mba7.dts b/arch/arm/boot/dts/imx7d-mba7.dts index 22127

[PATCH 04/13] ARM: dts: imx7-mba7: drop incorrect num-chipselects property

2020-09-18 Thread Matthias Schiffer
This property was never set correctly; it should have been num-cs. As num-cs support is being removed as well, simply drop it. Signed-off-by: Matthias Schiffer --- arch/arm/boot/dts/imx7-mba7.dtsi | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/boot/dts/imx7-mba7.dtsi b/arch/arm/bo

Re: [PATCH] dmaengine: qcom: Add ADM driver

2020-09-18 Thread Vinod Koul
Hello Jonathan On 16-09-20, 07:43, Jonathan McDowell wrote: > From: Andy Gross > > (I'm not sure how best to attribute this. It's originally from Andy > Gross, the version I picked up was a later version from Thomas Pedersen, > and I can't find clear indication of why the latest version wasn't >

Re: [PATCH v2 3/3] asm-generic/io.h: Fix !CONFIG_GENERIC_IOMAP pci_iounmap() implementation

2020-09-18 Thread George Cherian
> -Original Message- > From: Lorenzo Pieralisi > Sent: Thursday, September 17, 2020 3:00 PM > To: Catalin Marinas > Cc: linux-kernel@vger.kernel.org; George Cherian ; > Arnd Bergmann ; Will Deacon ; Bjorn > Helgaas ; Yang Yingliang > ; linux-...@vger.kernel.org; linux- > a...@vger.kern

Re: [PATCH v4] ASoC: tlv320adcx140: Add support for configuring GPIO pin

2020-09-18 Thread Mark Brown
On Fri, Sep 18, 2020 at 01:27:50PM +0200, Camel Guo wrote: > On 9/18/20 1:18 PM, Mark Brown wrote: > > This needs a DT bindings update for the new property (I thought there > > was one in prior versions)? > That patch for DT bindings has no change at all. Now I resent it anyway. Any patch series

[PATCH 02/13] ARM: dts: imx7-tqma7: add SPI-NOR flash

2020-09-18 Thread Matthias Schiffer
The SPI-NOR flash on the SoM was missing from the device tree. Signed-off-by: Matthias Schiffer --- arch/arm/boot/dts/imx7-tqma7.dtsi | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/boot/dts/imx7-tqma7.dtsi b/arch/arm/boot/dts/imx7-tqma7.dtsi index 8

[PATCH 12/13] ARM: dts: imx7-mba7: specify USB over-current polarity

2020-09-18 Thread Matthias Schiffer
Add over-current-active-low to usbotg1. Signed-off-by: Matthias Schiffer --- arch/arm/boot/dts/imx7-mba7.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/imx7-mba7.dtsi b/arch/arm/boot/dts/imx7-mba7.dtsi index cd29844bc76b..52b8f66f9982 100644 --- a/arch/arm/boot/dts/im

[PATCH 10/13] ARM: dts: imx7-mba7: add default SPI-NOR flash partition layout

2020-09-18 Thread Matthias Schiffer
Add the partition layout also used by the bootloader. Signed-off-by: Matthias Schiffer --- arch/arm/boot/dts/imx7-mba7.dtsi | 32 1 file changed, 32 insertions(+) diff --git a/arch/arm/boot/dts/imx7-mba7.dtsi b/arch/arm/boot/dts/imx7-mba7.dtsi index 9cfaf0a91100

[PATCH 11/13] ARM: dts: imx7-mba7: enable RS485 on UART7

2020-09-18 Thread Matthias Schiffer
The UART7 interface is connected to a full-duplex RS485 transceiver. Signed-off-by: Matthias Schiffer --- arch/arm/boot/dts/imx7-mba7.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/imx7-mba7.dtsi b/arch/arm/boot/dts/imx7-mba7.dtsi index f1e50bcd21a5..cd29844bc76b 1

[PATCH 05/13] ARM: dts: imx7-mba7: remove unsupported PHY LED setup

2020-09-18 Thread Matthias Schiffer
These properties were never supported by the DP83867, and a patch implementing them was rejected in favor of a different solution. Remove them. Signed-off-by: Matthias Schiffer --- arch/arm/boot/dts/imx7-mba7.dtsi | 4 arch/arm/boot/dts/imx7d-mba7.dts | 4 2 files changed, 8 deletions(

[PATCH 13/13] ARM: dts: imx7-mba7: set dr_mode to otg on usbotg1

2020-09-18 Thread Matthias Schiffer
USBOTG1 has a Micro-USB port that can be used in host mode (using an OTG cable) or device mode. Signed-off-by: Matthias Schiffer --- arch/arm/boot/dts/imx7-mba7.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx7-mba7.dtsi b/arch/arm/boot/dts/imx7-mba7

[PATCH 06/13] ARM: dts: imx7-mba7: disable ethernet PHY clock outputs

2020-09-18 Thread Matthias Schiffer
The clock outputs are not connected. Disable them to improve EMI behaviour. Signed-off-by: Matthias Schiffer --- arch/arm/boot/dts/imx7-mba7.dtsi | 1 + arch/arm/boot/dts/imx7d-mba7.dts | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/imx7-mba7.dtsi b/arch/arm/boot/dts/imx

[PATCH 07/13] ARM: dts: imx7-mba7: configure watchdog

2020-09-18 Thread Matthias Schiffer
The external watchdog reset is necessary, as the internal reset is unreliable on i.MX7. Signed-off-by: Matthias Schiffer --- arch/arm/boot/dts/imx7-mba7.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/imx7-mba7.dtsi b/arch/arm/boot/dts/imx7-mba7.dtsi inde

[PATCH 09/13] ARM: dts: imx7-mba7: add audio support

2020-09-18 Thread Matthias Schiffer
The MBa7x is equipped with a TI TLV320AIC3204 audio codec. Signed-off-by: Matthias Schiffer --- arch/arm/boot/dts/imx7-mba7.dtsi | 38 +++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx7-mba7.dtsi b/arch/arm/boot/dts/imx7-mba7.dts

Re: [PATCH 0/3] ARM: mstar: wire up interrupt controllers

2020-09-18 Thread Arnd Bergmann
On Fri, Sep 18, 2020 at 12:49 PM Daniel Palmer wrote: > > Mark-PK Tsai's driver for the MStar interrupt > controller should be going into 5.10[0]. > > This small series selects the driver when building > support for MStar/SigmaStar Arm v7 SoCs, adds the > instances of it to the base dtsi and wires

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-18 Thread Gal Pressman
On 17/09/2020 20:18, Jason Gunthorpe wrote: > On Tue, Sep 15, 2020 at 11:46:58PM +0300, Oded Gabbay wrote: >> infrastructure for communication between multiple accelerators. Same >> as Nvidia uses NVlink, we use RDMA that we have inside our ASIC. >> The RDMA implementation we did does NOT support s

[PATCH v2 1/2] locktorture: doesn't check nreaders_stress when no readlock support

2020-09-18 Thread Hou Tao
When do locktorture for exclusive lock which doesn't have readlock support, the following module parameters will be considered as valid: torture_type=mutex_lock nwriters_stress=0 nreaders_stress=1 But locktorture will do nothing useful, so instead of permitting these useless parameters, let's re

[PATCH net-next] net: brcmfmac: check return value of driver_for_each_device()

2020-09-18 Thread Zhang Changzhong
Fixes the following W=1 kernel build warning(s): drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c:1576:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable] 1576 | int ret; | ^~~ driver_for_each_device() has been declared with __must_check, so the return va

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

2020-09-18 Thread Alexandru Ardelean
On Fri, Sep 18, 2020 at 1:34 PM 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_{un}register_eventset functions to make the code a little easier > to read. >

Re: [PATCH printk 2/3] printk: move dictionary keys to dev_printk_info

2020-09-18 Thread Petr Mladek
On Thu 2020-09-17 15:22:43, John Ogness wrote: > Dictionaries are only used for SUBSYSTEM and DEVICE properties. The > current implementation stores the property names each time they are > used. This requires more space than otherwise necessary. Also, > because the dictionary entries are currently

[PATCH v5 1/2] dt-bindings: tlv320adcx140: Add GPIO config and drive config

2020-09-18 Thread Camel Guo
From: Camel Guo Add properties for configuring the General Purpose Input Output (GPIO). There are 2 settings for GPIO, configuration and the output drive type. Signed-off-by: Camel Guo Acked-by: Dan Murphy --- v4: - Rebase v3: - Fix typo - Add Acked-By from Dan .../bindings/sound/t

[PATCH v5 2/2] ASoC: tlv320adcx140: Add support for configuring GPIO pin

2020-09-18 Thread Camel Guo
From: Camel Guo Add support to configure the GPIO pin to the specific configuration. The GPIO pin can be configured as GPO, IRQ, SDOUT2, PDMCLK, MICBASE_EN, GPI, MCLK, SDIN, PDMDIN1, PDMDIN2, PDMDIN3 or PDMDIN4 and the output drive can be configured with various configuration. Signed-off-by: Cam

Re: [PATCH linux-next] docs:dev-tools: Fix typo in Documentation/dev-tools

2020-09-18 Thread Andrey Konovalov
On Thu, Sep 17, 2020 at 3:44 PM Masanari Iida wrote: > > This patch fixes some spelling typos found in > Documentation/dev-tools. > > Signed-off-by: Masanari Iida > --- > Documentation/dev-tools/kasan.rst| 4 ++-- > Documentation/dev-tools/kcov.rst | 2 +- > Documentation/dev-tools/kmeml

Re: [PATCH 0/3] ARM: mstar: wire up interrupt controllers

2020-09-18 Thread Daniel Palmer
Hi Arnd, On Fri, 18 Sep 2020 at 20:34, Arnd Bergmann wrote: > Acked-by: Arnd Bergmann Thanks, > Please send these to s...@kernel.org for inclusion. Ok will do. > On a different note: I realized too late that the dts files should have been > named more consistently when we originally merged t

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