RE: Question on MSI support in PCI and PCI-E devices

2015-03-04 Thread McKay, Luke
I don't personally know of any PCI drivers that use polling instead of interrupts, since that would really mean the hardware is broke. Basically all you need to do is create a timer, and have it's callback set to your driver routine that can check the device status registers to determine if the

Re: [Debug 2/2] x86/PCI/ACPI: Relax ACPI resource descriptor checks to work around BIOS bugs

2015-03-04 Thread Prakash Punnoor
On 04.03.2015 03:29, Jiang Liu wrote: > On 2015/3/3 23:18, Bjorn Helgaas wrote: >> On Mon, Mar 2, 2015 at 10:25 PM, Jiang Liu wrote: >>> Some BIOSes report incorrect length for ACPI address space descriptors, >>> so relax the checks to avoid regressions. >>> >>> Signed-off-by: Jiang Liu >> >> It'

Re: [Patch v4 21/23] x86/PCI: Refine the way to release PCI IRQ resources

2015-03-04 Thread Alex Williamson
Hi, I'm getting a regression from this patch when using VFIO for device assignment to a QEMU VM. I have a device initially bound to the nouveau driver, which is unbound from that driver and bound to vfio-pci for use by userspace. vfio-pci calls pci_enable_device, but when userspace attempts to s

Re: [PATCH v2] usb: isp1760: add peripheral/device controller chip id

2015-03-04 Thread Laurent Pinchart
Hi Sudeep, On Wednesday 04 March 2015 15:56:12 Sudeep Holla wrote: > On 26/02/15 18:53, Laurent Pinchart wrote: > > Hi Sudeep, > > > > Thank you for the patch. > > > > On Thursday 26 February 2015 11:47:57 Sudeep Holla wrote: > >> As per the SAF1761 data sheet[0], the DcChipID register represent

[PATCH v5 1/4] vfio: implement iommu driver capabilities with an enum

2015-03-04 Thread Baptiste Reynal
From: Antonios Motakis Currently a VFIO driver's IOMMU capabilities are encoded as a series of numerical defines. Replace this with an enum for future maintainability. Signed-off-by: Antonios Motakis Signed-off-by: Baptiste Reynal --- include/uapi/linux/vfio.h | 24 +++- 1

[PATCH] ARM: at91/dt: sama5d4: add ISI dt support

2015-03-04 Thread Nicolas Ferre
From: Josh Wu Add ISI dt node and pinctrl settings in sama5d4.dtsi. Signed-off-by: Josh Wu [nicolas.fe...@atmel.com: sort nodes in order. remove useless comments] Signed-off-by: Nicolas Ferre --- arch/arm/boot/dts/sama5d4.dtsi | 42 ++ 1 file changed, 4

[PATCH v5 4/4] vfio: type1: implement the VFIO_DMA_MAP_FLAG_NOEXEC flag

2015-03-04 Thread Baptiste Reynal
From: Antonios Motakis Some IOMMU drivers, such as the ARM SMMU driver, make available the IOMMU_NOEXEC flag to set the page tables for a device as XN (execute never). This affects devices such as the ARM PL330 DMA Controller, which respects this flag and will refuse to fetch DMA instructions fro

Re: [PATCH 4.0-rc1 v17 4/6] printk: Simple implementation for NMI backtracing

2015-03-04 Thread Joe Perches
On Wed, 2015-03-04 at 10:12 +, Daniel Thompson wrote: > Currently there is a quite a pile of code sitting in > arch/x86/kernel/apic/hw_nmi.c to support safe all-cpu backtracing from NMI. > The code is inaccessible to backtrace implementations for other > architectures, which is a shame because

Re: [PATCH tip/core/rcu 02/20] x86: Use common outgoing-CPU-notification code

