[PATCH 0/3] ACPI: New eject flow to remove devices cautiously

2019-05-30 Thread Chester Lin
Currently there are two ways to handle ACPI device ejection. When an eject event happens on a container, the kernel just sends KOBJ_CHANGE to userland and userland should handle offline operation. For other device types, acpi_scan_try_to_offline() is called and it tries to put target device(s) offl

[PATCH 3/3] ACPI / device_sysfs: Add eject show attr to monitor eject status

2019-05-30 Thread Chester Lin
An acpi_eject_show attribute for users to monitor current status because sometimes it might take time to finish an ejection so we need to know whether it is still in progress or not. Signed-off-by: Chester Lin --- drivers/acpi/device_sysfs.c | 20 +++- drivers/acpi/internal.h

[PATCH 2/3] ACPI / hotplug: Eject status trace and auto-remove approach

2019-05-30 Thread Chester Lin
This is an eject-status trace mechanism which helps to count current online devices under the ejection target, and it can automatically reschedules an eject event when all related devices are offline. The number of online nodes can be updated when any node has been put offline successfully. Any onl

[PATCH 1/3] ACPI / hotplug: Send change events for offline/online requests when eject is triggered

2019-05-30 Thread Chester Lin
Here we change offline/online handling in device hotplug by sending change events to userland as notification so that userland can have control and determine when will be a good time to put them offline/online based on current workload. In this approach the real offline/online opertions are handed

Re: [PATCH net-next] ethtool: do not use regs->len after ops->get_regs

2019-05-30 Thread Michal Kubecek
On Thu, May 30, 2019 at 07:54:50PM -0400, Vivien Didelot wrote: > The kernel allocates a buffer of size ops->get_regs_len(), and pass > it to the kernel driver via ops->get_regs() for filling. > > There is no restriction about what the kernel drivers can or cannot > do with the regs->len member. D

Re: [RFC PATCH v3 00/16] Core scheduling v3

2019-05-30 Thread Aubrey Li
On Fri, May 31, 2019 at 2:09 PM Aaron Lu wrote: > > On 2019/5/31 13:12, Aubrey Li wrote: > > On Fri, May 31, 2019 at 11:01 AM Aaron Lu > > wrote: > >> > >> This feels like "date" failed to schedule on some CPU > >> on time. > >> > >> My first reaction is: when shell wakes up from sleep, it will

[PATCH] pinctrl: qcom: Clear status bit on irq_unmask

2019-05-30 Thread Tengfei Fan
The gpio interrupt status bit is getting set after the irq is disabled and causing an immediate interrupt after enablling the irq, so clear status bit on irq_unmask. Signed-off-by: Tengfei Fan --- drivers/pinctrl/qcom/pinctrl-msm.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drive

Re: [net-next,v4 0/2] Enable SFP on ACPI based systems

2019-05-30 Thread Wolfram Sang
> > Are you happy for the i2c patch to be merged via net-next? > > Yes, that's fine my me. > > Wolfram do you have any objections? That's fine with me, I'd like an immutable branch, though. There are likely other changes to i2c.h coming and that would avoid merge conflicts. signature.asc Des

[RFCv2 6/6] mm: extend process_madvise syscall to support vector arrary

2019-05-30 Thread Minchan Kim
Currently, process_madvise syscall works for only one address range so user should call the syscall several times to give hints to multiple address ranges. However, it's not efficient to support atomicity of address range opreations as well as performance perspective. This patch extends process_ma

[RFCv2 5/6] mm: introduce external memory hinting API

2019-05-30 Thread Minchan Kim
There is some usecase that centralized userspace daemon want to give a memory hint like MADV_[COLD|PAGEEOUT] to other process. Android's ActivityManagerService is one of them. It's similar in spirit to madvise(MADV_WONTNEED), but the information required to make the reclaim decision is not known t

[RFCv2 0/6] introduce memory hinting API for external process

2019-05-30 Thread Minchan Kim
ation that process_madvise hints works well for the ChromeOS use case." This patchset is against on next-20190530. Minchan Kim (6): [1/6] mm: introduce MADV_COLD [2/6] mm: change PAGEREF_RECLAIM_CLEAN with PAGE_REFRECLAIM [3/6] mm: introduce MADV_PAGEOUT [4/6] mm: factor out madvise'

[RFCv2 4/6] mm: factor out madvise's core functionality

2019-05-30 Thread Minchan Kim
This patch factor out madvise's core functionality so that upcoming patch can reuse it without duplication. It shouldn't change any behavior. Signed-off-by: Minchan Kim --- mm/madvise.c | 188 +++ 1 file changed, 101 insertions(+), 87 deletions(-)

[RFCv2 3/6] mm: introduce MADV_PAGEOUT

2019-05-30 Thread Minchan Kim
When a process expects no accesses to a certain memory range for a long time, it could hint kernel that the pages can be reclaimed instantly but data should be preserved for future use. This could reduce workingset eviction so it ends up increasing performance. This patch introduces the new MADV_P

[RFCv2 2/6] mm: change PAGEREF_RECLAIM_CLEAN with PAGE_REFRECLAIM

2019-05-30 Thread Minchan Kim
The local variable references in shrink_page_list is PAGEREF_RECLAIM_CLEAN as default. It is for preventing to reclaim dirty pages when CMA try to migrate pages. Strictly speaking, we don't need it because CMA didn't allow to write out by .may_writepage = 0 in reclaim_clean_pages_from_list. Moreov

