[PATCH v2 0/3] RISC-V: Add new smp features

2018-08-28 Thread Atish Patra
This patch series implements following smp related features. Some of the work has been inspired from ARM64. 1. Decouple linux logical cpu ids from hardware cpu id 2. Support cpu hotplug. Tested on QEMU & HighFive Unleashed board with/without SMP enabled. v1->v2: 1. Dropped cpu_ops patch. 2.

[PATCH v2 3/3] RISC-V: Support cpu hotplug.

2018-08-28 Thread Atish Patra
This patch enable support for cpu hotplug in RISC-V. In absence of generic cpu stop functions, WFI is used to put the cpu in low power state during offline. An IPI is sent to bring it out of WFI during online operation. Tested both on QEMU and HighFive Unleashed board with 4 cpus. Test result

Re: [PATCH] tty:serial:imx: use spin_lock instead of spin_lock_irqsave in isr

2018-08-28 Thread Barry Song
jun qian 于2018年8月27日周一 下午10:49写道: > > Before the program enters the uart ISR, the local interrupt has been > disabled by the system, so it's not appropriate to use spin_lock_irqsave > interface in the ISR. > > Signed-off-by: jun qian many discussions have been done with jun in wechat regarding

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

2018-08-28 Thread Jiri Olsa
On Mon, Aug 27, 2018 at 09:16:55PM +0300, Alexey Budankov wrote: SNIP > if ((md->start & md->mask) + size != (md->end & md->mask)) { > buf = [md->start & md->mask]; > - size = md->mask + 1 - (md->start & md->mask); > - md->start += size; > - > -

Re: [PATCH v13 03/13] x86/cpufeatures: Add Intel-defined SGX leaf CPUID_12_EAX

2018-08-28 Thread Borislav Petkov
On Mon, Aug 27, 2018 at 09:53:24PM +0300, Jarkko Sakkinen wrote: > diff --git a/arch/x86/include/asm/cpufeatures.h > b/arch/x86/include/asm/cpufeatures.h > index 7bb647f57d42..4af60a0fdb20 100644 > --- a/arch/x86/include/asm/cpufeatures.h > +++ b/arch/x86/include/asm/cpufeatures.h > @@ -13,7

[PATCH] arm64: dts: ti: k3-am65: Change #address-cells and #size-cells of interconnect to 2

2018-08-28 Thread Kishon Vijay Abraham I
AM65 has two PCIe controllers and each PCIe controller has '2' address spaces one within the 4GB address space of the SoC and the other above the 4GB address space of the SoC in addition to the register space. The size of the address space above the 4GB SoC address space is 4GB. These address

Re: [PATCH] memory: Convert to using %pOFn instead of device_node.name

2018-08-28 Thread Thierry Reding
On Mon, Aug 27, 2018 at 08:52:30PM -0500, Rob Herring wrote: > In preparation to remove the node name pointer from struct device_node, > convert printf users to use the %pOFn format specifier. > > Cc: Roger Quadros > Cc: Tony Lindgren > Cc: Kukjin Kim > Cc: Krzysztof Kozlowski > Cc: Thierry

Re: [PATCH v6 3/3] mmc: sdhci-of-dwcmshc: solve 128MB DMA boundary limitation

2018-08-28 Thread Adrian Hunter
On 28/08/18 12:48, Jisheng Zhang wrote: > When using DMA, if the DMA addr spans 128MB boundary, we have to split > the DMA transfer into two so that each one doesn't exceed the boundary. > > Signed-off-by: Jisheng Zhang Acked-by: Adrian Hunter > --- > drivers/mmc/host/sdhci-of-dwcmshc.c | 39

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

2018-08-28 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

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

2018-08-28 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 ---

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

2018-08-28 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 13/15] soc: octeontx2: Add support for CGX link management

2018-08-28 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. -

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

2018-08-28 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 8bef28b..99ef6c1 100644 --- a/MAINTAINERS +++

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

2018-08-28 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. Signed-off-by: Sunil

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

2018-08-28 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

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

2018-08-28 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 ---

Re: [GIT PULL] Staging/IIO driver patches for 4.19-rc1

2018-08-28 Thread Todd Poynor
On Tue, Aug 28, 2018 at 3:38 AM Ahmed S. Darwish wrote: >[...] > On Sat, 18 Aug 2018 17:57:24 +0200, Greg KH wrote: > [...] > > addition of some new IIO drivers. Also added was a "gasket" driver from > > Google that needs loads of work and the erofs filesystem. > > > > Why are we adding __a

[PATCH 1/3] mm/cow: don't bother write protectig already write-protected huge pages

2018-08-28 Thread Nicholas Piggin
This is the THP equivalent for 1b2de5d039c8 ("mm/cow: don't bother write protecting already write-protected pages"). Explicit hugetlb pages don't get the same treatment because they don't appear to have the right accessor functions. Signed-off-by: Nicholas Piggin --- mm/huge_memory.c | 14

[PATCH 0/3] mm: dirty/accessed pte optimisations

