[PATCH v4] EDAC, ghes: use CPER module handles to locate DIMMs

2018-09-04 Thread Fan Wu
For platforms whose firmwares provide valid module handles (SMBIOS type 17) in error records, this patch uses the module handles to locate corresponding DIMMs and enables per-DIMM error counter update. Signed-off-by: Fan Wu Reviewed-by: Tyler Baicar Tested-by: Toshi Kani --- Changes from v3: *

Re: [PATCH 0/2] Drop node-local allocation during host controller initialisation

2018-09-04 Thread Bjorn Helgaas
On Tue, Aug 28, 2018 at 04:05:11PM +0100, Punit Agrawal wrote: > Hi Bjorn, > > As discussed before[0], here are a couple of patches to drop > node-local allocations during host contoller initialisation. This set > covers both arm64 and x86. > > I'm posting early to give the patches time on the li

RE: [PATCH v3] EDAC, ghes: use CPER module handles to locate DIMMs

2018-09-04 Thread wufan
> -Original Message- > From: Borislav Petkov > Sent: Tuesday, September 4, 2018 1:29 AM > To: Fan Wu > Cc: mche...@kernel.org; james.mo...@arm.com; baicar.ty...@gmail.com; > linux-e...@vger.kernel.org; linux-kernel@vger.kernel.org; linux-arm- > ker...@lists.infradead.org; john.ga...@hu

Re: [PATCH v6 3/5] clk: imx: add SCCG PLL type

2018-09-04 Thread Abel Vesa
On Tue, Aug 28, 2018 at 12:11:13PM -0700, Andrey Smirnov wrote: > On Tue, Aug 28, 2018 at 3:58 AM Abel Vesa wrote: > > > > On Fri, Aug 24, 2018 at 09:40:11AM +0200, Sascha Hauer wrote: > > > +Cc Andrey Smirnov who made me aware of this issue. > > > > > > On Wed, Aug 22, 2018 at 04:48:21PM +0300, A

Re: [PATCH v2 0/9] of: fix compatible-child-node lookups

2018-09-04 Thread Johan Hovold
Hi all, On Mon, Aug 27, 2018 at 10:21:44AM +0200, Johan Hovold wrote: > Several drivers currently use of_find_compatible_node() to lookup child > nodes while failing to notice that the of_find_ functions search the > entire tree depth-first (from a given start node) and therefore can > match unrel

Re: [PATCH v2 6/9] net: bcmgenet: fix OF child-node lookup

2018-09-04 Thread Johan Hovold
On Thu, Aug 30, 2018 at 05:47:33PM -0700, Florian Fainelli wrote: > On 08/27/2018 01:21 AM, Johan Hovold wrote: > > Use the new of_get_compatible_child() helper to lookup the mdio child > > node instead of using of_find_compatible_node(), which searches the > > entire tree from a given start node a

[PATCH v2] ACPI / bus: Only call dmi_check_system on X86

2018-09-04 Thread Jean Delvare
Calling dmi_check_system() early only works on X86. Other architectures initialize the DMI subsystem later so it's not ready yet when ACPI itself gets initialized. In the best case it results in a useless call to a function which will do nothing. But depending on the dmi implementation, it could a

Re: [PATCH v2 4/9] mmc: meson-mx-sdio: fix OF child-node lookup

2018-09-04 Thread Johan Hovold
On Mon, Aug 27, 2018 at 04:44:44PM +0200, Ulf Hansson wrote: > On 27 August 2018 at 10:21, Johan Hovold wrote: > > Use the new of_get_compatible_child() helper to lookup the slot child > > node instead of using of_find_compatible_node(), which searches the > > entire tree from a given start node a

Re: [PATCH 4/7] dt-bindings: spi: add binding file for NXP FlexSPI driver

2018-09-04 Thread Boris Brezillon
On Mon, 3 Sep 2018 09:54:08 + Prabhakar Kushwaha wrote: > Dear Yogesh, > > > -Original Message- > > From: linux-kernel-ow...@vger.kernel.org > ow...@vger.kernel.org> On Behalf Of Yogesh Gaur > > Sent: Friday, August 31, 2018 4:00 PM > > To: linux-...@lists.infradead.org; boris.bre

Re: linux-next: manual merge of the dmi tree with Linus' tree

2018-09-04 Thread Jean Delvare
Hi Stephen, On Tue, 4 Sep 2018 09:19:50 +1000, Stephen Rothwell wrote: > Today's linux-next merge of the dmi tree got a conflict in: > > drivers/acpi/bus.c > > between commit: > > ae976358cd7b ("Revert "ACPI / bus: Parse tables as term_list for Dell XPS > 9570 and Precision M5530"") > > f

[RFC PATCH 4/5] irqchip: RISC-V Local Interrupt Controller Driver

2018-09-04 Thread Anup Patel
The RISC-V local interrupt controller manages software interrupts, timer interrupts, external interrupts (which are routed via the platform level interrupt controller) and per-HART local interrupts. This patch add a driver for RISC-V local interrupt controller. It's a major re-write over perviousl

[RFC PATCH 2/5] RISC-V: No need to pass scause as arg to do_IRQ()

2018-09-04 Thread Anup Patel
The scause is already part of pt_regs so no need to pass scause as separate arg to do_IRQ(). Signed-off-by: Anup Patel --- arch/riscv/kernel/entry.S | 1 - arch/riscv/kernel/irq.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/riscv/kernel/entry.S b/arch/riscv/ke

