Re: [PATCH] x86, MCE: Kill CPU_POST_DEAD

2014-05-22 Thread Srivatsa S. Bhat
On 05/23/2014 03:01 AM, Borislav Petkov wrote: > On Fri, May 23, 2014 at 02:43:31AM +0530, Srivatsa S. Bhat wrote: After you move the cmci_rediscover() call, it is now in a place where we are no longer ignoring frozen (i.e. the old placement did the rediscover even if the

Re: [PATCH] intel_rapl: Correct hotplug correction

2014-05-22 Thread Srivatsa S. Bhat
On 05/22/2014 06:02 PM, Peter Zijlstra wrote: > On Thu, May 22, 2014 at 05:24:33PM +0530, Srivatsa S. Bhat wrote: >> Yeah, its complicated and perhaps we can do much better than that. But I'll >> try to explain why there are so many different locks in the existing code. >> [...] > > So I think we

Re: [PATCH] x86, MCE: Kill CPU_POST_DEAD

2014-05-22 Thread Borislav Petkov
On Fri, May 23, 2014 at 02:43:31AM +0530, Srivatsa S. Bhat wrote: > >> After you move the cmci_rediscover() call, it is now in a place where we > >> are > >> no longer ignoring frozen (i.e. the old placement did the rediscover even > >> if the > >> CPU_TASKS_FROZEN bit was set - with the new plac

FWD:

2014-05-22 Thread paul-zimmerman
Hey! http://emkainsaat.com.tr/_redirect?ohaduwjgisuh20600214 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.

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

2014-05-22 Thread Sebastian Hesselbarth
Commit f8ec589b86f6 "mmc: sdhci-dove: allow GPIOs to be used for card detection on Dove" added a gpio based card detect interrupt handler that was hooked up into card_tasket. Commit 3560db8e247a "mmc: sdhci: push card_tasklet into threaded irq handler" now removed that very card_tasklet causin

Re: [PATCH] staging: rtl8188eu: os_dep: usb_intf.c: Fix to remove null pointer checks that could never happen

2014-05-22 Thread Josh Triplett
On Thu, May 22, 2014 at 09:58:02PM +0200, Rickard Strandqvist wrote: > Removal of null pointer checks that could never happen > > Signed-off-by: Rickard Strandqvist Reviewed-by: Josh Triplett > drivers/staging/rtl8188eu/os_dep/usb_intf.c | 110 > +-- > 1 file changed

Re: [PATCH] rcutorture: avoid format string leak to thead name

2014-05-22 Thread Josh Triplett
On Thu, May 22, 2014 at 11:51:04AM -0700, Kees Cook wrote: > Since the rcutorture thread creation interface does not include format > string arguments, make sure the name can never be accidentally processed > as a format string. > > Signed-off-by: Kees Cook Reviewed-by: Josh Triplett > kernel

Re: [PATCH] x86, MCE: Kill CPU_POST_DEAD

2014-05-22 Thread Srivatsa S. Bhat
On 05/23/2014 01:25 AM, Borislav Petkov wrote: > On Thu, May 22, 2014 at 03:50:21PM +, Luck, Tony wrote: So I think we can reduce it to just the one rwsem (with recursion) if we shoot CPU_POST_DEAD in the head. >>> >>> Here's the first bullet. Stressing my box here with Steve's hotplu

Re: [PATCH v2 1/6] wdt: sunxi: Move restart code to the watchdog driver

2014-05-22 Thread Guenter Roeck
On Thu, May 22, 2014 at 10:34:44PM +0200, Maxime Ripard wrote: > On Mon, May 19, 2014 at 05:04:22PM +0200, Maxime Ripard wrote: > > On Thu, May 15, 2014 at 11:11:23AM +0200, Maxime Ripard wrote: > > > On Wed, May 07, 2014 at 02:33:18PM -0700, Guenter Roeck wrote: > > > > On Tue, May 06, 2014 at 09:

Re: skbuff truesize incorrect.

2014-05-22 Thread David Miller
From: Eric Dumazet Date: Thu, 22 May 2014 14:03:21 -0700 > On Thu, 2014-05-22 at 13:58 -0700, Eric Dumazet wrote: > >> I would set rx_max (rx_urb_size) to SKB_MAX_HEAD(0) so that you do not >> use high order allocations. > > Correction, that would need SKB_MAX_HEAD(NET_SKB_PAD + NET_IP_ALIGN),

Re: [RFC PATCH 2/5] clk: Introduce 'clk_round_rate_nearest()'

2014-05-22 Thread Mike Turquette
Quoting Sören Brinkmann (2014-05-22 13:32:09) > On Thu, 2014-05-22 at 08:20PM +0200, Uwe Kleine-König wrote: > > Hello Sören, > > > > On Thu, May 22, 2014 at 11:03:00AM -0700, Sören Brinkmann wrote: > > > On Wed, 2014-05-21 at 01:33PM -0700, Mike Turquette wrote: > > > > Quoting Uwe Kleine-König (

Re: skbuff truesize incorrect.

2014-05-22 Thread Eric Dumazet
On Thu, 2014-05-22 at 13:58 -0700, Eric Dumazet wrote: > I would set rx_max (rx_urb_size) to SKB_MAX_HEAD(0) so that you do not > use high order allocations. Correction, that would need SKB_MAX_HEAD(NET_SKB_PAD + NET_IP_ALIGN), because drivers/net/usb/usbnet.c calls __netdev_alloc_skb_ip_align().

[PATCH 4/5] net: ks8851: Add optional vdd_io regulator and reset gpio

2014-05-22 Thread Stephen Boyd
Allow the ks8851 driver to enable an optional 1.8V vdd_io regulator and assert the reset pin to the phy if a reset gpio is present in device tree. Cc: Nishanth Menon Signed-off-by: Stephen Boyd --- drivers/net/ethernet/micrel/ks8851.c | 54 +++- 1 file changed, 5

[PATCH 2/5] devicetree: bindings: Properly document micrel ks8851 SPI chips

2014-05-22 Thread Stephen Boyd
The ks8851 SPI ethernet wasn't documented, but we documented the optional regulator supply for it under the mll based ethernet chip. Furthermore, that compatible string needed another 'l'. Fix all of this and document the newly added optional vdd-io and reset-gpios properties. Cc: Nishanth Menon

[PATCH 5/5] net: ks8851: Add of match table

2014-05-22 Thread Stephen Boyd
Users are currently just providing "ks8851" as the compatible for this driver in device tree. Add a compatible string that provides the vendor name along with the driver name to be more explicit. Signed-off-by: Stephen Boyd --- drivers/net/ethernet/micrel/ks8851.c | 6 ++ 1 file changed, 6 i

[PATCH 1/5] devicetree: bindings: Document micrel vendor prefix

2014-05-22 Thread Stephen Boyd
There's one existing use of 'micrel' in the documentation so use 'micrel' instead of the company's ticker symbol 'mcrl'. Cc: Signed-off-by: Stephen Boyd --- This is mostly here as the first patch to make checkpatch quiet. I expect DT maintainers to pick this one up. Documentation/devicetree/b

[PATCH 3/5] net: ks8851: Use devm_regulator_get_optional()

2014-05-22 Thread Stephen Boyd
This simplifies error paths and removes the need to regulator_put(). Cc: Nishanth Menon Signed-off-by: Stephen Boyd --- drivers/net/ethernet/micrel/ks8851.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/net/ethernet/micrel/ks8851.c b/drivers/net/ethern

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

2014-05-22 Thread Borislav Petkov
On Thu, May 22, 2014 at 02:20:04PM -0600, Bjorn Helgaas wrote: > Even if MMCONFIG does work fine on everything from Fam10h onwards, we > still depend on the BIOS to provide a correct MCFG table. It is very hazy memory of mine that starting with F10h, we had an MCFG table always present but I don't

[PATCH 0/5] ks8851 DT updates

2014-05-22 Thread Stephen Boyd
This set of patches properly documents the micrel ks8851 spi ethernet controller, converts to devm_regulator_get_optional() to make error paths slightly simpler, and finally adds supports for another optional regulator and a reset gpio. Stephen Boyd (5): devicetree: bindings: Document micrel ven

Re: [PATCH v2 1/6] wdt: sunxi: Move restart code to the watchdog driver

2014-05-22 Thread Maxime Ripard
On Thu, May 22, 2014 at 09:39:43PM +0100, One Thousand Gnomes wrote: > On Thu, 22 May 2014 22:34:44 +0200 > Maxime Ripard wrote: > > > On Mon, May 19, 2014 at 05:04:22PM +0200, Maxime Ripard wrote: > > > On Thu, May 15, 2014 at 11:11:23AM +0200, Maxime Ripard wrote: > > > > On Wed, May 07, 2014 a

Re: skbuff truesize incorrect.

2014-05-22 Thread David Miller
From: Jim Baxter Date: Thu, 22 May 2014 21:21:55 +0100 > If there are multiple clones for an skb all pointing at the same data, > will that distort the memory used when they all have the same truesize? What is distorted about it? Each clone references exactly that much backing memory. -- To uns

Re: [PATCH] e1000: Use time_after() for time comparison

2014-05-22 Thread David Miller
From: Manuel Schölling Date: Thu, 22 May 2014 22:21:30 +0200 > To be future-proof and for better readability the time comparisons are > modified > to use time_after() instead of plain, error-prone math. > > Signed-off-by: Manuel Schölling I'll let Jeff pick this up in his tree. -- To unsubscr

Re: skbuff truesize incorrect.

2014-05-22 Thread Eric Dumazet
On Thu, 2014-05-22 at 20:07 +0100, Jim Baxter wrote: > > I have been investigating a network issue with bursts of network traffic > over USB CDC-NCM, the issue is that the kernel is dropping packets > because sk_rcvqueues_full() returns true due to skb2->truesize is always > 32960 instead of SKB_

Re: [PATCH] staging: rtl8188eu: os_dep: usb_intf.c: Fix to remove null pointer checks that could never happen

2014-05-22 Thread Dan Carpenter
Reviewed-by: Dan Carpenter regards, dan carpenter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH] acpi: Use time_before() for time comparison

2014-05-22 Thread Manuel Schölling
To be future-proof and for better readability the time comparisons are modified to use time_before() instead of plain, error-prone math. Signed-off-by: Manuel Schölling --- drivers/acpi/acpi_pad.c |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/acpi/acpi_pad

[PATCH] mfd: db8500-prcmu: remove check for CONFIG_DBX500_PRCMU_DEBUG

2014-05-22 Thread Paul Bolle
A check for CONFIG_DBX500_PRCMU_DEBUG was added in v3.6. But there's no Kconfig symbol DBX500_PRCMU_DEBUG. So remove this check. Signed-off-by: Paul Bolle --- Untested. Note that db8500_prcmu_debug_dump() is nowhere to be found in the tree. This check has been in the tree for less than two years

Re: [PATCH] clk: impd1: add pclk clocks

2014-05-22 Thread Mike Turquette
Quoting Linus Walleij (2014-04-15 01:29:45) > The IM-PD1 PrimeCells all have pclk assignments though this clock > cannot be controlled, and we need to provide this as a dummy > clock for the PL061 GPIO driver to probe, so let's assign it to > all the cells on the board. > > Cc: Mike Turquette > S

Re: [PATCH] ARM: imx: introduce function imx_free_mx3_camera

2014-05-22 Thread Dan Carpenter
On Thu, May 22, 2014 at 07:51:19PM +0200, Emil Goode wrote: > We forgot to free pdev->dev.dma_mask on error after > having called the imx_alloc_mx3_camera function. > This patch introduces the imx_free_mx3_camera function > that adds the missing kfree call and is practical for > future usage with i

[PATCH] fs: ocfs2: move_extents.c: Fix for possible null pointer dereference

2014-05-22 Thread Rickard Strandqvist
There is otherwise a risk of a possible null pointer dereference. Was largely found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- fs/ocfs2/move_extents.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/ocfs2/move_ext

[PATCH] fs: ntfs: file.c: Fix for possible null pointer dereference

2014-05-22 Thread Rickard Strandqvist
There is otherwise a risk of a possible null pointer dereference. Was largely found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- fs/ntfs/file.c |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fs/ntfs/file.c b/fs/nt

[PATCH] fs: btrfs: volumes.c: Fix for possible null pointer dereference

2014-05-22 Thread Rickard Strandqvist
There is otherwise a risk of a possible null pointer dereference. Was largely found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- fs/btrfs/volumes.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/btrfs/volumes.c b

Re: [PATCH v4 1/6] usb: musb: core: Handle Babble condition only in HOST mode

2014-05-22 Thread Bin Liu
Hi George, On Mon, May 19, 2014 at 11:32 PM, George Cherian wrote: > Hi Bin, > > On 5/19/2014 9:24 PM, Bin Liu wrote: >> >> Hi, >> >> On Mon, May 19, 2014 at 8:39 AM, George Cherian >> wrote: >>> >>> BABBLE and RESET share the same interrupt. The interrupt >>> is considered to be RESET if MUSB i

[PATCH] md: Use time_in_range()

2014-05-22 Thread Manuel Schölling
To be future-proof and for better readability the time comparisons are modified to use time_in_range() instead of plain, error-prone math. Signed-off-by: Manuel Schölling --- drivers/md/dm-cache-target.c |5 +++-- drivers/md/dm-log-userspace-base.c |4 ++-- drivers/md/dm-thin.c

Re: [PATCH v3] openrisc: irq: use irqchip framework

2014-05-22 Thread Geert Uytterhoeven
On Thu, May 22, 2014 at 10:11 PM, Stefan Kristiansson wrote: > --- /dev/null > +++ > b/Documentation/devicetree/bindings/interrupt-controller/opencores,or1k-pic.txt > @@ -0,0 +1,23 @@ > +OpenRISC 1000 Programmable Interrupt Controller > + > +Required properties: > + > +- compatible : should be "o

Re: [PATCH v2 1/6] wdt: sunxi: Move restart code to the watchdog driver

2014-05-22 Thread One Thousand Gnomes
On Thu, 22 May 2014 22:34:44 +0200 Maxime Ripard wrote: > On Mon, May 19, 2014 at 05:04:22PM +0200, Maxime Ripard wrote: > > On Thu, May 15, 2014 at 11:11:23AM +0200, Maxime Ripard wrote: > > > On Wed, May 07, 2014 at 02:33:18PM -0700, Guenter Roeck wrote: > > > > On Tue, May 06, 2014 at 09:44:19

Re: [Qemu-devel] [PATCH v1 RFC 6/6] KVM: s390: add cpu model support

2014-05-22 Thread Christian Borntraeger
On 22/05/14 10:53, Paolo Bonzini wrote: > Il 22/05/2014 10:23, Michael Mueller ha scritto: >> On Wed, 21 May 2014 15:22:35 +0200 >> Alexander Graf wrote: >> >> I have seen the slides from Eduardo which he presented during this years >> DevConf in Brno and made my comments according the s390x imple

[PATCH] sbus: Introduce the use of the managed version of kzalloc

2014-05-22 Thread Himangi Saraogi
This patch moves data allocated using kzalloc to managed data allocated using devm_kzalloc and cleans now unnecessary kfrees in probe and remove functions. The header file is added to make the devm function explicitly available. Also, unnecessary assignment statements and labels are removed. The f

Re: [PATCH v2 1/6] wdt: sunxi: Move restart code to the watchdog driver

2014-05-22 Thread Maxime Ripard
On Mon, May 19, 2014 at 05:04:22PM +0200, Maxime Ripard wrote: > On Thu, May 15, 2014 at 11:11:23AM +0200, Maxime Ripard wrote: > > On Wed, May 07, 2014 at 02:33:18PM -0700, Guenter Roeck wrote: > > > On Tue, May 06, 2014 at 09:44:19PM -0500, Maxime Ripard wrote: > > > > Most of the watchdog code i

Re: [RFC PATCH 2/5] clk: Introduce 'clk_round_rate_nearest()'

2014-05-22 Thread Sören Brinkmann
On Thu, 2014-05-22 at 08:20PM +0200, Uwe Kleine-König wrote: > Hello Sören, > > On Thu, May 22, 2014 at 11:03:00AM -0700, Sören Brinkmann wrote: > > On Wed, 2014-05-21 at 01:33PM -0700, Mike Turquette wrote: > > > Quoting Uwe Kleine-König (2014-05-21 11:23:08) > > > > Hello Sören, > > > > > > > >

Re: skbuff truesize incorrect.

2014-05-22 Thread Jim Baxter
On 22/05/14 20:21, David Miller wrote: > From: Jim Baxter > Date: Thu, 22 May 2014 20:07:41 +0100 > >> My questions are: >> >> 1) Which buffer size does truesize represent, is it the total buffer or >> just the data related to the relevant skb? >> >> 2) If truesize is for the skb it is contained

