Re: [RFC PATCH 00/17] Drop uses of pci_read_config_*() return value

2020-08-02 Thread Christoph Hellwig
On Sun, Aug 02, 2020 at 02:14:06PM -0500, Bjorn Helgaas wrote: > But what guarantees that a PCI config register cannot contain ~0? > If there's something about that in the spec I'd love to know where it > is because it would simplify a lot of things. There isn't. An we even have cases like the NV

linux-next: manual merge of the char-misc tree with the powerpc tree

2020-08-02 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the char-misc tree got a conflict in: drivers/misc/ocxl/config.c between commit: 3591538a31af ("ocxl: Address kernel doc errors & warnings") from the powerpc tree and commit: 28fc491e9be6 ("misc: ocxl: config: Provide correct formatting to function h

答复: 答复: [PATCH] iommu/vt-d:Add support for ACPI device in RMRR

2020-08-02 Thread FelixCui-oc
Hi baolu , Yes ,that's right. This patch is to achieve acpi namespace devices to access the RMRR region. Best regards Felix cui -邮件原件- 发件人: Lu Baolu 发送时间: 2020年8月3日 14:19 收件人: FelixCui-oc ; Joerg Roedel ; io...@lists.linux-foundation.org; linux-kern

Re: [PATCH] bcm963xx_tag.h: fix duplicated word

2020-08-02 Thread Miquel Raynal
Hello, Florian Fainelli wrote on Wed, 15 Jul 2020 19:06:36 -0700: > Le 2020-07-15 à 18:28, Randy Dunlap a écrit : > > From: Randy Dunlap > > > > Change doubled word "is" to "it is". > > > > Signed-off-by: Randy Dunlap > > Cc: Florian Fainelli > > Cc: bcm-kernel-feedback-l...@broadcom.com >

Re: [PATCH] iio: trigger: sysfs: Disable irqs before calling iio_trigger_poll()

2020-08-02 Thread Lars-Peter Clausen
On 8/3/20 8:44 AM, Christian Eggers wrote: Hi Lars, On Monday, 3 August 2020, 08:37:43 CEST, Lars-Peter Clausen wrote: The sysfs IIO trigger uses irq_work to schedule the iio_trigger_poll() and the promise of irq_work is that the callback will run in hard IRQ context. That's the whole point of

Re: [PATCH] doc: kcsan: add support info of gcc for kcsan

2020-08-02 Thread Marco Elver
On Mon, 3 Aug 2020 at 08:45, Wang Wenhu wrote: > > KCSAN is also supported in GCC version 7.3.0 or later. > For Clang, the supported versions are 7.0.0 and later. > > Signed-off-by: Wang Wenhu > --- Nack. Did you mean K-A-SAN? In which case this is the wrong file (kasan.rst also has the right

Re: [PATCH][next] drm/rockchip: lvds: ensure ret is assigned before checking for an error

2020-08-02 Thread Miquel Raynal
Hello, Colin King wrote on Tue, 14 Jul 2020 20:00:03 +0100: > From: Colin Ian King > > Currently there are two places where the return status in ret is being > checked for an error however the assignment of ret has been omitted > making the checks redundant. Fix this by adding in the missing

[PATCH v3] dt-bindings: regulator: Convert sy8824x to json-schema

2020-08-02 Thread Jisheng Zhang
Convert the sy8824x binding to DT schema format using json-schema. Signed-off-by: Jisheng Zhang --- Since v2: - add $ref to regulator.yaml - add unevaluatedProperties Since v1: - It seems there's something wrong with my last email, so send out a v2 with another email account .../bindings

Re: [PATCH] iio: trigger: sysfs: Disable irqs before calling iio_trigger_poll()

2020-08-02 Thread Christian Eggers
Hi Lars, On Monday, 3 August 2020, 08:37:43 CEST, Lars-Peter Clausen wrote: > The sysfs IIO trigger uses irq_work to schedule the iio_trigger_poll() > and the promise of irq_work is that the callback will run in hard IRQ > context. That's the whole point of it. > > irq_work_run_list(), which show

[PATCH] doc: kcsan: add support info of gcc for kcsan

2020-08-02 Thread Wang Wenhu
KCSAN is also supported in GCC version 7.3.0 or later. For Clang, the supported versions are 7.0.0 and later. Signed-off-by: Wang Wenhu --- Documentation/dev-tools/kcsan.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/dev-tools/kcsan.rst b/Documentation/d

drivers/scsi/pcmcia/nsp_cs.c:1669:34: sparse: sparse: incorrect type in argument 1 (different address spaces)

2020-08-02 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: bcf876870b95592b52519ed4aafcf9d95999bc9c commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces date: 7 weeks ago config: parisc-randconfig-s031-20200803 (attache

Re: [PATCH] iio: trigger: sysfs: Disable irqs before calling iio_trigger_poll()

2020-08-02 Thread Lars-Peter Clausen
On 8/3/20 7:16 AM, Christian Eggers wrote: On Saturday, 1 August 2020, 18:02:34 CEST, Jonathan Cameron wrote: On Mon, 27 Jul 2020 16:57:13 +0200 Christian Eggers wrote: iio_trigger_poll() calls generic_handle_irq(). This function expects to be run with local IRQs disabled. Was there an error

Re: [PATCH] kobject: Avoid premature parent object freeing in kobject_cleanup()

2020-08-02 Thread Qu Wenruo
On 2020/6/5 上午1:46, Rafael J. Wysocki wrote: > From: Heikki Krogerus > > If kobject_del() is invoked by kobject_cleanup() to delete the > target kobject, it may cause its parent kobject to be freed > before invoking the target kobject's ->release() method, which > effectively means freeing the

[PATCH 2/2] dt-bindings: interrupt-controller: Add MT58XX interrupt controller

2020-08-02 Thread Mark-PK Tsai
Add binding for MT58XX interrupt controller. Signed-off-by: Mark-PK Tsai --- .../mediatek,mt58xx-intc.yaml | 70 +++ 1 file changed, 70 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/mediatek,mt58xx-intc.yaml diff --git

[PATCH 1/2] irqchip: irq-mt58xx: Add mt58xx interrupt controller support

2020-08-02 Thread Mark-PK Tsai
Add mt58xx interrupt controller support using hierarchy irq domain. Signed-off-by: Mark-PK Tsai --- drivers/irqchip/Kconfig | 7 ++ drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-mt58xx.c | 196 +++ 3 files changed, 204 insertions(+) create mode

[PATCH 0/2] irqchip: irq-mt58xx: Add mt58xx series interrupt

2020-08-02 Thread Mark-PK Tsai
Mediatek DTV SoCs contain multiple legacy interrupt controllers that routes interrupts to the GIC. And all the mt58xx series SoCs have this controller, hence the name of the driver and binding. Mark-PK Tsai (2): irqchip: irq-mt58xx: Add mt58xx interrupt controller support dt-bindings: interrup

RE: [PATCH] ieee802154/adf7242: check status of adf7242_read_reg

2020-08-02 Thread Hennerich, Michael
> -Original Message- > From: t...@redhat.com > Sent: Sonntag, 2. August 2020 16:24 > To: Hennerich, Michael ; > alex.ar...@gmail.com; ste...@datenfreihafen.org; da...@davemloft.net; > k...@kernel.org; mar...@holtmann.org > Cc: linux-w...@vger.kernel.org; net...@vger.kernel.org; linux- >

Re: [IB/srpt] c804af2c1d: last_state.test.blktests.exit_code.143

2020-08-02 Thread Yamin Friedman
On 8/2/2020 6:05 PM, Bart Van Assche wrote: On 2020-08-01 23:09, kernel test robot wrote: Greeting, FYI, we noticed the following commit (built with gcc-9): commit: c804af2c1d3152c0cf877eeb50d60c2d49ac0cf0 ("IB/srpt: use new shared CQ mechanism") https://git.kernel.org/cgit/linux/kernel/git

Re: [PATCH v3 3/4] Revert "xen/balloon: Fix crash when ballooning on x86 32 bit PAE"

2020-08-02 Thread Jürgen Groß
On 27.07.20 11:13, Roger Pau Monne wrote: This reverts commit dfd74a1edfaba5864276a2859190a8d242d18952. This has been fixed by commit dca4436d1cf9e0d237c which added the out of bounds check to __add_memory, so that trying to add blocks past MAX_PHYSMEM_BITS will fail. Note the check in the Xen

Re: [PATCH v3 1/4] xen/balloon: fix accounting in alloc_xenballooned_pages error path

2020-08-02 Thread Jürgen Groß
On 27.07.20 11:13, Roger Pau Monne wrote: target_unpopulated is incremented with nr_pages at the start of the function, but the call to free_xenballooned_pages will only subtract pgno number of pages, and thus the rest need to be subtracted before returning or else accounting will be skewed. Sig

Re: 答复: [PATCH] iommu/vt-d:Add support for ACPI device in RMRR

2020-08-02 Thread Lu Baolu
Hi, On 2020/8/3 12:40, FelixCui-oc wrote: Hi baolu: Some ACPI devices need to issue dma requests to access the reserved memory area. So bios uses the device scope type ACPI_NAMESPACE_DEVICE in RMRR to report these ACPI devices. At present, there

Re: [PATCH v3 2/4] xen/balloon: make the balloon wait interruptible

2020-08-02 Thread Jürgen Groß
On 27.07.20 11:13, Roger Pau Monne wrote: So it can be killed, or else processes can get hung indefinitely waiting for balloon pages. Signed-off-by: Roger Pau Monné Reviewed-by: Juergen Gross Cc: sta...@vger.kernel.org Pushed to: xen/tip.git for-linus-5.9 Juergen

[PATCH] mm: sort freelist by rank number

2020-08-02 Thread pullip . cho
From: Cho KyongHo LPDDR5 introduces rank switch delay. If three successive DRAM accesses happens and the first and the second ones access one rank and the last access happens on the other rank, the latency of the last access will be longer than the second one. To address this panelty, we can sort

[v2,4/6] reset-controller: ti: introduce a new reset handler

2020-08-02 Thread Crystal Guo
Add ti_syscon_reset() to integrate assert and deassert together. If some modules need do serialized assert and deassert operations to reset itself, reset_control_reset can be called for convenience. Change-Id: I9046992b115a46f3594de57fa89c6a2de9957d49 --- drivers/reset/reset-ti-syscon.c | 20

[v2,3/6] dt-binding: reset-controller: ti: add generic-reset to compatible

2020-08-02 Thread Crystal Guo
The TI syscon reset controller provides a common reset management, and should be suitable for other SOCs. Add compatible "generic-reset", which denotes to use a common reset-controller driver. Signed-off-by: Crystal Guo --- Documentation/devicetree/bindings/reset/ti-syscon-reset.txt | 1 + 1 fil

[v2,5/6] reset-controller: ti: Introduce force-update method

2020-08-02 Thread Crystal Guo
Introduce force-update method for assert and deassert interface, which force the write operation in case the read already happens to return the correct value. Signed-off-by: Crystal Guo --- drivers/reset/reset-ti-syscon.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) di

[v2,0/6] introduce TI reset controller for MT8192 SoC

2020-08-02 Thread Crystal Guo
v1 changes: https://patchwork.kernel.org/patch/11690523/ https://patchwork.kernel.org/patch/11690527/ Crystal Guo (6): dt-binding: reset-controller: ti: add assert-deassert-together property dt-binding: reset-controller: ti: add update-force property dt-binding: reset-controller: ti: add

[v2,6/6] arm64: dts: mt8192: add infracfg_rst node

2020-08-02 Thread Crystal Guo
add infracfg_rst node which is for MT8192 platform Signed-off-by: Crystal Guo --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi index

[v2,2/6] dt-binding: reset-controller: ti: add update-force property

2020-08-02 Thread Crystal Guo
add update-force property to force the write operation in case the read already happens to return the correct value. Signed-off-by: Crystal Guo --- Documentation/devicetree/bindings/reset/ti-syscon-reset.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/re

Re: [PATCH v2] lib: kunit: Convert test_sort to KUnit test

2020-08-02 Thread kernel test robot
Hi Vitor, Thank you for the patch! Yet something to improve: [auto build test ERROR on d43c7fb05765152d4d4a39a8ef957c4ea14d8847] url: https://github.com/0day-ci/linux/commits/Vitor-Massaru-Iha/lib-kunit-Convert-test_sort-to-KUnit-test/20200730-031404 base:d43c7fb05765152d4d4a39a8ef957c4e

[v2,1/6] dt-binding: reset-controller: ti: add assert-deassert-together property

2020-08-02 Thread Crystal Guo
add assert-deassert-together property to allow device to do serialized assert and deassert operations in a single step by 'reset' method. Signed-off-by: Crystal Guo --- Documentation/devicetree/bindings/reset/ti-syscon-reset.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentatio

Re: 回复: [PATCH] ALSA: seq: KASAN: use-after-free Read in delete_and_unsubscribe_port

2020-08-02 Thread Takashi Iwai
On Mon, 03 Aug 2020 03:35:05 +0200, Zhang, Qiang wrote: > > >Thanks for the patch. But I'm afraid that this change would break the > >existing behavior and might have a bad side-effect. > > >It's likely the same issue as reported in another syzkaller report > >("KASAN: invalid-free in snd_seq_po

Re: [PATCH 3/3] ALSA: hda/ca0132 - Fix AE-5 microphone selection commands.

2020-08-02 Thread Takashi Iwai
On Mon, 03 Aug 2020 02:29:27 +0200, Connor McAdams wrote: > > The ca0113 command had the wrong group_id, 0x48 when it should've been > 0x30. The front microphone selection should now work. > > Signed-off-by: Connor McAdams Applied, thanks. Takashi

Re: [PATCH 1/3] ALSA: hda/ca0132 - Fix ZxR Headphone gain control get value.

2020-08-02 Thread Takashi Iwai
On Mon, 03 Aug 2020 02:29:25 +0200, Connor McAdams wrote: > > When the ZxR headphone gain control was added, the ca0132_switch_get > function was not updated, which meant that the changes to the control > state were not saved when entering/exiting alsamixer. > > Signed-off-by: Connor McAdams Ap

Re: [PATCH 2/3] ALSA: hda/ca0132 - Add new quirk ID for Recon3D.

2020-08-02 Thread Takashi Iwai
On Mon, 03 Aug 2020 02:29:26 +0200, Connor McAdams wrote: > > Add a new quirk ID for the Recon3D, as tested by me. > > Signed-off-by: Connor McAdams Applied, thanks. Takashi

Re: [PATCH v4 09/10] Powerpc/smp: Create coregroup domain

2020-08-02 Thread Srikar Dronamraju
> > Also in the current P9 itself, two neighbouring core-pairs form a quad. > > Cache latency within a quad is better than a latency to a distant core-pair. > > Cache latency within a core pair is way better than latency within a quad. > > So if we have only 4 threads running on a DIE all of them a

Re: [PATCH] kprobes: fix NULL pointer dereference at kprobe_ftrace_handler

2020-08-02 Thread Song Liu
> On Jul 27, 2020, at 11:45 PM, Muchun Song wrote: > > We found a case of kernel panic on our server. The stack trace is as > follows(omit some irrelevant information): > > BUG: kernel NULL pointer dereference, address: 0080 > RIP: 0010:kprobe_ftrace_handler+0x5e/0xe0 > RSP: 00

drivers/net/hamradio/baycom_ser_hdx.c:371:20: sparse: sparse: cast removes address space '__iomem' of expression

2020-08-02 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: bcf876870b95592b52519ed4aafcf9d95999bc9c commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces date: 7 weeks ago config: riscv-randconfig-s031-20200803 (attached

[PATCH RFC] s390: convert to GENERIC_VDSO

2020-08-02 Thread Sven Schnelle
these two patches convert the s390 architecture to generic VDSO. The first patch adds an option to add architecture specific information to struct vdso_data. We need that information because the old s390 assembly code had a steering capability, which steered the clock slowly. To emulate that behavi

[PATCH 2/2] s390: convert to GENERIC_VDSO

2020-08-02 Thread Sven Schnelle
This patch converts s390 to the generic vDSO. There are a few special things on s390: - vDSO can be called without a stack frame - glibc did this in the past. So we need to allocate a stackframe on our own. - The former assembly code used stcke to get the TOD clock and applied time steering t

[PATCH 1/2] vdso: allow to add architecture-specific vdso data

2020-08-02 Thread Sven Schnelle
Add the possibility to add architecture specific vDSO data to struct vdso_data. This is useful if the arch specific user space VDSO code needs additional data during execution. If CONFIG_ARCH_HAS_VDSO_DATA is defined, the generic code will include asm/vdso/data.h which should contain 'struct arch_v

Re: [md] e1a86dbbbd: mdadm-selftests.enchmarks/mdadm-selftests/tests/07layouts.fail

2020-08-02 Thread Song Liu
> On Jul 29, 2020, at 2:04 AM, kernel test robot wrote: > > Greeting, > > FYI, we noticed the following commit (built with gcc-9): > > commit: e1a86dbbbd6a77f73c3d099030495fa31f181e2f ("md: fix deadlock causing > by sysfs_notify") > https://git.kernel.org/cgit/linux/kernel/git/next/linux-ne

Re: [PATCH] scsi: esas2r: fix possible buffer overflow caused by bad DMA value in esas2r_process_fs_ioctl()

2020-08-02 Thread James Bottomley
On Mon, 2020-08-03 at 11:07 +0800, Jia-Ju Bai wrote: > > On 2020/8/2 23:47, James Bottomley wrote: > > On Sun, 2020-08-02 at 23:21 +0800, Jia-Ju Bai wrote: > > > Because "fs" is mapped to DMA, its data can be modified at > > > anytime by malicious or malfunctioning hardware. In this case, > > > th

[PATCHv2] x86/purgatory: don't generate debug info for purgatory.ro

2020-08-02 Thread Pingfan Liu
Purgatory.ro is a standalone binary that is not linked against the rest of the kernel. Its image is copied into an array that is linked to the kernel, and from there kexec relocates it wherever it desires. Unlike the debug info for vmlinux, which can be used for analyzing crash such info is usele

Re: [PATCH] xen: hypercall.h: fix duplicated word

2020-08-02 Thread Jürgen Groß
On 26.07.20 02:17, Randy Dunlap wrote: Change the repeated word "as" to "as a". Signed-off-by: Randy Dunlap Cc: Boris Ostrovsky Cc: Juergen Gross Cc: xen-de...@lists.xenproject.org Pushed to: xen/tip.git for-linus-5.9 Juergen

Re: [PATCH] xen/gntdev: gntdev.h: drop a duplicated word

2020-08-02 Thread Jürgen Groß
On 19.07.20 02:33, Randy Dunlap wrote: Drop the repeated word "of" in a comment. Signed-off-by: Randy Dunlap Cc: Boris Ostrovsky Cc: Juergen Gross Cc: xen-de...@lists.xenproject.org Pushed to xen/tip.git for-linus-5.9 Juergen

Re: [PATCH] kprobes: fix NULL pointer dereference at kprobe_ftrace_handler

2020-08-02 Thread Muchun Song
Ping guys. Any comments or suggestions? On Tue, Jul 28, 2020 at 2:45 PM Muchun Song wrote: > > We found a case of kernel panic on our server. The stack trace is as > follows(omit some irrelevant information): > > BUG: kernel NULL pointer dereference, address: 0080 > RIP: 0010:kpro

[PATCH v3 0/2] i2c: stm32: add host-notify support via i2c slave

2020-08-02 Thread Alain Volmat
This serie replaces the previous 'stm32-f7: Addition of SMBus Alert / Host-notify features' serie to only focus on the SMBus Host-Notify feature. It should be applied with "[PATCH] i2c: add binding to mark a bus as SMBus" from Wolfram which defines the newly introduced "smbus" binding. Alain Volma

linux-next: build failure after merge of the tip tree

2020-08-02 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (x86_64 allmodconfig) failed like this: ERROR: modpost: "sched_setscheduler" [drivers/gpu/drm/drm.ko] undefined! Caused by commit 616d91b68cd5 ("sched: Remove sched_setscheduler*() EXPORTs") interacting with commit 5e6c2b4f9161

Re: [PATCH v3 0/3] Few bug fixes and Convert to pin_user_pages*()

2020-08-02 Thread Jürgen Groß
On 12.07.20 05:39, Souptick Joarder wrote: This series contains few clean up, minor bug fixes and Convert get_user_pages() to pin_user_pages(). I'm compile tested this, but unable to run-time test, so any testing help is much appriciated. v2: Addressed few review comments and compile i

[PATCH] include/linux/miscdevice.h - Fix typo/grammar

2020-08-02 Thread Sebastian Fricke
Improve the clarity and grammar of descriptive comment on top of the minor number assignments. Fix a typo within 2 comments for macros. s/This helps in eleminating of boilerplate code. /This helps to eliminate boilerplate code./ Signed-off-by: Sebastian Fricke --- include/linux/miscdevice.h |

[PATCH] hwmon: axi-fan-control: remove duplicate macros

2020-08-02 Thread Alexandru Ardelean
These macros are also present in the "include/linux/fpga/adi-axi-common.h" file which is included in this driver. This patch removes them from the AXI Fan Control driver. No sense in having them in 2 places. Signed-off-by: Alexandru Ardelean --- drivers/hwmon/axi-fan-control.c | 4 1 file

Re: [PATCH] ASoC: fsl_sai: Clean code for synchronize mode

2020-08-02 Thread Nicolin Chen
On Mon, Aug 03, 2020 at 11:17:54AM +0800, Shengjiu Wang wrote: > TX synchronous with RX: The RMR is no need to be changed when > Tx is enabled, the other configuration in hw_params() is enough for Probably you should explain why RMR can be removed, like what it really does so as to make it clear t

[PATCH v3 1/2] i2c: smbus: add core function handling SMBus host-notify

2020-08-02 Thread Alain Volmat
SMBus Host-Notify protocol, from the adapter point of view consist of receiving a message from a client, including the client address and some other data. It can be simply handled by creating a new slave device and registering a callback performing the parsing of the message received from the clie

[PATCH v4 16/23] mm/memremap_pages: Convert to 'struct range'

2020-08-02 Thread Dan Williams
The 'struct resource' in 'struct dev_pagemap' is only used for holding resource span information. The other fields, 'name', 'flags', 'desc', 'parent', 'sibling', and 'child' are all unused wasted space. This is in preparation for introducing a multi-range extension of devm_memremap_pages(). The b

Re: powerpc: build failures in Linus' tree

2020-08-02 Thread Willy Tarreau
On Mon, Aug 03, 2020 at 02:10:17PM +1000, Stephen Rothwell wrote: > Our mails have crossed. Ah indeed :-) > I just sent a more comprehensive patch. I > think your patch would require a lot of build testing and even then may > fail for some CONFIG combination that we didn't test or added in the >

[PATCH v4 18/23] device-dax: Add dis-contiguous resource support

2020-08-02 Thread Dan Williams
Break the requirement that device-dax instances are physically contiguous. With this constraint removed it allows fragmented available capacity to be fully allocated. This capability is useful to mitigate the "noisy neighbor" problem with memory-side-cache management for virtual machines, or any o

Re: [PATCH v4] scsi: ufs: Cleanup completed request without interrupt notification

2020-08-02 Thread Stanley Chu
Hi Can, On Mon, 2020-08-03 at 13:14 +0800, Can Guo wrote: > Hi Stanley, > > On 2020-08-03 11:00, Stanley Chu wrote: > > Hi Can, > > > > On Sat, 2020-08-01 at 07:17 +0800, Can Guo wrote: > >> Hi Bart, > >> > >> On 2020-08-01 00:51, Bart Van Assche wrote: > >> > On 2020-07-31 01:00, Can Guo wrote

[PATCH] i2c: stm32f7: add SMBus-Alert support

2020-08-02 Thread Alain Volmat
Add support for the SMBus-Alert protocol. Signed-off-by: Alain Volmat --- This patch has to be integrated on top of the patch 'i2c: stm32f7: Add SMBus Host-Notify protocol support' since SMBus Alert is enabled by the DT binding 'smbus' introduced in that patch. drivers/i2c/busses/i2c-stm32f7

Re: PATCH: rtsx_pci driver - don't disable the rts5229 card reader on Intel NUC boxes

2020-08-02 Thread Chris Clayton
Hi, Ricky On 03/08/2020 04:01, 吳昊澄 Ricky wrote: > Hi Chris, > > We don’t think this is our bug... > This register(FPDCTL) write to OC_POWER_DOWN is for our power saving feature, > not to disable the reader > In your case, we cannot reproduce this on our side that we mention before, we > don’t h

[v7] dt-bindings: msm: disp: add yaml schemas for DPU and DSI bindings

2020-08-02 Thread Krishna Manikandan
MSM Mobile Display Subsytem (MDSS) encapsulates sub-blocks like DPU display controller, DSI etc. Add YAML schema for the device tree bindings for the same. Signed-off-by: Krishna Manikandan Changes in v2: - Changed dpu to DPU (Sam Ravnborg) - Fixed indentation issues (Sam Ravnborg) -

[PATCH v4 17/23] mm/memremap_pages: Support multiple ranges per invocation

2020-08-02 Thread Dan Williams
In support of device-dax growing the ability to front physically dis-contiguous ranges of memory, update devm_memremap_pages() to track multiple ranges with a single reference counter and devm instance. Cc: Paul Mackerras Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Dan Williams Cc: Vis

[PATCH v4 14/23] drivers/base: Make device_find_child_by_name() compatible with sysfs inputs

2020-08-02 Thread Dan Williams
Use sysfs_streq() in device_find_child_by_name() to allow it to use a sysfs input string that might contain a trailing newline. The other "device by name" interfaces, {bus,driver,class}_find_device_by_name(), already account for sysfs strings. Cc: "Rafael J. Wysocki" Reviewed-by: Greg Kroah-Hart

[PATCH v4 19/23] device-dax: Introduce 'mapping' devices

2020-08-02 Thread Dan Williams
In support of interrogating the physical address layout of a device with dis-contiguous ranges, introduce a sysfs directory with 'start', 'end', and 'page_offset' attributes. The alternative is trying to parse /proc/iomem, and that file will not reflect the extent layout until the device is enabled

[PATCH v4 22/23] dax/hmem: Introduce dax_hmem.region_idle parameter

2020-08-02 Thread Dan Williams
From: Joao Martins Introduce a new module parameter for dax_hmem which initializes all region devices as free, rather than allocating a pagemap for the region by default. All hmem devices created with dax_hmem.region_idle=1 will have full available size for creating dynamic dax devices. Signed-

[PATCH v4 23/23] device-dax: Add a range mapping allocation attribute

2020-08-02 Thread Dan Williams
From: Joao Martins Add a sysfs attribute which denotes a range from the dax region to be allocated. It's an write only @mapping sysfs attribute in the format of '-' to allocate a range. @start and @end use hexadecimal values and the @pgoff is implicitly ordered wrt to previous writes to @mapping

[PATCH v4 21/23] device-dax: Add an 'align' attribute

2020-08-02 Thread Dan Williams
From: Joao Martins Introduce a device align attribute. While doing so, rename the region align attribute to be more explicitly named as so, but keep it named as @align to retain the API for tools like daxctl. Changes on align may not always be valid, when say certain mappings were created with 2

[PATCH v4 15/23] device-dax: Add resize support

2020-08-02 Thread Dan Williams
Make the device-dax 'size' attribute writable to allow capacity to be split between multiple instances in a region. The intended consumers of this capability are users that want to split a scarce memory resource between device-dax and System-RAM access, or users that want to have multiple security

[PATCH v4 20/23] device-dax: Make align a per-device property

2020-08-02 Thread Dan Williams
From: Joao Martins Introduce @align to struct dev_dax. When creating a new device, we still initialize to the default dax_region @align. Child devices belonging to a region may wish to keep a different alignment property instead of a global region-defined one. Signed-off-by: Joao Martins Link:

[PATCH v4 11/23] device-dax: Kill dax_kmem_res

2020-08-02 Thread Dan Williams
Several related issues around this unneeded attribute: - The dax_kmem_res property allows the kmem driver to stash the adjusted resource range that was used for the hotplug operation, but that can be recalculated from the original base range. - kmem is using an open coded release_resource() +

[PATCH v4 03/23] efi/fake_mem: Arrange for a resource entry per efi_fake_mem instance

2020-08-02 Thread Dan Williams
In preparation for attaching a platform device per iomem resource teach the efi_fake_mem code to create an e820 entry per instance. Similar to E820_TYPE_PRAM, bypass merging resource when the e820 map is sanitized. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: "H. Peter Anvin" Cc

[PATCH v4 13/23] device-dax: Introduce 'seed' devices

2020-08-02 Thread Dan Williams
Add a seed device concept for dynamic dax regions to be able to split the region amongst multiple sub-instances. The seed device, similar to libnvdimm seed devices, is a device that starts with zero capacity allocated and unbound to a driver. In contrast to libnvdimm seed devices explicit 'create'

[PATCH v4 10/23] device-dax: Make pgmap optional for instance creation

2020-08-02 Thread Dan Williams
The passed in dev_pagemap is only required in the pmem case as the libnvdimm core may have reserved a vmem_altmap for dev_memremap_pages() to place the memmap in pmem directly. In the hmem case there is no agent reserving an altmap so it can all be handled by a core internal default. Pass the reso

[PATCH v3 2/2] i2c: stm32f7: Add SMBus Host-Notify protocol support

2020-08-02 Thread Alain Volmat
Rely on the core functions to implement the host-notify protocol via the a I2C slave device. Signed-off-by: Alain Volmat --- v3: identical to v2 v2: fix slot #0 usage condition within stm32f7_i2c_get_free_slave_id drivers/i2c/busses/Kconfig | 1 + drivers/i2c/busses/i2c-stm32f7.c | 11

[PATCH v4 08/23] device-dax: Drop the dax_region.pfn_flags attribute

2020-08-02 Thread Dan Williams
All callers specify the same flags to alloc_dax_region(), so there is no need to allow for anything other than PFN_DEV|PFN_MAP, or carry a ->pfn_flags around on the region. Device-dax instances are always page backed. Cc: Vishal Verma Signed-off-by: Dan Williams --- drivers/dax/bus.c |

[PATCH v4 09/23] device-dax: Move instance creation parameters to 'struct dev_dax_data'

2020-08-02 Thread Dan Williams
In preparation for adding more parameters to instance creation, move existing parameters to a new struct. Cc: Vishal Verma Signed-off-by: Dan Williams --- drivers/dax/bus.c | 14 +++--- drivers/dax/bus.h | 16 drivers/dax/hmem/hmem.c |8 +++- dri

[PATCH v4 05/23] resource: Report parent to walk_iomem_res_desc() callback

2020-08-02 Thread Dan Williams
In support of detecting whether a resource might have been been claimed, report the parent to the walk_iomem_res_desc() callback. For example, the ACPI HMAT parser publishes "hmem" platform devices per target range. However, if the HMAT is disabled / missing a fallback driver can attach devices to

[PATCH v4 06/23] mm/memory_hotplug: Introduce default phys_to_target_node() implementation

2020-08-02 Thread Dan Williams
In preparation to set a fallback value for dev_dax->target_node, introduce generic fallback helpers for phys_to_target_node() A generic implementation based on node-data or memblock was proposed, but as noted by Mike: "Here again, I would prefer to add a weak default for phys_to_target_n

[PATCH v4 04/23] ACPI: HMAT: Refactor hmat_register_target_device to hmem_register_device

2020-08-02 Thread Dan Williams
In preparation for exposing "Soft Reserved" memory ranges without an HMAT, move the hmem device registration to its own compilation unit and make the implementation generic. The generic implementation drops usage acpi_map_pxm_to_online_node() that was translating ACPI proximity domain values and i

[PATCH v4 07/23] ACPI: HMAT: Attach a device for each soft-reserved range

2020-08-02 Thread Dan Williams
The hmem enabling in commit 'cf8741ac57ed ("ACPI: NUMA: HMAT: Register "soft reserved" memory as an "hmem" device")' only registered ranges to the hmem driver for each soft-reservation that also appeared in the HMAT. While this is meant to encourage platform firmware to "do the right thing" and pub

[PATCH v4 12/23] device-dax: Add an allocation interface for device-dax instances

2020-08-02 Thread Dan Williams
In preparation for a facility that enables dax regions to be sub-divided, introduce infrastructure to track and allocate region capacity. The new dax_region/available_size attribute is only enabled for volatile hmem devices, not pmem devices that are defined by nvdimm namespace boundaries. This is

[PATCH v4 00/23] device-dax: Support sub-dividing soft-reserved ranges

2020-08-02 Thread Dan Williams
Changes since v3 [1]: - Update x86 boot options documentation for 'nohmat' (Randy) - Fixup a handful of kbuild robot reports, the most significant being moving usage of PUD_SIZE and PMD_SIZE under #ifdef CONFIG_TRANSPARENT_HUGEPAGE protection. [1]: http://lore.kernel.org/r/159625229779.30402

[PATCH v4 02/23] x86/numa: Add 'nohmat' option

2020-08-02 Thread Dan Williams
Disable parsing of the HMAT for debug, to workaround broken platform instances, or cases where it is otherwise not wanted. Cc: x...@kernel.org Cc: "Rafael J. Wysocki" Cc: Dave Hansen Cc: Andy Lutomirski Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: "H. Peter

[PATCH v4 01/23] x86/numa: Cleanup configuration dependent command-line options

2020-08-02 Thread Dan Williams
In preparation for adding a new numa= option clean up the existing ones to avoid ifdefs in numa_setup(), and provide feedback when the option is numa=fake= option is invalid due to kernel config. The same does not need to be done for numa=noacpi, since the capability is already hard disabled at com

[PATCH] scsi/aic7xxx/aicasm: Add missing fclose() call

2020-08-02 Thread Youling Tang
Add missing fclose() call to close "regdiagfile" in the function stop(). Signed-off-by: Youling Tang --- drivers/scsi/aic7xxx/aicasm/aicasm.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/scsi/aic7xxx/aicasm/aicasm.c b/drivers/scsi/aic7xxx/aicasm/aicasm.c index 5f474e4..a

Re: [PATCH] iio: trigger: sysfs: Disable irqs before calling iio_trigger_poll()

2020-08-02 Thread Christian Eggers
On Saturday, 1 August 2020, 18:02:34 CEST, Jonathan Cameron wrote: > On Mon, 27 Jul 2020 16:57:13 +0200 > > Christian Eggers wrote: > > iio_trigger_poll() calls generic_handle_irq(). This function expects to > > be run with local IRQs disabled. > > Was there an error or warning that lead to this

Re: [PATCH v4] scsi: ufs: Cleanup completed request without interrupt notification

2020-08-02 Thread Can Guo
Hi Stanley, On 2020-08-03 11:00, Stanley Chu wrote: Hi Can, On Sat, 2020-08-01 at 07:17 +0800, Can Guo wrote: Hi Bart, On 2020-08-01 00:51, Bart Van Assche wrote: > On 2020-07-31 01:00, Can Guo wrote: >> AFAIK, sychronization of scsi_done is not a problem here, because scsi >> layer >> use th

Re: [PATCH v4] scsi: ufs: Cleanup completed request without interrupt notification

2020-08-02 Thread Can Guo
Hi Bart, On 2020-08-03 11:12, Bart Van Assche wrote: On 2020-07-31 16:17, Can Guo wrote: For scsi_dma_unmap() part, that is true - we should make it serialized with any other completion paths. I've found it during my fault injection test, so I've made a patch to fix it, but it only comes in my

Re: [PATCH bpf-next 5/5] selftests/bpf: add benchmark for uprobe vs. user_prog

2020-08-02 Thread Andrii Nakryiko
On Sun, Aug 2, 2020 at 9:47 PM Song Liu wrote: > > > > On Aug 2, 2020, at 6:51 PM, Andrii Nakryiko > > wrote: > > > > On Sat, Aug 1, 2020 at 1:50 AM Song Liu wrote: > >> > >> Add a benchmark to compare performance of > >> 1) uprobe; > >> 2) user program w/o args; > >> 3) user program w/ args