2018-08-28 Thread Nicholas Piggin
Here are some patches that didn't get much comment last time. It looks like x86 might benefit too though, so that might get people interested. I improved changelogs and added some comments, but no real logic changes. I hope I didn't get the x86 numbers wrong, they're more significant than I

[PATCH 2/3] mm/cow: optimise pte dirty/accessed bits handling in fork

2018-08-28 Thread Nicholas Piggin
fork clears dirty/accessed bits from new ptes in the child. This logic has existed since mapped page reclaim was done by scanning ptes when it may have been quite important. Today with physical based pte scanning, there is less reason to clear these bits. Dirty bits are all tested and cleared

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

2018-08-28 Thread Alexey Budankov
Hi, On 28.08.2018 11:57, Jiri Olsa wrote: > On Mon, Aug 27, 2018 at 09:16:55PM +0300, Alexey Budankov wrote: > > SNIP > >> +int trace_fd = rec->session->data->file.fd; >> +struct aiocb **mmap_aio = rec->evlist->mmap_aio; >> +int mmap_aio_size = 0; >> +off_t off; >> >> if

Re: [RFC v2 0/2] Do not touch pages in remove_memory path

2018-08-28 Thread Oscar Salvador
On Fri, Aug 17, 2018 at 05:41:25PM +0200, Oscar Salvador wrote: > From: Oscar Salvador [...] > > The main difficulty I faced here was in regard of HMM/devm, as it really > handles > the hot-add/remove memory particulary, and what is more important, > also the resources. > > I really scratched

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

2018-08-28 Thread Arnd Bergmann
On Tue, Aug 28, 2018 at 12:57 PM wrote: > > 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

Re: [PATCH] x86/entry/64: wipe KASAN stack shadow in rewind_stack_do_exit()

2018-08-28 Thread Jann Horn
On Tue, Aug 28, 2018 at 1:33 PM Andrey Ryabinin wrote: > On 08/28/2018 01:38 PM, Jann Horn wrote: > >> Why this has to be done in the rewind_stack_do_exit()? > >> Are there any problems with calling the kasan_unpoison_task_stack(current) > >> from oops_end(), before the rewind_stack_do_exit()? >

