Re: [RHEL-ALT-7.4 PATCH 1/2] numa,sched: slow down scan rate if shared faults dominate

2017-08-02 Thread Mel Gorman
On Mon, Jul 31, 2017 at 03:28:46PM -0400, Rik van Riel wrote: > From: Rik van Riel > > The comment above update_task_scan_period says the scan period should > be increased (scanning slows down) if the majority of memory accesses > are on the local node, or if the majority of the page accesses are

Re: [PATCH v6 2/6] clk: sunxi-ng: Add sun4i/sun7i CCU driver

2017-08-02 Thread Jonathan Liu
Hi Priit, On 15 July 2017 at 00:49, Priit Laes wrote: > Introduce a clock controller driver for sun4i A10 and sun7i A20 > series SoCs. > > Signed-off-by: Priit Laes > --- > drivers/clk/sunxi-ng/Kconfig | 13 +- > drivers/clk/sunxi-ng/Makefile |1 +- > drivers/clk/

Re: [PATCH_v4.1_3/3] Make core_pattern support namespace

2017-08-02 Thread Aleksa Sarai
Currently, each container shared one copy of coredump setting with the host system, if host system changed the setting, each running containers will be affected. Same story happened when container changed core_pattern, both host and other container will be affected. For container based on namespa

[PATCH] direct-io: Minor cleanups in do_blockdev_direct_IO

2017-08-02 Thread Nikolay Borisov
We already get the block counts and the calculate the end block at the beginning of the function. Let's use the local variables for consistency and readability. No functional changes Signed-off-by: Nikolay Borisov --- fs/direct-io.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) dif

[PATCH] kvm: x86: reduce rtc 0x70 access vm-exit time

2017-08-02 Thread Peng Hao
some versions of windows guest access rtc frequently because of rtc as system tick.guest access rtc like this: write register index to 0x70, then write or read data from 0x71. writing 0x70 port is just as index and do nothing else. So writing 0x70 is not necessory to exit to userspace every tim

[PATCH] PCI: rcar-pcie: Fix memory leak when no PCIe card is inserted

2017-08-02 Thread Harunobu Kurokawa
When no PCIe card is inserted, there is a memory leak as pci_free_resource_list is not called before returning. Signed-off-by: Harunobu Kurokawa --- drivers/pci/host/pcie-rcar.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/pci/host/pcie-rcar.c b/drivers/pci/

[PATCH v2 0/4] pmbus: Expand fan support and add MAX31785 driver

2017-08-02 Thread Andrew Jeffery
Hello, v1[1] spent some time in the OpenBMC kernel tree and it shook out a few issues: 1. The machines I was testing against had pre-prammed the installed-bit in FAN_CONFIG_1_2 2. There appears to be a hardware issue with some back-to-back writes to the MAX31785 Point 1. is a policy issue

[PATCH v2 2/4] hwmon: pmbus: Add fan control support

2017-08-02 Thread Andrew Jeffery
Expose fanX_target, pwmX and pwmX_enable hwmon sysfs attributes. Fans in a PMBus device are driven by the configuration of two registers: FAN_CONFIG_x_y and FAN_COMMAND_x: FAN_CONFIG_x_y dictates how the fan and the tacho operate (if installed), while FAN_COMMAND_x sets the desired fan rate. The u

[PATCH v2 4/4] pmbus: max31785: Work around back-to-back writes with FAN_CONFIG_1_2

2017-08-02 Thread Andrew Jeffery
Testing of the pmbus max31785 driver implementation revealed occasional NACKs from the device. Attempting the same transaction immediately after the failure appears to always succeed. The NACK has consistently been observed to happen on the second write of back-to-back writes to the device, where t

[PATCH v2 3/4] pmbus: Add driver for Maxim MAX31785 Intelligent Fan Controller

2017-08-02 Thread Andrew Jeffery
The Maxim MAX31785 is a PMBus device providing closed-loop, multi-channel fan management with temperature and remote voltage sensing. Various fan control features are provided, including PWM frequency control, temperature hysteresis, dual tachometer measurements, and fan health monitoring. The dri

[PATCH v2 1/4] dt-bindings: hwmon: pmbus: Add Maxim MAX31785 documentation

2017-08-02 Thread Andrew Jeffery
Signed-off-by: Andrew Jeffery --- .../devicetree/bindings/hwmon/pmbus/max31785.txt | 126 + 1 file changed, 126 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/pmbus/max31785.txt diff --git a/Documentation/devicetree/bindings/hwmon/pmbus/max31785.t

Re: [PATCH v3 0/6] mediatek: pwm driver add MT2712/MT7622 support

2017-08-02 Thread Zhi Mao
Hi John, Matthais & Thierry, > > Just a gentle ping on this issue again. > Do you have any update? > > Regards, > Zhi On Mon, 2017-07-17 at 11:16 +0800, Zhi Mao wrote: > Hi John, Matthais & PWM Maintainers > > Just a Gentle ping on this issue :) > Is there anything should be modified? > > Reg

Re: [Linux-ima-devel] [PATCH, RESEND 08/12] ima: added parser for RPM data type

2017-08-02 Thread James Morris
On Tue, 1 Aug 2017, Roberto Sassu wrote: > On 8/1/2017 12:27 PM, Christoph Hellwig wrote: > > On Tue, Aug 01, 2017 at 12:20:36PM +0200, Roberto Sassu wrote: > > > This patch introduces a parser for RPM packages. It extracts the digests > > > from the RPMTAG_FILEDIGESTS header section and converts

