Re: [PATCH V7 1/8] ACPI: I/O Remapping Table (IORT) initial support

2016-07-26 Thread Christopher Covington
Hi Marc, On 06/22/2016 09:34 PM, Hanjun Guo wrote: > On 2016/6/22 22:51, Marc Zyngier wrote: >> On 22/06/16 14:52, Tomasz Nowicki wrote: >>> On 22.06.2016 15:25, Marc Zyngier wrote: On 22/06/16 13:35, Tomasz Nowicki wrote: > IORT shows representation of IO topology for ARM based systems.

Re: [PATCHv5 wl-drv-next 0/2] register-field manipulation macros

2016-07-26 Thread Jakub Kicinski
On Tue, 26 Jul 2016 16:00:04 +0300, Kalle Valo wrote: > Jakub Kicinski writes: > > > On Wed, 6 Jul 2016 17:19:35 +0100, Jakub Kicinski wrote: > >> Hi! > >> > >> I've added few lines about the compilation problems in > >> the commit message of patch 1. I would prefer the mass > >> rename of

Re: [PATCH] genirq/msi: Make sure PCI MSIs are activated early

2016-07-26 Thread Thomas Gleixner
On Tue, 26 Jul 2016, Thomas Gleixner wrote: > On Mon, 25 Jul 2016, Bjorn Helgaas wrote: > > On Mon, Jul 25, 2016 at 09:45:13AM +0200, Thomas Gleixner wrote: > > I thought the original issue [1] was that PCI_MSI_FLAGS_ENABLE was being > > written before PCI_MSI_ADDRESS_LO. That doesn't sound like a

Re: [PATCH] power:bq27xxx: 27000/10 read FLAGS register as single

2016-07-26 Thread Andrew F. Davis
On 07/18/2016 11:12 AM, H. Nikolaus Schaller wrote: > The bq27000 and bq27010 have a single byte FLAGS register. > Other gauges have 16 bit FLAGS registers. > > For reading the FLAGS register it is sufficient to read the single > register instead of reading RSOC at the next higher address as > wel

Re: [Xen-devel] [PATCH linux v3 0/9] xen: pvhvm: support bootup on secondary vCPUs

2016-07-26 Thread David Vrabel
On 26/07/16 13:30, Vitaly Kuznetsov wrote: > It may happen that Xen's and Linux's ideas of vCPU id diverge. In > particular, when we crash on a secondary vCPU we may want to do kdump > and unlike plain kexec where we do migrate_to_reboot_cpu() we try booting > on the vCPU which crashed. This doesn'

Re: PROBLEM: Intel I210AT NIC resets while using PCI passthrough on ESXi (regression)

2016-07-26 Thread Thomas Gleixner
On Tue, 26 Jul 2016, Foster Snowhill wrote: > On 26.07.16 14:46, Thomas Gleixner wrote: > > Can you please try whether the replacement patch below fixes your issue as > > well? > This one doesn't fix the issue, getting resets again. Patch applied to HEAD > (commit e65805251f2db69c9f67ed8062ab82526

Re: [PATCHv5 wl-drv-next 0/2] register-field manipulation macros

2016-07-26 Thread Kalle Valo
Jakub Kicinski writes: > On Wed, 6 Jul 2016 17:19:35 +0100, Jakub Kicinski wrote: >> Hi! >> >> I've added few lines about the compilation problems in >> the commit message of patch 1. I would prefer the mass >> rename of macros in mt7601u not to be part of this series >> so patch 2 is left as

Re: PROBLEM: Intel I210AT NIC resets while using PCI passthrough on ESXi (regression)

2016-07-26 Thread Foster Snowhill
On 26.07.16 14:46, Thomas Gleixner wrote: > Can you please try whether the replacement patch below fixes your issue as > well? This one doesn't fix the issue, getting resets again. Patch applied to HEAD (commit e65805251f2db69c9f67ed8062ab82526be5a374). [4.377316] igb: Intel(R) Gigabit Ether

Re: [PATCH] README: Mention when 386 support ended + update obsolete 386 paths

2016-07-26 Thread Øyvind A . Holm
On 26 July 2016 at 14:12, Jonathan Corbet wrote: > On Tue, 26 Jul 2016 09:45:43 +0200 Øyvind A. Holm > wrote: > > - Compiling the kernel with "Processor type" set higher than 386 > > will result in a kernel that does NOT work on a 386. The > > - kernel will detect this on bootup, and give up.

Re: [PATCH 0/5] Candidate fixes for premature OOM kills with node-lru v2

2016-07-26 Thread Mel Gorman
On Tue, Jul 26, 2016 at 05:11:30PM +0900, Joonsoo Kim wrote: > > These patches did not OOM for me on a 2G 32-bit KVM instance while running > > a stress test for an hour. Preliminary tests on a 64-bit system using a > > parallel dd workload did not show anything alarming. > > > > If an OOM is dete

Re: bcache super block corruption with non 4k pages

2016-07-26 Thread Kent Overstreet
On Tue, Jul 26, 2016 at 02:32:31PM +0200, Stefan Bader wrote: > On 26.07.2016 12:21, Kent Overstreet wrote: > > On Tue, Jul 26, 2016 at 11:51:25AM +0200, Stefan Bader wrote: > >> On 21.07.2016 10:58, Stefan Bader wrote: > >>> I was pointed at the thread which seems to address the same after > >>> I

Is reading from /proc/self/smaps thread-safe?

