[PATCH] drivers: clk: Fix build break introduced in 3e1e4a5f

2013-12-13 Thread Rashika Kheria
This patch fixes the build break introduced by 3e1e4a5f. The mentioned commit id makes the changes in file "include/linux/mfd/samsung/core.h" by changing the members of structure sec_pmic_dev. The patch replaces "regmap" with "regmap_pmic" because structure sec_pmic_dev no more contains any

Re: bnx2x_sriov.c: Missing switch/case breaks?

2013-12-13 Thread Joe Perches
On Sat, 2013-12-14 at 06:16 +, Yuval Mintz wrote: > > Hi Ariel. > > > > I wrote a little checkpatch script to look for missing > > switch/case breaks. > > > > http://www.kernelhub.org/?msg=379933=2 > > > > There are _many_ instances of case blocks in sriov.c > > that could be missing breaks

RE: bnx2x_sriov.c: Missing switch/case breaks?

2013-12-13 Thread Yuval Mintz
> Hi Ariel. > > I wrote a little checkpatch script to look for missing > switch/case breaks. > > http://www.kernelhub.org/?msg=379933=2 > > There are _many_ instances of case blocks in sriov.c > that could be missing breaks as they use fall-throughs. > > It would be good if these are actually

[PATCH] clocksource: sh_cmt: Add clk_prepare/unprepare support

2013-12-13 Thread Simon Horman
From: Laurent Pinchart Prepare the clock at probe time, as there is no other appropriate place in the driver where we're allowed to sleep. Cc: Daniel Lezcano Cc: linux-kernel@vger.kernel.org Signed-off-by: Laurent Pinchart Signed-off-by: Simon Horman --- drivers/clocksource/sh_cmt.c | 20

Re: [PATCH 0/2] MTD maintenance updates

2013-12-13 Thread Brian Norris
On Thu, Dec 05, 2013 at 10:34:48AM +0200, Artem Bityutskiy wrote: > On Wed, 2013-12-04 at 15:28 -0800, Brian Norris wrote: > > BTW, I'd like to get David's "ack" for these patches, and it'd be nice > > to hear > > from Artem too, since he has previously been an unofficial maintainer > > (and is >

Re: [RFC PATCH 0/3] Change how we determine when to hand out THPs

2013-12-13 Thread Andrew Morton
On Thu, 12 Dec 2013 12:00:37 -0600 Alex Thorlton wrote: > This patch changes the way we decide whether or not to give out THPs to > processes when they fault in pages. Please cc Andrea on this. > The way things are right now, > touching one byte in a 2M chunk where no pages have been faulted

Re: [PATCH] ARM: dts: add board dts file for EXYNOS4412 based TINY4412 board

2013-12-13 Thread Alex Ling
Hi, Kukjin, Could you please review this patch? Thanks! Regards, Alex On Fri, Nov 15, 2013 at 9:13 PM, kasim ling wrote: > The board compatible string will be documented after the coresponding > documentation is specified. > > > Regards, > Alex > > On Fri, Nov 15, 2013 at 9:09 PM, Alex Ling

[PATCH v2 1/1] ARM: dts: Add missing clocks for exynos4412 dwmmc node

2013-12-13 Thread Alex Ling
This patch adds "biu" and "ciu" clocks for exynos4412 dwmmc node. Without this patch, dwmmc host driver will skip enabling the two clocks and it will break dwmmc host function on exynos4412. Tested on FriendlyARM TINY4412 board. Signed-off-by: Alex Ling --- Changes for v2: - Fix patch

Re: [GIT PULL] MTD fixes for 3.13-rc

2013-12-13 Thread Brian Norris
On Fri, Dec 13, 2013 at 11:37:36AM -0800, Linus Torvalds wrote: > I do note that your pgp key still has very few signatures, and none of > them in my normal key ring. Any possibility that you might expand on > your signatures a bit? I'll see what I can do. dwmw2 offered to sign, but we're not

RE: [PATCH v11] PPC: POWERNV: move iommu_add_device earlier

