Re: [PATCH 1/1] ext3: Add __init macro to init_inodecache

2014-02-03 Thread Jan Kara
On Sat 01-02-14 19:13:00, Fabian Frederick wrote: > init_inodecache is only called by __init init_ext3_fs. Thanks. Added to my tree. Honza > > Signed-off-by: Fabian Frederick > --- > fs/ext3/super.c | 2 +- > 1 file changed, 1

Re: [PATCH 1/1] udf: Add __init macro to init_inodecache

2014-02-03 Thread Jan Kara
On Sat 01-02-14 15:45:18, Fabian Frederick wrote: > init_inodecache is only called by __init init_udf_fs. Thanks. Added to my tree. Honza > > Signed-off-by: Fabian Frederick > --- > fs/udf/super.c | 2 +- > 1 file changed, 1

Re: [PATCH 1/1] ext2: Add __init macro to init_inodecache

2014-02-03 Thread Jan Kara
On Sat 01-02-14 16:02:02, Fabian Frederick wrote: > init_inodecache is only called by __init init_ext2_fs. Thanks added to my tree. Honza > > Signed-off-by: Fabian Frederick > --- > fs/ext2/super.c | 2 +- > 1 file changed, 1

Re: [PATCH v2 0/3] Deferrable timers support for timerfd API

2014-02-03 Thread John Stultz
On 02/02/2014 10:54 PM, Alexey Perevalov wrote: > Dear John, hello > > could we figure out without Thomas advice? > Maybe it worth to propose timerfd and posix timer flag unification patch? That would likely get his attention (and possibly wrath)... so not a bad idea! ;) thanks -john -- To

[PATCH 2/2] ALSA: hda/hdmi - allow PIN_OUT to be dynamically enabled

2014-02-03 Thread Stephen Warren
From: Stephen Warren (This is upstream 75fae117a5db "ALSA: hda/hdmi - allow PIN_OUT to be dynamically enabled", backported to stable 3.10 through 3.12. 3.13 and later can take the original patch.) Commit 384a48d71520 "ALSA: hda: HDMI: Support codecs with fewer cvts than pins" dynamically

Re: [PATCH] Fix lockdep false positive in add_full()

2014-02-03 Thread Paul E. McKenney
On Mon, Feb 03, 2014 at 03:31:40PM -0800, David Rientjes wrote: > On Mon, 3 Feb 2014, Paul E. McKenney wrote: > > > Hello! > > > > The add_full() function currently has a lockdep_assert_held() requiring > > that the kmem_cache_node structure's ->list_lock be held. However, > > this lock is not

[patch for-3.14] mm, slub: list_lock may not be held in some circumstances

2014-02-03 Thread David Rientjes
Commit c65c1877bd68 ("slub: use lockdep_assert_held") incorrectly required that add_full() and remove_full() hold n->list_lock. The lock is only taken when kmem_cache_debug(s), since that's the only time it actually does anything. Require that the lock only be taken under such a condition.

Re: Kernel WARNING splat in 3.14-rc1

2014-02-03 Thread Paul E. McKenney
On Mon, Feb 03, 2014 at 05:08:11PM -0600, Larry Finger wrote: > On 02/03/2014 02:39 PM, David Rientjes wrote: > >Commit c65c1877bd68 ("slub: use lockdep_assert_held") incorrectly required > >that add_full() and remove_full() hold n->list_lock. The lock is only > >taken when kmem_cache_debug(s),

Re: + arch-x86-mm-numa_32c-fix-the-initialization-of-physnode_map.patch added to -mm tree

2014-02-03 Thread David Rientjes
On Mon, 3 Feb 2014, a...@linux-foundation.org wrote: > From: Petr Tesarik > Subject: arch/x86/mm/numa_32.c: fix the initialization of physnode_map > > With DISCONTIGMEM, the mapping between a pfn and its owning node is > initialized using data provided by the BIOS. However, the initialization

[PATCH 21/24][Resend] ACPI / hotplug / PCI: Rework the handling of eject requests

2014-02-03 Thread Rafael J. Wysocki
From: Rafael J. Wysocki To avoid the need to install a hotplug notify handler for each ACPI namespace node representing a device and having a matching scan handler, move the check whether or not the ejection of the given device is enabled through its scan handler from acpi_hotplug_notify_cb() to

[PATCH 23/24][Update] ACPI / hotplug / PCI: Hotplug notifications from acpi_bus_notify()

2014-02-03 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Since acpi_bus_notify() is executed on all notifications for all devices anyway, make it execute acpi_device_hotplug() for all hotplug events instead of installing notify handlers pointing to the same function for all hotplug devices. This change reduces both the size

[PATCH 20/24][Update] ACPI / hotplug / PCI: Consolidate ACPIPHP with ACPI core hotplug

2014-02-03 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The ACPI-based PCI hotplug (ACPIPHP) code currently attaches its hotplug context objects directly to ACPI namespace nodes representing hotplug devices. However, after recent changes causing struct acpi_device to be created for every namespace node representing a device

[PATCH 18/24][Update] ACPI / hotplug: Fix potential race in acpi_bus_notify()

2014-02-03 Thread Rafael J. Wysocki
From: Rafael J. Wysocki There is a slight possibility for the ACPI device object pointed to by adev in acpi_hotplug_notify_cb() to become invalid between the acpi_bus_get_device() that it comes from and the subsequent dereference of that pointer under get_device(). Namely, if