Re: skbuff truesize incorrect.

2014-05-22 Thread Eric Dumazet
On Thu, 2014-05-22 at 21:21 +0100, Jim Baxter wrote: > OK, so it is the value of the memory that has been allocated for the SKB. > If there are multiple clones for an skb all pointing at the same data, > will that distort the memory used when they all have the same truesize? Its always better to

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

2014-05-22 Thread Christopher Covington
Hi Larry, 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 all of the "error" paths). > > These macros expand to function calls which will only work > proper

[PATCH] staging: rtl8192u: r8192U_core.c: Fix to remove null pointer checks that could never happen

2014-05-22 Thread Rickard Strandqvist
Removal of null pointer checks that could never happen Signed-off-by: Rickard Strandqvist --- drivers/staging/rtl8192u/r8192U_core.c |3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c index 1bb6143..b709750 10

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

2014-05-22 Thread Christopher Covington
Hi Larry, 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 point to ret_to_user(). If the function call > is made after the lr is ch

Re: skbuff truesize incorrect.

2014-05-22 Thread Jim Baxter
On 22/05/14 20:59, Eric Dumazet wrote: > On Thu, 2014-05-22 at 20:39 +0100, Jim Baxter wrote: > >> I now think that the correct solution here is to create a new smaller >> skb and copy the data from the sub packets into it. > > For low speed devices, this is indeed the best way. > > (this is cal

[PATCH] e1000: Use time_after() for time comparison

2014-05-22 Thread Manuel Schölling
To be future-proof and for better readability the time comparisons are modified to use time_after() instead of plain, error-prone math. Signed-off-by: Manuel Schölling --- drivers/net/ethernet/intel/e1000/e1000_ethtool.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dr

Re: [PATCH] Documentation: incorrect formula to calculate CommitLimit value

2014-05-22 Thread Randy Dunlap
On 05/22/2014 05:04 AM, Petr Oros wrote: > The formula to calculate "CommitLimit" value mentioned in kernel > documentation is incorrect. > Right formula is: CommitLimit = ([total RAM pages] - [total huge TLB pages]) > * overcommit_ratio / 100 + [total swap pages] > > Signed-off-by: Petr Oros

Re: randconfig build error with next-20140522, in drivers/net/ethernet/cisco/enic/enic_main.c

2014-05-22 Thread Govindarajulu Varadarajan
On Thu, 22 May 2014, Jim Davis wrote: Building with the attached random configuration file, drivers/built-in.o: In function `enic_poll_msix': enic_main.c:(.text+0x48710a): undefined reference to `__udivdi3' make: *** [vmlinux] Error 1 Looks like 64 bit divide issue. Will look into it. Tha

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

2014-05-22 Thread Bjorn Helgaas
On Thu, May 22, 2014 at 1:17 PM, Borislav Petkov wrote: > On Thu, May 22, 2014 at 11:56:03AM -0600, Bjorn Helgaas wrote: >> I chose Fam16h (0x16) because it looks like that's the newest stuff >> that's in the field. I suspect things would probably work if we >> changed this patch to leave ECS disa

[PATCH] sound: soc: samsung: dma.c: Fix to remove null pointer checks that could never happen

2014-05-22 Thread Rickard Strandqvist
Removal of null pointer checks that could never happen Signed-off-by: Rickard Strandqvist --- sound/soc/samsung/dma.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/samsung/dma.c b/sound/soc/samsung/dma.c index dc09b71..0f17ae0 100644 --- a/sound/soc/samsung/d

Re: [PATCH v4 0/2] context tracker support for arm64

2014-05-22 Thread Kevin Hilman
Larry Bassel writes: > Implement and enable context tracking for arm64 (which is > a prerequisite for FULL_NOHZ support). This patchset > builds upon earlier work by Kevin Hilman and is based on > Will Deacon's tree. Tested-by: Kevin Hilman Test this with NO_HZ_FULL on v3.15-rc5 merged with th

Re: [PATCH] ARM: imx: add missing kfree call in error paths

2014-05-22 Thread Dan Carpenter
On Thu, May 22, 2014 at 04:44:46PM +0200, Emil Goode wrote: > Hello Dan, > > On Thu, May 22, 2014 at 04:50:16PM +0300, Dan Carpenter wrote: > > On Thu, May 22, 2014 at 03:14:42PM +0200, Emil Goode wrote: > > > We forgot to free pdev->dev.dma_mask as it is not freed > > > by platform_device_put().

[PATCH v3] openrisc: irq: use irqchip framework

2014-05-22 Thread Stefan Kristiansson
In addition to consolidating the or1k-pic with other interrupt controllers, this makes OpenRISC less tied to its on-cpu interrupt controller. All or1k-pic specific parts are moved out of irq.c and into drivers/irqchip/irq-or1k-pic.c In that transition, the funtionality have been divided into thre

[PATCH] ioat: Use time_before()

2014-05-22 Thread Manuel Schölling
To be future-proof and for better readability the time comparisons are modified to use time_before() instead of plain, error-prone math. Signed-off-by: Manuel Schölling --- drivers/dma/ioat/dma_v2.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/dma/ioat/dma_v2.

Re: [PATCH] [SCSI] mptfusion: remove check for CONFIG_FUSION_MAX_FC_SGE

2014-05-22 Thread Paul Bolle
On Thu, 2014-05-22 at 19:58 +, Address Change LSI wrote: > The person you are trying to email is no longer receiving email @lsi.com. > Please try sending to them at > Avago Technologies using firstname.lastn...@avagotech.com. > > Please Note: Your original message has been forwarded to this r

Re: skbuff truesize incorrect.

2014-05-22 Thread Eric Dumazet
On Thu, 2014-05-22 at 20:39 +0100, Jim Baxter wrote: > I now think that the correct solution here is to create a new smaller > skb and copy the data from the sub packets into it. For low speed devices, this is indeed the best way. (this is called copybreak in some nic drivers) -- To unsubscri

Re: [ORLinux] [PATCH v2] openrisc: irq: use irqchip framework

2014-05-22 Thread Stefan Kristiansson
On Thu, May 22, 2014 at 09:48:00AM +0200, Geert Uytterhoeven wrote: > On Thu, May 22, 2014 at 9:32 AM, Jonas Bonn wrote: > > On 05/21/2014 09:50 PM, Stefan Kristiansson wrote: > >> I see two paths to go to get there though, and here's where I'd like some > >> input. > >> 1) Define the three diffe

