Re: [PATCH 12/16] i2c: i2c-s3c2410: Drop class based scanning to improve bootup time

2014-07-11 Thread Sachin Kamat
Hi Wolfram, On Thu, Jul 10, 2014 at 5:16 PM, Wolfram Sang w...@the-dreams.de wrote: This driver has been flagged to drop class based instantiation. The removal improves boot-up time and is unneeded for embedded controllers. Users have been warned to switch for some time now, so we can

RE: scsi-mq V2

2014-07-11 Thread Elliott, Robert (Server Storage)
-Original Message- From: linux-scsi-ow...@vger.kernel.org [mailto:linux-scsi- ow...@vger.kernel.org] On Behalf Of Elliott, Robert (Server Storage) I added some prints in aio_setup_ring and ioctx_alloc and rebooted. This time it took much longer to hit the problem. It survived

Re: [PATCH v7 0/4] ARM: Exynos: PMU cleanup and refactoring for using DT

2014-07-11 Thread Naveen Krishna Ch
Hello Pankaj, On 9 July 2014 09:30, Pankaj Dubey pankaj.du...@samsung.com wrote: This patch series, modifies Exynos Power Management Unit (PMU) related code for converting it into a platform_driver. This is also preparation for moving PMU related code out of machine folder into a either

Re: i915: reduce noise from i915_gem_shrinker_oom when no memory freed.

2014-07-11 Thread Chris Wilson
On Thu, Jul 10, 2014 at 11:05:05PM -0400, Dave Jones wrote: When the shrinker doesn't free any memory, don't spew over and over into the logs. My fuzz tester hits this quite easily, resulting in dozens of instances of this printk when memory runs low, filling dmesg, when there's not even any

Re: scsi-mq V2

