Re: [PATCH net-next v4 5/5] ravb: Add support for explicit internal clock delay configuration

2020-09-18 Thread Geert Uytterhoeven
Hi Dan, On Thu, Sep 17, 2020 at 8:50 PM Dan Murphy wrote: > On 9/17/20 8:57 AM, Geert Uytterhoeven wrote: > > Some EtherAVB variants support internal clock delay configuration, which > > can add larger delays than the delays that are typically supported by > > the PHY (using an "rgmii-*id" PHY mo

Re: [PATCH v3 05/11] kvm: arm64: Remove hyp_adr/ldr_this_cpu

2020-09-18 Thread Will Deacon
On Wed, Sep 16, 2020 at 06:34:33PM +0100, David Brazdil wrote: > The hyp_adr/ldr_this_cpu helpers were introduced for use in hyp code > because they always needed to use TPIDR_EL2 for base, while > adr/ldr_this_cpu from kernel proper would select between TPIDR_EL2 and > _EL1 based on VHE/nVHE. > >

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

2020-09-18 Thread Jan Kara
On Thu 17-09-20 14:01:33, Oleg Nesterov wrote: > On 09/17, Boaz Harrosh wrote: > > > > On 16/09/2020 15:32, Hou Tao wrote: > > <> > > >However the performance degradation is huge under aarch64 (4 sockets, 24 > > >core per sockets): nearly 60% lost. > > > > > >v4.19.111 > > >no writer, reader cn

Re: [PATCH v12 3/9] x86: kdump: use macro CRASH_ADDR_LOW_MAX in functions reserve_crashkernel[_low]()

2020-09-18 Thread chenzhou
Hi Catalin, On 2020/9/18 16:59, chenzhou wrote: > Hi Baoquan, > > On 2020/9/18 15:25, Baoquan He wrote: >> Hi, >> >> On 09/07/20 at 09:47pm, Chen Zhou wrote: >>> To make the functions reserve_crashkernel[_low]() as generic, >>> replace some hard-coded numbers with macro CRASH_ADDR_LOW_MAX. >>> >>

Re: [RESEND][PATCH 0/2] iommu/tegra-smmu: Fix TLB line for Tegra210

2020-09-18 Thread Joerg Roedel
On Thu, Sep 17, 2020 at 04:31:53AM -0700, Nicolin Chen wrote: > These two patches fix ACTIVE_TLB_LINES field setting in tegra-smmu > driver for Tegra210 platforms. > > This resend in series groups two previous seperate changes that're > corelated, being pointed out by Thierry. Also adding his Acke

[PATCH] scsi: remove redundant initialization of variable ret

2020-09-18 Thread Jing Xiangfeng
The variable ret is being initialized with '-ENOMEM' that is meaningless. So remove it. Signed-off-by: Jing Xiangfeng --- drivers/scsi/arm/oak.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/arm/oak.c b/drivers/scsi/arm/oak.c index 7c9d361e91a9..78f33d57c3e8 10

Re: [PATCH v2] software_node: Add support for fwnode_graph*() family of functions

2020-09-18 Thread Dan Scally
On 18/09/2020 09:57, Heikki Krogerus wrote: > On Fri, Sep 18, 2020 at 10:57:41AM +0300, Sakari Ailus wrote: >> On Fri, Sep 18, 2020 at 08:46:52AM +0100, Dan Scally wrote: >>> On 18/09/2020 08:34, Sakari Ailus wrote: On Fri, Sep 18, 2020 at 07:49:31AM +0100, Dan Scally wrote: > Good morni

Re: [PATCH RFC v1 04/18] iommu/hyperv: don't setup IRQ remapping when running as root

2020-09-18 Thread Joerg Roedel
On Mon, Sep 14, 2020 at 11:27:48AM +, Wei Liu wrote: > The IOMMU code needs more work. We're sure for now the IRQ remapping > hooks are not applicable when Linux is the root. > > Signed-off-by: Wei Liu > --- > drivers/iommu/hyperv-iommu.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletio

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

2020-09-18 Thread Yang Yingliang
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_write' Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/

Re: [PATCH v2] software_node: Add support for fwnode_graph*() family of functions

2020-09-18 Thread Sakari Ailus
On Fri, Sep 18, 2020 at 11:57:09AM +0300, Heikki Krogerus wrote: > On Fri, Sep 18, 2020 at 10:57:41AM +0300, Sakari Ailus wrote: > > On Fri, Sep 18, 2020 at 08:46:52AM +0100, Dan Scally wrote: > > > On 18/09/2020 08:34, Sakari Ailus wrote: > > > > On Fri, Sep 18, 2020 at 07:49:31AM +0100, Dan Scall

Re: [PATCH v2] iommu/amd: Restore IRTE.RemapEn bit for amd_iommu_activate_guest_mode

2020-09-18 Thread Joerg Roedel
On Wed, Sep 16, 2020 at 11:17:20AM +, Suravee Suthikulpanit wrote: > Commit e52d58d54a32 ("iommu/amd: Use cmpxchg_double() when updating > 128-bit IRTE") removed an assumption that modify_irte_ga always set > the valid bit, which requires the callers to set the appropriate value > for the struc

Re: [PATCH leds v2 05/50] leds: various: guard of_match_table member value with of_match_ptr

2020-09-18 Thread Marek Behun
On Fri, 18 Sep 2020 09:15:00 +0300 Sakari Ailus wrote: > Hi Marek, > > On Fri, Sep 18, 2020 at 12:32:53AM +0200, Marek Behún wrote: > > Change > > .of_match_table = xxx, > > to > > .of_match_table = of_match_ptr(xxx), > > in various drivers. > > > > This should be standard even for drivers

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

2020-09-18 Thread Lorenzo Pieralisi
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 -next] i2c: efm32: Use devm_platform_get_and_ioremap_resource()