[PATCH] [SCSI] mptfusion: remove check for CONFIG_FUSION_MAX_FC_SGE

2014-05-22 Thread Paul Bolle
A check for CONFIG_FUSION_MAX_FC_SGE was added in v2.6.31. But the related Kconfig symbol was never added to the tree. Remove this check, as it always evaluates to false. Signed-off-by: Paul Bolle --- Compile tested only. drivers/message/fusion/mptbase.h | 10 -- 1 file changed, 10 dele

[PATCH] staging: rtl8188eu: os_dep: usb_intf.c: Fix to remove null pointer checks that could never happen

2014-05-22 Thread Rickard Strandqvist
Removal of null pointer checks that could never happen Signed-off-by: Rickard Strandqvist --- drivers/staging/rtl8188eu/os_dep/usb_intf.c | 110 +-- 1 file changed, 52 insertions(+), 58 deletions(-) diff --git a/drivers/staging/rtl8188eu/os_dep/usb_intf.c b/drivers/sta

Re: [PATCH] rcutorture: avoid format string leak to thead name

2014-05-22 Thread Paul E. McKenney
On Thu, May 22, 2014 at 11:51:04AM -0700, Kees Cook wrote: > Since the rcutorture thread creation interface does not include format > string arguments, make sure the name can never be accidentally processed > as a format string. > > Signed-off-by: Kees Cook Queued for 3.17, thank you, Kees!