2015-03-04 Thread Boris Ostrovsky
On 03/04/2015 10:45 AM, David Vrabel wrote: On 04/03/15 14:55, Boris Ostrovsky wrote: In the meantime, it turned out that HVM guests are broken by this patch (with our without changes that we've been discussing), because HVM CPUs die with static void xen_hvm_cpu_die(unsigned int cpu) {

[PATCH v5 2/4] vfio: introduce the VFIO_DMA_MAP_FLAG_NOEXEC flag

2015-03-04 Thread Baptiste Reynal
From: Antonios Motakis We introduce the VFIO_DMA_MAP_FLAG_NOEXEC flag to the VFIO dma map call, and expose its availability via the capability VFIO_DMA_NOEXEC_IOMMU. This way the user can control whether the XN flag will be set on the requested mappings. The IOMMU_NOEXEC flag needs to be availabl

[PATCH/RFC v12 14/19] exynos4-is: Add support for v4l2-flash subdevs

2015-03-04 Thread Jacek Anaszewski
This patch adds support for external v4l2-flash devices. The support includes parsing "flashes" DT property and asynchronous subdevice registration. Signed-off-by: Jacek Anaszewski Acked-by: Kyungmin Park Cc: Sylwester Nawrocki --- drivers/media/platform/exynos4-is/media-dev.c | 36 +

[PATCH/RFC v12 12/19] of: Add Skyworks Solutions, Inc. vendor prefix

2015-03-04 Thread Jacek Anaszewski
Use "skyworks" as the vendor prefix for the Skyworks Solutions, Inc. Signed-off-by: Jacek Anaszewski Acked-by: Kyungmin Park --- .../devicetree/bindings/vendor-prefixes.txt|1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Doc

[PATCH/RFC v12 15/19] media: Add registration helpers for V4L2 flash sub-devices

2015-03-04 Thread Jacek Anaszewski
This patch adds helper functions for registering/unregistering LED Flash class devices as V4L2 sub-devices. The functions should be called from the LED subsystem device driver. In case the support for V4L2 Flash sub-devices is disabled in the kernel config the functions' empty versions will be used

[PATCH/RFC v12 09/19] leds: Add support for max77693 mfd flash cell

2015-03-04 Thread Jacek Anaszewski
This patch adds led-flash support to Maxim max77693 chipset. A device can be exposed to user space through LED subsystem sysfs interface. Device supports up to two leds which can work in flash and torch mode. The leds can be triggered externally or by software. Signed-off-by: Jacek Anaszewski Sig

[PATCH/RFC v12 08/19] mfd: max77693: Adjust FLASH_EN_SHIFT and TORCH_EN_SHIFT macros

2015-03-04 Thread Jacek Anaszewski
Modify FLASH_EN_SHIFT and TORCH_EN_SHIFT macros to work properly when passed enum max77693_fled values (0 for FLED1 and 1 for FLED2) from leds-max77693 driver. Previous definitions were compatible with one of the previous RFC versions of leds-max77693.c driver, which was not merged. Signed-off-by:

[PATCH/RFC v12 02/19] leds: flash: document sysfs interface

2015-03-04 Thread Jacek Anaszewski
Add a documentation of LED Flash class specific sysfs attributes. Signed-off-by: Jacek Anaszewski Acked-by: Kyungmin Park Cc: Bryan Wu Cc: Richard Purdie --- Documentation/ABI/testing/sysfs-class-led-flash | 80 +++ 1 file changed, 80 insertions(+) create mode 100644 Do

[PATCH 1/2] ARM: at91/dt: sama5d4: rename lcd_clk into lcdc_clk

2015-03-04 Thread Nicolas Ferre
From: Boris BREZILLON Rename lcd_clk into lcdc_clk to be consistent with sama5d3 clock definitions. Signed-off-by: Boris BREZILLON Signed-off-by: Nicolas Ferre --- arch/arm/boot/dts/sama5d4.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/sama5d4.dtsi

[PATCH] HID: Kconfig: add USB_HID dependency to UC-LOGIC

2015-03-04 Thread Benjamin Tissoires
In commit 08177f4 (HID: uclogic: merge hid-huion driver in hid-uclogic) HID_HUION depends explicitely on USB_HID because it contained quite some USB-isms. Now that hid-uclogic is the new home of Huion tablets, we need to also add the dependency on USB_HID to this driver. Reported-by: Jiri Kosina

Re: [PATCH v3 2/6] HID: uclogic: merge hid-huion driver in hid-uclogic

2015-03-04 Thread Benjamin Tissoires
On Mar 04 2015 or thereabouts, Jiri Kosina wrote: > On Tue, 3 Mar 2015, Benjamin Tissoires wrote: > > > From: Nikolai Kondrashov > > > > Merge the hid-huion driver into hid-uclogic as all the devices supported > > by hid-huion are in fact UC-Logic devices. > > > > Signed-off-by: Nikolai Kondras

[PATCH/RFC v12 11/19] leds: Add driver for AAT1290 current regulator

2015-03-04 Thread Jacek Anaszewski
This patch adds a driver for the 1.5A Step-Up Current Regulator for Flash LEDs. The device is programmed through a Skyworks proprietary AS2Cwire serial digital interface. Signed-off-by: Jacek Anaszewski Acked-by: Kyungmin Park Cc: Bryan Wu Cc: Richard Purdie --- drivers/leds/Kconfig|

[PATCH/RFC v12 16/19] Documentation: leds: Add description of v4l2-flash sub-device

2015-03-04 Thread Jacek Anaszewski
This patch extends LED Flash class documention by the description of interactions with v4l2-flash sub-device. Signed-off-by: Jacek Anaszewski Acked-by: Kyungmin Park Acked-by: Sakari Ailus Cc: Bryan Wu Cc: Richard Purdie --- Documentation/leds/leds-class-flash.txt | 13 + 1 fil

[PATCH/RFC v12 04/19] dt-binding: leds: Add common LED DT bindings macros

2015-03-04 Thread Jacek Anaszewski
Add macros for defining boost mode and trigger type properties of flash LED devices. Signed-off-by: Jacek Anaszewski Acked-by: Kyungmin Park Cc: Bryan Wu Cc: Richard Purdie --- include/dt-bindings/leds/max77693.h | 21 + 1 file changed, 21 insertions(+) create mode 1006

Re: [PATCH v3 6/6] x86, mm: Support huge KVA mappings on x86

2015-03-04 Thread Toshi Kani
On Wed, 2015-03-04 at 01:00 +, Andrew Morton wrote: > On Tue, 03 Mar 2015 16:14:32 -0700 Toshi Kani wrote: > > > On Tue, 2015-03-03 at 14:44 -0800, Andrew Morton wrote: > > > On Tue, 3 Mar 2015 10:44:24 -0700 Toshi Kani wrote: > > : > > > > + > > > > +#ifdef CONFIG_HAVE_ARCH_HUGE_VMAP > >

Re: [PATCH 4.0-rc1 v17 4/6] printk: Simple implementation for NMI backtracing

2015-03-04 Thread Steven Rostedt
On Wed, 04 Mar 2015 08:13:21 -0800 Joe Perches wrote: > On Wed, 2015-03-04 at 10:12 +, Daniel Thompson wrote: > > Currently there is a quite a pile of code sitting in > > arch/x86/kernel/apic/hw_nmi.c to support safe all-cpu backtracing from NMI. > > The code is inaccessible to backtrace impl

[PATCH/RFC v12 05/19] mfd: max77693: Modify flash cell name identifiers

2015-03-04 Thread Jacek Anaszewski
Change flash cell identifiers from max77693-flash to max77693-led to avoid confusion with NOR/NAND Flash. Signed-off-by: Jacek Anaszewski Acked-by: Kyungmin Park Acked-by: Lee Jones --- drivers/mfd/max77693.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mf

Re: [PATCH 07/38] perf tools: Handle indexed data file properly

2015-03-04 Thread Jiri Olsa
On Tue, Mar 03, 2015 at 12:07:19PM +0900, Namhyung Kim wrote: > When perf detects data file has index table, process header part first > and then rest data files in a row. Note that the indexed sample data is > recorded for each cpu/thread separately, it's already ordered with > respect to themsel

[PATCH 2/2] ARM: at91/dt: sama5d4: fix lcdck parent clk

2015-03-04 Thread Nicolas Ferre
From: Boris BREZILLON lcdck takes mck (not smd) as its parent. Signed-off-by: Boris BREZILLON Signed-off-by: Nicolas Ferre --- arch/arm/boot/dts/sama5d4.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/sama5d4.dtsi b/arch/arm/boot/dts/sama5d4.dtsi ind

[PATCH/RFC v12 19/19] leds: aat1290: add support for V4L2 Flash sub-device

2015-03-04 Thread Jacek Anaszewski
Add support for V4L2 Flash sub-device to the aat1290 LED Flash class driver. The support allows for V4L2 Flash sub-device to take the control of the LED Flash class device. Signed-off-by: Jacek Anaszewski Acked-by: Kyungmin Park Cc: Bryan Wu Cc: Richard Purdie Cc: Sakari Ailus --- drivers/le

[PATCH/RFC v12 01/19] leds: flash: Remove synchronized flash strobe feature

2015-03-04 Thread Jacek Anaszewski
Synchronized flash strobe feature has been considered not fitting for LED subsystem sysfs interface and thus is being removed. Signed-off-by: Jacek Anaszewski Acked-by: Kyungmin Park Cc: Bryan Wu Cc: Richard Purdie --- drivers/leds/led-class-flash.c | 82 ---

[PATCH/RFC v12 07/19] mfd: max77693: add TORCH_IOUT_MASK macro

2015-03-04 Thread Jacek Anaszewski
Add a macro for obtaining the mask of ITORCH register bit fields related either to FLED1 or FLED2 current output. The expected arguments are TORCH_IOUT1_SHIFT or TORCH_IOUT2_SHIFT. Signed-off-by: Jacek Anaszewski Acked-by: Kyungmin Park Cc: Chanwoo Choi Cc: Lee Jones --- include/linux/mfd/max

[PATCH/RFC v12 00/19] LED / flash API integration

2015-03-04 Thread Jacek Anaszewski
This patch set is a follow-up of the LED / flash API integration series [1]. It is based on linux-next_20150304 Changes since version 11 : - removed synchronized strobe feature from LED Flash class, as it turned out to be not fitting for sysfs i

[PATCH/RFC v12 10/19] DT: Add documentation for the mfd Maxim max77693

2015-03-04 Thread Jacek Anaszewski
This patch adds device tree binding documentation for the flash cell of the Maxim max77693 multifunctional device. Signed-off-by: Jacek Anaszewski Signed-off-by: Andrzej Hajda Acked-by: Kyungmin Park Cc: Lee Jones Cc: Chanwoo Choi Cc: Bryan Wu Cc: Richard Purdie --- Documentation/devicetre

[PATCH/RFC v12 17/19] DT: Add documentation for exynos4-is 'flashes' property

2015-03-04 Thread Jacek Anaszewski
This patch adds a description of 'flashes' property to the samsung-fimc.txt. Signed-off-by: Jacek Anaszewski Acked-by: Kyungmin Park Cc: Sylwester Nawrocki --- .../devicetree/bindings/media/samsung-fimc.txt |8 1 file changed, 8 insertions(+) diff --git a/Documentation/device

[PATCH/RFC v12 13/19] DT: Add documentation for the Skyworks AAT1290

2015-03-04 Thread Jacek Anaszewski
This patch adds device tree binding documentation for 1.5A Step-Up Current Regulator for Flash LEDs. Signed-off-by: Jacek Anaszewski Acked-by: Kyungmin Park Cc: Bryan Wu Cc: Richard Purdie --- .../devicetree/bindings/leds/leds-aat1290.txt | 64 1 file changed, 64 i

[PATCH/RFC v12 03/19] Documentation: leds: Add description of LED Flash class extension

2015-03-04 Thread Jacek Anaszewski
The documentation being added contains overall description of the LED Flash Class and the related sysfs attributes. Signed-off-by: Jacek Anaszewski Acked-by: Kyungmin Park Cc: Bryan Wu Cc: Richard Purdie --- Documentation/leds/leds-class-flash.txt | 22 ++ 1 file changed

[PATCH/RFC v12 18/19] leds: max77693: add support for V4L2 Flash sub-device

2015-03-04 Thread Jacek Anaszewski
Add support for V4L2 Flash sub-device to the max77693 LED Flash class driver. The support allows for V4L2 Flash sub-device to take the control of the LED Flash class device. Signed-off-by: Jacek Anaszewski Acked-by: Kyungmin Park Cc: Bryan Wu Cc: Richard Purdie Cc: Sakari Ailus --- drivers/l

[PATCH/RFC v12 06/19] mfd: max77693: Remove struct max77693_led_platform_data

2015-03-04 Thread Jacek Anaszewski
The flash part of the max77693 device will depend only on OF, and thus will not use board files. Since there are no other users of the struct max77693_led_platform_data its existence is unjustified. Signed-off-by: Jacek Anaszewski Acked-by: Kyungmin Park Cc: Chanwoo Choi Cc: Lee Jones --- inc

Re: Question on MSI support in PCI and PCI-E devices

2015-03-04 Thread Roger Heflin
I know from some data I have seen that between the Intel Sandy Bridge and Intel Ivy Bridge the same motherboards stopped delivering INTx reliably (int lost under load around 1x every 30 days, driver and firmware has no method to recover from failure) We had to transition to using MSI on some PCI

randconfig build error with next-20150304, in net/ax25/ax25_ip.c

2015-03-04 Thread Jim Davis
Building with the attached random configuration file, net/ax25/ax25_ip.c:225:26: error: unknown type name 'sturct' netdev_tx_t ax25_ip_xmit(sturct sk_buff *skb) ^ scripts/Makefile.build:258: recipe for target 'net/ax25/ax25_ip.o' failed # # Automatically generated file;

Re: [PATCH] HID: Kconfig: add USB_HID dependency to UC-LOGIC

2015-03-04 Thread Jiri Kosina
On Wed, 4 Mar 2015, Benjamin Tissoires wrote: > In commit 08177f4 (HID: uclogic: merge hid-huion driver in hid-uclogic) > HID_HUION depends explicitely on USB_HID because it contained quite some > USB-isms. > > Now that hid-uclogic is the new home of Huion tablets, we need to also > add the depen

[PATCHv4 01/24] thp: cluster split_huge_page* code together

2015-03-04 Thread Kirill A. Shutemov
Rearrange code in mm/huge_memory.c to make future changes somewhat easier. Signed-off-by: Kirill A. Shutemov --- mm/huge_memory.c | 224 +++ 1 file changed, 112 insertions(+), 112 deletions(-) diff --git a/mm/huge_memory.c b/mm/huge_memory.c i

Re: [PATCH 4.0-rc1 v17 4/6] printk: Simple implementation for NMI backtracing

2015-03-04 Thread Daniel Thompson
On Wed, 2015-03-04 at 11:20 -0500, Steven Rostedt wrote: > On Wed, 04 Mar 2015 08:13:21 -0800 > Joe Perches wrote: > > > On Wed, 2015-03-04 at 10:12 +, Daniel Thompson wrote: > > > Currently there is a quite a pile of code sitting in > > > arch/x86/kernel/apic/hw_nmi.c to support safe all-cpu

[PATCHv4 05/24] mm, proc: adjust PSS calculation

2015-03-04 Thread Kirill A. Shutemov
With new refcounting all subpages of the compound page are not nessessary have the same mapcount. We need to take into account mapcount of every sub-page. Signed-off-by: Kirill A. Shutemov --- fs/proc/task_mmu.c | 43 ++- 1 file changed, 22 insertions(+),

[PATCHv4 03/24] mm: avoid PG_locked on tail pages

2015-03-04 Thread Kirill A. Shutemov
With new refcounting pte entries can point to tail pages. It's doesn't make much sense to mark tail page locked -- we need to protect whole compound page. This patch adjust helpers related to PG_locked to operate on head page. Signed-off-by: Kirill A. Shutemov --- include/linux/page-flags.h |

[PATCHv4 00/24] THP refcounting redesign

2015-03-04 Thread Kirill A. Shutemov
Hello everybody, It's bug-fix update of my thp refcounting work. The goal of patchset is to make refcounting on THP pages cheaper with simpler semantics and allow the same THP compound page to be mapped with PMD and PTEs. This is required to get reasonable THP-pagecache implementation. With the

[PATCHv4 04/24] rmap: add argument to charge compound page

2015-03-04 Thread Kirill A. Shutemov
We're going to allow mapping of individual 4k pages of THP compound page. It means we cannot rely on PageTransHuge() check to decide if map small page or THP. The patch adds new argument to rmap function to indicate whethe we want to map whole compound page or only the small page. Signed-off-by:

Re: [PATCH v2] xen-scsiback: use DRV_PFX in the pr macros and DPRINTK

2015-03-04 Thread Joe Perches
On Wed, 2015-03-04 at 18:32 +, Tao Chen wrote: > Defined the string of {xen-pvscsi: } as DRV_PFX, then use it in the pr > sentences and DPRINTK. > Also fixed up some comments just as eliminate redundant white spaces and > format the code. > These will make the code easier to read. It'd proba

[PATCHv4 02/24] mm: change PageAnon() and page_anon_vma() to work on tail pages

2015-03-04 Thread Kirill A. Shutemov
Currently PageAnon() and page_anon_vma() are always return false/NULL for tail. We need to look on head page for correct answer. Let's change the function to give the correct result for tail page. Signed-off-by: Kirill A. Shutemov --- include/linux/mm.h | 1 + include/linux/rmap.h | 1 + 2 fi

[PATCH] ARM: at91/dt: add uart0 to sama5d3 DT

2015-03-04 Thread Nicolas Ferre
Signed-off-by: Nicolas Ferre --- arch/arm/boot/dts/sama5d3.dtsi | 26 ++ 1 file changed, 26 insertions(+) diff --git a/arch/arm/boot/dts/sama5d3.dtsi b/arch/arm/boot/dts/sama5d3.dtsi index e30fee2edd55..def05e20e9d6 100644 --- a/arch/arm/boot/dts/sama5d3.dtsi +++ b/arch/a

[PATCHv4 24/24] thp: update documentation

2015-03-04 Thread Kirill A. Shutemov
The patch updates Documentation/vm/transhuge.txt to reflect changes in THP design. Signed-off-by: Kirill A. Shutemov --- Documentation/vm/transhuge.txt | 100 +++-- 1 file changed, 45 insertions(+), 55 deletions(-) diff --git a/Documentation/vm/transhuge.txt

[char-misc-next 2/2] mei: trace: fix missing include to linux/device.h

2015-03-04 Thread Tomas Winkler
Fix warning (discovered using randconfig) drivers/misc/mei/mei-trace.h:30:24: warning: 'struct device' declared inside parameter list TP_PROTO(const struct device *dev, const char *reg, u32 offs, u32 val), Signed-off-by: Tomas Winkler --- drivers/misc/mei/mei-trace.h | 2 ++ 1 file change

[PATCH] libfdt: Teach fdt_path_offset() about ':' path separator

2015-03-04 Thread Peter Hurley
stdout-path defines ':' as a path separator and commit 75c28c09af99a ("of: add optional options parameter to of_find_node_by_path()") added the necessary support to parse paths terminated with ':' path separator. commit 7914a7c5651a5 ("of: support passing console options with stdout-path") added op

Re: linux-next: Tree for Mar 4 (build failures)

2015-03-04 Thread Guenter Roeck
On Wed, Mar 04, 2015 at 03:03:41PM +1100, Stephen Rothwell wrote: > Hi all, > > Changes since 20150303: > > The md tree still had its build failure so I applied a fix patch. > > The mfd tree gained a build failure so I used the version from > next-20150303. > > The clk tree still had its build

[char-misc-next 1/2] mei: free me client references on host init

2015-03-04 Thread Tomas Winkler
Fx fixes leak introduced by: commit b7d885145538 ("mei: revamp me clients list handling") Signed-off-by: Tomas Winkler --- drivers/misc/mei/client.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/misc/mei/client.c b/drivers/misc/mei/client.c index 98a5363e1e8a..b6fec4d15307 10064

Re: [PATCH 2/2] livepatch: fix patched module loading race

2015-03-04 Thread Josh Poimboeuf
On Wed, Mar 04, 2015 at 04:51:39PM +0100, Jiri Kosina wrote: > On Wed, 4 Mar 2015, Josh Poimboeuf wrote: > > > > CPU0 CPU1 > > > > > > delete_module() #SYSCALL > > > > > >try_stop_module() > > > mod->state = MODULE_STATE_GOING; > > > > > >mutex

[PATCHv4 07/24] mm, thp: adjust conditions when we can reuse the page on WP fault

2015-03-04 Thread Kirill A. Shutemov
With new refcounting we will be able map the same compound page with PTEs and PMDs. It requires adjustment to conditions when we can reuse the page on write-protection fault. For PTE fault we can't reuse the page if it's part of huge page. For PMD we can only reuse the page if nobody else maps th

Re: [PATCH] HID: Kconfig: add USB_HID dependency to UC-LOGIC

2015-03-04 Thread Nikolai Kondrashov
On 03/04/2015 06:24 PM, Benjamin Tissoires wrote: In commit 08177f4 (HID: uclogic: merge hid-huion driver in hid-uclogic) HID_HUION depends explicitely on USB_HID because it contained quite some USB-isms. Now that hid-uclogic is the new home of Huion tablets, we need to also add the dependency o

Re: [PATCH 1/3] arm64: Don't use is_module_addr in setting page attributes

2015-03-04 Thread Catalin Marinas
On Wed, Feb 25, 2015 at 02:14:55PM -0800, Laura Abbott wrote: > > The set_memory_* functions currently only support module > addresses. The addresses are validated using is_module_addr. > That function is special though and relies on internal state > in the module subsystem to work properly. At th

[PATCHv4 18/24] thp, mm: split_huge_page(): caller need to lock page

2015-03-04 Thread Kirill A. Shutemov
We're going to use migration entries instead of compound_lock() to stabilize page refcounts. Setup and remove migration entries require page to be locked. Some of split_huge_page() callers already have the page locked. Let's require everybody to lock the page before calling split_huge_page(). Sig

Re: [RFC PATCH 0/1] Wrong structure alignment due to compiler attribute "section"

2015-03-04 Thread Lino Sanfilippo
On 04.03.2015 15:35, Dave Martin wrote: Try rm drivers/clk/mvebu/kirkwood.o make ARCH=arm KBUILD_CFLAGS_KERNEL=-save-temps drivers/clk/mvebu/kirkwood.o (abuse of KBUILD_CFLAGS_KERNEL here, but it's empty by default, and I'm too lazy to copy-paste command lines...) The compiler will split ou

Re: unbind/bind w1-gpio with device tree produce a crash

2015-03-04 Thread Ingo Flaschberger
is it ok, to create a new global variable that tracks if pdata was alloced via devm_kzalloc and sets pdata to NULL in w1_gpio_remove? Am 04.03.2015 um 04:53 schrieb Ingo Flaschberger: If w1-gpio is probed via device-tree configuration, pdata is allocated via devm_kzalloc. When the device is unb

[PATCHv4 20/24] mm, thp: remove compound_lock

2015-03-04 Thread Kirill A. Shutemov
We don't need a compound lock anymore: split_huge_page() doesn't need it anymore. Signed-off-by: Kirill A. Shutemov --- include/linux/mm.h | 35 include/linux/page-flags.h | 12 +--- mm/debug.c | 3 - mm/swap.c | 135 +++--

[PATCHv4 23/24] ksm: split huge pages on follow_page()

2015-03-04 Thread Kirill A. Shutemov
Let's split THP with FOLL_SPLIT. Attempting to split them laterk would always fail bacause we take references on tail pages. Signed-off-by: Kirill A. Shutemov --- mm/ksm.c | 58 -- 1 file changed, 8 insertions(+), 50 deletions(-) diff --gi

[PATCHv4 10/24] khugepaged: ignore pmd tables with THP mapped with ptes

2015-03-04 Thread Kirill A. Shutemov
Prepare khugepaged to see compound pages mapped with pte. For now we won't collapse the pmd table with such pte. khugepaged is subject for future rework wrt new refcounting. Signed-off-by: Kirill A. Shutemov --- mm/huge_memory.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff -

[PATCHv4 17/24] futex, thp: remove special case for THP in get_futex_key

2015-03-04 Thread Kirill A. Shutemov
With new THP refcounting, we don't need tricks to stabilize huge page. If we've got reference to tail page, it can't split under us. This patch effectively reverts a5b338f2b0b1. Signed-off-by: Kirill A. Shutemov --- kernel/futex.c | 61 --

[PATCHv4 13/24] mm, vmstats: new THP splitting event

2015-03-04 Thread Kirill A. Shutemov
The patch replaces THP_SPLIT with tree events: THP_SPLIT_PAGE, THP_SPLIT_PAGE_FAILT and THP_SPLIT_PMD. It reflects the fact that we now can split PMD without the compound page and that split_huge_page() can fail. Signed-off-by: Kirill A. Shutemov --- include/linux/vm_event_item.h | 4 +++- mm/hu

Re: [PATCH] bcma: Kconfig: Let it depend on PCI

2015-03-04 Thread Rafał Miłecki
On 4 March 2015 at 17:38, Michael Büsch wrote: > On Wed, 4 Mar 2015 14:36:10 +0100 > Rafał Miłecki wrote: > >> Any other opinions? > > I think this is the only way to go. > In ssb we always had optional pcicore driver, as far as I remember, > so we should have the same in bcma, too. > The old WRT

Re: [PATCH] ARM: at91/dt: add uart0 to sama5d3 DT

2015-03-04 Thread Nicolas Ferre
Le 04/03/2015 17:26, Nicolas Ferre a écrit : > Signed-off-by: Nicolas Ferre Please, forget this patch. It is handled by arch/arm/boot/dts/sama5d3_uart.dtsi file. Sorry for the noise ;-) Bye, > --- > arch/arm/boot/dts/sama5d3.dtsi | 26 ++ > 1 file changed, 26 insertio

