[PATCHv2] staging: usbip: use kcalloc instead of kzalloc for array allocations

2014-05-23 Thread Djordje Zekovic
The advantage of kcalloc is, that will prevent integer overflows which could result from the multiplication of number of elements and size and it is also a bit nicer to read. Signed-off-by: Djordje Zekovic --- v2: Fixed issue regarding kcalloc func signature, noted by Richard Weinberger

Re: [PATCH V4 0/2] mm: FAULT_AROUND_ORDER patchset performance data for powerpc

2014-05-23 Thread Kirill A. Shutemov
Andrew Morton wrote: > On Wed, 21 May 2014 16:40:27 +0300 (EEST) "Kirill A. Shutemov" > wrote: > > > > Or something. Can we please get some code commentary over > > > do_fault_around() describing this design decision and explaining the > > > reasoning behind it? > > > > I'll do this. But if do

Re: [PATCHv2 2/4] ACPI / LPSS: custom power domain for LPSS

2014-05-23 Thread Heikki Krogerus
On Thu, May 22, 2014 at 01:28:16AM +0200, Rafael J. Wysocki wrote: > On Wednesday, May 21, 2014 01:52:58 PM Heikki Krogerus wrote: > > On Wed, May 21, 2014 at 01:01:31PM +0200, Rafael J. Wysocki wrote: > > > On Wednesday, May 21, 2014 01:05:11 PM Heikki Krogerus wrote: > > > > On Tue, May 20, 2014

Re: NFS issue while copying huge file

2014-05-23 Thread Richard Weinberger
Am 23.05.2014 13:56, schrieb J. Bruce Fields: > It's not a known issue, and finding out where the problem was introduced > could indeed by helpful. > > I'm not sure how to interpret the statistics from the oom killer. I'll > dig around. > > Knowing where the nfsd threads are spinning might also

Re: [PATCH V2] extcon: arizona: support inverted jack detect switch

2014-05-23 Thread Lee Jones
> Add config option for inverted jack detect switch that > opens when jack is inserted. > > Signed-off-by: Richard Fitzgerald I already Acked this. Don't forget to carry that forward to mitigate adding unnecessary delay to acceptance. > --- > drivers/extcon/extcon-arizona.c | 34 +

[PATCH 2/3][update] PM / sleep: Use valid_state() for platform-dependent sleep states only

2014-05-23 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Use the observation that, for platform-dependent sleep states (PM_SUSPEND_STANDBY, PM_SUSPEND_MEM), a given state is either always supported or always unsupported and store that information in pm_states[] instead of calling valid_state() every time we need to check it. Al

[PATCH] TaskTracker : Simplified thread information tracker.