[PATCH 16/24][New] ACPI / hotplug / PCI: Do not pass ACPI handle to hotplug_event()

2014-02-03 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Since hotplug_event() can get the ACPI handle needed for debug printouts from its context argument, there's no need to pass the handle to it. Moreover, the second argument's type may be changed to (struct acpiphp_context *), because that's what is always passed to

[PATCH 24/24][New] ACPI / hotplug / PCI: Rework acpiphp_check_host_bridge()

2014-02-03 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Since the only existing caller of acpiphp_check_host_bridge(), which is acpi_pci_root_scan_dependent(), already has a struct acpi_device pointer needed to obtain the ACPIPHP context, it doesn't make sense to execute acpi_bus_get_device() on its handle in

Re: [PATCH 3/8] mm/swap: prevent concurrent swapon on the same S_ISBLK blockdev

2014-02-03 Thread Andrew Morton
On Mon, 27 Jan 2014 18:03:04 +0800 Weijie Yang wrote: > When swapon the same S_ISBLK blockdev concurrent, the allocated two > swap_info could hold the same block_device, because claim_swapfile() > allow the same holder(here, it is sys_swapon function). > > To prevent this situation, This patch

Re: [PATCH 0/4] clk: mvebu: fix clk init order

2014-02-03 Thread Sebastian Hesselbarth
On 02/04/2014 12:16 AM, Willy Tarreau wrote: On Thu, Jan 30, 2014 at 11:31:32AM +0100, Sebastian Hesselbarth wrote: On 01/30/14 11:24, Gregory CLEMENT wrote: On 25/01/2014 19:19, Sebastian Hesselbarth wrote: This patch set fixes clk init order that went upside-down with v3.14. I haven't

[PATCH 15/24][Resend] ACPI / hotplug / PCI: Use acpi_handle_debug() in hotplug_event()

2014-02-03 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Make hotplug_event() use acpi_handle_debug() instead of an open-coded debug message printing and clean up the messages printed by it. Signed-off-by: Rafael J. Wysocki Tested-by: Mika Westerberg --- drivers/pci/hotplug/acpiphp_glue.c | 12 +++- 1 file

[PATCH 17/24][Resend] ACPICA: Introduce acpi_get_data_full() and rework acpi_get_data()

2014-02-03 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Introduce a new function, acpi_get_data_full(), working in analogy with acpi_get_data() except that it can execute a callback provided as its 4th argument right after acpi_ns_get_attached_data() has returned a success. That will allow Linux to reference count the object

[PATCH 22/24][Resend] ACPI / hotplug / PCI: Simplify acpi_install_hotplug_notify_handler()

2014-02-03 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Since acpi_hotplug_notify_cb() does not use its data argument any more, the second argument of acpi_install_hotplug_notify_handler() can be dropped, so do that and update its callers accordingly. Signed-off-by: Rafael J. Wysocki Tested-by: Mika Westerberg ---

Re: [PATCH] Clarify CONFIG_DEBUG_INFO's bloaty nature

2014-02-03 Thread David Rientjes
On Mon, 3 Feb 2014, Andrew Morton wrote: > > > How do you define "huge bloat" if the size of vmlinux doesn't increase? > > > > Don't be silly. The size of all the object files increase *hugely*. > > yup, I disable this in my allmodconfig testing, to great effect. > > That being said, I do

[PATCH 14/24][Update] ACPI / hotplug / PCI: Simplify hotplug_event()

2014-02-03 Thread Rafael J. Wysocki
From: Rafael J. Wysocki A few lines of code can be cut from hotplug_event() by defining and initializing the slot variable at the top of the function, so do that. Signed-off-by: Rafael J. Wysocki --- drivers/pci/hotplug/acpiphp_glue.c | 19 ++- 1 file changed, 6

[PATCH 13/24][Resend] ACPI / hotplug / PCI: Drop crit_sect locking

2014-02-03 Thread Rafael J. Wysocki
From: Rafael J. Wysocki After recent PCI core changes related to the rescan/remove locking, the code sections under crit_sect mutexes from ACPIPHP slot objects are always executed under the general PCI rescan/remove lock. For this reason, the crit_sect mutexes are simply redundant, so drop them.

[PATCH 12/24][Resend] ACPI / hotplug / PCI: Drop acpiphp_bus_add()

2014-02-03 Thread Rafael J. Wysocki
From: Rafael J. Wysocki acpiphp_bus_add() is only called from one place, so move the code out of it into that place and drop it. Also make that code use func_to_acpi_device() to get the struct acpi_device pointer it needs instead of calling acpi_bus_get_device() which may be costly.

[PATCH 11/24][Update] ACPI / hotplug / PCI: Store acpi_device pointer in acpiphp_context

2014-02-03 Thread Rafael J. Wysocki
From: Rafael J. Wysocki After recent modifications of the ACPI core making it create a struct acpi_device object for every namespace node representing a device regardless of the current status of that device the ACPIPHP code can store a struct acpi_device pointer instead of an ACPI handle in

Re: [PATCH] Fix lockdep false positive in add_full()

2014-02-03 Thread David Rientjes
On Mon, 3 Feb 2014, Paul E. McKenney wrote: > Hello! > > The add_full() function currently has a lockdep_assert_held() requiring > that the kmem_cache_node structure's ->list_lock be held. However, > this lock is not acquired by add_full()'s caller deactivate_slab() > in the full-node case