2014-07-11 Thread Christoph Hellwig
On Fri, Jul 11, 2014 at 06:02:03AM +, Elliott, Robert (Server Storage) wrote: Allowing longer run times before declaring success, the problem does appear in all of the bisect trees. I just let fio continue to run for many minutes - no ^Cs necessary. no-rebase: good for 45 minutes (I

[Patch Part3 V4 01/21] iommu/vt-d: Match segment number when searching for dev_iotlb capable devices

2014-07-11 Thread Jiang Liu
For virtual machine and static identity domains, there may be devices from different PCI segments associated with the same domain. So function iommu_support_dev_iotlb() should also match PCI segment number (iommu unit) when searching for dev_iotlb capable devices. Signed-off-by: Jiang Liu

[Patch Part3 V4 10/21] iommu/vt-d: Simplify intel_unmap_sg() and kill duplicated code

2014-07-11 Thread Jiang Liu
Introduce intel_unmap() to reduce duplicated code in intel_unmap_sg() and intel_unmap_page(). Also let dma_pte_free_pagetable() to call dma_pte_clear_range() directly, so caller only needs to call dma_pte_free_pagetable(). Signed-off-by: Jiang Liu jiang@linux.intel.com ---

[Patch Part3 V4 08/21] iommu/vt-d: Simplify include/linux/dmar.h

2014-07-11 Thread Jiang Liu
Simplify include/linux/dmar.h a bit based on the fact that both CONFIG_INTEL_IOMMU and CONFIG_IRQ_REMAP select CONFIG_DMAR_TABLE. Signed-off-by: Jiang Liu jiang@linux.intel.com --- include/linux/dmar.h | 50 ++ 1 file changed, 18

[Patch Part3 V4 11/21] iommu/vt-d: Introduce helper domain_pfn_within_range() to simplify code

2014-07-11 Thread Jiang Liu
Introduce helper function domain_pfn_within_range() to simplify code and improve readability. Signed-off-by: Jiang Liu jiang@linux.intel.com --- drivers/iommu/intel-iommu.c | 30 -- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git

[Patch Part3 V4 19/21] iommu/vt-d: Enhance error recovery in function intel_enable_irq_remapping()

2014-07-11 Thread Jiang Liu
Enhance error recovery in function intel_enable_irq_remapping() by tearing down all created data structures. Signed-off-by: Jiang Liu jiang@linux.intel.com --- drivers/iommu/intel_irq_remapping.c |8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git

[Patch Part3 V4 21/21] pci, ACPI, iommu: Enhance pci_root to support DMAR device hotplug

2014-07-11 Thread Jiang Liu
Finally enhance pci_root driver to support DMAR device hotplug when hot-plugging PCI host bridges. Signed-off-by: Jiang Liu jiang@linux.intel.com --- drivers/acpi/pci_root.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/pci_root.c

[Patch Part3 V4 18/21] iommu/vt-d: Enhance intel_irq_remapping driver to support DMAR unit hotplug

2014-07-11 Thread Jiang Liu
Implement required callback functions for intel_irq_remapping driver to support DMAR unit hotplug. Signed-off-by: Jiang Liu jiang@linux.intel.com --- drivers/iommu/intel_irq_remapping.c | 222 ++- 1 file changed, 169 insertions(+), 53 deletions(-) diff --git

Re: [PATCH 1/3] clk: exynos-audss: Keep the parent of mout_audss always enabled

2014-07-11 Thread Tushar Behera
On 06/13/2014 02:39 AM, Mike Turquette wrote: Quoting Tushar Behera (2014-06-12 00:29:23) On Wed, Jun 11, 2014 at 10:20 PM, Mike Turquette mturque...@linaro.org wrote: Quoting Tushar Behera (2014-06-10 22:32:17) When the output clock of AUDSS mux is disabled, we are getting kernel oops

[Patch Part3 V4 16/21] iommu/vt-d: Implement DMAR unit hotplug framework

2014-07-11 Thread Jiang Liu
On Intel platforms, an IO Hub (PCI/PCIe host bridge) may contain DMAR units, so we need to support DMAR hotplug when supporting PCI host bridge hotplug on Intel platforms. According to Section 8.8 Remapping Hardware Unit Hot Plug in Intel Virtualization Technology for Directed IO Architecture

[Patch Part3 V4 20/21] iommu/vt-d: Enhance intel-iommu driver to support DMAR unit hotplug

2014-07-11 Thread Jiang Liu
Implement required callback functions for intel-iommu driver to support DMAR unit hotplug. Signed-off-by: Jiang Liu jiang@linux.intel.com --- drivers/iommu/intel-iommu.c | 206 +++ 1 file changed, 151 insertions(+), 55 deletions(-) diff --git

[Patch Part3 V4 15/21] iommu/vt-d: Dynamically allocate and free seq_id for DMAR units

2014-07-11 Thread Jiang Liu
Introduce functions to support dynamic IOMMU seq_id allocating and releasing, which will be used to support DMAR hotplug. Also rename IOMMU_UNITS_SUPPORTED as DMAR_UNITS_SUPPORTED. Signed-off-by: Jiang Liu jiang@linux.intel.com --- drivers/iommu/dmar.c| 40

[Patch Part3 V4 13/21] iommu/vt-d: Fix issue in computing domain's iommu_snooping flag

2014-07-11 Thread Jiang Liu
IOMMU units may dynamically attached to/detached from domains, so we should scan all active IOMMU units when computing iommu_snooping flag for a domain instead of only scanning IOMMU units associated with the domain. Also check snooping and superpage capabilities when hot-adding DMAR units.

[Patch Part3 V4 17/21] iommu/vt-d: Search for ACPI _DSM method for DMAR hotplug

2014-07-11 Thread Jiang Liu
According to Intel VT-d specification, _DSM method to support DMAR hotplug should exist directly under corresponding ACPI object representing PCI host bridge. But some BIOSes doesn't conform to this, so search for _DSM method in the subtree starting from the ACPI object representing the PCI host

[Patch Part3 V4 14/21] iommu/vt-d: Introduce helper function dmar_walk_resources()

2014-07-11 Thread Jiang Liu
Introduce helper function dmar_walk_resources to walk resource entries in DMAR table and ACPI buffer object returned by ACPI _DSM method for IOMMU hot-plug. Signed-off-by: Jiang Liu jiang@linux.intel.com --- drivers/iommu/dmar.c| 208 +++

[Patch Part3 V4 12/21] iommu/vt-d: Introduce helper function iova_size() to improve code readability

2014-07-11 Thread Jiang Liu
Signed-off-by: Jiang Liu jiang@linux.intel.com --- drivers/iommu/intel-iommu.c |7 +++ include/linux/iova.h|5 + 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index c9e65edaa2ad..cd1ba24c766a

Re: [PATCH v2] cpufreq: Don't destroy/realloc policy/sysfs on hotplug/suspend

2014-07-11 Thread Viresh Kumar
Hi Saravana, Thanks for trying this.. On 11 July 2014 09:48, Saravana Kannan skan...@codeaurora.org wrote: The CPUfreq driver moves the cpufreq policy ownership between CPUs when s/driver/core CPUs within a cluster (CPUs sharing same policy) go ONLINE/OFFLINE. When moving policy ownership

[Patch Part3 V4 07/21] iommu/vt-d: Avoid freeing virtual machine domain in free_dmar_iommu()

2014-07-11 Thread Jiang Liu
Virtual machine domains are created by intel_iommu_domain_init() and should be destroyed by intel_iommu_domain_destroy(). So avoid freeing virtual machine domain data structure in free_dmar_iommu() when doamin-iommu_count reaches zero, otherwise it may cause invalid memory access because the IOMMU

Re: [PATCH v2 0/5] kvm, mem-hotplug: Do not pin ept identity pagetable and apic access page.

2014-07-11 Thread Tang Chen
hi Gleb, Marcelo, Nadav, Would you please help to review these patches ? Thanks. :) On 07/08/2014 09:01 PM, Tang Chen wrote: ept identity pagetable and apic access page in kvm are pinned in memory. As a result, they cannot be migrated/hot-removed. But actually they don't need to be pinned in

[PATCH 1/1] usb: Check if port status is equal to RxDetect

2014-07-11 Thread Gavin Guo
When using USB 3.0 pen drive with the [AMD] FCH USB XHCI Controller [1022:7814], the second hotplugging will experience the USB 3.0 pen drive is recognized as high-speed device. After bisecting the kernel, I found the commit number 41e7e056cdc662f704fa9262e5c6e213b4ab45dd (USB: Allow USB 3.0 ports

[Patch Part3 V4 04/21] iommu/vt-d: Introduce helper functions to make code symmetric for readability

2014-07-11 Thread Jiang Liu
Introduce domain_attach_iommu()/domain_detach_iommu() and refine iommu_attach_domain()/iommu_detach_domain() to make code symmetric and improve readability. Signed-off-by: Jiang Liu jiang@linux.intel.com --- drivers/iommu/intel-iommu.c | 147 +++ 1

[Patch Part3 V4 06/21] iommu/vt-d: Fix possible invalid memory access caused by free_dmar_iommu()

2014-07-11 Thread Jiang Liu
Static identity and virtual machine domains may be cached in iommu-domain_ids array after corresponding IOMMUs have been removed from domain-iommu_bmp. So we should check domain-iommu_bmp before decreasing domain-iommu_count in function free_dmar_iommu(), otherwise it may cause free of inuse

[Patch Part3 V4 09/21] iommu/vt-d: Change iommu_enable/disable_translation to return void

2014-07-11 Thread Jiang Liu
Simplify error handling path by changing iommu_{enable|disable}_translation to return void. Signed-off-by: Jiang Liu jiang@linux.intel.com --- drivers/iommu/intel-iommu.c | 18 +- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/drivers/iommu/intel-iommu.c

[Patch Part3 V4 05/21] iommu/vt-d: Allocate dynamic domain id for virtual domains only

2014-07-11 Thread Jiang Liu
Check the same domain id is allocated for si_domain on each IOMMU, otherwise the IOTLB flush for si_domain will fail. Now the rules to allocate and manage domain id are: 1) For normal and static identity domains, domain id is allocated when creating domain structure. And this id will be

