[PATCH 5/5] floppy: cleanups: remove FLOPPY_SILENT_DCL_CLEAR undef

2021-04-16 Thread Denis Efremov
FLOPPY_SILENT_DCL_CLEAR is not defined anywhere and comes from pre-git era. Just drop this undef. There is FD_SILENT_DCL_CLEAR which is really used. Signed-off-by: Denis Efremov --- drivers/block/floppy.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/block/floppy.c b/drivers/block

[PATCH 3/5] floppy: cleanups: use memset() to zero reply_buffer

2021-04-16 Thread Denis Efremov
Use memset() to zero reply buffer in raw_cmd_copyin() instead of a for loop. Signed-off-by: Denis Efremov --- drivers/block/floppy.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c index df5c32900539..c58b0b079afc 100644 ---

Re: [PATCH v2] serial: stm32: optimize spin lock usage

2021-04-16 Thread Johan Hovold
On Tue, Apr 13, 2021 at 07:44:39AM +0800, dillon min wrote: > Hi Johan, Erwan > > It seems still a bit of a problem in the current version, not deadlock > but access register at the same time. > > For driver , we should consider it running under smp, let's think > about it for this case: > > sta

Re: [PATCH v9 6/7] mm: Make alloc_contig_range handle in-use hugetlb pages

