Re: [PATCH] powerpc/traps: Declare unrecoverable_exception() as __noreturn

2021-02-11 Thread Christophe Leroy
Le 11/02/2021 à 08:47, Gabriel Paubert a écrit : On Thu, Feb 11, 2021 at 06:34:43AM +, Christophe Leroy wrote: unrecoverable_exception() is never expected to return, most callers have an infiniteloop in case it returns. Ensure it really never returns by terminating it with a BUG(), and d

Re: [RESEND PATCH v3] MAINTAINERS: add Dan Murphy as TI LP8xxx drivers maintainer

2021-02-11 Thread Lee Jones
On Wed, 10 Feb 2021, Krzysztof Kozlowski wrote: > On Wed, Feb 10, 2021 at 11:33:49AM -0600, Dan Murphy wrote: > > Krzysztof > > > > On 2/10/21 11:29 AM, Krzysztof Kozlowski wrote: > > > Milo Kim's email in TI bounces with permanent error (550: Invalid > > > recipient). Last email from him on LKM

Re: [RESEND PATCH v3] MAINTAINERS: add Dan Murphy as TI LP8xxx drivers maintainer

2021-02-11 Thread Krzysztof Kozlowski
On Thu, Feb 11, 2021 at 09:03:27AM +, Lee Jones wrote: > On Wed, 10 Feb 2021, Krzysztof Kozlowski wrote: > > > On Wed, Feb 10, 2021 at 11:33:49AM -0600, Dan Murphy wrote: > > > Krzysztof > > > > > > On 2/10/21 11:29 AM, Krzysztof Kozlowski wrote: > > > > Milo Kim's email in TI bounces with pe

Re: [RESEND PATCH ] KVM: VMX: Enable/disable PML when dirty logging gets enabled/disabled