[PATCH 2/2] i2c: mux: pinctrl: drop the idle_state member

2017-08-02 Thread Peter Rosin
The information is available elsewhere. Signed-off-by: Peter Rosin --- drivers/i2c/muxes/i2c-mux-pinctrl.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/i2c/muxes/i2c-mux-pinctrl.c b/drivers/i2c/muxes/i2c-mux-pinctrl.c index aa4a3bf9507f..20b90a7a1e61 10064

[PATCH 1/2] i2c: mux: pinctrl: remove platform_data

2017-08-02 Thread Peter Rosin
No platform (at least no upstreamed platform) has ever used this platform_data. Just drop it and simplify the code. Signed-off-by: Peter Rosin --- drivers/i2c/muxes/Kconfig | 1 + drivers/i2c/muxes/i2c-mux-pinctrl.c | 219 include/linux/i2c-mux-pi

[PATCH 0/2] i2c: mux: pinctrl: remove platform_data and cleanup

2017-08-02 Thread Peter Rosin
Hi! As previously discussed [1], the platform_data interface of the i2c mux pinctrl driver has never been used (upstream at least). Deleting code is always nice, so here are two patches that gets rid of some lines... Cheers, peda [1] https://lkml.org/lkml/2017/5/22/104 Peter Rosin (2): i2c: m

Re: [v4 2/4] mm, oom: cgroup-aware OOM killer

2017-08-02 Thread Michal Hocko
On Tue 01-08-17 19:13:52, Roman Gushchin wrote: > On Tue, Aug 01, 2017 at 07:03:03PM +0200, Michal Hocko wrote: > > On Tue 01-08-17 16:25:48, Roman Gushchin wrote: > > > On Tue, Aug 01, 2017 at 04:54:35PM +0200, Michal Hocko wrote: > > [...] > > > > I would reap out the oom_kill_process into a sepa

[PATCH v6 2/7] mm: migrate: fix barriers around tlb_flush_pending

2017-08-02 Thread Nadav Amit
Reading tlb_flush_pending while the page-table lock is taken does not require a barrier, since the lock/unlock already acts as a barrier. Removing the barrier in mm_tlb_flush_pending() to address this issue. However, migrate_misplaced_transhuge_page() calls mm_tlb_flush_pending() while the page-ta

[PATCH v6 6/7] mm: fix MADV_[FREE|DONTNEED] TLB flush miss problem

2017-08-02 Thread Nadav Amit
From: Minchan Kim Nadav reported parallel MADV_DONTNEED on same range has a stale TLB problem and Mel fixed it[1] and found same problem on MADV_FREE[2]. Quote from Mel Gorman "The race in question is CPU 0 running madv_free and updating some PTEs while CPU 1 is also running madv_free and looki

[PATCH v6 3/7] Revert "mm: numa: defer TLB flush for THP migration as long as possible"

2017-08-02 Thread Nadav Amit
While deferring TLB flushes is a good practice, the reverted patch caused pending TLB flushes to be checked while the page-table lock is not taken. As a result, in architectures with weak memory model (PPC), Linux may miss a memory-barrier, miss the fact TLB flushes are pending, and cause (in theor

[PATCH v6 4/7] mm: refactoring TLB gathering API

2017-08-02 Thread Nadav Amit
From: Minchan Kim This patch is a preparatory patch for solving race problems caused by TLB batch. For that, we will increase/decrease TLB flush pending count of mm_struct whenever tlb_[gather|finish]_mmu is called. Before making it simple, this patch separates architecture specific part and re

[PATCH v6 1/7] mm: migrate: prevent racy access to tlb_flush_pending

2017-08-02 Thread Nadav Amit
From: Nadav Amit Setting and clearing mm->tlb_flush_pending can be performed by multiple threads, since mmap_sem may only be acquired for read in task_numa_work(). If this happens, tlb_flush_pending might be cleared while one of the threads still changes PTEs and batches TLB flushes. This can le

[PATCH v6 0/7] fixes of TLB batching races

2017-08-02 Thread Nadav Amit
It turns out that Linux TLB batching mechanism suffers from various races. Races that are caused due to batching during reclamation were recently handled by Mel and this patch-set deals with others. The more fundamental issue is that concurrent updates of the page-tables allow for TLB flushes to be

Re: [PATCH v1 04/15] perf, tools: Support weak groups

2017-08-02 Thread Jiri Olsa
On Mon, Jul 24, 2017 at 04:40:04PM -0700, Andi Kleen wrote: > From: Andi Kleen > > Setting up groups can be complicated due to the > complicated scheduling restrictions of different PMUs. > User tools usually don't understand all these restrictions. > Still in many cases it is useful to set up gr

Re: [PATCH v1 03/15] perf, tools, stat: Fix saved values rbtree lookup

2017-08-02 Thread Jiri Olsa
On Mon, Jul 24, 2017 at 04:40:03PM -0700, Andi Kleen wrote: > From: Andi Kleen > > The stat shadow saved values rbtree is indexed by a pointer. > Fix the comparison function: > > - We cannot return a pointer delta as an int because > that loses bits on 64bit. > - Doing pointer arithmetic on the

[PATCH v6 7/7] mm: fix KSM data corruption

2017-08-02 Thread Nadav Amit
From: Minchan Kim Nadav reported KSM can corrupt the user data by the TLB batching race[1]. That means data user written can be lost. Quote from Nadav Amit " For this race we need 4 CPUs: CPU0: Caches a writable and dirty PTE entry, and uses the stale value for write later. CPU1: Runs madvise_

Re: [PATCH v1 02/15] perf, tools: Tighten detection of BPF events

2017-08-02 Thread Jiri Olsa
On Mon, Jul 24, 2017 at 04:40:02PM -0700, Andi Kleen wrote: > From: Andi Kleen > > perf stat -e cpu/uops_executed.core,cmask=1/ > > would be detected as a BPF source event because the .c matches the .c > source BPF pattern. > > Add lookahead to the BPF patterns and reject them if they are follo

[PATCH v6 5/7] mm: make tlb_flush_pending global

2017-08-02 Thread Nadav Amit
From: Minchan Kim Currently, tlb_flush_pending is used only for CONFIG_[NUMA_BALANCING| COMPACTION] but upcoming patches to solve subtle TLB flush batching problem will use it regardless of compaction/NUMA so this patch doesn't remove the dependency. Signed-off-by: Minchan Kim Signed-off-by: Na

Re: [PATCH v2 22/22] fpga: intel: afu: add FPGA_PORT_DMA_MAP/UNMAP ioctls support

2017-08-02 Thread Wu Hao
On Tue, Aug 01, 2017 at 11:15:48AM -0700, Moritz Fischer wrote: > Hi Wu, > > couple of minor things inline below. Hi Moritz, Thanks a lot for your comments. :) I will fix all the problems below in the next version patchset. Thanks Hao > > On Sun, Jun 25, 2017 at 6:52 PM, Wu Hao wrote: > > D