[PATCHv4 16/24] x86, thp: remove infrastructure for handling splitting PMDs

2015-03-04 Thread Kirill A. Shutemov
With new refcounting we don't need to mark PMDs splitting. Let's drop code to handle this. Signed-off-by: Kirill A. Shutemov --- arch/x86/include/asm/pgtable.h | 9 - arch/x86/include/asm/pgtable_types.h | 2 -- arch/x86/mm/gup.c| 13 + arch/x86/mm

[PATCHv4 12/24] thp: PMD splitting without splitting compound page

2015-03-04 Thread Kirill A. Shutemov
Current split_huge_page() combines two operations: splitting PMDs into tables of PTEs and splitting underlying compound page. This patch changes split_huge_pmd() implementation to split the given PMD without splitting other PMDs this page mapped with or underlying compound page. In order to do thi

Re: [PATCH v2 2/4] i2c: sunxi: Add Reduced Serial Bus (RSB) DT bindings documentation

2015-03-04 Thread Maxime Ripard
On Mon, Mar 02, 2015 at 04:24:44PM +0800, Chen-Yu Tsai wrote: > Reduced Serial Bus (RSB) is an SMBus like bus used to communicate > with some PMICs (like the AXP223) or other peripherals. > > The RSB DT bindings are pretty much the same as the one defined for > the marvell's mv64xxx controller, wi