Re: [PATCH] x86, MCE: Kill CPU_POST_DEAD

2014-05-22 Thread Borislav Petkov
On Thu, May 22, 2014 at 03:50:21PM +, Luck, Tony wrote: > >> So I think we can reduce it to just the one rwsem (with recursion) if we > >> shoot CPU_POST_DEAD in the head. > > > > Here's the first bullet. Stressing my box here with Steve's hotplug > > script seems to work fine. > > > > Tony, an

Re: [PATCH] mm: filemap: Avoid unnecessary barries and waitqueue lookups in unlock_page fastpath v5

2014-05-22 Thread Mel Gorman
On Thu, May 22, 2014 at 10:47:22AM -0700, Andrew Morton wrote: > On Thu, 22 May 2014 09:46:43 +0100 Mel Gorman wrote: > > > > > If I'm still on track here, what happens if we switch to wake-all so we > > > > can avoid the dangling flag? I doubt if there are many collisions on > > > > that hash t

Re: [PATCH] nfsd: Remove assignments inside conditions

2014-05-22 Thread J. Bruce Fields
On Thu, May 22, 2014 at 04:32:30PM +0200, Benoit Taine wrote: > Assignments should not happen inside an if conditional, but in the line > before. This issue was reported by checkpatch. OK, applying for 3.16. --b. > > The semantic patch that makes this change is as follows > (http://coccinelle.l

Re: [PATCH] xilinx: Use time_before_eq()

2014-05-22 Thread David Miller
From: Manuel Schölling Date: Thu, 22 May 2014 21:10:28 +0200 > To be future-proof and for better readability the time comparisons are > modified > to use time_before_eq() instead of plain, error-prone math. > > Signed-off-by: Manuel Schölling Applied. -- To unsubscribe from this list: send th

Re: [PATCH v2 2/2] mISDN: Use mod_timer()

2014-05-22 Thread David Miller
From: Manuel Schölling Date: Wed, 21 May 2014 22:08:48 +0200 > The code for resetting the timer can be simplified if mod_timer() is used > instead of del_timer() followed by add_timer(). > > Signed-off-by: Manuel Schölling Applied. -- To unsubscribe from this list: send the line "unsubscribe l

Re: [PATCH] micrel: Use time_before_eq()

2014-05-22 Thread David Miller
From: Manuel Schölling Date: Thu, 22 May 2014 19:52:45 +0200 > To be future-proof and for better readability the time comparisons are > modified > to use time_before_eq() instead of plain, error-prone math. > > Signed-off-by: Manuel Schölling Applied. -- To unsubscribe from this list: send th

Re: [PATCH] qlogic: Use time_before()

2014-05-22 Thread David Miller
From: Manuel Schölling Date: Wed, 21 May 2014 19:24:03 +0200 > To be future-proof and for better readability the time comparisons are > modified > to use time_before() instead of plain, error-prone math. > > Signed-off-by: Manuel Schölling Applied. -- To unsubscribe from this list: send the l

Re: [PATCH v2 1/2] mISDN: Use time_before()

2014-05-22 Thread David Miller
From: Manuel Schölling Date: Wed, 21 May 2014 22:08:47 +0200 > To be future-proof and for better readability the time comparisons are > modified > to use time_before() instead of plain, error-prone math. > > Signed-off-by: Manuel Schölling Applied. -- To unsubscribe from this list: send the l

Re: [PATCH] dt/sparc: Introduce the use of the managed version of kzalloc

2014-05-22 Thread Dmitry Torokhov
Hi Himangi, On Fri, May 23, 2014 at 01:04:30AM +0530, Himangi Saraogi wrote: > This patch moves data allocated using kzalloc to managed data allocated > using devm_kzalloc and cleans now unnecessary kfrees in probe and remove > functions. Also the unnecessary labels are done away with. Please no

[PATCH] [media] dm644x_ccdc: remove check for CONFIG_DM644X_VIDEO_PORT_ENABLE

2014-05-22 Thread Paul Bolle
A check for CONFIG_DM644X_VIDEO_PORT_ENABLE was added in v2.6.32. The related Kconfig symbol was never added so this check has always evaluated to false. Remove that check. Signed-off-by: Paul Bolle --- Untested. Related, trivial, cleanup: make ccdc_enable_vport() a oneliner. drivers/media/pla

Re: Re: [PATCH] sched/rt: don't try to balance rt_runtime when it is futile

2014-05-22 Thread Paul Gortmaker
On 14-05-19 08:40 AM, Peter Zijlstra wrote: > On Wed, May 14, 2014 at 11:08:35AM -0400, Paul Gortmaker wrote: >> As of the old commit ac086bc22997a2be24fc40fc8d46522fe7e03d11 >> ("sched: rt-group: smp balancing") the concept of borrowing per >> cpu rt_runtime from one core to another was introduced

Re: skbuff truesize incorrect.

2014-05-22 Thread Jim Baxter
On 22/05/14 20:25, Vlad Yasevich wrote: > On 05/22/2014 03:07 PM, Jim Baxter wrote: >> >> skb2 = skb_clone(skb, GFP_ATOMIC); >> if (skb2 == NULL) >> goto err; >> >> if (!skb_pull(skb2, index)) { >> ret = -EOVERFLOW; >> goto err; >> } > > This assumes that yo

Re: bridge: multicast snooping patches / exports

2014-05-22 Thread David Miller
From: Linus Lüssing Date: Wed, 21 May 2014 10:58:58 +0200 > These two patches are exporting functionality needed to marry the bridge > multicast snooping with the batman-adv multicast optimizations recently > added for the 3.15 kernel, allowing to use these optimzations in common > setups having

[PATCH] dt/sparc: Introduce the use of the managed version of kzalloc

2014-05-22 Thread Himangi Saraogi
This patch moves data allocated using kzalloc to managed data allocated using devm_kzalloc and cleans now unnecessary kfrees in probe and remove functions. Also the unnecessary labels are done away with. The following Coccinelle semantic patch was used for making the change: @platform@ identifier

Re: [PATCH linux-next] net/dccp/timer.c: use 'u64' instead of 's64' to avoid compiler's warning

2014-05-22 Thread David Miller
From: Chen Gang Date: Wed, 21 May 2014 08:19:34 +0800 > 'dccp_timestamp_seed' is initialized once by ktime_get_real() in > dccp_timestamping_init(). It is always less than ktime_get_real() > in dccp_timestamp(). > > Then, ktime_us_delta() in dccp_timestamp() will always return positive > number.

[PATCH v4 0/2] context tracker support for arm64

2014-05-22 Thread Larry Bassel
Implement and enable context tracking for arm64 (which is a prerequisite for FULL_NOHZ support). This patchset builds upon earlier work by Kevin Hilman and is based on Will Deacon's tree. Changes v3 to v4: * Rename parameter of ct_user_exit from save to restore * Rebased patch to Will Deacon's tr

Re: [PATCH net-next] genirq: Eliminate explicit dependency between IRQ affinity notifiers and CONFIG_SMP

2014-05-22 Thread David Miller
From: Amir Vadai Date: Tue, 20 May 2014 17:57:00 +0300 > From: Eyal Perry > > Instead of requiring each consumer of the IRQ affinity notifier to have > themselves be explicitly dependent on CONFIG_SMP, make the definition of > struct irq_affinity_notify to exist independently of that config opt

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

2014-05-22 Thread Larry Bassel
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 all of the "error" paths). These macros expand to function calls which will only work properly if el0_sync and related code has been rearranged (in a previous

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

2014-05-22 Thread Larry Bassel
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 point to ret_to_user(). If the function call is made after the lr is changed the function will not return to the correct place. For sim

Re: [PATCH RFC 3/3] slub: reparent memcg caches' slabs on memcg offline

2014-05-22 Thread Christoph Lameter
On Thu, 22 May 2014, Vladimir Davydov wrote: > On Wed, May 21, 2014 at 07:13:21PM -0500, Christoph Lameter wrote: > > On Wed, 21 May 2014, Vladimir Davydov wrote: > > > > > Do I understand you correctly that the following change looks OK to you? > > > > Almost. Preemption needs to be enabled befor

Re: skbuff truesize incorrect.

2014-05-22 Thread Vlad Yasevich
On 05/22/2014 03:07 PM, Jim Baxter wrote: > Hi, I was hoping you can help me with some questions. > > I have been investigating a network issue with bursts of network traffic > over USB CDC-NCM, the issue is that the kernel is dropping packets > because sk_rcvqueues_full() returns true due to skb2

Re: skbuff truesize incorrect.

2014-05-22 Thread David Miller
From: Jim Baxter Date: Thu, 22 May 2014 20:07:41 +0100 > My questions are: > > 1) Which buffer size does truesize represent, is it the total buffer or > just the data related to the relevant skb? > > 2) If truesize is for the skb it is contained within should it be > updated during the call to