[RFCv2 1/6] mm: introduce MADV_COLD

2019-05-30 Thread Minchan Kim
When a process expects no accesses to a certain memory range, it could give a hint to kernel that the pages can be reclaimed when memory pressure happens but data should be preserved for future use. This could reduce workingset eviction so it ends up increasing performance. This patch introduces

Re: [PATCH 1/2] KVM: LAPIC: Optimize timer latency consider world switch time

2019-05-30 Thread Wanpeng Li
On Fri, 31 May 2019 at 03:36, Sean Christopherson wrote: > > On Thu, May 23, 2019 at 12:18:50PM +0800, Wanpeng Li wrote: > > From: Wanpeng Li > > > > Advance lapic timer tries to hidden the hypervisor overhead between the > > host emulated timer fires and the guest awares the timer is fired. Howe

[PATCH v2 2/2] KVM: LAPIC: remove the trailing newline used in the fmt parameter of TP_printk

2019-05-30 Thread Wanpeng Li
From: Wanpeng Li The trailing newlines will lead to extra newlines in the trace file which looks like the following output, so remove it. qemu-system-x86-15695 [002] ...1 15774.839240: kvm_hv_timer_state: vcpu_id 0 hv_timer 1 qemu-system-x86-15695 [002] ...1 15774.839309: kvm_hv_timer_state: v

[PATCH v2 1/2] KVM: LAPIC: Optimize timer latency consider world switch time

2019-05-30 Thread Wanpeng Li
From: Wanpeng Li Advance lapic timer tries to hidden the hypervisor overhead between the host emulated timer fires and the guest awares the timer is fired. However, even though after more sustaining optimizations, kvm-unit-tests/tscdeadline_latency still awares ~1000 cycles latency since we los

[PATCH v3 4/4] ARM: dts: Add Avenger96 devicetree support based on STM32MP157A

2019-05-30 Thread Manivannan Sadhasivam
Add devicetree support for Avenger96 board based on STM32MP157A MPU from ST Micro. This board is one of the 96Boards Consumer Edition board from Arrow Electronics and has the following features: SoC: STM32MP157AAC PMIC: STPMIC1A RAM: 1024 Mbyte @ 533MHz Storage: eMMC v4.51: 8 Gbyte microS

[PATCH v3 1/4] ARM: dts: stm32mp157: Add missing pinctrl definitions

2019-05-30 Thread Manivannan Sadhasivam
Add missing pinctrl definitions for STM32MP157 MPU. Signed-off-by: Manivannan Sadhasivam --- arch/arm/boot/dts/stm32mp157-pinctrl.dtsi | 75 +++ 1 file changed, 75 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp157-pinctrl.dt

[PATCH v3 2/4] dt-bindings: arm: stm32: Convert STM32 SoC bindings to DT schema

2019-05-30 Thread Manivannan Sadhasivam
This commit converts STM32 SoC bindings to DT schema using jsonschema. Signed-off-by: Manivannan Sadhasivam --- .../devicetree/bindings/arm/stm32/stm32.yaml | 29 +++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/stm32/stm32.yaml dif

[PATCH v3 0/4] Add Avenger96 board support

2019-05-30 Thread Manivannan Sadhasivam
Hello, This patchset adds Avenger96 board support. This board is one of the Consumer Edition boards of the 96Boards family from Arrow Electronics featuring STM32MP157A MPU and has the following features: SoC: STM32MP157AAC PMIC: STPMIC1A RAM: 1024 Mbyte @ 533MHz Storage: eMMC v4.51: 8 Gbyte

[PATCH v3 3/4] dt-bindings: arm: stm32: Document Avenger96 devicetree binding

2019-05-30 Thread Manivannan Sadhasivam
This commit documents Avenger96 devicetree binding based on STM32MP157 SoC. Signed-off-by: Manivannan Sadhasivam --- Documentation/devicetree/bindings/arm/stm32/stm32.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/stm32/stm32.yaml b/Documentatio

[RFC PATCH v2 03/12] x86/mm/tlb: Refactor common code into flush_tlb_on_cpus()

2019-05-30 Thread Nadav Amit
arch_tlbbatch_flush() and flush_tlb_mm_range() have very similar code, which is effectively the same. Extract the mutual code into a new function flush_tlb_on_cpus(). There is one functional change, which should not affect correctness: flush_tlb_mm_range compared loaded_mm and the mm to figure out

[RFC PATCH v2 04/12] x86/mm/tlb: Flush remote and local TLBs concurrently

2019-05-30 Thread Nadav Amit
To improve TLB shootdown performance, flush the remote and local TLBs concurrently. Introduce flush_tlb_multi() that does so. The current flush_tlb_others() interface is kept, since paravirtual interfaces need to be adapted first before it can be removed. This is left for future work. In such PV en

[RFC PATCH v2 08/12] x86/tlb: Privatize cpu_tlbstate

2019-05-30 Thread Nadav Amit
cpu_tlbstate is mostly private and only the variable is_lazy is shared. This causes some false-sharing when TLB flushes are performed. Break cpu_tlbstate intro cpu_tlbstate and cpu_tlbstate_shared, and mark each one accordingly. Cc: Dave Hansen Cc: Andy Lutomirski Cc: Peter Zijlstra Signed-off

