[PATCH v3 3/9] xen/pvh: Import PVH-related Xen public interfaces

2017-02-06 Thread Boris Ostrovsky
Signed-off-by: Boris Ostrovsky Reviewed-by: Juergen Gross Reviewed-by: Konrad Rzeszutek Wilk --- include/xen/interface/elfnote.h| 12 ++- include/xen/interface/hvm/hvm_vcpu.h | 143 + include/xen/interface/hvm/start_info.h | 98 ++

[PATCH v3 6/9] xen/pvh: Initialize grant table for PVH guests

2017-02-06 Thread Boris Ostrovsky
Like PV guests, PVH does not have PCI devices and therefore cannot use MMIO space to store grants. Instead it balloons out memory and keeps grants there. Signed-off-by: Boris Ostrovsky Reviewed-by: Juergen Gross --- drivers/xen/grant-table.c | 8 1 file changed, 4 insertions(+), 4 dele

[PATCH v3 9/9] xen/pvh: Use Xen's emergency_restart op for PVH guests

2017-02-06 Thread Boris Ostrovsky
Using native_machine_emergency_restart (called during reboot) will lead PVH guests to machine_real_restart() where we try to use real_mode_header which is not initialized. Signed-off-by: Boris Ostrovsky Reviewed-by: Juergen Gross --- arch/x86/xen/enlighten.c | 3 +++ 1 file changed, 3 insertio

[PATCH v3 1/9] x86/boot/32: Convert the 32-bit pgtable setup code from assembly to C

2017-02-06 Thread Boris Ostrovsky
The new Xen PVH entry point requires page tables to be setup by the kernel since it is entered with paging disabled. Pull the common code out of head_32.S so that mk_early_pgtbl_32() can be invoked from both the new Xen entry point and the existing startup_32() code. Convert resulting common code

[PATCH v3 8/9] xen/pvh: Enable CPU hotplug

2017-02-06 Thread Boris Ostrovsky
PVH guests don't (yet) receive ACPI hotplug interrupts and therefore need to monitor xenstore for CPU hotplug event. Signed-off-by: Boris Ostrovsky Reviewed-by: Juergen Gross --- drivers/xen/cpu_hotplug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/xen/cpu_hotplu

Re: linux-next: build warning after merge of the tty tree

2017-02-06 Thread Ulrich Hecht
On Mon, Feb 6, 2017 at 9:50 AM, Greg KH wrote: > On Mon, Feb 06, 2017 at 03:16:38PM +1100, Stephen Rothwell wrote: >> Hi Greg, >> >> After merging the tty tree, today's linux-next build >> (arm_multi_v7_defconfig) produced this warning: >> >> drivers/tty/serial/sh-sci.c:977:12: warning: 'scif_set_

Re: [RFC PATCH] perf/stat: Add --disable-hwdt

2017-02-06 Thread Borislav Petkov
On Mon, Feb 06, 2017 at 09:23:33AM -0500, Vince Weaver wrote: > minor issue, but is it possibly to do anything about dmesg spam? From > what I recall every time you enable and disable the watchdog the kernel > prints a message. Makes for messy logs, especially when you run the > perf_fuzzer as

[PATCH] x86/acpi: keep x86_cpu_to_acpiid mapping valid on cpu hotplug

2017-02-06 Thread Vitaly Kuznetsov
We may or may not have all possible CPUs in MADT on boot but in any case we're overwriting x86_cpu_to_acpiid mapping with U32_MAX when acpi_register_lapic() is called again on the CPU hotplug path: acpi_processor_hotadd_init() -> acpi_map_cpu() -> acpi_register_lapic(). As we have the required acp

[PATCH v3 5/9] xen/pvh: Make sure we don't use ACPI_IRQ_MODEL_PIC for SCI

2017-02-06 Thread Boris Ostrovsky
Since we are not using PIC and (at least currently) don't have IOAPIC we want to make sure that acpi_irq_model doesn't stay set to ACPI_IRQ_MODEL_PIC (which is the default value). If we allowed it to stay then acpi_os_install_interrupt_handler() would try (and fail) to request_irq() for PIC. Inste

Re: [PATCHv7 4/8] printk: always use deferred printk when flush printk_safe lines

2017-02-06 Thread Steven Rostedt
On Tue, 7 Feb 2017 01:42:53 +0900 Sergey Senozhatsky wrote: > On (02/06/17 08:27), Steven Rostedt wrote: > [..] > > > > > just in case, the patch (which I prefer to be ignored) > > > > > > > > let's keep printk_safe_flush_line(). > > > > > > I do not have strong opinion but I would slig

[PATCH v3 0/9] PVH v2 support (domU)

2017-02-06 Thread Boris Ostrovsky
PVHv2 support for unprivileged guests. Changes in v3: * See patches 4 and 5 Boris Ostrovsky (9): x86/boot/32: Convert the 32-bit pgtable setup code from assembly to C xen/x86: Remove PVH support xen/pvh: Import PVH-related Xen public interfaces xen/pvh: Bootstrap PVH guest xen/pvh: Make

Re: [PATCH 1/6] genirq: allow assigning affinity to present but not online CPUs

2017-02-06 Thread Christoph Hellwig
On Mon, Feb 06, 2017 at 12:03:05PM -0500, Keith Busch wrote: > Can we use the online CPUs and create a new hot-cpu notifier to the nvme > driver to free/reallocate as needed? We were doing that before blk-mq. Now > blk-mq can change the number hardware contexts on a live queue, so we > can reintrod

[PATCH v3 4/9] xen/pvh: Bootstrap PVH guest

2017-02-06 Thread Boris Ostrovsky
Start PVH guest at XEN_ELFNOTE_PHYS32_ENTRY address. Setup hypercall page, initialize boot_params, enable early page tables. Since this stub is executed before kernel entry point we cannot use variables in .bss which is cleared by kernel. We explicitly place variables that are initialized here int

Re: [PATCH] [net-next?] hns: avoid stack overflow with CONFIG_KASAN