2016-07-26 Thread Marcin Ślusarz
Hey I have a simple program that mmaps 8MB of anonymous memory, spawns 16 threads, reads /proc/self/smaps in each thread and looks up whether mapped address can be found in smaps. From time to time it's not there. Is this supposed to work reliably? My guess is that libc functions allocate memory

Re: next build: 74 warnings 0 failures (next/next-20160726)

2016-07-26 Thread Arnd Bergmann
On Tuesday, July 26, 2016 2:08:21 AM CEST Olof's autobuilder wrote: > Warnings: > 1 drivers/infiniband/core/cma.c:1242:12: warning: > 'src_addr_storage.sin_addr.s_addr' may be used uninitialized in this function > [-Wmaybe-uninitialized] > 1 drivers/tty/serial/8250/8250_fintek.c:34:0:

Re: [PATCH v9 5/9] acpi/arm64: Add GTDT table parse driver

2016-07-26 Thread Fu Wei
Hi Rafael, On 26 July 2016 at 19:50, Rafael J. Wysocki wrote: > On Monday, July 25, 2016 11:27:03 PM fu@linaro.org wrote: >> From: Fu Wei >> >> This patch adds support for parsing arch timer in GTDT, >> provides some kernel APIs to parse all the PPIs and >> always-on info in GTDT and export

Re: master build: 2 failures 3 warnings (v4.7-1605-ge658052)

2016-07-26 Thread Arnd Bergmann
On Tuesday, July 26, 2016 1:29:55 PM CEST Build bot for Mark Brown wrote: > Tree/Branch: master > Git describe: v4.7-1605-ge658052 > Commit: e65805251f Merge branch 'irq-core-for-linus' of > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip > > Build Time: 106 min 43 sec > > Passed:7 / 9

Re: bcache super block corruption with non 4k pages

2016-07-26 Thread Stefan Bader
On 26.07.2016 12:21, Kent Overstreet wrote: > On Tue, Jul 26, 2016 at 11:51:25AM +0200, Stefan Bader wrote: >> On 21.07.2016 10:58, Stefan Bader wrote: >>> I was pointed at the thread which seems to address the same after >>> I wrote most of below text. Did not want to re-write this so please >>> b

[PATCH linux v3 4/9] x86/xen: use xen_vcpu_id mapping for HYPERVISOR_vcpu_op

2016-07-26 Thread Vitaly Kuznetsov
HYPERVISOR_vcpu_op() passes Linux's idea of vCPU id as a parameter while Xen's idea is expected. In some cases these ideas diverge so we need to do remapping. Convert all callers of HYPERVISOR_vcpu_op() to use xen_vcpu_nr(). Leave xen_fill_possible_map() and xen_filter_cpu_maps() intact as they're

[PATCH] mmc: sdhci-esdhc-imx: avoid unused function warnings