2020-09-18 Thread Uwe Kleine-König
On Fri, Sep 18, 2020 at 04:25:08PM +0800, 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 -next] tty: hvc: fix link error with CONFIG_SERIAL_CORE_CONSOLE=n

2020-09-18 Thread Yang Yingliang
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: Hulk Robot Signed-off-by: Yang Yingliang --- drivers/tty/hvc/Kconfig | 1 + 1 f

[PATCH v2] Documentation: Chinese translation of Documentation/arm64/amu.rst

2020-09-18 Thread Bailu Lin
This is a Chinese translated version of Documentation/arm64/amu.rst Signed-off-by: Bailu Lin --- Changes in v2: - Add index to arm64 directoy. - Fix a document format error. - Correct email encoding format. --- Documentation/arm64/amu.rst | 4 + .../translations/zh_CN/arm6

[PATCH net-next] hinic: modify irq name

2020-09-18 Thread Luo bin
Make a distinction between different irqs by netdev name or pci name. Signed-off-by: Luo bin --- drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c | 15 +-- drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.h | 1 + drivers/net/ethernet/huawei/hinic/hinic_rx.c | 2 +- drivers/net/e

Re: linux-next: build warning after merge of the sound-asoc tree

2020-09-18 Thread Kai Vehmanen
Hello, +Daniel,+Pierre On Fri, 18 Sep 2020, Stephen Rothwell wrote: > After merging the sound-asoc tree, today's linux-next build (x86_64 > allmodconfig) produced this warning: > > WARNING: modpost: missing MODULE_LICENSE() in sound/soc/sof/imx/imx-common.o thanks for the report. I made a patc

Re: [PATCH v2] software_node: Add support for fwnode_graph*() family of functions

2020-09-18 Thread Dan Scally
On 18/09/2020 10:15, Sakari Ailus wrote: > On Fri, Sep 18, 2020 at 11:57:09AM +0300, Heikki Krogerus wrote: >> On Fri, Sep 18, 2020 at 10:57:41AM +0300, Sakari Ailus wrote: >>> On Fri, Sep 18, 2020 at 08:46:52AM +0100, Dan Scally wrote: On 18/09/2020 08:34, Sakari Ailus wrote: > On Fri,

Re: [PATCH v3 06/11] kvm: arm64: Add helpers for accessing nVHE hyp per-cpu vars

2020-09-18 Thread Will Deacon
On Wed, Sep 16, 2020 at 06:34:34PM +0100, David Brazdil wrote: > Defining a per-CPU variable in hyp/nvhe will result in its name being > prefixed with __kvm_nvhe_. Add helpers for declaring these variables > in kernel proper and accessing them with this_cpu_ptr and per_cpu_ptr. > > Signed-off-by:

Re: [PATCH] iio: buffer: split buffer sysfs creation to take buffer as primary arg

2020-09-18 Thread Alexandru Ardelean
On Thu, Sep 17, 2020 at 8:56 PM Jonathan Cameron wrote: > > On Thu, 17 Sep 2020 20:41:08 +0300 > Alexandru Ardelean wrote: > > > On Thu, Sep 17, 2020 at 8:18 PM Jonathan Cameron wrote: > > > > > > On Thu, 17 Sep 2020 15:59:51 +0300 > > > Alexandru Ardelean wrote: > > > > > > > Currently the iio

[PATCH -next] gpu: gma500: Remove set but not used variable

2020-09-18 Thread Zheng Yongjun
Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/gma500/mmu.c: In function psb_mmu_insert_pfn_sequence: drivers/gpu/drm/gma500/mmu.c:660:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] drivers/gpu/drm/gma500/oaktrail_lvds_i2c.c: In function get_clock: driver

Re: [PATCH 2/3] iommu: amd: Add support for RMP_PAGE_FAULT and RMP_HW_ERR