Re: [PATCH v1 05/15] perf, tools: Add missing newline to expr parser error messages

2017-08-02 Thread Jiri Olsa
On Mon, Jul 24, 2017 at 04:40:05PM -0700, Andi Kleen wrote: > From: Andi Kleen > > Signed-off-by: Andi Kleen Acked-by: Jiri Olsa thanks, jirka > --- > tools/perf/util/expr.y | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/perf/util/expr.y b/tools/perf/util/ex

Re: [PATCH] KVM: nVMX: INVPCID support

2017-08-02 Thread Paolo Bonzini
On 01/08/2017 19:37, Radim Krčmář wrote: > > Do you it's less ugly than the other two options? It's awesome, but it's a non-trivial project of its own. :) Paolo

Re: [PATCH 09/28] x86/intel_rdt/cqm: Add RMID(Resource monitoring ID) management

2017-08-02 Thread Shivappa Vikas
On Tue, 1 Aug 2017, Thomas Gleixner wrote: On Tue, 25 Jul 2017, Vikas Shivappa wrote: Hardware uses RMID(Resource monitoring ID) to keep track of each of the RDT events associated with tasks. The number of RMIDs is dependent on the SKU and is enumerated via CPUID. We add support to manage the

Re: [PATCH 2/2] mm: rename global_page_state to global_zone_page_state

2017-08-02 Thread Michal Hocko
On Tue 01-08-17 14:05:20, Andrew Morton wrote: [...] > WARNING: line over 80 characters > #187: FILE: mm/page-writeback.c:1408: > + * global_zone_page_state() too often. So scale it near-sqrt to the safety > margin > > > Liveable with, but the code would be quite a bit neater if we had a > helpe

Re: [PATCH v2] KVM: X86: Fix loss of pending INIT due to race

2017-08-02 Thread Paolo Bonzini
On 02/08/2017 01:05, Wanpeng Li wrote: > From: Wanpeng Li > > When SMP VM start, AP may lost INIT because of receiving INIT between > kvm_vcpu_ioctl_x86_get/set_vcpu_events. > >vcpu 0 vcpu 1 >kvm_vcpu_ioctl_x86_get_vcpu_even

Re: [PATCHv2 08/10] x86/mm: Replace compile-time checks for 5-level with runtime-time

2017-08-02 Thread Juergen Gross
On 01/08/17 21:11, Kirill A. Shutemov wrote: > On Tue, Aug 01, 2017 at 07:14:57PM +0200, Juergen Gross wrote: >> On 01/08/17 16:44, Kirill A. Shutemov wrote: >>> On Tue, Aug 01, 2017 at 09:46:56AM +0200, Juergen Gross wrote: On 26/07/17 18:43, Kirill A. Shutemov wrote: > On Wed, Jul 26, 20

Re: [PATCH] kvm: x86: reduce rtc 0x70 access vm-exit time

2017-08-02 Thread Paolo Bonzini
On 02/08/2017 17:24, Peng Hao wrote: > some versions of windows guest access rtc frequently because of > rtc as system tick.guest access rtc like this: write register index > to 0x70, then write or read data from 0x71. writing 0x70 port is > just as index and do nothing else. So writing 0x70 is

[PATCH 5/6] gpio: mxs: use devres for irq generic chip

2017-08-02 Thread Bartosz Golaszewski
Use resource managed variants of irq_alloc_generic_chip() and irq_setup_generic_chip(). Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-mxs.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-mxs.c b/drivers/gpio/gpio-mxs.c index 6ae583

[PATCH 6/6] gpio: sodaville: use devres for irq generic chip

2017-08-02 Thread Bartosz Golaszewski
Use resource managed variants of irq_alloc_generic_chip() and irq_setup_generic_chip(). Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-sodaville.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-sodaville.c b/drivers/gpio/gpio-soda

[PATCH 4/6] gpio: mxc: use devres for irq generic chip

2017-08-02 Thread Bartosz Golaszewski
Use resource managed variants of irq_alloc_generic_chip() and irq_setup_generic_chip(). Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-mxc.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-mxc.c b/drivers/gpio/gpio-mxc.c index 3abe