2021-04-16 Thread David Hildenbrand
-int isolate_or_dissolve_huge_page(struct page *page) +int isolate_or_dissolve_huge_page(struct page *page, struct list_head *list) { struct hstate *h; struct page *head; + int ret = -EBUSY; /* * The page might have been dissolved from under our feet, so

Re: [PATCH v2 3/7] KVM: x86: hyper-v: Move the remote TLB flush logic out of vmx

2021-04-16 Thread Vitaly Kuznetsov
Vineeth Pillai writes: > Currently the remote TLB flush logic is specific to VMX. > Move it to a common place so that SVM can use it as well. > > Signed-off-by: Vineeth Pillai > --- > arch/x86/include/asm/kvm_host.h | 14 + > arch/x86/kvm/hyperv.c | 87

Re: [Outreachy kernel] [PATCH v2] staging: media: atomisp: pci: Change line break to avoid an open parenthesis at the end of the line

2021-04-16 Thread Sakari Ailus
Hi Dan, On Fri, Apr 16, 2021 at 08:49:41AM +0300, Dan Carpenter wrote: > On Fri, Apr 16, 2021 at 12:21:58AM +0300, Sakari Ailus wrote: > > On Thu, Apr 15, 2021 at 08:59:41PM +0100, Matthew Wilcox wrote: > > > On Thu, Apr 15, 2021 at 08:57:04PM +0100, Matthew Wilcox wrote: > > > > On Thu, Apr 15, 2

Re: [PATCH v2 3/7] KVM: x86: hyper-v: Move the remote TLB flush logic out of vmx

2021-04-16 Thread Paolo Bonzini
On 16/04/21 10:36, Vitaly Kuznetsov wrote: - Create a dedicated set of files, e.g. 'kvmonhyperv.[ch]' (I also thought about 'hyperv_host.[ch]' but then I realized it's equally misleading as one can read this as 'KVM is acting as Hyper-V host'). Personally, I'd vote for the later. Besides elimina

[PATCH v9 0/3] Adding the Sparx5 Switch Reset Driver

2021-04-16 Thread Steen Hegelund
This series provides the Microchip Sparx5 Switch Reset Driver The Sparx5 Switch SoC has a number of components that can be reset individually, but at least the Switch Core needs to be in a well defined state at power on, when any of the Sparx5 drivers starts to access the Switch Core, this reset d

[PATCH v9 1/3] dt-bindings: reset: microchip sparx5 reset driver bindings

2021-04-16 Thread Steen Hegelund
Document the Sparx5 reset device driver bindings The driver uses a syscon and an IO range on sparx5 for access to the reset control and the reset status. Sparx5 will no longer use the existing Ocelot chip reset driver, but use this new switch reset driver as it has the reset controller interface

[PATCH v9 2/3] reset: mchp: sparx5: add switch reset driver

2021-04-16 Thread Steen Hegelund
The Sparx5 Switch SoC has a number of components that can be reset indiviually, but at least the Switch Core needs to be in a well defined state at power on, when any of the Sparx5 drivers starts to access the Switch Core, this reset driver is available. The reset driver is loaded early via the po

[PATCH v9 3/3] arm64: dts: reset: add microchip sparx5 switch reset driver

2021-04-16 Thread Steen Hegelund
This provides reset driver support for the Microchip Sparx5 PCB134 and PCB135 reference boards. The Sparx5 Switch will no longer use the Ocelot Chip Reset Driver (with the compatible string "microchip,sparx5-chip-reset"), but use a separate driver that exposes a reset controller interface and has

Re: [PATCH -next] drm: bridge: fix ANX7625 use of mipi_dsi_() functions

2021-04-16 Thread Robert Foss
Thanks Randy! Reviewed-by: Robert Foss On Thu, 15 Apr 2021 at 20:36, Randy Dunlap wrote: > > The Analogix DRM ANX7625 bridge driver uses mips_dsi_() function > interfaces so it should select DRM_MIPI_DSI to prevent build errors. > > > ERROR: modpost: "mipi_dsi_attach" > [drivers/gpu/drm/bridge

Re: [PATCH] mm: ptdump: Fix build failure

2021-04-16 Thread Steven Price
On 15/04/2021 10:31, Christophe Leroy wrote: CC mm/ptdump.o In file included from : mm/ptdump.c: In function 'ptdump_pte_entry': ././include/linux/compiler_types.h:320:38: error: call to '__compiletime_assert_207' declared with attribute error: Unsupported

Re: [PATCHv3] Introduced new tracing mode KCOV_MODE_UNIQUE.

2021-04-16 Thread Dmitry Vyukov
On Sat, Mar 27, 2021 at 3:56 PM Andrey Konovalov wrote: > > On Fri, Mar 26, 2021 at 9:52 PM Alexander Lochmann > wrote: > > > > Hi Alexander, > > > It simply stores the executed PCs. > > The execution order is discarded. > > Each bit in the shared buffer represents every fourth > > byte of the te

Re: [PATCH] extcon: maxim: Fix missing IRQF_ONESHOT as only threaded handler

2021-04-16 Thread Krzysztof Kozlowski
On 15/04/2021 13:36, zhuguangqin...@gmail.com wrote: > From: Guangqing Zhu > > Coccinelle noticed: > 1. drivers/extcon/extcon-max14577.c:699:8-33: ERROR: Threaded IRQ with > no primary handler requested without IRQF_ONESHOT > 2. drivers/extcon/extcon-max77693.c:1143:8-33: ERROR: Threaded IRQ

Re: [PATCH] rtc: Fix missing IRQF_ONESHOT as only threaded handler

2021-04-16 Thread Krzysztof Kozlowski
On 16/04/2021 04:19, zhuguangqin...@gmail.com wrote: > From: Guangqing Zhu > > Coccinelle noticed: > 1. drivers/rtc/rtc-s5m.c:810:7-32: ERROR: Threaded IRQ with no primary >handler requested without IRQF_ONESHOT > 2. drivers/rtc/rtc-rk808.c:441:7-32: ERROR: Threaded IRQ with no primary >h

Re: [v2 1/2] dt-bindings: Add bindings for aspeed pwm-tach and pwm.

2021-04-16 Thread Billy Tsai
On 2021/4/15, 10:44 PM,Rob Herringwrote: >On Wed, Apr 14, 2021 at 10:44 PM Billy Tsai wrote: >> >> Hi Rob, >> >> On 2021/4/15, 6:16 AM,Rob Herringwrote: >> >> On Wed, Apr 14, 2021 at 06:49:38PM +0800, Billy Tsai wrote: >> >> This patch adds device binding

Re: [RFC 0/2] Add a new translation tool scripts/trslt.py

2021-04-16 Thread Wu X.C.
Hi Federico, On Wed, Apr 14, 2021 at 01:27:23AM +0200, Federico Vaga wrote: > Hi, > > Yes, you are touching a good point where things can be improved. I admit that > I > did not have a look at the code yet, if not very quickly. Perhaps I'm missing > something. However, let me give you my two cen

Re: [PATCH] regulator: mt6360: Fix missing IRQF_ONESHOT as only threaded handler

2021-04-16 Thread Krzysztof Kozlowski
On Fri, 16 Apr 2021 at 06:30, wrote: > > From: Guangqing Zhu > > Coccinelle noticed: > drivers/regulator/mt6360-regulator.c:386:8-33: ERROR: Threaded IRQ with no > primary handler requested without IRQF_ONESHOT This should be tested. There are several patches like this all over the tree so it lo

Re: [PATCH 3/3] vfio/iommu_type1: Add support for manual dirty log clear

2021-04-16 Thread Keqian Zhu
Hi Alex, On 2021/4/16 4:43, Alex Williamson wrote: > On Tue, 13 Apr 2021 17:14:45 +0800 > Keqian Zhu wrote: > >> From: Kunkun Jiang >> >> In the past, we clear dirty log immediately after sync dirty >> log to userspace. This may cause redundant dirty handling if >> userspace handles dirty log i

Re: [Outreachy kernel] [PATCH v2] staging: media: atomisp: pci: Change line break to avoid an open parenthesis at the end of the line

2021-04-16 Thread Julia Lawall
> > If you're running into the 80 character limit, then it's fine to use > > two tabs. I think we have been rejecting patches that push align the > > parameters but push past the 80 character limit. Using one tab is > > confusing because it makes the decalarations line up with the code. > > Inter

Re: [PATCH] drivers: ipa: Fix missing IRQF_ONESHOT as only threaded handler

2021-04-16 Thread Krzysztof Kozlowski
On Fri, 16 Apr 2021 at 06:26, wrote: > > From: Guangqing Zhu > > Coccinelle noticed: > drivers/net/ipa/ipa_smp2p.c:186:7-27: ERROR: Threaded IRQ with no primary > handler requested without IRQF_ONESHOT > > Signed-off-by: Guangqing Zhu > --- > drivers/net/ipa/ipa_smp2p.c | 3 ++- > 1 file change

Re: [PATCH V3 2/3] vDPA/ifcvf: enable Intel C5000X-PL virtio-block for vDPA

2021-04-16 Thread Stefano Garzarella
On Fri, Apr 16, 2021 at 03:16:27PM +0800, Zhu Lingshan wrote: This commit enabled Intel FPGA SmartNIC C5000X-PL virtio-block for vDPA. Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_base.h | 8 +++- drivers/vdpa/ifcvf/ifcvf_main.c | 19 ++- 2 files changed, 25 inser

[PATCH v4 net-next 00/10] net: Korina improvements

2021-04-16 Thread Thomas Bogendoerfer
While converting Mikrotik RB532 support to use device tree I stumbled over the korina ethernet driver, which used way too many MIPS specific hacks. This series cleans this all up and adds support for device tree. Changes in v4: - improve error returns in mdio_read further - added clock name an

[PATCH v4 net-next 01/10] net: korina: Fix MDIO functions

2021-04-16 Thread Thomas Bogendoerfer
Fixed MDIO functions to work reliable and not just by accident. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/Kconfig | 1 + drivers/net/ethernet/korina.c | 56 +++ 2 files changed, 38 insertions(+), 19 deletions(-) diff --git a/drivers/net/ethern

[PATCH v4 net-next 02/10] net: korina: Use devres functions

2021-04-16 Thread Thomas Bogendoerfer
Simplify probe/remove code by using devm_ functions. Reviewed-by: Andrew Lunn Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/korina.c | 64 --- 1 file changed, 21 insertions(+), 43 deletions(-) diff --git a/drivers/net/ethernet/korina.c b/drivers/ne

[PATCH v4 net-next 03/10] net: korina: Remove not needed cache flushes

2021-04-16 Thread Thomas Bogendoerfer
Descriptors are mapped uncached so there is no need to do any cache handling for them. Reviewed-by: Andrew Lunn Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/korina.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/net/ethernet/korina.c b/drivers/net/ethernet/kori

[PATCH v4 net-next 04/10] net: korina: Remove nested helpers

2021-04-16 Thread Thomas Bogendoerfer
Remove helpers, which are only used in one call site. Reviewed-by: Andrew Lunn Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/korina.c | 28 +++- 1 file changed, 3 insertions(+), 25 deletions(-) diff --git a/drivers/net/ethernet/korina.c b/drivers/net/ether

[PATCH v4 net-next 05/10] net: korina: Use DMA API

2021-04-16 Thread Thomas Bogendoerfer
Instead of messing with MIPS specific macros use DMA API for mapping descriptors and skbs. Reviewed-by: Andrew Lunn Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/korina.c | 158 +- 1 file changed, 98 insertions(+), 60 deletions(-) diff --git a/driv

[PATCH v4 net-next 06/10] net: korina: Only pass mac address via platform data

2021-04-16 Thread Thomas Bogendoerfer
Get rid of access to struct korina_device by just passing the mac address via platform data and use drvdata for passing netdev to remove function. Signed-off-by: Thomas Bogendoerfer --- arch/mips/rb532/devices.c | 5 +++-- drivers/net/ethernet/korina.c | 11 ++- 2 files changed, 9 i

[PATCH v4 net-next 08/10] net: korina: Get mdio input clock via common clock framework

2021-04-16 Thread Thomas Bogendoerfer
With device tree clock is provided via CCF. For non device tree use a maximum clock value to not overclock the PHY. The non device tree usage will go away after platform is converted to DT. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/korina.c | 21 +++-- 1 file ch

[PATCH v4 net-next 09/10] net: korina: Make driver COMPILE_TESTable

2021-04-16 Thread Thomas Bogendoerfer
Move structs/defines for ethernet/dma register into driver, since they are only used for this driver and remove any MIPS specific includes. This makes it possible to COMPILE_TEST the driver. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/Kconfig | 2 +- drivers/net/ethernet/korin

Re: [PATCH] Input: goodix - Fix missing IRQF_ONESHOT as only threaded handler

2021-04-16 Thread Krzysztof Kozlowski
On Fri, 16 Apr 2021 at 05:18, wrote: > > From: Guangqing Zhu > > Coccinelle noticed: > drivers/input/touchscreen/goodix.c:497:8-33: ERROR: Threaded IRQ with no > primary handler requested without IRQF_ONESHOT > > Signed-off-by: Guangqing Zhu > --- > drivers/input/touchscreen/goodix.c | 5 +++--

Re: [PATCH V3 3/3] vDPA/ifcvf: get_config_size should return dev specific config size

2021-04-16 Thread Stefano Garzarella
On Fri, Apr 16, 2021 at 03:16:28PM +0800, Zhu Lingshan wrote: get_config_size() should return the size based on the decected device type. Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_main.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) Reviewed-by: Stefa

[PATCH 2/2] MIPS: kdump: Provide arch_kexec_protect(unprotect)_crashkres()

2021-04-16 Thread Youling Tang
Commit 9b492cf58077 ("kexec: introduce a protection mechanism for the crashkernel reserved memory") , provides a mechanism to protect the memory reserved by the crashed kernel. 1) After each crash kexec loading, it simply marks the reserved memory regions readonly since we no longer access it afte

[PATCH] Revert "MIPS: make userspace mapping young by default".

2021-04-16 Thread Zhou Yanjie
This reverts commit f685a533a7fab35c5d069dcd663f59c8e4171a75. It cause kernel panic on Ingenic X1830, so let's revert it. Signed-off-by: 周琰杰 (Zhou Yanjie) --- arch/mips/mm/cache.c | 31 ++- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/arch/mips/mm/

Re: [PATCH] irq: Fix missing IRQF_ONESHOT as only threaded handler

2021-04-16 Thread Krzysztof Kozlowski
On Tue, 13 Apr 2021 at 15:42, wrote: > > From: Guangqing Zhu > > Coccinelle noticed: > kernel/irq/manage.c:2199:8-28: ERROR: Threaded IRQ with no primary > handler requested without IRQF_ONESHOT. > > Signed-off-by: Guangqing Zhu > --- > kernel/irq/manage.c | 2 +- > 1 file changed, 1 insertio

Re: [PATCH 4.14 16/68] net: ensure mac header is set in virtio_net_hdr_to_skb()

2021-04-16 Thread Balazs Nemeth
On Thu, 2021-04-15 at 16:46 +0200, Greg Kroah-Hartman wrote: > From: Eric Dumazet > > commit 61431a5907fc36d0738e9a547c7e1556349a03e9 upstream. > > Commit 924a9bc362a5 ("net: check if protocol extracted by > virtio_net_hdr_set_proto is correct") > added a call to dev_parse_header_protocol() but

[PATCH 1/2] MIPS: mm: Add ARCH_HAS_SET_MEMORY support

2021-04-16 Thread Youling Tang
Add set_memory_ro/rw/x/nx/rw_nx architecture hooks. These set_memory_* and set_pages_* APIs can make it easier to change the attributes of memory or pages. Similar to the implementation of riscv. The declaration of set_memory_* functions uses the general set_memory.h (i.e. include/asm-generic/set_

[PATCH v4 net-next 07/10] net: korina: Add support for device tree

2021-04-16 Thread Thomas Bogendoerfer
If there is no mac address passed via platform data try to get it via device tree and fall back to a random mac address, if all fail. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/korina.c | 24 ++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a

Re: [PATCH v2] serial: stm32: optimize spin lock usage

2021-04-16 Thread Johan Hovold
[ Please avoid top-posting. ] On Thu, Apr 15, 2021 at 07:09:14PM +0200, Erwan LE RAY wrote: > Hi Dillon, > > STM32MP151 is mono-core, but both STM32MP153 and STM32MP157 are > dual-core (see > https://www.st.com/content/st_com/en/products/microcontrollers-microprocessors/stm32-arm-cortex-mpus.ht

[PATCH v5 net-next 00/10] net: Korina improvements

2021-04-16 Thread Thomas Bogendoerfer
While converting Mikrotik RB532 support to use device tree I stumbled over the korina ethernet driver, which used way too many MIPS specific hacks. This series cleans this all up and adds support for device tree. Changes in v5: - fixed email address in binding document, which prevented sending i

[PATCH v5 net-next 01/10] net: korina: Fix MDIO functions

2021-04-16 Thread Thomas Bogendoerfer
Fixed MDIO functions to work reliable and not just by accident. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/Kconfig | 1 + drivers/net/ethernet/korina.c | 56 +++ 2 files changed, 38 insertions(+), 19 deletions(-) diff --git a/drivers/net/ethern

[PATCH v5 net-next 03/10] net: korina: Remove not needed cache flushes

2021-04-16 Thread Thomas Bogendoerfer
Descriptors are mapped uncached so there is no need to do any cache handling for them. Reviewed-by: Andrew Lunn Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/korina.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/net/ethernet/korina.c b/drivers/net/ethernet/kori

[PATCH v5 net-next 05/10] net: korina: Use DMA API

2021-04-16 Thread Thomas Bogendoerfer
Instead of messing with MIPS specific macros use DMA API for mapping descriptors and skbs. Reviewed-by: Andrew Lunn Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/korina.c | 158 +- 1 file changed, 98 insertions(+), 60 deletions(-) diff --git a/driv

[PATCH v5 net-next 04/10] net: korina: Remove nested helpers

2021-04-16 Thread Thomas Bogendoerfer
Remove helpers, which are only used in one call site. Reviewed-by: Andrew Lunn Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/korina.c | 28 +++- 1 file changed, 3 insertions(+), 25 deletions(-) diff --git a/drivers/net/ethernet/korina.c b/drivers/net/ether

[PATCH v5 net-next 02/10] net: korina: Use devres functions

2021-04-16 Thread Thomas Bogendoerfer
Simplify probe/remove code by using devm_ functions. Reviewed-by: Andrew Lunn Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/korina.c | 64 --- 1 file changed, 21 insertions(+), 43 deletions(-) diff --git a/drivers/net/ethernet/korina.c b/drivers/ne

[PATCH v5 net-next 07/10] net: korina: Add support for device tree

2021-04-16 Thread Thomas Bogendoerfer
If there is no mac address passed via platform data try to get it via device tree and fall back to a random mac address, if all fail. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/korina.c | 24 ++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a

[PATCH v5 net-next 06/10] net: korina: Only pass mac address via platform data

2021-04-16 Thread Thomas Bogendoerfer
Get rid of access to struct korina_device by just passing the mac address via platform data and use drvdata for passing netdev to remove function. Signed-off-by: Thomas Bogendoerfer --- arch/mips/rb532/devices.c | 5 +++-- drivers/net/ethernet/korina.c | 11 ++- 2 files changed, 9 i

[PATCH v5 net-next 09/10] net: korina: Make driver COMPILE_TESTable

2021-04-16 Thread Thomas Bogendoerfer
Move structs/defines for ethernet/dma register into driver, since they are only used for this driver and remove any MIPS specific includes. This makes it possible to COMPILE_TEST the driver. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/Kconfig | 2 +- drivers/net/ethernet/korin

[PATCH v5 net-next 10/10] dt-bindings: net: korina: Add DT bindings for IDT 79RC3243x SoCs

2021-04-16 Thread Thomas Bogendoerfer
Add device tree bindings for ethernet controller integrated into IDT 79RC3243x SoCs. Signed-off-by: Thomas Bogendoerfer --- .../bindings/net/idt,3243x-emac.yaml | 74 +++ 1 file changed, 74 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/idt,3243x

[PATCH v5 net-next 08/10] net: korina: Get mdio input clock via common clock framework

2021-04-16 Thread Thomas Bogendoerfer
With device tree clock is provided via CCF. For non device tree use a maximum clock value to not overclock the PHY. The non device tree usage will go away after platform is converted to DT. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/korina.c | 21 +++-- 1 file ch

Re: [Outreachy kernel] [PATCH v2] staging: media: atomisp: pci: Change line break to avoid an open parenthesis at the end of the line

2021-04-16 Thread Sakari Ailus
On Fri, Apr 16, 2021 at 10:46:54AM +0200, Julia Lawall wrote: > > > If you're running into the 80 character limit, then it's fine to use > > > two tabs. I think we have been rejecting patches that push align the > > > parameters but push past the 80 character limit. Using one tab is > > > confusi

[gustavoars-linux:testing/warray-bounds] BUILD SUCCESS WITH WARNING 8bd0f043b3e94069930bec5cb3fbb5c857748c80

2021-04-16 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git testing/warray-bounds branch HEAD: 8bd0f043b3e94069930bec5cb3fbb5c857748c80 HID: cp2112: Fix out-of-bounds warning Warning reports: https://lore.kernel.org/lkml/202104160817.a5foa0xa-...@intel.com https://lore.k

Re: [PATCH v2] serial: stm32: optimize spin lock usage

2021-04-16 Thread dillon min
Hi Johan, On Fri, Apr 16, 2021 at 4:35 PM Johan Hovold wrote: > > On Tue, Apr 13, 2021 at 07:44:39AM +0800, dillon min wrote: > > Hi Johan, Erwan > > > > It seems still a bit of a problem in the current version, not deadlock > > but access register at the same time. > > > > For driver , we should

Re: [PATCH v1 1/1] ACPI: NFIT: Import GUID before use

2021-04-16 Thread Andy Shevchenko
On Fri, Apr 16, 2021 at 8:28 AM Dan Williams wrote: > > On Thu, Apr 15, 2021 at 6:59 AM Andy Shevchenko > wrote: > > > > Strictly speaking the comparison between guid_t and raw buffer > > is not correct. Import GUID to variable of guid_t type and then > > compare. > > Hmm, what about something li

Re: [PATCH v2 4/7] KVM: SVM: hyper-v: Nested enlightenments in VMCB

2021-04-16 Thread Vitaly Kuznetsov
Vineeth Pillai writes: > Add Hyper-V specific fields in VMCB to support SVM enlightenments. > Also a small refactoring of VMCB clean bits handling. > > Signed-off-by: Vineeth Pillai > --- > arch/x86/include/asm/svm.h | 24 +++- > arch/x86/kvm/svm/svm.c | 8 > a

Re: [PATCH] thermal/drivers/tsens: fix missing put_device error

2021-04-16 Thread Krzysztof Kozlowski
On Sun, 4 Apr 2021 at 06:34, wrote: > > From: Guangqing Zhu > > Fixes coccicheck error: > > drivers/thermal/qcom/tsens.c:759:4-10: ERROR: missing put_device; call > of_find_device_by_node on line 715, but without a corresponding object > release within this function. > > Fixes: a7ff82976122 ("dri

Re: [PATCH bpf-next 3/5] libbpf: add low level TC-BPF API

2021-04-16 Thread Toke Høiland-Jørgensen
Daniel Borkmann writes: > On 4/16/21 12:22 AM, Andrii Nakryiko wrote: >> On Thu, Apr 15, 2021 at 3:10 PM Daniel Borkmann wrote: >>> On 4/15/21 1:58 AM, Andrii Nakryiko wrote: On Wed, Apr 14, 2021 at 4:32 PM Daniel Borkmann wrote: > On 4/15/21 1:19 AM, Andrii Nakryiko wrote: >

Re: [Outreachy kernel] [PATCH v2] staging: media: atomisp: pci: Change line break to avoid an open parenthesis at the end of the line

2021-04-16 Thread Julia Lawall
On Fri, 16 Apr 2021, Sakari Ailus wrote: > On Fri, Apr 16, 2021 at 10:46:54AM +0200, Julia Lawall wrote: > > > > If you're running into the 80 character limit, then it's fine to use > > > > two tabs. I think we have been rejecting patches that push align the > > > > parameters but push past th

Re: [PATCH v2 5/7] KVM: SVM: hyper-v: Remote TLB flush for SVM

2021-04-16 Thread Vitaly Kuznetsov
Vineeth Pillai writes: > Enable remote TLB flush for SVM. > > Signed-off-by: Vineeth Pillai > --- > arch/x86/kvm/svm/svm.c | 37 + > 1 file changed, 37 insertions(+) > > diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c > index 2ad1f55c88d0..de141d

Re: [PATCH v3 01/12] iommu: Introduce dirty log tracking framework

2021-04-16 Thread Keqian Zhu
Hi Baolu, On 2021/4/15 18:21, Lu Baolu wrote: > Hi, > > On 2021/4/15 15:43, Keqian Zhu wrote: design it as not switchable. I will modify the commit message of patch#12, thanks! >>> I am not sure that I fully get your point. But I can't see any gaps of >>> using iommu_dev_enable/disable

Re: [PATCH] drm/omap: dsi: Add missing IRQF_ONESHOT

2021-04-16 Thread Krzysztof Kozlowski
On Mon, 22 Mar 2021 at 09:53, Yang Li wrote: > > fixed the following coccicheck: > ./drivers/gpu/drm/omapdrm/dss/dsi.c:4329:7-27: ERROR: Threaded IRQ with > no primary handler requested without IRQF_ONESHOT > > Make sure threaded IRQs without a primary handler are always request > with IRQF_ONESHO

[V3] drm/i915/gt: Fix a lockdep warning with interrupts enabled

2021-04-16 Thread Jun Miao
Don`t simplely disable local interrupt delivery of CPU hardware irq, should race the region inside signal_irq_work, include intel_breadcrumbs_disarm_irq/intel_breadcrumbs_arm_irq. RT complains about might sleep inside signal_irq_work() because spin_lock will be invoked after disabling interrupts.

Re: [PATCH] kernel:irq:manage: request threaded irq with a specified priority

2021-04-16 Thread Thomas Gleixner
On Fri, Apr 16 2021 at 12:57, chensong wrote: > On 2021/4/13 下午4:39, Thomas Gleixner wrote: >> It breaks because the system designer failed to assign proper priorities >> to the irq threads int_a, int_b and to the user space process task_a. > > yes, it's designers' responsibility to assign proper p

Re: [PATCH v1 1/1] powerpc/papr_scm: Properly handle UUID types and API

2021-04-16 Thread Andy Shevchenko
On Fri, Apr 16, 2021 at 01:28:21PM +0530, Aneesh Kumar K.V wrote: > On 4/15/21 7:16 PM, Andy Shevchenko wrote: > > Parse to and export from UUID own type, before dereferencing. > > This also fixes wrong comment (Little Endian UUID is something else) > > and should fix Sparse warnings about assignin

[PATCH] nvme: Favor D3cold for suspend if NVMe device supports it

2021-04-16 Thread Kai-Heng Feng
On AMD platforms that use s2idle, NVMe timeouts on s2idle resume, because their SMU FW may cut off NVMe power during sleep. Unlike Intel platforms where the power resources are generally controlled by root port, the power resources is controlled by NVMe device itself on recent AMD platforms: ...

Re: [PATCH] rtc: Fix missing IRQF_ONESHOT as only threaded handler

2021-04-16 Thread Krzysztof Kozlowski
On 16/04/2021 04:19, zhuguangqin...@gmail.com wrote: > From: Guangqing Zhu > > Coccinelle noticed: > 1. drivers/rtc/rtc-s5m.c:810:7-32: ERROR: Threaded IRQ with no primary >handler requested without IRQF_ONESHOT > 2. drivers/rtc/rtc-rk808.c:441:7-32: ERROR: Threaded IRQ with no primary >h

Re: [Outreachy kernel] [PATCH v2] staging: media: atomisp: pci: Change line break to avoid an open parenthesis at the end of the line

2021-04-16 Thread Dan Carpenter
On Fri, Apr 16, 2021 at 11:37:28AM +0300, Sakari Ailus wrote: > Hi Dan, > > On Fri, Apr 16, 2021 at 08:49:41AM +0300, Dan Carpenter wrote: > > On Fri, Apr 16, 2021 at 12:21:58AM +0300, Sakari Ailus wrote: > > > On Thu, Apr 15, 2021 at 08:59:41PM +0100, Matthew Wilcox wrote: > > > > On Thu, Apr 15,

[PATCH v2] nvme: Favor D3cold for suspend if NVMe device supports it

2021-04-16 Thread Kai-Heng Feng
On AMD platforms that use s2idle, NVMe timeouts on s2idle resume, because their SMU FW may cut off NVMe power during sleep. Unlike Intel platforms where the power resources are generally controlled by root port, the power resources is controlled by NVMe device itself on recent AMD platforms: ...

Re: [PATCH -next] drm: bridge: fix LONTIUM use of mipi_dsi_() functions

2021-04-16 Thread Robert Foss
Merged for 5.13 in drm-misc-next-fixes On Thu, 15 Apr 2021 at 21:36, Adrien Grassein wrote: > > Reviewed-by: Adren Grassein > > Le jeu. 15 avr. 2021 à 20:36, Randy Dunlap a écrit : > > > > The Lontium DRM bridge drivers use mipi_dsi_() function interfaces so > > they need to select DRM_MIPI_DSI

Re: [PATCH -next] drm: bridge: fix ANX7625 use of mipi_dsi_() functions

2021-04-16 Thread Robert Foss
Merged for 5.13 in drm-misc-next-fixes On Fri, 16 Apr 2021 at 10:41, Robert Foss wrote: > > Thanks Randy! > > Reviewed-by: Robert Foss > > On Thu, 15 Apr 2021 at 20:36, Randy Dunlap wrote: > > > > The Analogix DRM ANX7625 bridge driver uses mips_dsi_() function > > interfaces so it should selec

Re: [PATCH] Revert "MIPS: make userspace mapping young by default".

2021-04-16 Thread 黄沛
Is there any log about the panic?   Original Message   From: 周琰杰 (Zhou Yanjie) Sent: 2021年4月16日星期五 16:48 To: tsbog...@alpha.franken.de Cc: linux-m...@vger.kernel.org; linux-kernel@vger.kernel.org; a...@linux-foundation.org; paul.bur...@mips.com; p...@crapouillou.net; siyant...@loongson.cn; huang

Re: [PATCH v4 net-next 07/10] net: korina: Add support for device tree

2021-04-16 Thread Sergei Shtylyov
Hello! On 16.04.2021 11:47, Thomas Bogendoerfer wrote: If there is no mac address passed via platform data try to get it via > device tree and fall back to a random mac address, if all fail. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/korina.c | 24 ++--

[PATCH] ccp: ccp - add support for Green Sardine

2021-04-16 Thread Rijo Thomas
From: Devaraj Rangasamy Add a new PCI device entry for Green Sardine APU. Signed-off-by: Devaraj Rangasamy Tested-by: Babulu Ellune Signed-off-by: Rijo Thomas --- drivers/crypto/ccp/sp-pci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/crypto/ccp/sp-pci.c b/drivers/crypto/ccp/

Re: [PATCH v19 1/2] scsi: ufs: Enable power management for wlun

2021-04-16 Thread Adrian Hunter
On 16/04/21 2:36 am, Asutosh Das wrote: > During runtime-suspend of ufs host, the scsi devices are > already suspended and so are the queues associated with them. > But the ufs host sends SSU (START_STOP_UNIT) to wlun > during its runtime-suspend. > During the process blk_queue_enter checks if the

Re: [PATCH v3 1/2] perf/core: Share an event with multiple cgroups

2021-04-16 Thread Peter Zijlstra
On Fri, Apr 16, 2021 at 08:48:12AM +0900, Namhyung Kim wrote: > On Thu, Apr 15, 2021 at 11:51 PM Peter Zijlstra wrote: > > On Tue, Apr 13, 2021 at 08:53:36AM -0700, Namhyung Kim wrote: > > > cgroup event counting (i.e. perf stat). > > > > > > * PERF_EVENT_IOC_ATTACH_CGROUP - it takes a buffer co

[PATCH 2/2] drm/meson: dw-hdmi: disable DW-HDMI CEC sub-driver

2021-04-16 Thread Neil Armstrong
On the Amlogic SoCs, the DW-HDMI HW support is here but the DW-HDMI CEC signal is not connected to a physical pin, leading to confusion when the dw-hdmi cec controller can't communicate on the bus. Disable it to avoid exposing a non-functinal bus. Signed-off-by: Neil Armstrong --- drivers/gpu/d

[PATCH 0/2] drm/bridge: dw-hdmi: disable loading of DW-HDMI CEC sub-driver

2021-04-16 Thread Neil Armstrong
This adds DW-HDMI driver a glue option to disable loading of the CEC sub-driver. On some SoCs, the CEC functionality is enabled in the IP config bits, but the CEC bus is non-functional like on Amlogic SoCs, where the CEC config bit is set but the DW-HDMI CEC signal is not connected to a physical p

[PATCH 1/2] drm/bridge/synopsys: dw-hdmi: Add an option to suppress loading CEC driver

2021-04-16 Thread Neil Armstrong
From: Jernej Skrabec This adds DW-HDMI driver a glue option to disable loading of the CEC sub-driver. On some SoCs, the CEC functionality is enabled in the IP config bits, but the CEC bus is non-functional like on Amlogic SoCs, where the CEC config bit is set but the DW-HDMI CEC signal is not co

Re: Bogus struct page layout on 32-bit

2021-04-16 Thread Grygorii Strashko
Hi Ilias, All, On 10/04/2021 11:52, Ilias Apalodimas wrote: +CC Grygorii for the cpsw part as Ivan's email is not valid anymore Thanks for catching this. Interesting indeed... On Sat, 10 Apr 2021 at 09:22, Jesper Dangaard Brouer wrote: On Sat, 10 Apr 2021 03:43:13 +0100 Matthew Wilcox wrot

Re: [PATCH v1 3/5] mm: ptdump: Provide page size to notepage()

2021-04-16 Thread Steven Price
On 15/04/2021 18:18, Christophe Leroy wrote: In order to support large pages on powerpc, notepage() needs to know the page size of the page. Add a page_size argument to notepage(). Signed-off-by: Christophe Leroy --- arch/arm64/mm/ptdump.c | 2 +- arch/riscv/mm/ptdump.c |

Re: [PATCH v3 1/2] perf/core: Share an event with multiple cgroups

2021-04-16 Thread Peter Zijlstra
Duh.. this is a half-finished email I meant to save for later. Anyway, I'll reply more. On Fri, Apr 16, 2021 at 11:26:39AM +0200, Peter Zijlstra wrote: > On Fri, Apr 16, 2021 at 08:48:12AM +0900, Namhyung Kim wrote: > > On Thu, Apr 15, 2021 at 11:51 PM Peter Zijlstra > > wrote: > > > On Tue, A

Re: [PATCH v5 net-next 10/10] dt-bindings: net: korina: Add DT bindings for IDT 79RC3243x SoCs

2021-04-16 Thread Sergei Shtylyov
On 16.04.2021 11:52, Thomas Bogendoerfer wrote: Add device tree bindings for ethernet controller integrated into IDT 79RC3243x SoCs. Signed-off-by: Thomas Bogendoerfer --- .../bindings/net/idt,3243x-emac.yaml | 74 +++ 1 file changed, 74 insertions(+) create mode

Re: [PATCH 00/13] [RFC] Rust support

2021-04-16 Thread Willy Tarreau
On Fri, Apr 16, 2021 at 10:16:05AM +0200, Michal Kubecek wrote: > And I don't see how the two languages might coexist peacefully without > rust toolchain being necessary for building any kernel useful in > practice and anyone seriously involved in kernel development having to > be proficient in bot

Re: [PATCH v8 4/8] dt-bindings: pwm: Support new PWM_USAGE_POWER flag

2021-04-16 Thread Uwe Kleine-König
Hello Thierry, On Thu, Apr 15, 2021 at 06:27:02PM +0200, Thierry Reding wrote: > On Tue, Apr 13, 2021 at 07:56:31PM +0200, Uwe Kleine-König wrote: > > On Tue, Apr 13, 2021 at 01:51:15PM +0200, Thierry Reding wrote: > > > On Mon, Apr 12, 2021 at 06:27:23PM +0200, Uwe Kleine-König wrote: > > > > On

[PATCH v2 1/4] dt-bindings: memory: Add binding for MediaTek DRAM Controller

2021-04-16 Thread Po-Kai Chi
This patch adds the documentation of the device-tree binding for MediaTek DRAM Controller. Signed-off-by: Po-Kai Chi --- .../memory-controllers/mediatek,dramc.yaml | 162 1 file changed, 162 insertions(+) create mode 100644 Documentation/devicetree/bindings/memory

[PATCH v2 3/4] arm64: dts: add DRAMC node for MT6779

2021-04-16 Thread Po-Kai Chi
Add the DRAMC node for the DRAMC kernel driver. Properties are divided into three categories: - Platform DTS: MediaTek DRAMC platform common part. - Project DTS: Runtime filled in by bootloader according to the board hardware configuration. - Driver level: Hardware-specific regi

[PATCH v2 4/4] arm64: defconfig: Enable MediaTek DRAMC common driver

2021-04-16 Thread Po-Kai Chi
This commit enables MediaTek DRAMC common driver to be built as a module by default for the ARM64 builds. Signed-off-by: Po-Kai Chi --- arch/arm64/configs/defconfig |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index d612f63..4

[PATCH v2] memory: mediatek: add DRAM controller driver

2021-04-16 Thread Po-Kai Chi
These patch series introduces the MediaTek DRAM controller driver (DRAMC) on MT6779 SoC, and enables to be built as a module by default for the ARM64 builds. MediaTek DRAMC driver provides cross-platform features as below: - API provided to other kernel modules for querying DRAM type, rank c

[PATCH v2 2/4] memory: mediatek: add DRAM controller driver

2021-04-16 Thread Po-Kai Chi
MediaTek DRAM controller (DRAMC) driver provides cross-platform features as below: 1. provide APIs for low power feature queries 2. create sysfs to pass the DRAM information to user-space Signed-off-by: Po-Kai Chi --- drivers/memory/Kconfig |1 + drivers/memory/Makefile

Re: [PATCH v2 0/1] arm: topology: parse the topology from the dt

2021-04-16 Thread Valentin Schneider
On 16/04/21 15:47, Ruifeng Zhang wrote: > For more requirements, if all cores in one physical cluster, the > {aff2} of all cores are the same value. > i.e. the sc9863a, > core0: 8100 > core1: 81000100 > core2: 81000200 > core3: 81000300 > core4: 81000400

Re: [PATCH 4.14 16/68] net: ensure mac header is set in virtio_net_hdr_to_skb()

2021-04-16 Thread Eric Dumazet
On Fri, Apr 16, 2021 at 10:49 AM Balazs Nemeth wrote: > > On Thu, 2021-04-15 at 16:46 +0200, Greg Kroah-Hartman wrote: > > From: Eric Dumazet > > > > commit 61431a5907fc36d0738e9a547c7e1556349a03e9 upstream. > > > > Commit 924a9bc362a5 ("net: check if protocol extracted by > > virtio_net_hdr_set_

Re: [PATCH] mmc: meson-gx: remove useless warning about scatterlist size alignment in block mode

2021-04-16 Thread Neil Armstrong
On 15/04/2021 11:07, Ulf Hansson wrote: > On Wed, 14 Apr 2021 at 12:00, Neil Armstrong wrote: >> >> Since commit e085b51c74cc ("mmc: meson-gx: check for scatterlist size >> alignment in block mode"), >> support for SDIO SD_IO_RW_EXTENDED transferts are properly filtered but some >> driver >> lik

Re: [PATCH] powerpc/kdump: fix kdump kernel hangup issue with hot add CPUs

2021-04-16 Thread Hari Bathini
On 16/04/21 12:17 pm, Sourabh Jain wrote: With the kexec_file_load system call when system crashes on the hot add CPU the capture kernel hangs and failed to collect the vmcore. Kernel panic - not syncing: sysrq triggered crash CPU: 24 PID: 6065 Comm: echo Kdump: loaded Not tainted 5.12.0-

Re: [PATCH v1 1/1] powerpc/papr_scm: Properly handle UUID types and API

2021-04-16 Thread Aneesh Kumar K.V
On 4/16/21 2:39 PM, Andy Shevchenko wrote: On Fri, Apr 16, 2021 at 01:28:21PM +0530, Aneesh Kumar K.V wrote: On 4/15/21 7:16 PM, Andy Shevchenko wrote: Parse to and export from UUID own type, before dereferencing. This also fixes wrong comment (Little Endian UUID is something else) and should f

Re: [PATCH 5.10 00/25] 5.10.31-rc1 review

2021-04-16 Thread Naresh Kamboju
On Thu, 15 Apr 2021 at 20:33, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.10.31 release. > There are 25 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

[PATCH] dma-buf: Add DmaBufTotal counter in meminfo

2021-04-16 Thread Peter Enderborg
This adds a total used dma-buf memory. Details can be found in debugfs, however it is not for everyone and not always available. Signed-off-by: Peter Enderborg --- drivers/dma-buf/dma-buf.c | 12 fs/proc/meminfo.c | 2 ++ include/linux/dma-buf.h | 1 + 3 files changed, 1

[PATCH] drm/bridge: nwl-dsi: Get MIPI DSI controller and PHY ready in ->mode_set()

2021-04-16 Thread Liu Ying
Some MIPI DSI panel drivers like 'raydium,rm68200' send MIPI_DCS_SET_DISPLAY_ON commands in panel_funcs->prepare(), which requires the MIPI DSI controller and PHY to be ready beforehand. Without this patch, the nwl-dsi driver gets the MIPI DSI controller and PHY ready in bridge_funcs->pre_enable(),

Re: [PATCH 2/3] arm64: syscall.h: Add sign extension handling in syscall_get_return_value for compat

2021-04-16 Thread Oleg Nesterov
On 04/16, He Zhe wrote: > > --- a/arch/arm64/include/asm/syscall.h > +++ b/arch/arm64/include/asm/syscall.h > @@ -44,7 +44,12 @@ static inline long syscall_get_error(struct task_struct > *task, > static inline long syscall_get_return_value(struct task_struct *task, >

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