[RFC PATCH 0/5] New RISC-V Local Interrupt Controller Driver

2018-09-04 Thread Anup Patel
This patchset provides a new RISC-V Local Interrupt Controller Driver for managing per-CPU local interrupts. The overall approach is inspired from the way per-CPU local interrupts are handled by Linux ARM64 and ARM GICv3 driver. Few advantages of having this new driver are as follows: 1. It regist

[RFC PATCH 1/5] RISC-V: Make IPI triggering flexible

2018-09-04 Thread Anup Patel
The mechanism to trigger IPI is generally part of interrupt-controller driver for various architectures. On RISC-V, we have an option to trigger IPI using SBI or SOC vendor can implement RISC-V CPU where IPI will be triggered using SOC interrupt-controller (e.g. custom PLIC). This patch makes IPI

[RFC PATCH 3/5] RISC-V: Select useful GENERIC_IRQ kconfig options

2018-09-04 Thread Anup Patel
This patch selects following GENERIC_IRQ kconfig options: GENERIC_IRQ_MULTI_HANDLER GENERIC_IRQ_PROBE GENERIC_IRQ_SHOW_LEVEL HANDLE_DOMAIN_IRQ Signed-off-by: Anup Patel --- arch/riscv/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index a3

[RFC PATCH 5/5] clocksource: riscv_timer: Make timer interrupt as a per-CPU interrupt

2018-09-04 Thread Anup Patel
Instead of directly calling RISC-V timer interrupt handler from RISC-V local interrupt conntroller driver, this patch implements RISC-V timer interrupt as a per-CPU interrupt using per-CPU APIs of Linux IRQ subsystem. Signed-off-by: Anup Patel --- arch/riscv/include/asm/irq.h | 2 - driver

Re: [PATCH v2 00/15] soc: octeontx2: Add RVU admin function driver

2018-09-04 Thread Andrew Lunn
On Tue, Sep 04, 2018 at 05:24:35PM +0530, sunil.kovv...@gmail.com wrote: > From: Sunil Goutham > > Resource virtualization unit (RVU) on Marvell's OcteonTX2 SOC supports > multiple PCIe SRIOV physical functions (PFs) and virtual functions (VFs). > PF0 is called administrative / admin function (AF

Re: [PATCH v5 03/16] x86/mtrr: get MTRR number and support TOP_MEM2

2018-09-04 Thread Pu Wen
On 2018/9/4 16:02, Borislav Petkov wrote: shows only old mails so I'm going to assume this got fixed, finally! And you probably have received a *fixed* BIOS even, allegedly. So what's up? I tested the function on Hygon Dhyana platforms with the latest BIOS, found that this problem is indeed fi

Re: [PATCH 0/7] spi: spi-mem: Add a driver for NXP FlexSPI controller

2018-09-04 Thread Boris Brezillon
Hi Yogesh, On Fri, 31 Aug 2018 15:59:57 +0530 Yogesh Gaur wrote: > - Add a driver for NXP FlexSPI host controller > > FlexSPI is a flexsible SPI host controller [1], Chapter 30 page 1475, > which supports two SPI channels and up to 4 external devices. > Each channel supports Single/Dual/Quad

Re: [PATCH] spi: Delete Atmel AT91 SPI driver

2018-09-04 Thread Linus Walleij
On Tue, Sep 4, 2018 at 2:15 PM Alexandre Belloni wrote: > On 04/09/2018 11:49:22+0200, Linus Walleij wrote: > > > This driver depends on the deleted AT91 architecture and cause > > me headaches from a GPIO point of view. It is unused so delete > > it. > > > > While AVR32 is gone, AT91 is alive and

[PATCH v5] regulator: fixed: Convert to use GPIO descriptor only

2018-09-04 Thread Linus Walleij
As we augmented the regulator core to accept a GPIO descriptor instead of a GPIO number, we can augment the fixed GPIO regulator to look up and pass that descriptor directly from device tree or board GPIO descriptor look up tables. Some boards just auto-enumerate their fixed regulator platform dev

Re: [PATCH] ARM: dts: imx6ull: update iomux header

2018-09-04 Thread Sébastien Szymanski
On 09/03/2018 04:26 AM, Shawn Guo wrote: > Add Sébastien for a cross check. > > Shawn > > On Thu, Aug 30, 2018 at 01:20:05PM +0800, Anson Huang wrote: >> Update i.MX6ULL iomux header according to latest reference >> manual Rev.1, 11/2017. >> >> Signed-off-by: Anson Huang Reviewed-by: Sébastien

Re: [PATCH v3 4/5] x86/mm: optimize static_protection() by using overlap()