[PATCH 2/6] gpio: ml-ioh: use devres for irq generic chip

2017-08-02 Thread Bartosz Golaszewski
Use resource managed variants of irq_alloc_generic_chip() and irq_setup_generic_chip(). Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-ml-ioh.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-ml-ioh.c b/drivers/gpio/gpio-ml-ioh.c index

[PATCH 0/6] gpio: use devres for irq generic chip

2017-08-02 Thread Bartosz Golaszewski
We now provide resource managed versions of irq_alloc_generic_chip() and irq_setup_generic_chip(). Use them in all relevant gpio drivers. Bartosz Golaszewski (6): gpio: sta2x11: use devres for irq generic chip gpio: ml-ioh: use devres for irq generic chip gpio: pch: use devres for irq generi

[PATCH 3/6] gpio: pch: use devres for irq generic chip

2017-08-02 Thread Bartosz Golaszewski
Use resource managed variants of irq_alloc_generic_chip() and irq_setup_generic_chip(). Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-pch.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-pch.c b/drivers/gpio/gpio-pch.c index f6600f8a

[PATCH 1/6] gpio: sta2x11: use devres for irq generic chip

2017-08-02 Thread Bartosz Golaszewski
Use resource managed variants of irq_alloc_generic_chip() and irq_setup_generic_chip(). Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-sta2x11.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/gpio/gpio-sta2x11.c b/drivers/gpio/gpio-sta2x11.c i

[PATCH v2 3/5] phy: rockchip-inno-usb2: add otg mux irq quirk

2017-08-02 Thread Frank Wang
The otg-id/otg-bvalid/linestate irqs are multiplexed to one irq in otg-port on some Rockchip SoCs (e.g RV1108), this patch add a quirk to support this mux irq feature. Signed-off-by: Frank Wang --- drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 68 ++- 1 file changed, 55

[PATCH v2 4/5] dt-bindings: phy-rockchip-inno-usb2: add otg mux irq quirk

2017-08-02 Thread Frank Wang
Add rockchip,otg_mux_irq_quirk property to support the otg-id/ otg-bvalid/linestate irqs that are multiplexed to one irq in otg-port on some special Rockchip SoCs (e.g RV1108). Signed-off-by: Frank Wang --- Documentation/devicetree/bindings/phy/phy-rockchip-inno-usb2.txt | 5 + 1 file change

[PATCH v2 2/5] dt-bindings: phy-rockchip-inno-usb2: add companion grf quirk

2017-08-02 Thread Frank Wang
Add rockchip,usbgrf and rockchip,companion_grf_quirk to support the registers of usb-phy that are distributed in grf and usbgrf on some special Rockchip SoCs (e.g RV1108). Signed-off-by: Frank Wang --- Documentation/devicetree/bindings/phy/phy-rockchip-inno-usb2.txt | 4 1 file changed, 4 i

[PATCH v2 1/5] phy: rockchip-inno-usb2: add companion grf quirk