[PATCH 9/24][Resend] ACPI / hotplug / PCI: Drop acpiphp_bus_trim()

2014-02-03 Thread Rafael J. Wysocki
From: Rafael J. Wysocki If trim_stale_devices() calls acpi_bus_trim() directly, we can save a potentially costly acpi_bus_get_device() invocation. After making that change acpiphp_bus_trim() would only be called from one place, so move the code from it to that place and drop it. Signed-off-by:

[PATCH 10/24][Resend] ACPI / hotplug / PCI: Rework acpiphp_no_hotplug()

2014-02-03 Thread Rafael J. Wysocki
From: Rafael J. Wysocki If a struct acpi_device pointer is passed to acpiphp_no_hotplug() instead of an ACPI handle, the function won't need to call acpi_bus_get_device(), which may be costly, any more. Then, trim_stale_devices() can call acpiphp_no_hotplug() passing the struct acpi_device

Re: [PATCH] arm64: Add architecture support for PCI

2014-02-03 Thread Jason Gunthorpe
On Mon, Feb 03, 2014 at 05:07:48PM -0600, Rob Herring wrote: > > An interesting question however is what the transition plan is to > > have the code shared between arm32 and arm64: We will certainly need > > to share at least the dw-pcie and the generic SBSA compliant pci > > implementation. > >

[PATCH 7/24][Resend] ACPI / hotplug / PCI: Proper kerneldoc comments for enumeration/removal

2014-02-03 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Add proper kerneldoc comments describing acpiphp_enumerate_slots() and acpiphp_remove_slots(). Signed-off-by: Rafael J. Wysocki Tested-by: Mika Westerberg --- drivers/pci/hotplug/acpiphp_glue.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-)

[PATCH 5/24][New] ACPI / hotplug / PCI: Fix bridge removal race vs dock events

2014-02-03 Thread Rafael J. Wysocki
From: Rafael J. Wysocki If a PCI bridge with an ACPIPHP context attached is removed via sysfs, the code path executed as a result is the following: pci_stop_and_remove_bus_device_locked pci_remove_bus pcibios_remove_bus acpi_pci_remove_bus acpiphp_remove_slots cleanup_bridge

[PATCH 8/24][Resend] ACPI / hotplug / PCI: Simplify register_slot()

2014-02-03 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The err label in register_slot() is only jumped to from one place, so move the code under the label to that place and drop the label. Signed-off-by: Rafael J. Wysocki Tested-by: Mika Westerberg --- drivers/pci/hotplug/acpiphp_glue.c | 12 1 file

[PATCH 6/24][Resend] ACPI / hotplug / PCI: Simplify disable_slot()

2014-02-03 Thread Rafael J. Wysocki
From: Rafael J. Wysocki After recent PCI core changes related to the rescan/remove locking, the ACPIPHP's disable_slot() function is only called under the general PCI rescan/remove lock, so it doesn't have to use dev_in_slot() any more to avoid race conditions. Make it simply walk the devices

[PATCH 3/24][Resend] ACPI / hotplug / PCI: Scan root bus under the PCI rescan-remove lock

2014-02-03 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Since acpiphp_check_bridge() called by acpiphp_check_host_bridge() does things that require PCI rescan-remove locking around it, make acpiphp_check_host_bridge() use that locking. Signed-off-by: Rafael J. Wysocki --- drivers/pci/hotplug/acpiphp_glue.c |4 1

Re: [PATCH 2/8] mm/swap: fix race on swap_info reuse between swapoff and swapon

2014-02-03 Thread Andrew Morton
On Mon, 3 Feb 2014 15:23:40 -0800 Andrew Morton wrote: > On Mon, 27 Jan 2014 18:03:04 +0800 Weijie Yang > wrote: > > > swapoff clear swap_info's SWP_USED flag prematurely and free its resources > > after that. A concurrent swapon will reuse this swap_info while its previous > > resources are

[PATCH 2/24][Resend] ACPI / hotplug / PCI: Move PCI rescan-remove locking to hotplug_event()

2014-02-03 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Commit 9217a984671e (ACPI / hotplug / PCI: Use global PCI rescan-remove locking) modified ACPIPHP to protect its PCI device removal and addition code paths from races against sysfs-driven rescan and remove operations with the help of PCI rescan-remove locking. However,

[PATCH 4/24][New] ACPI / hotplug / PCI: Fix bridge removal race in handle_hotplug_event()

2014-02-03 Thread Rafael J. Wysocki
From: Rafael J. Wysocki If a PCI bridge with an ACPIPHP context attached is removed via sysfs, the code path executed as a result is the following: pci_stop_and_remove_bus_device_locked pci_remove_bus pcibios_remove_bus acpi_pci_remove_bus acpiphp_remove_slots cleanup_bridge

[PATCH 1/24][Resend] ACPI / hotplug / PCI: Remove entries from bus->devices in reverse order

2014-02-03 Thread Rafael J. Wysocki
From: Rafael J. Wysocki According to the changelog of commit 29ed1f29b68a (PCI: pciehp: Fix null pointer deref when hot-removing SR-IOV device) it is unsafe to walk the bus->devices list of a PCI bus and remove devices from it in direct order, because that may lead to NULL pointer dereferences

[PATCH v2 0/24] ACPI / hotplug / PCI: ACPIPHP updates and consolidation with ACPI core