2013-12-13 Thread bharat.bhus...@freescale.com
> -Original Message- > From: Alexey Kardashevskiy [mailto:a...@ozlabs.ru] > Sent: Thursday, December 12, 2013 1:24 PM > To: linuxppc-...@lists.ozlabs.org > Cc: Alexey Kardashevskiy; Benjamin Herrenschmidt; Bhushan Bharat-R65777; Alex > Graf; linux-kernel@vger.kernel.org > Subject: [PATCH

RE: [1/3] powerpc/vfio: Enable on POWERNV platform

2013-12-13 Thread bharat.bhus...@freescale.com
> -Original Message- > From: Wood Scott-B07421 > Sent: Saturday, December 14, 2013 2:33 AM > To: Alexey Kardashevskiy > Cc: linuxppc-...@lists.ozlabs.org; k...@vger.kernel.org; linux- > ker...@vger.kernel.org; Alex Williamson; Paul Mackerras; David Gibson; Sethi > Varun-B16395; Bhushan

Re: [PATCH 7/10] ACPI / hotplug: Move container-specific code out of the core

2013-12-13 Thread Rafael J. Wysocki
On Friday, December 13, 2013 02:17:32 PM Yasuaki Ishimatsu wrote: > (2013/12/13 13:56), Rafael J. Wysocki wrote: > > On Friday, December 13, 2013 11:56:32 AM Yasuaki Ishimatsu wrote: > >> Hi Rafael, > > > > Hi, > > > >> Please share your more detailed idea. I started to implement the following >

[PATCH -next] ARM: pxa: fix return value check in em_x270_sensor_init()

2013-12-13 Thread Wei Yongjun
From: Wei Yongjun In case of error, the function regulator_get() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by: Wei Yongjun --- arch/arm/mach-pxa/em-x270.c | 4 ++-- 1 file changed, 2 insertions(+), 2

Re: [PATCH 094/115] ion: fix printk warnings

2013-12-13 Thread Joe Perches
On Fri, 2013-12-13 at 19:26 -0800, John Stultz wrote: > From: Colin Cross > > Use %z for size_t and %pa for dma_addr_t to avoid warnings in printks. dma_addr_t is not a phys_addr_t and should _not_ be emitted with %pa. Until %pad is in -next, use %lx, (unsigned long long)dma_addr_t. >

Re: [PATCH v4 1/2] ARM: mach-moxart: add MOXA ART SoC platform files

2013-12-13 Thread Arnd Bergmann
On Friday 13 December 2013, Guenter Roeck wrote: > On Fri, Dec 13, 2013 at 06:23:44PM +0100, Jonas Jensen wrote: > > On 13 December 2013 17:17, Arnd Bergmann wrote: > > > I've been out of the loop a bit here. I initially suggested having the > > > restart > > > handler be part of the watchdog

[PATCH 1/3] mips: qi_lb60: add defconfig for Ben NanoNote

2013-12-13 Thread Apelete Seketeli
Add defconfig for the Ben NanoNote handheld computer which is built around QI_LB60 board and Ingenic JZ4740 MIPS SoC. Signed-off-by: Apelete Seketeli --- arch/mips/configs/qi_lb60_defconfig | 188 +++ 1 file changed, 188 insertions(+) create mode 100644

[PATCH 0/3] Add USB support for Ingenic JZ4740

2013-12-13 Thread Apelete Seketeli
Hello, Following the fix I submitted a few weeks ago, here is a set of patches that add USB support for the Ingenic JZ4740 MIPS SoC. The JZ4740 is found in the Ben NanoNote handheld computer which is built by the Qi-Hardware community. Even though Ben NanoNote is already supported in the kernel,

[PATCH 3/3] usb: musb: fix setting JZ4740 gadget periphal mode on reset

2013-12-13 Thread Apelete Seketeli
JZ4740 USB Device Controller is not OTG compatible and does not have DEVCTL register in silicon. During ethernet-over-usb transactions, on reset, musb driver tries to read from DEVCTL and consequently sets device as host (A-Device) instead of peripheral (B-Device), which makes it a composite

[PATCH 2/3] usb: musb: add support for JZ4740 usb device controller

2013-12-13 Thread Apelete Seketeli
Add support for Ingenic JZ4740 USB Device Controller through a specific musb glue layer. The platform data already available in tree for that USB Device Controller was previously used by an out-of-tree USB gadget driver which was not relying on the musb driver and was written by Ingenic and the

Re: [PATCH v2 2/4] pciehp: Use link change notifications for hot-plug and removal

2013-12-13 Thread Guenter Roeck
On Fri, Dec 13, 2013 at 05:58:08PM -0800, Yinghai Lu wrote: > On Fri, Dec 13, 2013 at 1:14 PM, Bjorn Helgaas wrote: > > On Fri, Dec 13, 2013 at 12:04 PM, Rajat Jain wrote: > > > >> Once again: the way I interpret this is: > >> * Always enable Link events. > >> * Disable presence events if

[PATCH 096/115] ion: clean up ioctls

2013-12-13 Thread John Stultz
From: Colin Cross Convert the ion ioctls to use _IOW instead of _IOWR where appropriate, and factor out the copy_from_user and copy_to_user based on the _IOC_DIR bits. For the existing incorrect ioctls, add a function to wrap _IOC_DIR to return the corrected value. Signed-off-by: Colin Cross

[PATCH 102/115] ion: free low memory from page pools first

2013-12-13 Thread John Stultz
From: Colin Cross When the shrinkers are called with GFP_HIGH free low memory first, it is more important to have free than high memory. Signed-off-by: Colin Cross Signed-off-by: John Stultz --- drivers/staging/android/ion/ion_page_pool.c | 6 +++--- 1 file changed, 3 insertions(+), 3

[PATCH 100/115] ion: add alignment check to carveout heap

2013-12-13 Thread John Stultz
From: Colin Cross Signed-off-by: Colin Cross Signed-off-by: John Stultz --- drivers/staging/android/ion/ion_carveout_heap.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/staging/android/ion/ion_carveout_heap.c b/drivers/staging/android/ion/ion_carveout_heap.c index

[PATCH 101/115] ion: optimize ion_heap_buffer_zero

2013-12-13 Thread John Stultz
From: Colin Cross ion_heap_buffer_zero can spend a long time in unmap_kernel_range if it has to broadcast a tlb flush to every cpu for every page. Modify it to batch pages into a larger region to clear using a single mapping. This may cause the mapping size to change if the buffer size is not a

[PATCH 099/115] ion: drop dependency on ARM

2013-12-13 Thread John Stultz
From: Colin Cross Ion will compile and run on other platforms now, remove the dependency on ARM. Signed-off-by: Colin Cross Signed-off-by: John Stultz --- drivers/staging/android/ion/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/android/ion/Kconfig

[PATCH 098/115] ion: Fix two small issues in system_heap allocation

2013-12-13 Thread John Stultz
In testing ion system heap allocations, I ran across two issues: 1) Not k*z*allocing the sg table. This can cause trouble if we end up trying call sg_alloc_table() with too many entries, then sg_alloc_table() internally fails and tries to free what it thinks is internal table structure, which