2017-08-02 Thread Frank Wang
The registers of usb-phy are distributed in grf and usbgrf on some Rockchip SoCs (e.g RV1108), this patch add a quirk to support this companion grf design. Signed-off-by: Frank Wang --- drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 112 +- 1 file changed, 74 insertions(

[PATCH v2 0/5] add some quirks for Rockchip usb2-phy and add rv1108 SoCs' support

2017-08-02 Thread Frank Wang
These series of patches add companion_grf_quirk and otg_mux_irq_quirk for rockchip usb2-phy. In addition, this change also add rv1108 usb2-phy support. Changes from v1: - Send the dt-bindings as a separate patch and cc devicetree list. Frank Wang (5): phy: rockchip-inno-usb2: add companion grf

[PATCH v2 5/5] phy: rockchip-inno-usb2: add support of usb2-phy for rv1108 SoCs

2017-08-02 Thread Frank Wang
This adds support usb2-phy for rv1108 SoCs and amend phy Documentation. Signed-off-by: Frank Wang --- .../bindings/phy/phy-rockchip-inno-usb2.txt| 1 + drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 43 ++ 2 files changed, 44 insertions(+) diff --git a/Documen

[PATCH v2 2/2] Introduce 8250_men_mcb

2017-08-02 Thread Michael Moese
This patch introduces the 8250_men_mcb driver for the MEN 16Z125 IP-Core. This is a 16550-type UART with a 60 byte FIFO. Due to strange old hardware, every board using this IP core requires different values for uartclk. A reasonable default is included in addition to the support of three boards. Ad

[PATCH v2 1/2] mcb: introduce mcb_get_resource()

2017-08-02 Thread Michael Moese
From: Johannes Thumshirn Introduce mcb_get_resource() as a common accessor to a mcb device's memory or IRQ resources. Signed-off-by: Johannes Thumshirn --- drivers/mcb/mcb-core.c | 20 +++- include/linux/mcb.h| 2 ++ 2 files changed, 21 insertions(+), 1 deletion(-) diff -

Re: [PATCH] f2fs: update cur_valid_map_mir together with cur_valid_map

2017-08-02 Thread Yunlong Song
Hi Chao, For the memory overflow or cache bit-transition case, when CHECK_FS is on, should f2fs enter panic or just provide WARNing information? I prefer WARNing, because it is not f2fs's fault, f2fs does not need to pay for it, why not use WARN_ON instead? On 2017/8/2 9:34, Chao Yu wrote:

Re: [PATCH V2] get_maintainer: Prepare for separate MAINTAINERS files

2017-08-02 Thread Joe Perches
On Sun, 2017-07-23 at 13:32 -0700, Joe Perches wrote: > Allow for MAINTAINERS to become a directory and if it is, > read all the files in the directory for maintained sections. ping? > Also look for all files named MAINTAINERS in all subdirectories > excluding the .git directory. > > This adds ~

Re: [PATCH] arc: arcv2: cache: Explicitly set MSB counterpart of region ops addresses

2017-08-02 Thread Alexey Brodkin
Hi Vineet, On Wed, 2017-08-02 at 09:09 +0530, Vineet Gupta wrote: > On 08/01/2017 03:29 PM, Alexey Brodkin wrote: > > > > It is necessary to explicitly set both SLC_AUX_RGN_START1 and > > SLC_AUX_RGN_END1 > > which hold MSB bits of the physical address correspondingly of region start > > and end

Re: [PATCH v2] KVM: nVMX: Fix attempting to emulate "Acknowledge interrupt on exit" when there is no interrupt which L1 requires to inject to L2

2017-08-02 Thread Wanpeng Li
2017-08-02 6:42 GMT+08:00 Wanpeng Li : > 2017-08-02 3:59 GMT+08:00 Radim Krčmář : >> 2017-07-31 19:25-0700, Wanpeng Li: >>> From: Wanpeng Li >>> >>> [ cut here ] >>> WARNING: CPU: 5 PID: 2288 at arch/x86/kvm/vmx.c:11124 >>> nested_vmx_vmexit+0xd64/0xd70 [kvm_intel] >>> C

Re: [PATCH 0/6] Support for LEGO MINDSTORMS EV3 LCD display

2017-08-02 Thread Noralf Trønnes
Den 02.08.2017 00.26, skrev David Lechner: On 08/01/2017 01:08 PM, Noralf Trønnes wrote: (cc: Daniel Vetter) Den 01.08.2017 18.51, skrev David Lechner: On 07/30/2017 12:14 PM, Noralf Trønnes wrote: Den 29.07.2017 21.40, skrev David Lechner: On 07/29/2017 02:17 PM, David Lechner wrote: The

Re: [PATCH 2/5] staging/pi433/pi433_if.c:Removed Coding style issues from pi433_if.h and other dependencies arising from it.

2017-08-02 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Am Di, 1.08.2017, 21:31 schrieb Rishabh Hardas: > Signed-off-by: Rishabh Hardas > --- > drivers/staging/pi433/pi433_if.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/staging/pi433/pi433_if.c > b/drivers/staging/pi433/pi433_if.c >

Re: [PATCH 3/5] staging/pi433/rf69.h:Removed Coding style issues from pi433_if.h and other dependencies arising from it.

2017-08-02 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Am Di, 1.08.2017, 21:31 schrieb Rishabh Hardas: > Signed-off-by: Rishabh Hardas > --- > drivers/staging/pi433/rf69.h | 26 +- > 1 file changed, 13 insertions(+), 13 deletions(-) > > diff --git a/drivers/staging/pi433/rf69.h b/drivers/staging/pi43

Re: [PATCH 1/5] staging/pi433:Removed Coding style issues from pi433_if.h and other dependencies arising from it.

2017-08-02 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Just reviewed, not tested. As far as I can see, there is no technical issue with this patch. I prefer the names of the enumerations in camel case, because then they are a bit shorter. If camel case is unwanted, for sure we need that change. Please mind the allignment.

Re: [RFC][PATCH 1/5] mm: Rework {set,clear,mm}_tlb_flush_pending()

2017-08-02 Thread Peter Zijlstra
On Wed, Aug 02, 2017 at 11:23:12AM +1000, Benjamin Herrenschmidt wrote: > On Wed, 2017-08-02 at 00:59 +0200, Peter Zijlstra wrote: > > > PowerPC for example uses PTESYNC before the TBLIE, so does a SYNC after > > > work? Ben? > > > From what I gather it is not. You have TLBSYNC for it. So the good

Re: rcu_sched stall while waiting in csd_lock_wait()

2017-08-02 Thread Will Deacon
Hi Pratyush, On Wed, Aug 02, 2017 at 09:01:19AM +0530, Pratyush Anand wrote: > I am observing following rcu_sched stall while executing `perf record -a -- > sleep 1` with one of the arm64 platform. It looks like that stalled cpu was > waiting in csd_lock_wait() from where it never came out,and so

Re: [PATCH 0/3] memdelay: memory health metric for systems and workloads

2017-08-02 Thread Michal Hocko
On Fri 28-07-17 15:43:37, Johannes Weiner wrote: > Hi Andrew, > > On Thu, Jul 27, 2017 at 01:43:25PM -0700, Andrew Morton wrote: > > On Thu, 27 Jul 2017 11:30:07 -0400 Johannes Weiner > > wrote: > > > > > This patch series implements a fine-grained metric for memory > > > health. > > > > I ass

Re: [PATCH] mux: include compiler.h from mux/consumer.h

2017-08-02 Thread Ulrich Hecht
On Mon, Jul 31, 2017 at 6:28 PM, Peter Rosin wrote: > On 2017-07-31 18:00, Greg Kroah-Hartman wrote: >> On Mon, Jul 31, 2017 at 12:04:35PM +0200, Peter Rosin wrote: >>> From: Ulrich Hecht >>> >>> Required for __must_check. >>> >>> Signed-off-by: Ulrich Hecht >>> Signed-off-by: Peter Rosin >>> -

Re: [PATCH 4/5] staging/pi433/rf69.c:Removed Coding style issues from pi433_if.h and other dependencies arising from it.

2017-08-02 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Maybe lnaGain should move to lna_gain instead of lnagain (also applies to the headers...) Marcus Am Di, 1.08.2017, 21:31 schrieb Rishabh Hardas: > Signed-off-by: Rishabh Hardas > --- > drivers/staging/pi433/rf69.c | 26 +- > 1 file changed, 13

Re: [PATCH v2] KVM: nVMX: Fix attempting to emulate "Acknowledge interrupt on exit" when there is no interrupt which L1 requires to inject to L2

2017-08-02 Thread Paolo Bonzini
On 02/08/2017 10:05, Wanpeng Li wrote: >>> >>> SDM says that with acknowledge interrupt on exit, bit 31 of the VM-exit >>> interrupt information (valid interrupt) is always set to 1 on >>> EXIT_REASON_EXTERNAL_INTERRUPT. We don't want to break hypervisors >>> expecting an interrupt in that case, s

[PATCH v6 0/3] perf/core: addressing 4x slowdown during per-process profiling of STREAM benchmark on Intel Xeon Phi

2017-08-02 Thread Alexey Budankov
Hi, By default, the userspace perf tool opens per-cpu task-bound events when sampling, so for N logical events requested by the user, the tool will open N * NR_CPUS events. In the kernel, we mux events with a hrtimer, periodically rotating the flexible group list and trying to schedule each group

[PATCH v6 1/3] perf/core: use rb trees for pinned/flexible groups

2017-08-02 Thread Alexey Budankov
This patch moves event groups into rb tree sorted by CPU, so that multiplexing hrtimer interrupt handler would be able skipping to the current CPU's list and ignore groups allocated for the other CPUs. New API for manipulating event groups in the trees is implemented as well as adoption on the

Re: [PATCH 5/5] staging/pi433/rf69_enum.h:Removed Coding style issues from pi433_if.h and other dependencies arising from it.

2017-08-02 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Am Di, 1.08.2017, 21:31 schrieb Rishabh Hardas: > Signed-off-by: Rishabh Hardas > --- > drivers/staging/pi433/rf69_enum.h | 16 > 1 file changed, 8 insertions(+), 8 deletions(-) > > diff --git a/drivers/staging/pi433/rf69_enum.h > b/drivers/staging/pi4

Re: [PATCH] KVM: X86: init irq->level in kvm_pv_kick_cpu_op

2017-08-02 Thread Paolo Bonzini
On 02/08/2017 05:20, Longpeng(Mike) wrote: > 'lapic_irq' is a local variable and its 'level' field isn't > initialized, so 'level' is random, it doesn't matter but > makes UBSAN unhappy: > > UBSAN: Undefined behaviour in .../lapic.c:... > load of value 10 is not a valid value for type '_Bool' > ..

Re: [PATCH v2 00/13] mpt3sas driver NVMe support:

2017-08-02 Thread Hannes Reinecke
On 07/14/2017 03:22 PM, Suganath Prabu S wrote: > Ventura Series controller are Tri-mode. The controller and > firmware are capable of supporting NVMe devices and > PCIe switches to be connected with the controller. This > patch set adds driver level support for NVMe devices and > PCIe switches. >

Re: rcu_sched stall while waiting in csd_lock_wait()

2017-08-02 Thread Peter Zijlstra
On Wed, Aug 02, 2017 at 09:01:19AM +0530, Pratyush Anand wrote: > Hi, > > I am observing following rcu_sched stall while executing `perf record -a -- > sleep 1` with one of the arm64 platform. It looks like that stalled cpu was > waiting in csd_lock_wait() from where it never came out,and so the

Re: [RFC][PATCH 1/5] mm: Rework {set,clear,mm}_tlb_flush_pending()

2017-08-02 Thread Will Deacon
On Wed, Aug 02, 2017 at 10:11:06AM +0200, Peter Zijlstra wrote: > On Wed, Aug 02, 2017 at 11:23:12AM +1000, Benjamin Herrenschmidt wrote: > > On Wed, 2017-08-02 at 00:59 +0200, Peter Zijlstra wrote: > > > > PowerPC for example uses PTESYNC before the TBLIE, so does a SYNC after > > > > work? Ben? >

Re: [PATCH] staging/pi433: Solved some coding style issues in pi433_if.c

2017-08-02 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Thank you :-) Am Di, 1.08.2017, 07:09 schrieb Rishabh Hardas: > From: Rishabh Hardas > > Solved a few coding style issues, used BIT macro to set MINORBITS. > > Signed-off-by: Rishabh Hardas > --- > drivers/staging/pi433/pi433_if.c | 24 ++-- > 1 fi