[PATCHv4 06/24] mm: store mapcount for compound page separately

2015-03-04 Thread Kirill A. Shutemov
We're going to allow mapping of individual 4k pages of THP compound and we need a cheap way to find out how many time the compound page is mapped with PMD -- compound_mapcount() does this. We use the same approach as with compound page destructor and compound order: use space in first tail page, -

[PATCHv4 09/24] thp, mlock: do not allow huge pages in mlocked area

2015-03-04 Thread Kirill A. Shutemov
With new refcounting THP can belong to several VMAs. This makes tricky to tracking THP pages, when they partially mlocked. It can lead to leaking mlocked pages to non-VM_LOCKED vmas and other problems. With this patch we will split all pages on mlock and avoid fault-in/collapse new THP in VM_LOCKE

Re: [PATCH 2/2] livepatch: fix patched module loading race

2015-03-04 Thread Petr Mladek
On Wed 2015-03-04 09:34:15, Josh Poimboeuf wrote: > On Wed, Mar 04, 2015 at 02:17:52PM +0100, Petr Mladek wrote: > > On Tue 2015-03-03 17:02:22, Josh Poimboeuf wrote: > > > It's possible for klp_register_patch() to see a module before the COMING > > > notifier is called, or after the GOING notifier

[PATCHv4 21/24] thp: introduce deferred_split_huge_page()