Re: [PATCH bpf-next 3/5] selftests/bpf: add selftest for BPF_PROG_TYPE_USER

2020-08-02 Thread Andrii Nakryiko
On Sun, Aug 2, 2020 at 9:33 PM Song Liu wrote: > > > > > On Aug 2, 2020, at 6:43 PM, Andrii Nakryiko > > wrote: > > > > On Sat, Aug 1, 2020 at 1:50 AM Song Liu wrote: > >> > >> This test checks the correctness of BPF_PROG_TYPE_USER program, including: > >> running on the right cpu, passing in c

Re: BUG: unable to handle kernel NULL pointer dereference in bpf_prog_ADDR

2020-08-02 Thread John Fastabend
Eric Dumazet wrote: > > > On 8/2/20 3:45 PM, syzbot wrote: > > Hello, > > > > syzbot found the following issue on: > > > > HEAD commit:ac3a0c84 Merge git://git.kernel.org/pub/scm/linux/kernel/g.. > > git tree: upstream > > console output: https://syzkaller.appspot.com/x/log.txt?x=1323

Re: [PATCH bpf-next 2/5] libbpf: support BPF_PROG_TYPE_USER programs

2020-08-02 Thread Andrii Nakryiko
On Sun, Aug 2, 2020 at 9:21 PM Song Liu wrote: > > > > > On Aug 2, 2020, at 6:40 PM, Andrii Nakryiko > > wrote: > > > > On Sat, Aug 1, 2020 at 1:50 AM Song Liu wrote: > >> > >> Add cpu_plus to bpf_prog_test_run_attr. Add BPF_PROG_SEC "user" for > >> BPF_PROG_TYPE_USER programs. > >> > >> Signed