[PATCH v6 2/3]: perf/core: use context tstamp_data for skipped events on mux interrupt

2017-08-02 Thread Alexey Budankov
Event groups allocated for CPU's different from the one that handles multiplexing hrtimer interrupt may be skipped by interrupt handler however the events tstamp_enabled, tstamp_running and tstamp_stopped fields still need to be updated to have correct timings. To implement that tstamp_data o

[PATCH v6 3/3]: perf/core: add mux switch to skip to the current CPU's events list on mux interrupt

2017-08-02 Thread Alexey Budankov
This patch implements mux switch that triggers skipping to the current CPU's events list at mulitplexing hrtimer interrupt handler as well as adoption of the switch in the existing implementation. perf_event_groups_iterate_cpu() API is introduced to implement iteration thru the certain CPU gro

[PATCH] staging: fsl-mc: fix resource_size.cocci warnings

2017-08-02 Thread Cihangir Akturk
Use resource_size() function on resource objects instead of explicit computation. This patch fixes the following coccinelle warning: drivers/staging/fsl-mc/bus/dprc-driver.c:620:35-38: ERROR: Missing resource_size with mc_dev -> regions Signed-off-by: Cihangir Akturk --- drivers/staging/fsl-mc

Re: [PATCHv2 08/10] x86/mm: Replace compile-time checks for 5-level with runtime-time