2017-02-06 Thread David Miller
From: Arnd Bergmann Date: Fri, 3 Feb 2017 17:35:46 +0100 > The use of ACCESS_ONCE() looks like a micro-optimization to force gcc to use > an indexed load for the register address, but it has an absolutely detrimental > effect on builds with gcc-5 and CONFIG_KASAN=y, leading to a very likely > ke

[PATCH] mm/autonuma: don't use set_pte_at when updating protnone ptes

2017-02-06 Thread Aneesh Kumar K.V
Architectures like ppc64, use privilege access bit to mark pte non accessible. This implies that kernel can do a copy_to_user to an address marked for numa fault. This also implies that there can be a parallel hardware update for the pte. set_pte_at cannot be used in such scenarios. Hence switch t

Re: [PATCH 3/5] drm: convert drivers to use of_graph_get_remote_node

2017-02-06 Thread Rob Herring
On Mon, Feb 06, 2017 at 10:29:33AM +, Liviu Dudau wrote: > On Fri, Feb 03, 2017 at 09:36:33PM -0600, Rob Herring wrote: > > Convert drivers to use the new of_graph_get_remote_node() helper > > instead of parsing the endpoint node and then getting the remote device > > node. Now drivers can just

Re: [PATCH] perf/x86/intel/pt: Allow disabling branch tracing

2017-02-06 Thread Andi Kleen
On Mon, Feb 06, 2017 at 06:05:29PM +0200, Alexander Shishkin wrote: > Andi Kleen writes: > > > Alexander Shishkin writes: > > > >> Now that Intel PT supports more types of trace content than just branch > >> tracing, it may be useful to allow the user to disable branch tracing > >> when it is no

[PATCH 3/4] staging:r8188eu: update pkt->(data|tail|len) synchronously with rx_(data|tail|len) in recv_frame structure

2017-02-06 Thread Ivan Safonov
Original driver code uses rx_* members to store skb (pkt) fields (instead of pkt->* members), pkt->* updated only after data completely formed, not in process. Update pkt->* after data buffer changed (with rx_*). Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/rtw_recv.h | 5 +

[PATCH 4/4] staging:r8188eu: replace recv_frame->rx_(data|len|tail) with pkt->(data|len|tail) and remove unused recvframe_(put|pull|pull_tail)()

2017-02-06 Thread Ivan Safonov
recv_frame->rx_(data|len|tail) duplicate pkt (skb) data|len|tail members and require special functions recvframe_(put|pull|pull_tail)() instead of skb_(put|pull|trim). Replace rx_(data|len|tail) with pkt->(data|len|tail), remove rx_(data|len|tail) and remove recvframe_(put|pull|pull_tail)(). Signe

[PATCH 1/4] staging:r8188eu: replace rx_end member of recv_frame with pkt->end

2017-02-06 Thread Ivan Safonov
rx_end is duplication of pkt->end pointer. pkt->end is preferred, because it is native skb field supported by skb_*() functions. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/rtw_recv.h | 3 +-- drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c | 1 - 2 files changed, 1 in

Re: [PATCH v9 3/3] watchdog: zx2967: add watchdog controller driver for ZTE's zx2967 family

2017-02-06 Thread Mathieu Poirier
On Sat, Feb 04, 2017 at 09:34:15AM +0800, Baoyou Xie wrote: > This patch adds watchdog controller driver for ZTE's zx2967 family. > Reviewed-by: Mathieu Poirier > Signed-off-by: Baoyou Xie > --- > drivers/watchdog/Kconfig | 10 ++ > drivers/watchdog/Makefile | 1 + > drivers/watch

[PATCH 2/4] staging:r8188eu: remove unused rtw_ieee80211_bar structure definition

2017-02-06 Thread Ivan Safonov
rtw_ieee80211_bar structure definition does not used. Remove it. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/include/wifi.h | 15 --- 1 file changed, 15 deletions(-) diff --git a/drivers/staging/rtl8188eu/include/wifi.h b/drivers/staging/rtl8188eu/include/wifi.h index

Re: [PATCH 3/5] drm: convert drivers to use of_graph_get_remote_node

2017-02-06 Thread Liviu Dudau
On Mon, Feb 06, 2017 at 11:09:49AM -0600, Rob Herring wrote: > On Mon, Feb 06, 2017 at 10:29:33AM +, Liviu Dudau wrote: > > On Fri, Feb 03, 2017 at 09:36:33PM -0600, Rob Herring wrote: > > > Convert drivers to use the new of_graph_get_remote_node() helper > > > instead of parsing the endpoint n

Re: [PATCH v8 3/3] thermal: zx2967: add thermal driver for ZTE's zx2967 family

2017-02-06 Thread Mathieu Poirier
On Sat, Feb 04, 2017 at 11:39:57AM +0800, Baoyou Xie wrote: > This patch adds thermal driver for ZTE's zx2967 family. > > Signed-off-by: Baoyou Xie > --- > drivers/thermal/Kconfig | 8 ++ > drivers/thermal/Makefile | 1 + > drivers/thermal/zx2967_thermal.c | 255 > +

Re: Linux 4.9.6 ( Restore IO-APIC irq_chip retrigger callback , breaks my box )

2017-02-06 Thread Gabriel C
On 26.01.2017 08:48, Greg KH wrote: Hi Greg, I'm announcing the release of the 4.9.6 kernel. Somewhat late , however I didn't tested 4.9.6 but jumped from 4.9.5 to 4.9.7 and found out by box won't boot anymore. It hangs early and freeze with a lot RCU warnings. Since I cannot setup a netco

Re: [PATCH 4/5] drm: convert drivers to use drm_of_find_panel_or_bridge

2017-02-06 Thread Rob Herring
On Mon, Feb 06, 2017 at 11:03:01AM +0100, Maxime Ripard wrote: > Hi Rob, > > On Fri, Feb 03, 2017 at 09:36:34PM -0600, Rob Herring wrote: > > Similar to the previous commit, convert drivers open coding OF graph > > parsing to use drm_of_find_panel_or_bridge instead. > > > > This changes some erro