[Patch Part3 V4 00/21] Enable support of Intel DMAR device hotplug

2014-07-11 Thread Jiang Liu
When hot plugging a descrete IOH or a physical processor with embedded IIO, we need to handle DMAR(or IOMMU) unit in the PCIe host bridge if DMAR is in use. This patch set tries to enhance current DMAR/IOMMU/IR drivers to support hotplug and is based on latest Joerg's iommu/next branch. Patch

[Patch Part3 V4 03/21] iommu/vt-d: Introduce helper functions to improve code readability

2014-07-11 Thread Jiang Liu
Introduce domain_type_is_vm() and domain_type_is_vm_or_si() to improve code readability. Also kill useless macro DOMAIN_FLAG_P2P_MULTIPLE_DEVICES. Signed-off-by: Jiang Liu jiang@linux.intel.com --- drivers/iommu/intel-iommu.c | 59 +++ 1 file

[Patch Part3 V4 02/21] iommu/vt-d: Use correct domain id to flush virtual machine domains

2014-07-11 Thread Jiang Liu
For virtual machine domains, domain-id is a virtual id, and the real domain id written into context entry is dynamically allocated. So use the real domain id instead of domain-id when flushing iotlbs for virtual machine domains. Signed-off-by: Jiang Liu jiang@linux.intel.com ---

[PATCH 0/1] Fixes to the USB 3.0 detection as 2.0 on AMD platform

2014-07-11 Thread Gavin Guo
Hi Sarah and Mathias, As the discussion in http://comments.gmane.org/gmane.linux.usb.general/107011, I found that [AMD] FCH USB XHCI Controller [1022:7814] the USB 3.0 disk can't work in SuperSpeed after several times of hotplug. After doing some experiments and bisection, I found the bug is

Re: [PATCH v2 1/2] gpio: Add driver for Zynq GPIO controller

2014-07-11 Thread Baruch Siach
Hi Linus, On Tue, Jul 08, 2014 at 11:27:57AM +0200, Linus Walleij wrote: On Mon, Jul 7, 2014 at 5:23 PM, Baruch Siach bar...@tkos.co.il wrote: On Mon, Jul 07, 2014 at 04:51:56PM +0200, Linus Walleij wrote: This needs someone to step in and provide a replacement, my preferred mechanism

Re: [Intel-gfx] [RFC][PATCH] gpu:drm:i915:intel_detect_pch: back to check devfn instead of check class type