2016-07-26 Thread Arnd Bergmann
The driver has just gained a slightly incorrect pm-sleep implementation that causes warnings when CONFIG_PM is set but CONFIG_PM_SLEEP is not: drivers/mmc/host/sdhci-esdhc-imx.c:1302:12: error: 'sdhci_esdhc_resume' defined but not used [-Werror=unused-function] static int sdhci_esdhc_resume(str

[PATCH] clocksource: j-core: type fix init function return code

2016-07-26 Thread Arnd Bergmann
The CLOCKSOURCE_OF_DECLARE now takes a function that returns an 'int', but a this new clocksource driver has just appeared in linux-next and causes a warning because it has the old 'void' return value: In file included from ../include/linux/clocksource.h:18:0, from ../include/li

[PATCH linux v3 6/9] xen/events: use xen_vcpu_id mapping in events_base

2016-07-26 Thread Vitaly Kuznetsov
EVTCHNOP_bind_ipi and EVTCHNOP_bind_virq pass vCPU id as a parameter and Xen's idea of vCPU id should be used. Use the newly introduced xen_vcpu_id mapping to convert it from Linux's id. Signed-off-by: Vitaly Kuznetsov --- Changes since v1: - Use xen_vcpu_nr() helper [David Vrabel] --- drivers/x

[PATCH linux v3 8/9] xen/evtchn: use xen_vcpu_id mapping

2016-07-26 Thread Vitaly Kuznetsov
Use the newly introduced xen_vcpu_id mapping to get Xen's idea of vCPU id for CPU0. Signed-off-by: Vitaly Kuznetsov --- Changes since v1: - Use xen_vcpu_nr() helper [David Vrabel] --- drivers/xen/evtchn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/xen/evtchn.c

[PATCH linux v3 7/9] xen/events: fifo: use xen_vcpu_id mapping

2016-07-26 Thread Vitaly Kuznetsov
EVTCHNOP_init_control has vCPU id as a parameter and Xen's idea of vCPU id should be used. Use the newly introduced xen_vcpu_id mapping to convert it from Linux's id. Signed-off-by: Vitaly Kuznetsov --- Changes since v1: - Use xen_vcpu_nr() helper [David Vrabel] --- drivers/xen/events/events_fif

[PATCH linux v3 9/9] xen/pvhvm: run xen_vcpu_setup() for the boot CPU

2016-07-26 Thread Vitaly Kuznetsov
Historically we didn't call VCPUOP_register_vcpu_info for CPU0 for PVHVM guests (while we had it for PV and ARM guests). This is usually fine as we can use vcpu info in the sared_info page but when we try booting on a vCPU with Xen's vCPU id > 31 (e.g. when we try to kdump after crashing on this CP

[PATCH linux v3 5/9] x86/xen: use xen_vcpu_id mapping when pointing vcpu_info to the shared_info page

2016-07-26 Thread Vitaly Kuznetsov
shared_info page has space for 32 vcpu info slots for first 32 vCPUs but these are the first 32 vCPUs from Xen's perspective and we should map them accordingly with the newly introduced xen_vcpu_id mapping. Signed-off-by: Vitaly Kuznetsov --- Changes since v1: - Use xen_vcpu_nr() helper [David Vr

[PATCH linux v3 0/9] xen: pvhvm: support bootup on secondary vCPUs

2016-07-26 Thread Vitaly Kuznetsov
It may happen that Xen's and Linux's ideas of vCPU id diverge. In particular, when we crash on a secondary vCPU we may want to do kdump and unlike plain kexec where we do migrate_to_reboot_cpu() we try booting on the vCPU which crashed. This doesn't work very well for PVHVM guests as we have a numb

[PATCH linux v3 2/9] x86/acpi: store ACPI ids from MADT for future usage

2016-07-26 Thread Vitaly Kuznetsov
Currently we don't save ACPI ids (unlike LAPIC ids which go to x86_cpu_to_apicid) from MADT and we may need this information later. Particularly, ACPI ids is the only existent way for a PVHVM Xen guest to figure out Xen's idea of its vCPUs ids before these CPUs boot and in some cases these ids dive

[PATCH linux v3 1/9] x86/xen: update cpuid.h from Xen-4.7

2016-07-26 Thread Vitaly Kuznetsov
Update cpuid.h header from xen hypervisor tree to get XEN_HVM_CPUID_VCPU_ID_PRESENT definition. Signed-off-by: Vitaly Kuznetsov --- arch/x86/include/asm/xen/cpuid.h | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/x86/include/asm/xen/cpuid.h b/arch/x86/include/asm/xen

[PATCH linux v3 3/9] xen: introduce xen_vcpu_id mapping

2016-07-26 Thread Vitaly Kuznetsov
It may happen that Xen's and Linux's ideas of vCPU id diverge. In particular, when we crash on a secondary vCPU we may want to do kdump and unlike plain kexec where we do migrate_to_reboot_cpu() we try booting on the vCPU which crashed. This doesn't work very well for PVHVM guests as we have a numb

[PATCH] lkdtm: fix maybe-uninitialized warning

2016-07-26 Thread Arnd Bergmann
The do_usercopy_stack() function uses uninitialized stack data to initialize more of the stack, which causes a warning in some configurations (ARM allmodconfig): drivers/misc/lkdtm_usercopy.c:52:15: warning: 'bad_stack' may be used uninitialized in this function [-Wmaybe-uninitialized] The warn

[PATCH v10 8/8] acpi/arm64: Add SBSA Generic Watchdog support in GTDT driver

2016-07-26 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 v10 5/8] clocksource/drivers/arm_arch_timer: Simplify ACPI support code.

2016-07-26 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 --- drivers/clocks

[PATCH v10 2/8] clocksource/drivers/arm_arch_timer: Add a new enum for spi type

2016-07-26 Thread fu . wei
From: Fu Wei This patch add a new enum "spi_nr" and use it in the driver. Just for code's readability, no functional change. Signed-off-by: Fu Wei --- drivers/clocksource/arm_arch_timer.c | 4 ++-- include/clocksource/arm_arch_timer.h | 6 ++ 2 files changed, 8 insertions(+), 2 deletions(-

[PATCH v10 3/8] clocksource/drivers/arm_arch_timer: Improve printk relevant code

2016-07-26 Thread fu . wei
From: Fu Wei This patch defines pr_fmt(fmt) for all pr_* functions, then the pr_* doesn't need to add "arch_timer:" everytime. Also delete some Blank Spaces in arch_timer_banner, according to the suggestion from checkpatch.pl. No functional change. Signed-off-by: Fu Wei --- drivers/clocksour

[PATCH v10 4/8] acpi/arm64: Add GTDT table parse driver

2016-07-26 Thread fu . wei
From: Fu Wei This patch adds support for parsing arch timer 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 Signed-of

[PATCH v10 6/8] acpi/arm64: Add memory-mapped timer support in GTDT driver

2016-07-26 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 v10 7/8] clocksource/drivers/arm_arch_timer: Add GTDT support for memory-mapped timer

2016-07-26 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 --- drivers/clocksource/arm_arch_timer.c | 127 ++- 1 file changed, 124 insertions(+), 3 deletions(-) diff --

[PATCH v10 0/8] acpi, clocksource: add GTDT driver and GTDT support in arm_arch_timer

2016-07-26 Thread fu . wei
From: Fu Wei This patchset: (1)Preparation for adding GTDT support in arm_arch_timer: 1. Move some enums and marcos to header file; 2. Add a new enum for spi type; 3. Improve printk relevant code. (2)Introduce ACPI GTDT parser: drivers/acpi/arm64/acpi_gtdt.c P

[PATCH v10 1/8] clocksource/drivers/arm_arch_timer: Move enums and defines to header file

2016-07-26 Thread fu . wei
From: Fu Wei To support the arm_arch_timer via ACPI we need to share defines and enums between the driver and the ACPI parser code. Split out the relevant defines and enums into arm_arch_timer.h. No functional change. Signed-off-by: Fu Wei --- drivers/clocksource/arm_arch_timer.c | 11 ---

[PATCH] xen: add static initialization of steal_clock op to xen_time_ops