Re: [RFC 1/1] shiftfs: uid/gid shifting bind mount

2017-02-06 Thread James Bottomley
On Mon, 2017-02-06 at 09:38 -0600, l...@pengaru.com wrote: > On Mon, Feb 06, 2017 at 07:18:16AM -0800, James Bottomley wrote: > > On Mon, 2017-02-06 at 09:50 -0500, Theodore Ts'o wrote: > > > On Sun, Feb 05, 2017 at 10:46:23PM -0800, James Bottomley wrote: > > > > Yes, I know the problem. However,

Re: [PATCH] somedriver: remove the initialization of static pointers.

2017-02-06 Thread Mathieu Poirier
On Sun, Feb 05, 2017 at 08:12:26AM +0100, AbdAllah MEZITI wrote: > On Sun, 5 Feb 2017 01:29:43 +0100 > Greg Kroah-Hartman wrote: > > > On Sat, Feb 04, 2017 at 08:39:21PM +0100, AbdAllah-MEZITI wrote: > > > In C a static pointer will be initialized to NULL (e.g: draft C99 > > > standard $6.7.8): "

Re: [PATCH 3/5] drm: convert drivers to use of_graph_get_remote_node

2017-02-06 Thread Russell King - ARM Linux
On Mon, Feb 06, 2017 at 05:23:06PM +, Liviu Dudau wrote: > On Mon, Feb 06, 2017 at 11:09:49AM -0600, Rob Herring wrote: > > On Mon, Feb 06, 2017 at 10:29:33AM +, Liviu Dudau wrote: > > > On Fri, Feb 03, 2017 at 09:36:33PM -0600, Rob Herring wrote: > > > > - /* add the remote encoder p

Re: [PATCH v3 03/14] mm: use pmd lock instead of racy checks in zap_pmd_range()

2017-02-06 Thread Kirill A. Shutemov
On Mon, Feb 06, 2017 at 10:32:10AM -0600, Zi Yan wrote: > On 6 Feb 2017, at 10:07, Kirill A. Shutemov wrote: > > > On Sun, Feb 05, 2017 at 11:12:41AM -0500, Zi Yan wrote: > >> From: Zi Yan > >> > >> Originally, zap_pmd_range() checks pmd value without taking pmd lock. > >> This can cause pmd_prot

Re: Linux 4.9.6 ( Restore IO-APIC irq_chip retrigger callback , breaks my box )

2017-02-06 Thread Greg KH
On Mon, Feb 06, 2017 at 06:30:15PM +0100, Gabriel C wrote: > > On 26.01.2017 08:48, Greg KH wrote: > > Hi Greg, > > > I'm announcing the release of the 4.9.6 kernel. > > > Somewhat late , however I didn't tested 4.9.6 but jumped from 4.9.5 to 4.9.7 > and found out by box won't boot anymore. >

Re: [PATCH 3/5] drm: convert drivers to use of_graph_get_remote_node

2017-02-06 Thread Rob Herring
On Mon, Feb 6, 2017 at 11:23 AM, Liviu Dudau wrote: > On Mon, Feb 06, 2017 at 11:09:49AM -0600, Rob Herring wrote: >> On Mon, Feb 06, 2017 at 10:29:33AM +, Liviu Dudau wrote: >> > On Fri, Feb 03, 2017 at 09:36:33PM -0600, Rob Herring wrote: >> > > Convert drivers to use the new of_graph_get_re

Re: [PATCH 2/5] drm: of: introduce drm_of_find_panel_or_bridge

2017-02-06 Thread Philipp Zabel
On Mon, 2017-02-06 at 10:53 -0600, Rob Herring wrote: > On Mon, Feb 06, 2017 at 11:42:48AM +0100, Philipp Zabel wrote: > > On Fri, 2017-02-03 at 21:36 -0600, Rob Herring wrote: > > > Many drivers have a common pattern of searching the OF graph for either an > > > attached panel or bridge and then f

Re: [PATCH] clocksource: arm_arch_timer: print timer value at init time

2017-02-06 Thread Mark Rutland
On Sat, Feb 04, 2017 at 09:41:18AM +0100, Daniel Lezcano wrote: > On Mon, Dec 19, 2016 at 09:47:37AM -0800, Olof Johansson wrote: > > This is useful to get an indication of how much time we spent in firmware. > > > > It's not guaranteed that the timer started at 0 on reset, so it's just > > an app

Re: [PATCH 4/6] xfs: use memalloc_nofs_{save,restore} instead of memalloc_noio*

2017-02-06 Thread Michal Hocko
On Mon 06-02-17 07:39:23, Matthew Wilcox wrote: > On Mon, Feb 06, 2017 at 03:07:16PM +0100, Michal Hocko wrote: > > +++ b/fs/xfs/xfs_buf.c > > @@ -442,17 +442,17 @@ _xfs_buf_map_pages( > > bp->b_addr = NULL; > > } else { > > int retried = 0; > > - unsigned noio

Re: [PATCH 2/4] tools lib traceevent: Robustify do_generate_dynamic_list_file

2017-02-06 Thread Arnaldo Carvalho de Melo
Em Wed, Feb 01, 2017 at 10:38:02PM -0800, David Carrillo-Cisneros escreveu: > The dynamic-list-file used to export dynamic symbols introduced in > > commit e3d09ec8126f ("tools lib traceevent: Export dynamic symbols > used by traceevent plugins") > > is generated without any sort of error checkin

Re: Regression on next-20170203 spi/for-next 3f87493930a0f qemu on x86_64

2017-02-06 Thread Luis R. Rodriguez
ommit of the branch which fixed that > :-) > > IOW, the fix should be: > > aaaec6fc7554 ("x86/irq: Make irq activate operations symmetric") > > It is on its way to stable too, as we speak. I've taken this patch and applied it on top of next-20170203 and confir

Re: [PATCH v2] PCI: pciehp: Don't enable PME on runtime suspend

2017-02-06 Thread Bjorn Helgaas
On Mon, Feb 06, 2017 at 06:54:37AM +0100, Lukas Wunner wrote: > Since commit 68db9bc81436 ("PCI: pciehp: Add runtime PM support for PCIe > hotplug ports") we runtime suspend a hotplug port to D3hot when all its > children are runtime suspended or none are present. > > When runtime suspending the p

Re: [PATCH 3/5] drm: convert drivers to use of_graph_get_remote_node

2017-02-06 Thread Liviu Dudau
On Mon, Feb 06, 2017 at 05:34:07PM +, Russell King - ARM Linux wrote: > On Mon, Feb 06, 2017 at 05:23:06PM +, Liviu Dudau wrote: > > On Mon, Feb 06, 2017 at 11:09:49AM -0600, Rob Herring wrote: > > > On Mon, Feb 06, 2017 at 10:29:33AM +, Liviu Dudau wrote: > > > > On Fri, Feb 03, 2017 a

Re: [PATCH v4 2/2] staging: lustre: move else if statement to a single line

2017-02-06 Thread Joe Perches
On Mon, 2017-02-06 at 11:13 -0500, Maksymilian Piechota wrote: > diff --git a/drivers/staging/wlan-ng/prism2mgmt.c > b/drivers/staging/wlan-ng/prism2mgmt.c [] > @@ -1307,8 +1307,7 @@ int prism2mgmt_wlansniff(struct wlandevice *wlandev, > void *msgp) > && (msg->prismheader.data =

Re: [PATCH] Documentation: devicetree: Add PHY no lane swap binding

2017-02-06 Thread Florian Fainelli
On 02/06/2017 06:15 AM, Lukasz Majewski wrote: > Hi Florian, Andrew, > >> Le 02/04/17 à 09:23, Andrew Lunn a écrit : >>> On Sat, Feb 04, 2017 at 04:47:47PM +0100, Lukasz Majewski wrote: Add the documentation to avoid PHY lane swapping. This is a boolean entry to notify the phy device dri

[PATCH v2] Staging: omap4iss: Fix coding style issues

2017-02-06 Thread Avraham Shukron
Fixes line-over-80-characters issues as well as multiline comments style. Signed-off-by: Avraham Shukron --- drivers/staging/media/omap4iss/iss_video.c | 41 -- 1 file changed, 27 insertions(+), 14 deletions(-) diff --git a/drivers/staging/media/omap4iss/iss_video.c

Re: pciehp is broken from 4.10-rc1

2017-02-06 Thread Bjorn Helgaas
On Sun, Feb 05, 2017 at 08:34:54AM +0100, Lukas Wunner wrote: > On Sat, Feb 04, 2017 at 08:22:59PM -0800, Yinghai Lu wrote: > > On Sat, Feb 4, 2017 at 3:34 PM, Lukas Wunner wrote: > > > On Sat, Feb 04, 2017 at 01:44:34PM -0800, Yinghai Lu wrote: > > >> On Sat, Feb 4, 2017 at 10:56 AM, Lukas Wunner

Re: [PATCH 3/5] drm: convert drivers to use of_graph_get_remote_node

2017-02-06 Thread Russell King - ARM Linux
On Mon, Feb 06, 2017 at 05:55:33PM +, Liviu Dudau wrote: > OK, I will fix the driver if Rob's patch still requires it. I don't think you ever needed it. As Rob says, what you're testing won't ever change unless you're using overlays - it's certainly not dependent on the tda998x module being l

Re: [v5,3/7] rtc: ac100: Add RTC driver for X-Powers AC100

2017-02-06 Thread Rask Ingemann Lambertsen
On Mon, Feb 06, 2017 at 11:29:07AM +0800, Chen-Yu Tsai wrote: > On Mon, Feb 6, 2017 at 5:33 AM, Rask Ingemann Lambertsen > wrote: > > >8 > > Subject: [PATCH] ARM: sunxi_defconfig: Enable AC100 RTC driver > > > > Enable the AC100 RTC driver so boards with i

Re: [PATCH 11/89] sched/headers, delayacct: Move the 'struct task_delay_info' definition from to

2017-02-06 Thread Linus Torvalds
On Mon, Feb 6, 2017 at 5:28 AM, Ingo Molnar wrote: > The 'struct task_delay_info' definition does not have to be in sched.h, > because task_struct only has a pointer to it. > > So move it to to reduce the size of . > > As an additional improvement make the type defined but empty in the > !CONFIG_

[PATCH] cpumask: use nr_cpumask_bits for parsing functions

2017-02-06 Thread Tejun Heo
513e3d2d11c9 ("cpumask: always use nr_cpu_ids in formatting and parsing functions") converted both cpumask printing and parsing functions to use nr_cpu_ids instead of nr_cpumask_bits. While this was okay for the printing functions as it just picked one of the two output formats that we were altern

Re: [PATCH 4/4] tools include: Fix include path for uapi/asm-generic/mman.h

2017-02-06 Thread Arnaldo Carvalho de Melo
Em Wed, Feb 01, 2017 at 10:38:04PM -0800, David Carrillo-Cisneros escreveu: > commit f3539c12d819 ("tools include: Add uapi mman.h for each architecture") > > copied include/uapi/linux/mman.h into tools/include/uapi/linux/mman.h > but did not update the include path for uapi/asm-generic/mman.h. Fi

Re: [PATCH] MAINTAINERS: drop broken reference to i2c/trivial-devices

2017-02-06 Thread Jonathan Cameron
On 06/02/17 16:54, Wolfram Sang wrote: > Due to RST rework, the reference to i2c/trivial-devices was changed, but the > result is broken. However, let's just drop the whole reference, since it > doesn't make sense in the first place to reference this "global" file > for a single driver. > > Fixes:

Re: [PATCH 0/3 v2] PM / docs: linux/pm.h kerneldocs update and conversion of two docs to reST

2017-02-06 Thread Jonathan Corbet
On Thu, 02 Feb 2017 01:30:08 +0100 "Rafael J. Wysocki" wrote: > This is a new (and hopefully final) iteration of the series of patches > starting > the conversion of power management driver API documentation. > > Patch [1/3] updates kerneldoc comments in include/linux/pm.h (to make the > docume

Re: [PATCH] scatterlist: don't overflow length field

2017-02-06 Thread David Dillow
+Jens, Christoph, and Ming based on off-list suggestion On Fri, Feb 3, 2017 at 11:57 AM, Linus Torvalds wrote: > > On Wed, Feb 1, 2017 at 1:29 PM, David Dillow wrote: > > When called with a region of contiguous pages totaling > 4 GB of memory, > > sg_alloc_table_from_pages() will overflow the le

Re: [PATCH] platform/x86: intel_pmc_ipc: read s0ix residency API

2017-02-06 Thread Rajneesh Bhardwaj
; > url: > https://github.com/0day-ci/linux/commits/Shanth-Murthy/platform-x86-intel_pmc_ipc-read-s0ix-residency-API/20170206-213213 > config: i386-randconfig-x007-201706 (attached as .config) > compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 > reproduce: > # save t

Re: [PATCH 4/6] xfs: use memalloc_nofs_{save,restore} instead of memalloc_noio*

2017-02-06 Thread Darrick J. Wong
On Mon, Feb 06, 2017 at 06:44:15PM +0100, Michal Hocko wrote: > On Mon 06-02-17 07:39:23, Matthew Wilcox wrote: > > On Mon, Feb 06, 2017 at 03:07:16PM +0100, Michal Hocko wrote: > > > +++ b/fs/xfs/xfs_buf.c > > > @@ -442,17 +442,17 @@ _xfs_buf_map_pages( > > > bp->b_addr = NULL; > > > }

Re: [PATCH v9 3/3] iio: adc: add support for Allwinner SoCs ADC

2017-02-06 Thread Jonathan Cameron
On 06/02/17 07:37, Quentin Schulz wrote: > Hi Jonathan, > > On 14/01/2017 20:28, Jonathan Cameron wrote: >> >> >> On 14 January 2017 19:19:58 GMT+00:00, Quentin Schulz >> wrote: >>> Hi Jonathan, >>> >>> On 08/01/2017 12:17, Jonathan Cameron wrote: On 30/12/16 14:40, Jonathan Cameron wrote:

Re: Regression: Failed boots bisected to 4cd13c21b207 "softirq: Let ksoftirqd do its job"

2017-02-06 Thread Will Deacon
Hi all, I've also stumbled over this issue with the ARM fastmodel and, somewhat embarrassingly, blamed the model developers for the regression. I'm using NFS and copying ~14MB file from NFS to a virtio-blk device which takes over 20 minutes with 4cd13c21b207, but <1 min with it reverted. I also t

Re: [PATCH] mm/autonuma: don't use set_pte_at when updating protnone ptes

2017-02-06 Thread Rik van Riel
On Mon, 2017-02-06 at 22:36 +0530, Aneesh Kumar K.V wrote: > Architectures like ppc64, use privilege access bit to mark pte non > accessible. > This implies that kernel can do a copy_to_user to an address marked > for numa fault. > This also implies that there can be a parallel hardware update for

Re: [PATCH 4/6] xfs: use memalloc_nofs_{save,restore} instead of memalloc_noio*

2017-02-06 Thread Michal Hocko
On Mon 06-02-17 10:32:37, Darrick J. Wong wrote: > On Mon, Feb 06, 2017 at 06:44:15PM +0100, Michal Hocko wrote: > > On Mon 06-02-17 07:39:23, Matthew Wilcox wrote: > > > On Mon, Feb 06, 2017 at 03:07:16PM +0100, Michal Hocko wrote: > > > > +++ b/fs/xfs/xfs_buf.c > > > > @@ -442,17 +442,17 @@ _xfs_

Re: [PATCHv2 1/2] arch: Move CONFIG_DEBUG_RODATA and CONFIG_SET_MODULE_RONX to be common

2017-02-06 Thread Laura Abbott
On 02/03/2017 01:08 PM, Kees Cook wrote: > On Fri, Feb 3, 2017 at 12:29 PM, Russell King - ARM Linux > wrote: >> On Fri, Feb 03, 2017 at 11:45:56AM -0800, Kees Cook wrote: >>> On Fri, Feb 3, 2017 at 9:52 AM, Laura Abbott wrote: diff --git a/arch/Kconfig b/arch/Kconfig index 99839c2..22e

Re: [PATCHv2 2/2] arch: Rename CONFIG_DEBUG_RODATA and CONFIG_DEBUG_MODULE_RONX

2017-02-06 Thread Laura Abbott
On 02/03/2017 12:03 PM, Kees Cook wrote: > On Fri, Feb 3, 2017 at 9:52 AM, Laura Abbott wrote: >> >> Both of these options are poorly named. The features they provide are >> necessary for system security and should not be considered debug only. >> Change the name to something that accurately descr

Re: Regression: Failed boots bisected to 4cd13c21b207 "softirq: Let ksoftirqd do its job"

2017-02-06 Thread Russell King - ARM Linux
On Mon, Feb 06, 2017 at 06:46:19PM +, Will Deacon wrote: > Converting the smc91x driver over to NAPI would probably solve this problem, > but given the "vintage" of this code, I'd be more tempted by a simpler > point fix if only I could think of one. I'm not sure if converting it to NAPI would

[PATCH v21 00/13] acpi, clocksource: add GTDT driver and GTDT support in arm_arch_timer

2017-02-06 Thread fu . wei
From: Fu Wei This patchset: (1)Preparation for adding GTDT support in arm_arch_timer: 1. Introduce two functions to get the frequency from mmio and sysreg. 2. separate out device-tree code from arch_timer_detect_rate 3. remove arch_timer_detect_rate use arch_timer_get_

[PATCH v21 01/13] clocksource: arm_arch_timer: introduce two functions to get the frequency from mmio and sysreg.

2017-02-06 Thread fu . wei
From: Fu Wei The patch introduce two new functions: arch_timer_get_sysreg_freq and arch_timer_get_mmio_freq, and applys them in arch_timer_detect_rate. These will be used for getting the frequency from mmio and sysreg to prepare for reworking counter frequency detection. Signed-off-by: Fu Wei -

[PATCH v21 02/13] clocksource: arm_arch_timer: separate out device-tree code from arch_timer_detect_rate

2017-02-06 Thread fu . wei
From: Fu Wei Currently, the counter frequency detection call(arch_timer_detect_rate) include getting the frequency from the device-tree property. But reading device-tree property will be needed only when system boot with device-tree. This patch separate out device-tree code, keep them in device-

[PATCH v21 03/13] clocksource: arm_arch_timer: remove arch_timer_detect_rate

2017-02-06 Thread fu . wei
From: Fu Wei The original counter frequency detection call(arch_timer_detect_rate) include getting the frequency from the per-cpu arch-timer and the memory-mapped (MMIO) timer interfaces. But they will be needed only when the system initializes the relevant timer. This patch remove arch_timer_de

[PATCH v21 04/13] clocksource: arm_arch_timer: split arch_timer_rate for different types of timer

2017-02-06 Thread fu . wei
From: Fu Wei Currently, arch_timer_rate is used to store the frequency got from per-cpu arch-timer or the memory-mapped (MMIO) timers. But those values come from different registers which should all be initialized by firmware. This patch remove arch_timer_rate, and use arch_timer_sysreg_freq and

[PATCH v21 05/13] clocksource: arm_arch_timer: refactor arch_timer_needs_probing

2017-02-06 Thread fu . wei
From: Fu Wei When system init with device-tree, we don't know which node will be initialized first. And the code in arch_timer_common_init should wait until per-cpu timer and MMIO timer are both initialized. So we need arch_timer_needs_probing to detect the init status of system. But currently t

[PATCH v21 07/13] clocksource: arm_arch_timer: introduce some new structs to prepare for GTDT

2017-02-06 Thread fu . wei
From: Fu Wei The patch introduce two new structs: arch_timer_mem, arch_timer_mem_frame. And also introduce a new define: ARCH_TIMER_MEM_MAX_FRAMES These will be used for refactoring the memory-mapped timer init code to prepare for GTDT Signed-off-by: Fu Wei Reviewed-by: Hanjun Guo --- includ

[PATCH v21 08/13] clocksource: arm_arch_timer: refactor MMIO timer probing.

2017-02-06 Thread fu . wei
From: Fu Wei Currently the code to probe MMIO architected timers mixes DT parsing with actual poking of hardware. This makes the code harder than necessary to understand, and makes it difficult to add support for probing via ACPI. This patch factors all the DT-specific logic out of arch_timer_me

[PATCH v21 09/13] acpi/arm64: Add GTDT table parse driver

2017-02-06 Thread fu . wei
From: Fu Wei This patch adds support for parsing arch timer info in GTDT, provides some kernel APIs to parse all the PPIs and always-on info in GTDT and export them. By this driver, we can simplify arm_arch_timer drivers, and separate the ACPI GTDT knowledge from it. Signed-off-by: Fu Wei Sign

[PATCH v21 11/13] acpi/arm64: Add memory-mapped timer support in GTDT driver

2017-02-06 Thread fu . wei
From: Fu Wei On platforms booting with ACPI, architected memory-mapped timers' configuration data is provided by firmware through the ACPI GTDT static table. The clocksource architected timer kernel driver requires a firmware interface to collect timer configuration and configure its driver. thi

[PATCH v21 10/13] clocksource: arm_arch_timer: simplify ACPI support code.

2017-02-06 Thread fu . wei
From: Fu Wei The patch update arm_arch_timer driver to use the function provided by the new GTDT driver of ACPI. By this way, arm_arch_timer.c can be simplified, and separate all the ACPI GTDT knowledge from this timer driver. Signed-off-by: Fu Wei Signed-off-by: Hanjun Guo Tested-by: Xiongfen

[PATCH v21 13/13] acpi/arm64: Add SBSA Generic Watchdog support in GTDT driver

2017-02-06 Thread fu . wei
From: Fu Wei This driver adds support for parsing SBSA Generic Watchdog timer in GTDT, parse all info in SBSA Generic Watchdog Structure in GTDT, and creating a platform device with that information. This allows the operating system to obtain device data from the resource of platform device. The

[PATCH v21 12/13] clocksource: arm_arch_timer: add GTDT support for memory-mapped timer

2017-02-06 Thread fu . wei
From: Fu Wei The patch add memory-mapped timer register support by using the information provided by the new GTDT driver of ACPI. Signed-off-by: Fu Wei Reviewed-by: Hanjun Guo --- drivers/clocksource/arm_arch_timer.c | 35 --- 1 file changed, 32 insertions(+),

[PATCH v21 06/13] clocksource: arm_arch_timer: move arch_timer_needs_of_probing into DT init call

2017-02-06 Thread fu . wei
From: Fu Wei Because arch_timer_needs_of_probing is only for booting with device-tree, but arch_timer_common_init is a generic init call which shouldn't include the FW-specific code. It's better to put arch_timer_needs_of_probing into DT init function. But for per-cpu timer, the arch_timer_commo

Re: 答复: [PATCH] adc: add adc driver for Hisilicon BVT SOCs

2017-02-06 Thread Jonathan Cameron
On 06/02/17 12:19, liurenzhong wrote: > Hi Jonathan, Hi Allen, > > Thanks for your suggestion, I'm sorry to reply after a long time . > This is some problems ask for your advice: Not to worry on time, we are all busy people. I've had patches that have taken me literally years to reply to reviews

RE: [PATCH 00/12] Cqm2: Intel Cache quality monitoring fixes

2017-02-06 Thread Luck, Tony
Digging through the e-mails from last week to generate a new version of the requirements I looked harder at this: > 12) Whatever fs or syscall is provided instead of perf syscalls, it > should provide total_time_enabled in the way perf does, otherwise is > hard to interpret MBM values. This looks

Re: [PATCH 2/4] iio: chemical: add driver for dsm501/ppd42ns particle sensors

2017-02-06 Thread Jonathan Cameron
On 06/02/17 06:52, Matt Ranostay wrote: > >> On Feb 5, 2017, at 08:24, Tomasz Duszynski wrote: >> >> Thanks for review! >> >>> On Sun, Feb 05, 2017 at 04:19:47PM +0100, Peter Meerwald-Stadler wrote: >>> This patch adds support for dsm501 and ppd42ns particle sensors. >>> >>> quick comments b

Re: crypto: atmel - Fix authenc compile test warnings

2017-02-06 Thread kbuild test robot
-warnings/20170206-171201 base: https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master config: tile-allmodconfig (attached as .config) compiler: tilegx-linux-gcc (GCC) 4.6.2 reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin

Re: Linux 4.9.6 ( Restore IO-APIC irq_chip retrigger callback , breaks my box )

2017-02-06 Thread Ruslan Ruslichenko -X (rruslich - GLOBALLOGIC INC at Cisco)
On 02/06/2017 07:41 PM, Greg KH wrote: On Mon, Feb 06, 2017 at 06:30:15PM +0100, Gabriel C wrote: On 26.01.2017 08:48, Greg KH wrote: Hi Greg, I'm announcing the release of the 4.9.6 kernel. Somewhat late , however I didn't tested 4.9.6 but jumped from 4.9.5 to 4.9.7 and found out by box wo

Re: [PATCH net-next v5 3/4] net: phy: Allow pre-declaration of MDIO devices

2017-02-06 Thread Florian Fainelli
On 02/06/2017 05:48 AM, Andrew Lunn wrote: >> diff --git a/include/linux/mod_devicetable.h >> b/include/linux/mod_devicetable.h >> index 8a57f0b1242d..8850fcaf50db 100644 >> --- a/include/linux/mod_devicetable.h >> +++ b/include/linux/mod_devicetable.h >> @@ -501,6 +501,7 @@ struct platform_device

Re: [PATCH v9] perf: add qcom l2 cache perf events driver

2017-02-06 Thread Leeder, Neil
Hi Mark, Thanks for those comments - I'll add the fixes. On 2/6/2017 10:48 AM, Mark Rutland wrote: I'm still concerned by this use of the filter_match callback, because it depends on the set of other active events, and can change as other events are scheduled in and out. When we schedule in two

Re: mm: deadlock between get_online_cpus/pcpu_alloc

2017-02-06 Thread Dmitry Vyukov
On Mon, Jan 30, 2017 at 4:48 PM, Dmitry Vyukov wrote: > On Sun, Jan 29, 2017 at 6:22 PM, Vlastimil Babka wrote: >> On 29.1.2017 13:44, Dmitry Vyukov wrote: >>> Hello, >>> >>> I've got the following deadlock report while running syzkaller fuzzer >>> on f37208bc3c9c2f811460ef264909dfbc7f605a60: >>>

Re: [PATCH net-next v5 3/4] net: phy: Allow pre-declaration of MDIO devices

2017-02-06 Thread Florian Fainelli
On 02/06/2017 06:04 AM, Andrew Lunn wrote: >> +/** >> + * mdio_register_board_info - register MDIO devices for a given board >> + * @info: array of devices descriptors >> + * @n: number of descriptors provided >> + * Context: can sleep >> + * >> + * The board info passed can be marked with __initda

[PATCH RFC 1/2] driver core: allow EPROBE_DEFER after boot

2017-02-06 Thread Tadeusz Struk
Currently EPROBE_DEFER error code is only honored by the core during boot time, where the deferred probes are triggered by the late_initcall. After boot, if a driver returns EPROBE_DEFER for whatever reason, during manual insmod, it is not handled, as there is nothing to trigger the driver_deferred

Re: [PATCH net-next v1 6/7] bpf: Use the bpf_load_program() from the library

2017-02-06 Thread Mickaël Salaün
On 06/02/2017 16:30, Daniel Borkmann wrote: > On 02/06/2017 12:14 AM, Mickaël Salaün wrote: >> Replace bpf_prog_load() with bpf_load_program() calls. >> >> Use the tools include directory instead of the installed one to allow >> builds from other kernels. >> >> Signed-off-by: Mickaël Salaün >> Cc

Re: [PATCH] net: phy: dp83867: Fix for automatically detected PHYs

2017-02-06 Thread Alexey Brodkin
Hi Florian, all, On Fri, 2017-02-03 at 10:34 -0800, Florian Fainelli wrote: > On 02/03/2017 09:30 AM, Alexey Brodkin wrote: > > > > Hi Andrew, > > > > On Fri, 2017-02-03 at 18:10 +0100, Andrew Lunn wrote: > > > > > > On Fri, Feb 03, 2017 at 07:52:37PM +0300, Alexey Brodkin wrote: > > > > > > >

[PATCH RFC 2/2] IB/hfi1: Fix port ordering issue in a multiport device

2017-02-06 Thread Tadeusz Struk
Some hardware has multiple HFIs within the same ASIC, each one on a sepatate bus number. In some devices the numbers labeled on the faceplate of the device don't match the PCI bus order, and the result is that the devices (ports) are probed in the opposite order of their port numbers. The result is

Re: [PATCH v3 3/3] PCI: imx6: Add code to support i.MX7D

2017-02-06 Thread Andrey Smirnov
On Mon, Feb 6, 2017 at 7:33 AM, Lucas Stach wrote: > Am Montag, den 06.02.2017, 07:17 -0800 schrieb Andrey Smirnov: >> Add various bits of code needed to support i.MX7D variant of the IP. >> >> Cc: yurov...@gmail.com >> Cc: Lucas Stach >> Cc: Bjorn Helgaas >> Cc: Fabio Estevam >> Cc: Rob Herrin

Re: [PATCH net-next v1 6/7] bpf: Use the bpf_load_program() from the library

2017-02-06 Thread Daniel Borkmann
On 02/06/2017 08:16 PM, Mickaël Salaün wrote: On 06/02/2017 16:30, Daniel Borkmann wrote: On 02/06/2017 12:14 AM, Mickaël Salaün wrote: Replace bpf_prog_load() with bpf_load_program() calls. Use the tools include directory instead of the installed one to allow builds from other kernels. Signe

Re: [PATCH 7/8] asus-wireless: Export ids list

2017-02-06 Thread João Paulo Rechi Vita
On 4 February 2017 at 10:35, Andy Shevchenko wrote: > On Wed, Feb 1, 2017 at 2:23 PM, João Paulo Rechi Vita > wrote: >> On 27 January 2017 at 10:36, Andy Shevchenko >> wrote: >>> On Thu, Jan 26, 2017 at 5:30 PM, João Paulo Rechi Vita >>> wrote: > > Fill commit message, btw. > Signed-off-

Re: [PATCH net-next v1 7/7] bpf: Always test unprivileged programs

2017-02-06 Thread Mickaël Salaün
On 06/02/2017 17:09, Alexei Starovoitov wrote: > On 2/5/17 3:14 PM, Mickaël Salaün wrote: >> -if (unpriv && test->prog_type) >> -continue; >> +if (!test->prog_type) { >> +if (!unpriv) >> +set_admin(false); >> +printf("#%d/u %s ",

Re: [PATCH v3 1/7] drm: Add DRM support for tiny LCD displays

2017-02-06 Thread Noralf Trønnes
Den 06.02.2017 10.17, skrev Thierry Reding: On Tue, Jan 31, 2017 at 05:03:13PM +0100, Noralf Trønnes wrote: tinydrm provides helpers for very simple displays that can use CMA backed framebuffers and need flushing on changes. Signed-off-by: Noralf Trønnes Acked-by: Daniel Vetter --- Changes

[PATCH] net: phy: dp83867: Fall-back to default values of clock delay and FIFO depth

2017-02-06 Thread Alexey Brodkin
Given there're default values mentioned in the PHY datasheet fall-back gracefully to them instead of silently return an error through the whole call-chain. This allows to use minimalistic description in DT if no special features are required. Signed-off-by: Alexey Brodkin Cc: Murali Karicheri C

Re: [PATCH 03/10] Input: synaptics-rmi4 - f30/f03: Forward mechanical buttons on buttonpads to PS/2 guest

2017-02-06 Thread Dmitry Torokhov
Hi Benjamin, On Tue, Jan 10, 2017 at 05:11:21PM +0100, Benjamin Tissoires wrote: > +void rmi_f03_commit_buttons(struct rmi_function *fn) > +{ > + struct f03_data *f03 = dev_get_drvdata(&fn->dev); > + int i; > + > + f03->serio->extra_byte = f03->overwrite_buttons; > + > + for (i = 0

Re: [PATCH] selftest: cpufreq: Update MAINTAINERS file

2017-02-06 Thread Shuah Khan
On 02/06/2017 03:38 AM, Viresh Kumar wrote: > On 20-01-17, 11:10, Viresh Kumar wrote: >> Update MAINTAINERS file with cpufreq's selftest directory. >> >> Signed-off-by: Viresh Kumar >> --- >> Hi shuah, >> >> Can you please add this one as well along with the code? Thanks. >> >> MAINTAINERS | 1 +

Re: [PATCH RFC 2/2] IB/hfi1: Fix port ordering issue in a multiport device

2017-02-06 Thread Jason Gunthorpe
On Mon, Feb 06, 2017 at 11:15:33AM -0800, Tadeusz Struk wrote: > Some hardware has multiple HFIs within the same ASIC, each one on a > sepatate bus number. In some devices the numbers labeled on the > faceplate of the device don't match the PCI bus order, and the result > is that the devices (ports

Re: [PATCH 00/10] Add binding from PS/2 to SMBus for Synaptics and Elan

2017-02-06 Thread Dmitry Torokhov
Hi Benjamin, On Mon, Jan 30, 2017 at 02:05:39PM +0100, Benjamin Tissoires wrote: > Hi Dmitri, > > On Tue, Jan 10, 2017 at 5:11 PM, Benjamin Tissoires > wrote: > > Hi, > > > > Well, this is the last series which enables RMI4 over SMBus for the Thinkpad > > t*40, t*50, t*60 series. Few comments on

Re: [PATCH 02/10] Input: synaptics-rmi4 - Add rmi_find_function()

2017-02-06 Thread Dmitry Torokhov
On Tue, Jan 10, 2017 at 05:11:20PM +0100, Benjamin Tissoires wrote: > If a function needs to communicate with an other, it's better to have > a way to retrieve this other. > > Reviewed-by: Andrew Duggan > Signed-off-by: Benjamin Tissoires Applied, thank you. > --- > drivers/input/rmi4/rmi_dri

Re: [Xen-devel] [PATCH v3 4/9] xen/pvh: Bootstrap PVH guest

2017-02-06 Thread kbuild test robot
Hi Boris, [auto build test WARNING on xen-tip/linux-next] [also build test WARNING on v4.10-rc7] [cannot apply to next-20170206] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Boris-Ostrovsky

[PATCH] scripts/spelling.txt: fix incorrect typo-words

2017-02-06 Thread Ross Zwisler
Fix up some incorrect typo-words. Signed-off-by: Ross Zwisler --- This applies cleanly to mmots/master and v4.10-rc6-mmots-2017-02-02-16-28. --- scripts/spelling.txt | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/spelling.txt b/scripts/spelling.txt index 201d

<    2   3   4   5   6   7   8   9   10   11   >