linux-next 20200508 - build failure in kernel/resource.c w/ SPARSEMEM=n

2020-05-09 Thread Valdis Klētnieks
So I did a 'make allmodconfig' and then a 'make' on an RPi4 ARM box, and it decided that CONFIG_SPARSEMEM=n was OK (so an include of linux/mmzone.h doesn't define some needed values). The offending code in resource.c is wrapped in a #ifdef CONFIG_DEVICE_PRIVATE, which throws a whinge during 'make

Re: [PATCH v4] streamline_config.pl: add LMC_KEEP to preserve some kconfigs

2020-05-09 Thread Masahiro Yamada
On Fri, May 8, 2020 at 11:00 PM Changbin Du wrote: > > On Thu, May 07, 2020 at 09:18:07AM -0400, Steven Rostedt wrote: > > On Thu, 7 May 2020 12:19:57 +0900 > > Masahiro Yamada wrote: > > > > > On Sun, May 3, 2020 at 9:11 AM Changbin Du wrote: > > > > > > > > Sometimes it is useful to preserve b

Re: [PATCH -next] soc: fsl: dpio: remove set but not used variable 'addr_cena'

2020-05-09 Thread Yuehaibing
Pls ignore this duplicate. On 2020/5/8 22:10, YueHaibing wrote: > drivers/soc/fsl/dpio//qbman-portal.c:650:11: warning: variable 'addr_cena' > set but not used [-Wunused-but-set-variable] > uint64_t addr_cena; >^ > > It is never used, so remove it. > > Signed-off-by: YueHa

Re: [PATCH V2] arm64/cpufeature: Validate hypervisor capabilities during CPU hotplug

2020-05-09 Thread Marc Zyngier
On Fri, 08 May 2020 03:52:38 +0100, Anshuman Khandual wrote: > > This validates hypervisor capabilities like VMID width, IPA range for any > hot plug CPU against system finalized values. While here, it factors out > get_vmid_bits() for general use and also defines ID_AA64MMFR0_PARANGE_MASK. Mayb

Re: [PATCH 1/4] fs: btrfs: fix a data race in btrfs_block_group_done()

2020-05-09 Thread Nikolay Borisov
On 9.05.20 г. 8:20 ч., Jia-Ju Bai wrote: > The functions btrfs_block_group_done() and caching_thread() are > concurrently executed at runtime in the following call contexts: > > Thread 1: > btrfs_sync_file() > start_ordered_ops() > btrfs_fdatawrite_range() > btrfs_writepage

Re: [PATCH] cnic: remove redundant assignment to variable ret

2020-05-09 Thread Dan Carpenter
On Fri, May 08, 2020 at 11:40:26PM +0100, Colin King wrote: > From: Colin Ian King > > The variable ret is being assigned with a value that is never read, > the assignment is redundant and can be removed. > > Addresses-Coverity: ("Unused value") > Signed-off-by: Colin Ian King We used to retur

Re: [PATCH] iio: hid-sensors: move triggered buffer setup into hid_sensor_setup_trigger

2020-05-09 Thread Srinivas Pandruvada
On Fri, 2020-04-24 at 07:34 +0300, Alexandru Ardelean wrote: > The main intent here is to get rid of the iio_buffer_set_attrs() > helper, or > at least rework it's usage a bit. > The problem with that helper is that it needs a pointer to the > buffer, > which makes supporting multiple buffers per I

[v2 PATCH] drivers: gpu: drm: Add MDP5 configuration for MSM8x36.

2020-05-09 Thread Konrad Dybcio
This change adds MDP5 configuration for MSM8x36-based SoCs, like MSM8936, 8939 and their APQ variants. The configuration is based on MSM8916's, but adds some notable features, like ad and pp blocks, along with some register changes. changes since v1: - add an ad block - add a second mixer @ 0x4700

[PATCH v1 2/3] armv8: gpio: add gpio feature

2020-05-09 Thread Hui Song
From: "hui.song" add one struct mpc8xxx_gpio_plat to enable gpio feature. Signed-off-by: hui.song --- .../include/asm/arch-fsl-layerscape/gpio.h| 22 +++ 1 file changed, 22 insertions(+) create mode 100644 arch/arm/include/asm/arch-fsl-layerscape/gpio.h diff --git a/arch/

[PATCH v1 1/3] gpio: mpc8xxx: support fsl-layerscape platform.

2020-05-09 Thread Hui Song
From: "hui.song" Make the MPC8XXX gpio driver to support the fsl-layerscape. Signed-off-by: hui.song --- drivers/gpio/mpc8xxx_gpio.c | 59 + 1 file changed, 59 insertions(+) diff --git a/drivers/gpio/mpc8xxx_gpio.c b/drivers/gpio/mpc8xxx_gpio.c index 1dfd22

[PATCH v1 3/3] dm: armv8: gpio: include for fsl-layerscape

2020-05-09 Thread Hui Song
From: "hui.song" Enable the gpio feature on fsl-layerscape platform. Signed-off-by: hui.song --- arch/arm/include/asm/gpio.h | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/arch/arm/include/asm/gpio.h b/arch/arm/include/asm/gpio.h index 333e407b66..7715a01706 100644

[PATCH v1 1/3] gpio: mpc8xxx: support fsl-layerscape platform.

2020-05-09 Thread Hui Song
From: "hui.song" Make the MPC8XXX gpio driver to support the fsl-layerscape. Signed-off-by: hui.song --- drivers/gpio/mpc8xxx_gpio.c | 59 + 1 file changed, 59 insertions(+) diff --git a/drivers/gpio/mpc8xxx_gpio.c b/drivers/gpio/mpc8xxx_gpio.c index 1dfd22

[PATCH v1 2/3] armv8: gpio: add gpio feature

2020-05-09 Thread Hui Song
From: "hui.song" add one struct mpc8xxx_gpio_plat to enable gpio feature. Signed-off-by: hui.song --- .../include/asm/arch-fsl-layerscape/gpio.h| 22 +++ 1 file changed, 22 insertions(+) create mode 100644 arch/arm/include/asm/arch-fsl-layerscape/gpio.h diff --git a/arch/

[PATCH v1 3/3] dm: armv8: gpio: include for fsl-layerscape

2020-05-09 Thread Hui Song
From: "hui.song" Enable the gpio feature on fsl-layerscape platform. Signed-off-by: hui.song --- arch/arm/include/asm/gpio.h | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/arch/arm/include/asm/gpio.h b/arch/arm/include/asm/gpio.h index 333e407b66..7715a01706 100644

Re: [PATCH 01/15] nfblock: use gendisk private_data

2020-05-09 Thread Geert Uytterhoeven
Hi Christoph, On Fri, May 8, 2020 at 6:16 PM Christoph Hellwig wrote: > Signed-off-by: Christoph Hellwig Thanks for your patch! > --- a/arch/m68k/emu/nfblock.c > +++ b/arch/m68k/emu/nfblock.c > @@ -61,7 +61,7 @@ struct nfhd_device { > > static blk_qc_t nfhd_make_request(struct request_queue *

Re: [PATCH v13 1/2] dt-bindings: proximity: provide vcnl3020 device tree binding document

2020-05-09 Thread Ivan Mikhaylov
On Fri, 2020-05-08 at 15:51 +0100, Jonathan Cameron wrote: > On Thu, 7 May 2020 16:25:59 +0300 > Ivan Mikhaylov wrote: > > > Mostly standard i2c driver with some additional led-current option > > for vcnl3020. > > > > Signed-off-by: Ivan Mikhaylov > > --- > > .../iio/proximity/vishay,vcnl3020.

Re: [PATCH v4 00/12] pstore: mtd: support crash log to block and mtd device

2020-05-09 Thread WeiXiong Liao
hi Kees Cook, On 2020/5/8 PM 3:27, Kees Cook wrote: > On Thu, May 07, 2020 at 11:39:52PM -0700, Kees Cook wrote: >> So far, I've identified the following stuff left to do: >> [...] >> - implement ramoops-like probe feature for pstore/blk > > With the following hack, I'm able to start test

Re: [PATCH v7 11/11] media: platform: Add jpeg dec/enc feature

2020-05-09 Thread Xia Jiang
On Fri, 2020-05-01 at 17:37 +, Tomasz Figa wrote: > Hi Xia, > > On Thu, Apr 16, 2020 at 12:03:15PM +0800, Xia Jiang wrote: > > On Fri, 2020-03-06 at 20:23 +0900, Tomasz Figa wrote: > > > Hi Xia, > > > > > > On Tue, Mar 03, 2020 at 08:34:46PM +0800, Xia Jiang wrote: > > > > Add mtk jpeg encode

Re: [PATCH v2 1/2] MIPS: Loongson: Cleanup cpu_hwmon.c

2020-05-09 Thread Tiezhu Yang
On 05/09/2020 05:52 PM, Huacai Chen wrote: Hi, Tiezhu, On Sat, May 9, 2020 at 3:13 PM Tiezhu Yang wrote: Fix the following checkpatch warnings and errors: ERROR: do not initialise statics to 0 #14: FILE: drivers/platform/mips/cpu_hwmon.c:14: +static int csr_temp_enable = 0; I know you are do

Re: [patch V4 part 2 10/18] x86/entry/64: Check IF in __preempt_enable_notrace() thunk

2020-05-09 Thread Thomas Gleixner
Andy Lutomirski writes: > On Tue, May 5, 2020 at 7:14 AM Thomas Gleixner wrote: >> >> The preempt_enable_notrace() ASM thunk is called from tracing, entry code >> RCU and other places which are already in or going to be in the noinstr >> section which protects sensitve code from being instrumente

[PATCH v1 1/1] tty: serial: add missing spin_lock_init for SiFive serial console

2020-05-09 Thread Sagar Shrikant Kadam
An uninitialised spin lock for sifive serial console raises a bad magic spin_lock error as reported and discussed here [1]. Initialising the spin lock resolves the issue. The fix is tested on HiFive Unleashed A00 board with Linux 5.7-rc4 and OpenSBI v0.7 [1] https://lore.kernel.org/linux-riscv/b

[PATCH v1 0/1] fix for spin lock bad magic on SiFive UART

2020-05-09 Thread Sagar Shrikant Kadam
A bad magic spin lock error was observed on HiFive Unleashed running 5.7-rc1+ linux kernel. The discussion is available here [1]. Thanks to Atish Patra for reporting it. Although spin locks are used within the driver to guard the critical sections, we missed to initialise it this resulted in rac

Re: [patch V4 part 2 06/18] x86/entry: Move irq flags tracing to prepare_exit_to_usermode()

2020-05-09 Thread Thomas Gleixner
Andy Lutomirski writes: > On Tue, May 5, 2020 at 7:14 AM Thomas Gleixner wrote: >> >> This is another step towards more C-code and less convoluted ASM. >> >> Similar to the entry path, invoke the tracer before context tracking which >> might turn off RCU and invoke lockdep as the last step before

Re: [patch V4 part 2 13/18] x86/kvm: Move context tracking where it belongs

2020-05-09 Thread Thomas Gleixner
Andy Lutomirski writes: > On Tue, May 5, 2020 at 7:14 AM Thomas Gleixner wrote: >> >> Context tracking for KVM happens way too early in the vcpu_run() >> code. Anything after guest_enter_irqoff() and before guest_exit_irqoff() >> cannot use RCU and should also be not instrumented. >> >> The curre

Re: [PATCH v8 2/4] firmware: raspberrypi: Introduce vl805 init routine

2020-05-09 Thread Stefan Wahren
Am 09.05.20 um 12:02 schrieb Stefan Wahren: > Hi Nicolas, > > Am 07.05.20 um 23:48 schrieb Rob Herring: >> On Tue, 5 May 2020 18:13:15 +0200, Nicolas Saenz Julienne wrote: >>> The Raspberry Pi 4 gets its USB functionality from VL805, a PCIe chip >>> that implements xHCI. After a PCI reset, VL805's

Re: Kmemleak infrastructure improvement for task_struct leaks and call_rcu()

2020-05-09 Thread Catalin Marinas
On Thu, May 07, 2020 at 01:29:04PM -0400, Qian Cai wrote: > On May 7, 2020, at 1:16 PM, Catalin Marinas wrote: > > I don't mind adding additional tracking info if it helps with debugging. > > But if it's for improving false positives, I'd prefer to look deeper > > into figure out why the pointer r

[PATCH] Driver: Adding helper macro for platform_driver boilerplate.

2020-05-09 Thread Harshal Chaudhari
From: Harshal For simple module that contain a single platform_driver without any additional setup code then ends up being a block of duplicated boilerplate. This patch add a new micro, module_platform_driver(), which replace the module_init()/module_exit() registrations with template function

Re: [patch V4 part 2 12/18] x86,objtool: Make entry_64_compat.S objtool clean

2020-05-09 Thread Thomas Gleixner
Andy Lutomirski writes: > On Tue, May 5, 2020 at 7:14 AM Thomas Gleixner wrote: >> >> Currently entry_64_compat is exempt from objtool, but with vmlinux >> mode there is no hiding it. >> >> Make the following changes to make it pass: >> >> - change entry_SYSENTER_compat to STT_NOTYPE; it's not

Re: [PATCH v8 2/4] firmware: raspberrypi: Introduce vl805 init routine

2020-05-09 Thread Stefan Wahren
Hi Nicolas, Am 07.05.20 um 23:48 schrieb Rob Herring: > On Tue, 5 May 2020 18:13:15 +0200, Nicolas Saenz Julienne wrote: >> The Raspberry Pi 4 gets its USB functionality from VL805, a PCIe chip >> that implements xHCI. After a PCI reset, VL805's firmware may either be >> loaded directly from an E

Re: WARNING in memtype_reserve

2020-05-09 Thread Thomas Gleixner
Greg KH writes: > On Sat, May 09, 2020 at 12:20:14AM -0700, syzbot wrote: >> memtype_reserve failed: [mem 0xff000-0x8fff], req write-back >> WARNING: CPU: 1 PID: 7025 at arch/x86/mm/pat/memtype.c:589 >> memtype_reserve+0x69f/0x820 arch/x86/mm/pat/memtype.c:589 > > So should memtype_re

Re: [PATCH] ACPI/IORT: Remove the unused __get_pci_rid()

2020-05-09 Thread Hanjun Guo
On 2020/5/9 17:34, Zenghui Yu wrote: Since commit bc8648d49a95 ("ACPI/IORT: Handle PCI aliases properly for IOMMUs"), __get_pci_rid() has become actually unused and can be removed. Signed-off-by: Zenghui Yu Looks good to me, Acked-by: Hanjun Guo

Re: Missing CLOCK_BOOTTIME_RAW?

2020-05-09 Thread Thomas Gleixner
Pali, Pali Rohár writes: > On Friday 08 May 2020 22:59:57 Thomas Gleixner wrote: >> Pali Rohár writes: >> Neither CLOCK_BOOTTIME nor CLOCK_MONOTONIC jump. They are frequency >> corrected when NTP, PTP or PPS are in use. The frequency correction is >> incremental an smothed. They really don't jum

Re: [PATCH v2 1/2] MIPS: Loongson: Cleanup cpu_hwmon.c

2020-05-09 Thread Huacai Chen
Hi, Tiezhu, On Sat, May 9, 2020 at 3:13 PM Tiezhu Yang wrote: > > Fix the following checkpatch warnings and errors: > > ERROR: do not initialise statics to 0 > #14: FILE: drivers/platform/mips/cpu_hwmon.c:14: > +static int csr_temp_enable = 0; I know you are doing things by checkpatch, but I real

Re: [RFC PATCH v2 1/7] block: Extand commit_rqs() to do batch processing

2020-05-09 Thread Ming Lei
On Sat, May 09, 2020 at 04:57:48PM +0800, Baolin Wang wrote: > On Sat, May 9, 2020 at 7:22 AM Ming Lei wrote: > > > > Hi Sagi, > > > > On Fri, May 08, 2020 at 03:19:45PM -0700, Sagi Grimberg wrote: > > > Hey Ming, > > > > > > > > Would it make sense to elevate this flag to a request_queue flag > >

[PATCH fixes] powerpc/vdso32: Fallback on getres syscall when clock is unknown

2020-05-09 Thread Christophe Leroy
There are other clocks than the standard ones, for instance per process clocks. Therefore, being above the last standard clock doesn't mean it is a bad clock. So, fallback to syscall instead of returning -EINVAL inconditionaly. Fixes: e33ffc956b08 ("powerpc/vdso32: implement clock_getres entirely"

Re: [PATCH v6] Add mtk matrix keypad driver for keypad on MTK SoC

2020-05-09 Thread Marco Felsch
Hi Yu, sorry if this is not your first name.. Something went wrong with you v6 since you are sending diffs to files that are not present in input-master/next. Regards, Marco On 20-05-09 10:04, Fengping Yu wrote: > Change since v5: > - remove unnecessary include files > - remove redundant comme

[PATCH v2 2/4] scsi: ufs-mediatek: change the way to use customizable parameters

2020-05-09 Thread Stanley Chu
Now all customizable parameters have been moved to hba->vps, thus modify the way to use them. Signed-off-by: Stanley Chu --- drivers/scsi/ufs/ufs-mediatek.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/ufs/ufs-mediatek.c b/drivers/scsi/ufs/ufs-mediatek.c i

[PATCH v2 0/4] scsi: ufs: allow customizable WriteBooster flush policy

2020-05-09 Thread Stanley Chu
Hi, This patch set tries to allow vendors to modify the WriteBooster flush policy. In the same time, collect all customizable parameters to an unified structure to make UFS driver more clean. v1 -> v2: - Squash patch [3] and [4] - Remove a dummy "new line" in patch [3] - Fix commit messag

[PATCH v2 4/4] scsi: ufs-mediatek: customize WriteBooster flush policy

2020-05-09 Thread Stanley Chu
Change the WriteBooster policy to keep VCC on during runtime suspend if available WriteBooster buffer is less than 80%. Signed-off-by: Stanley Chu --- drivers/scsi/ufs/ufs-mediatek.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/ufs/ufs-mediatek.c b/drivers/scsi/ufs/ufs-mediat

[PATCH v2 3/4] scsi: ufs: customize flush threshold for WriteBooster

2020-05-09 Thread Stanley Chu
Allow flush threshold for WriteBooster to be customizable by vendors. To achieve this, make the value as a variable in struct ufs_hba_variant_params. Besides, use macro UFS_WB_BUF_REMAIN_PERCENT() instead to provide more flexible usage of WriteBooster available buffer values. Signed-off-by: Stanl

[PATCH v2 1/4] scsi: ufs: introduce ufs_hba_variant_params to collect customizable parameters

2020-05-09 Thread Stanley Chu
There are more and more customizable parameters showed up in UFS driver. Let's collect them into a unified place to make the driver more clean. Signed-off-by: Stanley Chu --- drivers/scsi/ufs/ufshcd.c | 38 +++--- drivers/scsi/ufs/ufshcd.h | 8 +++- 2 files c

Re: [PATCH -next] ACPI: debug: Make two functions static

2020-05-09 Thread Rafael J. Wysocki
On Thursday, May 7, 2020 9:07:36 AM CEST Zheng Zengkai wrote: > Fix sparse warnings: > > drivers/acpi/acpi_dbg.c:748:12: warning: > symbol 'acpi_aml_init' was not declared. Should it be static? > drivers/acpi/acpi_dbg.c:774:13: warning: > symbol 'acpi_aml_exit' was not declared. Should it be sta

[PATCH] ACPI/IORT: Remove the unused __get_pci_rid()

2020-05-09 Thread Zenghui Yu
Since commit bc8648d49a95 ("ACPI/IORT: Handle PCI aliases properly for IOMMUs"), __get_pci_rid() has become actually unused and can be removed. Signed-off-by: Zenghui Yu --- drivers/acpi/arm64/iort.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/acpi/arm64/iort.c b/drivers/

[PATCH -next] ASoC: SOF: core: fix error return code in sof_probe_continue()

2020-05-09 Thread Wei Yongjun
Fix to return negative error code -ENOMEM from the IPC init error handling case instead of 0, as done elsewhere in this function. Fixes: c16211d6226d ("ASoC: SOF: Add Sound Open Firmware driver core") Reported-by: Hulk Robot Signed-off-by: Wei Yongjun --- sound/soc/sof/core.c | 1 + 1 file chan

[PATCH net-next 2/5] net: hns3: modify two uncorrect macro names

2020-05-09 Thread Huazhong Tan
According to the UM, command 0x0B03 and 0x0B13 are used to query the statistics about TX and RX, not the status, so modifies the unsuitable macro name of these two command. Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 4 ++-- drivers/net/ethernet/hisi

[PATCH net-next 0/5] net: hns3: misc updates for -next

2020-05-09 Thread Huazhong Tan
This patchset includes some misc updates for the HNS3 ethernet driver. #1 & #2 add two cleanups. #3 provides an interface for the client to query the CMDQ's status. #4 adds a little optimization about debugfs. #5 prevents 1000M auto-negotiation off setting. Huazhong Tan (3): net: hns3: remove a

[PATCH net-next 1/5] net: hns3: remove a redundant register macro definition

2020-05-09 Thread Huazhong Tan
HCLGE_MISC_VECTOR_INT_STS and HCLGE_VECTOR_PF_OTHER_INT_STS_REG both represent the misc interrupt status register(0x20800), so removes HCLGE_VECTOR_PF_OTHER_INT_STS_REG and replaces it with HCLGE_MISC_VECTOR_INT_STS. Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclg

[PATCH net-next 5/5] net: hns3: disable auto-negotiation off with 1000M setting in ethtool

2020-05-09 Thread Huazhong Tan
From: Yufeng Mo The 802.3 specification does not specify the behavior of auto-negotiation off with 1000M in PHY. Therefore, some PHY compatibility issues occur. This patch forbids the setting of this unreasonable mode by ethtool in driver. Signed-off-by: Yufeng Mo Signed-off-by: Huazhong Tan -

[PATCH net-next 4/5] net: hns3: optimized the judgment of the input parameters of dump ncl config

2020-05-09 Thread Huazhong Tan
From: Yufeng Mo This patch optimizes the judgment of the input parameters of dump ncl config by checking the number and value of the input parameters apart. It's clearer and more reasonable. Signed-off-by: Yufeng Mo Signed-off-by: Huazhong Tan --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_

[PATCH net-next 3/5] net: hns3: provide .get_cmdq_stat interface for the client

2020-05-09 Thread Huazhong Tan
This patch provides a new interface for the client to query whether CMDQ is ready to work. Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hnae3.h | 1 + drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 9 + 2 files changed, 10 insertions(+) diff

Re: [RFC PATCH 0/7] mm: Get rid of vmalloc_sync_(un)mappings()

2020-05-09 Thread Peter Zijlstra
On Fri, May 08, 2020 at 11:34:07PM +0200, Joerg Roedel wrote: > Hi Peter, > > thanks for reviewing this! > > On Fri, May 08, 2020 at 09:20:00PM +0200, Peter Zijlstra wrote: > > The only concern I have is the pgd_lock lock hold times. > > > > By not doing on-demand faults anymore, and consistentl

Re: [patch V4 part 1 02/36] x86/hw_breakpoint: Prevent data breakpoints on cpu_entry_area

2020-05-09 Thread Lai Jiangshan
On Tue, May 5, 2020 at 10:15 PM Thomas Gleixner wrote: > > From: Andy Lutomirski > > A data breakpoint near the top of an IST stack will cause unresoverable > recursion. A data breakpoint on the GDT, IDT, or TSS is terrifying. > Prevent either of these from happening. > What happen when a data

Re: [PATCH 4.9 00/18] 4.9.223-rc1 review

2020-05-09 Thread Naresh Kamboju
On Fri, 8 May 2020 at 18:20, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.9.223 release. > There are 18 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Resp

[PATCH 1/1] firmware: arm_scmi/mailbox: ignore notification for tx done using irq

2020-05-09 Thread joe_zhuchg
From: Joe Zhu If mailbox uses IRQ method, it already notified framework with mbox_chan_txdone() in ISR. Signed-off-by: Joe Zhu --- drivers/firmware/arm_scmi/mailbox.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/firmware/arm_scmi/mailbox.c b/drivers/firmware/

[PATCH -next 1/2] sparc: use snprintf() in show_pciobppath_attr() in pci.c

2020-05-09 Thread Chen Zhou
snprintf() returns the number of bytes that would be written, which may be greater than the the actual length to be written. show_pciobppath_attr() should return the number of bytes printed into the buffer. This is the return value of scnprintf(). Signed-off-by: Chen Zhou --- arch/sparc/kernel/

[PATCH -next 2/2] sparc: use snprintf() in show_pciobppath_attr() in vio.c

2020-05-09 Thread Chen Zhou
snprintf() returns the number of bytes that would be written, which may be greater than the the actual length to be written. show_pciobppath_attr() should return the number of bytes printed into the buffer. This is the return value of scnprintf(). Signed-off-by: Chen Zhou --- arch/sparc/kernel/

Re: [PATCH v1 3/5] scsi: ufs: customize flush threshold for WriteBooster

2020-05-09 Thread Stanley Chu
Hi Asutosh, Thanks for your review. On Fri, 2020-05-08 at 11:12 -0700, Asutosh Das (asd) wrote: > On 5/8/2020 10:15 AM, Stanley Chu wrote: > > Allow flush threshold for WriteBooster to be customizable by > > vendors. To achieve this, make the value as a variable in struct > > ufs_hba first. > >

[PATCH -next 0/2] sparc: use snprintf() in show() methods

2020-05-09 Thread Chen Zhou
snprintf() returns the number of bytes that would be written, which may be greater than the the actual length to be written. show() methods should return the number of bytes printed into the buffer. This is the return value of scnprintf(). Chen Zhou (2): sparc: use snprintf() in sho

Re: [PATCH 4.14 00/22] 4.14.180-rc1 review

2020-05-09 Thread Naresh Kamboju
On Fri, 8 May 2020 at 18:21, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.14.180 release. > There are 22 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Res

Re: [PATCH v0 1/1] spi: spi-rockchip: add support for spi slave_mode

2020-05-09 Thread Chris Ruehl
Emil, + if (rs->slavemode) here is a mistake  it is :  rs->slave_mode and the use of rs->slave_mode in the rockchip_spi_config()

[PATCH] staging: vt6656: vt6655: clean Makefiles

2020-05-09 Thread Matej Dujava
This patch is removing CFLAGS that are defining flags that are not used. Signed-off-by: Matej Dujava --- drivers/staging/vt6655/Makefile | 27 --- drivers/staging/vt6655/device_main.c | 1 - drivers/staging/vt6656/Makefile | 7 ++- 3 files changed, 14 inse

Re: [PATCH 4.19 00/32] 4.19.122-rc1 review

2020-05-09 Thread Naresh Kamboju
On Fri, 8 May 2020 at 18:23, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.19.122 release. > There are 32 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Res

Re: [PATCH v3 19/75] x86/boot/compressed/64: Add stage1 #VC handler

2020-05-09 Thread Borislav Petkov
On Tue, Apr 28, 2020 at 05:16:29PM +0200, Joerg Roedel wrote: > From: Joerg Roedel > > Add the first handler for #VC exceptions. At stage 1 there is no GHCB > yet becaue we might still be on the EFI page table and thus can't map "... because the kernel might still be running on the EFI page

Re: [patch V4 part 1 02/36] x86/hw_breakpoint: Prevent data breakpoints on cpu_entry_area

2020-05-09 Thread Lai Jiangshan
On Tue, May 5, 2020 at 10:15 PM Thomas Gleixner wrote: > > From: Andy Lutomirski > > A data breakpoint near the top of an IST stack will cause unresoverable > recursion. A data breakpoint on the GDT, IDT, or TSS is terrifying. > Prevent either of these from happening. > > Co-developed-by: Peter

Re: [PATCH 5.4 00/49] 5.4.40-rc2 review

2020-05-09 Thread Naresh Kamboju
On Fri, 8 May 2020 at 19:00, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.4.40 release. > There are 49 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Respo

Re: [RFC PATCH v2 1/7] block: Extand commit_rqs() to do batch processing

2020-05-09 Thread Baolin Wang
On Sat, May 9, 2020 at 7:22 AM Ming Lei wrote: > > Hi Sagi, > > On Fri, May 08, 2020 at 03:19:45PM -0700, Sagi Grimberg wrote: > > Hey Ming, > > > > > > Would it make sense to elevate this flag to a request_queue flag > > > > (QUEUE_FLAG_ALWAYS_COMMIT)? > > > > > > request queue flag usually is wr

Re: [PATCH RFC tip/core/rcu] Add shrinker to shift to fast/inefficient GP mode

2020-05-09 Thread Konstantin Khlebnikov
On 08/05/2020 17.46, Paul E. McKenney wrote: On Fri, May 08, 2020 at 12:00:28PM +0300, Konstantin Khlebnikov wrote: On 07/05/2020 22.09, Paul E. McKenney wrote: On Thu, May 07, 2020 at 02:31:02PM -0400, Johannes Weiner wrote: On Thu, May 07, 2020 at 10:09:03AM -0700, Paul E. McKenney wrote: O

Very Urgent,

2020-05-09 Thread Mr. Scott Donald
Dear Friend, I'm Mr. Scott Donald a Successful business Man. dealing with Exportation, I got your email contact through search to let you know my Ugly Situation Am a dying Man here in California Los Angeles Hospital Bed in (USA), I Lost my Wife and my only Daughter for Corona virus and my Doctor sa

[PATCH -next 3/3] s390/protvirt: use scnprintf() instead of snprintf()

2020-05-09 Thread Chen Zhou
snprintf() returns the number of bytes that would be written, which may be greater than the the actual length to be written. uv_query_facilities() should return the number of bytes printed into the buffer. This is the return value of scnprintf(). The other functions are the same. Signed-off-by: C

[PATCH -next 2/3] s390: use scnprintf() in sys_##_prefix##_##_name##_show

2020-05-09 Thread Chen Zhou
snprintf() returns the number of bytes that would be written, which may be greater than the the actual length to be written. show() methods should return the number of bytes printed into the buffer. This is the return value of scnprintf(). Signed-off-by: Chen Zhou --- arch/s390/kernel/ipl.c | 2

[PATCH -next 1/3] s390/crypto: use scnprintf() instead of snprintf()

2020-05-09 Thread Chen Zhou
snprintf() returns the number of bytes that would be written, which may be greater than the the actual length to be written. show() methods should return the number of bytes printed into the buffer. This is the return value of scnprintf(). Signed-off-by: Chen Zhou --- arch/s390/crypto/prng.c |

Re: [RFC PATCH 00/14] iio: buffer: add support for multiple buffers

2020-05-09 Thread Lars-Peter Clausen
On 5/8/20 3:53 PM, Alexandru Ardelean wrote: [...] What I don't like, is that iio:device3 has iio:buffer3:0 (to 3). This is because the 'buffer->dev.parent = &indio_dev->dev'. But I do feel this is correct. So, now I don't know whether to leave it like that or symlink to shorter versions like 'ii

[PATCH -next 0/3] s390: use scnprintf() in show() methods

2020-05-09 Thread Chen Zhou
snprintf() returns the number of bytes that would be written, which may be greater than the the actual length to be written. show() methods should return the number of bytes printed into the buffer. This is the return value of scnprintf(). Chen Zhou (3): s390/crypto: use scnprintf()

[RFC] splice/tee: len=0 fast path after validity check

2020-05-09 Thread Pavel Begunkov
When len=0, splice() and tee() return 0 even if specified fds are invalid, hiding errors from users. Move len=0 optimisation later after basic validity checks. before: splice(len=0, fd_in=-1, ...) == 0; after: splice(len=0, fd_in=-1, ...) == -EBADF; Signed-off-by: Pavel Begunkov --- Totally le

[PATCH v2] ACPI: EC: s2idle: Avoid premature returns from acpi_s2idle_wake()

2020-05-09 Thread Rafael J. Wysocki
From: Rafael J. Wysocki If the EC GPE status is not set after checking all of the other GPEs, acpi_s2idle_wake() returns 'false', to indicate that the SCI event that has just triggered is not a system wakeup one, but it does that without canceling the pending wakeup and re-arming the SCI for syst

Re: ioremap() called early from pnv_pci_init_ioda_phb()

2020-05-09 Thread Nicholas Piggin
Excerpts from Oliver O'Halloran's message of May 9, 2020 6:11 pm: > On Sat, May 9, 2020 at 12:41 AM Qian Cai wrote: >> >> Booting POWER9 PowerNV has this message, >> >> "ioremap() called early from pnv_pci_init_ioda_phb+0x420/0xdfc. Use >> early_ioremap() instead” >> >> but use the patch below w

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

2020-05-09 Thread Wesley Cheng
On 5/8/2020 5:45 AM, Felipe Balbi wrote: > > Hi, > > Wesley Cheng writes: >> 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 >>

[PATCH v3 3/7] iommu/mediatek: Disable STANDARD_AXI_MODE in MISC_CTRL

2020-05-09 Thread Chao Hao
In order to improve performance, we always disable STANDARD_AXI_MODE in MISC_CTRL. Signed-off-by: Chao Hao --- drivers/iommu/mtk_iommu.c | 8 +++- drivers/iommu/mtk_iommu.h | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/iommu/mtk_iommu.c b/drivers/iommu/mtk_iomm

[PATCH v3 00/07] MT6779 IOMMU SUPPORT

2020-05-09 Thread Chao Hao
This patchset adds mt6779 iommu support. mt6779 has two iommus, they are MM_IOMMU(M4U) and APU_IOMMU which used ARM Short-Descriptor translation format. The mt6779's MM_IOMMU-SMI and APU_IOMMU HW diagram is as below, it is only a brief diagram: EMI

[PATCH v3 7/7] iommu/mediatek: Add mt6779 basic support

2020-05-09 Thread Chao Hao
1. Start from mt6779, INVLDT_SEL move to offset=0x2c, so we add REG_MMU_INV_SEL_GEN2 definition and mt6779 uses it. 2. Change PROTECT_PA_ALIGN from 128 byte to 256 byte. 3. For REG_MMU_CTRL_REG register, we only need to change bit[2:0], others bits keep default value, ex: enable victim tlb. 4

[PATCH v3 6/7] iommu/mediatek: Add REG_MMU_WR_LEN definition preparing for mt6779

2020-05-09 Thread Chao Hao
Some platforms(ex: mt6779) have a new register called by REG_MMU_WR_LEN to improve performance. This patch add this register definition. Signed-off-by: Chao Hao --- drivers/iommu/mtk_iommu.c | 10 ++ drivers/iommu/mtk_iommu.h | 2 ++ 2 files changed, 12 insertions(+) diff --git a/drive

[PATCH v3 4/7] iommu/mediatek: Move inv_sel_reg into the plat_data

2020-05-09 Thread Chao Hao
For mt6779, MMU_INVLDT_SEL register's offset is changed from 0x38 to 0x2c, so we can put inv_sel_reg in the plat_data to use it. In addition, we renamed it to REG_MMU_INV_SEL_GEN1 and use it before mt6779. Signed-off-by: Chao Hao --- drivers/iommu/mtk_iommu.c | 9 ++--- drivers/iommu/mtk_iom

[PATCH v3 5/7] iommu/mediatek: Add sub_comm id in translation fault

2020-05-09 Thread Chao Hao
The max larb number that a iommu HW support is 8(larb0~larb7 in the below diagram). If the larb's number is over 8, we use a sub_common for merging several larbs into one larb. At this case, we will extend larb_id: bit[11:9] means common-id; bit[8:7] means subcommon-id; From these two variable, we

[PATCH v3 2/7] iommu/mediatek: Rename the register STANDARD_AXI_MODE(0x48) to MISC_CTRL

2020-05-09 Thread Chao Hao
For iommu offset=0x48 register, only the previous mt8173/mt8183 use the name STANDARD_AXI_MODE, all the latest SoC extend the register more feature by different bits, for example: axi_mode, in_order_en, coherent_en and so on. So rename REG_MMU_MISC_CTRL may be more proper. This patch only rename t

[PATCH v3 1/7] dt-bindings: mediatek: Add bindings for MT6779

2020-05-09 Thread Chao Hao
This patch adds description for MT6779 IOMMU. MT6779 has two iommus, they are mm_iommu and apu_iommu which both use ARM Short-Descriptor translation format. In addition, mm_iommu and apu_iommu are two independent HW instance , we need to set them separately. The MT6779 IOMMU hardware diagram is

[PATCH -next] CacheFiles: remove unnecessary comparisons

2020-05-09 Thread Yang Yingliang
The type of some variables are unsigned which always '>=' 0, These comparisons are always false, so we can remove them. Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- fs/cachefiles/daemon.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/cachefiles/daemon

Re: ioremap() called early from pnv_pci_init_ioda_phb()

2020-05-09 Thread Nicholas Piggin
Excerpts from Qian Cai's message of May 9, 2020 3:41 am: > > >> On May 8, 2020, at 10:39 AM, Qian Cai wrote: >> >> Booting POWER9 PowerNV has this message, >> >> "ioremap() called early from pnv_pci_init_ioda_phb+0x420/0xdfc. Use >> early_ioremap() instead” >> >> but use the patch below will

[PATCH 09/15, fіxed] lightnvm: stop using ->queuedata

2020-05-09 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- fixed the compilation in the print_ppa arguments drivers/lightnvm/core.c | 1 - drivers/lightnvm/pblk-init.c | 2 +- drivers/lightnvm/pblk.h | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/lightnvm/core.c b/drivers/li

[PATCH trivial] bootconfig: Fixup one typo

2020-05-09 Thread Shaokun Zhang
Fix up one typo: CONFIG_BOOTCONFIG -> CONFIG_BOOT_CONFIG Cc: Jiri Kosina Cc: Steven Rostedt Cc: Masami Hiramatsu Signed-off-by: Shaokun Zhang --- init/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/main.c b/init/main.c index 1a5da2c2660c..8369ba173ad8 100644 -

Re: [PATCH 1/4] fs: btrfs: fix a data race in btrfs_block_group_done()

2020-05-09 Thread Markus Elfring
> This data race was found and actually reproduced by our concurrency fuzzer. I have got the impression that this patch series has got a questionable mail threading. Will it be helpful to resend it with a cover letter together with a few adjustments for the corresponding change descriptions? https

Re: [PATCH v7 0/8] Bug fixes and improved logging in MHI

2020-05-09 Thread Manivannan Sadhasivam
Hi Bhaumik, On Fri, May 08, 2020 at 07:26:40PM -0700, Bhaumik Bhatt wrote: > A set of patches for bug fixes and improved logging in mhi/core/boot.c. > Verified on x86 and arm64 platforms. > Series applied to mhi-next! I'll wait for one more -rc before sending the final series to Greg for v5.8. I

[PATCH -next] arch/arm: use scnprintf() in l2x0_pmu_event_show()

2020-05-09 Thread Chen Zhou
snprintf() returns the number of bytes that would be written, which may be greater than the the actual length to be written. show() methods should return the number of bytes printed into the buffer. This is the return value of scnprintf(). Signed-off-by: Chen Zhou --- arch/arm/mm/cache-l2x0-pmu

Re: [PATCH v2 5/5] drm/panel: add panel driver for Ilitek ili9341 panels

2020-05-09 Thread dillon min
Hi sam, all, i'm not sure you had receive this mail , as gmail's html encoded messages blocked by linux arm kernel mailing list. so, resent it in plain text again. with my name "dillon: " at left sorry for trouble. dillon best regards dillon min 于2020年5月8日周五 下午6:13写道: > Hi Sam, Thanks fo

Re: [PATCH v4 3/9] usb: dwc3: Increase timeout for CmdAct cleared by device controller

2020-05-09 Thread Jun Li
Felipe Balbi 于2020年5月8日周五 下午8:35写道: > > > Hi, > > Jun Li writes: > > Jun Li 于2020年5月7日周四 上午11:08写道: > >> > >> John Stultz 于2020年5月7日周四 上午6:27写道: > >> > > >> > On Wed, May 6, 2020 at 2:00 AM Jun Li wrote: > >> > > John Stultz 于2019年10月30日周三 上午5:18写道: > >> > > > On Tue, Oct 29, 2019 at 2:11 AM

[PATCH 2/2] arm64: dts: imx8mp: Add src node interrupts

2020-05-09 Thread Anson Huang
Interrupts is a required property according to SRC binding, add it for SRC node. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi ind

[PATCH 1/2] arm64: dts: imx8mq: Add src node interrupts

2020-05-09 Thread Anson Huang
Interrupts is a required property according to SRC binding, add it for SRC node. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi ind

Re: remove a few uses of ->queuedata

2020-05-09 Thread Christoph Hellwig
On Sat, May 09, 2020 at 06:13:21AM +0800, Ming Lei wrote: > On Fri, May 08, 2020 at 06:15:02PM +0200, Christoph Hellwig wrote: > > Hi all, > > > > various bio based drivers use queue->queuedata despite already having > > set up disk->private_data, which can be used just as easily. This > > series

[PATCH V2] power: supply: lp8788: Fix an error handling path in 'lp8788_charger_probe()'

2020-05-09 Thread Christophe JAILLET
In the probe function, in case of error, resources allocated in 'lp8788_setup_adc_channel()' must be released. This can be achieved easily by using the devm_ variant of 'iio_channel_get()'. This has the extra benefit to simplify the remove function and to axe the 'lp8788_release_adc_channel()' fun

Re: remove a few uses of ->queuedata

2020-05-09 Thread Christoph Hellwig
On Fri, May 08, 2020 at 11:04:45AM -0700, Dan Williams wrote: > On Fri, May 8, 2020 at 9:16 AM Christoph Hellwig wrote: > > > > Hi all, > > > > various bio based drivers use queue->queuedata despite already having > > set up disk->private_data, which can be used just as easily. This > > series cl

[PATCH] dt-bindings: reset: Convert i.MX7 reset to json-schema

2020-05-09 Thread Anson Huang
Convert the i.MX7 reset binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- .../devicetree/bindings/reset/fsl,imx7-src.txt | 56 --- .../devicetree/bindings/reset/fsl,imx7-src.yaml| 64 ++ 2 files changed, 64 insertions(+), 56

<    1   2   3   4   5   6   >