2014-07-11 Thread Daniel Vetter
On Thu, Jul 10, 2014 at 09:08:24PM +, Tian, Kevin wrote: actually I'm curious whether it's still necessary to __detect__ PCH. Could we assume a 1:1 mapping between GPU and PCH, e.g. BDW already hard code the knowledge: } else if (IS_BROADWELL(dev)) {

Re: [PATCH 4/8] Drivers: scsi: storvsc: Filter WRITE_SAME_16

2014-07-11 Thread h...@infradead.org
On Wed, Jul 09, 2014 at 10:27:24PM +, James Bottomley wrote: If we fix it at source, why would there be any need to filter? That's the reason the no_write_same flag was introduced. If we can find and fix the bug, it can go back into the stable trees as a bug fix, hence nothing should

Re: [PATCHv3 2/2] Add force_epp module option for parport_pc.

2014-07-11 Thread Matwey V. Kornilov
Or did I read the patch incorrectly? Maybe I've implemented something incorrectly? I think I suggested exactly inverse thing: the check is disabled only when the option is touched by user: !force_epp intel_bug_present(pb) = intel_bug_present(pb) (given that force_epp is false) I don't

Re: [PATCH 6/6] tty: serial: Add 8250-core based omap driver

2014-07-11 Thread Tony Lindgren
* Sebastian Andrzej Siewior bige...@linutronix.de [140710 08:50]: On 07/10/2014 09:09 AM, Tony Lindgren wrote: You can test this pretty easily on beagleboard xm for example using v3.16-r4: I tried this with am335x-evm, dra7-evm and beaglebone (omap5-uevm and am335x-evmsk didn't want to

Re: [RFC PATCH 00/10] OMAP: GPMC: NAND: Introduce GPMC APIs for OMAP NAND

2014-07-11 Thread Tony Lindgren
* Roger Quadros rog...@ti.com [140709 05:39]: Hi, The following hardware modules/registers are meant for NAND controller driver usage: - NAND I/O control (NAND address, data, command registers) - Prefetch/Write-post engine - ECC/BCH engine However, these registers sit in the GPMC

Re: + shmem-fix-faulting-into-a-hole-while-its-punched-take-2.patch added to -mm tree

2014-07-11 Thread Hugh Dickins
On Thu, 10 Jul 2014, Hugh Dickins wrote: On Thu, 10 Jul 2014, Sasha Levin wrote: On 07/10/2014 01:55 PM, Hugh Dickins wrote: And finally, (not) holding the i_mmap_mutex: I don't understand what prompts you to show this particular task. I imagine the dump shows lots of other tasks which

Re: [PATCH 2/2] staging: silicom: function return fixes

2014-07-11 Thread Davide Gianforte
On Wed, Jul 09, 2014 at 11:59:14, Greg Kroah-Hartman wrote: On Tue, Jul 01, 2014 at 02:33:43PM +0200, Davide Gianforte wrote: + uint32_t ctrl_ext = BPCTL_READ_REG(pbpctl_dev, CTRL_EXT); - ctrl_ext = BPCTL_READ_REG(pbpctl_dev, CTRL_EXT); How about just removing the = 0; part of the

Re: No uart output on my snowball board

2014-07-11 Thread Lee Jones
I decided to play with my snowball board as that's the easiest arm board I have to do testing on, and it was reported to me that I broke function graph tracing on the arm boards. But I haven't booted my snowball since 3.8. When I tried with the latest kernel, it didn't give me *any* output. I

Re: [PATCH 10/13] ARM: tegra: Enable the DFLL on the Jetson TK1

2014-07-11 Thread Mikko Perttunen
It might look nicer if the voltage table was in a separate file. A bit of a border case, maybe. On 11/07/14 00:42, Tuomas Tynkkynen wrote: ... + nvidia,pmic-voltage-table = + 0x1e 70, + 0x1f 71, + 0x20

linux-next: Tree for Jul 11

2014-07-11 Thread Stephen Rothwell
Hi all, Changes since 20140710: My fixes tree contains: powerpc: Disable RELOCATABLE for COMPILE_TEST with PPC64 The tty.current tree gained a build failure so I used the version from next-20140710. The irqchip tree gained a conflict against the arm64 tree. The staging tree lost its

Re: Interrupt randomness in 3.14.10-rt

2014-07-11 Thread Thomas Gleixner
On Fri, 11 Jul 2014, Ben Hutchings wrote: I noticed this change between 3.14.3-rt5 and 3.14.10-rt7: --- debian/patches/features/all/rt/random-make-it-work-on-rt.patch (revision 21522) +++ debian/patches/features/all/rt/random-make-it-work-on-rt.patch (working copy) [...]

Could not mount sysfs when enable userns but disable netns

2014-07-11 Thread chenhanx...@cn.fujitsu.com
Hello, How to reproduce: 1. Prepare a container, enable userns and disable netns 2. use libvirt-lxc to start a container 3. libvirt could not mount sysfs then failed to start. Then I found that commit 7dc5dbc879bd0779924b5132a48b731a0bc04a1e says: Don't allow mounting sysfs unless the caller has

RE: [RFC PATCH 00/10] OMAP: GPMC: NAND: Introduce GPMC APIs for OMAP NAND

2014-07-11 Thread Gupta, Pekon
Hi Roger, From: Tony Lindgren [mailto:t...@atomide.com] * Roger Quadros rog...@ti.com [140709 05:39]: Hi, The following hardware modules/registers are meant for NAND controller driver usage: - NAND I/O control (NAND address, data, command registers) - Prefetch/Write-post engine - ECC/BCH

Re: [PATCH 2/2] sched: Rewrite per entity runnable load average tracking

2014-07-11 Thread Yuyang Du
On Thu, Jul 10, 2014 at 12:08:59PM +0200, Peter Zijlstra wrote: Since clock_task is the regular clock minus some local amount, the difference between two regular clock reads is always a strict upper bound on clock_task differences. This is inspiring. Regarding the clock source in load avg

Re: [PATCH v8 0/9] Support for creating generic PCI host bridges from DT

2014-07-11 Thread Jingoo Han
On Friday, July 11, 2014 9:44 AM, Tanmay Inamdar wrote: On Tue, Jul 8, 2014 at 10:18 AM, Liviu Dudau liviu.du...@arm.com wrote: On Sun, Jul 06, 2014 at 04:23:43PM +0100, Rob Herring wrote: On Tue, Jul 1, 2014 at 1:43 PM, Liviu Dudau liviu.du...@arm.com wrote: This is my resurected attempt

[RFC Patch V1 06/30] mm, tracing: Use cpu_to_mem()/numa_mem_id() to support memoryless node

2014-07-11 Thread Jiang Liu
When CONFIG_HAVE_MEMORYLESS_NODES is enabled, cpu_to_node()/numa_node_id() may return a node without memory, and later cause system failure/panic when calling kmalloc_node() and friends with returned node id. So use cpu_to_mem()/numa_mem_id() instead to get the nearest node with memory for

[RFC Patch V1 01/30] mm, kernel: Use cpu_to_mem()/numa_mem_id() to support memoryless node

2014-07-11 Thread Jiang Liu
When CONFIG_HAVE_MEMORYLESS_NODES is enabled, cpu_to_node()/numa_node_id() may return a node without memory, and later cause system failure/panic when calling kmalloc_node() and friends with returned node id. So use cpu_to_mem()/numa_mem_id() instead to get the nearest node with memory for

[RFC Patch V1 00/30] Enable memoryless node on x86 platforms

2014-07-11 Thread Jiang Liu
Previously we have posted a patch fix a memory crash issue caused by memoryless node on x86 platforms, please refer to http://comments.gmane.org/gmane.linux.kernel/1687425 As suggested by David Rientjes, the most suitable fix for the issue should be to use cpu_to_mem() rather than cpu_to_node()

[RFC Patch V1 04/30] mm, netfilter: Use cpu_to_mem()/numa_mem_id() to support memoryless node

2014-07-11 Thread Jiang Liu
When CONFIG_HAVE_MEMORYLESS_NODES is enabled, cpu_to_node()/numa_node_id() may return a node without memory, and later cause system failure/panic when calling kmalloc_node() and friends with returned node id. So use cpu_to_mem()/numa_mem_id() instead to get the nearest node with memory for

[RFC Patch V1 07/30] mm: Use cpu_to_mem()/numa_mem_id() to support memoryless node

2014-07-11 Thread Jiang Liu
When CONFIG_HAVE_MEMORYLESS_NODES is enabled, cpu_to_node()/numa_node_id() may return a node without memory, and later cause system failure/panic when calling kmalloc_node() and friends with returned node id. So use cpu_to_mem()/numa_mem_id() instead to get the nearest node with memory for

[RFC Patch V1 10/30] mm, xfrm: Use cpu_to_mem()/numa_mem_id() to support memoryless node

2014-07-11 Thread Jiang Liu
When CONFIG_HAVE_MEMORYLESS_NODES is enabled, cpu_to_node()/numa_node_id() may return a node without memory, and later cause system failure/panic when calling kmalloc_node() and friends with returned node id. So use cpu_to_mem()/numa_mem_id() instead to get the nearest node with memory for

[RFC Patch V1 15/30] mm, igb: Use cpu_to_mem()/numa_mem_id() to support memoryless node

2014-07-11 Thread Jiang Liu
When CONFIG_HAVE_MEMORYLESS_NODES is enabled, cpu_to_node()/numa_node_id() may return a node without memory, and later cause system failure/panic when calling kmalloc_node() and friends with returned node id. So use cpu_to_mem()/numa_mem_id() instead to get the nearest node with memory for

[RFC Patch V1 14/30] mm, i40evf: Use cpu_to_mem()/numa_mem_id() to support memoryless node

2014-07-11 Thread Jiang Liu
When CONFIG_HAVE_MEMORYLESS_NODES is enabled, cpu_to_node()/numa_node_id() may return a node without memory, and later cause system failure/panic when calling kmalloc_node() and friends with returned node id. So use cpu_to_mem()/numa_mem_id() instead to get the nearest node with memory for

[RFC Patch V1 09/30] mm, memcg: Use cpu_to_mem()/numa_mem_id() to support memoryless node

2014-07-11 Thread Jiang Liu
When CONFIG_HAVE_MEMORYLESS_NODES is enabled, cpu_to_node()/numa_node_id() may return a node without memory, and later cause system failure/panic when calling kmalloc_node() and friends with returned node id. So use cpu_to_mem()/numa_mem_id() instead to get the nearest node with memory for

Re: [Nouveau] [PATCH v4 2/6] drm/nouveau: map pages using DMA API on platform devices

2014-07-11 Thread Daniel Vetter
On Fri, Jul 11, 2014 at 11:35:23AM +0900, Alexandre Courbot wrote: On 07/10/2014 09:58 PM, Daniel Vetter wrote: On Tue, Jul 08, 2014 at 05:25:57PM +0900, Alexandre Courbot wrote: page_to_phys() is not the correct way to obtain the DMA address of a buffer on a non-PCI system. Use the DMA API

[PATCH net-next 8/8] ethernet: amd: switch case fixes

2014-07-11 Thread varkabhadram
From: Varka Bhadram var...@cdac.in This patch fix the *swith* case indentation and usage issues Signed-off-by: Varka Bhadram var...@cdac.in --- drivers/net/ethernet/amd/amd8111e.c | 117 +-- 1 file changed, 58 insertions(+), 59 deletions(-) diff --git

[RFC Patch V1 27/30] x86, numa: Kill useless code to improve code readability

2014-07-11 Thread Jiang Liu
According to x86 boot sequence, early_cpu_to_node() always returns NUMA_NO_NODE when called from numa_init(). So kill useless code to improve code readability. Related code sequence as below: x86_cpu_to_node_map is set until step 2, so it is still the default value (NUMA_NO_NODE) when accessed at

[PATCH net-next 6/8] ethernet: amd: fix 'foo* bar'

2014-07-11 Thread varkabhadram
From: Varka Bhadram var...@cdac.in This patch fix the 'foo*' bar with 'foo *bar' and (foo*) with (foo *). Signed-off-by: Varka Bhadram var...@cdac.in --- drivers/net/ethernet/amd/amd8111e.c | 72 +-- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git

[RFC Patch V1 22/30] mm, of: Use cpu_to_mem()/numa_mem_id() to support memoryless node

2014-07-11 Thread Jiang Liu
When CONFIG_HAVE_MEMORYLESS_NODES is enabled, cpu_to_node()/numa_node_id() may return a node without memory, and later cause system failure/panic when calling kmalloc_node() and friends with returned node id. So use cpu_to_mem()/numa_mem_id() instead to get the nearest node with memory for

[RFC Patch V1 21/30] mm, irqchip: Use cpu_to_mem()/numa_mem_id() to support memoryless node

2014-07-11 Thread Jiang Liu
When CONFIG_HAVE_MEMORYLESS_NODES is enabled, cpu_to_node()/numa_node_id() may return a node without memory, and later cause system failure/panic when calling kmalloc_node() and friends with returned node id. So use cpu_to_mem()/numa_mem_id() instead to get the nearest node with memory for

[RFC Patch V1 26/30] mm, x86, perf: Use cpu_to_mem()/numa_mem_id() to support memoryless node

2014-07-11 Thread Jiang Liu
When CONFIG_HAVE_MEMORYLESS_NODES is enabled, cpu_to_node()/numa_node_id() may return a node without memory, and later cause system failure/panic when calling kmalloc_node() and friends with returned node id. So use cpu_to_mem()/numa_mem_id() instead to get the nearest node with memory for

Re: WARNING: CPU: 2 PID: 1 at arch/x86/mm/ioremap.c:171 __ioremap_caller+0x290/0x2fa()

2014-07-11 Thread Fabio Coatti
In data giovedì 10 luglio 2014 14:05:27, Bjorn Helgaas ha scritto: On Thu, Jul 10, 2014 at 09:12:44PM +0200, Stephane Eranian wrote: On Thu, Jul 10, 2014 at 2:13 PM, Fabio Coatti fabio.coa...@gmail.com wrote: In data giovedì 10 luglio 2014 10:54:48, Peter Zijlstra ha scritto: On Thu, Jul

[RFC Patch V1 25/30] mm, x86, kvm: Use cpu_to_mem()/numa_mem_id() to support memoryless node

2014-07-11 Thread Jiang Liu
When CONFIG_HAVE_MEMORYLESS_NODES is enabled, cpu_to_node()/numa_node_id() may return a node without memory, and later cause system failure/panic when calling kmalloc_node() and friends with returned node id. So use cpu_to_mem()/numa_mem_id() instead to get the nearest node with memory for

[RFC Patch V1 24/30] mm, x86/platform/uv: Use cpu_to_mem()/numa_mem_id() to support memoryless node

2014-07-11 Thread Jiang Liu
When CONFIG_HAVE_MEMORYLESS_NODES is enabled, cpu_to_node()/numa_node_id() may return a node without memory, and later cause system failure/panic when calling kmalloc_node() and friends with returned node id. So use cpu_to_mem()/numa_mem_id() instead to get the nearest node with memory for

[RFC Patch V1 30/30] x86, NUMA: Online node earlier when doing CPU hot-addition

2014-07-11 Thread Jiang Liu
With typical CPU hot-addition flow on x86, PCI host bridges embedded in physical processor are always associated with NOMA_NO_NODE, which may cause sub-optimal performance. 1) Handle CPU hot-addition notification acpi_processor_add() acpi_processor_get_info()

[RFC Patch V1 28/30] mm: Update _mem_id_[] for every possible CPU when memory configuration changes

2014-07-11 Thread Jiang Liu
Current kernel only updates _mem_id_[cpu] for onlined CPUs when memory configuration changes. So kernel may allocate memory from remote node for a CPU if the CPU is still in absent or offline state even if the node associated with the CPU has already been onlined. This patch tries to improve

[RFC Patch V1 23/30] mm, x86: Use cpu_to_mem()/numa_mem_id() to support memoryless node

2014-07-11 Thread Jiang Liu
When CONFIG_HAVE_MEMORYLESS_NODES is enabled, cpu_to_node()/numa_node_id() may return a node without memory, and later cause system failure/panic when calling kmalloc_node() and friends with returned node id. So use cpu_to_mem()/numa_mem_id() instead to get the nearest node with memory for

[RFC Patch V1 29/30] mm, x86: Enable memoryless node support to better support CPU/memory hotplug

2014-07-11 Thread Jiang Liu
With current implementation, all CPUs within a NUMA node will be assocaited with another NUMA node if the node has no memory installed. For example, on a four-node system, CPUs on node 2 and 3 are associated with node 0 when are no memory install on node 2 and 3, which may confuse users.

Re: [Nouveau] [PATCH v4 4/6] drm/nouveau: synchronize BOs when required

2014-07-11 Thread Daniel Vetter
On Fri, Jul 11, 2014 at 11:40:27AM +0900, Alexandre Courbot wrote: On 07/10/2014 10:04 PM, Daniel Vetter wrote: On Tue, Jul 08, 2014 at 05:25:59PM +0900, Alexandre Courbot wrote: On architectures for which access to GPU memory is non-coherent, caches need to be flushed and invalidated

Re: [PATCH] x86, eboot: Support initrd loaded above 4G

2014-07-11 Thread Matt Fleming
On Thu, 10 Jul, at 11:00:06AM, Yinghai Lu wrote: Oh, no. so efi could allocate buffer above 4g but can not access it? I'm not exactly sure what's wrong with the buffer - whether it's a case of not being able to access it properly or somehing buggy in the EFI code for reading files. No fault

[PATCH net-next 7/8] ethernet: amd: fix spaces and few coding styles

2014-07-11 Thread varkabhadram
From: Varka Bhadram var...@cdac.in This patch fix the following spacing issues: no space before tabs space required after that ';' space required before the open parenthesis '( space prohibited before that ':' (ctx:WxE) space prohibited before that close

[RFC Patch V1 18/30] mm, bnx2fc: Use cpu_to_mem()/numa_mem_id() to support memoryless node

2014-07-11 Thread Jiang Liu
When CONFIG_HAVE_MEMORYLESS_NODES is enabled, cpu_to_node()/numa_node_id() may return a node without memory, and later cause system failure/panic when calling kmalloc_node() and friends with returned node id. So use cpu_to_mem()/numa_mem_id() instead to get the nearest node with memory for

Re: [PATCH 0/3] drm/gk20a: support for reclocking

2014-07-11 Thread Martin Peres
On 11/07/2014 03:42, Alexandre Courbot wrote: On 07/10/2014 06:50 PM, Mikko Perttunen wrote: Does GK20A itself have any kind of thermal protection capabilities? Upstream SOCTHERM support is not yet available (though I have a driver in my tree), so we are thinking of disabling CPU DVFS on boards

[RFC Patch V1 19/30] mm, bnx2i: Use cpu_to_mem()/numa_mem_id() to support memoryless node

2014-07-11 Thread Jiang Liu
When CONFIG_HAVE_MEMORYLESS_NODES is enabled, cpu_to_node()/numa_node_id() may return a node without memory, and later cause system failure/panic when calling kmalloc_node() and friends with returned node id. So use cpu_to_mem()/numa_mem_id() instead to get the nearest node with memory for

[PATCH net-next 5/8] ethernet: amd: move pci device ids

2014-07-11 Thread varkabhadram
From: Varka Bhadram var...@cdac.in Normally any device ids will be above the corresponding device driver structure. This patch moves the pci device ids and MODULE_DEVICE_TABLE() above the pci driver structure. Signed-off-by: Varka Bhadram var...@cdac.in --- drivers/net/ethernet/amd/amd8111e.c |

[PATCH net-next 4/8] ethernet: amd: fix comment styles

2014-07-11 Thread varkabhadram
From: Varka Bhadram var...@cdac.in This patch fixes the comment style issues Signed-off-by: Varka Bhadram var...@cdac.in --- drivers/net/ethernet/amd/amd8111e.c | 181 +-- 1 file changed, 86 insertions(+), 95 deletions(-) diff --git

[RFC Patch V1 20/30] mm, fcoe: Use cpu_to_mem()/numa_mem_id() to support memoryless node

2014-07-11 Thread Jiang Liu
When CONFIG_HAVE_MEMORYLESS_NODES is enabled, cpu_to_node()/numa_node_id() may return a node without memory, and later cause system failure/panic when calling kmalloc_node() and friends with returned node id. So use cpu_to_mem()/numa_mem_id() instead to get the nearest node with memory for

RE: [RFC PATCH 02/10] mtd: nand: omap: Always use chip-ecc.steps for BCH sector count

2014-07-11 Thread Gupta, Pekon
From: Quadros, Roger Instead of hardcoding use the pre-calculated chip-ecc.steps for configuring number of sectors to process with the BCH algorithm. This also avoids unnecessary access to the ECC_CONFIG register in omap_calculate_ecc_bch(). Signed-off-by: Roger Quadros rog...@ti.com ---

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

2014-07-11 Thread Jingoo Han
On Wednesday, July 02, 2014 3:44 AM, Liviu Dudau wrote: Several platforms use a rather generic version of parsing the device tree to find the host bridge ranges. Move the common code into the generic PCI code and use it to create a pci_host_bridge structure that can be used by arch code.

[RFC Patch V1 16/30] mm, ixgbe: Use cpu_to_mem()/numa_mem_id() to support memoryless node

2014-07-11 Thread Jiang Liu
When CONFIG_HAVE_MEMORYLESS_NODES is enabled, cpu_to_node()/numa_node_id() may return a node without memory, and later cause system failure/panic when calling kmalloc_node() and friends with returned node id. So use cpu_to_mem()/numa_mem_id() instead to get the nearest node with memory for

[RFC Patch V1 17/30] mm, intel_powerclamp: Use cpu_to_mem()/numa_mem_id() to support memoryless node

2014-07-11 Thread Jiang Liu
When CONFIG_HAVE_MEMORYLESS_NODES is enabled, cpu_to_node()/numa_node_id() may return a node without memory, and later cause system failure/panic when calling kmalloc_node() and friends with returned node id. So use cpu_to_mem()/numa_mem_id() instead to get the nearest node with memory for

[PATCH net-next 3/8] ethernet: amd: dynamic debug fixes

2014-07-11 Thread varkabhadram
From: Varka Bhadram var...@cdac.in This patch convert printk() to netdev_dbg/info/err or dev_info/err/dbg Signed-off-by: Varka Bhadram var...@cdac.in --- drivers/net/ethernet/amd/amd8111e.c | 58 --- 1 file changed, 26 insertions(+), 32 deletions(-) diff --git

Re: [PATCH v2] cpufreq: Don't destroy/realloc policy/sysfs on hotplug/suspend

2014-07-11 Thread Srivatsa S. Bhat
On 07/11/2014 09:48 AM, Saravana Kannan wrote: The CPUfreq driver moves the cpufreq policy ownership between CPUs when CPUs within a cluster (CPUs sharing same policy) go ONLINE/OFFLINE. When moving policy ownership between CPUs, it also moves the cpufreq sysfs directory between CPUs and also

Re: [RFC Patch V1 25/30] mm, x86, kvm: Use cpu_to_mem()/numa_mem_id() to support memoryless node

2014-07-11 Thread Paolo Bonzini
Il 11/07/2014 09:37, Jiang Liu ha scritto: When CONFIG_HAVE_MEMORYLESS_NODES is enabled, cpu_to_node()/numa_node_id() may return a node without memory, and later cause system failure/panic when calling kmalloc_node() and friends with returned node id. So use cpu_to_mem()/numa_mem_id() instead to

Re: [PATCH v7 29/33] net: brcmfmac - set name assign type

2014-07-11 Thread Arend van Spriel
On 10-07-14 22:24, Tom Gundersen wrote: On Thu, Jul 10, 2014 at 10:08 PM, Arend van Spriel ar...@broadcom.com wrote: On 10-07-14 10:17, Tom Gundersen wrote: The name is given by the firmware, so we assume it is predictable. How about the scenario where one would have multiple broadcom wifi

[PATCH net-next 1/8] ethernet: amd: move amd111e_remove_one after probe

2014-07-11 Thread varkabhadram
From: Varka Bhadram var...@cdac.in This patch moves the remove functionalities after the probe so that we can see the registered and released resources properly. Every driver follows the same concept. Signed-off-by: Varka Bhadram var...@cdac.in --- drivers/net/ethernet/amd/amd8111e.c | 25

Re: [PATCH 1/3] usb: host: st-hcd: Add USB HCD support for STi SoCs

2014-07-11 Thread Peter Griffin
Hi Alan, Thanks for reviewing. On Thu, 10 Jul 2014, Alan Stern wrote: On Thu, 10 Jul 2014, Peter Griffin wrote: This driver adds support for the USB HCD present in STi SoC's from STMicroelectronics. It has been tested on the stih416-b2020 board. This driver file, along with the

[PATCH net-next 2/8] ethernet: amd: use devm_ioremap()

2014-07-11 Thread varkabhadram
From: Varka Bhadram var...@cdac.in This patch replace ioremap() with the devm_ioremap() so that the resource will be freed automatically with the probe failed. Signed-off-by: Varka Bhadram var...@cdac.in --- drivers/net/ethernet/amd/amd8111e.c |7 ++- 1 file changed, 2 insertions(+), 5

Re: [PATCH net-next 8/8] ethernet: amd: switch case fixes

2014-07-11 Thread Geert Uytterhoeven
On Fri, Jul 11, 2014 at 9:35 AM, varkabhad...@gmail.com wrote: --- a/drivers/net/ethernet/amd/amd8111e.c +++ b/drivers/net/ethernet/amd/amd8111e.c @@ -197,23 +197,24 @@ static void amd8111e_set_ext_phy(struct net_device *dev) advert = amd8111e_mdio_read(dev, lp-ext_phy_addr,

[RFC Patch V1 08/30] mm, thp: Use cpu_to_mem()/numa_mem_id() to support memoryless node

2014-07-11 Thread Jiang Liu
When CONFIG_HAVE_MEMORYLESS_NODES is enabled, cpu_to_node()/numa_node_id() may return a node without memory, and later cause system failure/panic when calling kmalloc_node() and friends with returned node id. So use cpu_to_mem()/numa_mem_id() instead to get the nearest node with memory for

[RFC Patch V1 11/30] mm, char/mspec.c: Use cpu_to_mem()/numa_mem_id() to support memoryless node

2014-07-11 Thread Jiang Liu
When CONFIG_HAVE_MEMORYLESS_NODES is enabled, cpu_to_node()/numa_node_id() may return a node without memory, and later cause system failure/panic when calling kmalloc_node() and friends with returned node id. So use cpu_to_mem()/numa_mem_id() instead to get the nearest node with memory for

[RFC Patch V1 03/30] mm, net: Use cpu_to_mem()/numa_mem_id() to support memoryless node

2014-07-11 Thread Jiang Liu
When CONFIG_HAVE_MEMORYLESS_NODES is enabled, cpu_to_node()/numa_node_id() may return a node without memory, and later cause system failure/panic when calling kmalloc_node() and friends with returned node id. So use cpu_to_mem()/numa_mem_id() instead to get the nearest node with memory for

[RFC Patch V1 13/30] mm, i40e: Use cpu_to_mem()/numa_mem_id() to support memoryless node

2014-07-11 Thread Jiang Liu
When CONFIG_HAVE_MEMORYLESS_NODES is enabled, cpu_to_node()/numa_node_id() may return a node without memory, and later cause system failure/panic when calling kmalloc_node() and friends with returned node id. So use cpu_to_mem()/numa_mem_id() instead to get the nearest node with memory for

[RFC Patch V1 12/30] mm, IB/qib: Use cpu_to_mem()/numa_mem_id() to support memoryless node

2014-07-11 Thread Jiang Liu
When CONFIG_HAVE_MEMORYLESS_NODES is enabled, cpu_to_node()/numa_node_id() may return a node without memory, and later cause system failure/panic when calling kmalloc_node() and friends with returned node id. So use cpu_to_mem()/numa_mem_id() instead to get the nearest node with memory for

[PATCH net-next 0/8] cleanup for AMD811E ethernet driver

2014-07-11 Thread varkabhadram
From: Varka Bhadram var...@cdac.in This series cleanup for AMD811E ethernet driver Varka Bhadram (8): ethernet: amd: move amd111e_remove_one after probe ethernet: amd: use devm_ioremap() ethernet: amd: dynamic debug fixes ethernet: amd: fix comment styles ethernet: amd: move pci device

[RFC Patch V1 05/30] mm, perf: Use cpu_to_mem()/numa_mem_id() to support memoryless node

2014-07-11 Thread Jiang Liu
When CONFIG_HAVE_MEMORYLESS_NODES is enabled, cpu_to_node()/numa_node_id() may return a node without memory, and later cause system failure/panic when calling kmalloc_node() and friends with returned node id. So use cpu_to_mem()/numa_mem_id() instead to get the nearest node with memory for

[RFC Patch V1 02/30] mm, sched: Use cpu_to_mem()/numa_mem_id() to support memoryless node

2014-07-11 Thread Jiang Liu
When CONFIG_HAVE_MEMORYLESS_NODES is enabled, cpu_to_node()/numa_node_id() may return a node without memory, and later cause system failure/panic when calling kmalloc_node() and friends with returned node id. So use cpu_to_mem()/numa_mem_id() instead to get the nearest node with memory for

  1   2   3   4   5   6   7   8   9   10   >