[RFC PATCH v2 07/12] smp: Do not mark call_function_data as shared

2019-05-30 Thread Nadav Amit
cfd_data is marked as shared, but although it hold pointers to shared data structures, it is private per core. Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Rik van Riel Cc: Andy Lutomirski Signed-off-by: Nadav Amit --- kernel/smp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

[RFC PATCH v2 09/12] x86/apic: Use non-atomic operations when possible

2019-05-30 Thread Nadav Amit
Using __clear_bit() and __cpumask_clear_cpu() is more efficient than using their atomic counterparts. Use them when atomicity is not needed, such as when manipulating bitmasks that are on the stack. Cc: Dave Hansen Cc: Andy Lutomirski Cc: Peter Zijlstra Signed-off-by: Nadav Amit --- arch/x86/

[RFC PATCH v2 05/12] x86/mm/tlb: Optimize local TLB flushes

2019-05-30 Thread Nadav Amit
While the updated smp infrastructure is capable of running a function on a single local core, it is not optimized for this case. The multiple function calls and the indirect branch introduce some overhead, making local TLB flushes slower than they were before the recent changes. Before calling the

[RFC PATCH v2 10/12] smp: Enable data inlining for inter-processor function call

2019-05-30 Thread Nadav Amit
There are some opportunities to improve the performance of inter-processor function calls. First, currently call_single_data, which is used for communicating the data that is consumed by the function call is not cacheline aligned. This might lead to false sharing, since different structures are us

[RFC PATCH v2 02/12] smp: Run functions concurrently in smp_call_function_many()

2019-05-30 Thread Nadav Amit
Currently, on_each_cpu() and similar functions do not exploit the potential of concurrency: the function is first executed remotely and only then it is executed locally. Functions such as TLB flush can take considerable time, so this provides an opportunity for performance optimization. To do so,

[RFC PATCH v2 11/12] x86/mm/tlb: Use async and inline messages for flushing

2019-05-30 Thread Nadav Amit
When we flush userspace mappings, we can defer the TLB flushes, as long the following conditions are met: 1. No tables are freed, since otherwise speculative page walks might cause machine-checks. 2. No one would access userspace before flush takes place. Specifically, NMI handlers and kpro

[RFC PATCH v2 06/12] KVM: x86: Provide paravirtualized flush_tlb_multi()

2019-05-30 Thread Nadav Amit
Support the new interface of flush_tlb_multi, which also flushes the local CPU's TLB, instead of flush_tlb_others that does not. This interface is more performant since it parallelize remote and local TLB flushes. The actual implementation of flush_tlb_multi() is almost identical to that of flush_

[RFC PATCH v2 12/12] x86/mm/tlb: Reverting the removal of flush_tlb_info from stack

2019-05-30 Thread Nadav Amit
Partially revert 3db6d5a5eca ("x86/mm/tlb: Remove 'struct flush_tlb_info' from the stack"). Now that we copy flush_tlb_info and inline it with the IPI information, we can put it back onto the stack. This simplifies the code and should be slightly more robust. The stack is also a bit more likely to

[RFC PATCH v2 01/12] smp: Remove smp_call_function() and on_each_cpu() return values

2019-05-30 Thread Nadav Amit
The return value is fixed. Remove it and amend the callers. Cc: Richard Henderson Cc: Ivan Kokshaysky Cc: Matt Turner Cc: Tony Luck Cc: Fenghua Yu Cc: Andrew Morton Signed-off-by: Nadav Amit --- arch/alpha/kernel/smp.c | 19 +-- arch/alpha/oprofile/common.c | 6 +++---

[RFC PATCH v2 00/12] x86: Flush remote TLBs concurrently and async

2019-05-30 Thread Nadav Amit
Currently, local and remote TLB flushes are not performed concurrently, which introduces unnecessary overhead - each INVLPG can take 100s of cycles. This patch-set allows TLB flushes to be run concurrently: first request the remote CPUs to initiate the flush, then run it locally, and finally wait f

Re: [PATCH] PCI: endpoint: Add DMA to Linux PCI EP Framework

2019-05-30 Thread Vinod Koul
On 31-05-19, 10:50, Kishon Vijay Abraham I wrote: > Hi Vinod, > > On 31/05/19 10:37 AM, Vinod Koul wrote: > > Hi Kishon, > > > > On 30-05-19, 11:16, Kishon Vijay Abraham I wrote: > >> +Vinod Koul > >> > >> Hi, > >> > >> On 30/05/19 4:07 AM, Alan Mikhak wrote: > >>> On Mon, May 27, 2019 at 2:09 AM

Re: [PATCH v3] ARM: dts: aspeed: Add YADRO VESNIN BMC

2019-05-30 Thread Andrew Jeffery
Hello Alexander, On Fri, 31 May 2019, at 15:42, Alexander Filippov wrote: > VESNIN is an OpenPower machine with an Aspeed 2400 BMC SoC manufactured > by YADRO. > > Signed-off-by: Alexander Filippov > --- > arch/arm/boot/dts/Makefile | 1 + > arch/arm/boot/dts/aspeed-bmc-opp-v

Re: [PATCH] ipv6: Prevent overrun when parsing v6 header options