[PATCH 103/115] ion: check return value from remap_pfn_range

2013-12-13 Thread John Stultz
From: Colin Cross Check the return value of remap_pfn_range and return an error if it fails. Signed-off-by: Colin Cross Signed-off-by: John Stultz --- drivers/staging/android/ion/ion_heap.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[PATCH 105/115] ion: remove ion_heap_alloc_pages

2013-12-13 Thread John Stultz
From: Colin Cross Now that ion_vm_fault doesn't need a struct page with a nonzero refcount, there is no need allocate heap memory for cached pages using split_page. Remove the ion_heap_alloc_pages and ion_heap_free_pages helpers in favor of direct calls to alloc_pages and __free_pages, and

[PATCH 094/115] ion: fix printk warnings

2013-12-13 Thread John Stultz
From: Colin Cross Use %z for size_t and %pa for dma_addr_t to avoid warnings in printks. Signed-off-by: Colin Cross Signed-off-by: John Stultz --- drivers/staging/android/ion/ion.c| 23 --- drivers/staging/android/ion/ion_chunk_heap.c | 2 +-

[PATCH 095/115] gpu: ion: remove unnecessary function from system heap

2013-12-13 Thread John Stultz
From: Colin Cross ion_system_contig_heap buffers have an sglist, just call ion_heap_map_user to map it. Signed-off-by: Colin Cross Signed-off-by: John Stultz --- drivers/staging/android/ion/ion_system_heap.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git

[PATCH 107/115] ion: use alloc_pages in system contig heap

2013-12-13 Thread John Stultz
From: Colin Cross There is no reason to use kzalloc, just call alloc_pages directly. Change the GFP from GFP_KERNEL to include __GFP_HIGH, to allow it to return contiguous pages from highmem. virt_to_* functions aren't valid on highmem pages, so store the struct page * in an sg_table in

[PATCH 106/115] ion: allow cached mappings of chunk and system heap buffers

2013-12-13 Thread John Stultz
From: Colin Cross Now that ion_vm_fault uses vm_insert_pfn instead of vm_insert_page cached buffers can be supported in any heap. Remove the checks in the chunk and system heaps. Signed-off-by: Colin Cross Signed-off-by: John Stultz --- drivers/staging/android/ion/ion_chunk_heap.c | 3 ---

[PATCH 104/115] ion: use vm_insert_pfn for faulted pages

2013-12-13 Thread John Stultz
From: Colin Cross Most ion userspace mappings are created with remap_pfn_range. Use vm_insert_pfn instead of vm_insert_page to make faulted cached mappings look more like uncached mappings. Signed-off-by: Colin Cross Signed-off-by: John Stultz --- drivers/staging/android/ion/ion.c | 9

[PATCH 108/115] ion: fix sparse warnings

2013-12-13 Thread John Stultz
From: Colin Cross Fix sparse warnings in ion. Signed-off-by: Colin Cross Signed-off-by: John Stultz --- drivers/staging/android/ion/ion.c | 8 +++ drivers/staging/android/ion/ion_carveout_heap.c | 8 +++ drivers/staging/android/ion/ion_chunk_heap.c| 8 +++

[PATCH 110/115] ion: add helper to zero contiguous region of pages

2013-12-13 Thread John Stultz
From: Colin Cross Add ion_heap_pages_zero for ion heaps to use to zero pages during initialization or allocation, when a struct ion_buffer may not be available. Use it from the chunk heap and carveout heaps. Signed-off-by: Colin Cross Signed-off-by: John Stultz ---

[PATCH 112/115] ion: fix bugs in cma heap

2013-12-13 Thread John Stultz
From: Colin Cross Implement ion_cma_unmap_kernel, ion will call it unconditionally. Use correct gfp flags when calling dma_alloc_coherent so it doesn't try to use atomic DMA memory. Check for invalid alignment when allocating. Reject cached allocations - the cpu address returned by

[PATCH 109/115] ion: carveout heap: zero buffers on free, fix memory leak

2013-12-13 Thread John Stultz
From: Colin Cross The carveout heap wasn't zeroing its buffers after use. Create the sg_table during allocate instead of map_dma, to allow using the sg_table during free, and call ion_heap_buffer_zero during free. Also fixes a missing kfree when destroying the table. Signed-off-by: Colin Cross

[PATCH 097/115] gpu: ion: fix use-after-free in ion_heap_freelist_drain