Re: [PATCH 3/4] clk: samsung: Add driver to control CLKOUT line on Exynos SoCs

2014-05-22 Thread Mark Brown
On Thu, May 22, 2014 at 02:01:24PM +0200, Tomasz Figa wrote: > On 22.05.2014 13:44, Tushar Behera wrote: > > I would be happy to get it done that way. I can see a patch from > > Sylwester regarding this, but there hasn't been a conclusion as of > > yet. > > https://lkml.org/lkml/2014/4/9/173 > H

Re: [PATCH net-next v2 0/9] net: of_phy_connect_fixed_link removal

2014-05-22 Thread David Miller
From: Florian Fainelli Date: Thu, 22 May 2014 09:47:42 -0700 > This patch set removes of_phy_connect_fixed_link() from the tree now that > we have a better solution for dealing with fixed PHY (emulated PHY) devices > for drivers that require them. > > First two patches update the 'fixed-link' De

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

2014-05-22 Thread Borislav Petkov
On Thu, May 22, 2014 at 11:56:03AM -0600, Bjorn Helgaas wrote: > I chose Fam16h (0x16) because it looks like that's the newest stuff > that's in the field. I suspect things would probably work if we > changed this patch to leave ECS disabled on some Fam16h, Fam15h, etc., > but that would change beh