2014-05-23 Thread Tetsuo Handa
Yesterday I went to LinuxCon Japan 2014 and stopped at Red Hat's booth and Oracle's booth. I explained about this module ( using page 92 of http://I-love.SAKURA.ne.jp/tomoyo/LCJ2014-en.pdf ) and got positive responses from persons who have experienced troubleshooting jobs. I was convinced that I am

Re: [PATCH] mmc: sdhci-dove: use mmc_of_parse() and remove card_tasklet CD handler

2014-05-23 Thread Chris Ball
Hi, On Fri, May 23 2014, Ulf Hansson wrote: > Thanks Sebastian! > > Signed-off-by: Ulf Hansson > > Chris, can you pick this up? Thanks, pushed to mmc-next. - Chris. -- Chris Ball -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

[PATCH 3/3][update] PM / sleep: Introduce command line argument for sleep state enumeration

2014-05-23 Thread Rafael J. Wysocki
From: Rafael J. Wysocki On some systems the platform doesn't support neither PM_SUSPEND_MEM nor PM_SUSPEND_STANDBY, so PM_SUSPEND_FREEZE is the only available system sleep state. However, some user space frameworks only use the "mem" and (sometimes) "standby" sleep state labels, so the users of

[PATCH v3 01/13] mmc: mmci: use NSEC_PER_SEC macro

2014-05-23 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch replaces a constant used in calculating timeout with a proper macro. This is make code more readable. Signed-off-by: Srinivas Kandagatla Reviewed-by: Linus Walleij --- drivers/mmc/host/mmci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

[PATCH v3 00/13] Add Qualcomm SD Card Controller support

2014-05-23 Thread srinivas . kandagatla
From: Srinivas Kandagatla Thankyou Linus W and everyone for reviewing RFC to v3 patches. This patch series adds Qualcomm SD Card Controller support in pl180 mmci driver. QCom SDCC is basically a pl180, but bit more customized, some of the register layouts and offsets are different to the ones me

[PATCH v2 0/2] of: Clean up naming of platform devices

2014-05-23 Thread Grant Likely
This series makes of_device_make_bus_id() more reliable in choosing a unique name and clears out some historical cruft. I've rebased it onto Rob's for-next tree so that it plays well with the removal of of_can_translate_address() -- To unsubscribe from this list: send the line "unsubscribe linux-k

[PATCH v3 02/13] mmc: mmci: convert register bits to use BIT() macro.

2014-05-23 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch converts the register bits in the header file to use BIT(() macro, which looks much neater. No functional changes done. Signed-off-by: Srinivas Kandagatla --- drivers/mmc/host/mmci.h | 208 1 file changed, 1

[PATCH v3 03/13] mmc: mmci: Add Qualcomm Id to amba id table

2014-05-23 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch adds a fake Qualcomm ID 0x00051180 to the amba_ids, as Qualcomm SDCC controller is pl180, but amba id registers read 0x0's. The plan is to remove SDCC driver totally and use mmci as the main SD controller driver for Qualcomm SOCs. Signed-off-by: Srinivas Kand

[PATCH v3 04/13] mmc: mmci: Add Qcom datactrl register variant

2014-05-23 Thread srinivas . kandagatla
From: Srinivas Kandagatla Instance of this IP on Qualcomm's SOCs has bit different layout for datactrl register. Bit position datactrl[16:4] hold the true block size instead of power of 2. Signed-off-by: Srinivas Kandagatla Reviewed-by: Linus Walleij --- drivers/mmc/host/mmci.c | 6 ++ 1

[PATCH v3 06/13] mmc: mmci: Qcomm: Add 3 clock cycle delay after register write

2014-05-23 Thread srinivas . kandagatla
From: Srinivas Kandagatla Most of the Qcomm SD card controller registers must be updated to the MCLK domain so subsequent writes to registers will be ignored until 3 clock cycles have passed. This patch adds a 3 clock cycle delay required after writing to controller registers on Qualcomm SOCs. W

[PATCH v3 09/13] mmc: mmci: add edge support to data and command out in variant data.

2014-05-23 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch adds edge support for data and command out to variant structure giving more flexibility to the driver to support more SOCs which have different clock register layout. Without this patch other new SOCs like Qcom will have to add more code to special case them

[PATCH v3 07/13] mmc: mmci: add ddrmode mask to variant data

2014-05-23 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch adds ddrmode mask to variant structure giving more flexibility to the driver to support more SOCs which have different datactrl register layout. Without this patch datactrl register is updated with wrong ddrmode mask on non ST SOCs, resulting in card detectio

[PATCH v3 05/13] mmc: mmci: Add register read/write wrappers.

2014-05-23 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch adds wrappers for readl/writel functions used in the driver. The reason for this wrappers is to accommodate SOCs like Qualcomm which has requirement for delaying the write for few cycles when writing to its SD Card Controller registers. Signed-off-by: Sriniva

[PATCH v3 08/13] mmc: mmci: add 8bit bus support in variant data

2014-05-23 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch adds 8bit bus enable to variant structure giving more flexibility to the driver to support more SOCs which have different clock register layout. Without this patch other new SOCs like Qcom will have to add more code to special case them. Signed-off-by: Srini

[PATCH 0/4] AFS: Fixes and cleanups

2014-05-23 Thread David Howells
http://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git/log/?h=afs ending at the afs-fixes-20140523 tag. David --- David Howells (2): AFS: Fix cache manager service handlers AFS: Pass an afs_call* to call->async_workfn() instead of a work_struct* Nathaniel Wesley Filardo (2):

Re: [PATCHv2 2/4] ACPI / LPSS: custom power domain for LPSS

2014-05-23 Thread Rafael J. Wysocki
On Friday, May 23, 2014 03:30:53 PM Heikki Krogerus wrote: > On Thu, May 22, 2014 at 01:28:16AM +0200, Rafael J. Wysocki wrote: > > On Wednesday, May 21, 2014 01:52:58 PM Heikki Krogerus wrote: > > > On Wed, May 21, 2014 at 01:01:31PM +0200, Rafael J. Wysocki wrote: > > > > On Wednesday, May 21, 20

[PATCH v3 10/13] mmc: mmci: add Qcom specifics of clk and datactrl registers.

2014-05-23 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch adds specifics of clk and datactrl register on Qualcomm SD Card controller. This patch also populates the Qcom variant data with these new values specific to Qualcomm SD Card Controller. Signed-off-by: Srinivas Kandagatla Reviewed-by: Linus Walleij --- dri

[PATCH v3 12/13] mmc: mmci: add explicit clk control

2014-05-23 Thread srinivas . kandagatla
From: Srinivas Kandagatla On Controllers like Qcom SD card controller where cclk is mclk and mclk should be directly controlled by the driver. This patch adds support to control mclk directly in the driver, and also adds explicit_mclk_control and cclk_is_mclk flags in variant structure giving mo

[PATCH v3 13/13] mmc: mmci: Add Qcom specific pio_read function.

2014-05-23 Thread srinivas . kandagatla
From: Srinivas Kandagatla MCIFIFOCNT register behaviour on Qcom chips is very different than the other pl180 integrations. MCIFIFOCNT register contains the number of words that are still waiting to be transferred through the FIFO. It keeps decrementing once the host CPU reads the MCIFIFO. With th

Re: [PATCH v3 2/2] mmc: tegra: fix reporting of base clock frequency

2014-05-23 Thread Chris Ball
Hi, On Fri, May 23 2014, Ulf Hansson wrote: > On 22 May 2014 17:55, Andrew Bresticker wrote: >> Tegra SDHCI controllers, by default, report a base clock frequency >> of 208Mhz in SDHCI_CAPABILTIES which may or may not be equal to the >> actual base clock frequency. This is because the clock rate

[PATCH 4/4] AFS: Pass an afs_call* to call->async_workfn() instead of a work_struct*

2014-05-23 Thread David Howells
call->async_workfn() can take an afs_call* arg rather than a work_struct* as the functions assigned there are now called from afs_async_workfn() which has to call container_of() anyway. Signed-off-by: David Howells Reviewed-by: Nathaniel Wesley Filardo Reviewed-by: Tejun Heo --- fs/afs/intern

[PATCH 3/4] AFS: Fix kafs module unloading

2014-05-23 Thread David Howells
From: Nathaniel Wesley Filardo At present, it is not possible to successfully unload the kafs module if there are outstanding async outgoing calls (those made with afs_make_call()). This appears to be due to the changes introduced by: commit 059499453a9abd1857d442b44da8b4c126dc72a8

[PATCH v3 11/13] mmc: mmci: Add support to data commands via variant structure.

2014-05-23 Thread srinivas . kandagatla
From: Srinivas Kandagatla On some SOCs like Qcom there are explicit bits in the command register to specify if its a data transfer command or not. So this patch adds support to such bits in variant data, giving more flexibility to the driver. Signed-off-by: Srinivas Kandagatla Reviewed-by: Linu

[PATCH 2/4] AFS: Part of afs_end_call() is identical to code elsewhere, so split it

2014-05-23 Thread David Howells
From: Nathaniel Wesley Filardo Split afs_end_call() into two pieces, one of which is identical to code in afs_process_async_call(). Replace the latter with a call to the first part of afs_end_call(). Signed-off-by: Nathaniel Wesley Filardo Signed-off-by: David Howells --- fs/afs/rxrpc.c |

Re: [PATCH v3 1/2] mmc: tegra: disable UHS modes

2014-05-23 Thread Chris Ball
Hi, On Fri, May 23 2014, Ulf Hansson wrote: > On 22 May 2014 17:55, Andrew Bresticker wrote: >> Program TEGRA_SDHCI_VENDOR_MISC_CTRL so that UHS modes aren't advertised >> in SDHCI_CAPABILITIES_1. While the Tegra SDHCI controller does support >> these modes, they require Tegra-specific tuning an

[PATCH 1/4] AFS: Fix cache manager service handlers

2014-05-23 Thread David Howells
Fix the cache manager RPC service handlers. The afs_send_empty_reply() and afs_send_simple_reply() functions: (a) Kill the call and free up the buffers associated with it if they fail. (b) Return with call intact if it they succeed. However, none of the callers actually check the result or cl

Re: [PATCH v1] of/irq: do irq resolution in platform_get_irq_byname()

2014-05-23 Thread Grant Likely
On Tue, 20 May 2014 13:42:02 +0300, Grygorii Strashko wrote: > The commit 9ec36cafe43bf835f8f29273597a5b0cbc8267ef > "of/irq: do irq resolution in platform_get_irq" from Rob Herring - > moves resolving of the interrupt resources in platform_get_irq(). > But this solution isn't complete because pl

[PATCH v2 2/2] of: Stop naming platform_device using dcr address

2014-05-23 Thread Grant Likely
There is now a way to ensure all platform devices get a unique name when populated from the device tree, and the DCR_NATIVE code path is broken anyway. PowerPC Cell (PS3) is the only platform that actually uses this path. Most likely nobody will notice if it is killed. Remove the code and associat

[PATCH v2 1/2] of: Ensure unique names without sacrificing determinism

2014-05-23 Thread Grant Likely
The way the driver core is implemented, every device using the same bus type is required to have a unique name because a symlink to each device is created in the appropriate /sys/bus/*/devices directory, and two identical names causes a collision. The current code handles the requirement by using

Re: [PATCH V5 3/4] x86/PCI: Stop enabling ECS for AMD CPUs after Fam16h

2014-05-23 Thread Bjorn Helgaas
On Fri, May 23, 2014 at 5:56 AM, Robert Richter wrote: > On 22.05.14 20:54:54, Bjorn Helgaas wrote: >> I'm going to go out on a limb and guess that Windows does not enable >> ECS, so it probably uses ECAM. Therefore, I suspect Linux's parsing >> of MCFG is broken in some way, and we probably *cou

Re: [PATCHv2 2/4] ACPI / LPSS: custom power domain for LPSS

2014-05-23 Thread Heikki Krogerus
On Fri, May 23, 2014 at 03:10:08PM +0200, Rafael J. Wysocki wrote: > On Friday, May 23, 2014 03:30:53 PM Heikki Krogerus wrote: > > On Thu, May 22, 2014 at 01:28:16AM +0200, Rafael J. Wysocki wrote: > > > On Wednesday, May 21, 2014 01:52:58 PM Heikki Krogerus wrote: > > > > On Wed, May 21, 2014 at

[PATCH] bus: omap_l3_noc.c: use devm functions

2014-05-23 Thread abdoulaye berthe
This uses devm function to ease mem alloc Signed-off-by: abdoulaye berthe --- drivers/bus/omap_l3_noc.c | 85 +-- 1 file changed, 23 insertions(+), 62 deletions(-) diff --git a/drivers/bus/omap_l3_noc.c b/drivers/bus/omap_l3_noc.c index feeecae..b496d

Re: linux-next: manual merge of the arm-soc tree with the arm tree

2014-05-23 Thread Gregory CLEMENT
Hi Stephen, On 23/05/2014 02:45, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the arm-soc tree got a conflict in > arch/arm/mach-mvebu/board-v7.c between commit 8ae2473d96f1 ("ARM: l2c: > mvebu: convert to generic l2c OF initialisation") from the arm tree and > commit 5686a1e

Re: [PATCH 07/22] clk: sunxi: Fix PLL6 calculation on sun6i

2014-05-23 Thread Emilio López
Hi, El 23/05/14 04:51, Chen-Yu Tsai escribió: The N factor for PLL6 counts from 1 to 32, as specified in the A23 manual, and shown in Allwinner's original code. Are you sure about this? The A23 manual I'm looking at has a 5-bit field (so 0-31) on 12:8, and the examples count from 0 (eg Factor

Re: dm-writeboost: Progress Report

2014-05-23 Thread Akira Hayakawa
Hi Guys, This progress report includes very important benchmarking results, which shows i) Write will always improve - It boosts writes (396% in the best case) even with really small cache (say, 64MB) because of the sophisticated writeback optimization. ii) Read won't be bad - It doesn't so much

[PATCHv3 2/4] ACPI / LPSS: custom power domain for LPSS

2014-05-23 Thread Heikki Krogerus
A power domain where we save the context of the additional LPSS registers. We need to do this or all LPSS devices are left in reset state when resuming from D3 on some Baytrails. The devices with the fractional clock divider also have zeros for N and M values after resuming unless they are reset.

Re: [lxc-devel] [RFC PATCH 00/11] Add support for devtmpfs in user namespaces

2014-05-23 Thread James Bottomley
On Fri, 2014-05-23 at 11:20 +0300, Marian Marinov wrote: > On 05/20/2014 05:19 PM, Serge Hallyn wrote: > > Quoting Andy Lutomirski (l...@amacapital.net): > >> On May 15, 2014 1:26 PM, "Serge E. Hallyn" wrote: > >>> > >>> Quoting Richard Weinberger (rich...@nod.at): > Am 15.05.2014 21:50, sch

Re: [PATCH V3 1/8] cpufreq: cpufreq-cpu0: remove dependency on thermal

2014-05-23 Thread Eduardo Valentin
Hi Viresh, On Fri, May 23, 2014 at 10:03:27AM +0530, Viresh Kumar wrote: > On 22 May 2014 20:22, Eduardo Valentin wrote: > > However, on CPUs that needs thermal managment, it makes sense to have > > such dependency, from functional perspective. Mainly because scaling > > frequency and voltage up

Re: [patch 6/9] mm: memcontrol: remove ordering between pc->mem_cgroup and PageCgroupUsed

2014-05-23 Thread Michal Hocko
On Wed 30-04-14 16:25:40, Johannes Weiner wrote: > There is a write barrier between setting pc->mem_cgroup and > PageCgroupUsed, which was added to allow LRU operations to lookup the > memcg LRU list of a page without acquiring the page_cgroup lock. But > ever since 38c5d72f3ebe ("memcg: simplify

[PATCH] genksyms: Include scripts/Makefile.lib

2014-05-23 Thread Guido Günther
Otherwise when building out of tree like make V=1 O=/var/scratch/kernel/ it fails like make -f /home/agx/linux/scripts/Makefile.build obj=scripts make -f /home/agx/linux/scripts/Makefile.build obj=scripts/genksyms (cat /dev/null; ) > scripts/genksyms/modules.order gcc -Wp,-MD,scripts/genksyms/

Re: [PATCH v6 2/3] CPU hotplug, stop-machine: Plug race-window that leads to "IPI-to-offline-CPU"

2014-05-23 Thread Frederic Weisbecker
On Fri, May 23, 2014 at 03:42:20PM +0530, Srivatsa S. Bhat wrote: > During CPU offline, stop-machine is used to take control over all the online > CPUs (via the per-cpu stopper thread) and then run take_cpu_down() on the CPU > that is to be taken offline. > > But stop-machine itself has several st

Re: [PATCH 2/5] Documentation: dt-bindings: document the Armada 375 USB cluster binding

2014-05-23 Thread Gregory CLEMENT
Hi Kishon, On 23/05/2014 11:24, Kishon Vijay Abraham I wrote: > Hi, > > On Friday 16 May 2014 09:52 PM, Gregory CLEMENT wrote: >> Armada 375 comes with an USB2 host and device controller and an USB3 >> controller. The USB cluster control register allows to manage common >> features of both USB co

Re: [PATCH 2/5] Documentation: dt-bindings: document the Armada 375 USB cluster binding

2014-05-23 Thread Andrew Lunn
On Fri, May 23, 2014 at 02:54:02PM +0530, Kishon Vijay Abraham I wrote: > Hi, > > On Friday 16 May 2014 09:52 PM, Gregory CLEMENT wrote: > > Armada 375 comes with an USB2 host and device controller and an USB3 > > controller. The USB cluster control register allows to manage common > > features of

Re: [PATCHv2 00/14] perf tools: Speedup DWARF unwind

2014-05-23 Thread Jean Pihet
Jiri, On 23 May 2014 10:13, Jiri Olsa wrote: > ping ;-) This looks a ping to yourself ;-) Here are the results on ARMv7: - libunwind: between -29% in execution time for light load (i.e. using not-so-deep backtraces from the stress app.) and -49% for deep backtrace (the 'stress_bt' app.), - libd

Re: [PATCH v6 3/3] CPU hotplug, smp: Flush any pending IPI callbacks before CPU offline

2014-05-23 Thread Frederic Weisbecker
On Fri, May 23, 2014 at 03:42:35PM +0530, Srivatsa S. Bhat wrote: > During CPU offline, in the stop-machine loop, we use 2 separate stages to > disable interrupts, to ensure that the CPU going offline doesn't get any new > IPIs from the other CPUs after it has gone offline. > > However, an IPI sen

Re: [PATCH V3 1/8] cpufreq: cpufreq-cpu0: remove dependency on thermal

2014-05-23 Thread Viresh Kumar
> On 23-May-2014, at 6:51 pm, Eduardo Valentin wrote: > I agree. We need to have runtime dependency, and that is the major > concern on my behalf. The problem of Kconfig dependency is that it > imposes sequencing only on module loading, not at boot sequencing. > > Another way around is returning

Re: NFS issue while copying huge file

2014-05-23 Thread J. Bruce Fields
On Thu, May 22, 2014 at 12:50:34PM +0200, Richard Weinberger wrote: > On Wed, May 21, 2014 at 11:33 PM, Richard Weinberger > wrote: > > Hi! > > > > My backup server runs CentOS6 with kernel 2.6.32-431.17.1.el6.x86_64. > > Many servers copy theirs backups to it. This setups works perfectly > > fine

Re: NFS issue while copying huge file

2014-05-23 Thread J. Bruce Fields
On Fri, May 23, 2014 at 02:36:16PM +0200, Richard Weinberger wrote: > Am 23.05.2014 13:56, schrieb J. Bruce Fields: > > It's not a known issue, and finding out where the problem was introduced > > could indeed by helpful. > > > > I'm not sure how to interpret the statistics from the oom killer. I

Re: [patch] sched: signedness bug in yield_to()

2014-05-23 Thread Raghavendra KT
On Fri, May 23, 2014 at 3:50 PM, Dan Carpenter wrote: > yield_to() is supposed to return -ESRCH if there is no task to > yield to, but because the type is bool that is the same as returning > true. > > The only place I see which cares is kvm_vcpu_on_spin(). > > Signed-off-by: Dan Carpenter Thank

Re: [patch 7/9] mm: memcontrol: do not acquire page_cgroup lock for kmem pages

2014-05-23 Thread Michal Hocko
I am adding Vladimir to CC On Wed 30-04-14 16:25:41, Johannes Weiner wrote: > Kmem page charging and uncharging is serialized by means of exclusive > access to the page. Do not take the page_cgroup lock and don't set > pc->flags atomically. > > Signed-off-by: Johannes Weiner The patch is corre

Re: [PATCH 2/5] Documentation: dt-bindings: document the Armada 375 USB cluster binding

2014-05-23 Thread Andrew Lunn
> Do you want one .txt file per driver, or can we combine binding > documentations into one file? There should already be a mvebu-phy.txt, > which contains the sata phy usable on some of the Armada SoC families. > This binding could be appended to it. Ah. Humm, well! It seems the patch adding the

Re: [patch 7/9] mm: memcontrol: do not acquire page_cgroup lock for kmem pages

2014-05-23 Thread Michal Hocko
On Fri 23-05-14 15:39:38, Michal Hocko wrote: > I am adding Vladimir to CC And now for real > > On Wed 30-04-14 16:25:41, Johannes Weiner wrote: > > Kmem page charging and uncharging is serialized by means of exclusive > > access to the page. Do not take the page_cgroup lock and don't set > > pc

Re: [PATCH RESEND] mmc: dove: fix missing MACH_DOVE dependency

2014-05-23 Thread Jason Cooper
On Fri, May 23, 2014 at 09:40:55AM +0200, Ulf Hansson wrote: > On 23 May 2014 09:16, Olof Johansson wrote: > > On Thu, May 22, 2014 at 2:09 AM, Ulf Hansson wrote: > >> On 19 May 2014 20:02, Sebastian Hesselbarth > >> wrote: > >>> DT-enabled Dove moved over from ARCH_DOVE in mach-dove to MACH_DOV

Re: NFS issue while copying huge file

2014-05-23 Thread Richard Weinberger
Am 23.05.2014 15:39, schrieb J. Bruce Fields: > And like the lock contention may be in xfs So ideally you'd get > someone who knows the CentOS/RHEL6 xfs code to look at it first. I saw this coming. ;) Thanks, //richard -- To unsubscribe from this list: send the line "unsubscribe linux-kernel

Re: skbuff truesize incorrect.

2014-05-23 Thread Eric Dumazet
On Fri, 2014-05-23 at 12:13 +0100, Jim Baxter wrote: > What are the side effects of changing the truesize, if the original > uncloned skb has the full truesize then isn't the potential memory usage > still counted for the avoidance of OOM? Nope. This can be disastrous. A malicious remote peer ca

Re: [PATCH 2/5] Documentation: dt-bindings: document the Armada 375 USB cluster binding

2014-05-23 Thread Kishon Vijay Abraham I
Hi, On Friday 23 May 2014 06:51 PM, Andrew Lunn wrote: > On Fri, May 23, 2014 at 02:54:02PM +0530, Kishon Vijay Abraham I wrote: >> Hi, >> >> On Friday 16 May 2014 09:52 PM, Gregory CLEMENT wrote: >>> Armada 375 comes with an USB2 host and device controller and an USB3 >>> controller. The USB clus

Re: [PATCH 2/5] Documentation: dt-bindings: document the Armada 375 USB cluster binding

2014-05-23 Thread Kishon Vijay Abraham I
hI, On Friday 23 May 2014 07:06 PM, Andrew Lunn wrote: >> Do you want one .txt file per driver, or can we combine binding >> documentations into one file? There should already be a mvebu-phy.txt, >> which contains the sata phy usable on some of the Armada SoC families. >> This binding could be app

Re: 3.15.0-rc6: VM_BUG_ON_PAGE(PageTail(page), page)

2014-05-23 Thread Sasha Levin
On 05/23/2014 05:16 AM, Kirill A. Shutemov wrote: > On Fri, May 23, 2014 at 12:21:47AM -0400, Sasha Levin wrote: >> On 05/22/2014 09:58 AM, Dave Jones wrote: >>> Not sure if Sasha has already reported this on -next (It's getting hard >>> to keep track of all the VM bugs he's been finding), but I hi

Re: [PATCH v7] media: vb2: Take queue or device lock in mmap-related vb2 ioctl handlers

2014-05-23 Thread Hans Verkuil
Hi Laurent, This patch caused a circular locking dependency as reported by Sasha Levin: https://lkml.org/lkml/2014/5/5/366 The reason is that copy_to/from_user is called in video_usercopy() with the core lock held. The copy functions can fault which takes the mmap_sem. If it was just video_userc

Re: [PATCH] pinctrl: Enable "power-source" to be extracted from DT files

2014-05-23 Thread Linus Walleij
On Wed, May 21, 2014 at 5:14 PM, Ivan T. Ivanov wrote: > From: "Ivan T. Ivanov" > > Add "power-source" property to generic options used for DT parsing files. > This enables drivers, which use generic pin configurations, to get the > value passed to this property. > > Signed-off-by: Ivan T. Ivan

Re: [PATCH V2 2/3] powerpc, ptrace: Enable support for transactional memory register sets

2014-05-23 Thread Anshuman Khandual
On 05/22/2014 10:38 AM, Anshuman Khandual wrote: > I agree. > >> > >> > Maybe we should leave this for another day, and have tm_spr_active >> > return 0 instead of -ENODEV when the machine doesn't have the hardware, >> > or not install that hook at all. Seems like the effect will be the same, >>

Re: [PATCH v2 1/2] of: Ensure unique names without sacrificing determinism

2014-05-23 Thread Rob Herring
On Thu, May 22, 2014 at 6:36 PM, Grant Likely wrote: > The way the driver core is implemented, every device using the same bus > type is required to have a unique name because a symlink to each device > is created in the appropriate /sys/bus/*/devices directory, and two > identical names causes a

Re: skbuff truesize incorrect.

2014-05-23 Thread Eric Dumazet
On Fri, 2014-05-23 at 11:33 +0200, Bjørn Mork wrote: > Jim Baxter writes: > > >> I'll create and test a patch for the cdc_ncm host driver unless someone > >> else wants to do that. I haven't really played with the gadget driver > >> before, so I'd prefer if someone knowing it (Jim maybe?) could t

Re: [PATCH 2/5] Documentation: dt-bindings: document the Armada 375 USB cluster binding

2014-05-23 Thread Andrew Lunn
On Fri, May 23, 2014 at 07:22:48PM +0530, Kishon Vijay Abraham I wrote: > hI, > > On Friday 23 May 2014 07:06 PM, Andrew Lunn wrote: > >> Do you want one .txt file per driver, or can we combine binding > >> documentations into one file? There should already be a mvebu-phy.txt, > >> which contains

Re: [PATCH v2 2/2] of: Stop naming platform_device using dcr address

2014-05-23 Thread Arnd Bergmann
On Friday 23 May 2014 08:36:09 Grant Likely wrote: > There is now a way to ensure all platform devices get a unique name when > populated from the device tree, and the DCR_NATIVE code path is broken > anyway. PowerPC Cell (PS3) is the only platform that actually uses this > path. Most likely nobod

Re: [PATCH] pinctrl: add params in disable_setting for different usage

2014-05-23 Thread Linus Walleij
On Thu, May 22, 2014 at 12:52 AM, Tony Lindgren wrote: > * FanWu [140520 23:23]: >> To remove the HW disable function in pinmux_disable_setting is no effect for >> our SoC platform. I am just not sure whether it has effect for other >> platform just as I described before. >> If there is no vendor

Re: [PATCH] pinctrl: Enable "power-source" to be extracted from DT files

2014-05-23 Thread Ivan T. Ivanov
On Fri, 2014-05-23 at 15:58 +0200, Linus Walleij wrote: > On Wed, May 21, 2014 at 5:14 PM, Ivan T. Ivanov wrote: > > > From: "Ivan T. Ivanov" > > > > Add "power-source" property to generic options used for DT parsing files. > > This enables drivers, which use generic pin configurations, to get

Re: [PATCH v1 5/5] ARM: dts: qcom: Add APQ8084 serial port DT node

2014-05-23 Thread Georgi Djakov
On 05/22/2014 07:32 PM, Kumar Gala wrote: On May 22, 2014, at 11:24 AM, Georgi Djakov wrote: Add the necessary DT node to probe the serial driver on APQ8084 platforms. Signed-off-by: Georgi Djakov --- arch/arm/boot/dts/qcom-apq8084.dtsi |7 +++ 1 file changed, 7 insertions(+) diff -

Re: [patch 8/9] mm: memcontrol: rewrite charge API

2014-05-23 Thread Michal Hocko
On Wed 30-04-14 16:25:42, Johannes Weiner wrote: [...] > diff --git a/mm/memcontrol.c b/mm/memcontrol.c > index d3961fce1d54..6f48e292ffe7 100644 > --- a/mm/memcontrol.c > +++ b/mm/memcontrol.c > @@ -2574,163 +2574,6 @@ static int memcg_cpu_hotplug_callback(struct > notifier_block *nb, > ret

Re: [PATCH v1 3/5] clk: gcc: Add APQ8084 Global Clock Controller support

2014-05-23 Thread Georgi Djakov
On 05/22/2014 07:38 PM, Kumar Gala wrote: On May 22, 2014, at 11:24 AM, Georgi Djakov wrote: This patch adds support for the global clock controller found on the APQ8084 based devices. The APQ8084 and MSM8974 share a lot of clock data, so instead of duplicating all the data, we add support t

Re: [RFT PATCH] regulator: s2mpa01: Use correct register for buck[36] ramp delay

2014-05-23 Thread Krzysztof Kozlowski
Hi Sachin, The s2mpa01 regulator driver uses wrong registers for ramp delay (buck1 and buck3 in RAMP1, buck6 in RAMP2) but I am not sure which layout is proper (it seems that that buck1 should be in RAMP2 register). Could you check in S2MPA01 datasheet the registers for ramp delay for buck1, buck

Re: [PATCH v1 3/5] clk: gcc: Add APQ8084 Global Clock Controller support

2014-05-23 Thread Georgi Djakov
On 05/22/2014 08:22 PM, Stephen Boyd wrote: On 05/22/14 09:24, Georgi Djakov wrote: diff --git a/drivers/clk/qcom/gcc-msm8974.c b/drivers/clk/qcom/gcc-msm8974.c index 58cb2f5..c2a8d77 100644 --- a/drivers/clk/qcom/gcc-msm8974.c +++ b/drivers/clk/qcom/gcc-msm8974.c @@ -204,6 +204,12 @@ static con

Re: [PATCH] thermal: document struct thermal_zone_device and thermal_governor

2014-05-23 Thread Eduardo Valentin
Hello Javi, On Fri, May 23, 2014 at 10:35:52AM +0100, Javi Merino wrote: > On Thu, May 22, 2014 at 04:27:30PM +0100, Eduardo Valentin wrote: > > Hello Javi, > > > > On Fri, May 16, 2014 at 12:16:08PM +0100, Javi Merino wrote: > > > > > Document struct struct thermal_zone_device and struct therma

Re: [patch 7/9] mm: memcontrol: do not acquire page_cgroup lock for kmem pages

2014-05-23 Thread Vladimir Davydov
On Fri, May 23, 2014 at 03:39:38PM +0200, Michal Hocko wrote: > I am adding Vladimir to CC > > On Wed 30-04-14 16:25:41, Johannes Weiner wrote: > > Kmem page charging and uncharging is serialized by means of exclusive > > access to the page. Do not take the page_cgroup lock and don't set > > pc->

[PATCH] mtd: maps: remove check for CONFIG_MTD_SUPERH_RESERVE

2014-05-23 Thread Paul Bolle
Since (a few releases before) v2.6.0 there have been checks for CONFIG_MTD_SUPERH_RESERVE. One check is still present. But a Kconfig symbol MTD_SUPERH_RESERVE has never been added. So a few lines of dead code can be removed. Signed-off-by: Paul Bolle --- Untested. drivers/mtd/maps/solutionengin

Re: Runtime PM workqueue killing system performance with USB

2014-05-23 Thread Will Deacon
On Thu, May 22, 2014 at 07:14:40PM +0100, Alan Stern wrote: > On Thu, 22 May 2014, Will Deacon wrote: > > > > Anyway, there are two possible ways of handling this. One is to avoid > > > changing the error code to -EBUSY when the device in question is a root > > > hub. Just let it go into a run

Re: BUG: sleeping function called from invalid context (do_force_sig_info)

2014-05-23 Thread Paul Gortmaker
On 14-05-22 07:09 PM, Stanislav Meduna wrote: > Hi, > > this is on a i.MX28 running a 3.12.19-rt30 > > [27284.008123] BUG: sleeping function called from invalid context at > /home/nxtdev/Kernels/linux-stable-rt/kernel/rtmutex.c:673 > [27284.008143] in_atomic(): 0, irqs_disabled(): 128, pid: 1335

[PATCH] Hexagon: remove checks for CONFIG_PAGE_SIZE_1MB

2014-05-23 Thread Paul Bolle
There are two checks for CONFIG_PAGE_SIZE_1MB in hexagon's code. But there is no Kconfig symbol PAGE_SIZE_1MB. Remove these unneeded checks and the code they hide. Signed-off-by: Paul Bolle --- Untested. Richard preferred this over the equally trivial patch to add an entry for PAGE_SIZE_1MB. a

Re: [PATCH v2 14/18] sparc: io: implement dummy relaxed accessor macros for writes

2014-05-23 Thread Will Deacon
On Thu, May 22, 2014 at 07:18:38PM +0100, Sam Ravnborg wrote: > On Thu, May 22, 2014 at 05:47:26PM +0100, Will Deacon wrote: > > write{b,w,l,q}_relaxed are implemented by some architectures in order to > > permit memory-mapped I/O accesses with weaker barrier semantics than the > > non-relaxed vari

Re: [PATCH 07/22] clk: sunxi: Fix PLL6 calculation on sun6i

2014-05-23 Thread Chen-Yu Tsai
Hi, On Fri, May 23, 2014 at 9:09 PM, Emilio López wrote: > Hi, > > El 23/05/14 04:51, Chen-Yu Tsai escribió: > >> The N factor for PLL6 counts from 1 to 32, as specified in the A23 >> manual, and shown in Allwinner's original code. > > > Are you sure about this? The A23 manual I'm looking at has

Re: [RFC] drm/nouveau: disable caching for VRAM BOs on ARM

2014-05-23 Thread Alexandre Courbot
On 05/23/2014 06:59 PM, Lucas Stach wrote: Am Freitag, den 23.05.2014, 18:43 +0900 schrieb Alexandre Courbot: On 05/23/2014 06:24 PM, Lucas Stach wrote: Am Freitag, den 23.05.2014, 16:10 +0900 schrieb Alexandre Courbot: On Mon, May 19, 2014 at 7:16 PM, Lucas Stach wrote: Am Montag, den 19.05

Re: [PATCH v4 1/2] arm64: adjust el0_sync so that a function can be called

2014-05-23 Thread Catalin Marinas
On Thu, May 22, 2014 at 11:35:20PM +0100, Larry Bassel wrote: > > On 05/22/2014 03:27 PM, Larry Bassel wrote: > > > To implement the context tracker properly on arm64, > > > a function call needs to be made after debugging and > > > interrupts are turned on, but before the lr is changed > > > to po

Re: [PATCH v3 2/3] ARM: dts: oma3-gta04: Add display support

2014-05-23 Thread Tony Lindgren
* Tomi Valkeinen [140523 01:21]: > On 08/05/14 23:16, Marek Belisko wrote: > > This patch add support for lcd display on gta04 board. Display control > > is connected to spi (used spi bitbang driver). > > > > Signed-off-by: Marek Belisko > > --- > > arch/arm/boot/dts/omap3-gta04.dts | 87 > > +

Re: [PATCH v6 2/3] CPU hotplug, stop-machine: Plug race-window that leads to "IPI-to-offline-CPU"

2014-05-23 Thread Srivatsa S. Bhat
On 05/23/2014 06:52 PM, Frederic Weisbecker wrote: > On Fri, May 23, 2014 at 03:42:20PM +0530, Srivatsa S. Bhat wrote: >> During CPU offline, stop-machine is used to take control over all the online >> CPUs (via the per-cpu stopper thread) and then run take_cpu_down() on the CPU >> that is to be ta

[PATCH 1/5] mfd: wm5110: Remove non-existant interrupts

2014-05-23 Thread Charles Keepax
The DCS_DAC_DONE and DCS_HP_DONE interrupts do not exist on the wm5110 version of the IP. This patch removes them from the regmap IRQ structure. Signed-off-by: Charles Keepax --- drivers/mfd/wm5110-tables.c |6 -- 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/drivers/mfd

[PATCH 5/5] mfd: arizona: Add missing handling for ISRC3 under/overclocked

2014-05-23 Thread Charles Keepax
Some parts have a third ISRC, this patch adds handling for the under and overclocked interrupts from this ISRC. Signed-off-by: Charles Keepax --- drivers/mfd/arizona-core.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/mfd/arizona-core.c b/drivers/mfd/arizon

Re: [PATCH v6 3/3] CPU hotplug, smp: Flush any pending IPI callbacks before CPU offline

2014-05-23 Thread Srivatsa S. Bhat
On 05/23/2014 06:57 PM, Frederic Weisbecker wrote: > On Fri, May 23, 2014 at 03:42:35PM +0530, Srivatsa S. Bhat wrote: >> During CPU offline, in the stop-machine loop, we use 2 separate stages to >> disable interrupts, to ensure that the CPU going offline doesn't get any new >> IPIs from the other

[PATCH 0/5] wm5110 Interrupt Updates

2014-05-23 Thread Charles Keepax
The newer versions of the wm5110 have made fairly substancial changes to the interrupts, adding in many new interrupts and moving some existing ones. These patches update the register redefinitions and regmap hookup for these. Full support is provided for both the old IP and the new. Thanks, Charl

[PATCH 3/5] mfd: arizona: Rename thermal shutdown interrupt

2014-05-23 Thread Charles Keepax
Newer versions of the IP introduce short circuit protection which will also shutdown the speaker. Rename the interrupt and associated register bits associated with thermal events to better fit the function and avoid conflict with future interrupt additions. Signed-off-by: Charles Keepax --- driv

[PATCH 2/5] mfd: wm5110: Add in the output done interrupts

2014-05-23 Thread Charles Keepax
wm5110 has interrupts to signal that an output has fully enabled. This patch adds in these interrupts although use is not made of them yet. Signed-off-by: Charles Keepax --- drivers/mfd/wm5110-tables.c | 18 + include/linux/mfd/arizona/core.h |8 ++- include/linux/mfd/ar

Re: [PATCH v2 16/18] x86: io: implement dummy relaxed accessor macros for writes

2014-05-23 Thread Will Deacon
Hi Peter, On Thu, May 22, 2014 at 06:15:27PM +0100, H. Peter Anvin wrote: > On 05/22/2014 09:47 AM, Will Deacon wrote: > > write{b,w,l,q}_relaxed are implemented by some architectures in order to > > permit memory-mapped I/O accesses with weaker barrier semantics than the > > non-relaxed variants.

From Sr. Ramiro De Emerico

2014-05-23 Thread Ramiro Emerico
My Name is Sr. Ramiro De Emerico I am from Portugal I have been diagnosed with cancer. It has defiled all forms of medical treatment, and right now I have only about a few months to live, according to medical experts. I have not particularly lived my life so well, as I never really cared for anyon

Re: [PATCH v4 2/2] arm64: enable context tracking

2014-05-23 Thread Catalin Marinas
On Fri, May 23, 2014 at 01:11:38AM +0100, Kevin Hilman wrote: > Christopher Covington writes: > > On 05/22/2014 03:27 PM, Larry Bassel wrote: > >> Make calls to ct_user_enter when the kernel is exited > >> and ct_user_exit when the kernel is entered (in el0_da, > >> el0_ia, el0_svc, el0_irq and al

Re: [RFC PATCH 00/16] OMAP: GPMC: Restructure OMAP GPMC driver (NAND) : DT binding change proposal

2014-05-23 Thread Tony Lindgren
* Roger Quadros [140523 01:17]: > On 05/22/2014 05:46 PM, Ezequiel Garcia wrote: > > On 22 May 01:51 PM, Javier Martinez Canillas wrote: > >> On Thu, May 22, 2014 at 10:12 AM, Roger Quadros wrote: > On 21 May 02:20 PM, Roger Quadros wrote: > While I agree that the GPMC driver is a bit m

<    1   2   3   4   5   6   7   8   >