2014-02-03 Thread Rafael J. Wysocki
On Monday, February 03, 2014 12:44:08 PM Mika Westerberg wrote: > On Sun, Feb 02, 2014 at 01:19:33AM +0100, Rafael J. Wysocki wrote: > > On Monday, January 27, 2014 01:37:17 AM Rafael J. Wysocki wrote: > > > Hi All, > > > > > > ACPIPHP can be simplified a bit on top of some PCI and ACPI changes

[PATCH 19/24][Update] ACPI / hotplug / PCI: Define hotplug context lock in the core

2014-02-03 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Subsequent changes will require the ACPI core to acquire the lock protecting the ACPIPHP hotplug contexts, so move the definition of the lock to the core and change its name to be more generic. Signed-off-by: Rafael J. Wysocki --- drivers/acpi/scan.c|

Re: [PATCH 2/8] mm/swap: fix race on swap_info reuse between swapoff and swapon

2014-02-03 Thread Andrew Morton
On Mon, 27 Jan 2014 18:03:04 +0800 Weijie Yang wrote: > swapoff clear swap_info's SWP_USED flag prematurely and free its resources > after that. A concurrent swapon will reuse this swap_info while its previous > resources are not cleared completely. > > These late freed resources are: > -

Re: [PATCH RESEND 5/10] xfstest: shared/001: Standard collapse range tests

2014-02-03 Thread Dave Chinner
On Sun, Feb 02, 2014 at 02:45:58PM +0900, Namjae Jeon wrote: > From: Namjae Jeon > > This testcase(001) tries to test various corner cases > for fcollapse range functionality over different type of extents. > > Signed-off-by: Namjae Jeon > Signed-off-by: Ashish Sangwan Couple of things: >

[PATCH] of: restructure for_each macros to fix compile warnings

2014-02-03 Thread Rob Herring
From: Rob Herring Commit 00b2c76a6a "include/linux/of.h: make for_each_child_of_node() reference its args when CONFIG_OF=n" fixed warnings for unused variables, but introduced variable "used uninitialized" warnings. Simply initializing the variables would result in "set but not used" warnings

Re: [PATCH 0/4] clk: mvebu: fix clk init order

2014-02-03 Thread Willy Tarreau
Hi Sebastian, On Thu, Jan 30, 2014 at 11:31:32AM +0100, Sebastian Hesselbarth wrote: > On 01/30/14 11:24, Gregory CLEMENT wrote: > >On 25/01/2014 19:19, Sebastian Hesselbarth wrote: > >>This patch set fixes clk init order that went upside-down with > >>v3.14. I haven't really investigated what

Re: [PATCH v3 5/6] fat: permit to return phy block number by fibmap in fallocated region

2014-02-03 Thread Namjae Jeon
2014-02-03, OGAWA Hirofumi : > Namjae Jeon writes: > >> From: Namjae Jeon >> >> Make the fibmap call the return the proper physical block number for any >> offset request in the fallocated range. >> >> Signed-off-by: Namjae Jeon >> Signed-off-by: Amit Sahrawat >> --- >> fs/fat/cache.c | 13

[PATCH v5 1/6] spmi: Linux driver framework for SPMI

2014-02-03 Thread Josh Cartwright
From: Kenneth Heitke System Power Management Interface (SPMI) is a specification developed by the MIPI (Mobile Industry Process Interface) Alliance optimized for the real time control of Power Management ICs (PMIC). SPMI is a two-wire serial interface that supports up to 4 master devices and up

[PATCH v5 2/6] spmi: add generic SPMI controller binding documentation

2014-02-03 Thread Josh Cartwright
Signed-off-by: Josh Cartwright --- Documentation/devicetree/bindings/spmi/spmi.txt | 41 + 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/spmi/spmi.txt diff --git a/Documentation/devicetree/bindings/spmi/spmi.txt

[PATCH v5 4/6] spmi: pmic_arb: add support for interrupt handling

2014-02-03 Thread Josh Cartwright
The Qualcomm PMIC Arbiter, in addition to being a basic SPMI controller, also implements interrupt handling for slave devices. Note, this is outside the scope of SPMI, as SPMI leaves interrupt handling completely unspecified. Extend the driver to provide a irq_chip implementation and chained irq

[PATCH v5 5/6] spmi: document the PMIC arbiter SPMI bindings

2014-02-03 Thread Josh Cartwright
Signed-off-by: Josh Cartwright --- .../bindings/spmi/qcom,spmi-pmic-arb.txt | 60 ++ 1 file changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/spmi/qcom,spmi-pmic-arb.txt diff --git

[PATCH v5 6/6] regmap: spmi: support base and extended register spaces

2014-02-03 Thread Josh Cartwright
SPMI states that a slave may contain two register spaces, the Base register space is a 5-bit byte-addressable space accessed via the Register Read/Write and Register Zero Write command sequences, and the Extended register space: a 16-bit byte-addressable space accessed via the Extended Read/Write

[PATCH v5 3/6] spmi: Add MSM PMIC Arbiter SPMI controller

2014-02-03 Thread Josh Cartwright
From: Kenneth Heitke Qualcomm's PMIC Arbiter SPMI controller functions as a bus master and is used to communication with one or more PMIC (slave) devices on the SPMI bus. The PMIC Arbiter is actually a hardware wrapper around the SPMI controller that provides concurrent and autonomous PMIC

[PATCH v5 0/6] Add support for the System Power Management Interface (SPMI)