2013-12-13 Thread John Stultz
From: Mitchel Humpherys The `buffer' variable is being used after being freed. Fix this. Signed-off-by: Mitchel Humpherys Signed-off-by: John Stultz --- drivers/staging/android/ion/ion_heap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 111/115] ion: add alignment check to chunk heap

2013-12-13 Thread John Stultz
From: Colin Cross Signed-off-by: Colin Cross Signed-off-by: John Stultz --- drivers/staging/android/ion/ion_chunk_heap.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/staging/android/ion/ion_chunk_heap.c b/drivers/staging/android/ion/ion_chunk_heap.c index f21530f..a072089

[PATCH 113/115] ion: Cleanup whitespace issues and other checkpatch problems

2013-12-13 Thread John Stultz
Just some simple cleanups to address whitespace issues and other issues found w/ checkpatch. Signed-off-by: John Stultz --- drivers/staging/android/ion/compat_ion.c | 4 +- drivers/staging/android/ion/ion.c | 53 ++- drivers/staging/android/ion/ion.h

[PATCH 115/115] ion: Update system heap shrinker to use the new count/scan interface

2013-12-13 Thread John Stultz
Update the ION system heap shrinker to use the new count/scan interfaces that landed in 3.12 Signed-off-by: John Stultz --- drivers/staging/android/ion/ion_system_heap.c | 40 +++ 1 file changed, 28 insertions(+), 12 deletions(-) diff --git

[PATCH 093/115] ion: don't use phys_to_page or __phys_to_pfn

2013-12-13 Thread John Stultz
From: Colin Cross phys_to_page and __phys_to_pfn don't exist on all platforms. Use a combination of pfn_to_page, PFN_DOWN, page_to_pfn, and virt_to_page to get the same results. Signed-off-by: Colin Cross Signed-off-by: John Stultz --- drivers/staging/android/ion/ion_carveout_heap.c | 4 ++--

[PATCH 114/115] ion: Improve ION config description

2013-12-13 Thread John Stultz
Mostly just to quiet checkpatch warnings, be more verbose in describing the ION config option. Signed-off-by: John Stultz --- drivers/staging/android/ion/Kconfig | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/staging/android/ion/Kconfig

[PATCH] Staging: rts5139: fix parantheses coding style issue in ms.c

2013-12-13 Thread Preetam D'Souza
This patch fixes an unnecessary return statement parantheses error found in ms.c by the checkpatch.pl tool. Signed-off-by: Preetam D'Souza --- drivers/staging/rts5139/ms.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rts5139/ms.c

Re: [RFC][PATCH 6/7] mm: slub: remove 'struct page' alignment restrictions

2013-12-13 Thread Andi Kleen
> helps performance, presumably because of that 14% fewer > cacheline effect. A 30GB dd to a ramfs file: > > dd if=/dev/zero of=bigfile bs=$((1<<30)) count=30 > > is sped up by about 4.4% in my testing. Impressive result! -Andi -- To unsubscribe from this list: send the line

Re: stable regression: tda18271_read_regs: [1-0060|M] ERROR: i2c_transfer returned: -19

2013-12-13 Thread Mauro Carvalho Chehab
Em Fri, 13 Dec 2013 22:19:39 +0100 Frederik Himpe escreveu: > [My excuses for multiposting, it seems gmane does not permit posting to all > the relevant lists] > > Since upgrading my system from Linux 3.12 to 3.12.3, my PCTV Systems > nanoStick T2 290e does not work anymore. > > This happens

[PATCH 1/1] Added Capella CM32181 Ambient Light Sensor IIO Driver.

2013-12-13 Thread Kevin Tsai
Signed-off-by: Kevin Tsai --- drivers/iio/light/Kconfig | 11 ++ drivers/iio/light/Makefile | 1 + drivers/iio/light/cm32181.c | 437 3 files changed, 449 insertions(+) create mode 100644 drivers/iio/light/cm32181.c diff --git

Re: [PATCH v2 2/4] pciehp: Use link change notifications for hot-plug and removal

2013-12-13 Thread Yinghai Lu
On Fri, Dec 13, 2013 at 1:14 PM, Bjorn Helgaas wrote: > On Fri, Dec 13, 2013 at 12:04 PM, Rajat Jain wrote: > >> Once again: the way I interpret this is: >> * Always enable Link events. >> * Disable presence events if attention button is present. > > That sounds like a good plan to me. How

Re: [PATCH] libata, freezer: avoid block device removal while system is frozen

2013-12-13 Thread Dave Chinner
On Sat, Dec 14, 2013 at 10:15:21AM +1100, Nigel Cunningham wrote: > Hi again. > > On 14/12/13 10:07, Tejun Heo wrote: > >Hello, Nigel. > > > >On Sat, Dec 14, 2013 at 09:45:59AM +1100, Nigel Cunningham wrote: > >>In your first email, in the first substantial paragraph (starting > >>"Now, if the

Re: Writeback threads and freezable

2013-12-13 Thread Dave Chinner
On Fri, Dec 13, 2013 at 12:49:32PM -0500, Tejun Heo wrote: > Hello, guys. > > This is discovered while investigating bug 62801 - "EliteBoot hangs at > dock, suspend, undock, resume". > > https://bugzilla.kernel.org/show_bug.cgi?id=62801 > > The laptop locks up during resume if undocked while

Re: [PATCH 001/115] gpu: ion: Add ION Memory Manager

2013-12-13 Thread John Stultz
On 12/13/2013 03:50 PM, Greg KH wrote: > On Fri, Dec 13, 2013 at 02:23:35PM -0800, John Stultz wrote: >> From: Rebecca Schultz Zavin >> >> Signed-off-by: Rebecca Schultz Zavin >> [jstultz: Squished in Colin Cross' move to staging change] >> Signed-off-by: John Stultz >> --- >>

Re: [PATCH v3 4/6] pinctrl: Add pinctrl binding for Broadcom Capri SoCs

2013-12-13 Thread Sherman Yin
On 13-12-12 12:37 PM, Linus Walleij wrote: On Wed, Dec 11, 2013 at 7:37 PM, Sherman Yin wrote: Adds pinctrl driver devicetree binding for Broadcom Capri (BCM281xx) SoCs. Signed-off-by: Sherman Yin Reviewed-by: Christian Daudt Reviewed-by: Matt Porter --- v3: Use generic pin config

Re: [PATCH] usb: host: xhci: Move suspend ops under PM_SLEEP to avoid warning

2013-12-13 Thread David Cohen
On Fri, Dec 13, 2013 at 05:55:20PM -0500, Santosh Shilimkar wrote: > On Friday 13 December 2013 12:23 AM, David Cohen wrote: > > On Thu, Dec 12, 2013 at 07:25:55PM -0800, David Cohen wrote: > >> On Thu, Dec 12, 2013 at 09:01:04PM -0500, Santosh Shilimkar wrote: > >>> On Thursday 12 December 2013

Re: [PATCH 001/115] gpu: ion: Add ION Memory Manager

2013-12-13 Thread John Stultz
On 12/13/2013 03:54 PM, John Stultz wrote: > On 12/13/2013 03:50 PM, Greg KH wrote: >> On Fri, Dec 13, 2013 at 02:23:35PM -0800, John Stultz wrote: >>> From: Rebecca Schultz Zavin >>> >>> Signed-off-by: Rebecca Schultz Zavin >>> [jstultz: Squished in Colin Cross' move to staging change] >>>

Re: [PATCH v3 08/23] mm/memblock: Add memblock memory allocation apis

2013-12-13 Thread Santosh Shilimkar
On Friday 13 December 2013 04:37 PM, Tejun Heo wrote: > On Mon, Dec 09, 2013 at 04:50:41PM -0500, Santosh Shilimkar wrote: >> Introduce memblock memory allocation APIs which allow to support >> PAE or LPAE extension on 32 bits archs where the physical memory >> start address can be beyond 4GB. In

[PATCH] scsi: integer overflow in megadev_ioctl()

2013-12-13 Thread Chen.Yu
From: "Chen.Yu" There is a potential integer overflow in megadev_ioctl() if userspace passes in a large u32 variable uioc.adapno. The int variable adapno would < 0, leading to an error array access for hdb_soft_state[adapno], or an error copy_to_user(uioc.uioc_uaddr, mcontroller+adapno,..). The

Re: [PATCH v3 07/23] mm/memblock: switch to use NUMA_NO_NODE instead of MAX_NUMNODES

2013-12-13 Thread Santosh Shilimkar
On Friday 13 December 2013 04:29 PM, Tejun Heo wrote: > On Mon, Dec 09, 2013 at 04:50:40PM -0500, Santosh Shilimkar wrote: >> +if (nid == MAX_NUMNODES) >> +pr_warn_once("%s: Usage of MAX_NUMNODES is depricated. Use >> NUMA_NO_NODE instead\n", >> +

[PATCH] mm/ARM: fix ARMs __ffs() to conform to avoid warning with NO_BOOTMEM

2013-12-13 Thread Santosh Shilimkar
Building ARM with NO_BOOTMEM generates below warning. mm/nobootmem.c: In function _free_pages_memory___: mm/nobootmem.c:88:11: warning: comparison of distinct pointer types lacks a cast order = min(MAX_ORDER - 1UL, __ffs(start)); ARM's __ffs() differs from other architectures in

Re: [PATCH RFC] mm readahead: Fix the readahead fail in case of empty numa node

2013-12-13 Thread Linus Torvalds
On Wed, Dec 11, 2013 at 3:05 PM, Andrew Morton wrote: > > But I'm really struggling to think up an implementation! The current > code looks only at the caller's node and doesn't seem to make much > sense. Should we look at all nodes? Hard to say without prior > knowledge of where those pages

Re: [PATCH] scsi: integer overflow in megadev_ioctl()

2013-12-13 Thread Yu Chen
I agree that the simpler fix is to change the type of 'adapno' to u32, which is the type of uioc.adapno to u32. 2013/12/14 Måns Rullgård : > "Chen.Yu" writes: > >> From: "Chen.Yu" >> >> There is a potential integer overflow in megadev_ioctl() if >> userspace passes in a large u32 variable

Re: Copy on write hard links?

2013-12-13 Thread Jörn Engel
On Wed, 25 September 2013 16:28:53 +0200, Thomas Meyer wrote: > > I wonder how hard it would be to implement this on vfs layer? As an ugly hack: a few weeks maybe. Did it back in 2005 or so. If you have higher standards, you will need support from the underlying filesystem. Especially in

Re: [PATCH] i2c: Add message transfer tracepoints for I2C and SMBUS

2013-12-13 Thread David Howells
Steven Rostedt wrote: > Now that you have two tracepoints that are identical, you can use > DECLARE_EVENT_CLASS() and DEFINE_EVENT_FN(). That is: They're not identical. i2c_write() has a data buffer that i2c_read() does not. David -- To unsubscribe from this list: send the line "unsubscribe

[RFC][PATCH 4/7] mm: rearrange struct page

2013-12-13 Thread Dave Hansen
To make the layout of 'struct page' look nicer, I broke up a few of the unions. But, this has a cost: things that were guaranteed to line up before might not any more. To make up for that, some BUILD_BUG_ON()s are added to manually check for the alignment dependencies. This makes it *MUCH*

[RFC][PATCH 6/7] mm: slub: remove 'struct page' alignment restrictions

2013-12-13 Thread Dave Hansen
SLUB depends on a 16-byte cmpxchg for an optimization. In order to get guaranteed 16-byte alignment (required by the hardware on x86), 'struct page' is padded out from 56 to 64 bytes. Those 8-bytes matter. We've gone to great lengths to keep 'struct page' small in the past. It's a shame that

[RFC][PATCH 1/7] mm: print more details for bad_page()

2013-12-13 Thread Dave Hansen
bad_page() is cool in that it prints out a bunch of data about the page. But, I can never remember which page flags are good and which are bad, or whether ->index or ->mapping is required to be NULL. This patch allows bad/dump_page() callers to specify a string about why they are dumping the

[RFC][PATCH 3/7] mm: slabs: reset page at free

2013-12-13 Thread Dave Hansen
In order to simplify 'struct page', we will shortly be moving some fields around. This causes slub's ->freelist usage to impinge on page->mapping's storage space. The buddy allocator wants ->mapping to be NULL when a page is handed back, so we have to make sure that it is cleared. Note that

[RFC][PATCH 7/7] mm: slub: cleanups after code churn

2013-12-13 Thread Dave Hansen
I added a bunch of longer than 80 column lines and other various messes. But, doing line-to-line code replacements makes the previous patch much easier to audit. I stuck the cleanups in here instead. The slub code also delcares a bunch of 'struct page's on the stack. Now that 'struct

[RFC][PATCH 5/7] mm: slub: rearrange 'struct page' fields

2013-12-13 Thread Dave Hansen
DESC mm: slub: rearrange 'struct page' fields EDESC SLUB has some very unique alignment constraints it places on 'struct page'. Break those out in to a separate structure which will not pollute 'struct page'. This structure will be moved around inside 'struct page' at runtime in the next patch,

[RFC][PATCH 0/7] re-shrink 'struct page' when SLUB is on.

2013-12-13 Thread Dave Hansen
SLUB depends on a 16-byte cmpxchg for an optimization. For the purposes of this series, I'm assuming that it is a very important optimization that we desperately need to keep around. In order to get guaranteed 16-byte alignment (required by the hardware on x86), 'struct page' is padded out from

[RFC][PATCH 2/7] mm: page->pfmemalloc only used by slab/skb

2013-12-13 Thread Dave Hansen
page->pfmemalloc does not deserve a spot in 'struct page'. It is only used transiently _just_ after a page leaves the buddy allocator. Instead of declaring a union, we move its functionality behind a few quick accessor functions. This way we could also much more easily audit that it is being

Re: [PATCH 001/115] gpu: ion: Add ION Memory Manager

2013-12-13 Thread John Stultz
On 12/13/2013 03:50 PM, Greg KH wrote: > On Fri, Dec 13, 2013 at 02:23:35PM -0800, John Stultz wrote: >> From: Rebecca Schultz Zavin >> >> Signed-off-by: Rebecca Schultz Zavin >> [jstultz: Squished in Colin Cross' move to staging change] >> Signed-off-by: John Stultz >> --- >>

Re: [patch 1/2] mm, memcg: avoid oom notification when current needs access to memory reserves

2013-12-13 Thread David Rientjes
On Thu, 12 Dec 2013, Michal Hocko wrote: > diff --git a/mm/memcontrol.c b/mm/memcontrol.c > index c72b03bf9679..5cb1deea6aac 100644 > --- a/mm/memcontrol.c > +++ b/mm/memcontrol.c > @@ -2256,15 +2256,16 @@ bool mem_cgroup_oom_synchronize(bool handle) > > locked =

Re: [PATCH 001/115] gpu: ion: Add ION Memory Manager

2013-12-13 Thread Greg KH
On Fri, Dec 13, 2013 at 02:23:35PM -0800, John Stultz wrote: > From: Rebecca Schultz Zavin > > Signed-off-by: Rebecca Schultz Zavin > [jstultz: Squished in Colin Cross' move to staging change] > Signed-off-by: John Stultz > --- > drivers/staging/android/Kconfig |2 + >

Re: [PATCH v4 1/1] cpufreq: tegra: Re-model Tegra20 cpufreq driver

2013-12-13 Thread Stephen Warren
On 12/12/2013 02:33 AM, Bill Huang wrote: > Re-model Tegra20 cpufreq driver as below. > > * Rename tegra-cpufreq.c to tegra20-cpufreq.c since this file supports > only Tegra20. > * Add probe function so defer probe can be used when we're going to > support DVFS. > * Create a fake cpufreq

Re: [PATCH] PCI AER: handle pci_cleanup_aer_uncorrect_error_status() in firmware first mode

2013-12-13 Thread Betty Dall
On Fri, 2013-12-13 at 15:35 -0700, Bjorn Helgaas wrote: > On Fri, Dec 13, 2013 at 8:41 AM, Betty Dall wrote: > > There are three functions exported from aerdrv_core.c that could be > > called when the system is in firmware first mode: > > pci_enable_pcie_error_reporting(),

[PATCH 2/2] dma: pl08x: allow zero slave channels

2013-12-13 Thread Linus Walleij
It might happen that a platform wants to use its DMA engine for memcpy only, and then we have zero slave channels to initialize, so allow the slave initialization to return zero. Signed-off-by: Linus Walleij --- drivers/dma/amba-pl08x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH] libata, freezer: avoid block device removal while system is frozen

2013-12-13 Thread Nigel Cunningham
Hi again. On 14/12/13 10:07, Tejun Heo wrote: Hello, Nigel. On Sat, Dec 14, 2013 at 09:45:59AM +1100, Nigel Cunningham wrote: In your first email, in the first substantial paragraph (starting "Now, if the rest.."), you say "libata device removal waits for the scheduled writeback work item to

[PATCH 1/2] dma: pl08x: fix descriptor unmapping

2013-12-13 Thread Linus Walleij
The descriptor unmapping code introduced in commit d38a8c622a1b3 "dmaengine: prepare for generic 'unmap' data" accidentally affects a local struct rather than the async TX descriptor, resulting in this compile error: CC drivers/dma/amba-pl08x.o drivers/dma/amba-pl08x.c: In function

[PATCH 1/2] x86: add user_atomic_cmpxchg_inatomic at uaccess.h

2013-12-13 Thread Qiaowei Ren
This patch adds user_atomic_cmpxchg_inatomic() to use CMPXCHG instruction against a user space address. This generalizes the already existing futex_atomic_cmpxchg_inatomic() so it can be used in other contexts. This will be used in the upcoming support for Intel MPX (Memory Protection

[PATCH 2/2] x86: replace futex_atomic_cmpxchg_inatomic() with user_atomic_cmpxchg_inatomic

2013-12-13 Thread Qiaowei Ren
futex_atomic_cmpxchg_inatomic() is only the 32bit implementation of user_atomic_cmpxchg_inatomic(). This patch replaces it with user_atomic_cmpxchg_inatomic(). Signed-off-by: Qiaowei Ren --- arch/x86/include/asm/futex.h | 27 ++- 1 files changed, 2 insertions(+), 25

[PATCH] irq-renesas-irqc: simplify irq_set_type() method

2013-12-13 Thread Sergei Shtylyov
Value 0 of the sense selection field of CONFIG_n register means "disable event detection" and serves in irqc_sense[] for marking the invalid values of the IRQ type (by just omitting initializers). There is no need for INTC_IRQ_SENSE_VALID and hence INTC_IRQ_SENSE() as all field values matching to

Re: [PATCH] libata, freezer: avoid block device removal while system is frozen

2013-12-13 Thread Tejun Heo
Hello, Nigel. On Sat, Dec 14, 2013 at 09:45:59AM +1100, Nigel Cunningham wrote: > In your first email, in the first substantial paragraph (starting > "Now, if the rest.."), you say "libata device removal waits for the > scheduled writeback work item to finish". I wonder if that's the > lynchpin.

Re: [PATCH] PCI AER: Handle non-AER HEST error sources in aer_hest_parse()

2013-12-13 Thread Bjorn Helgaas
On Fri, Dec 13, 2013 at 03:47:33PM -0700, Betty Dall wrote: > Yes, that is more readable code. Thanks for revising it. I tested it on > my system that has non-AER error sources and it works fine. One nit is > that "Ignore" is misspelled in the subject line. Thanks, fixed. I should have thought

Re: [PATCH 1/9] Known exploit detection

2013-12-13 Thread Ryan Mallon
On 14/12/13 00:06, Ingo Molnar wrote: > > * Ryan Mallon wrote: > >> On 13/12/13 08:13, Kees Cook wrote: >>> On Thu, Dec 12, 2013 at 11:06 AM, Theodore Ts'o wrote: On Thu, Dec 12, 2013 at 05:52:24PM +0100, vegard.nos...@oracle.com wrote: > From: Vegard Nossum > > The idea is

bnx2x_sriov.c: Missing switch/case breaks?

2013-12-13 Thread Joe Perches
Hi Ariel. I wrote a little checkpatch script to look for missing switch/case breaks. http://www.kernelhub.org/?msg=379933=2 There are _many_ instances of case blocks in sriov.c that could be missing breaks as they use fall-throughs. It would be good if these are actually intended to be

Re: [patch net-next v3] ipv6: log autoconfiguration failures

2013-12-13 Thread David Miller
From: Denys Vlasenko Date: Fri, 13 Dec 2013 16:45:47 +0100 > If ipv6 auto-configuration does not work, currently it's hard > to track what's going on. This change adds log messages > (at debug level) on every code path where ipv6 autoconf fails. > > v3: changed pr_debug's to pr_warn's. > >

[PATCH] [RXRPC]: do not unlock unheld spinlock in rxrpc_connect_exclusive()

2013-12-13 Thread Alexey Khoroshilov
If rx->conn is not NULL, rxrpc_connect_exclusive() does not acquire the transport's client lock, but it still releases it. The patch adds locking of the spinlock to this path. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov ---

Re: [PATCH] usb: host: xhci: Move suspend ops under PM_SLEEP to avoid warning

2013-12-13 Thread Santosh Shilimkar
On Friday 13 December 2013 12:23 AM, David Cohen wrote: > On Thu, Dec 12, 2013 at 07:25:55PM -0800, David Cohen wrote: >> On Thu, Dec 12, 2013 at 09:01:04PM -0500, Santosh Shilimkar wrote: >>> On Thursday 12 December 2013 08:51 PM, David Cohen wrote: On Thu, Dec 12, 2013 at 08:06:24PM -0500,

Re: [PATCH] libata, freezer: avoid block device removal while system is frozen

2013-12-13 Thread Nigel Cunningham
Hi Tejun. Thanks for your work on this. In your first email, in the first substantial paragraph (starting "Now, if the rest.."), you say "libata device removal waits for the scheduled writeback work item to finish". I wonder if that's the lynchpin. If we know the device is gone, why are we

[PATCH 003/115] ion: Switch map/unmap dma api to sg_tables

2013-12-13 Thread John Stultz
From: Rebecca Schultz Zavin Switch these api's from scatterlists to sg_tables Signed-off-by: Rebecca Schultz Zavin [jstultz: modified patch to apply to staging directory] Signed-off-by: John Stultz --- drivers/staging/android/ion/ion.c | 16 +++

[PATCH 002/115] gpu: ion: ion_carveout_heap: fix for 3.4

2013-12-13 Thread John Stultz
From: Colin Cross __arch_ioremap is no longer available, use __arm_ioremap instead. Signed-off-by: Colin Cross [jstultz: modified patch to apply to staging directory] Signed-off-by: John Stultz --- drivers/staging/android/ion/ion_carveout_heap.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 004/115] ion: Add reserve function to ion

2013-12-13 Thread John Stultz
From: Rebecca Schultz Zavin Rather than requiring each platform call memblock_remove or reserve from the board file, add this to ion Signed-off-by: Rebecca Schultz Zavin [jstultz: modified patch to apply to staging directory] Signed-off-by: John Stultz --- drivers/staging/android/ion/ion.c |

[PATCH 005/115] gpu: ion: several bugfixes and enhancements of ION

2013-12-13 Thread John Stultz
From: KyongHo Cho 1. Verifying if the size of memory allocation in ion_alloc() is aligned by PAGE_SIZE at least. If it is not, this change makes the size to be aligned by PAGE_SIZE. 2. Unmaps all mappings to the kernel and DMA address spaces when destroying ion_buffer in ion_buffer_destroy().

[PATCH 007/115] gpu: ion: Use alloc_pages instead of vmalloc from the system heap

2013-12-13 Thread John Stultz
From: Rebecca Schultz Zavin With this change the ion_system_heap will only use kernel address space when the memory is mapped into the kernel (rare case). Signed-off-by: Rebecca Schultz Zavin [jstultz: modified patch to apply to staging directory] Signed-off-by: John Stultz ---

[PATCH 008/115] gpu: ion: support begin/end and kmap/kunmap dma_buf ops

2013-12-13 Thread John Stultz
From: Rebecca Schultz Zavin These ops were added in the 3.4 kernel. This patch adds support for them to ion. Previous ion_map/unmap_kernel api is also retained in addition to this new api. Signed-off-by: Rebecca Schultz Zavin [jstultz: modified patch to apply to staging directory]

[PATCH 011/115] gpu: ion: fill in buffer->{dev,size} before mapping new buffers

2013-12-13 Thread John Stultz
From: Greg Hackmann At least one map_dma() implementation (EXYNOS_CONTIG) assumes the fields are filled in Signed-off-by: Greg Hackmann [jstultz: modified patch to apply to staging directory] Signed-off-by: John Stultz --- drivers/staging/android/ion/ion.c | 5 +++-- 1 file changed, 3

[PATCH 006/115] ion: Switch ion to use dma-buf

2013-12-13 Thread John Stultz
From: Rebecca Schultz Zavin Ion now uses dma-buf file descriptors to share buffers with userspace. Ion becomes a dma-buf exporter and any driver that can import dma-bufs can now import ion file descriptors. Signed-off-by: Rebecca Schultz Zavin [jstultz: modified patch to apply to staging

[PATCH 009/115] gpu: ion: Allocate the sg_table at creation time rather than dynamically

2013-12-13 Thread John Stultz
From: Rebecca Schultz Zavin Rather than calling map_dma on the allocations dynamically, this patch switches to creating the sg_table at the time the buffer is created. This is necessary because in future updates the sg_table will be used for cache maintenance. Signed-off-by: Rebecca Schultz

[PATCH 012/115] gpu: ion: Set the dma_address of the sg list at alloc time

2013-12-13 Thread John Stultz
From: Rebecca Schultz Zavin This patch sets the dma_address field of the sglist representing an allocation at allocation time. This technically breaks the dma api which states that these addresses should be set when a particular device takes ownership of a buffer via the dma_map apis. In the

[PATCH 010/115] gpu: ion: Get an sg_table from an ion handle

2013-12-13 Thread John Stultz
From: Rebecca Schultz Zavin This patch adds an interface to return and sg_table given a valid ion handle. Signed-off-by: Rebecca Schultz Zavin [jstultz: modified patch to apply to staging directory] Signed-off-by: John Stultz --- drivers/staging/android/ion/ion.c | 8 ++--

  1   2   3   4   5   6   7   8   9   10   >