2019-05-30 Thread Herbert Xu
On Thu, May 30, 2019 at 10:17:04AM -0700, Eric Dumazet wrote: > > xfrm6_transport_output() seems buggy as well, > unless the skbs are linearized before entering these functions ? The headers that it's moving should be linearised. Is there something else I'm missing? Cheers, -- Email: Herbert Xu

Re: [PATCH REBASED] mm, memcg: Make scan aggression always exclude protection

2019-05-30 Thread Michal Hocko
On Thu 30-05-19 13:52:10, Chris Down wrote: > Michal Hocko writes: > > On Wed 29-05-19 23:44:53, Chris Down wrote: > > > Michal Hocko writes: > > > > Maybe I am missing something so correct me if I am wrong but the new > > > > calculation actually means that we always allow to scan even min > > > >

Re: [PATCH v5] perf record: collect user registers set jointly with dwarf stacks

2019-05-30 Thread Alexey Budankov
On 30.05.2019 22:41, Arnaldo Carvalho de Melo wrote: > Em Thu, May 30, 2019 at 10:03:36PM +0300, Alexey Budankov escreveu: >> >> When dwarf stacks are collected jointly with user specified register >> set using --user-regs option like below the full register context is >> captured on a sample: >>

Re: [net-next,v4 0/2] Enable SFP on ACPI based systems

2019-05-30 Thread Mika Westerberg
On Wed, May 29, 2019 at 05:51:32PM +0200, Andrew Lunn wrote: > On Wed, May 29, 2019 at 12:48:18PM +0300, Mika Westerberg wrote: > > On Tue, May 28, 2019 at 04:02:31PM -0700, Ruslan Babayev wrote: > > > Changes: > > > v2: > > > - more descriptive commit body > > > v3: > > > - made 'i2c_acpi_find

Re: [RESEND PATCH v4 6/6] leds: lm36274: Introduce the TI LM36274 LED driver

2019-05-30 Thread Lee Jones
On Thu, 30 May 2019, Jacek Anaszewski wrote: > On 5/30/19 9:38 AM, Lee Jones wrote: > > On Wed, 29 May 2019, Jacek Anaszewski wrote: > > > > > On 5/29/19 3:58 PM, Lee Jones wrote: > > > > On Fri, 24 May 2019, Jacek Anaszewski wrote: > > > > > > > > > Hi, > > > > > > > > > > On 5/23/19 9:09 PM,

collect2: error: ld returned 1 exit status