2016-07-26 Thread Juergen Gross
pv_time_ops might be overwritten with xen_time_ops after the steal_clock operation has been initialized already. To prevent calling a now uninitialized function pointer add the steal_clock static initialization to xen_time_ops. Signed-off-by: Juergen Gross --- arch/x86/xen/time.c | 1 + driver

[PATCH v2 3/4] arm64: dts: rockchip: add reset saradc node for rk3368 SoCs

2016-07-26 Thread Caesar Wang
SARADC controller needs to be reset before programming it, otherwise it will not function properly. Signed-off-by: Caesar Wang --- Changes in v2: None arch/arm64/boot/dts/rockchip/rk3368.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3368.dtsi b/arch

[PATCH v2 2/4] arm64: dts: rockchip: add the saradc for rk3399

2016-07-26 Thread Caesar Wang
This patch adds saradc needed information on rk3399 SoCs. Signed-off-by: Caesar Wang --- Changes in v2: None arch/arm64/boot/dts/rockchip/rk3399.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk339

[PATCH v2 1/4] iio: adc: rockchip_saradc: reset saradc controller before programming it

2016-07-26 Thread Caesar Wang
SARADC controller needs to be reset before programming it, otherwise it will not function properly. Signed-off-by: Caesar Wang Cc: Jonathan Cameron Cc: Heiko Stuebner Cc: Rob Herring Cc: linux-...@vger.kernel.org Cc: linux-rockc...@lists.infradead.org --- Changes in v2: - Make the reset as a

[PATCH v2 4/4] arm: dts: rockchip: add reset node for the exist saradc SoCs

2016-07-26 Thread Caesar Wang
SARADC controller needs to be reset before programming it, otherwise it will not function properly. Signed-off-by: Caesar Wang --- Changes in v2: None arch/arm/boot/dts/rk3066a.dtsi | 2 ++ arch/arm/boot/dts/rk3288.dtsi | 2 ++ arch/arm/boot/dts/rk3xxx.dtsi | 2 ++ 3 files changed, 6 inserti

Re: [PATCH] README: Mention when 386 support ended + update obsolete 386 paths

2016-07-26 Thread Jonathan Corbet
On Tue, 26 Jul 2016 09:45:43 +0200 Øyvind A. Holm wrote: > - Compiling the kernel with "Processor type" set higher than 386 >will result in a kernel that does NOT work on a 386. The > - kernel will detect this on bootup, and give up. > + kernel will detect this on bootup,

[PATCH 1/6] extcon: Add the extcon_type to group each connector into five category

2016-07-26 Thread Chanwoo Choi
This patch adds the new extcon type to group the each connecotr into following five category. This type would be used to handle the connectors as a group unit instead of a connector unit. - EXTCON_TYPE_USB : USB connector - EXTCON_TYPE_CHG : Charger connector - EXTCON_TYPE_JACK : Jack connector -

[PATCH 5/6] extcon: Add the synchronization extcon APIs to support the notification

2016-07-26 Thread Chanwoo Choi
This patch adds the synchronization extcon APIs to support the notifications for both state and property. When extcon_*_sync() functions is called, the extcon informs the information from extcon provider to extcon client. The extcon driver may need to change the both state and multiple properties

[PATCH 4/6] extcon: Rename the extcon_set/get_state() to maintain the function naming pattern

2016-07-26 Thread Chanwoo Choi
This patch just renames the existing extcon_get/set_cable_state_() as following because of maintaining the function naming pattern like as extcon APIs for property. - extcon_set_cable_state_() -> extcon_set_state() - extcon_get_cable_state_() -> extcon_get_state() But, this patch remains the old e

[PATCH 6/6] extcon: Add EXTCON_DISP_DP and the property for USB Type-C

2016-07-26 Thread Chanwoo Choi
From: Chris Zhong Add EXTCON_DISP_DP for the Display external connector. For Type-C connector the DisplayPort can work as an Alternate Mode(VESA DisplayPort Alt Mode on USB Type-C Standard). The Type-C support both normal and flipped orientation, so add a property to extcon. Signed-off-by: Chris

[PATCH 0/6] extcon: Add the support for extcon type and property

2016-07-26 Thread Chanwoo Choi
This patch-set add the support the extcon type, extcon property and the synchronization functions. The each external connector has the common characters. So, the external connectors are able to gather in the specific type. And the each external connectors has the specific H/W desigin to support th

[PATCH 3/6] extcon: Add the support for the capability of each property