2015-03-04 Thread Kirill A. Shutemov
Currently we don't split huge page on partial unmap. It's not an ideal situation. It can lead to memory overhead. Furtunately, we can detect partial unmap on page_remove_rmap(). But we cannot call split_huge_page() from there due to locking context. It's also counterproductive to do directly from

[PATCHv4 14/24] thp: implement new split_huge_page()

2015-03-04 Thread Kirill A. Shutemov
The new split_huge_page() can fail if the compound is pinned: we expect only caller to have one reference to head page. If the page is pinned split_huge_page() returns -EBUSY and caller must handle this correctly. We don't need mark PMDs splitting since now we can split one PMD a time with split_h

[PATCHv4 11/24] thp: rename split_huge_page_pmd() to split_huge_pmd()

2015-03-04 Thread Kirill A. Shutemov
We are going to decouple splitting THP PMD from splitting underlying compound page. This patch renames split_huge_page_pmd*() functions to split_huge_pmd*() to reflect the fact that it doesn't imply page splitting, only PMD. Signed-off-by: Kirill A. Shutemov --- arch/powerpc/mm/subpage-prot.c |

[PATCHv4 08/24] mm: adjust FOLL_SPLIT for new refcounting

2015-03-04 Thread Kirill A. Shutemov
We prepare kernel to allow transhuge pages to be mapped with ptes too. We need to handle FOLL_SPLIT in follow_page_pte(). Also we use split_huge_page() directly instead of split_huge_page_pmd(). split_huge_page_pmd() will gone. Signed-off-by: Kirill A. Shutemov --- mm/gup.c | 70 +++