KASAN: use-after-free Write in sco_chan_del

2020-08-02 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:ac3a0c84 Merge git://git.kernel.org/pub/scm/linux/kernel/g.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=11638a4290 kernel config: https://syzkaller.appspot.com/x/.config?x=c0cfcf935bcc94d2 das

Re: [PATCH] tools/bpf/bpftool: Fix wrong return value in do_dump()

2020-08-02 Thread John Fastabend
Andrii Nakryiko wrote: > On Sun, Aug 2, 2020 at 4:16 AM Tianjia Zhang > wrote: > > > > In case of btf_id does not exist, a negative error code -ENOENT > > should be returned. > > > > Fixes: c93cc69004df3 ("bpftool: add ability to dump BTF types") > > Cc: Andrii Nakryiko > > Signed-off-by: Tianjia

Re: [PATCH v6] scsi: ufs: Quiesce all scsi devices before shutdown

2020-08-02 Thread Can Guo
Hi Stanley, On 2020-08-03 12:25, Stanley Chu wrote: Currently I/O request could be still submitted to UFS device while UFS is working on shutdown flow. This may lead to racing as below scenarios and finally system may crash due to unclocked register accesses. To fix this kind of issues, in ufsh

Re: [PATCH] powerpc: fix up PPC_FSL_BOOK3E build