2016-07-26 Thread Chanwoo Choi
This patch adds the support of the property capability setting. This function decides the supported properties of each external connector on extcon provider driver. Ths list of new extcon APIs to get/set the capability of property as following: - int extcon_get_property_capability(struct extcon_de

[PATCH 2/6] extcon: Add the support for extcon property according to extcon type

2016-07-26 Thread Chanwoo Choi
This patch support the extcon property for the external connector because each external connector might have the property according to the H/W design and the specific characteristics. - EXTCON_PROP_USB_[property name] - EXTCON_PROP_CHG_[property name] - EXTCON_PROP_JACK_[property name] - EXTCON_PR

Re: [RFC PATCH 0/5] USB Audio Gadget refactoring

2016-07-26 Thread Krzysztof Opasiak
On 07/26/2016 10:53 AM, Jassi Brar wrote: > On Tue, Jul 26, 2016 at 7:01 AM, Ruslan Bilovol > wrote: >> On Fri, Jul 15, 2016 at 10:43 AM, Clemens Ladisch wrote: > On Tue, May 24, 2016 at 2:50 AM, Ruslan Bilovol > wrote: >> it may break current usecase for some people >>> >>> And wh

[PATCHv3] 8250: option 'force_polling' for buggy IRQs

2016-07-26 Thread Max Staudt
Some serial ports may not emit IRQs properly, or there may be a defect in their routing on the motherboard. This patch allows these ports to be used anyway (or until a better workaround is known for a specific platform), though with no guarantees. If you have such a buggy UART, boot Linux with 82

Re: [PATCH v9 0/7] Make cpuid <-> nodeid mapping persistent

2016-07-26 Thread Rafael J. Wysocki
On Tuesday, July 26, 2016 11:59:38 AM Dou Liyang wrote: > > 在 2016年07月26日 07:20, Andrew Morton 写道: > > On Mon, 25 Jul 2016 16:35:42 +0800 Dou Liyang > > wrote: > > > >> [Problem] > >> > >> cpuid <-> nodeid mapping is firstly established at boot time. And > >> workqueue caches > >> the mapping i

Re: PROBLEM: Intel I210AT NIC resets while using PCI passthrough on ESXi (regression)

2016-07-26 Thread Thomas Gleixner
On Mon, 25 Jul 2016, Foster Snowhill wrote: > On 25.07.16 13:56, Thomas Gleixner wrote: i> > Could you please give the patch below a try? It might be related, but I'm > > not sure whether it will cure that particular vmware oddity. > > Patch fixed the issue for me. Did 4-5 reboots just to be sure,

[PATCHv2] 8250: option 'force_polling' for buggy IRQs

2016-07-26 Thread Max Staudt
Some serial ports may not emit IRQs properly, or there may be a defect in their routing on the motherboard. This patch allows these ports to be used anyway (or until a better workaround is known for a specific platform), though with no guarantees. If you have such a buggy UART, boot Linux with 82

Re: [PATCH v9 5/9] acpi/arm64: Add GTDT table parse driver

2016-07-26 Thread Rafael J. Wysocki
On Monday, July 25, 2016 11:27:03 PM fu@linaro.org wrote: > From: Fu Wei > > This patch adds support for parsing arch timer 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

Re: [PATCH] genirq/msi: Make sure PCI MSIs are activated early

2016-07-26 Thread Thomas Gleixner
On Mon, 25 Jul 2016, Bjorn Helgaas wrote: > On Mon, Jul 25, 2016 at 09:45:13AM +0200, Thomas Gleixner wrote: > I thought the original issue [1] was that PCI_MSI_FLAGS_ENABLE was being > written before PCI_MSI_ADDRESS_LO. That doesn't sound like a good > idea to me. Well. That's only a problem if

Re: [PATCH] 8250: option 'force_polling' for buggy IRQs

2016-07-26 Thread Max Staudt
On 07/25/2016 07:47 PM, Greg KH wrote: > On Mon, Jul 25, 2016 at 07:36:15PM +0200, Max Staudt wrote: >> Some serial ports may not emit IRQs properly, or there may be a defect >> in their routing on the motherboard. >> >> This patch allows these ports to be used anyway (or until a better >> workarou

Request for your partnership

2016-07-26 Thread Bun Sam
Good day, I work with one of the major banks in Cambodia as the director of auditor. I have a proposal for you, a very urgent and quick business that will be completed in 12 working days. I have just discovered documents relating to funds belonging to a deceased client of our bank, I went thr

Re: [PATCH] apparmor: fix SECURITY_APPARMOR_HASH_DEFAULT parameter handling

2016-07-26 Thread James Morris
On Mon, 25 Jul 2016, John Johansen wrote: > From: Arnd Bergmann > > The newly added Kconfig option could never work and just causes a build error > when disabled: > > security/apparmor/lsm.c:675:25: error: > 'CONFIG_SECURITY_APPARMOR_HASH_DEFAULT' undeclared here (not in a function) > bool aa

Re: Strange behavior of perf top with PEBS

2016-07-26 Thread Nikolay Borisov
On 07/20/2016 05:38 PM, Jiri Olsa wrote: > On Wed, Jul 20, 2016 at 04:34:17PM +0200, Jiri Olsa wrote: >> On Wed, Jul 20, 2016 at 04:28:34PM +0300, Nikolay Borisov wrote: >>> Hello, >>> >>> Running perf version 4.4.14.g0cb188d (no modification to the PMU/perf >>> code) I observed that "perf top" c

[PATCH] mmc: core: Optimize the mmc erase size alignment

2016-07-26 Thread Baolin Wang
Before issuing mmc_erase() function, users always have checked if it can erase with mmc_can_erase/trim/discard() function, thus remove the redundant erase checking in mmc_erase() function. This patch also optimizes the erase start/end sector alignment with round_up()/round_down() function, when er

Fwd: [Bug 150021] New: kernel panic: "kernel tried to execute NX-protected page" when resuming from hibernate to disk

2016-07-26 Thread Rafael J. Wysocki
Hi, The following commit: commit 13523309495cdbd57a0d344c0d5d574987af007f Author: Josh Poimboeuf Date: Thu Jan 21 16:49:21 2016 -0600 x86/asm/acpi: Create a stack frame in do_suspend_lowlevel() do_suspend_lowlevel() is a callable non-leaf function which doesn't honor CONFIG_F

Re: [PATCH 1/4] iio: adc: rockchip_saradc: reset saradc controller before programming it

2016-07-26 Thread John Keeping
On Tue, 26 Jul 2016 18:49:56 +0800, Caesar Wang wrote: > > On 2016年07月26日 17:00, John Keeping wrote: > > On Tue, 26 Jul 2016 14:11:47 +0800, Caesar Wang wrote: > > > >> SARADC controller needs to be reset before programming it, otherwise > >> it will not function properly. > >> > >> Signed-off-by

Re: [PATCH v3] usb: gadget: f_midi: Add checking if it need align buffer's size to an ep's maxpacketsize

2016-07-26 Thread Felipe Ferreri Tonello
Hi Baolin, Sorry for not replying for previous emails because for some reason these emails were archived. :( On 12/07/16 10:01, Baolin Wang wrote: > Some gadget device (such as dwc3 gadget) requires quirk_ep_out_aligned_size > attribute, which means it need to align the request buffer's size to a

Re: [PATCH v11 09/10] genirq/msi: map/unmap the MSI doorbells on msi_domain_alloc/free_irqs

2016-07-26 Thread Thomas Gleixner
On Tue, 26 Jul 2016, Auger Eric wrote: > On 26/07/2016 11:00, Thomas Gleixner wrote: > > In your case you don't want to have a partial allocation, so instead of > > playing silly games with desc->irq you should add a flag which tells the PCI > > code that you are not interested in a partial allocat

[PATCH v4 3/3] tools/power/acpi/acpidbg: Add multi-commands support in batch mode

2016-07-26 Thread Lv Zheng
This patch adds multi-commands support for the batch mode. The same mode can be seen in acpiexec. However people may think this is not useful for an in-kernel debugger, because the in-kernel debugger is always running, never exits. So we can run another command by running another acpidbg batch mod

[PATCH v4 2/3] tools/power/acpi/acpidbg: Use new flushing mechanism

2016-07-26 Thread Lv Zheng
This patch converts tools/power/acpi/tools/acpidbg/acpidbg to use the new flushing mechanism. Signed-off-by: Lv Zheng --- tools/power/acpi/tools/acpidbg/acpidbg.c | 51 -- 1 file changed, 7 insertions(+), 44 deletions(-) diff --git a/tools/power/acpi/tools/acpidbg/

[PATCH v4 0/3] ACPI / debugger: Add kernel flushing support

2016-07-26 Thread Lv Zheng
The AML debugger can be used to dump the runtime value of a named object, which is useful for remote debugging issues. The batch mode of the AML debugger allows the debugger functionalities to be integrated into the scripts. Currently, when the batch mode is used, the userspace tool needs to flush

[PATCH v4 1/3] ACPI / debugger: Add kernel flushing support

2016-07-26 Thread Lv Zheng
This patch adds debugger output flushing support in kernel via .ioctl() callback. The in-kernel flushing is more efficient, because it reduces useless log IOs by bypassing log user_read/kern_write during the flush period. This mechanism is useful for the batch mode. Scripts can integrate a batch m

Re: [PATCH 1/4] iio: adc: rockchip_saradc: reset saradc controller before programming it

2016-07-26 Thread Caesar Wang
On 2016年07月26日 17:00, John Keeping wrote: On Tue, 26 Jul 2016 14:11:47 +0800, Caesar Wang wrote: SARADC controller needs to be reset before programming it, otherwise it will not function properly. Signed-off-by: Caesar Wang Cc: Jonathan Cameron Cc: Heiko Stuebner Cc: Rob Herring Cc: linux

Re: [PATCH v2] arm64: mm: convert __dma_* routines to use start, size

2016-07-26 Thread Robin Murphy
On 26/07/16 08:34, Kwangwoo Lee wrote: > v2) > change __dma_* routine names using the terminoloy guidance: > area: takes a start and size > range: takes a start and end > use __dma_flush_area() instead of __dma_flush_range() in dma-mapping.c > > v1) > __dma_* routines have been converted t

[PATCH] checkpatch: Improve 'bare use of' signed/unsigned types warning

2016-07-26 Thread Joe Perches
Fix false positive warning of identifiers ending in signed with an = assignment of WARNING: Prefer 'signed int' to bare use of 'signed'. Reported-by: Alan Douglas Signed-off-by: Joe Perches --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/che

Re: [PATCH] prctl: remove one-shot limitation for changing exe link

2016-07-26 Thread Stanislav Kinsburskiy
25.07.2016 20:21, Eric W. Biederman пишет: Stanislav Kinsburskiy writes: Gentlemen, Looks like there are no objections to this patch. There has been objection. The only justification for the change that has been put forward is someone doing a restore lazily. I don't see a reason why you

Re: [PATCH v2 00/10] userns: sysctl limits for namespaces

2016-07-26 Thread Michael Kerrisk (man-pages)
Hello Eric, I realized I had a question after the last mail. On 07/21/2016 06:39 PM, Eric W. Biederman wrote: This patchset addresses two use cases: - Implement a sane upper bound on the number of namespaces. - Provide a way for sandboxes to limit the attack surface from namespaces. Can yo

Re: [PATCH v2 00/10] userns: sysctl limits for namespaces

2016-07-26 Thread Michael Kerrisk (man-pages)
Hello Eric, On 07/21/2016 06:39 PM, Eric W. Biederman wrote: This patchset addresses two use cases: - Implement a sane upper bound on the number of namespaces. - Provide a way for sandboxes to limit the attack surface from namespaces. The maximum sane case I can imagine is if every process i

Re: bcache super block corruption with non 4k pages

2016-07-26 Thread Kent Overstreet
On Tue, Jul 26, 2016 at 11:51:25AM +0200, Stefan Bader wrote: > On 21.07.2016 10:58, Stefan Bader wrote: > > I was pointed at the thread which seems to address the same after > > I wrote most of below text. Did not want to re-write this so please > > bear with the odd layout. > > > > https://www.r

Re: [zer0...@yahoo.com: [oss-security] panic at big_key_preparse #4.7-r6/rc7 & master]

2016-07-26 Thread David Howells
Vegard Nossum wrote: > $ echo "Code: 5c 41 5d 41 5e 41 5f 5d c3 e8 89 f1 98 ff 4c 8b 25 32 cb > 47 02 48 b8 00 00 00 00 00 fc ff df 49 8d 7c 24 48 48 89 fa 48 c1 ea > 03 <80> 3c 02 00 0f 85 78 03 00 00 4d 8b 64 24 48 48 b8 00 00 00 00" | > scripts/decodecode Thanks! I didn't know this existed.

Re: [PATCH v2 11/13] gpu: ipu-ic: Add complete image conversion support with tiling

2016-07-26 Thread Philipp Zabel
Am Dienstag, den 19.07.2016, 18:11 -0700 schrieb Steve Longerbeam: > This patch implements complete image conversion support to ipu-ic, > with tiling to support scaling to and from images up to 4096x4096. > Image rotation is also supported. > > The internal API is subsystem agnostic (no V4L2 depen

Re: [PATCH v3 1/4] hwmon: iio_hwmon: delay probing with late_initcall

2016-07-26 Thread Quentin Schulz
On 26/07/2016 12:00, Alexander Stein wrote: > On Tuesday 26 July 2016 11:33:59, Quentin Schulz wrote: >> On 26/07/2016 11:05, Alexander Stein wrote: >>> On Tuesday 26 July 2016 10:24:48, Quentin Schulz wrote: On 26/07/2016 10:21, Alexander Stein wrote: > On Tuesday 26 July 2016 09:43:44, Q

Re: [PATCH v2 05/13] gpu: ipu-v3: Add IDMA channel linking support

2016-07-26 Thread Philipp Zabel
Am Dienstag, den 19.07.2016, 18:11 -0700 schrieb Steve Longerbeam: > Adds functions to link and unlink IDMAC source channels to sink > channels. > > So far the following links are supported: > > IPUV3_CHANNEL_IC_PRP_ENC_MEM -> IPUV3_CHANNEL_MEM_ROT_ENC > PUV3_CHANNEL_IC_PRP_VF_MEM -> IPUV3_CHAN

Re: [PATCH v2 01/13] gpu: ipu-v3: Add Video Deinterlacer unit

2016-07-26 Thread Philipp Zabel
Am Dienstag, den 19.07.2016, 18:10 -0700 schrieb Steve Longerbeam: > Adds the Video Deinterlacer (VDIC) unit. > > Signed-off-by: Steve Longerbeam [...] > +++ b/drivers/gpu/ipu-v3/ipu-vdi.c [...] > +static void __ipu_vdi_set_top_field_man(struct ipu_vdi *vdi, bool > top_field_0) > +{ > + u32

Re: [PATCH v2 00/13] IPUv3 prep for i.MX5/6 v4l2 staging drivers, v2

2016-07-26 Thread Philipp Zabel
Hi Steve, Am Dienstag, den 19.07.2016, 18:10 -0700 schrieb Steve Longerbeam: > These updates to IPUv3 are needed for media staging drivers > for i.MX5/6 video capture and mem2mem. > > Steve Longerbeam (13): > gpu: ipu-cpmem: Add ipu_cpmem_set_uv_offset() > gpu: ipu-cpmem: Add ipu_cpmem_get_bu

Re: [PATCH v11 10/10] genirq/msi: use the MSI doorbell's IOVA when requested

2016-07-26 Thread Auger Eric
Hi Thomas, On 26/07/2016 11:04, Thomas Gleixner wrote: > Eric, > > On Mon, 25 Jul 2016, Auger Eric wrote: >> On 20/07/2016 11:09, Thomas Gleixner wrote: >>> On Tue, 19 Jul 2016, Eric Auger wrote: @@ -63,10 +63,18 @@ static int msi_compose(struct irq_data *irq_data, { int ret =

Re: [PATCH v3 1/4] hwmon: iio_hwmon: delay probing with late_initcall

2016-07-26 Thread Alexander Stein
On Tuesday 26 July 2016 11:33:59, Quentin Schulz wrote: > On 26/07/2016 11:05, Alexander Stein wrote: > > On Tuesday 26 July 2016 10:24:48, Quentin Schulz wrote: > >> On 26/07/2016 10:21, Alexander Stein wrote: > >>> On Tuesday 26 July 2016 09:43:44, Quentin Schulz wrote: > iio_channel_get_all

Re: [PATCH v18 net-next 1/1] hv_sock: introduce Hyper-V Sockets

2016-07-26 Thread Michal Kubecek
On Tue, Jul 26, 2016 at 07:09:41AM +, Dexuan Cui wrote: > If you meant https://lkml.org/lkml/2016/7/13/382, I don't think Michal > Kubecek was suggesting I build my code using the existing AF_VSOCK > code(?) I think he was only asking me to clarify the way I used to write > the text to explain

Re: [PATCH v11 09/10] genirq/msi: map/unmap the MSI doorbells on msi_domain_alloc/free_irqs

2016-07-26 Thread Auger Eric
Hi Thomas, On 26/07/2016 11:00, Thomas Gleixner wrote: > B1;2802;0cEric, > > On Mon, 25 Jul 2016, Auger Eric wrote: >> On 20/07/2016 11:04, Thomas Gleixner wrote: >>> On Tue, 19 Jul 2016, Eric Auger wrote: + if (ret) { + for (; i >= 0; i--) { +

Re: [e1000_netpoll] BUG: sleeping function called from invalid context at kernel/irq/manage.c:110

2016-07-26 Thread Thomas Gleixner
On Tue, 26 Jul 2016, Fengguang Wu wrote: > --- a/drivers/net/ethernet/intel/e1000/e1000_main.c > +++ b/drivers/net/ethernet/intel/e1000/e1000_main.c > @@ -3797,7 +3797,7 @@ static irqreturn_t e1000_intr(int irq, void *data) > hw->get_link_status = 1; > /* guard against i

[PATCH v7 1/2] ACPI / button: Fix an issue that the platform triggered reliable events may not be delivered to the userspace

2016-07-26 Thread Lv Zheng
On most platforms, _LID returning value, lid open/close events are all reliable, but there are exceptions. Some AML tables report wrong initial lid state (Link 1), and some of them never report lid open state (Link 2). The usage model on such buggy platforms is: 1. The initial lid state returned fr

[PATCH v7 2/2] ACPI / button: Add document for ACPI control method lid device restrictions

2016-07-26 Thread Lv Zheng
This patch adds documentation for the usage model of the control method lid device on some buggy platforms. Signed-off-by: Lv Zheng Acked-by: Benjamin Tissoires Cc: Dmitry Torokhov Cc: Bastien Nocera: Cc: linux-in...@vger.kernel.org --- Documentation/acpi/acpi-lid.txt | 97 +

[PATCH] x86/microcode/intel: Fix initrd loading with CONFIG_RANDOMIZE_MEMORY

2016-07-26 Thread Borislav Petkov
From: Borislav Petkov CONFIG_RANDOMIZE_MEMORY randomizes the physical memmap and thus the address where the initrd is located. Therefore, we need to add the offset KASLR put us to in order to find the initrd again on the AP path. In the future, we will get rid of the initrd address caching and q

Re: bcache super block corruption with non 4k pages

2016-07-26 Thread Stefan Bader
On 21.07.2016 10:58, Stefan Bader wrote: > I was pointed at the thread which seems to address the same after > I wrote most of below text. Did not want to re-write this so please > bear with the odd layout. > > https://www.redhat.com/archives/dm-devel/2016-June/msg00015.html > > Zhengyuan tries t

Re: [PATCH 1/3] drm: introduce share plane

2016-07-26 Thread Mark yao
On 2016年07月26日 16:26, Daniel Vetter wrote: On Tue, Jul 26, 2016 at 03:46:32PM +0800, Mark Yao wrote: >What is share plane: >Plane hardware only be used when the display scanout run into plane active >scanout, that means we can reuse the plane hardware resources on plane >non-active scanout. > >

Re: [PATCH V3 3/10] Documentation: dt-bindings: firmware: tegra: add bindings of the BPMP

2016-07-26 Thread Jon Hunter
On 19/07/16 10:17, Joseph Lo wrote: > The BPMP is a specific processor in Tegra chip, which is designed for > booting process handling and offloading the power management, clock > management, and reset control tasks from the CPU. The binding document > defines the resources that would be used by t

Re: [PATCH v15 04/10] arm64: Kprobes with single stepping support

2016-07-26 Thread Daniel Thompson
On 25/07/16 18:13, Catalin Marinas wrote: On Fri, Jul 22, 2016 at 11:51:32AM -0400, David Long wrote: On 07/22/2016 06:16 AM, Catalin Marinas wrote: On Thu, Jul 21, 2016 at 02:33:52PM -0400, David Long wrote: [...] The document states: "Up to MAX_STACK_SIZE bytes are copied". That means the arc

Re: [PATCH] schedule function called for e1000 driver interrupt

2016-07-26 Thread kbuild test robot
Hi, [auto build test ERROR on jkirsher-next-queue/dev-queue] [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/Fengguang-Wu/schedule-function-called-for-e1000-driver-interrupt/20160726-173521 base

Re: [PATCH] schedule function called for e1000 driver interrupt

2016-07-26 Thread kbuild test robot
Hi, [auto build test ERROR on jkirsher-next-queue/dev-queue] [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/Fengguang-Wu/schedule-function-called-for-e1000-driver-interrupt/20160726-173521 base

Re: [PATCH V3 01/10] Documentation: dt-bindings: mailbox: tegra: Add binding for HSP mailbox

2016-07-26 Thread Jon Hunter
On 19/07/16 10:17, Joseph Lo wrote: > Add DT binding for the Hardware Synchronization Primitives (HSP). The > HSP is designed for the processors to share resources and communicate > together. It provides a set of hardware synchronization primitives for > interprocessor communication. So the interp

[PATCH] binfmt_em86: Fix incompatible pointer type

2016-07-26 Thread Daniel Wagner
From: Daniel Wagner Since the -Wincompatible-pointer-types is reported as error, alpha doesn't build anymore. Let's fix it in a minimal way. fs/binfmt_em86.c:73:35: error: passing argument 2 of ‘copy_strings_kernel’ from incompatible pointer type [-Werror=incompatible-pointer-types] retval =

<    1   2   3   4   5   6   7   >