[PATCHv4 15/24] mm, thp: remove infrastructure for handling splitting PMDs

2015-03-04 Thread Kirill A. Shutemov
With new refcounting we don't need to mark PMDs splitting. Let's drop code to handle this. Arch-specific code will removed separately. Signed-off-by: Kirill A. Shutemov --- fs/proc/task_mmu.c| 8 +++--- include/asm-generic/pgtable.h | 5 include/linux/huge_mm.h | 16 ---

[PATCHv4 19/24] thp, mm: use migration entries to freeze page counts on split

2015-03-04 Thread Kirill A. Shutemov
Currently, we rely on compound_lock() to get page counts stable on splitting page refcounting. To get it work we also take the lock on get_page() and put_page() which is hot path. This patch rework splitting code to setup migration entries to stabilaze page count/mapcount before distribute refcoun

[PATCHv4 22/24] memcg: adjust to support new THP refcounting

2015-03-04 Thread Kirill A. Shutemov
With new refcounting we cannot rely on PageTransHuge() check if we need to charge size of huge page form the cgroup. We need to get information from caller to know whether it was mapped with PMD or PTE. We do uncharge when last reference on the page gone. At that point if we see PageTransHuge() it

[PATCH] omap-mcspi: When overriding SPI settings do not clobber status return value