2017-08-02 Thread Kirill A. Shutemov
On Wed, Aug 02, 2017 at 09:44:54AM +0200, Juergen Gross wrote: > That did the trick! > > PV domU is coming up now with a 5-level paging enabled kernel. Thanks a lot for helping me up with it. I'll integrate the fixes into patchset. Just, for clarification XEN_PVH works too, right? -- Kirill

Re: [PATCH 1/5] staging/pi433:Removed Coding style issues from pi433_if.h and other dependencies arising from it.

2017-08-02 Thread Dan Carpenter
The subject is too long. On Wed, Aug 02, 2017 at 01:01:55AM +0530, Rishabh Hardas wrote: > This is a 5 patch series which solves coding style issues > as marked by checkpatch.pl in the file pi433_if.h and > contains changes that have to be made in other files as a > consequence of the changes mad

Re: [PATCH 4/6] gpio: mxc: use devres for irq generic chip

2017-08-02 Thread Alexander Stein
Hi, On Wednesday 02 August 2017 09:51:24, Bartosz Golaszewski wrote: > Use resource managed variants of irq_alloc_generic_chip() and > irq_setup_generic_chip(). Is this really useful for drivers which can only be built-in? This is probably valid for the other drives as well. Best regards, Alexa

Re: [PATCH v4 5/8] ARM: dts: TS-4600: add NBUS support

2017-08-02 Thread Linus Walleij
On Fri, Jul 14, 2017 at 10:08 PM, Sebastien Bourdelin wrote: > This commit enables the NBUS on the TS-4600, using the ts-nbus driver. > > --- > Changes v3 -> v4: > - rebase on master > - fix vendor prefixes for dts properties (suggested by Rob Herring) > - v3 was acked by Linus Walleij I A

Re: [PATCH] staging: pi433: reduce stack size in tx thread

2017-08-02 Thread Wolf Entwicklungen
Reviewed-by: Marcus Wolf Maybe tx_buffer is a bit more clearly then buffer. Thanks, Marcus Am Mo, 31.07.2017, 10:57 schrieb Arnd Bergmann: > Putting a 900 byte array on the stack is a clearly too much in the > kernel, and sometimes results in warnings like: > > drivers/staging/pi433/pi433_if.c

Re: [PATCH v5 4/8] bus: add driver for the Technologic Systems NBUS

2017-08-02 Thread Linus Walleij
On Fri, Jul 14, 2017 at 10:32 PM, Sebastien Bourdelin wrote: > This driver implements a GPIOs bit-banged bus, called the NBUS by > Technologic Systems. It is used to communicate with the peripherals in > the FPGA on the TS-4600 SoM. > > Signed-off-by: Sebastien Bourdelin > --- > Changes v4 -> v5

Re: [PATCH v2 10/25] mtd: nand: qcom: reorganize nand devices probing

2017-08-02 Thread Archit Taneja
On 07/19/2017 05:17 PM, Abhishek Sahu wrote: This is reorganization of exiting code and will not change any functionality. The NAND controller supports multiple NAND device with different page size. The subsequent patch allocate memory which depends upon the maximum number of codewords so this

Re: [PATCH V8 1/6] PM / Domains: Add support to select performance-state of domains

2017-08-02 Thread Viresh Kumar
On 31-07-17, 09:44, Viresh Kumar wrote: > On 29-07-17, 10:24, Ulf Hansson wrote: > > Let's invent a new genpd flag, GENPD_FLAG_PERF_STATE! > > > > The creator of the genpd then needs to set this before calling > > pm_genpd_init(). Similar as we are dealing with GENPD_FLAG_PM_CLK. > > > > The requ

[PATCH] scsi: add const to bin_attribute structures

2017-08-02 Thread Bhumika Goyal
Add const to bin_attribute structures as they are only passed to the functions sysfs_{remove/create}_bin_file. The arguments passed are of type const, so declare the structures to be const. Done using Coccinelle. @m disable optional_qualifier@ identifier s; position p; @@ static struct bin_attrib

Re: [PATCH 1/5] staging/pi433:Removed Coding style issues from pi433_if.h and other dependencies arising from it.

2017-08-02 Thread Dan Carpenter
This patch is going to break the build. Every patch has to be able to be compiled so we can use git bisect. You'll need to redo the whole series. regards, dan carpenter

Re: [PATCH 08/11] ata: Drop unnecessary static