Re: [PATCH 11/13] proc: readdir /proc/*/task

2018-08-28 Thread Ahmed S. Darwish
On Tue, Aug 28, 2018 at 12:36:22PM +, Ahmed S. Darwish wrote: > On Tue, Aug 28, 2018 at 02:15:01AM +0300, Alexey Dobriyan wrote: > > --- > > fs/proc/base.c | 8 > > 1 file changed, 4 insertions(+), 4 deletions(-) > > > > Missing description and S-o-b. Further comments below.. > > >

Re: [PATCH v3 0/2]: perf: reduce data loss when profiling highly parallel CPU bound workloads

2018-08-28 Thread Jiri Olsa
On Mon, Aug 27, 2018 at 08:03:21PM +0300, Alexey Budankov wrote: > > Currently in record mode the tool implements trace writing serially. > The algorithm loops over mapped per-cpu data buffers and stores ready > data chunks into a trace file using write() system call. > > At some circumstances

Re: [PATCH v2] PCI: dwc: fix scheduling while atomic issues

2018-08-28 Thread Lorenzo Pieralisi
On Tue, Aug 21, 2018 at 02:15:12PM +0800, Jisheng Zhang wrote: > When programming inbound/outbound atu, we call usleep_range() after > each checking PCIE_ATU_ENABLE bit. Unfortunately, the atu programming > can be called in atomic context: > > inbound atu programming could be called through >

[RESEND PATCH v2] dmaengine: sprd: Support DMA link-list mode

2018-08-28 Thread Baolin Wang
From: Eric Long The Spreadtrum DMA can support the link-list transaction mode, which means DMA controller can do transaction one by one automatically once we linked these transaction by link-list register. Signed-off-by: Eric Long Signed-off-by: Baolin Wang --- Changes since v1: - Remove

Re: [PATCH] memory_hotplug: fix kernel_panic on offline page processing

2018-08-28 Thread Michal Hocko
On Tue 28-08-18 11:05:39, Mikhail Zaslonko wrote: > Within show_valid_zones() the function test_pages_in_a_zone() should be > called for online memory blocks only. Otherwise it might lead to the > VM_BUG_ON due to uninitialized struct pages (when CONFIG_DEBUG_VM_PGFLAGS > kernel option is set): >

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

2018-08-28 Thread Jiri Olsa
On Tue, Aug 28, 2018 at 02:31:04PM +0300, Alexey Budankov wrote: > Hi, > > On 28.08.2018 11:57, Jiri Olsa wrote: > > On Mon, Aug 27, 2018 at 09:16:55PM +0300, Alexey Budankov wrote: > > > > SNIP > > > >> + int trace_fd = rec->session->data->file.fd; > >> + struct aiocb **mmap_aio =

Re: [RFC PATCH 03/11] arm64: pgtable: Implement p[mu]d_valid() and check in set_p[mu]d()

2018-08-28 Thread Will Deacon
Hi Linus, On Fri, Aug 24, 2018 at 09:15:17AM -0700, Linus Torvalds wrote: > On Fri, Aug 24, 2018 at 8:52 AM Will Deacon wrote: > > > > Now that our walk-cache invalidation routines imply a DSB before the > > invalidation, we no longer need one when we are clearing an entry during > > unmap. > >

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

2018-08-28 Thread Arnd Bergmann
On Tue, Aug 28, 2018 at 2:30 PM Sunil Kovvuri wrote: > > On Tue, Aug 28, 2018 at 5:40 PM Arnd Bergmann wrote: > > > > On Tue, Aug 28, 2018 at 12:58 PM wrote: > > > > > > From: Sunil Goutham > > > > > > This patch adds basic template for Marvell OcteonTX2's > > > CGX ethernet interface driver.

Hello dear.

2018-08-28 Thread Mrs Aisha Gaddafi
Hello dear. It is wonderful to contact you, I want us to have correspondence. I wish you will have the desire so that we can get acquainted to each other. Life itself is a mystery, you never know where it might lead you. I'm Aisha.gaddafi, the only biological douther of Qi,muamar gaddafi of

Re: [RFC PATCH v2 2/2] mtd: rawnand: meson: add support for Amlogic NAND flash controller

2018-08-28 Thread Boris Brezillon
On Tue, 28 Aug 2018 21:21:48 +0800 Liang Yang wrote: > Hi Boris, > > On 8/24/2018 8:48 PM, Boris Brezillon wrote: > > On Wed, 22 Aug 2018 22:08:42 +0800 > > Liang Yang wrote: > > > >>> You have to wait tWB, that's for sure. > >>> > >> we have a maximum 32 commands fifo. when command

Re: [PATCH v13 09/13] x86/sgx: Enclave Page Cache (EPC) memory manager

2018-08-28 Thread Jarkko Sakkinen
On Mon, Aug 27, 2018 at 02:14:24PM -0700, Dave Hansen wrote: > On 08/27/2018 11:53 AM, Jarkko Sakkinen wrote: > > +enum sgx_alloc_flags { > > + SGX_ALLOC_ATOMIC= BIT(0), > > +}; > > Doing this with enums is unprecedented IMNHO. Why are you doing it this > way for simple, one-off

[PATCH v2 2/3] RISC-V: Use Linux logical cpu number instead of hartid

2018-08-28 Thread Atish Patra
Setup the cpu_logical_map during boot. Moreover, every SBI call and PLIC context are based on the physical hartid. Use the logical cpu to hartid mapping to pass correct hartid to respective functions. Signed-off-by: Atish Patra --- arch/riscv/include/asm/tlbflush.h | 17 +

[PATCH v2 1/3] RISC-V: Add logical CPU indexing for RISC-V

2018-08-28 Thread Atish Patra
Currently, both linux cpu id and hardware cpu id are same. This is not recommended as it will lead to discontinuous cpu indexing in Linux. Moreover, kdump kernel will run from CPU0 which would be absent if we follow existing scheme. Implement a logical mapping between Linux cpu id and hardware

Re: TLB flushes on fixmap changes

2018-08-28 Thread Masami Hiramatsu
On Mon, 27 Aug 2018 16:01:32 -0700 Andy Lutomirski wrote: > On Mon, Aug 27, 2018 at 3:54 PM, Nadav Amit wrote: > > at 3:32 PM, Andy Lutomirski wrote: > > > >> On Mon, Aug 27, 2018 at 2:55 PM, Nadav Amit wrote: > >>> at 1:16 PM, Nadav Amit wrote: > >>> > at 12:58 PM, Andy Lutomirski

[PATCH 2/2] power: supply: Add Spreadtrum SC2731 charger support

2018-08-28 Thread Baolin Wang
This patch adds the SC2731 PMIC switch charger support. Signed-off-by: Baolin Wang --- drivers/power/supply/Kconfig |7 + drivers/power/supply/Makefile |1 + drivers/power/supply/sc2731_charger.c | 451 + 3 files changed, 459

[PATCH 1/2] dt-bindings: power: Add Spreadtrum SC2731 charger documentation

2018-08-28 Thread Baolin Wang
This patch adds the binding documentation for Spreadtrum SC2731 charger device. Signed-off-by: Baolin Wang --- .../bindings/power/supply/sc2731_charger.txt | 14 ++ 1 file changed, 14 insertions(+) create mode 100644

Re: [PATCH] EDAC: Remove the i82443bxgx_edac driver

2018-08-28 Thread Borislav Petkov
On Mon, Aug 27, 2018 at 08:30:23PM +0100, Tim Small wrote: > On that basis, I don't see a problem with removing it, but if there's a > preference for me to fix it, (and if I still have some old hardware > somewhere that I can test it on), I'll be happy to do that instead. Well, if you don't have

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

2018-08-28 Thread Jiri Olsa
On Mon, Aug 27, 2018 at 09:16:55PM +0300, Alexey Budankov wrote: SNIP > +static int record__mmap_read_sync(int trace_fd, struct aiocb **cblocks, > + int cblocks_size, struct record *rec) > +{ > + size_t rem; > + ssize_t size; > + off_t rem_off; > + int i, aio_ret,

[PATCH 2/3] nds32: Fix a kernel panic issue because of wrong frame pointer access.

2018-08-28 Thread Greentime Hu
It can make sure that trace_hardirqs_off/trace_hardirqs_on can get a correct return address by frame pointer through __builtin_return_address() in this fix. Unable to handle kernel paging request at virtual address fffc pgd = 3c42e9cf [fffc] *pgd=02a9c000 Internal error: Oops: 1 [#1]

[PATCH 1/3] nds32: Only print one page of stack when die to prevent printing too much information.

2018-08-28 Thread Greentime Hu
It may print too much information sometimes if the stack is wrong or too big. This patch can limit the debug information in a page of stack. Signed-off-by: Greentime Hu --- arch/nds32/kernel/traps.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git

Re: [PATCH v5 3/3] mmc: sdhci-of-dwcmshc: solve 128MB DMA boundary limitation

2018-08-28 Thread Jisheng Zhang
On Tue, 28 Aug 2018 10:51:02 +0300 Adrian Hunter wrote: > On 27/08/18 11:24, Jisheng Zhang wrote: > > When using DMA, if the DMA addr spans 128MB boundary, we have to split > > the DMA transfer into two so that each one doesn't exceed the boundary. > > > > Signed-off-by: Jisheng Zhang > > --- >

Re: [RESEND] PCI: imx: Initial imx7d pm support

2018-08-28 Thread Lorenzo Pieralisi
On Mon, Aug 27, 2018 at 02:28:37PM +0300, Leonard Crestez wrote: > On imx7d the pcie-phy power domain is turned off in suspend and this can > make the system hang after resume when attempting any read from PCI. > > Fix this by adding minimal suspend/resume code from the nxp internal > tree. This

Re: [PATCH 0/5] ARM: dts: at91: nattis: some cleanup

2018-08-28 Thread Alexandre Belloni
On 28/08/2018 11:48:39+0200, Peter Rosin wrote: > Hi! > > Now that some other patches [1][2] have finally landed in -next, I > feel that it is time for this cleanup series that I have been hoarding > for a while waiting on those (weak) dependencies. > > Cheers, > Peter > > [1]

Re: [PATCH] x86/entry/64: wipe KASAN stack shadow in rewind_stack_do_exit()

2018-08-28 Thread Andrey Ryabinin
On 08/28/2018 01:38 PM, Jann Horn wrote: >> >> >> Why this has to be done in the rewind_stack_do_exit()? >> Are there any problems with calling the kasan_unpoison_task_stack(current) >> from oops_end(), before the rewind_stack_do_exit()? > > Ooh, good point! I didn't see that KASAN

Re: [PATCH] HID: i2c-hid: Fix flooded incomplete report after S3 on Rayd touchscreen

2018-08-28 Thread Jiri Kosina
On Tue, 21 Aug 2018, AceLan Kao wrote: > The incomplete report flooded after S3 and touchscreen becomes > malfunctioned. > [ 1367.646244] i2c_hid i2c-CUST:00: i2c_hid_get_input: incomplete report > (58/18785) > [ 1367.649471] i2c_hid i2c-CUST:00: i2c_hid_get_input: incomplete report >

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

2018-08-28 Thread Alexey Budankov
Hi, On 28.08.2018 12:01, Jiri Olsa wrote: > On Mon, Aug 27, 2018 at 09:16:55PM +0300, Alexey Budankov wrote: > > SNIP > >> +static int record__mmap_read_sync(int trace_fd, struct aiocb **cblocks, >> +int cblocks_size, struct record *rec) >> +{ >> +size_t rem; >> +ssize_t

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

2018-08-28 Thread Arnd Bergmann
On Tue, Aug 28, 2018 at 2:42 PM Sunil Kovvuri wrote: > > On Tue, Aug 28, 2018 at 5:39 PM Arnd Bergmann wrote: > > > > On Tue, Aug 28, 2018 at 12:58 PM wrote: > > > > > > From: Geetha sowjanya > > > > > > HW interprets RVU_AF_MSIXTR_BASE address as an IOVA, hence > > > create a IOMMU mapping

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

2018-08-28 Thread Sunil Kovvuri
> > > If this is a regular PCI ethernet driver, why do you put it into > > > driver/soc > > > rather than drivers/net/ethernet/ ? > > > > No, this is not a ethernet driver, as mentioned in the cover letter > > this driver and AF driver doesn't > > handle any IO. There will be a separate ethernet

[PATCH v10 2/2] irqchip: Add driver for Cirrus Logic Madera codecs

2018-08-28 Thread Richard Fitzgerald
The Cirrus Logic Madera codecs (Cirrus Logic CS47L35/85/90/91 and WM1840) are highly complex devices containing up to 7 programmable DSPs and many other internal sources of interrupts plus a number of GPIOs that can be used as interrupt inputs. The large number (>150) of internal interrupt sources

[PATCH v10 1/2] mfd: madera: Add irqchip data pointer into struct madera

2018-08-28 Thread Richard Fitzgerald
Put the pointer to struct regmap_irq_chip_data into the parent mfd structure so that the child irqchip driver does not need a trivial private structure to store only this pointer. As the irqchip child driver already has a pointer to the parent struct madera it can use that to store the pointer.

Re: [PATCH 3/3] Enable high-resolution scrolling on Logitech mice

2018-08-28 Thread Benjamin Tissoires
Hi Harry, On Thu, Aug 23, 2018 at 8:31 PM Harry Cutts wrote: > > There are three features used by various Logitech mice for > high-resolution scrolling: the fast scrolling bit in HID++ 1.0, and the > x2120 and x2121 features in HID++ 2.0 and above. This patch supports > all three, and uses the

[BUG] Possible sleep-in-atomic-context bugs involving regmap_lock_mutex()

2018-08-28 Thread Jia-Ju Bai
Hello, My static tool DSAC reports many sleep-in-atomic-context bugs involving regmap_lock_mutex(), so I wonder whether this function is possible to be executed in atomic context. Here are some example bugs and their call paths in Linux-4.16 (from bottom to top, and [FUNC_PTR] means that

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

2018-08-28 Thread Jiri Olsa
On Mon, Aug 27, 2018 at 09:16:55PM +0300, Alexey Budankov wrote: SNIP > + int trace_fd = rec->session->data->file.fd; > + struct aiocb **mmap_aio = rec->evlist->mmap_aio; > + int mmap_aio_size = 0; > + off_t off; > > if (!evlist) > return 0; > @@ -528,14

Re: [PATCH] irqchip/gic-v3-its: cap lpi_id_bits to reduce memory footprint

2018-08-28 Thread Marc Zyngier
On Tue, 28 Aug 2018 05:53:26 +0100, Jia He wrote: > > In commit fe8e93504ce8 ("irqchip/gic-v3-its: Use full range of LPIs"), > it removes the cap for lpi_id_bits. But it will cause more pointless > memory footprint. > > There is a WARN_ON when my QDF2400 server boots up (pagesize is 4k) >

[PATCH] perf probe powerpc: Ignore SyS symbols irrespective of endianness

2018-08-28 Thread Sandipan Das
This makes sure that the SyS symbols are ignored for any powerpc system, not just the big endian ones. Fixes: fb6d59423115 ("perf probe ppc: Use the right prefix when ignoring SyS symbols on ppc") Reported-by: Naveen N. Rao Signed-off-by: Sandipan Das Reviewed-by: Kamalesh Babulal ---

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

2018-08-28 Thread Alexey Budankov
Hi, On 28.08.2018 11:53, Jiri Olsa wrote: > On Mon, Aug 27, 2018 at 09:16:55PM +0300, Alexey Budankov wrote: > > SNIP > >> if ((md->start & md->mask) + size != (md->end & md->mask)) { >> buf = [md->start & md->mask]; >> -size = md->mask + 1 - (md->start &

[PATCH] HID: core: fix memory leak on probe

2018-08-28 Thread Stefan Agner
The dynamically allocted collection stack does not get freed in all situations. Make sure to also free the collection stack when using the parser in hid_open_report(). Fixes: 08a8a7cf1459 ("HID: core: do not upper bound the collection stack") Signed-off-by: Stefan Agner --- Found with kmemleak:

[PATCH] HID: input: fix leaking custom input node name

2018-08-28 Thread Stefan Agner
Make sure to free the custom input node name on disconnect. Cc: sta...@vger.kernel.org # v4.18+ Fixes: c554bb045511 ("HID: input: append a suffix matching the application") Signed-off-by: Stefan Agner --- Found with kmemleak, after unplugging a Logitech Unifying receiver: unreferenced object

Re: [PATCH] mmc: Convert to using %pOFn instead of device_node.name

2018-08-28 Thread Ulf Hansson
On 28 August 2018 at 03:52, Rob Herring wrote: > In preparation to remove the node name pointer from struct device_node, > convert printf users to use the %pOFn format specifier. > > Cc: Adrian Hunter > Cc: Hu Ziji > Cc: Ulf Hansson > Cc: linux-...@vger.kernel.org > Signed-off-by: Rob Herring

Re: [PATCH] HID: intel-ish-hid: Enable Sunrise Point-H ish driver

2018-08-28 Thread Jiri Kosina
On Fri, 17 Aug 2018, Andreas Bosch wrote: > Added PCI ID for Sunrise Point-H ISH. > > Signed-off-by: Andreas Bosch > --- > I hope this patch arrives correctly. > --- > drivers/hid/intel-ish-hid/ipc/hw-ish.h | 1 + > drivers/hid/intel-ish-hid/ipc/pci-ish.c | 1 + > 2 files changed, 2

Re: [PATCH v6 0/3] solve SDHCI DWC MSHC 128MB DMA boundary limitation

2018-08-28 Thread Ulf Hansson
On 28 August 2018 at 11:45, Jisheng Zhang wrote: > When using DMA, if the DMA addr spans 128MB boundary, we have to split > the DMA transfer into two so that each one doesn't exceed the boundary. > > patch1 adds adma_table_cnt to struct sdhci_host so that driver can > control the ADMA table

Re: [PATCH v3 0/2]: perf: reduce data loss when profiling highly parallel CPU bound workloads

2018-08-28 Thread Alexey Budankov
Hi Andi, On 28.08.2018 11:59, Jiri Olsa wrote: > On Mon, Aug 27, 2018 at 08:03:21PM +0300, Alexey Budankov wrote: >> >> Currently in record mode the tool implements trace writing serially. >> The algorithm loops over mapped per-cpu data buffers and stores ready >> data chunks into a trace file

Re: [PATCH] HID: input: fix leaking custom input node name

2018-08-28 Thread Jiri Kosina
On Tue, 28 Aug 2018, Stefan Agner wrote: > Make sure to free the custom input node name on disconnect. > > Cc: sta...@vger.kernel.org # v4.18+ > Fixes: c554bb045511 ("HID: input: append a suffix matching the application") > Signed-off-by: Stefan Agner > --- > Found with kmemleak, after

Re: [PATCH] irqchip/gic-v3-its: cap lpi_id_bits to reduce memory footprint

2018-08-28 Thread Jia He
On 8/28/2018 4:58 PM, Marc Zyngier Wrote: > On Tue, 28 Aug 2018 05:53:26 +0100, > Jia He wrote: >> >> In commit fe8e93504ce8 ("irqchip/gic-v3-its: Use full range of LPIs"), >> it removes the cap for lpi_id_bits. But it will cause more pointless >> memory footprint. >> >> There is a WARN_ON

Re: [PATCH] HID: core: fix memory leak on probe

2018-08-28 Thread Jiri Kosina
On Tue, 28 Aug 2018, Stefan Agner wrote: > The dynamically allocted collection stack does not get freed in > all situations. Make sure to also free the collection stack when > using the parser in hid_open_report(). > > Fixes: 08a8a7cf1459 ("HID: core: do not upper bound the collection stack") >

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

2018-08-28 Thread Sunil Kovvuri
On Tue, Aug 28, 2018 at 5:40 PM Arnd Bergmann wrote: > > On Tue, Aug 28, 2018 at 12:58 PM wrote: > > > > 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

Re: [RESEND] PCI: imx: Initial imx7d pm support

2018-08-28 Thread Leonard Crestez
On Tue, 2018-08-28 at 11:07 +0100, Lorenzo Pieralisi wrote: > On Mon, Aug 27, 2018 at 02:28:37PM +0300, Leonard Crestez wrote: > > On imx7d the pcie-phy power domain is turned off in suspend and this can > > make the system hang after resume when attempting any read from PCI. > > > > Fix this by

Re: [RFC PATCH 09/11] asm-generic/tlb: Track which levels of the page tables have been cleared

2018-08-28 Thread Will Deacon
On Mon, Aug 27, 2018 at 09:53:41AM +0200, Peter Zijlstra wrote: > On Fri, Aug 24, 2018 at 04:52:44PM +0100, Will Deacon wrote: > > +static inline unsigned long tlb_get_unmap_granule(struct mmu_gather *tlb) > > +{ > > + if (tlb->cleared_ptes) > > + return PAGE_SIZE; > > + if

[PATCH v2] mtd: spi-nor: fsl-quadspi: fix read error for flash size larger than 16MB

2018-08-28 Thread Liu Xiang
If the size of spi-nor flash is larger than 16MB, the read_opcode is set to SPINOR_OP_READ_1_1_4_4B, and fsl_qspi_get_seqid() will return -EINVAL when cmd is SPINOR_OP_READ_1_1_4_4B. This can cause read operation fail. --- v2: add Fixes tag and CC stable suggested by Boris. --- Fixes:

Re: [RFC PATCH v2 2/2] mtd: rawnand: meson: add support for Amlogic NAND flash controller

2018-08-28 Thread Liang Yang
Hi Boris, On 8/24/2018 8:48 PM, Boris Brezillon wrote: On Wed, 22 Aug 2018 22:08:42 +0800 Liang Yang wrote: You have to wait tWB, that's for sure. we have a maximum 32 commands fifo. when command is written into NFC_REG_CMD, it doesn't mean that command is executing right now, maybe it

Re: [PATCH] nios2: Convert to using %pOFn instead of device_node.name

2018-08-28 Thread Ley Foon Tan
On Mon, 2018-08-27 at 20:52 -0500, Rob Herring wrote: > In preparation to remove the node name pointer from struct > device_node, > convert printf users to use the %pOFn format specifier. > > Cc: Ley Foon Tan > Cc: nios2-...@lists.rocketboards.org > Signed-off-by: Rob Herring Acked-by: Ley Foon

Re: [PATCH v13 09/13] x86/sgx: Enclave Page Cache (EPC) memory manager

2018-08-28 Thread Jarkko Sakkinen
On Mon, Aug 27, 2018 at 02:15:34PM -0700, Dave Hansen wrote: > On 08/27/2018 11:53 AM, Jarkko Sakkinen wrote: > > +struct sgx_epc_page_ops { > > + bool (*get)(struct sgx_epc_page *epc_page); > > + void (*put)(struct sgx_epc_page *epc_page); > > + bool (*reclaim)(struct sgx_epc_page

[PATCH] pinctrl: madera: Fix possible NULL pointer with pdata config

2018-08-28 Thread Richard Fitzgerald
If we are being configured via pdata we don't necessarily have any gpio mappings being configured that way so pdata->gpio_config could be NULL. Signed-off-by: Richard Fitzgerald --- drivers/pinctrl/cirrus/pinctrl-madera-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

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

2018-08-28 Thread Jiri Olsa
On Mon, Aug 27, 2018 at 12:02:35PM +0300, Alexey Budankov wrote: > Hi, > > On 27.08.2018 11:33, Jiri Olsa wrote: > > On Thu, Aug 23, 2018 at 07:42:09PM +0300, Alexey Budankov wrote: > > > > SNIP > > > >> diff --git a/tools/perf/util/mmap.c b/tools/perf/util/mmap.c > >> index

Re: [PATCH v4 0/2] clk: qcom: Add support for RCG to register for DFS

2018-08-28 Thread Taniya Das
On 8/28/2018 2:34 AM, Stephen Boyd wrote: Quoting Stephen Boyd (2018-08-23 11:25:41) Quoting Taniya Das (2018-08-22 03:28:31) H. Ok. That won't work then. recalc_rate() better not try to populate the frequency table then or it will not work. So I suppose it needs to fallback to

Re: [PATCHv2] kmemleak: Add option to print warnings to dmesg

2018-08-28 Thread Vincent Whitchurch
On Mon, Aug 27, 2018 at 03:16:41PM -0700, Andrew Morton wrote: > On Mon, 27 Aug 2018 10:38:21 +0200 Vincent Whitchurch > wrote: > > > Currently, kmemleak only prints the number of suspected leaks to dmesg > > but requires the user to read a debugfs file to get the actual stack > > traces of the

[PATCH v1] arm64: dts: ls1043a: Add configure-gfladj property to USB3 node

2018-08-28 Thread Yinbo Zhu
From: Rajesh Bhagat Add "configure-gfladj" boolean property to USB3 node. This property is used to determine whether frame length adjustent is required or not Signed-off-by: Rajesh Bhagat Signed-off-by: Ran Wang --- arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi |3 +++ 1 files changed,

Re: [PATCH v1] arm64: dts: ls1043a: Add configure-gfladj property to USB3 node

2018-08-28 Thread Fabio Estevam
On Tue, Aug 28, 2018 at 7:12 AM, Yinbo Zhu wrote: > From: Rajesh Bhagat freescale.com addresses are no longer valid. The From and the first Signed-off-by lines should match, so use nxp.com here instead. > Add "configure-gfladj" boolean property to USB3 node. This property I don't find any

Re: [PATCH v13 07/13] x86/sgx: Add data structures for tracking the EPC pages

2018-08-28 Thread Jarkko Sakkinen
On Mon, Aug 27, 2018 at 02:07:53PM -0700, Dave Hansen wrote: > On 08/27/2018 11:53 AM, Jarkko Sakkinen wrote: > > Add data structures to track Enclave Page Cache (EPC) pages. EPC is > > divided into multiple banks (1-N) of which addresses and sizes can be > > enumerated with CPUID by the OS. > >

Re: [PATCH] [v2] HID: add support for Apple Magic Keyboards

2018-08-28 Thread Jiri Kosina
On Mon, 27 Aug 2018, Sean O'Brien wrote: > USB device > Vendor 05ac (Apple) > Device 026c (Magic Keyboard with Numeric Keypad) > > Bluetooth devices > Vendor 004c (Apple) > Device 0267 (Magic Keyboard) > Device 026c (Magic Keyboard with Numeric Keypad) > > Support

Re: [PATCH v2] clocksource: ti-32k: Add CLOCK_SOURCE_SUSPEND_NONSTOP flag for non-am43 SoCs

2018-08-28 Thread Daniel Lezcano
On 28/08/2018 13:44, J, KEERTHY wrote: > > > On 8/8/2018 6:44 PM, Keerthy wrote: >> The 32k clocksource is NONSTOP for non-am43 SoCs. Hence >> add the flag for all the other SoCs. > > A gentle ping on this one. Yeah, saw it. Returning from vacation, still unstacking emails ... :) >>

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

2018-08-28 Thread Arnd Bergmann
On Tue, Aug 28, 2018 at 12:58 PM wrote: > > 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

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

2018-08-28 Thread Sunil Kovvuri
On Tue, Aug 28, 2018 at 5:33 PM Arnd Bergmann wrote: > > On Tue, Aug 28, 2018 at 12:57 PM wrote: > > > > 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

[PATCH] afs: remove unused variable ret

2018-08-28 Thread Colin King
From: Colin Ian King Variable ret is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King --- fs/afs/server.c | 3 +-- 1 file changed, 1

[RESEND PATCH v5 3/9] pwm: cros-ec: populate PWM mode in of_xlate function

2018-08-28 Thread Claudiu Beznea
Populate PWM mode in of_xlate function to avoid pwm_apply_state() failure. Signed-off-by: Claudiu Beznea --- drivers/pwm/pwm-cros-ec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pwm/pwm-cros-ec.c b/drivers/pwm/pwm-cros-ec.c index 9c13694eaa24..78d28d60a468 100644 ---

Re: [PATCH v13 06/13] x86/sgx: Detect Intel SGX

2018-08-28 Thread Jarkko Sakkinen
On Mon, Aug 27, 2018 at 12:53:59PM -0700, Dave Hansen wrote: > > +config INTEL_SGX_CORE > > + prompt "Intel SGX core functionality" > > + def_bool n > > + depends on X86_64 && CPU_SUP_INTEL > > + help > > + Intel Software Guard eXtensions (SGX) is a set of CPU instructions > > + that

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

2018-08-28 Thread Jiri Olsa
On Mon, Aug 27, 2018 at 09:16:55PM +0300, Alexey Budankov wrote: > > Trace file offset are linearly calculated by perf_mmap__push() code > for the next possible write operation, but file position is updated by > the kernel only in the second lseek() syscall after the loop. > The first lseek()

Re: [PATCH] x86/alternatives: lockdep-enforce text_mutex in text_poke*()

2018-08-28 Thread Masami Hiramatsu
On Tue, 28 Aug 2018 08:55:14 +0200 (CEST) Jiri Kosina wrote: > From: Jiri Kosina > > text_poke() and text_poke_bp() must be called with text_mutex held. > Let's put proper lockdep anotation in place instead of just mentioning > the requirement in comment. Thank you! Acked-by: Masami

Re: [PATCH] rtc: rtc-omap: Replace mdelay() with msleep() in omap_rtc_power_off()

2018-08-28 Thread Johan Hovold
On Mon, Aug 27, 2018 at 10:55:17PM +0200, Alexandre Belloni wrote: > Hi, > > On 30/07/2018 21:53:14+0800, Jia-Ju Bai wrote: > > omap_rtc_power_off() is never called in atomic context. > > It calls mdelay() to busily wait, which is not necessary. > > mdelay() can be replaced with msleep(). > > >

Re: [PATCH] x86/entry/64: wipe KASAN stack shadow in rewind_stack_do_exit()

2018-08-28 Thread Andrey Ryabinin
On 08/25/2018 02:58 AM, Jann Horn wrote: > Reset the KASAN shadow state of the task stack when rewinding RSP. > Without this, a kernel oops will leave parts of the stack poisoned, and > code running under do_exit() can trip over such poisoned regions and cause > nonsensical false-positive KASAN

Re: [PATCH] rtc: rtc-omap: Replace mdelay() with msleep() in omap_rtc_power_off()

2018-08-28 Thread Jia-Ju Bai
On 2018/8/28 16:49, Johan Hovold wrote: On Mon, Aug 27, 2018 at 10:55:17PM +0200, Alexandre Belloni wrote: Hi, On 30/07/2018 21:53:14+0800, Jia-Ju Bai wrote: omap_rtc_power_off() is never called in atomic context. It calls mdelay() to busily wait, which is not necessary. mdelay() can be

[PATCH] memory_hotplug: fix kernel_panic on offline page processing

2018-08-28 Thread Mikhail Zaslonko
Within show_valid_zones() the function test_pages_in_a_zone() should be called for online memory blocks only. Otherwise it might lead to the VM_BUG_ON due to uninitialized struct pages (when CONFIG_DEBUG_VM_PGFLAGS kernel option is set): page dumped because: VM_BUG_ON_PAGE(PagePoisoned(p))

Re: [PATCH] mtd: rawnand: Convert to using %pOFn instead of device_node.name

2018-08-28 Thread Boris Brezillon
On Mon, 27 Aug 2018 20:52:34 -0500 Rob Herring wrote: > In preparation to remove the node name pointer from struct device_node, > convert printf users to use the %pOFn format specifier. > > Cc: Boris Brezillon > Cc: Miquel Raynal > Cc: Richard Weinberger > Cc: David Woodhouse > Cc: Brian

[PATCH v6 0/3] solve SDHCI DWC MSHC 128MB DMA boundary limitation

2018-08-28 Thread Jisheng Zhang
When using DMA, if the DMA addr spans 128MB boundary, we have to split the DMA transfer into two so that each one doesn't exceed the boundary. patch1 adds adma_table_cnt to struct sdhci_host so that driver can control the ADMA table count. patch2 introduces adma_write_desc() hook to struct

[PATCH] tty: serial: lpuart: avoid leaking struct tty_struct

2018-08-28 Thread Stefan Agner
The function tty_port_tty_get() gets a reference to the tty. Since the code is not using tty_port_tty_set(), the reference is kept even after closing the tty. Avoid using tty_port_tty_get() by directly access the tty instance. Since lpuart_start_rx_dma() is called from the .startup() and

KASAN error in [PATCH v3 7/8] proc/kcore: optimize multiple page reads

2018-08-28 Thread Dominique Martinet
> The current code does a full search of the segment list every time for > every page. This is wasteful, since it's almost certain that the next > page will be in the same segment. Instead, check if the previous segment > covers the current page before doing the list search. > > Signed-off-by:

  1   2   3   4   5   6   7   8   9   10   >