2015-03-04 Thread David Bender
The call to omap2_mcspi_setup_transfer(spi, NULL) clobbers the previous status value, possibly masking hardware transfer errors. Instead record a separate status for this call. Give preference to reporting a hardware transfer error over any error returned by omap2_mcspi_setup_transfer() Signed-off

[PATCH] net: eth: xgene: fix booting with devicetree

2015-03-04 Thread Mark Salter
Commit de7b5b3d790a ("net: eth: xgene: change APM X-Gene SoC platform ethernet to support ACPI") breaks booting with devicetree with UEFI firmware. In that case, I get: Unhandled fault: synchronous external abort (0x9610) at 0xfc620010 Internal error: : 9610 [#1] SMP Modules link

Re: [PATCH v2 1/4] i2c: sunxi: Add Reduced Serial Bus (RSB) support

2015-03-04 Thread Maxime Ripard
Hi, On Mon, Mar 02, 2015 at 04:24:43PM +0800, Chen-Yu Tsai wrote: > The RSB controller looks like an SMBus controller which only supports byte > and word data transfers. It can also do double-word data transfers, but the > I2C subsystem does not support this, nor have we seen devices using this. >

[PATCH] ARM: at91/dt/trivial: correct file headers for SAMA5D3 SoC peripherals

2015-03-04 Thread Nicolas Ferre
File name had at91 prefix, which is not the case anymore for SAMA5D3. AT91SAM9x5 was mentioned instead of SAMA5D3 SoC. Signed-off-by: Nicolas Ferre --- arch/arm/boot/dts/sama5d3_can.dtsi | 2 +- arch/arm/boot/dts/sama5d3_emac.dtsi | 2 +- arch/arm/boot/dts/sama5d3_gmac.dtsi | 2 +- arch/arm/boo

Re: [PATCH 5/6] ARM: at91: remove SoC headers

2015-03-04 Thread Arnd Bergmann
On Wednesday 04 March 2015 15:47:25 Alexandre Belloni wrote: > @@ -21,6 +21,14 @@ > #include "generic.h" > #include "soc.h" > > +#define SAMA5D4_BASE_USART30xfc00c000 /* (USART3 non-secure) Base > Address */ > +#define SAMA5D4_BASE_PMC 0xf0018000 /* (PMC) Base Address */ > +#define S

Re: PCIe 32-bit MMIO exhaustion

2015-03-04 Thread Bjorn Helgaas
On Wed, Mar 04, 2015 at 03:12:04PM +0800, Daniel J Blueman wrote: > Your patch solves the conflicts nicely [1] with: > > From f835b16b0758a1dde6042a0e4c8aa5a2e8be5f21 Mon Sep 17 00:00:00 2001 > From: Daniel J Blueman > Date: Wed, 4 Mar 2015 14:53:00 +0800 > Subject: [PATCH] Mark PCI BARs with add

Re: [PATCH v2] usb: isp1760: add peripheral/device controller chip id

2015-03-04 Thread Sudeep Holla
On 04/03/15 16:11, Laurent Pinchart wrote: Hi Sudeep, On Wednesday 04 March 2015 15:56:12 Sudeep Holla wrote: [...] Also I don't see any message on the host side. Let me know if there's something wrong in my config or test commands. Looks like a driver bug to me, .udc_start() and .udc_s

RE: Question on MSI support in PCI and PCI-E devices

2015-03-04 Thread McKay, Luke
Legacy INTx is shared amongst multiple devices. Since it is a level sensitive simulation of the interrupt line, it only takes one device (or driver) to forget to clear the interrupt, and then it stuck and won't work for any of the devices using it. If you're working with one particular device

[PATCH] usb: isp1760: fix possible deadlock in isp1760_udc_irq

2015-03-04 Thread Sudeep Holla
Use spin_{un,}lock_irq{save,restore} in isp1760_udc_{start,stop} to prevent following potentially deadlock scenario between isp1760_udc_{start,stop} and isp1760_udc_irq : = [ INFO: inconsistent lock state ] 4.0.0-rc2-4-gf7bb2ef60173 #51 Not tainted -

Re: [PATCH v2] regmap: Skip read-only registers in regcache_sync()

2015-03-04 Thread Mark Brown
On Wed, Mar 04, 2015 at 03:29:17PM +0100, Takashi Iwai wrote: > regcache_sync() spews warnings when a value was cached for a read-only > register as it tries to write all registers no matter whether they are > writable or not. This patch adds regmap_wrtieable() checks for > avoiding it in regcache

Re: brcmsmac not compliant to 802.11 for BCM4313

2015-03-04 Thread Pat Erley
(I don't know why I've been added on this e-mail chain, I'm not in any way linked to broadcom or any of their drivers) On 03/04/2015 09:39 AM, Nikita N. wrote: Dear Arend, as followup to my last inquiry, since it's passed more than 2 weeks, I'm afraid I didn't receive any answer. As from subjec

Re: [PATCH 5/6] ARM: at91: remove SoC headers

2015-03-04 Thread Alexandre Belloni
On 04/03/2015 at 18:03:45 +0100, Arnd Bergmann wrote : > On Wednesday 04 March 2015 15:47:25 Alexandre Belloni wrote: > > @@ -21,6 +21,14 @@ > > #include "generic.h" > > #include "soc.h" > > > > +#define SAMA5D4_BASE_USART30xfc00c000 /* (USART3 non-secure) Base > > Address */ > > +#define

Re: [PATCH] regulator: core: Fix enable GPIO reference counting

2015-03-04 Thread Doug Anderson
Mark, On Wed, Mar 4, 2015 at 3:27 AM, Mark Brown wrote: > On Tue, Mar 03, 2015 at 03:21:21PM -0800, Doug Anderson wrote: > >> It looks as if "ena_gpio_state" is not quite what I thought it was and >> I think is not actually consistent in the regulator framework itself. >> In _regulator_do_enable(

Re: [PATCH] bcma: Kconfig: Let it depend on PCI

2015-03-04 Thread Michael Büsch
On Wed, 4 Mar 2015 14:36:10 +0100 Rafał Miłecki wrote: > Any other opinions? I think this is the only way to go. In ssb we always had optional pcicore driver, as far as I remember, so we should have the same in bcma, too. The old WRT54G kernel used to compile just fine with SSB and without any P

Re: Question on MSI support in PCI and PCI-E devices

2015-03-04 Thread Roger Heflin
We verified the exact same device worked with the previous cpu in the same mb/bios combination same os/kernel combination, only identified change for us was a ivy bridge vs a sandy bridge in the same mb/bios/boardfirmware. And in this case only one device driver/pci board was using the given inter

Re: [PATCH v3 4/9] power: reset: Add AT91RM9200 reset driver

2015-03-04 Thread Sebastian Reichel
Hi, On Wed, Mar 04, 2015 at 03:21:32PM +0100, Alexandre Belloni wrote: > AT91RM9200 uses the watchdog from the system timer to reset. > [...] > + regmap_write(regmap_st, AT91_ST_WDMR, > + AT91_ST_RSTEN | AT91_ST_EXTEN | 1); > + regmap_write(regmap_st, AT91_ST_CR, AT91_ST_W

Re: [PATCH 4.0-rc1 v17 4/6] printk: Simple implementation for NMI backtracing

2015-03-04 Thread Joe Perches
On Wed, 2015-03-04 at 16:33 +, Daniel Thompson wrote: > On Wed, 2015-03-04 at 11:20 -0500, Steven Rostedt wrote: > > On Wed, 04 Mar 2015 08:13:21 -0800 > > Joe Perches wrote: > > > > > On Wed, 2015-03-04 at 10:12 +, Daniel Thompson wrote: > > > > Currently there is a quite a pile of code

Re: [PATCH v5 tip 0/7] tracing: attach eBPF programs to kprobes

2015-03-04 Thread Alexei Starovoitov
On Sun, Mar 1, 2015 at 3:27 PM, Alexei Starovoitov wrote: > Peter, Steven, > I think this set addresses everything we've discussed. > Please review/ack. Thanks! icmp echo request > V4->V5: > - switched to ktime_get_mono_fast_ns() as suggested by Peter > - in libbpf.c fixed zero init of 'union bp

Re: [PATCH 0/4] hugetlbfs: optionally reserve all fs pages at mount time

2015-03-04 Thread Mike Kravetz
On 03/03/2015 09:49 PM, David Rientjes wrote: On Tue, 3 Mar 2015, Mike Kravetz wrote: Add a new hugetlbfs mount option 'reserved' to specify that the number of pages associated with the size of the filesystem will be reserved. If there are insufficient pages, the mount will fail. The reservati

<    4   5   6   7   8   9   10   11   12   13   >