2014-02-03 Thread Josh Cartwright
The System Power Management Interface (SPMI) is a high-speed, low-latency, bi-directional, two-wire serial bus suitable for real-time control of voltage and frequency scaled multi-core application processors and its power management of auxiliary components. SPMI obsoletes a number of legacy,

Re: [BUGREPORT] Linux USB 3.0

2014-02-03 Thread Markus Rechberger
Hi Sarah, On Mon, Jan 20, 2014 at 8:35 PM, Sarah Sharp wrote: > Hi Markus, > > I'm the xHCI driver maintainer, and it helps to Cc me on USB 3.0 bug > reports. > > On Sat, Dec 28, 2013 at 07:24:20AM +0100, Markus Rechberger wrote: >> just received following log snippset: > > Please state which

Re: [PATCH v2] mm/zswap: add writethrough option

2014-02-03 Thread Andrew Morton
On Mon, 27 Jan 2014 09:01:19 -0500 Dan Streetman wrote: > Currently, zswap is writeback cache; stored pages are not sent > to swap disk, and when zswap wants to evict old pages it must > first write them back to swap cache/disk manually. This avoids > swap out disk I/O up front, but only moves

Re: Kernel WARNING splat in 3.14-rc1

2014-02-03 Thread Larry Finger
On 02/03/2014 02:39 PM, David Rientjes wrote: Commit c65c1877bd68 ("slub: use lockdep_assert_held") incorrectly required that add_full() and remove_full() hold n->list_lock. The lock is only taken when kmem_cache_debug(s), since that's the only time it actually does anything. Require that the

Re: [PATCH] arm64: Add architecture support for PCI

2014-02-03 Thread Rob Herring
On Mon, Feb 3, 2014 at 2:05 PM, Arnd Bergmann wrote: > On Monday 03 February 2014 19:18:38 Liviu Dudau wrote: >> On Mon, Feb 03, 2014 at 06:58:56PM +, Arnd Bergmann wrote: >> > On Monday 03 February 2014 18:43:48 Liviu Dudau wrote: [snip] >> Agree. This is the RFC version. I didn't dare to

[Patch v4 0/2] Add Qualcomm BAM dmaengine driver

2014-02-03 Thread Andy Gross
This patch set introduces the dmaengine driver for the Qualcomm Bus Access Manager (BAM) DMA controller present on MSM 8x74 devices. A number of the on-chip devices have their own BAM DMA controller and use it to move data between system memory and peripherals or between two peripherals. The

[Patch v4 1/2] dmaengine: add Qualcomm BAM dma driver

2014-02-03 Thread Andy Gross
Add the DMA engine driver for the QCOM Bus Access Manager (BAM) DMA controller found in the MSM 8x74 platforms. Each BAM DMA device is associated with a specific on-chip peripheral. Each channel provides a uni-directional data transfer engine that is capable of transferring data between the

[Patch v4 2/2] dmaengine: qcom_bam_dma: Add device tree binding

2014-02-03 Thread Andy Gross
Add device tree binding support for the QCOM BAM DMA driver. Signed-off-by: Andy Gross --- .../devicetree/bindings/dma/qcom_bam_dma.txt | 48 1 file changed, 48 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/qcom_bam_dma.txt diff --git

Re: [PATCH v3 2/6] fat: add fat_fallocate operation