2017-08-02 Thread Linus Walleij
On Sat, Jul 15, 2017 at 10:07 PM, Julia Lawall wrote: > Drop static on a local variable, when the variable is initialized before > any possible use. Thus, the static has no benefit. > > The semantic patch that fixes this problem is as follows: > (http://coccinelle.lip6.fr/) > > // > @bad exists

Re: [PATCH 2/2] platform: x86: add ACPI driver for ChromeOS.

2017-08-02 Thread Enric Balletbo Serra
Hi Andy, 2017-08-01 17:17 GMT+02:00 Andy Shevchenko : > On Mon, Jul 31, 2017 at 4:03 PM, Enric Balletbo i Serra > wrote: > >> This driver attaches to the Chromeos ACPI device and the exports the values >> reported by the ACPI in a sysfs directory. All ACPI values are presented in >> the string fo

Re: [PATCH] watchdog: coh901327_wdt: constify watchdog_ops structure

2017-08-02 Thread Linus Walleij
On Sat, Jul 8, 2017 at 2:33 AM, Gustavo A. R. Silva wrote: > Check for watchdog_ops structures that are only stored in the ops field of > a watchdog_device structure. This field is declared const, so watchdog_ops > structures that have this property can be declared as const also. > > This issue w

Re: [PATCH] pinctrl: bcm2835: constify gpio_chip structure

2017-08-02 Thread Linus Walleij
On Tue, Jul 11, 2017 at 8:03 PM, Gustavo A. R. Silva wrote: > This structure is only used to copy into other structure, so declare > it as const. > > This issue was detected using Coccinelle and the following semantic patch: > > @r disable optional_qualifier@ > identifier i; > position p; > @@ >

Re: [PATCH 4/6] gpio: mxc: use devres for irq generic chip

2017-08-02 Thread Bartosz Golaszewski
2017-08-02 10:09 GMT+02:00 Alexander Stein : > Hi, > > On Wednesday 02 August 2017 09:51:24, Bartosz Golaszewski wrote: >> Use resource managed variants of irq_alloc_generic_chip() and >> irq_setup_generic_chip(). > > Is this really useful for drivers which can only be built-in? This is probably >

Re: wake_wide mechanism clarification

2017-08-02 Thread Michael Wang
Hi, Joel On 07/29/2017 10:13 AM, Joel Fernandes wrote: > +Michael Wang on his current email address (old one bounced). (my > reply was to Mike Galbraith but I also meant to CC Michael Wang for > the discussion). Thanks Just back from vacation and saw this long long discussion... I think guys exp

[PATCH v2 00/23] Support more devices on rockchip rv1108

2017-08-02 Thread Andy Yan
This series try to support i2c/spi/pwm/saradc/pmic/watchdog and the full clk tree on rockchip rv1108 soc. Changes in v2: - split the rename and intentation fix part from id patch - split the new added clks and rename. - add compatible string "rockchip,rv1108-pwm" - add compatible string "rockchip

Re: [PATCH 2/5] staging/pi433/pi433_if.c:Removed Coding style issues from pi433_if.h and other dependencies arising from it.

2017-08-02 Thread Dan Carpenter
The subject is too vague. The patch prefix isn't right. Do `git log --oneline drivers/staging/pi433/` to see what other people are doing: 99859541a92d staging: pi433: use div_u64 for 64-bit division 056eeda2f9e6 staging: pi433: Style fix - align block comments 775f6ab013d3 staging: pi433: Make f

Re: [PATCH] pinctrl: qcom: ssbi: mpp: constify gpio_chip structure

2017-08-02 Thread Linus Walleij
On Tue, Jul 11, 2017 at 11:18 PM, Gustavo A. R. Silva wrote: > This structure is only used to copy into another structure, so declare > it as const. > > This issue was detected using Coccinelle and the following semantic patch: > > @r disable optional_qualifier@ > identifier i; > position p; > @@

Re: [PATCH] arc: arcv2: cache: Explicitly set MSB counterpart of region ops addresses

2017-08-02 Thread Vineet Gupta
On 08/02/2017 01:33 PM, Alexey Brodkin wrote: - write_aux_reg(ARC_REG_SLC_RGN_END, (paddr + sz + l2_line_sz - 1)); - write_aux_reg(ARC_REG_SLC_RGN_START, paddr); + end = paddr + sz + l2_line_sz - 1; + write_aux_reg(ARC_REG_SLC_RGN_END1, upper_32_bits(end)); + write

[PATCH v2 01/23] clk: rockchip: add more clk ids for rv1108

2017-08-02 Thread Andy Yan
From: Elaine Zhang Add new clk ids for the peripherals on rv1108 soc. Signed-off-by: Elaine Zhang Signed-off-by: Andy Yan --- Changes in v2: - split the rename and intentation fix part include/dt-bindings/clock/rv1108-cru.h | 93 +- 1 file changed, 92 insert

[PATCH v2 1/2] mm, oom: do not rely on TIF_MEMDIE for memory reserves access

2017-08-02 Thread Michal Hocko
With the follow up changes based on Tetsuo review. I have dropped Roman's Tested-by because at least the allocation exit for oom victim behavior has changed. --- commit b1cfab26a98d48d69dc106d0e0ab616728b04992 Author: Michal Hocko Date: Wed Jul 26 16:38:40 2017 +0200 mm, oom: do not rely on

Re: [PATCH] gpio: altera-a10sr: constify gpio_chip structure

2017-08-02 Thread Linus Walleij
On Wed, Jul 12, 2017 at 12:15 AM, Gustavo A. R. Silva wrote: > This structure is only used to copy into another structure, so declare > it as const. > > This issue was detected using Coccinelle and the following semantic patch: > > @r disable optional_qualifier@ > identifier i; > position p; > @@

[PATCH v2 02/23] clk: rockchip: rename the clk id for HCLK_I2S1_2CH

2017-08-02 Thread Andy Yan
From: Elaine Zhang i2s1 has 2 channels but not 8 channels. Signed-off-by: Elaine Zhang Signed-off-by: Andy Yan --- Changes in v2: None include/dt-bindings/clock/rv1108-cru.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/dt-bindings/clock/rv1108-cru.h b/include

  1   2   3   4   5   6   7   8   9   10   >