2019-05-30 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 318adf8e4bfdcb0bce1833824564b1f24278927b commit: a3b9a99980d9fa01f6c18c359cf503b874f183de counter: add FlexTimer Module Quadrature decoder counter driver date: 5 weeks ago config: um-allyesconfig (attached

[PATCH v3] ARM: dts: aspeed: Add YADRO VESNIN BMC

2019-05-30 Thread Alexander Filippov
VESNIN is an OpenPower machine with an Aspeed 2400 BMC SoC manufactured by YADRO. Signed-off-by: Alexander Filippov --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/aspeed-bmc-opp-vesnin.dts | 234 2 files changed, 235 insertions(+) create mode 100

Re: [PATCH -mm] mm, swap: Fix bad swap file entry warning

2019-05-30 Thread Michal Hocko
On Fri 31-05-19 10:41:02, Huang, Ying wrote: > From: Huang Ying > > Mike reported the following warning messages > > get_swap_device: Bad swap file entry 1401 > > This is produced by > > - total_swapcache_pages() > - get_swap_device() > > Where get_swap_device() is used to che

Re: [RFC PATCH v3 00/16] Core scheduling v3

2019-05-30 Thread Aaron Lu
On 2019/5/31 13:12, Aubrey Li wrote: > On Fri, May 31, 2019 at 11:01 AM Aaron Lu wrote: >> >> This feels like "date" failed to schedule on some CPU >> on time. >> >> My first reaction is: when shell wakes up from sleep, it will >> fork date. If the script is untagged and those workloads are >> tag

Re: [PATCH] arm64: dts: rockchip: Add missing PCIe pwr amd rst configuration

2019-05-30 Thread Manivannan Sadhasivam
On Fri, May 31, 2019 at 10:27:22AM +0530, Anand Moon wrote: > Hi Manivannan, > > On Fri, 31 May 2019 at 09:32, Manivannan Sadhasivam > wrote: > > > > Hi, > > > > On Thu, May 30, 2019 at 12:58:37PM +, Anand Moon wrote: > > > This patch add missing PCIe gpio and pinctrl for power (#PCIE_PWR) >

Re: [PATCH v2] ARM: dts: aspeed: Add YADRO VESNIN BMC

2019-05-30 Thread Alexander A. Filippov
On Thu, May 30, 2019 at 10:36:53PM +0200, Andrew Lunn wrote: > On Thu, May 30, 2019 at 05:39:33PM +0300, Alexander Filippov wrote: > > VESNIN is an OpenPower machine with an Aspeed 2400 BMC SoC manufactured > > by YADRO. > > > > Signed-off-by: Alexander Filippov > > --- > > arch/arm/boot/dts/Mak

linux-next: Tree for May 31

2019-05-30 Thread Stephen Rothwell
Hi all, Changes since 20190530: The net-next tree gained a conflict against the net tree. It also gained a build failure for which I reverted a commit. I applied a patch to fix an sh build probem. The akpm-current tree lost its build failure. Non-merge commits (relative to Linus' tree):

Re: [v3 PATCH] usb: create usb_debug_root for gadget only

2019-05-30 Thread Felipe Balbi
Hi, Chunfeng Yun writes: > Hi Felipe, > On Tue, 2019-05-28 at 11:11 +0300, Felipe Balbi wrote: >> Hi, >> >> Chunfeng Yun writes: >> > diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c >> > index 7fcb9f782931..88b3ee03a12d 100644 >> > --- a/drivers/usb/core/usb.c >> > +++ b/drivers

Re: [PATCH bpf] bpf: preallocate a perf_sample_data per event fd

2019-05-30 Thread Song Liu
> On May 30, 2019, at 5:01 PM, Matt Mullins wrote: > > On Thu, 2019-05-30 at 23:28 +, Song Liu wrote: >>> On May 30, 2019, at 3:55 PM, Matt Mullins wrote: >>> >>> It is possible that a BPF program can be called while another BPF >>> program is executing bpf_perf_event_output. This has b

Re: [PATCH] PCI: endpoint: Add DMA to Linux PCI EP Framework

2019-05-30 Thread Kishon Vijay Abraham I
Hi Vinod, On 31/05/19 10:37 AM, Vinod Koul wrote: > Hi Kishon, > > On 30-05-19, 11:16, Kishon Vijay Abraham I wrote: >> +Vinod Koul >> >> Hi, >> >> On 30/05/19 4:07 AM, Alan Mikhak wrote: >>> On Mon, May 27, 2019 at 2:09 AM Gustavo Pimentel >>> wrote: On Fri, May 24, 2019 at 20:42:43,

Re: [PATCH 4.19 000/276] 4.19.47-stable review

2019-05-30 Thread Naresh Kamboju
On Thu, 30 May 2019 at 08:51, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.19.47 release. > There are 276 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Re

Re: [PATCH 4.14 000/193] 4.14.123-stable review

2019-05-30 Thread Naresh Kamboju
On Thu, 30 May 2019 at 08:55, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.14.123 release. > There are 193 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > R

Re: [PATCH v4] x86/power: Fix 'nosmt' vs. hibernation triple fault during resume

2019-05-30 Thread Josh Poimboeuf
On Fri, May 31, 2019 at 01:42:02AM +0200, Jiri Kosina wrote: > On Thu, 30 May 2019, Josh Poimboeuf wrote: > > > > > Reviewed-by: Thomas Gleixner > > > > > > Yes, it is, thanks! > > > > I still think changing monitor/mwait to use a fixmap address would be a > > much cleaner way to fix this.

Re: [PATCH 2/2] edac: add support for Amazon's Annapurna Labs EDAC

2019-05-30 Thread Borislav Petkov
On Fri, May 31, 2019 at 01:15:33AM +, Herrenschmidt, Benjamin wrote: > This isn't terribly helpful, there's nothing telling anybody which of > those files corresponds to an ARM SoC :-) drivers/edac/altera_edac.c is one example. Also, James and I have a small writeup on how an arm driver shoul

Re: [RFC PATCH v3 00/16] Core scheduling v3

2019-05-30 Thread Aubrey Li
On Fri, May 31, 2019 at 11:01 AM Aaron Lu wrote: > > This feels like "date" failed to schedule on some CPU > on time. > > My first reaction is: when shell wakes up from sleep, it will > fork date. If the script is untagged and those workloads are > tagged and all available cores are already runnin

Re: [PATCH] PCI: endpoint: Add DMA to Linux PCI EP Framework

2019-05-30 Thread Kishon Vijay Abraham I
Hi Alan, On 30/05/19 11:26 PM, Alan Mikhak wrote: > On Wed, May 29, 2019 at 10:48 PM Kishon Vijay Abraham I wrote: >> >> +Vinod Koul >> >> Hi, >> > On Fri, May 24, 2019 at 1:59 AM Gustavo Pimentel > wrote: >> >> Hi Alan, >> >> This patch implementation is very HW implemen

Re: [PATCH] PCI: endpoint: Add DMA to Linux PCI EP Framework

2019-05-30 Thread Vinod Koul
Hi Kishon, On 30-05-19, 11:16, Kishon Vijay Abraham I wrote: > +Vinod Koul > > Hi, > > On 30/05/19 4:07 AM, Alan Mikhak wrote: > > On Mon, May 27, 2019 at 2:09 AM Gustavo Pimentel > > wrote: > >> > >> On Fri, May 24, 2019 at 20:42:43, Alan Mikhak > >> wrote: > >> > >> Hi Alan, > >> > >>> On Fr

Re: [PATCH v4 00/14] Provide generic top-down mmap layout functions

2019-05-30 Thread Alex Ghiti
On 5/29/19 4:16 PM, Kees Cook wrote: On Sun, May 26, 2019 at 09:47:32AM -0400, Alexandre Ghiti wrote: This series introduces generic functions to make top-down mmap layout easily accessible to architectures, in particular riscv which was the initial goal of this series. The generic implementatio

[PATCH 1/2] PCI: Code reorganization for VGA device link

2019-05-30 Thread Abhishek Sahu
This patch does minor code reorganization. It introduces a helper function which creates device link from the non-VGA controller (consumer) to the VGA (supplier) and uses this helper function for creating device link from integrated HDA controller to VGA. It will help in subsequent patches which re

[PATCH 2/2] PCI: Create device link for NVIDIA GPU

2019-05-30 Thread Abhishek Sahu
NVIDIA Turing GPUs include hardware support for USB Type-C and VirtualLink. It helps in delivering the power, display, and data required to power VR headsets through a single USB Type-C connector. The Turing GPU is a multi-function PCI device has the following four functions: - VGA display

[PATCH 0/2] PCI: device link quirk for NVIDIA GPU

2019-05-30 Thread Abhishek Sahu
NVIDIA Turing GPU [1] has hardware support for USB Type-C and VirtualLink [2]. The Turing GPU is a multi-function PCI device which has the following four functions: - VGA display controller (Function 0) - Audio controller (Function 1) - USB xHCI Host controller (Function 2)

Re: [PATCH] arm64: dts: rockchip: Add missing PCIe pwr amd rst configuration

2019-05-30 Thread Anand Moon
Hi Manivannan, On Fri, 31 May 2019 at 09:32, Manivannan Sadhasivam wrote: > > Hi, > > On Thu, May 30, 2019 at 12:58:37PM +, Anand Moon wrote: > > This patch add missing PCIe gpio and pinctrl for power (#PCIE_PWR) > > also add PCIe gpio and pinctrl for reset (#PCIE_PERST_L). > > > > Signed-off

Re: [RFC PATCH v3 00/16] Core scheduling v3

2019-05-30 Thread Aubrey Li
On Thu, May 30, 2019 at 10:17 PM Julien Desfossez wrote: > > Interesting, could you detail a bit more your test setup (commands used, > type of machine, any cgroup/pinning configuration, etc) ? I would like > to reproduce it and investigate. Let me see if I can simply my test to reproduce it. Th

Re: [PATCH v4 08/14] arm: Use generic mmap top-down layout and brk randomization

2019-05-30 Thread Alex Ghiti
On 5/29/19 3:26 PM, Kees Cook wrote: On Sun, May 26, 2019 at 09:47:40AM -0400, Alexandre Ghiti wrote: arm uses a top-down mmap layout by default that exactly fits the generic functions, so get rid of arch specific code and use the generic version by selecting ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOU

Re: [PATCH v5] mfd: cros_ec_dev: Register cros_ec_accel_legacy driver as a subdevice

2019-05-30 Thread Gwendal Grignou
On Thu, May 30, 2019 at 12:48 AM Lee Jones wrote: > > On Wed, 29 May 2019, Gwendal Grignou wrote: > > > On Wed, May 29, 2019 at 4:44 AM Lee Jones wrote: > > > > > > On Tue, 28 May 2019, Gwendal Grignou wrote: > > > > > > > On Mon, Apr 1, 2019 at 8:46 PM Lee Jones wrote: > > > > > > > > > > On We

答复: 答复: Re: [tip:x86/urgent] x86/mce: Ensure offline CPUs don' t participate in rendezvous process

2019-05-30 Thread Tony W Wang-oc
On Fri, May 31, 2019, Raj, Ashok wrote: > On Thu, May 30, 2019 at 09:13:39AM +, Tony W Wang-oc wrote: > > On Thu, May 30, 2019, Tony W Wang-oc wrote: > > > Hi Ashok, > > > I have two questions about this patch, could you help to check: > > > > > > 1, for broadcast #MC exceptions, this patch see

Re: [PATCH v2] PCI: endpoint: Skip odd BAR when skipping 64bit BAR

2019-05-30 Thread Kishon Vijay Abraham I
Hi Alan, On 25/05/19 12:20 AM, Alan Mikhak wrote: > Hi Kishon, > > Yes. This change is still applicable even when the platform specifies > that it only supports 64-bit BARs by setting the bar_fixed_64bit > member of epc_features. > > The issue being fixed is this: If the 'continue' statement is

Re: [PATCH] vmalloc: Don't use flush flag when no exec perm

2019-05-30 Thread Edgecombe, Rick P
On Thu, 2019-05-30 at 10:44 +0300, Meelis Roos wrote: > > > The addition of VM_FLUSH_RESET_PERMS for BPF JIT allocations was > > > bisected to prevent boot on an UltraSparc III machine. It was > > > found > > > that > > > sometime shortly after the TLB flush this flag does on vfree of > > > the > >

[PATCH 1/3] dt-bindings: i2c: document bindings for i2c-slave-mqueue

2019-05-30 Thread Eduardo Valentin
Document the i2c-slave-mqueue binding by adding descriptor, required properties, and example. Cc: Rob Herring Cc: Mark Rutland Cc: Wolfram Sang Cc: linux-...@vger.kernel.org Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- .../bindings/i2c/i2

[PATCH 2/3] i2c: slave-mqueue: add a slave backend to receive and queue messages

2019-05-30 Thread Eduardo Valentin
From: Haiyue Wang Some protocols over I2C are designed for bi-directional transferring messages by using I2C Master Write protocol. Like the MCTP (Management Component Transport Protocol) and IPMB (Intelligent Platform Management Bus), they both require that the userspace can receive messages fro

[PATCH 3/3] Documentation: ABI: Add i2c-slave-mqueue sysfs documentation

2019-05-30 Thread Eduardo Valentin
Document the slave-mqueue sysfs attribute used by the i2c-slave-mqueue driver. Cc: Rob Herring Cc: Mark Rutland Cc: Wolfram Sang Cc: linux-...@vger.kernel.org Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin --- .../ABI/testing/sysfs-bus-i2c-devi

[PATCH 0/3] introduce i2c-slave-mqueue

2019-05-30 Thread Eduardo Valentin
Wolfram, I am sending you the i2c-slave-mqueue driver. Apparently Haiyue had to move on to another project and does not have cycles to continue with the comments on this driver after some time waiting for feedback, that is essentially why I took over. Here is a small changelog from V5 to V6: - Ad

Re: [PATCH net-next 0/5] PTP support for the SJA1105 DSA driver

2019-05-30 Thread Richard Cochran
On Thu, May 30, 2019 at 06:23:09PM +0300, Vladimir Oltean wrote: > On Thu, 30 May 2019 at 18:06, Richard Cochran > wrote: > > > > But are the frames received in the same order? What happens your MAC > > drops a frame? > > > > If it drops a normal frame, it carries on. > If it drops a meta frame

Re: [GIT PULL] arm64: fixes for -rc3

2019-05-30 Thread pr-tracker-bot
The pull request you sent on Thu, 30 May 2019 17:11:26 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git tags/arm64-fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/adc3f554fa1e0f1c7b76007150814e1d8a5fcd2b Thank you! -- Deet-doot-dot, I am a

Re: [GIT] Networking

2019-05-30 Thread pr-tracker-bot
The pull request you sent on Thu, 30 May 2019 16:05:06 -0700 (PDT): > git://git.kernel.org/pub/scm/linux/kernel/git/davem/net refs/heads/master has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/036e34310931e64ce4f1edead435708cd517db10 Thank you! -- Deet-doot-dot, I am

Re: [PATCH v2 0/6] mm/devm_memremap_pages: Fix page release race

2019-05-30 Thread Dan Williams
On Mon, May 13, 2019 at 12:22 PM Logan Gunthorpe wrote: > > > > On 2019-05-08 11:05 a.m., Logan Gunthorpe wrote: > > > > > > On 2019-05-07 5:55 p.m., Dan Williams wrote: > >> Changes since v1 [1]: > >> - Fix a NULL-pointer deref crash in pci_p2pdma_release() (Logan) > >> > >> - Refresh the p2pdma

Re: [PATCH] arm64: dts: rockchip: Add missing PCIe pwr amd rst configuration

2019-05-30 Thread Manivannan Sadhasivam
Hi, On Thu, May 30, 2019 at 12:58:37PM +, Anand Moon wrote: > This patch add missing PCIe gpio and pinctrl for power (#PCIE_PWR) > also add PCIe gpio and pinctrl for reset (#PCIE_PERST_L). > > Signed-off-by: Anand Moon > --- > Tested on Rock960 Model A > --- > arch/arm64/boot/dts/rockchip/r

Re: [GIT PULL] configfs fix for 5.2

2019-05-30 Thread pr-tracker-bot
The pull request you sent on Thu, 30 May 2019 10:53:21 +0200: > git://git.infradead.org/users/hch/configfs.git tags/configfs-for-5.2-2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/8cb7104d03dddeb2f28e590b2d1fab7bf0eef284 Thank you! -- Deet-doot-dot, I am a bot. ht

Re: [GIT PULL] sound fixes for 5.2-rc3

2019-05-30 Thread pr-tracker-bot
The pull request you sent on Thu, 30 May 2019 10:51:17 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git > tags/sound-5.2-rc3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/c5ba1712661233ce0f4666b8c3dee5bb78d380f2 Thank you! -- Deet-doot-dot, I

Re: [PATCH v3 1/3] PCI: Introduce pcibios_ignore_alignment_request

2019-05-30 Thread Alexey Kardashevskiy
On 31/05/2019 08:49, Shawn Anastasio wrote: > On 5/29/19 10:39 PM, Alexey Kardashevskiy wrote: >> >> >> On 28/05/2019 17:39, Shawn Anastasio wrote: >>> >>> >>> On 5/28/19 1:27 AM, Alexey Kardashevskiy wrote: On 28/05/2019 15:36, Oliver wrote: > On Tue, May 28, 2019 at 2:03 PM

[PATCH v2 00/17] net: introduce Qualcomm IPA driver

2019-05-30 Thread Alex Elder
This series presents the driver for the Qualcomm IP Accelerator (IPA). This is version 2 of the series. This version has addressed almost all of the feedback received in the first version: https://lore.kernel.org/lkml/20190512012508.10608-1-el...@linaro.org/ More detail is included in the indiv

[PATCH v2 02/17] dt-bindings: soc: qcom: add IPA bindings

2019-05-30 Thread Alex Elder
Add the binding definitions for the "qcom,ipa" device tree node. Signed-off-by: Alex Elder --- .../devicetree/bindings/net/qcom,ipa.yaml | 180 ++ 1 file changed, 180 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/qcom,ipa.yaml diff --git a/Documenta

[PATCH v2 06/17] soc: qcom: ipa: GSI headers

2019-05-30 Thread Alex Elder
The Generic Software Interface is a layer of the IPA driver that abstracts the underlying hardware. The next patch includes the main code for GSI (including some additional documentation). This patch just includes three GSI header files. - "gsi.h" is the top-level GSI header file. There is on

Re: linux-next: manual merge of the userns tree with the arc-current tree

2019-05-30 Thread Stephen Rothwell
Hi Vineet, On Thu, 30 May 2019 17:11:33 + Vineet Gupta wrote: > > Thx for this. Unfortunately I had to force push my for-next due to broken #7 > and > #8 above. So you may have to do this once again. Thanks for the heads up, but "git rerere" seems to have still coped, so its all good. --

[PATCH v2 07/17] soc: qcom: ipa: the generic software interface

2019-05-30 Thread Alex Elder
This patch includes "gsi.c", which implements the generic software interface (GSI) for IPA. The generic software interface abstracts channels, which provide a means of transferring data either from the AP to the IPA, or from the IPA to the AP. A ring buffer of "transfer elements" (TREs) is used t

[PATCH v2 03/17] soc: qcom: ipa: main code

2019-05-30 Thread Alex Elder
This patch includes three source files that represent some basic "main program" code for the IPA driver. They are: - "ipa.h" defines the top-level IPA structure which represents an IPA device throughout the code. - "ipa_main.c" contains the platform driver probe function, along with s

[PATCH v2 04/17] soc: qcom: ipa: configuration data

2019-05-30 Thread Alex Elder
This patch defines configuration data that is used to specify some of the details of IPA hardware supported by the driver. It is built as Device Tree match data, discovered at boot time. Initially the driver only supports the Qualcomm SDM845 SoC. Signed-off-by: Alex Elder --- drivers/net/ipa/i

[PATCH v2 12/17] soc: qcom: ipa: IPA network device and microcontroller

2019-05-30 Thread Alex Elder
This patch includes the code that implements a Linux network device, using one TX and one RX IPA endpoint. It is used to implement the network device representing the modem and its connection to wireless networks. There are only a few things that are really modem-specific though, and they aren't

[PATCH v2 11/17] soc: qcom: ipa: immediate commands

2019-05-30 Thread Alex Elder
One TX endpoint (per EE) is used for issuing immediate commands to the IPA. These commands request activites beyond simple data transfers to be done by the IPA hardware. For example, the IPA is able to manage routing packets among endpoints, and immediate commands are used to configure tables use

[PATCH v2 10/17] soc: qcom: ipa: IPA endpoints

2019-05-30 Thread Alex Elder
This patch includes the code implementing an IPA endpoint. This is the primary abstraction implemented by the IPA. An endpoint is one end of a network connection between two entities physically connected to the IPA. Specifically, the AP and the modem implement endpoints, and an (AP endpoint, mod

[PATCH v2 01/17] bitfield.h: add FIELD_MAX() and field_max()

2019-05-30 Thread Alex Elder
Define FIELD_MAX(), which supplies the maximum value that can be represented by a field value. Define field_max() as well, to go along with the lower-case forms of the field mask functions. Signed-off-by: Alex Elder --- include/linux/bitfield.h | 14 ++ 1 file changed, 14 insertions

[PATCH v2 08/17] soc: qcom: ipa: GSI transactions

2019-05-30 Thread Alex Elder
This patch implements GSI transactions. A GSI transaction is a structure that represents a single request (consisting of one or more TREs) sent to the GSI hardware. The last TRE in a transaction includes a flag requesting that the GSI interrupt the AP to notify that it has completed. TREs are ex

[PATCH v2 17/17] arm64: defconfig: enable build of IPA code

2019-05-30 Thread Alex Elder
Add CONFIG_IPA to the 64-bit Arm defconfig. Signed-off-by: Alex Elder --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 4d583514258c..6ed86cb6b597 100644 --- a/arch/arm64/configs/defconfig +++ b/

[PATCH v2 15/17] MAINTAINERS: add entry for the Qualcomm IPA driver

2019-05-30 Thread Alex Elder
Add an entry in the MAINTAINERS file for the Qualcomm IPA driver Signed-off-by: Alex Elder --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 429c6c624861..a2dece647641 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12872,6 +12872,12 @@ L:

[PATCH v2 14/17] soc: qcom: ipa: support build of IPA code

2019-05-30 Thread Alex Elder
Add build and Kconfig support for the Qualcomm IPA driver. Signed-off-by: Alex Elder --- drivers/net/Kconfig | 2 ++ drivers/net/Makefile | 1 + drivers/net/ipa/Kconfig | 16 drivers/net/ipa/Makefile | 7 +++ 4 files changed, 26 insertions(+) create mode 100644

[PATCH v2 13/17] soc: qcom: ipa: AP/modem communications

2019-05-30 Thread Alex Elder
This patch implements two forms of out-of-band communication between the AP and modem. - QMI is a mechanism that allows clients running on the AP interact with services running on the modem (and vice-versa). The AP IPA driver uses QMI to communicate with the corresponding IPA driver

[PATCH v2 16/17] arm64: dts: sdm845: add IPA information

2019-05-30 Thread Alex Elder
Add IPA-related nodes and definitions to "sdm845.dtsi". Signed-off-by: Alex Elder --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 51 1 file changed, 51 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index fcb93300

  1   2   3   4   5   6   7   8   9   10   >