2020-09-18 Thread Joerg Roedel
Hi Suravee, On Wed, Sep 16, 2020 at 01:55:48PM +, Suravee Suthikulpanit wrote: > +static void amd_iommu_report_rmp_hw_error(volatile u32 *event) > +{ > + struct pci_dev *pdev; > + struct iommu_dev_data *dev_data = NULL; > + int devid = (event[0] >> EVENT_DEVID_SHIFT) & EVENT_DE

[PATCH] scsi: arcmsr: Remove the superfluous break

2020-09-18 Thread Jing Xiangfeng
Remove the superfluous break, as there is a 'return' before it. Signed-off-by: Jing Xiangfeng --- drivers/scsi/arcmsr/arcmsr_hba.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/scsi/arcmsr/arcmsr_hba.c b/drivers/scsi/arcmsr/arcmsr_hba.c index ec895d0319f0..74add6d247d5 100644 ---

Re: [PATCH v2 0/3] KVM: x86: KVM_MEM_PCI_HOLE memory

2020-09-18 Thread Gerd Hoffmann
Hi, > > We could probably wire up ecam (arm/virt style) for pcie support, once > > the acpi support for mictovm finally landed (we need acpi for that > > because otherwise the kernel wouldn't find the pcie bus). > > > > Question is whenever there is a good reason to do so. Why would someone >

[PATCH v2] dt-bindings: power: rockchip: Convert to json-schema

2020-09-18 Thread Enric Balletbo i Serra
Convert the soc/rockchip/power_domain.txt binding document to json-schema and move to the power bindings directory. Signed-off-by: Enric Balletbo i Serra --- Changes in v2: - Fixed a warning that says that 'syscon' should not be used alone. - Use patternProperties to define a new level for power

Re: [PATCH v2 7/9] clocksource: sp804: add support for Hisilicon sp804 timer

2020-09-18 Thread Leizhen (ThunderTown)
On 2020/9/18 16:53, Daniel Lezcano wrote: > On 12/09/2020 13:45, Zhen Lei wrote: >> The ARM SP804 supports a maximum of 32-bit counter, but Hisilicon extends >> it to 64-bit. That means, the registers: TimerXload, TimerXValue and >> TimerXBGLoad are 64bits, all other registers are the same as th

Re: [PATCH RFC 4/4] 9p: fix race issue in fid contention.

2020-09-18 Thread Dominique Martinet
Jianyong Wu wrote on Fri, Sep 18, 2020: > If we move the counter decrease code into p9_client_clunk and put it > instead of fid_atomic_dec, we need delete fid off the inode where it > stores in p9_client_clunk. > But there is no way can we acquire the inode in p9_client_clunk. Do > you have any ide

Re: [PATCH 1/4] mm: Trial do_wp_page() simplification

2020-09-18 Thread Jan Kara
On Thu 17-09-20 15:48:57, Ira Weiny wrote: > On Thu, Sep 17, 2020 at 07:09:00PM -0300, Jason Gunthorpe wrote: > > On Thu, Sep 17, 2020 at 05:40:59PM -0400, Peter Xu wrote: > > > On Thu, Sep 17, 2020 at 01:35:56PM -0700, Linus Torvalds wrote: > > > > For that to happen, we'd need to have the vma fla

Re: [PATCH v2 22/37] arm64: mte: Add in-kernel MTE helpers

2020-09-18 Thread Catalin Marinas
On Thu, Sep 17, 2020 at 03:21:41PM +0100, Vincenzo Frascino wrote: > On 9/17/20 2:46 PM, Catalin Marinas wrote: > > On Tue, Sep 15, 2020 at 11:16:04PM +0200, Andrey Konovalov wrote: > >> diff --git a/arch/arm64/kernel/mte.c b/arch/arm64/kernel/mte.c > >> index 52a0638ed967..e238ffde2679 100644 > >>

Re: [PATCH 00/13] mm: clean up some lru related pieces

2020-09-18 Thread Yu Zhao
On Fri, Sep 18, 2020 at 09:45:49AM +0200, Michal Hocko wrote: > On Thu 17-09-20 21:00:38, Yu Zhao wrote: > > Hi Andrew, > > > > I see you have taken this: > > mm: use add_page_to_lru_list()/page_lru()/page_off_lru() > > Do you mind dropping it? > > > > Michal asked to do a bit of additional wor

Re: [RFC 3/5] mm, page_alloc(): remove setup_pageset()

2020-09-18 Thread Vlastimil Babka
On 9/10/20 11:23 AM, Oscar Salvador wrote: > On Mon, Sep 07, 2020 at 06:36:26PM +0200, Vlastimil Babka wrote: >> We initialize boot-time pagesets with setup_pageset(), which sets high and >> batch values that effectively disable pcplists. >> >> We can remove this wrapper if we just set these value

Re: [PATCH v2 27/37] arm64: mte: Switch GCR_EL1 in kernel entry and exit

2020-09-18 Thread Catalin Marinas
On Thu, Sep 17, 2020 at 07:47:59PM +0100, Vincenzo Frascino wrote: > On 9/17/20 5:52 PM, Catalin Marinas wrote: > >> +void mte_init_tags(u64 max_tag) > >> +{ > >> + u64 incl = GENMASK(max_tag & MTE_TAG_MAX, 0); > >> + > >> + gcr_kernel_excl = ~incl & SYS_GCR_EL1_EXCL_MASK; > >> +} > > Do we need

Re: [PATCH 2/2] dt-bindings: document a new quirk for dwc3

2020-09-18 Thread Mauro Carvalho Chehab
Em Thu, 17 Sep 2020 08:47:48 -0600 Rob Herring escreveu: > On Thu, Sep 17, 2020 at 1:18 AM Mauro Carvalho Chehab > wrote: > > > > Em Tue, 15 Sep 2020 10:38:14 -0600 > > Rob Herring escreveu: > > > > > On Tue, Sep 08, 2020 at 09:20:57AM +0200, Mauro Carvalho Chehab wrote: > > > > At Hikey 97

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

2020-09-18 Thread Alexander Potapenko
On Tue, Sep 15, 2020 at 11:17 PM Andrey Konovalov wrote: > > This is a preparatory commit for the upcoming addition of a new hardware > tag-based (MTE-based) KASAN mode. > > Hardware tag-based KASAN will also be using tag-based approach, so rename > tags.c to tags_sw.c and report_tags.c to report_

Re: [PATCH v4] usb-serial:cp210x: add support to software flow control

2020-09-18 Thread Johan Hovold
On Wed, Sep 09, 2020 at 10:39:30AM +0800, Sheng Long Wang wrote: > From: Wang Sheng Long > > When data is transmitted between two serial ports, > the phenomenon of data loss often occurs. The two kinds > of flow control commonly used in serial communication > are hardware flow control and softwar

[PATCH] ocxl: fix kconfig dependency warning for OCXL

2020-09-18 Thread Necip Fazil Yildiran
When OCXL is enabled and HOTPLUG_PCI is disabled, it results in the following Kbuild warning: WARNING: unmet direct dependencies detected for HOTPLUG_PCI_POWERNV Depends on [n]: PCI [=y] && HOTPLUG_PCI [=n] && PPC_POWERNV [=y] && EEH [=y] Selected by [y]: - OCXL [=y] && PPC_POWERNV [=y] && P

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

2020-09-18 Thread Alexander Potapenko
On Fri, Sep 18, 2020 at 11:41 AM Alexander Potapenko wrote: > > On Tue, Sep 15, 2020 at 11:17 PM Andrey Konovalov > wrote: > > > > This is a preparatory commit for the upcoming addition of a new hardware > > tag-based (MTE-based) KASAN mode. > > > > Hardware tag-based KASAN will also be using ta

Re: [PATCH 1/4] mm: Trial do_wp_page() simplification

2020-09-18 Thread Jan Kara
On Thu 17-09-20 19:09:00, Jason Gunthorpe wrote: > On Thu, Sep 17, 2020 at 05:40:59PM -0400, Peter Xu wrote: > > On Thu, Sep 17, 2020 at 01:35:56PM -0700, Linus Torvalds wrote: > > > For that to happen, we'd need to have the vma flag so that we wouldn't > > > have any worry about non-pinners, but a

Re: [PATCH v9 3/7] iommu/uapi: Introduce enum type for PASID data format

2020-09-18 Thread Joerg Roedel
On Fri, Sep 11, 2020 at 02:57:52PM -0700, Jacob Pan wrote: > There can be multiple vendor-specific PASID data formats used in UAPI > structures. This patch adds enum type with a last entry which makes > range checking much easier. But it also makes it much easier to screw up the numbers (which are

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

2020-09-18 Thread Alexander Potapenko
> 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.

Re: [PATCHv3 1/1] ext4: Optimize file overwrites

2020-09-18 Thread Jan Kara
On Fri 18-09-20 10:36:35, Ritesh Harjani wrote: > In case if the file already has underlying blocks/extents allocated > then we don't need to start a journal txn and can directly return > the underlying mapping. Currently ext4_iomap_begin() is used by > both DAX & DIO path. We can check if the writ

[PATCH 2/5] staging: vchiq: convert compat create_service

2020-09-18 Thread Arnd Bergmann
Split out the ioctl implementation for VCHIQ_IOC_CREATE_SERVICE into a separate function so it can be shared with the compat implementation. Signed-off-by: Arnd Bergmann --- .../interface/vchiq_arm/vchiq_arm.c | 189 +- 1 file changed, 89 insertions(+), 100 deletions(-)

[PATCH 0/5] staging: vchiq: stop using compat_alloc_user_space

2020-09-18 Thread Arnd Bergmann
This driver is one of only a few remaining files using compat_alloc_user_space() and copy_in_user() to implement the compat_ioctl handlers. Change it to be more like the other drivers, calling the underlying implementation directly, which is generally simpler and less error-prone. This is only bu

[PATCH 3/5] staging: vchiq: convert compat dequeue_message

2020-09-18 Thread Arnd Bergmann
Split out the ioctl implementation for VCHIQ_IOC_DEQUEUE_MESSAGE into a separate function so it can be shared with the compat implementation. Signed-off-by: Arnd Bergmann --- .../interface/vchiq_arm/vchiq_arm.c | 180 +- 1 file changed, 92 insertions(+), 88 deletions(-)

[PATCH 1/5] staging: vchiq: rework compat handling

2020-09-18 Thread Arnd Bergmann
The compat handlers for VCHIQ_IOC_QUEUE_MESSAGE32 and VCHIQ_IOC_GET_CONFIG32 can simply call the underlying implementations that are already separate functions rather than using copy_in_user to simulate the native 64-bit interface for the full ioctl handler. vchiq_ioc_queue_message gets a small up

[PATCH 4/5] staging: vchiq: convert compat bulk transfer

2020-09-18 Thread Arnd Bergmann
Split out the ioctl implementation for VCHIQ_IOC_QUEUE_BULK_TRANSMIT into a separate function so it can be shared with the compat implementation. Here, the input data is converted separately in the compat handler, while the output data is passed as a __user pointer to thec vchiq_queue_bulk_transfe

[PATCH 5/5] staging: vchiq: convert compat await_completion

2020-09-18 Thread Arnd Bergmann
Split out the ioctl implementation for VCHIQ_IOC_QUEUE_BULK_TRANSMIT into a separate function so it can be shared with the compat implementation. This one is the trickiest conversion, as the compat implementation is already quite different from the native one. By using a common handler, the behavi

[PATCH] ALSA: compat_ioctl: avoid compat_alloc_user_space

2020-09-18 Thread Arnd Bergmann
Using compat_alloc_user_space() tends to add complexity to the ioctl handling, so I am trying to remove it everywhere. The two callers in sound/core can rewritten to just call the same code that operates on a kernel pointer as the native handler. Signed-off-by: Arnd Bergmann --- sound/core/cont

Re: [PATCH leds v2 05/50] leds: various: guard of_match_table member value with of_match_ptr

2020-09-18 Thread Sakari Ailus
On Fri, Sep 18, 2020 at 11:20:58AM +0200, Marek Behun wrote: > On Fri, 18 Sep 2020 09:15:00 +0300 > Sakari Ailus wrote: > > > Hi Marek, > > > > On Fri, Sep 18, 2020 at 12:32:53AM +0200, Marek Behún wrote: > > > Change > > > .of_match_table = xxx, > > > to > > > .of_match_table = of_match_ptr

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

2020-09-18 Thread James Morse
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 a callback. Your comment "This only works because we don't nest SGIs..." on this thr

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 11:07:02AM +0200, Jan Kara wrote: > If people really wanted to avoid irq-safe inc/dec for archs where it is > more expensive, one idea I had was that we could add 'read_count_in_irq' to > percpu_rw_semaphore. So callers in normal context would use read_count and > callers in

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

2020-09-18 Thread 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 > --- > drivers/i2c/busses/i2

Re: [PATCH v9 0/7] IOMMU user API enhancement

2020-09-18 Thread Joerg Roedel
Hi Jacob, On Fri, Sep 11, 2020 at 02:57:49PM -0700, Jacob Pan wrote: > IOMMU user API header was introduced to support nested DMA translation and > related fault handling. The current UAPI data structures consist of three > areas that cover the interactions between host kernel and guest: > - faul

Re: [PATCH 3/3] hwmon: (lm75) Add regulator support

2020-09-18 Thread Mark Brown
On Thu, Sep 17, 2020 at 07:04:51PM -0700, Guenter Roeck wrote: > On 9/17/20 4:00 AM, Mark Brown wrote: > > On Thu, Sep 17, 2020 at 12:18:19PM +0200, Alban Bedel wrote: > >> + data->vs = devm_regulator_get_optional(dev, "vs"); > >> + if (IS_ERR(data->vs)) { > > Unless the device can work without

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:01:12PM +0200, pet...@infradead.org wrote: > @@ -198,7 +198,9 @@ EXPORT_SYMBOL_GPL(__percpu_down_read); > */ > static bool readers_active_check(struct percpu_rw_semaphore *sem) > { > - if (per_cpu_sum(*sem->read_count) != 0) > + u64 sum = per_cpu_sum(*(u64 *)s

Re: [PATCH 3/3] hwmon: (lm75) Add regulator support

2020-09-18 Thread Mark Brown
On Thu, Sep 17, 2020 at 10:33:37PM -0700, Guenter Roeck wrote: > On 9/17/20 3:18 AM, Alban Bedel wrote: > > + err = regulator_enable(data->vs); > How about device removal ? Don't you have to call regulator_disable() > there as well ? If so, it might be best to use devm_add_action_or_res

Re: [PATCH 01/13] mm: use add_page_to_lru_list()

2020-09-18 Thread Yu Zhao
On Fri, Sep 18, 2020 at 09:32:40AM +0200, Michal Hocko wrote: > On Thu 17-09-20 21:00:39, Yu Zhao wrote: > > This patch replaces the only open-coded lru list addition with > > add_page_to_lru_list(). > > > > Before this patch, we have: > > update_lru_size() > > list_move() > > > > After t

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

2020-09-18 Thread Petr Mladek
On Thu 2020-09-17 15:22:42, John Ogness wrote: > The majority of the size of a descriptor is taken up by meta data, > which is often not of interest to the ringbuffer (for example, > when performing state checks). Since descriptors are often > temporarily stored on the stack, keeping their size min

[PATCH 0/1] Use memset_io to access I/O memory

2020-09-18 Thread Shane Chien
From: "Shane.Chien" Use memset_io to access I/O memory, instead of memset. Shane.Chien (1): ASoC: Use memset_io to access I/O memory sound/core/pcm_native.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.7.9.5

Re: resolve_btfids breaks kernel cross-compilation

2020-09-18 Thread Jiri Olsa
On Thu, Sep 17, 2020 at 07:54:50AM -0500, Seth Forshee wrote: > On Thu, Sep 17, 2020 at 11:14:06AM +0200, Jiri Olsa wrote: > > On Thu, Sep 17, 2020 at 10:38:12AM +0200, Jiri Olsa wrote: > > > On Thu, Sep 17, 2020 at 10:04:55AM +0200, Jiri Olsa wrote: > > > > On Wed, Sep 16, 2020 at 02:47:33PM -0500

RE: [PATCH RFC 4/4] 9p: fix race issue in fid contention.

2020-09-18 Thread Jianyong Wu
> -Original Message- > From: Dominique Martinet > Sent: Friday, September 18, 2020 5:35 PM > To: Jianyong Wu > Cc: eri...@gmail.com; lu...@ionkov.net; v9fs- > develo...@lists.sourceforge.net; linux-kernel@vger.kernel.org; Justin He > ; Greg Kurz > Subject: Re: [PATCH RFC 4/4] 9p: fix r

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

2020-09-18 Thread Shane Chien
From: "Shane.Chien" Use memset_io to access I/O memory, instead of memset. Signed-off-by: Shane.Chien --- sound/core/pcm_native.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c index 9e0b2d7..a4efa84 100644 --- a/sound/c

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

2020-09-18 Thread Mark Brown
On Fri, Sep 18, 2020 at 06:00:18PM +0800, Shane Chien wrote: > From: "Shane.Chien" > > Use memset_io to access I/O memory, instead of > memset. Please don't send cover letters for single patches, if there is anything that needs saying put it in the changelog of the patch or after the --- if it's

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

2020-09-18 Thread Xin Ji
On Fri, Sep 18, 2020 at 11:45:34AM +0300, Dan Carpenter wrote: > Hi Xin, > > url: > https://github.com/0day-ci/linux/commits/Xin-Ji/Add-initial-support-for-slimport-anx7625/20200917-163238 > base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > 5925fa68fe8244651b3f78a88

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:04:32PM +0200, pet...@infradead.org wrote: > On Fri, Sep 18, 2020 at 12:01:12PM +0200, pet...@infradead.org wrote: > > @@ -198,7 +198,9 @@ EXPORT_SYMBOL_GPL(__percpu_down_read); > > */ > > static bool readers_active_check(struct percpu_rw_semaphore *sem) > > { > > -

[PATCH 0/3] fbdev: stop using compat_alloc_user_space

2020-09-18 Thread Arnd Bergmann
The fbdev code uses compat_alloc_user_space in a few of its compat_ioctl handlers, which tends to be a bit more complicated and error-prone than calling the underlying handlers directly, so I would like to remove it completely. This modifies two such functions in fbdev, and removes another one tha

[PATCH 1/3] fbdev: simplify fb_getput_cmap()

2020-09-18 Thread Arnd Bergmann
This function is one of the remaining users of compat_alloc_user_space() and copy_in_user(). Clean it up by copying to a local data structure copy instead, which also leads to more readable code. Signed-off-by: Arnd Bergmann --- drivers/video/fbdev/core/fbmem.c | 44 ++--

[PATCH 3/3] fbdev: sbuslib: remove compat_alloc_user_space usage

2020-09-18 Thread Arnd Bergmann
This is one of the last users of compat_alloc_user_space() and copy_in_user(). The actual handler is implemented in the same file and could be shared, but as I couldn't test this properly I leave the native case alone and just make a straight copy of it for the compat case, with a minimum set of mo

[PATCH v3] ptp: mark symbols static where possible

2020-09-18 Thread Herrington
We get 1 warning when building kernel with W=1: drivers/ptp/ptp_pch.c:182:5: warning: no previous prototype for ‘pch_ch_control_read’ [-Wmissing-prototypes] u32 pch_ch_control_read(struct pci_dev *pdev) drivers/ptp/ptp_pch.c:193:6: warning: no previous prototype for ‘pch_ch_control_write’ [-Wmis

Re: [PATCH leds v2 05/50] leds: various: guard of_match_table member value with of_match_ptr

2020-09-18 Thread Marek Behun
On Fri, 18 Sep 2020 12:57:59 +0300 Sakari Ailus wrote: > On Fri, Sep 18, 2020 at 11:20:58AM +0200, Marek Behun wrote: > > On Fri, 18 Sep 2020 09:15:00 +0300 > > Sakari Ailus wrote: > > > > > Hi Marek, > > > > > > On Fri, Sep 18, 2020 at 12:32:53AM +0200, Marek Behún wrote: > > > > Change >

[PATCH 2/3] fbdev: sbuslib: remove unused FBIOSCURSOR32 helper

2020-09-18 Thread Arnd Bergmann
No driver implements FBIOSCURSOR, so this function has no purpose and can be removed. Apparently it was added in linux-2.1.44 to handle compatibility for drivers/sbus/char/sunfb.c but lost its purpose when that driver got rewritten in linux-2.5.63. Signed-off-by: Arnd Bergmann --- drivers/video/

[rcu:rcu/next] BUILD SUCCESS 4ad1536d5b19b769f326a2ef9f9572a0084ebefe

2020-09-18 Thread kernel test robot
randconfig-a016-20200917 i386 randconfig-a012-20200917 i386 randconfig-a015-20200918 i386 randconfig-a011-20200918 i386 randconfig-a014-20200918 i386 randconfig-a013-20200918 i386 randconfig-a012-20200918 i386

[PATCH v35 08/13] LRNG - add kernel crypto API PRNG extension

2020-09-18 Thread Stephan Müller
Add runtime-pluggable support for all PRNGs that are accessible via the kernel crypto API, including hardware PRNGs. The PRNG is selected with the module parameter drng_name where the name must be one that the kernel crypto API can resolve into an RNG. This allows using of the kernel crypto API PR

[PATCH v35 07/13] LRNG - add SP800-90A DRBG extension

2020-09-18 Thread Stephan Müller
Using the LRNG switchable DRNG support, the SP800-90A DRBG extension is implemented. The DRBG uses the kernel crypto API DRBG implementation. In addition, it uses the kernel crypto API SHASH support to provide the hashing operation. The DRBG supports the choice of either a CTR DRBG using AES-256,

[PATCH v35 13/13] LRNG - add power-on and runtime self-tests

2020-09-18 Thread Stephan Müller
Parts of the LRNG are already covered by self-tests, including: * Self-test of SP800-90A DRBG provided by the Linux kernel crypto API. * Self-test of the PRNG provided by the Linux kernel crypto API. * Raw noise source data testing including SP800-90B compliant tests when enabling CONFIG_LRNG_

[PATCH v35 09/13] crypto: provide access to a static Jitter RNG state

2020-09-18 Thread Stephan Müller
To support the LRNG operation which uses the Jitter RNG separately from the kernel crypto API, at a time where potentially the regular memory management is not yet initialized, the Jitter RNG needs to provide a state whose memory is defined at compile time. As only once instance will ever be needed

[PATCH v35 00/13] /dev/random - a new approach

2020-09-18 Thread Stephan Müller
Hi, The following patch set provides a different approach to /dev/random which is called Linux Random Number Generator (LRNG) to collect entropy within the Linux kernel. The following advantages compared to the existing /dev/random implementation are present: * Sole use of crypto for data proces

[PATCH v35 03/13] LRNG - sysctls and /proc interface

2020-09-18 Thread Stephan Müller
The LRNG sysctl interface provides the same controls as the existing /dev/random implementation. These sysctls behave identically and are implemented identically. The goal is to allow a possible merge of the existing /dev/random implementation with this implementation which implies that this patch

[PATCH v35 06/13] crypto: DRBG - externalize DRBG functions for LRNG

2020-09-18 Thread Stephan Müller
This patch allows several DRBG functions to be called by the LRNG kernel code paths outside the drbg.c file. CC: "Eric W. Biederman" CC: "Alexander E. Patrakov" CC: "Ahmed S. Darwish" CC: "Theodore Y. Ts'o" CC: Willy Tarreau CC: Matthew Garrett CC: Vito Caputo CC: Andreas Dilger CC: Jan Ka

[PATCH v35 01/13] Linux Random Number Generator

2020-09-18 Thread Stephan Müller
In an effort to provide a flexible implementation for a random number generator that also delivers entropy during early boot time, allows replacement of the deterministic random number generation mechanism, implement the various components in separate code for easier maintenance, and provide compli

[PATCH v35 02/13] LRNG - allocate one DRNG instance per NUMA node

2020-09-18 Thread Stephan Müller
In order to improve NUMA-locality when serving getrandom(2) requests, allocate one DRNG instance per node. The DRNG instance that is present right from the start of the kernel is reused as the first per-NUMA-node DRNG. For all remaining online NUMA nodes a new DRNG instance is allocated. During b

Re: [PATCH -next v2] bcache: Convert to DEFINE_SHOW_ATTRIBUTE

2020-09-18 Thread Coly Li
On 2020/9/17 20:23, Qinglang Miao wrote: > Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. > > As inode->iprivate equals to third parameter of > debugfs_create_file() which is NULL. So it's equivalent > to original code logic. > > Signed-off-by: Qinglang Miao > --- > v2: based on linux-nex

[PATCH v35 12/13] LRNG - add interface for gathering of raw entropy

2020-09-18 Thread Stephan Müller
The test interface allows a privileged process to capture the raw unconditioned noise that is collected by the LRNG for statistical analysis. Such testing allows the analysis how much entropy the interrupt noise source provides on a given platform. Extracted noise data is not used to seed the LRNG.

[PATCH v35 10/13] LRNG - add Jitter RNG fast noise source

2020-09-18 Thread Stephan Müller
The Jitter RNG fast noise source implemented as part of the kernel crypto API is queried for 256 bits of entropy at the time the seed buffer managed by the LRNG is about to be filled. CC: "Eric W. Biederman" CC: "Alexander E. Patrakov" CC: "Ahmed S. Darwish" CC: "Theodore Y. Ts'o" CC: Willy Ta

[PATCH V2 0/2] add QoS support for cpuidle system

2020-09-18 Thread Joakim Zhang
Add QoS support for cpuidle system. Joakim Zhang (2): bindings: media: gpio-ir-receiver: add linux,autosuspend-period property media: rc: gpio-ir-recv: add QoS support for cpuidle system .../bindings/media/gpio-ir-receiver.txt | 3 ++ drivers/media/rc/gpio-ir-recv.c

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: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. I shouldn't try to be clever on a Friday I suppose :-(

[PATCH v35 05/13] LRNG - add common generic hash support

2020-09-18 Thread Stephan Müller
The LRNG switchable DRNG support also allows the replacement of the hash implementation used as conditioning component. The common generic hash support code provides the required callbacks using the synchronous hash implementations of the kernel crypto API. All synchronous hash implementations sup

[PATCH v35 11/13] LRNG - add SP800-90B compliant health tests

2020-09-18 Thread Stephan Müller
Implement health tests for LRNG's slow noise sources as mandated by SP-800-90B The file contains the following health tests: - stuck test: The stuck test calculates the first, second and third discrete derivative of the time stamp to be processed by the hash for the per-CPU entropy pool. Only

[PATCH V2 2/2] media: rc: gpio-ir-recv: add QoS support for cpuidle system

2020-09-18 Thread Joakim Zhang
GPIO IR receive is much rely on interrupt response, uneven interrupt latency will lead to incorrect timing, so the decoder fails to decode it. The issue is particularly acute on some systems which support cpuidle, not all, dynamically disable and enable cpuidle can solve this problem to a great ext

[PATCH V2 1/2] bindings: media: gpio-ir-receiver: add linux,autosuspend-period property

2020-09-18 Thread Joakim Zhang
Add linux,autosuspend-period property for gpio ir receiver. Some cpuidle systems wake from idle may take a bit long time, for such case, need disable cpuidle temporarily. Signed-off-by: Joakim Zhang --- ChangeLogs: V1->V2: * New add. --- Documentation/devicetree/bindings/media/gpio-ir-re

[PATCH -next 9/9] rtlwifi: rtl8723be: fix comparison to bool warning in hw.c

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

[PATCH -next 3/9] rtlwifi: rtl8192cu: fix comparison to bool warning in mac.c

2020-09-18 Thread Zheng Bin
Fixes coccicheck warning: drivers/net/wireless/realtek/rtlwifi/rtl8192cu/mac.c:161:14-17: WARNING: Comparison to bool drivers/net/wireless/realtek/rtlwifi/rtl8192cu/mac.c:168:13-16: WARNING: Comparison to bool drivers/net/wireless/realtek/rtlwifi/rtl8192cu/mac.c:179:14-17: WARNING: Comparison t

[PATCH -next 1/9] rtlwifi: rtl8192ee: fix comparison to bool warning in hw.c

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

[PATCH -next 7/9] rtlwifi: rtl8192ce: fix comparison to bool warning in hw.c

2020-09-18 Thread Zheng Bin
Fixes coccicheck warning: drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c:616:14-20: WARNING: Comparison to bool drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c:621:13-19: WARNING: Comparison to bool drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c:626:14-20: WARNING: Comparison to b

[PATCH -next 0/9] rtlwifi: fix comparison to bool warnings

2020-09-18 Thread Zheng Bin
Zheng Bin (9): rtlwifi: rtl8192ee: fix comparison to bool warning in hw.c rtlwifi: rtl8192c: fix comparison to bool warning in phy_common.c rtlwifi: rtl8192cu: fix comparison to bool warning in mac.c rtlwifi: rtl8821ae: fix comparison to bool warning in hw.c rtlwifi: rtl8821ae: fix compar

[PATCH -next 4/9] rtlwifi: rtl8821ae: fix comparison to bool warning in hw.c

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

[PATCH -next 5/9] rtlwifi: rtl8821ae: fix comparison to bool warning in phy.c

2020-09-18 Thread Zheng Bin
Fixes coccicheck warning: drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c:1816:5-13: WARNING: Comparison to bool drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c:1825:5-13: WARNING: Comparison to bool drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c:1839:5-13: WARNING: Comparison t

[PATCH -next 6/9] rtlwifi: rtl8192cu: fix comparison to bool warning in hw.c

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

[PATCH -next 8/9] rtlwifi: rtl8192de: fix comparison to bool warning in hw.c

2020-09-18 Thread Zheng Bin
Fixes coccicheck warning: drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c:566:14-20: WARNING: Comparison to bool drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c:572:13-19: WARNING: Comparison to bool drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c:581:14-20: WARNING: Comparison to b

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