2020-08-02 Thread Stephen Rothwell
Hi all, On Mon, 3 Aug 2020 13:54:47 +1000 Stephen Rothwell wrote: > > Commit > > 1c9df907da83 ("random: fix circular include dependency on arm64 after > addition of percpu.h") > > exposed a curcular include dependency: > > asm/mmu.h includes asm/percpu.h, which includes asm/paca.h, which >

Re: [Linux-kernel-mentees] [PATCH net] rds: Prevent kernel-infoleak in rds_notify_queue_get()

2020-08-02 Thread Leon Romanovsky
On Sun, Aug 02, 2020 at 03:45:40PM -0700, Joe Perches wrote: > On Sun, 2020-08-02 at 19:28 -0300, Jason Gunthorpe wrote: > > On Sun, Aug 02, 2020 at 03:23:58PM -0700, Joe Perches wrote: > > > On Sun, 2020-08-02 at 19:10 -0300, Jason Gunthorpe wrote: > > > > On Sat, Aug 01, 2020 at 08:38:33AM +0300,

Re: kernel panic: panic_on_warn set

2020-08-02 Thread Dmitry Vyukov
On Mon, Aug 3, 2020 at 6:55 AM Dmitry Vyukov wrote: > > On Mon, Aug 3, 2020 at 5:24 AM butt3rflyh4ck > wrote: > > > > Hi, syzkaller always get this crashes, I think this crash is not a > > bug, maybe some wrong configs > > cause, can you give me some help. thanks. > > > > log is below: > > 8

Re: kernel panic: panic_on_warn set

2020-08-02 Thread Dmitry Vyukov
On Mon, Aug 3, 2020 at 5:24 AM butt3rflyh4ck wrote: > > Hi, syzkaller always get this crashes, I think this crash is not a > bug, maybe some wrong configs > cause, can you give me some help. thanks. > > log is below: > 888063151a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc > 888063

Re: [PATCH bpf-next 5/5] selftests/bpf: add benchmark for uprobe vs. user_prog

2020-08-02 Thread Song Liu
> On Aug 2, 2020, at 6:51 PM, Andrii Nakryiko wrote: > > On Sat, Aug 1, 2020 at 1:50 AM Song Liu wrote: >> >> Add a benchmark to compare performance of >> 1) uprobe; >> 2) user program w/o args; >> 3) user program w/ args; >> 4) user program w/ args on random cpu. >> > > Can you please

  1   2   3   4   5   >