[PATCH] xilinx: Use time_before_eq()

2014-05-22 Thread Manuel Schölling
To be future-proof and for better readability the time comparisons are modified to use time_before_eq() instead of plain, error-prone math. Signed-off-by: Manuel Schölling --- drivers/net/ethernet/xilinx/ll_temac_main.c |2 +- drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c |2 +-

skbuff truesize incorrect.

2014-05-22 Thread Jim Baxter
Hi, I was hoping you can help me with some questions. I have been investigating a network issue with bursts of network traffic over USB CDC-NCM, the issue is that the kernel is dropping packets because sk_rcvqueues_full() returns true due to skb2->truesize is always 32960 instead of SKB_TRUESIZE(s

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

2014-05-22 Thread Eduardo Valentin
Hello Javi, On Fri, May 16, 2014 at 12:16:08PM +0100, Javi Merino wrote: > Document struct struct thermal_zone_device and struct thermal_governor > fields and their use by the thermal framework code. > > Cc: Zhang Rui > Cc: Eduardo Valentin > Signed-off-by: Javi Merino > > --- > > Hi linux-

[PATCH] mtd: Introduce the use of the managed version of kzalloc

2014-05-22 Thread Himangi Saraogi
This patch moves data allocated using kzalloc to managed data allocated using devm_kzalloc and cleans now unnecessary kfrees in probe and remove functions. Also, the now unnecessary label out_err_hw_init is done away with and the label out_err_kzalloc is renamed to out_err. The following Coccinell

Re: [PATCH] ARM: imx: introduce function imx_free_mx3_camera

2014-05-22 Thread Emil Goode
Hello Uwe, On Thu, May 22, 2014 at 08:10:24PM +0200, Uwe Kleine-König wrote: > Hello Emil, > > On Thu, May 22, 2014 at 07:51:19PM +0200, Emil Goode wrote: > > We forgot to free pdev->dev.dma_mask on error after > > having called the imx_alloc_mx3_camera function. > > This patch introduces the imx

[PATCH] staging/rtl8821ae: avoid format string leak to thread name

2014-05-22 Thread Kees Cook
This makes sure the cfg->name can never accidentally be processed as a format string in the worker thread name. Signed-off-by: Kees Cook --- drivers/staging/rtl8821ae/base.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/rtl8821ae/base.c b/drivers/stagin

[PATCH] rcutorture: avoid format string leak to thead name

2014-05-22 Thread Kees Cook
Since the rcutorture thread creation interface does not include format string arguments, make sure the name can never be accidentally processed as a format string. Signed-off-by: Kees Cook --- kernel/torture.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/torture.

Re: [PATCH 1/1] drivers/scsi/tmscsim.c: replace shift loop by ilog2

2014-05-22 Thread Fabian Frederick
On Wed, 21 May 2014 20:29:39 -0700 Guenter Roeck wrote: > On 05/21/2014 06:03 PM, Joe Perches wrote: > > On Wed, 2014-05-21 at 17:28 -0700, Guenter Roeck wrote: > >> On Tue, May 20, 2014 at 10:06:42AM -0700, Joe Perches wrote: > >>> On Tue, 2014-05-20 at 18:48 +0200, Fabian Frederick wrote: > >>>

[PATCH] rsi: avoid format string leak to thread name

2014-05-22 Thread Kees Cook
Since the rsi_create_kthread interface does not include any format string arguments, make sure that the resulting thread name can never accidentally process the name as a format string. Signed-off-by: Kees Cook --- drivers/net/wireless/rsi/rsi_common.h |2 +- 1 file changed, 1 insertion(+),

RE: [PATCH] DWC2: intializes the spin_lock earlier in the probe

2014-05-22 Thread Paul Zimmerman
> From: Jean-Jacques Hiblot [mailto:jjhib...@traphandler.com] > Sent: Thursday, May 22, 2014 5:10 AM > > The spinlock hsotg->lock is intialized at the end of the probe. However it > may be used from within dwc2_hcd_init(). This patch moves the > initialization before the call to dwc2_hcd_init(). T

Re: [PATCH 09/19] mm: page_alloc: Use word-based accesses for get/set pageblock bitmaps

2014-05-22 Thread Vlastimil Babka
On 22.5.2014 20:23, Andrew Morton wrote: On Thu, 22 May 2014 11:24:23 +0200 Vlastimil Babka wrote: In a test running dd onto tmpfs the overhead of the pageblock-related functions went from 1.27% in profiles to 0.5%. Signed-off-by: Mel Gorman Acked-by: Vlastimil Babka Hi, I've tested if thi

[PATCH] ASoC: Intel: avoid format string leak to thread name

2014-05-22 Thread Kees Cook
This makes sure a format string can never get processed into the worker thread name from the device name. Signed-off-by: Kees Cook --- sound/soc/intel/sst-baytrail-ipc.c |2 +- sound/soc/intel/sst-haswell-ipc.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/

Re: [PATCH] ARM: remove ARM710 specific assembler code

2014-05-22 Thread Tony Lindgren
* Tony Lindgren [140522 11:41]: > * Arnd Bergmann [140520 13:10]: > > On Tuesday 20 May 2014 09:05:13 Tony Lindgren wrote: > > > * Arnd Bergmann [140519 04:27]: > > > > On Saturday 17 May 2014 10:56:02 Catalin Marinas wrote: > > > > > > > > For the case of ARM710T, I think the last remaining us

Re: [PATCH] ARM: remove ARM710 specific assembler code

2014-05-22 Thread Tony Lindgren
* Arnd Bergmann [140520 13:10]: > On Tuesday 20 May 2014 09:05:13 Tony Lindgren wrote: > > * Arnd Bergmann [140519 04:27]: > > > On Saturday 17 May 2014 10:56:02 Catalin Marinas wrote: > > > > > > For the case of ARM710T, I think the last remaining user that can be > > > configured is mach-integ

[PATCH 1/1 linux-next] FS/HPFS: increase pr_warn level

2014-05-22 Thread Fabian Frederick
This patch applies a suggestion by Mikulas Patocka asking to increase all pr_warn without commented ones to pr_err Cc: Mikulas Patocka Cc: Andrew Morton Signed-off-by: Fabian Frederick --- fs/hpfs/buffer.c | 12 ++-- fs/hpfs/dir.c| 2 +- fs/hpfs/dnode.c | 24 -

<    1   2   3   4   5   6   7   8   >