2021-02-11 Thread Paolo Bonzini
On 10/02/21 22:23, Makarand Sonare wrote: +void vmx_update_pml_in_vmcs(struct kvm_vcpu *vcpu) +{ + if (cpu_has_secondary_exec_ctrls()) { + if (is_guest_mode(vcpu)) { + to_vmx(vcpu)->nested.deferred_update_pml_vmcs = true; + return; +

Re: [RESEND PATCH ] KVM: VMX: Enable/disable PML when dirty logging gets enabled/disabled

2021-02-11 Thread Paolo Bonzini
On 11/02/21 01:55, Sean Christopherson wrote: diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index ee4ac2618ec59..c6e5b026bbfe8 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -307,6 +307,7 @@ bool kvm_make_all_cpus_request(struct kvm *kvm, unsigned int req) { ret

Re: [RFC/context] add serdev interfaces to n_gsm

2021-02-11 Thread Johan Hovold
On Wed, Feb 10, 2021 at 10:28:36PM +0100, Pavel Machek wrote: > Hi! > > > > > +config GNSS_MOTMDM > > > > + tristate "Motorola Modem TS 27.010 serdev GNSS receiver support" > > > > + depends on SERIAL_DEV_N_GSM > > > > > > You need to post this driver together with the serdev-ngsm dri

Re: add a new dma_alloc_noncontiguous API v2

2021-02-11 Thread Ricardo Ribalda
Hi Christoph What are your merge plans for the uvc change? http://git.infradead.org/users/hch/dma-mapping.git/commit/3dc47131f8aacc2093f68a9971d24c754e435520 Are you going to remove the patch on your Merge request and then send it for review to Laurent? or merge it through your tree with a S-o-B

[PATCH v5 0/6] misc: Add Add Synopsys DesignWare xData IP driver

2021-02-11 Thread Gustavo Pimentel
This patch series adds a new driver called xData-pcie for the Synopsys DesignWare PCIe prototype. The driver configures and enables the Synopsys DesignWare PCIe traffic generator IP inside of prototype Endpoint which will generate upstream and downstream PCIe traffic. This allows to quickly test t

[PATCH v5 1/6] misc: Add Synopsys DesignWare xData IP driver

2021-02-11 Thread Gustavo Pimentel
Add Synopsys DesignWare xData IP driver. This driver enables/disables the PCI traffic generator module pertain to the Synopsys DesignWare prototype. Signed-off-by: Gustavo Pimentel --- drivers/misc/dw-xdata-pcie.c | 394 +++ 1 file changed, 394 insertions(

[PATCH v5 5/6] MAINTAINERS: Add Synopsys xData IP driver maintainer

2021-02-11 Thread Gustavo Pimentel
Add Synopsys xData IP driver maintainer. This driver aims to support Synopsys xData IP and is normally distributed along with Synopsys PCIe EndPoint IP as a PCIe traffic generator (depends of the use and licensing agreement). Signed-off-by: Gustavo Pimentel --- MAINTAINERS | 7 +++ 1 file c

[PATCH v5 3/6] misc: Add Synopsys DesignWare xData IP driver to Kconfig

2021-02-11 Thread Gustavo Pimentel
Add Synopsys DesignWare xData IP driver to Kconfig. This driver enables/disables the PCIe traffic generator module pertain to the Synopsys DesignWare prototype. Signed-off-by: Gustavo Pimentel --- drivers/misc/Kconfig | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/misc/

[PATCH v5 4/6] Documentation: misc-devices: Add Documentation for dw-xdata-pcie driver

2021-02-11 Thread Gustavo Pimentel
Add Documentation for dw-xdata-pcie driver. Signed-off-by: Gustavo Pimentel --- Documentation/misc-devices/dw-xdata-pcie.rst | 40 1 file changed, 40 insertions(+) create mode 100644 Documentation/misc-devices/dw-xdata-pcie.rst diff --git a/Documentation/misc-devic

[PATCH v5 6/6] docs: ABI: Add sysfs documentation interface of dw-xdata-pcie driver

2021-02-11 Thread Gustavo Pimentel
This patch describes the sysfs interface implemented on the dw-xdata-pcie driver. Signed-off-by: Gustavo Pimentel --- Documentation/ABI/testing/sysfs-driver-xdata | 46 1 file changed, 46 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-driver-xdata

[PATCH v5 13/15] dmaengine: dw-edma: Change DMA abreviation from lower into upper case

2021-02-11 Thread Gustavo Pimentel
To keep code consistent, some comments with dma keyword written in lower case are now in upper case. Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw-edma-core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/dma/dw-edma/dw-edma-core.c b/drivers/dma/

[PATCH v5 12/15] dmaengine: dw-edma: Fix crash on loading/unloading driver

2021-02-11 Thread Gustavo Pimentel
When the driver is compiled as a module and loaded if we try to unload it, the Kernel shows a crash log. This Kernel crash is due to the dma_async_device_unregister() call done after deleting the channels, this patch fixes this issue. Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw-ed

[PATCH v5 03/15] dmaengine: dw-edma: Add support for the HDMA feature

2021-02-11 Thread Gustavo Pimentel
Add support for the HDMA feature. This new feature enables the current eDMA IP to use a deeper prefetch of the linked list, which reduces the algorithm execution latency observed when loading the elements of the list, causing more stable and higher data transfer. Signed-off-by: Gustavo Pimentel

[PATCH v5 07/15] dmaengine: dw-edma: Improve number of channels check

2021-02-11 Thread Gustavo Pimentel
It was added some extra checks to ensure that the driver doesn't try to use more DMA channels than actually are available in hardware. Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw-edma-core.c | 21 + drivers/dma/dw-edma/dw-edma-core.h | 2 ++ 2 files changed, 1

[PATCH v5 2/6] misc: Add Synopsys DesignWare xData IP driver to Makefile

2021-02-11 Thread Gustavo Pimentel
Add Synopsys DesignWare xData IP driver to Makefile. This driver enables/disables the PCIe traffic generator module pertain to the Synopsys DesignWare prototype. Signed-off-by: Gustavo Pimentel --- drivers/misc/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/misc/Makefile b

[PATCH v5 15/15] dmaengine: dw-edma: Add pcim_iomap_table return check

2021-02-11 Thread Gustavo Pimentel
Detected by CoverityScan CID 16555 ("Dereference null return") Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw-edma-pcie.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/dma/dw-edma/dw-edma-pcie.c b/drivers/dma/dw-edma/dw-edma-pcie.c index 686b4ff..74450

[PATCH v5 14/15] dmaengine: dw-edma: Revert fix scatter-gather address calculation

2021-02-11 Thread Gustavo Pimentel
Reverting the applied patch because it caused a regression on ARC700 platform (32 bits). Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw-edma-core.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/dma/dw-edma/dw-edma-core.c b/drivers/dma/dw-edma/dw

[PATCH v5 11/15] dmaengine: dw-edma: Move struct dentry variable from static definition into dw_edma struct

2021-02-11 Thread Gustavo Pimentel
Move struct dentry variable from static definition (dw-edma-v0-debugfs.c) into dw_edma struct (dw-edma-core.h) Also the variable was renamed from base_dir to debugfs. Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw-edma-core.c | 2 +- drivers/dma/dw-edma/dw-edma-core.h |

[PATCH v5 06/15] dmaengine: dw-edma: Add device_prep_interleave_dma() support

2021-02-11 Thread Gustavo Pimentel
Add device_prep_interleave_dma() support to Synopsys DMA driver. This feature implements a similar data transfer mechanism to the scatter-gather implementation. Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw-edma-core.c | 85 ++ drivers/dma/dw-edm

[PATCH v5 10/15] dmaengine: dw-edma: Change linked list and data blocks offset and sizes

2021-02-11 Thread Gustavo Pimentel
Changes the linked list and data blocks offset and sizes to follow the recommendation given by the hardware team for the IPK solution. Although the previous data blocks offset and sizes are still valid and functional, using them that might present some issues related to the IPK solution, since thi

[PATCH v5 04/15] PCI: Add pci_find_vsec_capability() to find a specific VSEC

2021-02-11 Thread Gustavo Pimentel
Add pci_find_vsec_capability() that crawls through the device config space searching in all Vendor-Specific Extended Capabilities for a particular capability ID. Vendor-Specific Extended Capability (VSEC) is a PCIe capability (acts like a wrapper) specified by PCI-SIG that allows the vendor to cre

[PATCH v5 05/15] dmaengine: dw-edma: Add PCIe VSEC data retrieval support

2021-02-11 Thread Gustavo Pimentel
The latest eDMA IP development implements a Vendor-Specific Extended Capability that contains the eDMA BAR, offset, map format, and the number of read/write channels available. Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw-edma-core.c | 20 --- drivers/dma/dw-edma/dw-edma-pcie.

[PATCH v5 09/15] dmaengine: dw-edma: Improve the linked list and data blocks definition

2021-02-11 Thread Gustavo Pimentel
In the previous implementation the driver assumes that only existed 2 memory spaces that would be equal distributed amount the write/read channels. This might not be the case on some other implementations, therefore this patches changes this requirement so that each write/read channel has their ow

[PATCH v5 02/15] dmaengine: dw-edma: Fix comments offset characters' alignment

2021-02-11 Thread Gustavo Pimentel
Fix comments offset characters' alignment to follow the same structure of similar comments. Signed-off-by: Gustavo Pimentel --- drivers/dma/dw-edma/dw-edma-v0-regs.h | 214 +- 1 file changed, 107 insertions(+), 107 deletions(-) diff --git a/drivers/dma/dw-edma/dw

[PATCH v5 00/15] dmaengine: dw-edma: HDMA support

2021-02-11 Thread Gustavo Pimentel
This patch series adds the HDMA support, as long the IP design has set the compatible register map parameter, which allows compatibility at some degree for the existing Synopsys DesignWare eDMA driver that is already available on the Kernel. The HDMA "Hyper-DMA" IP is an enhancement of the eDMA "e

[PATCH v5 08/15] dmaengine: dw-edma: Reorder variables to keep consistency

2021-02-11 Thread Gustavo Pimentel
In the driver code structure, I tried to keep the code style consistency by writing the write channels instructions first, and then follow by the read channels instructions, mimicking the hardware implementation. However, this code style failed in some cases. This patch fixes that and no functiona

[PATCH v5 01/15] dmaengine: dw-edma: Add writeq() and readq() for 64 bits architectures

2021-02-11 Thread Gustavo Pimentel
Add writeq() and readq() for 64 bits architures support. Supporting these two functions will allow the write or the read of eDMA 64 bits registers at once instead of having two consecutive operations. Also, this improvement will allow the PCI optimization transaction messages, which will generate

Re: [PATCH] perf: Use (long) for iterator for bfd symbols

2021-02-11 Thread Namhyung Kim
Hello, On Tue, Feb 9, 2021 at 11:51 PM Dmitry Safonov wrote: > > GCC (GCC) 8.4.0 20200304 fails to build perf with: > : util/symbol.c: In function 'dso__load_bfd_symbols': > : util/symbol.c:1626:16: error: comparison of integer expressions of > different signednes > : for (i = 0; i < symbols_c

Re: [PATCH v3 1/2] s390/kvm: extend kvm_s390_shadow_fault to return entry pointer

2021-02-11 Thread David Hildenbrand
On 09.02.21 16:43, Claudio Imbrenda wrote: Extend kvm_s390_shadow_fault to return the pointer to the valid leaf DAT table entry, or to the invalid entry. Also return some flags in the lower bits of the address: DAT_PROT: indicates that DAT protection applies because of the protection

Re: [PATCH] perf: Replace lkml.org links with lore

2021-02-11 Thread Namhyung Kim
Hello, On Thu, Feb 11, 2021 at 8:42 AM Kees Cook wrote: > > As started by commit 05a5f51ca566 ("Documentation: Replace lkml.org > links with lore"), replace lkml.org links with lore to better use a > single source that's more likely to stay available long-term. > > Signed-off-by: Kees Cook Acke

Re: [PATCH v5 2/6] misc: Add Synopsys DesignWare xData IP driver to Makefile

2021-02-11 Thread Greg Kroah-Hartman
On Thu, Feb 11, 2021 at 10:08:39AM +0100, Gustavo Pimentel wrote: > Add Synopsys DesignWare xData IP driver to Makefile. > > This driver enables/disables the PCIe traffic generator module > pertain to the Synopsys DesignWare prototype. > > Signed-off-by: Gustavo Pimentel > --- > drivers/misc/Ma

[PATCH -next] staging: ks7010: Macros with complex values

2021-02-11 Thread Fatih Yildirim
Fix for checkpatch.pl warning: Macros with complex values should be enclosed in parentheses. Signed-off-by: Fatih Yildirim --- drivers/staging/ks7010/ks_hostif.h | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/staging/ks7010/ks_hostif.h b/d

Re: phy_attach_direct()'s use of device_bind_driver()

2021-02-11 Thread Heiner Kallweit
On 11.02.2021 09:57, Saravana Kannan wrote: > On Wed, Feb 10, 2021 at 11:31 PM Heiner Kallweit wrote: >> >> On 11.02.2021 00:29, Saravana Kannan wrote: >>> On Wed, Feb 10, 2021 at 2:52 PM Andrew Lunn wrote: On Wed, Feb 10, 2021 at 02:13:48PM -0800, Saravana Kannan wrote: > Hi, >

Re: [PATCH v5 6/6] docs: ABI: Add sysfs documentation interface of dw-xdata-pcie driver

2021-02-11 Thread Leon Romanovsky
On Thu, Feb 11, 2021 at 10:08:43AM +0100, Gustavo Pimentel wrote: > This patch describes the sysfs interface implemented on the dw-xdata-pcie > driver. > > Signed-off-by: Gustavo Pimentel > --- > Documentation/ABI/testing/sysfs-driver-xdata | 46 > > 1 file changed,

Re: [PATCH v5 1/6] misc: Add Synopsys DesignWare xData IP driver

2021-02-11 Thread Greg Kroah-Hartman
On Thu, Feb 11, 2021 at 10:08:38AM +0100, Gustavo Pimentel wrote: > +static ssize_t write_show(struct device *dev, struct device_attribute *attr, > + char *buf) > +{ > + struct pci_dev *pdev = to_pci_dev(dev); > + struct dw_xdata *dw = pci_get_drvdata(pdev); > + u6

Re: [RESEND PATCH v18 0/3] userspace MHI client interface driver

2021-02-11 Thread Aleksander Morgado
> What bothers me is maintaining shim drivers which just shuttle opaque > messages between user space and firmware. One of which definitely is, > and the other may well be, proprietary. This is an open source project, > users are supposed to be able to meaningfully change the behavior of > the syst

[gustavoars-linux:testing/media/siano] BUILD SUCCESS b01ab25966a760bea66d247b7286156a754e8bbe

2021-02-11 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git testing/media/siano branch HEAD: b01ab25966a760bea66d247b7286156a754e8bbe media: siano: Replace one-element array with flexible-array in struct sms_msg_data elapsed time: 2215m configs tested: 93 configs skipped

Re: [PATCH 1/2] Updated locking documentation for transaction_t

2021-02-11 Thread Jan Kara
On Wed 10-02-21 10:57:39, Alexander Lochmann wrote: > Some members of transaction_t are allowed to be read without > any lock being held if consistency doesn't matter. > Based on LockDoc's findings, we extended the locking > documentation of those members. > Each one of them is marked with a short

Re: [PATCH v2 net-next 04/11] net: bridge: offload initial and final port flags through switchdev

2021-02-11 Thread Vladimir Oltean
On Thu, Feb 11, 2021 at 09:44:43AM +0200, Ido Schimmel wrote: > On Thu, Feb 11, 2021 at 01:23:52AM +0200, Vladimir Oltean wrote: > > On Wed, Feb 10, 2021 at 12:59:49PM +0200, Ido Schimmel wrote: > > > > > The reverse, during unlinking, would be to refuse unlinking if the > > > > > upper > > > > >

Re: [PATCH v5 6/6] docs: ABI: Add sysfs documentation interface of dw-xdata-pcie driver

2021-02-11 Thread Greg Kroah-Hartman
On Thu, Feb 11, 2021 at 11:29:14AM +0200, Leon Romanovsky wrote: > On Thu, Feb 11, 2021 at 10:08:43AM +0100, Gustavo Pimentel wrote: > > This patch describes the sysfs interface implemented on the dw-xdata-pcie > > driver. > > > > Signed-off-by: Gustavo Pimentel > > --- > > Documentation/ABI/test

Re: [PATCH v2] dt-bindings: spi: zynq: Convert Zynq QSPI binding to yaml

2021-02-11 Thread Michal Simek
st 10. 2. 2021 v 11:10 odesílatel Michal Simek napsal: > > Convert spi-zynq-qspi.txt to yaml. > > Signed-off-by: Michal Simek > --- > > Changes in v2: > - s/additionalProperties: true/unevaluatedProperties: false/ > > .../devicetree/bindings/spi/spi-zynq-qspi.txt | 25 > .../bindings/sp

Re: [PATCH v2 1/2] dt-bindings: usb: misc: Add binding for Microchip usb5744 hub

2021-02-11 Thread Michal Simek
Hi Rob, On 2/10/21 11:22 PM, Rob Herring wrote: > On Tue, Feb 09, 2021 at 11:48:09AM +0100, Michal Simek wrote: >> From: Piyush Mehta >> >> Added dt binding for usb5744 driver. >> >> Signed-off-by: Piyush Mehta >> Signed-off-by: Michal Simek >> --- >> >> Changes in v2: None >> >> .../bindings/

Re: [PATCH 2/2] Updated locking documentation for journal_t

2021-02-11 Thread Jan Kara
On Wed 10-02-21 10:57:38, Alexander Lochmann wrote: > Some members of transaction_t are allowed to be read without > any lock being held if consistency doesn't matter. > Based on LockDoc's findings, we extended the locking > documentation of those members. > Each one of them is marked with a short

Re: [PATCH v17 07/10] mm: introduce memfd_secret system call to create "secret" memory areas

2021-02-11 Thread Michal Hocko
On Thu 11-02-21 10:01:32, David Hildenbrand wrote: [...] > AFAIKS, we would need MFD_SECRET and disallow > MFD_ALLOW_SEALING and MFD_HUGETLB. Yes for an initial version. But I do expect a request to support both features is just a matter of time. > In addition, we could add MFD_SECRET_NEVER_MAP,

Re: [PATCH] ARM: zynq: Update Copyright date in DTS

2021-02-11 Thread Michal Simek
po 1. 2. 2021 v 15:28 odesílatel Michal Simek napsal: > > Update years in header to be up2date. > > Signed-off-by: Michal Simek > --- > > arch/arm/boot/dts/zynq-7000.dtsi | 2 +- > arch/arm/boot/dts/zynq-cc108.dts | 2 +- > arch/arm/boot/dts/zynq-zc702.dts | 2 +- > arch/arm/bo

RE: [PATCH v5 2/6] misc: Add Synopsys DesignWare xData IP driver to Makefile

2021-02-11 Thread Gustavo Pimentel
On Thu, Feb 11, 2021 at 9:28:9, Greg Kroah-Hartman wrote: > On Thu, Feb 11, 2021 at 10:08:39AM +0100, Gustavo Pimentel wrote: > > Add Synopsys DesignWare xData IP driver to Makefile. > > > > This driver enables/disables the PCIe traffic generator module > > pertain to the Synopsys DesignWare pr

Re: [PATCH][next] soc: xilinx: vcu: remove deadcode on null divider check

2021-02-11 Thread Colin Ian King
On 11/02/2021 07:31, Michael Tretter wrote: > On Wed, 10 Feb 2021 18:49:38 +, Colin King wrote: >> From: Colin Ian King >> >> The pointer 'divider' has previously been null checked followed by >> a return, hence the subsequent null check is redundant deadcode >> that can be removed. Clean up

sdhci.c:undefined reference to `mmc_can_gpio_cd'

2021-02-11 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 291009f656e8eaebbdfd3a8d99f6b190a9ce9deb commit: e65bb38824711559844ba932132f417bc5a355e2 mmc: sdhci: do not enable card detect interrupt for gpio cd type date: 11 months ago config: powerpc-randconfig-r03

[PATCH v8 0/6] Support ROHM BD9576MUF and BD9573MUF PMICs

2021-02-11 Thread Matti Vaittinen
Initial support for ROHM BD9576MUF and BD9573MUF PMICs. These PMICs are primarily intended to be used to power the R-Car family processors. BD9576MUF includes some additional safety features the BD9573MUF does not have. This initial version of drivers provides temperature, over voltage and under v

[PATCH v8 2/6] mfd: Support ROHM BD9576MUF and BD9573MUF

2021-02-11 Thread Matti Vaittinen
Add core support for ROHM BD9576MUF and BD9573MUF PMICs which are mainly used to power the R-Car series processors. Signed-off-by: Matti Vaittinen --- Changes: - Comments fixed based on suggestions from Lee - Name of regulator cell changed as suggested by Lee - Renamed MFD cell variables for b

[PATCH v8 1/6] dt_bindings: mfd: Add ROHM BD9576MUF and BD9573MUF PMICs

2021-02-11 Thread Matti Vaittinen
Add bindings for ROHM BD9576MUF and BD9573MUF PMICs. These PMICs are primarily intended to be used to power the R-Car series processors. They provide 6 power outputs, safety features and a watchdog with two functional modes. Signed-off-by: Matti Vaittinen Reviewed-by: Rob Herring --- Changes sin

[PATCH v8 3/6] mfd: bd9576: Add IRQ support

2021-02-11 Thread Matti Vaittinen
BD9573 and BD9576 support set of "protection" interrupts for "fatal" issues. Those lead to SOC reset as PMIC shuts the power outputs. Thus there is no relevant IRQ handling for them. Few "detection" interrupts were added to the BD9576 with the idea that SOC could take some recovery-action before e

[PATCH v8 4/6] wdt: Support wdt on ROHM BD9576MUF and BD9573MUF

2021-02-11 Thread Matti Vaittinen
Add Watchdog support for ROHM BD9576MUF and BD9573MUF PMICs which are mainly used to power the R-Car series processors. The watchdog is pinged using a GPIO and enabled using another GPIO. Additionally watchdog time-out can be configured to HW prior starting the watchdog. Watchdog timeout can be con

[PATCH v8 5/6] MAINTAINERS: Add ROHM BD9576MUF and BD9573MUF drivers

2021-02-11 Thread Matti Vaittinen
Add maintainer entries for ROHM BD9576MUF and ROHM BD9573MUF drivers. MFD, regulator and watchdog drivers were introduced for these PMICs. Signed-off-by: Matti Vaittinen Acked-by: Guenter Roeck --- No changes. (Ack added) MAINTAINERS | 4 1 file changed, 4 insertions(+) diff --git a/MAI

[PATCH v8 6/6] mfd: bd9576: Add safety limit/monitoring registers

2021-02-11 Thread Matti Vaittinen
ROHM BD9576 contains safety features like over/under voltage detection, over curren detection and over temperature detection. Add the configuration register information. Signed-off-by: Matti Vaittinen --- Changes since v7: New patch include/linux/mfd/rohm-bd957x.h | 19

Re: [PATCH v17 07/10] mm: introduce memfd_secret system call to create "secret" memory areas

2021-02-11 Thread David Hildenbrand
Some random thoughts regarding files. What is the page size of secretmem memory? Sometimes we use huge pages, sometimes we fallback to 4k pages. So I assume huge pages in general? Unless there is an explicit request for hugetlb I would say the page size is not really important like for any othe

RE: [PATCH v5 1/6] misc: Add Synopsys DesignWare xData IP driver

2021-02-11 Thread Gustavo Pimentel
On Thu, Feb 11, 2021 at 9:30:16, Greg Kroah-Hartman wrote: > On Thu, Feb 11, 2021 at 10:08:38AM +0100, Gustavo Pimentel wrote: > > +static ssize_t write_show(struct device *dev, struct device_attribute > > *attr, > > + char *buf) > > +{ > > + struct pci_dev *pdev = to_pci_

Re: [PATCH v11 7/7] at24: Support probing while in non-zero ACPI D state

2021-02-11 Thread Bartosz Golaszewski
On Thu, Feb 11, 2021 at 12:08 AM Sakari Ailus wrote: > > In certain use cases (where the chip is part of a camera module, and the > camera module is wired together with a camera privacy LED), powering on > the device during probe is undesirable. Add support for the at24 to > execute probe while be

[PATCH v2] Updated locking documentation for journal_t

2021-02-11 Thread Alexander Lochmann
Some members of transaction_t are allowed to be read without any lock being held if consistency doesn't matter. Based on LockDoc's findings, we extended the locking documentation of those members. Each one of them is marked with a short comment: "no lock for quick racy checks". Signed-off-by: Ale

Re: [PATCH v4 2/2] pinctrl: pinmux: Add pinmux-select debugfs file

2021-02-11 Thread Andy Shevchenko
On Thu, Feb 11, 2021 at 10:09 AM Geert Uytterhoeven wrote: > On Wed, Feb 10, 2021 at 11:33 PM Drew Fustini wrote: > > +#define PINMUX_MAX_NAME 64 > > + if (len > (PINMUX_MAX_NAME * 2)) { > > + dev_err(pctldev->dev, "write too big for buffer"); > > + return -EI

[PATCH 1/1] staging: greybus: Added do - while in multi statement macro

2021-02-11 Thread Hemansh Agnihotri
This patch add fixes an checkpatch error for "Macros with multiple statements should be enclosed in a do - while loop" Signed-off-by: Hemansh Agnihotri --- drivers/staging/greybus/loopback.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/greybus/loopback

Re: [PATCH 1/2] Updated locking documentation for transaction_t

2021-02-11 Thread Alexander Lochmann
On 11.02.21 10:30, Jan Kara wrote: */ unsigned long t_log_start; - /* Number of buffers on the t_buffers list [j_list_lock] */ + /* Number of buffers on the t_buffers list [j_list_lock, no lock for quick racy checks] */ int t_nr_

Re: [PATCH v2 2/8] cxl/mem: Find device capabilities

2021-02-11 Thread Jonathan Cameron
On Wed, 10 Feb 2021 10:16:05 -0800 Ben Widawsky wrote: > On 21-02-10 08:55:57, Ben Widawsky wrote: > > On 21-02-10 15:07:59, Jonathan Cameron wrote: > > > On Wed, 10 Feb 2021 13:32:52 + > > > Jonathan Cameron wrote: > > > > > > > On Tue, 9 Feb 2021 16:02:53 -0800 > > > > Ben Widawsky w

[PATCH][next][V2] soc: xilinx: vcu: fix error check on clk_hw_get_parent call

2021-02-11 Thread Colin King
From: Colin Ian King Currently the check for failur on the call to clk_hw_get_parent is checking for a null return in the divider pointer instead of checking the mux pointer. Fix this. Thanks to Michael Tretter for suggesting the correct fix. Addresses-Coverity: ("Logically Dead Code") Fixes: 9

[PATCH] pinctrl: imx: imx8mm: fix pad offset of SD1_DATA0 pin

2021-02-11 Thread Claudius Heine
There is a 0 missing in the pad register offset. This patch adds it. Signed-off-by: Claudius Heine --- arch/arm64/boot/dts/freescale/imx8mm-pinfunc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-pinfunc.h b/arch/arm64/boot/dts/freescal

Re: [RFC PATCH 07/12] gpio: amd-fch: add oftree probing support

2021-02-11 Thread Bartosz Golaszewski
On Mon, Feb 8, 2021 at 11:22 PM Enrico Weigelt, metux IT consult wrote: > > Add support for probing via device tree. > --- > drivers/gpio/gpio-amd-fch.c | 58 > + > include/dt-bindings/gpio/amd-fch-gpio.h | 36 +++ > include/linux/p

Re: [Linuxarm] Re: [PATCH for next v1 0/2] gpio: few clean up patches to replace spin_lock_irqsave with spin_lock

2021-02-11 Thread Andy Shevchenko
On Wed, Feb 10, 2021 at 10:42 PM Song Bao Hua (Barry Song) wrote: > > -Original Message- > > From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] > > Sent: Thursday, February 11, 2021 3:57 AM > > On Wed, Feb 10, 2021 at 11:50:45AM +, Song Bao Hua (Barry Song) wrote: > > > > -Or

Re: [PATCH v5 1/6] misc: Add Synopsys DesignWare xData IP driver

2021-02-11 Thread Greg Kroah-Hartman
On Thu, Feb 11, 2021 at 09:50:33AM +, Gustavo Pimentel wrote: > On Thu, Feb 11, 2021 at 9:30:16, Greg Kroah-Hartman > wrote: > > > On Thu, Feb 11, 2021 at 10:08:38AM +0100, Gustavo Pimentel wrote: > > > +static ssize_t write_show(struct device *dev, struct device_attribute > > > *attr, > >

Re: [PATCH 1/1] staging: greybus: Added do - while in multi statement macro

2021-02-11 Thread Greg KH
On Thu, Feb 11, 2021 at 03:24:44PM +0530, Hemansh Agnihotri wrote: > This patch add fixes an checkpatch error for "Macros with multiple statements > should be enclosed in a do - while loop" > > Signed-off-by: Hemansh Agnihotri Any reason you didn't test-build your patch before sending it out? T

Re: [PATCH] arm64: Replace lkml.org links with lore

2021-02-11 Thread Will Deacon
On Wed, Feb 10, 2021 at 03:44:38PM -0800, Kees Cook wrote: > As started by commit 05a5f51ca566 ("Documentation: Replace lkml.org > links with lore"), replace lkml.org links with lore to better use a > single source that's more likely to stay available long-term. > > Signed-off-by: Kees Cook > ---

Re: [PATCH v2 2/8] cxl/mem: Find device capabilities

2021-02-11 Thread Jonathan Cameron
On Wed, 10 Feb 2021 11:54:29 -0800 Dan Williams wrote: > > > ... > > > > > > > +static void cxl_mem_mbox_timeout(struct cxl_mem *cxlm, > > > > +struct mbox_cmd *mbox_cmd) > > > > +{ > > > > + struct device *dev = &cxlm->pdev->dev; > > > > + > > > > + dev_dbg(dev,

Re: [PATCH -next] staging: ks7010: Macros with complex values

2021-02-11 Thread Greg KH
On Thu, Feb 11, 2021 at 12:22:39PM +0300, Fatih Yildirim wrote: > Fix for checkpatch.pl warning: > Macros with complex values should be enclosed in parentheses. > > Signed-off-by: Fatih Yildirim > --- > drivers/staging/ks7010/ks_hostif.h | 24 > 1 file changed, 12 insert

Re: [PATCH v17 07/10] mm: introduce memfd_secret system call to create "secret" memory areas

2021-02-11 Thread David Hildenbrand
On 11.02.21 10:38, Michal Hocko wrote: On Thu 11-02-21 10:01:32, David Hildenbrand wrote: [...] AFAIKS, we would need MFD_SECRET and disallow MFD_ALLOW_SEALING and MFD_HUGETLB. Yes for an initial version. But I do expect a request to support both features is just a matter of time. In additio

Re: [PATCH] platform/x86: intel_scu_ipc: Increase virtual timeout from 3 to 5 seconds

2021-02-11 Thread Andy Shevchenko
On Wed, Feb 10, 2021 at 9:20 PM Casey Bowman wrote: > > Increasing the virtual timeout time to account for scenarios > that may require more time, like DisplayPort Multi-Stream Transport > (DP MST), where the disconnect time can be extended longer than > usual. > > The recommended timeout range is

Re: [PATCH] powerpc/bug: Remove specific powerpc BUG_ON()

2021-02-11 Thread Nicholas Piggin
Excerpts from Christophe Leroy's message of February 11, 2021 5:41 pm: > powerpc BUG_ON() is based on using twnei or tdnei instruction, > which obliges gcc to format the condition into a 0 or 1 value > in a register. > > By using a generic implementation, gcc will generate a branch > to the uncond

Re: [PATCH -next] mfd: arizona: Make some symbols static

2021-02-11 Thread Charles Keepax
On Wed, Feb 10, 2021 at 07:56:26AM +, Wei Yongjun wrote: > The sparse tool complains as follows: > > drivers/mfd/arizona-spi.c:28:31: warning: > symbol 'reset_gpios' was not declared. Should it be static? > drivers/mfd/arizona-spi.c:29:31: warning: > symbol 'ldoena_gpios' was not declared. S

Re: [PATCH] staging: rtl8723bs: fix function comments to follow kernel-doc

2021-02-11 Thread Greg Kroah-Hartman
On Thu, Feb 11, 2021 at 12:48:16AM +0530, karthek wrote: > check this out Why ask us again when you already sent a patch? Do you see any other developers doing that on the mailing lists? thanks, greg k-h

Re: [PATCH v2 4/8] cxl/mem: Add basic IOCTL interface

2021-02-11 Thread Jonathan Cameron
On Wed, 10 Feb 2021 20:40:52 -0800 Dan Williams wrote: > On Wed, Feb 10, 2021 at 10:47 AM Jonathan Cameron > wrote: > [..] > > > +#define CXL_CMDS > > > \ > > > + ___C(INVALID, "Invalid Command"), \ > >

Re: [greybus-dev] [PATCH 1/1] staging: greybus: Added do - while in multi statement macro

2021-02-11 Thread Viresh Kumar
On 11-02-21, 11:00, Greg KH wrote: > On Thu, Feb 11, 2021 at 03:24:44PM +0530, Hemansh Agnihotri wrote: > > This patch add fixes an checkpatch error for "Macros with multiple > > statements > > should be enclosed in a do - while loop" > > > > Signed-off-by: Hemansh Agnihotri > > Any reason you

Re: [PATCH] perf: Replace lkml.org links with lore

2021-02-11 Thread Peter Zijlstra
On Wed, Feb 10, 2021 at 03:42:19PM -0800, Kees Cook wrote: > As started by commit 05a5f51ca566 ("Documentation: Replace lkml.org > links with lore"), replace lkml.org links with lore to better use a > single source that's more likely to stay available long-term. > > Signed-off-by: Kees Cook Acke

Re: [PATCH] pinctrl: imx: imx8mm: fix pad offset of SD1_DATA0 pin

2021-02-11 Thread Claudius Heine
Hi, can you please add: Fixes: c1c9d41319c3 ("dt-bindings: imx: Add pinctrl binding doc for imx8mm") to the commit message. regards, Claudius On 2021-02-11 10:54, Claudius Heine wrote: There is a 0 missing in the pad register offset. This patch adds it. Signed-off-by: Claudius Heine ---

Re: [PATCH v3 2/4] mm/gup: decrement head page once for group of subpages

2021-02-11 Thread Joao Martins
On 2/10/21 9:02 PM, Jason Gunthorpe wrote: > On Fri, Feb 05, 2021 at 08:41:25PM +, Joao Martins wrote: >> Rather than decrementing the head page refcount one by one, we >> walk the page array and checking which belong to the same >> compound_head. Later on we decrement the calculated amount

[PATCH v2 0/8] xen/events: bug fixes and some diagnostic aids

2021-02-11 Thread Juergen Gross
The first four patches are fixes for XSA-332. The avoid WARN splats and a performance issue with interdomain events. Patches 5 and 6 are some additions to event handling in order to add some per pv-device statistics to sysfs and the ability to have a per backend device spurious event delay control

Re: [PATCH v4 net-next 09/11] skbuff: allow to optionally use NAPI cache from __alloc_skb()

2021-02-11 Thread Paolo Abeni
On Wed, 2021-02-10 at 16:30 +, Alexander Lobakin wrote: > Reuse the old and forgotten SKB_ALLOC_NAPI to add an option to get > an skbuff_head from the NAPI cache instead of inplace allocation > inside __alloc_skb(). > This implies that the function is called from softirq or BH-off > context, no

Re: [PATCH] pinctrl: imx: imx8mm: fix pad offset of SD1_DATA0 pin

2021-02-11 Thread Frieder Schrempf
On 11.02.21 10:54, Claudius Heine wrote: There is a 0 missing in the pad register offset. This patch adds it. Signed-off-by: Claudius Heine I think this should rather be prefixed by "arm64: dts: imx8mm:" as this is no change in the pinctrl driver, but only in the devicetree. And I guess th

Re: [PATCH] pinctrl: imx: imx8mm: fix pad offset of SD1_DATA0 pin

2021-02-11 Thread Fabio Estevam
Hi Claudius, On Thu, Feb 11, 2021 at 7:15 AM Claudius Heine wrote: > > Hi, > > can you please add: > > Fixes: c1c9d41319c3 ("dt-bindings: imx: Add pinctrl binding doc for imx8mm") Yes, I was about to suggest the same. Thanks for the fix: Reviewed-by: Fabio Estevam

[PATCH v2 3/8] xen/events: avoid handling the same event on two cpus at the same time

2021-02-11 Thread Juergen Gross
When changing the cpu affinity of an event it can happen today that (with some unlucky timing) the same event will be handled on the old and the new cpu at the same time. Avoid that by adding an "event active" flag to the per-event data and call the handler only if this flag isn't set. Reported-b

[PATCH v2 4/8] xen/netback: fix spurious event detection for common event case

2021-02-11 Thread Juergen Gross
In case of a common event for rx and tx queue the event should be regarded to be spurious if no rx and no tx requests are pending. Unfortunately the condition for testing that is wrong causing to decide a event being spurious if no rx OR no tx requests are pending. Fix that plus using local varia

[PATCH v2 2/8] xen/events: don't unmask an event channel when an eoi is pending

2021-02-11 Thread Juergen Gross
An event channel should be kept masked when an eoi is pending for it. When being migrated to another cpu it might be unmasked, though. In order to avoid this keep three different flags for each event channel to be able to distinguish "normal" masking/unmasking from eoi related masking/unmasking an

[PATCH v2 1/8] xen/events: reset affinity of 2-level event when tearing it down

2021-02-11 Thread Juergen Gross
When creating a new event channel with 2-level events the affinity needs to be reset initially in order to avoid using an old affinity from earlier usage of the event channel port. So when tearing an event channel down reset all affinity bits. The same applies to the affinity when onlining a vcpu:

[PATCH v2 5/8] xen/events: link interdomain events to associated xenbus device

2021-02-11 Thread Juergen Gross
In order to support the possibility of per-device event channel settings (e.g. lateeoi spurious event thresholds) add a xenbus device pointer to struct irq_info() and modify the related event channel binding interfaces to take the pointer to the xenbus device as a parameter instead of the domain id

Re: [PATCH v2 3/8] cxl/mem: Register CXL memX devices

2021-02-11 Thread Jonathan Cameron
On Wed, 10 Feb 2021 18:17:25 + Jonathan Cameron wrote: > On Tue, 9 Feb 2021 16:02:54 -0800 > Ben Widawsky wrote: > > > From: Dan Williams > > > > Create the /sys/bus/cxl hierarchy to enumerate: > > > > * Memory Devices (per-endpoint control devices) > > > > * Memory Address Space Device

[PATCH v2 6/8] xen/events: add per-xenbus device event statistics and settings

2021-02-11 Thread Juergen Gross
Add syfs nodes for each xenbus device showing event statistics (number of events and spurious events, number of associated event channels) and for setting a spurious event threshold in case a frontend is sending too many events without being rogue on purpose. Signed-off-by: Juergen Gross --- V2:

[PATCH v2 8/8] xen/evtchn: use READ/WRITE_ONCE() for accessing ring indices

2021-02-11 Thread Juergen Gross
For avoiding read- and write-tearing by the compiler use READ_ONCE() and WRITE_ONCE() for accessing the ring indices in evtchn.c. Signed-off-by: Juergen Gross --- V2: - modify all accesses (Julien Grall) --- drivers/xen/evtchn.c | 25 - 1 file changed, 16 insertions(+), 9

[PATCH v2 7/8] xen/evtch: use smp barriers for user event ring

2021-02-11 Thread Juergen Gross
The ring buffer for user events is local to the given kernel instance, so smp barriers are fine for ensuring consistency. Reported-by: Andrew Cooper Signed-off-by: Juergen Gross Reviewed-by: Jan Beulich --- drivers/xen/evtchn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --

Re: phy_attach_direct()'s use of device_bind_driver()

2021-02-11 Thread Jon Hunter
On 10/02/2021 22:56, Andrew Lunn wrote: > On Wed, Feb 10, 2021 at 02:13:48PM -0800, Saravana Kannan wrote: >> Hi, >> >> This email was triggered by this other email[1]. > > And it appears the Tegra194 Jetson Xavier uses the Marvell 88E1512 > PHY. So ensure the Marvell driver is available, and it

Re: possible deadlock in fs_reclaim_acquire (2)

2021-02-11 Thread Jan Kara
On Thu 11-02-21 12:07:29, Hillf Danton wrote: > On Wed, 10 Feb 2021 17:25:19 -0800 > > syzbot found the following issue on: > > > > HEAD commit:825b5991 Merge tag '5.11-rc6-smb3' of git://git.samba.org/.. > > git tree: upstream > > console output: https://syzkaller.appspot.com/x/log.txt?

<    5   6   7   8   9   10   11   12   13   14   >