2018-09-04 Thread Thomas Gleixner
On Tue, 21 Aug 2018, Bin Yang wrote: > > +static inline bool > +overlap(unsigned long start1, unsigned long end1, > + unsigned long start2, unsigned long end2) > +{ > + /* Is 'start2' within area 1? */ > + if (start1 <= start2 && end1 > start2) > + return true; > +

Re: [PATCH] spi: Delete Atmel AT91 SPI driver

2018-09-04 Thread Alexandre Belloni
On 04/09/2018 11:49:22+0200, Linus Walleij wrote: > This driver depends on the deleted AT91 architecture and cause > me headaches from a GPIO point of view. It is unused so delete > it. > While AVR32 is gone, AT91 is alive and well. Also, get_maintainers is correct (for once): Nicolas Ferre (s

Re: [PATCH] cpu/hotplug: Fix rollback during error-out in takedown_cpu()

2018-09-04 Thread Mukesh Ojha
On 9/4/2018 12:03 PM, Neeraj Upadhyay wrote: If takedown_cpu() fails during _cpu_down(), st->state is reset, by calling cpuhp_reset_state(). This results in an additional increment of st->state, which results in CPUHP_AP_SMPBOOT_THREADS state being skipped during rollback. Fix this by not call

[PATCH v6 2/2]: perf record: enable asynchronous trace writing

2018-09-04 Thread Alexey Budankov
record__aio_sync() allocates index of free map->data buffer for a cpu buffer or blocks till completion of any started operation and then proceeds. Trace file offset is calculated and updated linearly prior enqueuing aio write at record__pushfn(). record__mmap_read_sync() implements a barrier

[PATCH v6 1/2]: perf util: map data buffer for preserving collected data

2018-09-04 Thread Alexey Budankov
The map->data buffers are used to preserve map->base profiling data for writing to disk. AIO map->cblocks are used to queue corresponding map->data buffers for asynchronous writing. map->cblocks objects are located in the last page of every map->data buffer. Signed-off-by: Alexey Budankov --

Re: [PATCH] Partially revert "HID: generic: create one input report per application type"

2018-09-04 Thread Benjamin Tissoires
On Fri, Aug 31, 2018 at 11:36 AM Benjamin Tissoires wrote: > > This partially reverts commit f07b3c1da92db108662f99417a212fc1eddc44d1. > > It looks like some mice are not correctly treated by > HID_QUIRK_INPUT_PER_APP. Those mice have the following > report descriptor: > > 0x05, 0x01,

[PATCH v2 15/15] MAINTAINERS: Add entry for Marvell OcteonTX2 Admin Function driver

2018-09-04 Thread sunil . kovvuri
From: Sunil Goutham Added maintainers entry for Marvell OcteonTX2 SOC's RVU admin function driver. Signed-off-by: Sunil Goutham --- MAINTAINERS | 10 ++ 1 file changed, 10 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index e178f2b..38f874c 100644 --- a/MAINTAINERS +++ b/MAINTA

[PATCH v2 14/15] soc: octeontx2: Register for CGX lmac events

2018-09-04 Thread sunil . kovvuri
From: Linu Cherian Added support in RVU AF driver to register for CGX LMAC link status change events from firmware and managing them. Processing part will be added in followup patches. - Introduced eventqueue for posting events from cgx lmac. Queueing mechanism will ensure that events can be p

[PATCH v2 13/15] soc: octeontx2: Add support for CGX link management

2018-09-04 Thread sunil . kovvuri
From: Linu Cherian CGX LMAC initialization, link status polling etc is done by low level secure firmware. For link management this patch adds a interface or communication mechanism between firmware and this kernel CGX driver. - Firmware interface specification is defined in cgx_fw_if.h. - Suppor

[PATCH v2 12/15] soc: octeontx2: Set RVU PFs to CGX LMACs mapping

2018-09-04 Thread sunil . kovvuri
From: Linu Cherian Each of the enabled CGX LMAC is considered a physical interface and RVU PFs are mapped to these. VFs of these SRIOV PFs will be virtual interfaces and share CGX LMAC along with PF. This mapping info will be used later on for Rx/Tx pkt steering. Signed-off-by: Linu Cherian Si

[PATCH v2 11/15] soc: octeontx2: Add Marvell OcteonTX2 CGX driver

2018-09-04 Thread sunil . kovvuri
From: Sunil Goutham This patch adds basic template for Marvell OcteonTX2's CGX ethernet interface driver. Just the probe. RVU AF driver will use APIs exported by this driver for various things like PF to physical interface mapping, loopback mode, interface stats etc. Hence marged both drivers int

[PATCH v2 10/15] soc: octeontx2: Reconfig MSIX base with IOVA

2018-09-04 Thread sunil . kovvuri
From: Geetha sowjanya HW interprets RVU_AF_MSIXTR_BASE address as an IOVA, hence create a IOMMU mapping for the physcial address configured by firmware and reconfig RVU_AF_MSIXTR_BASE with IOVA. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- drivers/soc/marvell/octeontx2/rvu.

[PATCH v2 09/15] soc: octeontx2: Configure block LF's MSIX vector offset

2018-09-04 Thread sunil . kovvuri
From: Sunil Goutham Firmware configures a certain number of MSIX vectors to each of enabled RVU PF/VF. When a block LF is attached to a PF/VF, number of MSIX vectors needed by that LF are set aside (out of PF/VF's total MSIX vectors) and LF's msix_offset is configured in HW. Also added support f

[PATCH v2 08/15] soc: octeontx2: Add RVU block LF provisioning support

2018-09-04 Thread sunil . kovvuri
From: Sunil Goutham Added support for a RVU PF/VF to request AF via mailbox to attach or detach NPA/NIX/SSO/SSOW/TIM/CPT block LFs. Also supports partial detachment and modifying current LF attached count of a certian block type. Signed-off-by: Sunil Goutham --- drivers/soc/marvell/octeontx2/m

[PATCH v2 00/15] soc: octeontx2: Add RVU admin function driver

2018-09-04 Thread sunil . kovvuri
From: Sunil Goutham Resource virtualization unit (RVU) on Marvell's OcteonTX2 SOC supports multiple PCIe SRIOV physical functions (PFs) and virtual functions (VFs). PF0 is called administrative / admin function (AF) and has privilege access to registers to provision different RVU functional block

[PATCH v2 06/15] soc: octeontx2: Convert mbox msg id check to a macro

2018-09-04 Thread sunil . kovvuri
From: Aleksey Makarov With 10's of mailbox messages expected to be handled in future, checking for message id could become a lengthy switch case. Hence added a macro to auto generate the switch case for each msg id. Signed-off-by: Aleksey Makarov --- drivers/soc/marvell/octeontx2/rvu.c | 44 ++

[PATCH v2 02/15] soc: octeontx2: Reset all RVU blocks

2018-09-04 Thread sunil . kovvuri
From: Sunil Goutham Go through all BLKADDRs and check which ones are implemented on this silicon and do a HW reset of each implemented block. Also added all RVU AF and PF register offsets. Signed-off-by: Sunil Goutham --- drivers/soc/marvell/octeontx2/rvu.c| 78 d

[PATCH v2 04/15] soc: octeontx2: Add mailbox support infra

2018-09-04 Thread sunil . kovvuri
From: Aleksey Makarov This patch adds mailbox support infrastructure APIs. Each RVU device has a dedicated 64KB mailbox region shared with it's peer for communication. RVU AF has a separate mailbox region shared with each of RVU PFs and a RVU PF has a separate region shared with each of it's VF.

[PATCH v2 05/15] soc: octeontx2: Add mailbox IRQ and msg handlers

2018-09-04 Thread sunil . kovvuri
From: Sunil Goutham This patch adds support for mailbox interrupt and message handling. Mapped mailbox region and registered a workqueue for message handling. Enabled mailbox IRQ of RVU PFs and registered a interrupt handler. When IRQ is triggered work is added to the mbox workqueue for msgs to g

[PATCH v2 07/15] soc: octeontx2: Scan blocks for LFs provisioned to PF/VF

2018-09-04 Thread sunil . kovvuri
From: Sunil Goutham Scan all RVU blocks to find any 'LF to RVU PF/VF' mapping done by low level firmware. If found any, mark them as used in respective block's LF bitmap and also save mapped PF/VF's PF_FUNC info. This is done to avoid reattaching a block LF to a different RVU PF/VF. Signed-off-

[PATCH v2 01/15] soc: octeontx2: Add Marvell OcteonTX2 RVU AF driver

2018-09-04 Thread sunil . kovvuri
From: Sunil Goutham This patch adds basic template for Marvell OcteonTX2's resource virtualization unit (RVU) admin function (AF) driver. Just the driver registration and probe. Signed-off-by: Sunil Goutham --- drivers/soc/Kconfig| 1 + drivers/soc/Makefile

[PATCH v2 03/15] soc: octeontx2: Gather RVU blocks HW info

2018-09-04 Thread sunil . kovvuri
From: Sunil Goutham This patch gathers NPA/NIX/SSO/SSOW/TIM/CPT RVU blocks's HW info like number of LFs. Important register offsets saved for later use to avoid code duplication for each block. A bitmap is allocated for each of the blocks which later on will be used to allocate a LF for a RVU PF/

[PATCH v2 3/5] asm-generic/tlb: Track which levels of the page tables have been cleared

2018-09-04 Thread Will Deacon
It is common for architectures with hugepage support to require only a single TLB invalidation operation per hugepage during unmap(), rather than iterating through the mapping at a PAGE_SIZE increment. Currently, however, the level in the page table where the unmap() operation occurs is not stored

[PATCH v2 0/5] Extend and consolidate mmu_gather into new file

2018-09-04 Thread Will Deacon
Hi all, This series builds on the core changes I previously posted here: rfc: http://lists.infradead.org/pipermail/linux-arm-kernel/2018-August/597821.html v1: http://lists.infradead.org/pipermail/linux-arm-kernel/2018-August/598919.html The main changes are: * Move the mmu_gather bi

[PATCH v2 5/5] MAINTAINERS: Add entry for MMU GATHER AND TLB INVALIDATION

2018-09-04 Thread Will Deacon
We recently had to debug a TLB invalidation problem on the munmap() path, which was made more difficult than necessary because: (a) The MMU gather code had changed without people realising (b) Many people subtly misunderstood the operation of the MMU gather code and its interactions with

[PATCH v2 4/5] mm/memory: Move mmu_gather and TLB invalidation code into its own file

2018-09-04 Thread Will Deacon
From: Peter Zijlstra In preparation for maintaining the mmu_gather code as its own entity, move the implementation out of memory.c and into its own file. Cc: "Kirill A. Shutemov" Cc: Andrew Morton Cc: Michal Hocko Signed-off-by: Peter Zijlstra --- include/asm-generic/tlb.h | 1 + mm/Makef

Re: [PATCH 5/7] linux/bitmap.h: relax comment on compile-time constant nbits

2018-09-04 Thread Rasmus Villemoes
On 2018-09-04 13:30, Andy Shevchenko wrote: > On Tue, Sep 04, 2018 at 02:08:59PM +0300, Yury Norov wrote: >> On Sat, Aug 18, 2018 at 03:16:21PM +0200, Rasmus Villemoes wrote: >>> It's not clear what's so horrible about emitting a function call to >>> handle a run-time sized bitmap. Moreover, gcc al

[PATCH v2 1/5] asm-generic/tlb: Guard with #ifdef CONFIG_MMU

2018-09-04 Thread Will Deacon
The inner workings of the mmu_gather-based TLB invalidation mechanism are not relevant to nommu configurations, so guard them with an #ifdef. This allows us to implement future functions using static inlines without breaking the build. Acked-by: Nicholas Piggin Acked-by: Peter Zijlstra (Intel) S

[PATCH v2 2/5] asm-generic/tlb: Track freeing of page-table directories in struct mmu_gather

2018-09-04 Thread Will Deacon
From: Peter Zijlstra Some architectures require different TLB invalidation instructions depending on whether it is only the last-level of page table being changed, or whether there are also changes to the intermediate (directory) entries higher up the tree. Add a new bit to the flags bitfield in

Re: [PATCH 5/7] linux/bitmap.h: relax comment on compile-time constant nbits

2018-09-04 Thread Andy Shevchenko
On Tue, Sep 04, 2018 at 02:08:59PM +0300, Yury Norov wrote: > On Sat, Aug 18, 2018 at 03:16:21PM +0200, Rasmus Villemoes wrote: > > It's not clear what's so horrible about emitting a function call to > > handle a run-time sized bitmap. Moreover, gcc also emits a function call > > for a compile-time

[PATCH] of: __of_update_property_sysfs only call __of_sysfs_remove_bin_file if of_node_is_attached.

2018-09-04 Thread Andre Kalb
To prevent warning "kernfs: can not remove '(null)', no directory", if an overlay isn't applied to the active devicetree. Using of_remove_property and than of_add_property don't show the warning. --- drivers/of/kobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/of

[PATCH 0/2] media: intel-ipu3: allow the media graph to be used even if a subdev fails

2018-09-04 Thread Javier Martinez Canillas
Hello, This series allows the ipu3-cio2 driver to properly expose a subset of the media graph even if some drivers for the pending subdevices fail to probe. Currently the driver exposes a non-functional graph since the pad links are created and the subdev dev nodes are registered in the v4l2 asyn

[PATCH v12 2/6] dt-bindings: add binding for atmel-usart in SPI mode

2018-09-04 Thread Radu Pirea
From: Radu Pirea This patch moves the bindings for serial from serial/atmel-usart.txt to mfd/atmel-usart.txt and adds bindings for USART in SPI mode. Signed-off-by: Radu Pirea Reviewed-by: Rob Herring Acked-for-MFD-by: Lee Jones Acked-by: Nicolas Ferre --- .../bindings/{serial => mfd}/atmel

[PATCH v12 0/6] Driver for at91 usart in spi mode

2018-09-04 Thread Radu Pirea
Hi, Well, this is the 12th version of this patch series. In this version I fixed a warning from kbuild-robot and I have no idea how I forgot to add static in declaration of that functions. Also I fixed the example for the SPI driver in bindings. Currently I am not working for Microchip, but I wil

[PATCH v12 4/6] MAINTAINERS: add at91 usart spi driver

2018-09-04 Thread Radu Pirea
From: Radu Pirea Added entry for at91 usart mfd driver. Signed-off-by: Radu Pirea Acked-by: Nicolas Ferre --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8aeaa2cc3e14..1bb477aab33b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9363,6

[PATCH v12 1/6] MAINTAINERS: add at91 usart mfd driver

2018-09-04 Thread Radu Pirea
From: Radu Pirea Added entry for at91 usart mfd driver. Signed-off-by: Radu Pirea Acked-by: Nicolas Ferre Acked-for-MFD-by: Lee Jones --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 544cac829cf4..8aeaa2cc3e14 100644 --- a/MAINTAINE

[PATCH v12 6/6] tty/serial: atmel: change the driver to work under at91-usart mfd

2018-09-04 Thread Radu Pirea
From: Radu Pirea This patch modifies the place where resources and device tree properties are searched. Signed-off-by: Radu Pirea Reviewed-by: Andy Shevchenko Acked-by: Richard Genoud Acked-by: Nicolas Ferre Acked-by: Greg Kroah-Hartman --- drivers/tty/serial/Kconfig| 1 + drivers

[PATCH v12 3/6] mfd: at91-usart: added mfd driver for usart

2018-09-04 Thread Radu Pirea
From: Radu Pirea This mfd driver is just a wrapper over atmel_serial driver and spi-at91-usart driver. Selection of one of the drivers is based on a property from device tree. If the property is not specified, the default driver is atmel_serial. Signed-off-by: Radu Pirea Reviewed-by: Andy Shevc

[PATCH v12 5/6] spi: at91-usart: add driver for at91-usart as spi

2018-09-04 Thread Radu Pirea
From: Radu Pirea This is the driver for at91-usart in spi mode. The USART IP can be configured to work in many modes and one of them is SPI. The driver was tested on sama5d3-xplained and sama5d4-xplained boards with enc28j60 ethernet controller as slave. Signed-off-by: Radu Pirea Reviewed-by:

[PATCH 1/2] staging: rtl8188eu: remove empty if statement in rtw_led.c

2018-09-04 Thread Michael Straube
Remove empty if statement from 'if - else if' and replace the else if with if. Remove the now unused variable pmlmepriv. Also clears line over 80 characters and CamelCase checkpatch issues. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_led.c | 5 + 1 file changed, 1 i

[PATCH 2/2] staging: rtl8188eu: remove unnecessary parentheses in rtw_led.c

2018-09-04 Thread Michael Straube
Remove unnecessary parentheses from conditionals. Also clears 'Alignment should match open parenthesis' checkpatch issue. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_led.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl818

Re: [PATCH v13 08/13] x86/sgx: Add wrappers for ENCLS leaf functions

2018-09-04 Thread Jarkko Sakkinen
On Mon, Sep 03, 2018 at 06:01:26PM +0300, Andy Shevchenko wrote: > On Mon, Aug 27, 2018 at 9:58 PM Jarkko Sakkinen > wrote: > > > > Add wrappers for Intel(R) SGX ENCLS opcode leaf functions except > > ENCLS(EINIT). ENCLS invokes privileged functions for managing (creation, > > initialization and s

Re: POSIX violation by writeback error

2018-09-04 Thread Jeff Layton
On Tue, 2018-09-04 at 16:58 +0800, 焦晓冬 wrote: > On Tue, Sep 4, 2018 at 3:53 PM Rogier Wolff wrote: > > ... > > > > > > Jlayton's patch is simple but wonderful idea towards correct error > > > reporting. It seems one crucial thing is still here to be fixed. Does > > > anyone have some idea? > > >

Re: [PATCH 5/7] linux/bitmap.h: relax comment on compile-time constant nbits

2018-09-04 Thread Yury Norov
On Sat, Aug 18, 2018 at 03:16:21PM +0200, Rasmus Villemoes wrote: > It's not clear what's so horrible about emitting a function call to > handle a run-time sized bitmap. Moreover, gcc also emits a function call > for a compile-time-constant-but-huge nbits, so the comment isn't even > accurate. > >

[PATCH v8 1/2] leds: core: Introduce LED pattern trigger

2018-09-04 Thread Baolin Wang
This patch adds one new led trigger that LED device can configure the software or hardware pattern and trigger it. Consumers can write 'pattern' file to enable the software pattern which alters the brightness for the specified duration with one software timer. Moreover consumers can write 'hw_pat

[PATCH v8 2/2] leds: sc27xx: Add pattern_set/clear interfaces for LED controller

2018-09-04 Thread Baolin Wang
This patch implements the 'pattern_set'and 'pattern_clear' interfaces to support SC27XX LED breathing mode. Signed-off-by: Baolin Wang --- Changes from v7: - Add its own ABI documentation file. Changes from v6: - None. Changes from v5: - None. Changes from v4: - None. Changes from v3: -

Re: [PATCH v6 13/14] sched/topology: Make Energy Aware Scheduling depend on schedutil

2018-09-04 Thread Quentin Perret
On Monday 20 Aug 2018 at 10:44:19 (+0100), Quentin Perret wrote: > Energy Aware Scheduling (EAS) is designed with the assumption that > frequencies of CPUs follow their utilization value. When using a CPUFreq > governor other than schedutil, the chances of this assumption being true > are small, if

[PATCH 0/1] staging:rtl8192u: Fix naming clash of exported symbol

2018-09-04 Thread John Whitmore
Not sure of the procedure having made a mess of the build, (by reusing the name of an exported symbol). I hope that given the obscurity of rtl1892u this doesn't cause people issues. Obviously given the fact that I renamed an exported symbol I should have checked the name. Newbie mistake, I can only

[PATCH 1/1] staging:rtl8192u: Rename dot11d_init to fix name clash

2018-09-04 Thread John Whitmore
The function dot11d_init() was previously renamed to clear a style issue. Unfortunately the new name used, dot11d_init(), clashes with a sybmol which is exported with the same name. To correct this problem the function has been renamed to rtl8192u_dot11d_init(). Signed-off-by: John Whitmore ---

Re: [PATCH V3] lightnvm: pblk: fix mapping issue on failed writes

2018-09-04 Thread Matias Bjørling
On 09/04/2018 12:38 PM, Hans Holmberg wrote: From: Hans Holmberg On 1.2-devices, the mapping-out of remaning sectors in the failed-write's block can result in an infinite loop, stalling the write pipeline, fix this. Fixes: 6a3abf5beef6 ("lightnvm: pblk: rework write error recovery path") Sign

Re: POSIX violation by writeback error

2018-09-04 Thread Jeff Layton
On Tue, 2018-09-04 at 13:42 +0800, 焦晓冬 wrote: > Hi, > > After reading several writeback error handling articles from LWN, I > begin to be upset about writeback error handling. > > Jlayton's patch is simple but wonderful idea towards correct error > reporting. It seems one crucial thing is still h

[PATCHv3 3/6] atomics: switch to generated atomic-long

2018-09-04 Thread Mark Rutland
As a step towards ensuring the atomic* APIs are consistent, let's switch to wrappers generated by gen-atomic-long.h, using the same table that gen-atomic-fallbacks.h uses to fill in gaps in the atomic_* and atomic64_* APIs. These are checked in rather than generated with Kbuild, since: * This all

[PATCHv3 4/6] atomics: switch to generated instrumentation

2018-09-04 Thread Mark Rutland
As a step towards ensuring the atomic* APIs are consistent, let's switch to wrappers generated by gen-atomic-instrumented.h, using the same table used to generate the fallbacks and atomic-long wrappers. These are checked in rather than generated with Kbuild, since: * This allows inspection of the

[PATCHv3 0/6] atomics: generate atomic headers / instrument arm64

2018-09-04 Thread Mark Rutland
Hi Ingo, As previously requested, this is a (trivial) rebase of the remaining generated atomic patches atop of v4.19-rc2, avoiding any potential conflict with Peter's ldsem atomic cleanup patch that got taken through the tty tree. Are you still happy to pick this up? Full blurb below. This serie

[PATCHv3 2/6] atomics: switch to generated fallbacks

2018-09-04 Thread Mark Rutland
As a step to ensuring the atomic* APIs are consistent, switch to fallbacks generated by gen-atomic-fallback.sh. These are checked in rather than generated with Kbuild, since: * This allows inspection of the atomics with git grep and ctags on a pristine tree, which Linus strongly prefers being a

[PATCHv3 5/6] atomics: check generated headers are up-to-date

2018-09-04 Thread Mark Rutland
Now that all the generated atomic headers are in place, it would be good to ensure that: a) the headers are up-to-date when scripting changes. b) developers don't directly modify the generated headers. To ensure both of these properties, let's add a Kbuild step to check that the generated header

[PATCHv3 6/6] arm64: use instrumented atomics

2018-09-04 Thread Mark Rutland
Now that the generic atomic headers provide instrumented wrappers of all the atomics implemented by arm64, let's migrate arm64 over to these. The additional instrumentation will help to find bugs (e.g. when fuzzing with Syzkaller). Mostly this change involves adding an arch_ prefix to a number of

[PATCHv3 1/6] atomics: add common header generation files

2018-09-04 Thread Mark Rutland
To minimize repetition, to allow for future rework, and to ensure regularity of the various atomic APIs, we'd like to automatically generate (the bulk of) a number of headers related to atomics. This patch adds the infrastructure to do so, leaving actual conversion of headers to subsequent patches

Re: [PATCH v5 05/16] x86/pmu: enable Hygon support to PMU infrastructure

2018-09-04 Thread Borislav Petkov
On Wed, Aug 29, 2018 at 08:43:54PM +0800, Pu Wen wrote: > Hygon PMU arch is similar to AMD Family 17h. To support Hygon PMU, the > initialization flow for it just call amd_pmu_init() and change PMU name That sentence reads funny. > to "HYGON". To share AMD's flow, add code check for Hygon family

Re: POSIX violation by writeback error

2018-09-04 Thread 焦晓冬
On Tue, Sep 4, 2018 at 5:29 PM Rogier Wolff wrote: > > On Tue, Sep 04, 2018 at 04:58:59PM +0800, 焦晓冬 wrote: > > > As for suggestion, maybe the error flag of inode/mapping, or the entire > > inode > > should not be evicted if there was an error. That hopefully won't take much > > memory. On extrem

Re: [RFC PATCH 3/4] sched/topology: remove smt_gain

2018-09-04 Thread Srikar Dronamraju
* Vincent Guittot [2018-09-04 11:36:26]: > Hi Srikar, > > Le Tuesday 04 Sep 2018 à 01:24:24 (-0700), Srikar Dronamraju a écrit : > > However after this change, capacity_orig of each SMT thread would be > > 1024. For example SMT 8 core capacity_orig would now be 8192. > > > > smt_gain was suppos

[PATCH v3 09/13] ASoC: wcd9335: add audio routings

2018-09-04 Thread Srinivas Kandagatla
This patch adds audio routing for both playback and capture. Signed-off-by: Srinivas Kandagatla Reviewed-by: Vinod Koul --- sound/soc/codecs/wcd9335.c | 189 + 1 file changed, 189 insertions(+) diff --git a/sound/soc/codecs/wcd9335.c b/sound/soc/codecs/wcd93

[PATCH v3 03/13] mfd: wcd9335: add wcd irq support

2018-09-04 Thread Srinivas Kandagatla
WCD9335 supports two lines of irqs INTR1 and INTR2. Multiple interrupts are muxed via these lines. INTR1 consists of all possible interrupt sources like: Ear OCP, HPH OCP, MBHC, MAD, VBAT, and SVA. INTR2 is a subset of first interrupt sources like MAD, VBAT, and SVA Signed-off-by: Srinivas Kandaga

[PATCH v3 04/13] ASoC: wcd9335: add support to wcd9335 codec

2018-09-04 Thread Srinivas Kandagatla
Qualcomm WCD9335 Codec is a standalone Hi-Fi audio codec IC, It supports both I2S/I2C and SLIMbus audio interfaces. On slimbus interface it supports two data lanes; 16 Tx ports and 8 Rx ports. It has Seven DACs and nine dedicated interpolators, Seven (six audio ADCs, and one VBAT ADC), Multibutton

[PATCH v3 00/13] ASoC: Add support to WCD9335 Audio Codec

2018-09-04 Thread Srinivas Kandagatla
Thankyou for reviewing v2 patchset, here is v3 addressing comments from v2. Qualcomm WCD9335 Codec is a standalone Hi-Fi audio codec IC. It is integrated in multiple Qualcomm SoCs like: MSM8996, MSM8976, and MSM8956 chipsets. WCD9335 had multiple functional blocks, like: Soundwire controller, int

[PATCH v3 07/13] ASoC: wcd9335: add playback dapm widgets

2018-09-04 Thread Srinivas Kandagatla
This patch adds required dapm widgets for playback. Signed-off-by: Srinivas Kandagatla Reviewed-by: Vinod Koul --- sound/soc/codecs/wcd9335.c | 1796 1 file changed, 1796 insertions(+) diff --git a/sound/soc/codecs/wcd9335.c b/sound/soc/codecs/wcd9335.c ind

[PATCH v3 10/13] ASoC: dt-bindings: Add WCD9335 MBHC specific properties

2018-09-04 Thread Srinivas Kandagatla
This patch add new bindings required to support MBHC (Multi Button Headset Control) block in the codec. This block is used for jack insert/removal detection, headset type detection and 8 button press/release events. All these properties are very much specific to board. Signed-off-by: Srinivas Kan

[PATCH v3 05/13] ASoC: wcd9335: add CLASS-H Controller support

2018-09-04 Thread Srinivas Kandagatla
CLASS-H controller/Amplifier is common accorss Qualcomm WCD codec series. This patchset adds basic CLASS-H controller apis for WCD codecs after wcd9335 to use. Signed-off-by: Srinivas Kandagatla Reviewed-by: Vinod Koul --- sound/soc/codecs/Makefile | 2 +- sound/soc/codecs/wcd-clsh-v2.c

[PATCH v3 13/13] ASoC: apq8096: add headset JACK support

2018-09-04 Thread Srinivas Kandagatla
Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/apq8096.c | 53 1 file changed, 53 insertions(+) diff --git a/sound/soc/qcom/apq8096.c b/sound/soc/qcom/apq8096.c index db07e9b62daf..78b245261477 100644 --- a/sound/soc/qcom/apq8096.c +++ b/sound/soc/

[PATCH v3 11/13] ASoC: wcd9335: add mbhc support

2018-09-04 Thread Srinivas Kandagatla
Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/wcd9335.c | 268 - 1 file changed, 266 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/wcd9335.c b/sound/soc/codecs/wcd9335.c index 095e6998e500..8d0f6b21cea0 100644 --- a/sound/soc/codecs/wcd

[PATCH v3 12/13] ASoC: apq8096: add slim support

2018-09-04 Thread Srinivas Kandagatla
Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/apq8096.c | 69 +++- 1 file changed, 68 insertions(+), 1 deletion(-) diff --git a/sound/soc/qcom/apq8096.c b/sound/soc/qcom/apq8096.c index 1543e85629f8..db07e9b62daf 100644 --- a/sound/soc/qcom/apq8096.c +

[PATCH v3 06/13] ASoC: wcd9335: add basic controls

2018-09-04 Thread Srinivas Kandagatla
This patch adds basic controls found in wcd9335 codec. Signed-off-by: Srinivas Kandagatla Reviewed-by: Vinod Koul --- sound/soc/codecs/wcd9335.c | 358 + 1 file changed, 358 insertions(+) diff --git a/sound/soc/codecs/wcd9335.c b/sound/soc/codecs/wcd9335.c i

[PATCH v3 08/13] ASoC: wcd9335: add capture dapm widgets

2018-09-04 Thread Srinivas Kandagatla
This patch adds required dapm widgets for capture path. Signed-off-by: Srinivas Kandagatla Reviewed-by: Vinod Koul --- sound/soc/codecs/wcd9335.c | 1449 +++- 1 file changed, 1448 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/wcd9335.c b/sound/soc/c

[PATCH v3 02/13] mfd: wcd9335: add support to wcd9335 core

2018-09-04 Thread Srinivas Kandagatla
Qualcomm WCD9335 Codec is a standalone Hi-Fi audio codec IC, It has mulitple blocks like Soundwire controller, codec, Codec processing engine, ClassH controller, interrupt mux. It supports both I2S/I2C and SLIMbus audio interfaces. This patch adds support to SLIMbus audio interface. Signed-off-by

[PATCH v3 01/13] ASoC: dt-bindings: update wcd9335 bindings.

2018-09-04 Thread Srinivas Kandagatla
This patch updates wcd9335 bindings with recommended properties. Signed-off-by: Srinivas Kandagatla --- .../devicetree/bindings/sound/qcom,wcd9335.txt | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/qcom,wcd9335.txt

Re: [PATCH v9 0/8] Introduce on-chip interconnect API

2018-09-04 Thread Amit Kucheria
Hi Georgi, I'm currently reviewing this patchset (long overdue), but considering that we haven't added any major new features to the framework for the last couple of revisions, can you get this patchset merged into linux-next to see how things shake out there? We've had this merged branch merged i

Re: [PATCH] security: tomoyo: Fix obsolete function

2018-09-04 Thread Tetsuo Handa
On 2018/09/04 17:41, Ding Xiang wrote: > simple_strtoul is obsolete, and use kstrtouint instead > > Signed-off-by: Ding Xiang Acked-by: Tetsuo Handa > --- > security/tomoyo/common.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/security/tomoyo/common.c b/security

Re: [PATCH] arm64: defconfig: enable EFI_ARMSTUB_DTB_LOADER

2018-09-04 Thread Grant Likely
Hey folks. More comments below, but the short answer is I really don't see what the problem is. Distros cannot easily support platforms that require a dtb= parameter, and so they probably won't. They may or may not disable 'dtb=', depending on whether they see it as valuable for debug. Vertically

<    1   2   3   4   5   6   >