2014-02-03 Thread Namjae Jeon
2014-02-03, OGAWA Hirofumi : > > Sorry for long delay. > > Namjae Jeon writes: > >> +if (mode & FALLOC_FL_KEEP_SIZE) { >> +/* First compute the number of clusters to be allocated */ >> +mm_bytes = offset + len - round_up(MSDOS_I(inode)->mmu_private, >> +

Re: [PATCH v2] vmcore: prevent PT_NOTE p_memsz overflow during header update

2014-02-03 Thread Pearson, Greg
On 02/03/2014 02:38 PM, Vivek Goyal wrote: > On Mon, Feb 03, 2014 at 01:18:38PM -0700, Greg Pearson wrote: > > [..] >> diff --git a/fs/proc/vmcore.c b/fs/proc/vmcore.c >> index 2ca7ba0..051c803 100644 >> --- a/fs/proc/vmcore.c >> +++ b/fs/proc/vmcore.c >> @@ -468,12 +468,14 @@ static int __init

Re: [PATCH] Clarify CONFIG_DEBUG_INFO's bloaty nature

2014-02-03 Thread Andrew Morton
On Mon, 3 Feb 2014 14:47:15 -0800 Linus Torvalds wrote: > On Mon, Feb 3, 2014 at 2:00 PM, David Rientjes wrote: > > > > How do you define "huge bloat" if the size of vmlinux doesn't increase? > > Don't be silly. The size of all the object files increase *hugely*. yup, I disable this in my

[PATCH] Fix lockdep false positive in add_full()

2014-02-03 Thread Paul E. McKenney
Hello! The add_full() function currently has a lockdep_assert_held() requiring that the kmem_cache_node structure's ->list_lock be held. However, this lock is not acquired by add_full()'s caller deactivate_slab() in the full-node case unless debugging is enabled. Because full nodes are accessed

Re: [PATCH v2] ceph: fix posix ACL hooks

2014-02-03 Thread Linus Torvalds
On Mon, Feb 3, 2014 at 2:40 PM, Al Viro wrote: > > Umm... Point, but that actually means that we get an extra pitfall for > filesystem writers here. foo_permission() passes dentry (now that it > has one) to foo_wank_a_lot(), with the latter using dentry->d_inode at > some point... I agree.

[PATCH char-misc-linus] misc: mic: fix possible signed underflow (undefined behavior) in userspace API

2014-02-03 Thread Sudeep Dutt
iovcnt is declared as a signed integer in both the userspace API and as a local variable in mic_virtio.c. The while() loop in mic_virtio.c iterates until the local variable iovcnt reaches the value 0. If userspace passes e.g. INT_MIN as iovcnt field, this loop then appears to depend on an

Re: [PATCH] Clarify CONFIG_DEBUG_INFO's bloaty nature

2014-02-03 Thread Linus Torvalds
On Mon, Feb 3, 2014 at 2:00 PM, David Rientjes wrote: > > How do you define "huge bloat" if the size of vmlinux doesn't increase? Don't be silly. The size of all the object files increase *hugely*. This is my fs/builtin.o in my normal config: -rw-rw-r--. 1 torvalds torvalds 2838613 Feb 3

Re: [PATCH,RFC] random: collect cpu randomness

2014-02-03 Thread Theodore Ts'o
On Mon, Feb 03, 2014 at 09:54:22PM +, Maciej W. Rozycki wrote: > > Can we be sure we don't leak information this way? Just being > paranoid... The register information will be mixed pretty thoroughly by the time it gets to the entropy pool, and then we don't ever expose the entropy pool

Re: Kernel WARNING splat in 3.14-rc1

2014-02-03 Thread Christoph Lameter
On Mon, 3 Feb 2014, David Rientjes wrote: > Commit c65c1877bd68 ("slub: use lockdep_assert_held") incorrectly required > that add_full() and remove_full() hold n->list_lock. The lock is only > taken when kmem_cache_debug(s), since that's the only time it actually > does anything. Acked-by:

Re: [PATCH v2] ceph: fix posix ACL hooks

2014-02-03 Thread Al Viro
On Mon, Feb 03, 2014 at 02:12:00PM -0800, Linus Torvalds wrote: > >> -int afs_permission(struct inode *inode, int mask) > >> +int afs_permission(struct dentry *dentry, struct inode *inode, int mask) > > > > Oh, _lovely_. So not only do we pass dentry, the arguments are redundant > > as well. >

Re: [PATCH] arm64: Add architecture support for PCI

2014-02-03 Thread Andrew Murray
On 3 February 2014 18:43, Liviu Dudau wrote: > diff --git a/arch/arm64/include/asm/io.h b/arch/arm64/include/asm/io.h > index 4cc813e..ce5bad2 100644 > --- a/arch/arm64/include/asm/io.h > +++ b/arch/arm64/include/asm/io.h > @@ -120,9 +120,13 @@ static inline u64 __raw_readq(const volatile void >

[PATCH v3 2/7] time: clockevents: Adjust timer interval when frequency changes

2014-02-03 Thread Soren Brinkmann
To adjust the timer's interval in periodic mode, the clockevent device is put into periodic mode during clockevents_update_freq() in case the timer is in periodic mode. Cc: Thomas Gleixner Signed-off-by: Soren Brinkmann --- It is assumed that simply calling the timer's 'set_mode()' API takes

[PATCH v3 0/7] ARM: zynq: cpufreq support

2014-02-03 Thread Soren Brinkmann
Hi, the merge window is over and ARM is also booting again. So, time to restart the discussion on this series. I rebased the series on 3.14-rc1 which removed some of the patches of the original submission due to them already having been merged. Other than that, I didn't do many changes compared

[PATCH v3 1/7] time: Serialize calls to 'clockevents_update_freq' in the timing core

2014-02-03 Thread Soren Brinkmann
From: Thomas Gleixner We can identify the broadcast device in the core and serialize all callers including interrupts on a different CPU against the update. Also, disabling interrupts is moved into the core allowing callers to leave interrutps enabled when calling clockevents_update_freq(). Cc:

[PATCH v3 3/7] clocksource/cadence_ttc: Call clockevents_update_freq() with IRQs enabled

2014-02-03 Thread Soren Brinkmann
The timer core takes care of serialization and IRQs. Hence the driver is no longer required to disable interrupts when calling clockevents_update_freq(). Signed-off-by: Soren Brinkmann --- drivers/clocksource/cadence_ttc_timer.c | 17 ++--- 1 file changed, 2 insertions(+), 15

[PATCH v3 4/7] clocksource/cadence_ttc: Overhaul clocksource frequency adjustment

2014-02-03 Thread Soren Brinkmann
The currently used method adjusting the clocksource to a changing input frequency does not work on kernels from 3.11 on. The new approach is to keep the timer frequency as constant as possible. I.e. - due to the TTC's prescaler limitations, allow frequency changes only if the frequency scales

[PATCH v3 6/7] arm: zynq: Don't use arm_global_timer with cpufreq

2014-02-03 Thread Soren Brinkmann
The timer frequency of the arm_global_timer depends on the CPU frequency. With cpufreq altering that frequency the arm_global_timer does not maintain a stable time base. Therefore don't enable that timer in case cpufreq is enabled. Cc: Russell King Signed-off-by: Soren Brinkmann ---

[PATCH v3 7/7] arm: zynq: Add support for cpufreq

2014-02-03 Thread Soren Brinkmann
The generic cpufreq-cpu0 driver can scale the CPU frequency on Zynq SOCs. Add the required platform device to the BSP and appropriate OPPs to the dts. Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Ian Campbell Cc: Kumar Gala Cc: Russell King Cc: devicet...@vger.kernel.org

[PATCH v3 5/7] clocksource/cadence_ttc: Use only one counter

2014-02-03 Thread Soren Brinkmann
Currently the driver uses two of the three counters the TTC provides to implement a clocksource and a clockevent device. By using the TTC's match feature we can implement both use cases using a single counter only. The old approach is to use timer over-/underflow to generate an interrupt. Using

Re: [PATCH v2] ceph: fix posix ACL hooks

2014-02-03 Thread Al Viro
On Mon, Feb 03, 2014 at 01:44:22PM -0800, Linus Torvalds wrote: > On Mon, Feb 3, 2014 at 1:39 PM, Al Viro wrote: > > > > If we really have hardlinks, the result of permission check would better > > be a function of inode itself - as in, "if it gives different results > > for two pathnames

Re: Would devm_regulator_enable be useful ?

2014-02-03 Thread Guenter Roeck
On Mon, Feb 03, 2014 at 06:21:52PM +, Mark Brown wrote: > On Sat, Feb 01, 2014 at 04:23:59PM -0800, Guenter Roeck wrote: > > As previously mentioned please fix your mailer to word wrap at a > sensible limit. > I thought I did ;-). I'll try to make sure I only send e-mail to you using mutt in

Re: [PATCH] pci: Add support for creating a generic host_bridge from device tree

2014-02-03 Thread Liviu Dudau
On Mon, Feb 03, 2014 at 07:31:31PM +, Arnd Bergmann wrote: > On Monday 03 February 2014 19:06:49 Liviu Dudau wrote: > > On Mon, Feb 03, 2014 at 06:46:10PM +, Arnd Bergmann wrote: > > > On Monday 03 February 2014 18:33:48 Liviu Dudau wrote: > > > > +/** > > > > + *

Re: [RFC PATCH V3 1/4] pci: APM X-Gene PCIe controller driver

2014-02-03 Thread Jason Gunthorpe
On Mon, Feb 03, 2014 at 09:12:32PM +0100, Arnd Bergmann wrote: > Are you sure that is true for the root bridge as well? I don't > remember the details, but I though that for the host bridge, > we don't actually look at the BARs at all. That is right, but this isn't a host bridge device, it is a

Re: [PATCH v2] ceph: fix posix ACL hooks

2014-02-03 Thread Linus Torvalds
On Mon, Feb 3, 2014 at 1:59 PM, Al Viro wrote: > On Mon, Feb 03, 2014 at 01:03:32PM -0800, Linus Torvalds wrote: > >> - err = vfs_mkdir(path.dentry->d_inode, dentry, mode); >> + err = vfs_mkdir(path.dentry, dentry, mode); > > Pointless - path.dentry == dentry->d_parent anyway. Heh. It's

Re: [PATCH] audit: Only use the syscall slowpath when syscall audit rules exist

2014-02-03 Thread Andy Lutomirski
On Mon, Feb 3, 2014 at 12:23 PM, Steve Grubb wrote: > On Monday, February 03, 2014 09:53:23 AM Andy Lutomirski wrote: >> This toggles TIF_SYSCALL_AUDIT as needed when rules change instead of >> leaving it set whenever rules might be set in the future. This reduces >> syscall latency from >60ns

Re: [PATCH v2 2/7] memcg, slab: cleanup memcg cache name creation

2014-02-03 Thread Andrew Morton
On Mon, 3 Feb 2014 19:54:37 +0400 Vladimir Davydov wrote: > The way memcg_create_kmem_cache() creates the name for a memcg cache > looks rather strange: it first formats the name in the static buffer > tmp_name protected by a mutex, then passes the pointer to the buffer to >

Re: [RFC PATCH 0/3] epoll: read(),write(),ioctl() interface

2014-02-03 Thread Andy Lutomirski
On Mon, Feb 3, 2014 at 1:51 PM, Eric Wong wrote: > Andy Lutomirski wrote: >> >> On 02/02/2014 06:17 PM, Nathaniel Yazdani wrote: >> > So are you saying that those features you mentioned are specifically sought >> > after for the kernel? If so I'd like to take a crack at some of them, >> > may as

Re: [PATCH 7/8] Add 32 bit VDSO time support for 32 bit kernel

2014-02-03 Thread Andy Lutomirski
On Mon, Feb 3, 2014 at 2:01 PM, Stefani Seibold wrote: > Am Montag, den 03.02.2014, 08:36 -0800 schrieb Andy Lutomirski: >> On Sun, Feb 2, 2014 at 11:44 PM, Stefani Seibold wrote: >> > Am Sonntag, den 02.02.2014, 16:12 -0800 schrieb Andy Lutomirski: >> >> On Sun, Feb 2, 2014 at 1:39 PM, Stefani

Re: [PATCH,RFC] random: collect cpu randomness

2014-02-03 Thread Maciej W. Rozycki
On Mon, 3 Feb 2014, Theodore Ts'o wrote: > > How about taking the saved registers from the interrupted CPU, xor'ing > > them all and calling the result random_get_entropy() on systems > > lacking a good cycles-counter? > > So we could take the struct pt_regs which we get from get_irq_regs(), >

Re: [RFC PATCH 0/3] epoll: read(),write(),ioctl() interface

2014-02-03 Thread Eric Wong
Andy Lutomirski wrote: > >> On 02/02/2014 06:17 PM, Nathaniel Yazdani wrote: > > So are you saying that those features you mentioned are specifically sought > > after for the kernel? If so I'd like to take a crack at some of them, > > may as well > > get some use out of my new knowledge of epoll

Re: [PATCH 7/8] Add 32 bit VDSO time support for 32 bit kernel

2014-02-03 Thread Stefani Seibold
Am Montag, den 03.02.2014, 08:36 -0800 schrieb Andy Lutomirski: > On Sun, Feb 2, 2014 at 11:44 PM, Stefani Seibold wrote: > > Am Sonntag, den 02.02.2014, 16:12 -0800 schrieb Andy Lutomirski: > >> On Sun, Feb 2, 2014 at 1:39 PM, Stefani Seibold > >> wrote: > >> > Am Sonntag, den 02.02.2014,

Re: [PATCH] Clarify CONFIG_DEBUG_INFO's bloaty nature

2014-02-03 Thread David Rientjes
On Mon, 3 Feb 2014, Borislav Petkov wrote: > diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug > index dbf94a7d25a8..9095c2078095 100644 > --- a/lib/Kconfig.debug > +++ b/lib/Kconfig.debug > @@ -126,7 +126,11 @@ config DEBUG_INFO > This adds debug symbols to the kernel and modules (gcc

Re: [PATCH v2] ceph: fix posix ACL hooks

2014-02-03 Thread Al Viro
On Mon, Feb 03, 2014 at 01:03:32PM -0800, Linus Torvalds wrote: > - err = vfs_mkdir(path.dentry->d_inode, dentry, mode); > + err = vfs_mkdir(path.dentry, dentry, mode); Pointless - path.dentry == dentry->d_parent anyway. > - err = vfs_mknod(path.dentry->d_inode, dentry, mode,

Re: [RFC][PATCH v2 5/5] mutex: Give spinners a chance to spin_on_owner if need_resched() triggered while queued

2014-02-03 Thread Jason Low
On Mon, 2014-02-03 at 22:06 +0100, Peter Zijlstra wrote: > On Mon, Feb 03, 2014 at 12:55:34PM -0800, Jason Low wrote: > > On Mon, 2014-02-03 at 20:25 +0100, Peter Zijlstra wrote: > > > XXX: anybody got a better name than m_spinlock? > > > > So I was thinking something along the lines of > >

Re: [PATCH] spi: rspi: fix build error when CONFIG_OF is not set

2014-02-03 Thread Rob Herring
On Mon, Feb 3, 2014 at 2:47 AM, Geert Uytterhoeven wrote: > Hi Shimoda-san, > > On Mon, 3 Feb 2014, Shimoda, Yoshihiro wrote: >> This patch fixes an issue that the following build error happens when >> the CONFIG_OF is not set: >> >> drivers/spi/spi-rspi.c: In function 'rspi_probe': >>

Re: [PATCH v2] ceph: fix posix ACL hooks

2014-02-03 Thread Linus Torvalds
On Mon, Feb 3, 2014 at 1:39 PM, Al Viro wrote: > > If we really have hardlinks, the result of permission check would better > be a function of inode itself - as in, "if it gives different results > for two pathnames reachable for the same user, we have a bug". No. You're wrong. EVEN ON A UNIX

Re: [PATCH v2] ceph: fix posix ACL hooks

2014-02-03 Thread Al Viro
On Mon, Feb 03, 2014 at 01:37:03PM -0800, Linus Torvalds wrote: > On Mon, Feb 3, 2014 at 1:31 PM, Al Viro wrote: > > > > Yes, and...? CIFS also doesn't have hardlinks, so _there_ d_find_alias() > > is just fine. > > Hmm? I'm pretty sure cifs can actually have hardlinks. *UGH* How the hell

Re: [PATCH v2] ceph: fix posix ACL hooks

2014-02-03 Thread Al Viro
On Mon, Feb 03, 2014 at 09:39:26PM +, Al Viro wrote: > Which fs are you talking about? For 9P it *is* a function of inode alone. > For CIFS there's no wrong dentry to pick - it doesn't have links to start > with. Except that apparently it does ;-/ Bugger... -- To unsubscribe from this

[PATCH v6 8/8] ARM: brcmstb: dts: add a reference DTS for Broadcom 7445

2014-02-03 Thread Marc Carino
Add a sample DTS which will allow bootup of a board populated with the BCM7445 chip. Signed-off-by: Marc Carino Acked-by: Florian Fainelli --- arch/arm/boot/dts/bcm7445.dts | 111 + 1 files changed, 111 insertions(+), 0 deletions(-) create mode 100644

[GIT PULL] (xen) stable/for-3.14-rc1-tag

2014-02-03 Thread Konrad Rzeszutek Wilk
Hey Linus, Please git pull the following tag: git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git stable/for-linus-3.14-rc1-tag which has a revert of a fix that caused build regression on ARM (with Xen enabled), and a tiny litte fix for Xen PVH where we did not set the CR4 flags

[PATCH] gpio: bcm281xx: Update MODULE_AUTHOR

2014-02-03 Thread Markus Mayer
Add Broadcom's upstreaming mailing list address to MODULE_AUTHOR. Signed-off-by: Markus Mayer --- drivers/gpio/gpio-bcm-kona.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-bcm-kona.c b/drivers/gpio/gpio-bcm-kona.c index 233d088..f32357e 100644 ---

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