Re: [PATCH 10/10] PCI, sparc: clip firmware assigned resource under parent bridge's

2015-01-12 Thread Kjetil Oftedal
Hi, Am I missing something or is this just code to get the the resource subsystem to accept the bus resources, not caring if the resources are actually usable? PCI BARs usually have a given size for a reason? - Kjetil Oftedal On 12/01/2015, Yinghai Lu wrote: > Some bios put range that is not

Re: [PATCH -mm 2/2] mm: vmscan: init reclaim_state in do_try_to_free_pages

2015-01-12 Thread Johannes Weiner
On Mon, Jan 12, 2015 at 12:30:38PM +0300, Vladimir Davydov wrote: > All users of do_try_to_free_pages() want to have current->reclaim_state > set in order to account reclaimed slab pages. So instead of duplicating > the reclaim_state initialization code in each call site, let's do it > directly in

Re: [3.18 regression]: machine hangs on s2ram

2015-01-12 Thread Rolf Eike Beer
> Since I upgraded to 3.18 my machine (W740SU based laptop) hangs when I do > s2ram. For me it looks like the preparations work, but the machine is then > not switched off. The only way to recover is a hard powercycle. Since the > machine has no serial port I can't look what's happening then, but

Re: [PATCH -mm 1/2] mm: vmscan: account slab pages on memcg reclaim

2015-01-12 Thread Johannes Weiner
On Mon, Jan 12, 2015 at 12:30:37PM +0300, Vladimir Davydov wrote: > Since try_to_free_mem_cgroup_pages() can now call slab shrinkers, we > should initialize reclaim_state and account reclaimed slab pages in > scan_control->nr_reclaimed. > > Signed-off-by: Vladimir Davydov > --- > mm/vmscan.c |

Re: Edited kexec_load(2) [kexec_file_load()] man page for review

2015-01-12 Thread Vivek Goyal
On Wed, Jan 07, 2015 at 10:17:56PM +0100, Michael Kerrisk (man-pages) wrote: [..] > >> .BR KEXEC_ON_CRASH " (since Linux 2.6.13)" > >> Execute the new kernel automatically on a system crash. > >> .\" FIXME Explain in more detail how KEXEC_ON_CRASH is actually used > > I wasn't expecting that you

Re: [GIT PULL] platform-drivers-x86 for 3.19

2015-01-12 Thread Andrew Lutomirski
On Mon, Jan 12, 2015 at 12:30 PM, Kirill A. Shutemov wrote: > On Mon, Jan 12, 2015 at 12:05:45PM -0800, Andrew Lutomirski wrote: >> On Mon, Jan 12, 2015 at 12:03 PM, Kirill A. Shutemov >> wrote: >> > On Mon, Jan 12, 2015 at 10:42:11AM -0800, Andrew Lutomirski wrote: >> >> On Mon, Jan 12, 2015 at

Re: [PATCH] memcg: add BUILD_BUG_ON() for string tables

2015-01-12 Thread Johannes Weiner
On Mon, Jan 12, 2015 at 10:54:23AM -0800, Greg Thelen wrote: > Use BUILD_BUG_ON() to compile assert that memcg string tables are in > sync with corresponding enums. There aren't currently any issues with > these tables. This is just defensive. > > Signed-off-by: Greg Thelen Looks good to me,

Re: [PATCH tip/core/rcu 01/14] rcu: Protect rcu_boost() lockless accesses with ACCESS_ONCE()

2015-01-12 Thread Paul E. McKenney
On Mon, Jan 12, 2015 at 09:59:57AM +0100, Peter Zijlstra wrote: > On Fri, Jan 09, 2015 at 10:58:50PM +0100, Christian Borntraeger wrote: > > Am 09.01.2015 um 14:56 schrieb Peter Zijlstra: > > > On Fri, Jan 09, 2015 at 05:49:54AM -0800, Paul E. McKenney wrote: > > >>> That reminds me, I think the

Re: [GIT PULL] at91: fixes for 3.19 #1 (ter)

2015-01-12 Thread Olof Johansson
On Mon, Jan 12, 2015 at 04:27:52PM +0100, Nicolas Ferre wrote: > Arnd, Olof, Kevin, > > Here is the fixes pull-request for 3.19 that supersedes the ones already sent. > It collects all the fixes that I have currently for this kernel revision. > > Thanks, best regards, > > The following changes

Re: [PATCH v5 net-net 0/2] Increase the limit of tuntap queues

2015-01-12 Thread David Miller
From: Pankaj Gupta Date: Mon, 12 Jan 2015 11:41:27 +0530 > Networking under KVM works best if we allocate a per-vCPU rx and tx > queue in a virtual NIC. This requires a per-vCPU queue on the host side. > Modern physical NICs have multiqueue support for large number of queues. > To scale vNIC to

Re: [PATCH] net: sched: sch_teql: Remove unused function

2015-01-12 Thread David Miller
From: Rickard Strandqvist Date: Sun, 11 Jan 2015 15:08:46 +0100 > Remove the function teql_neigh_release() that is not used anywhere. > > This was partially found by using a static code analysis program called > cppcheck. > > Signed-off-by: Rickard Strandqvist Applied. -- To unsubscribe

Re: [PATCH net-next v1] net: bnx2x: avoid macro redefinition

2015-01-12 Thread David Miller
From: David Decotigny Date: Sun, 11 Jan 2015 11:42:37 -0800 > From: David Decotigny > > Signed-off-by: David Decotigny Applied. -- 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

Re: [PATCH] net: xfrm: xfrm_algo: Remove unused function

2015-01-12 Thread David Miller
From: Rickard Strandqvist Date: Sun, 11 Jan 2015 14:03:35 +0100 > Remove the function aead_entries() that is not used anywhere. > > This was partially found by using a static code analysis program called > cppcheck. > > Signed-off-by: Rickard Strandqvist Applied. -- To unsubscribe from this

Re: [3.16.y-ckt stable] Linux 3.16.7-ckt4 stable review

2015-01-12 Thread Luis Henriques
On Mon, Jan 12, 2015 at 09:30:45PM +0100, Thomas Voegtle wrote: > On Mon, 12 Jan 2015, Luis Henriques wrote: > > >This is the start of the review cycle for the Linux 3.16.7-ckt4 stable > >kernel. > > > >This version contains 216 new patches, summarized below. The new patches are > >posted as

Re: [PATCH v2 22/40] tile: fix put_user sparse errors

2015-01-12 Thread Chris Metcalf
Nack for this patch as-is. On 1/6/2015 10:44 AM, Michael S. Tsirkin wrote: virtio wants to write bitwise types to userspace using put_user. At the moment this triggers sparse errors, since the value is passed through an integer. For example: __le32 __user *p; __le32 x;

[GIT PULL] GPIO fixes for the v3.19 series

2015-01-12 Thread Linus Walleij
Hi Linus, here are some GPIO fixes, mainly affecting the DLN2 IRQ handling. Nothing special about them, just fixes. Please pull them in! Yours, Linus Walleij The following changes since commit b7392d2247cfe6771f95d256374f1a8e6a6f48d6: Linux 3.19-rc2 (2014-12-28 16:49:37 -0800) are

Re: [RFC PATCH 01/11] x86,fpu: document the data structures a little

2015-01-12 Thread Dave Hansen
On 01/11/2015 01:46 PM, r...@redhat.com wrote: > +/* > + * The FPU state used depends on the capabilities of the hardware; the > + * registers used for vector instructions on newer hardware are included > + * in the FPU state. > + */ > union thread_xstate { Tiny nit, if you happen to revise this

Re: [PATCH v8 2/4] fpga manager: add sysfs interface document

2015-01-12 Thread Jason Gunthorpe
On Mon, Jan 12, 2015 at 09:01:34PM +, One Thousand Gnomes wrote: > There are plenty of people today who treat the FPGA as an entirely > dynamic resource. It's not like flashing a controller, its near > immediate. But this is a completely different use case. Remember, there are *megabytes* of

Re: [PATCH net-next] Driver: Vmxnet3: Reinitialize vmxnet3 backend on wakeup from hibernate

2015-01-12 Thread David Miller
From: Shrikrishna Khare Date: Fri, 9 Jan 2015 15:19:14 -0800 > Failing to reinitialize on wakeup results in loss of network connectivity for > vmxnet3 interface. > > Signed-off-by: Srividya Murali > Signed-off-by: Shrikrishna Khare > Reviewed-by: Shreyas N Bhatewara Applied, thanks. -- To

Re: [Patch v5 2/2] gpio: Document GPIO hogging mechanism

2015-01-12 Thread Alexandre Courbot
On Tue, Jan 13, 2015 at 1:39 AM, Benoit Parrot wrote: > Linus Walleij wrote on Mon [2015-Jan-12 11:20:14 > +0100]: >> On Fri, Dec 19, 2014 at 9:07 PM, Benoit Parrot wrote: >> >> > Add GPIO hogging documentation to gpio.txt >> > >> > Signed-off-by: Benoit Parrot >> > Reviewed-by: Alexandre

Re: [PATCH 3.16.y-ckt 030/168] drm/i915: Handle failure to kick out a conflicting fb driver

2015-01-12 Thread Daniel Vetter
On Mon, Jan 12, 2015 at 6:43 PM, Luis Henriques wrote: > On Mon, Jan 12, 2015 at 06:20:22PM +0100, Daniel Vetter wrote: >> On Sun, Jan 11, 2015 at 10:49 PM, Ben Hutchings wrote: >> > On Mon, 2014-12-15 at 14:24 +, Luis Henriques wrote: >> >> 3.16.7-ckt3 -stable review patch. If anyone has

Re: [PATCH] usb/kaweth: use GFP_ATOMIC under spin_lock in usb_start_wait_urb()

2015-01-12 Thread David Miller
From: Alexey Khoroshilov Date: Sat, 10 Jan 2015 02:16:22 +0300 > Commit e4c7f259c5be ("USB: kaweth.c: use GFP_ATOMIC under spin_lock") > makes sure that kaweth_internal_control_msg() allocates memory with > GFP_ATOMIC, > but kaweth_internal_control_msg() also calls usb_start_wait_urb() > that

Re: [PATCH 05/11] usb: gadget: at91_udc: Remove non-DT handling code

2015-01-12 Thread Felipe Balbi
On Wed, Dec 03, 2014 at 12:32:04PM +0100, Boris Brezillon wrote: > Since non-DT board support has been removed from the at91 architecture we > can safely remove non-DT handling code. > > Signed-off-by: Boris Brezillon doesn't apply cleanly: checking file drivers/usb/gadget/udc/Kconfig checking

Re: [RFC PATCH 01/11] x86,fpu: document the data structures a little

2015-01-12 Thread Rik van Riel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/12/2015 04:18 PM, Borislav Petkov wrote: > On Sun, Jan 11, 2015 at 04:46:23PM -0500, r...@redhat.com wrote: >> +++ b/arch/x86/include/asm/processor.h @@ -400,6 +400,11 @@ >> struct xsave_struct { /* new processor state extensions will go >>

RE: dwc2: problems with IN requests completion in linux-next

2015-01-12 Thread Paul Zimmerman
> From: Robert Baldyga [mailto:r.bald...@samsung.com] > Sent: Monday, December 22, 2014 6:13 AM > > I have recently noticed problem with DWC2 driver in latest linux-next. I > use it in gadget only mode at Samsung platform (Odroid U3) but I believe > the bug can be reproduced at another platforms.

[PATCH] sched,numa: do not move past the balance point if unbalanced

2015-01-12 Thread Rik van Riel
There is a subtle interaction between the logic introduced in commit e63da03639cc9e6e83b62e7ef8ffdbb92421416a, the way the load balancer counts the load on each NUMA node, and the way NUMA hinting faults are done. Specifically, the load balancer only counts currently running tasks in the load,

[PATCH 4/6] ARM: at91: sama5d4: remove useless call to at91_init_sram

2015-01-12 Thread Alexandre Belloni
Signed-off-by: Alexandre Belloni --- arch/arm/mach-at91/sama5d4.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-at91/sama5d4.c b/arch/arm/mach-at91/sama5d4.c index 7638509639f4..fa127fb79221 100644 --- a/arch/arm/mach-at91/sama5d4.c +++ b/arch/arm/mach-at91/sama5d4.c @@ -56,7

[PATCH 5/6] ARM: at91: remove unused at91_init_sram

2015-01-12 Thread Alexandre Belloni
SRAM initialization is now done through the mmio-sram driver and at91_init_sram() is not called anymore, remove it. Signed-off-by: Alexandre Belloni --- arch/arm/mach-at91/generic.h | 2 -- arch/arm/mach-at91/setup.c | 20 2 files changed, 22 deletions(-) diff --git

[PATCH 3/6] ARM: at91: remove useless map_io

2015-01-12 Thread Alexandre Belloni
Now that the SRAM is initialized by the mmio-sram driver, .map_io is useless. remove it. Signed-off-by: Alexandre Belloni --- arch/arm/mach-at91/at91rm9200.c | 6 -- arch/arm/mach-at91/at91sam9260.c | 27 --- arch/arm/mach-at91/at91sam9261.c | 9 -

[PATCH 6/6] ARM: at91: move at91rm9200_idle() to clk/at91/pmc.c

2015-01-12 Thread Alexandre Belloni
Move at91rm9200_idle() along with at91sam9_idle() in clk/at91/pmc.c. Signed-off-by: Alexandre Belloni --- Cc: Mike Turquette Mike, Boris, I guess that one can go through the at91 tree unless you have any objections. arch/arm/mach-at91/at91rm9200.c | 9 - arch/arm/mach-at91/generic.h

Re: [PATCH] lockd: xdr: Remove unused function

2015-01-12 Thread J. Bruce Fields
On Sat, Jan 10, 2015 at 06:02:42PM +0100, Rickard Strandqvist wrote: > Remove the function nlm_encode_fh() that is not used anywhere. > > This was partially found by using a static code analysis program called > cppcheck. Huh. OK, thanks--applying. --b. > > Signed-off-by: Rickard

[PATCH 2/6] ARM: at91: pm: use the mmio-sram pool to access SRAM

2015-01-12 Thread Alexandre Belloni
Now that the SRAM is part of a genpool, use it to allocate memory to use for the slowclock implementation. Signed-off-by: Alexandre Belloni --- arch/arm/mach-at91/Kconfig | 1 + arch/arm/mach-at91/pm.c| 46 +- 2 files changed, 46 insertions(+), 1

[PATCH 1/6] ARM: at91: pm: rework cpu detection

2015-01-12 Thread Alexandre Belloni
Store SoC differences in a struct to remove cpu_is_* usage. Signed-off-by: Alexandre Belloni --- arch/arm/mach-at91/pm.c | 54 ++--- 1 file changed, 33 insertions(+), 21 deletions(-) diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c

[PATCH 0/6] AT91 cleanup for 3.20 #2

2015-01-12 Thread Alexandre Belloni
This patch sets is based on AT91 cleanup for 3.20 #1 and depends on AT91 DT for 3.20 #1 because it uses the added SRAM nodes. The first two patches rework the pm code to get rid of cpu_is_xxx (they will be dropped soon) and use the SRAM from the genpool instead of relying on the remap done by

Re: [RFC PATCH 01/11] x86,fpu: document the data structures a little

2015-01-12 Thread Borislav Petkov
On Sun, Jan 11, 2015 at 04:46:23PM -0500, r...@redhat.com wrote: > From: Rik van Riel > > Add some documentation to data structures used for FPU context > switching. > > Signed-off-by: Rik van Riel > --- > arch/x86/include/asm/processor.h | 9 +++-- > arch/x86/kernel/cpu/common.c | 1

Re: 3.19.0-rc4+ fails to compile, missing 'usr/missing-syscalls'

2015-01-12 Thread Ben Greear
On 01/12/2015 12:55 PM, Guenter Roeck wrote: > On Mon, Jan 12, 2015 at 12:08:22PM -0800, Ben Greear wrote: >> >> Any idea what is wrong? >> >> -rc3 compiled ok, then I rebased just now, and get this: >> > My auto-builders are all happy, with no build or qemu failures. > Did you try "make mrproper"

Re: [PATCH net-next v2 0/2 RESEND] r8152: adjust r8152_submit_rx

2015-01-12 Thread David Miller
From: Hayes Wang Date: Fri, 9 Jan 2015 10:26:34 +0800 > v2: > Replace the patch #1 with "call rtl_start_rx after netif_carrier_on". > > For patch #2, replace checking tp->speed with netif_carrier_ok. > > v1: > Avoid r8152_submit_rx() from submitting rx during unexpected > moment. This could

Re: [PATCH v8 2/4] fpga manager: add sysfs interface document

2015-01-12 Thread One Thousand Gnomes
> Then configure udev to load right firmware for you, or ln -s > image-i-want-now socfpga-fpga-image to select the one to read...? Your conceptual model is wrong. FPGA firmware is dynamic. There are already people who lazy reload FPGA firmware on taskswitches. This proposed fpga manager is broken

Re: [PATCH v8 1/2] pwm: Imagination Technologies PWM DAC driver

2015-01-12 Thread One Thousand Gnomes
> + res = platform_get_resource(pdev, IORESOURCE_MEM, 0); What if you've not been given a resource ? Otherwise looks fine to me -- 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

Re: [PATCH] x86: introduce push/pop macros which generate CFI_REL_OFFSET and CFI_RESTORE

2015-01-12 Thread Borislav Petkov
On Mon, Jan 12, 2015 at 12:26:38PM -0800, Andy Lutomirski wrote: > Is the usage you have in mind something like: > > pushq_cfi %r11 /* saves r11 */ > pushq_cfi $0 /* saves nothing */ > pushq_cfi %r11, savereg=rip /* saves rip */ > > I think I prefer the somewhat less magical: > > pushq_reg_cfi

Re: [RFC PATCH 0/5] Overhaul the audit filename handling

2015-01-12 Thread Paul Moore
On Thursday, January 08, 2015 11:50:23 AM Paul Moore wrote: > There have been some patches added to v3.19-rcX to fix various > problems in the way audit handles filenames but they have been hacks > on top of hacks, not really something we want long term. This > patchset reworks the way audit

Re: [PATCHv2 0/2] mm: infrastructure for correctly handling foreign pages on Xen

2015-01-12 Thread Andrew Morton
On Mon, 12 Jan 2015 15:53:11 + David Vrabel wrote: > These two patches are the common parts of a larger Xen series[1] > fixing several long-standing bugs the handling of foreign[2] pages in > Xen guests. > > The first patch is required to fix get_user_pages[_fast]() with > userspace space

Re: 3.19.0-rc4+ fails to compile, missing 'usr/missing-syscalls'

2015-01-12 Thread Guenter Roeck
On Mon, Jan 12, 2015 at 12:08:22PM -0800, Ben Greear wrote: > > Any idea what is wrong? > > -rc3 compiled ok, then I rebased just now, and get this: > My auto-builders are all happy, with no build or qemu failures. Did you try "make mrproper" prior to rebuilding ? Guenter -- To unsubscribe

Re: SATA link power management issues

2015-01-12 Thread Gabriele Mazzotta
On Tuesday 13 January 2015 02:17:00 Suman Tripathi wrote: > Hi, > > On Tuesday 13 January 2015 02:00:45 Suman Tripathi wrote: > > On Monday 12 January 2015 22:46:02 Suman Tripathi wrote: > > > Can you dump the ata_id parameters(LPM section) from the drive and we > > > can check the related LPM

Re: [PATCH] TaskTracker : Simplified thread information tracker.

2015-01-12 Thread Paul Moore
On Monday, January 12, 2015 10:14:34 AM Steve Grubb wrote: > On Monday, January 12, 2015 03:13:12 PM Tetsuo Handa wrote: > > This record contains multiple user-influenced comm names. If I use > > audit_log_untrustedstring(), I would need to split this record into > > multiple records like

Re: [PATCH 06/10] time: Cap clocksource reads to the clocksource max_cycles value

2015-01-12 Thread Richard Cochran
On Mon, Jan 12, 2015 at 09:30:07PM +0100, Richard Cochran wrote: > On Mon, Jan 12, 2015 at 10:54:50AM -0800, John Stultz wrote: > > You say the tick should be scheduled before the clocksource wraps - > > but we have logic to do that. > > Well that is a shame. Arg, I mean, not a shame that we

Re: [PATCH 1/2] CHROMIUM: clk: rockchip: add clock IDs for the PVTM clocks

2015-01-12 Thread Heiko Stübner
Am Donnerstag, 18. Dezember 2014, 16:13:45 schrieb Dmitry Torokhov: > From: Huang Lin > > Process-Voltage-Temperature Monitor has two clocks, PVTM_CORE and > PVTM_GPU. > > Signed-off-by: Huang Lin > Signed-off-by: Dmitry Torokhov applied both patches to my tree The clock-id addition is

Re: [PATCH 1/2] clk: rockchip: add clock ID for usbphy480m_src

2015-01-12 Thread Heiko Stübner
Am Donnerstag, 13. November 2014, 15:22:36 schrieb Kever Yang: > There are 3 different parent clock from different usbphy, > all of them are fixed 480MHz, it is not able to auto select > by clock core to the 2nd and the 3rd parent. > For different use case for different board, we may need to >

Re: [PATCH 00/10][RFC] Increased clocksource validation and cleanups

2015-01-12 Thread Richard Cochran
On Mon, Jan 12, 2015 at 10:22:11AM -0800, John Stultz wrote: > Yea, I've not looked at the actual performance impact yet, but things > like the read-time capping (which is in the hot path) could be put > under a debug config. Thanks for the suggestion! Having a broken clock is like having a

Re: [PATCH 0/5] kstrdup optimization

2015-01-12 Thread Geert Uytterhoeven
On Mon, Jan 12, 2015 at 10:18 AM, Andrzej Hajda wrote: > kstrdup if often used to duplicate strings where neither source neither > destination will be ever modified. In such case we can just reuse the source > instead of duplicating it. The problem is that we must be sure that > the source is

Re: [PATCH 1/1] update ip-sysctl.txt documentation (v2)

2015-01-12 Thread David Miller
From: Ani Sinha Date: Wed, 7 Jan 2015 15:45:56 -0800 > Update documentation to reflect the fact that > /proc/sys/net/ipv4/route/max_size is no longer used for ipv4. > > Signed-off-by: Ani Sinha Applied, thank you. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

Re: [PATCH 06/10] time: Cap clocksource reads to the clocksource max_cycles value

2015-01-12 Thread Richard Cochran
On Tue, Jan 13, 2015 at 08:02:53AM +1300, Linus Torvalds wrote: > Indeed. It's making things more robust in the face of _known_ issues. > Even with a perfectly designed timer (which we so far have never > seen), interrupts get delayed etc, so trying to stretch it to the > limit of the timer is

Re: [3.16.y-ckt stable] Linux 3.16.7-ckt4 stable review

2015-01-12 Thread Thomas Voegtle
On Mon, 12 Jan 2015, Luis Henriques wrote: This is the start of the review cycle for the Linux 3.16.7-ckt4 stable kernel. This version contains 216 new patches, summarized below. The new patches are posted as replies to this message and also available in this git branch:

Re: [PATCH v4 2/4] can: kvaser_usb: Update error counters before exiting on OOM

2015-01-12 Thread Ahmed S. Darwish
On Mon, Jan 12, 2015 at 12:09:32PM +0100, Marc Kleine-Budde wrote: > On 01/11/2015 09:15 PM, Ahmed S. Darwish wrote: > > From: Ahmed S. Darwish > > > > Let the error counters be more accurate in case of Out of > > Memory conditions. > > Please have a look at kvaser_usb_rx_error(), the whole

Re: SATA link power management issues

2015-01-12 Thread Gabriele Mazzotta
On Tuesday 13 January 2015 02:00:45 Suman Tripathi wrote: > On Monday 12 January 2015 22:46:02 Suman Tripathi wrote: > > Can you dump the ata_id parameters(LPM section) from the drive and we > > can check the related LPM parameters of the drive ? > > Hi, > > I'm sorry, but I'm not really

Re: [PATCH] net/at91_ether: prepare and unprepare clock

2015-01-12 Thread David Miller
From: Alexandre Belloni Date: Wed, 7 Jan 2015 23:59:26 +0100 > The clock is enabled without being prepared, this leads to: > > WARNING: CPU: 0 PID: 1 at drivers/clk/clk.c:889 __clk_enable+0x24/0xa8() > > and a non working ethernet interface. > > Use clk_prepare_enable() and

Re: [PATCH RESEND] isdn: fix NUL (\0 or \x00) specification in string

2015-01-12 Thread David Miller
From: Giel van Schijndel Date: Wed, 7 Jan 2015 20:10:12 +0100 > In C one can either use '\0' or '\x00' (or '\000') to add a NUL byte to > a string. '\0x00' isn't part of these and will in fact result in a > single NUL followed by "x00". This fixes that. > > Signed-off-by: Giel van Schijndel >

Re: [GIT PULL] platform-drivers-x86 for 3.19

2015-01-12 Thread Andrew Lutomirski
On Mon, Jan 12, 2015 at 12:30 PM, Kirill A. Shutemov wrote: > On Mon, Jan 12, 2015 at 12:05:45PM -0800, Andrew Lutomirski wrote: >> On Mon, Jan 12, 2015 at 12:03 PM, Kirill A. Shutemov >> wrote: >> > On Mon, Jan 12, 2015 at 10:42:11AM -0800, Andrew Lutomirski wrote: >> >> On Mon, Jan 12, 2015 at

Re: [PATCH] x86: introduce push/pop macros which generate CFI_REL_OFFSET and CFI_RESTORE

2015-01-12 Thread Borislav Petkov
On Mon, Jan 12, 2015 at 12:14:32PM -0800, Andy Lutomirski wrote: > This stuff is at least useful (in theory) for debugging with gdb. And Bah, debugging the kernel with gdb, who does that?! Real men stare at oopses and rebuild stack with pen and paper! :-P -- Regards/Gruss, Boris. Sent

Re: [GIT PULL] platform-drivers-x86 for 3.19

2015-01-12 Thread Andrew Lutomirski
On Mon, Jan 12, 2015 at 12:26 PM, Borislav Petkov wrote: > On Mon, Jan 12, 2015 at 12:05:45PM -0800, Andrew Lutomirski wrote: >> What aspect of the old behavior is better than the new default behavior? > > Btw, in my case, if I boot without the thinkpad_acpi.software_mute=0 > thing, the small

Re: [GIT PULL] platform-drivers-x86 for 3.19

2015-01-12 Thread Kirill A. Shutemov
On Mon, Jan 12, 2015 at 12:05:45PM -0800, Andrew Lutomirski wrote: > On Mon, Jan 12, 2015 at 12:03 PM, Kirill A. Shutemov > wrote: > > On Mon, Jan 12, 2015 at 10:42:11AM -0800, Andrew Lutomirski wrote: > >> On Mon, Jan 12, 2015 at 10:38 AM, Darren Hart wrote: > >> > On Mon, Jan 12, 2015 at

Re: [PATCH 06/10] time: Cap clocksource reads to the clocksource max_cycles value

2015-01-12 Thread Richard Cochran
On Mon, Jan 12, 2015 at 10:54:50AM -0800, John Stultz wrote: > On Sun, Jan 11, 2015 at 4:41 AM, Richard Cochran > wrote: > > On Fri, Jan 09, 2015 at 04:34:24PM -0800, John Stultz wrote: > >> When calculating the current delta since the last tick, we > >> currently have no hard protections to

Re: [PATCH] selinux: ss: mls: Remove unused function

2015-01-12 Thread Paul Moore
On Sunday, January 11, 2015 11:44:30 PM Rickard Strandqvist wrote: > Remove the function mls_import_netlbl_cat() that is not used anywhere. > > This was partially found by using a static code analysis program called > cppcheck. > > Signed-off-by: Rickard Strandqvist > --- >

Re: [PATCH] x86: introduce push/pop macros which generate CFI_REL_OFFSET and CFI_RESTORE

2015-01-12 Thread Andy Lutomirski
On Mon, Jan 12, 2015 at 12:22 PM, H. Peter Anvin wrote: > On 01/12/2015 12:14 PM, Andy Lutomirski wrote: >> On Mon, Jan 12, 2015 at 12:11 PM, Borislav Petkov wrote: >>> On Mon, Jan 12, 2015 at 11:46:53AM -0800, Andy Lutomirski wrote: Dumb example: pushq_cfi $__KERNEL_DS /* ss

Re: [GIT PULL] platform-drivers-x86 for 3.19

2015-01-12 Thread Borislav Petkov
On Mon, Jan 12, 2015 at 12:05:45PM -0800, Andrew Lutomirski wrote: > What aspect of the old behavior is better than the new default behavior? Btw, in my case, if I boot without the thinkpad_acpi.software_mute=0 thing, the small control light in the mute button doesn't light up to show that mute

Re: SATA link power management issues

2015-01-12 Thread Gabriele Mazzotta
On Monday 12 January 2015 22:46:02 Suman Tripathi wrote: > Can you dump the ata_id parameters(LPM section) from the drive and we > can check the related LPM parameters of the drive ? Hi, I'm sorry, but I'm not really familiar with ata, could you be a bit more specific about what you'd like to

Re: [PATCH] x86: introduce push/pop macros which generate CFI_REL_OFFSET and CFI_RESTORE

2015-01-12 Thread H. Peter Anvin
On 01/12/2015 12:14 PM, Andy Lutomirski wrote: > On Mon, Jan 12, 2015 at 12:11 PM, Borislav Petkov wrote: >> On Mon, Jan 12, 2015 at 11:46:53AM -0800, Andy Lutomirski wrote: >>> Dumb example: >>> >>> pushq_cfi $__KERNEL_DS /* ss */ >>> >>> This doesn't save anything that the unwinder would

Re: [PATCH] mm: fix corner case in anon_vma endless growing prevention

2015-01-12 Thread Andrew Morton
On Sun, 11 Jan 2015 16:54:06 +0300 Konstantin Khlebnikov wrote: > Fix for BUG_ON(anon_vma->degree) splashes in unlink_anon_vmas() > ("kernel BUG at mm/rmap.c:399!"). > > Anon_vma_clone() is usually called for a copy of source vma in destination > argument. If source vma has anon_vma it should

[patch] cfq-iosched: fix incorrect filing of rt async cfqq

2015-01-12 Thread Jeff Moyer
Hi, If you can manage to submit an async write as the first async I/O from the context of a process with realtime scheduling priority, then a cfq_queue is allocated, but filed into the wrong async_cfqq bucket. It ends up in the best effort array, but actually has realtime I/O scheduling priority

Re: [PATCH 03/10] clocksource: Remove clocksource_max_deferment()

2015-01-12 Thread Richard Cochran
On Mon, Jan 12, 2015 at 10:36:58AM -0800, John Stultz wrote: > So, the first patch had a cleanup which removed case where the max > mult value was being calculated assuming nanoseconds was a s64 instead > of a u64, which resulted in the max_idle_ns to be halved. So this > doesn't actually cost us

[PATCH resend] console/dummy: Move screen size selection from CPP to Kconfig

2015-01-12 Thread Geert Uytterhoeven
PA-RISC already handled the dummy console screen size selection in Kconfig, so generalize this to other platforms. ARM keeps on using screen_info, which is filled in by platform-specific code, or from ATAGS. Signed-off-by: Geert Uytterhoeven --- drivers/video/console/Kconfig| 16

Re: [PATCH] x86: introduce push/pop macros which generate CFI_REL_OFFSET and CFI_RESTORE

2015-01-12 Thread Andy Lutomirski
On Mon, Jan 12, 2015 at 12:11 PM, Borislav Petkov wrote: > On Mon, Jan 12, 2015 at 11:46:53AM -0800, Andy Lutomirski wrote: >> Dumb example: >> >> pushq_cfi $__KERNEL_DS /* ss */ >> >> This doesn't save anything that the unwinder would care about. > > And? The unwinder or whatever looks at

Re: [PATCH] Staging: line6: Updated comma spacing to fit within coding style

2015-01-12 Thread Greg KH
On Sat, Dec 27, 2014 at 05:00:10PM +1100, Damon Swayn wrote: > Fixed a coding style issue reported by checkpatch surrounding the > spacing of comma's > > Signed-off-by: Damon Swayn > --- > drivers/staging/line6/pcm.h | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Sorry, someone

Re: [PATCH] Staging: line6: fix coding style issue in pcm.h

2015-01-12 Thread Greg KH
On Mon, Dec 22, 2014 at 10:45:01PM +0200, Dmitriy Polyanskiy wrote: > This is a patch to pcm.h file that fixes up some space warnings > found by checkpatch.pl > > Signed-off-by: Dmitriy Polyanskiy > --- > drivers/staging/line6/pcm.h |6 +++--- > 1 file changed, 3 insertions(+), 3

3.19.0-rc4+ fails to compile, missing 'usr/missing-syscalls'

2015-01-12 Thread Ben Greear
Any idea what is wrong? -rc3 compiled ok, then I rebased just now, and get this: cd /mnt/sda/home/greearb/git/linux-3.17.dev.y/drivers/net/wireless/ath/ath10k/ cd ~/kernel/2.6/linux-3.19.x64/; make -j8 bzImage modules CHK include/config/kernel.release GEN ./Makefile CHK

[PATCH] linux/types.h: Always use unsigned long for pgoff_t

2015-01-12 Thread Geert Uytterhoeven
Everybody uses unsigned long for pgoff_t, and no ever overrode the definition of pgoff_t. Keep it that way, and remove the option of overriding it. Signed-off-by: Geert Uytterhoeven --- include/linux/types.h | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git

Re: [PATCH] x86: introduce push/pop macros which generate CFI_REL_OFFSET and CFI_RESTORE

2015-01-12 Thread Borislav Petkov
On Mon, Jan 12, 2015 at 11:46:53AM -0800, Andy Lutomirski wrote: > Dumb example: > > pushq_cfi $__KERNEL_DS /* ss */ > > This doesn't save anything that the unwinder would care about. And? The unwinder or whatever looks at that info simply ignores stuff it is not interested in, no? >

[PATCH v2 2/2] video: Drop superfluous "select VT_HW_CONSOLE_BINDING"

2015-01-12 Thread Geert Uytterhoeven
commit 765d5b9c2b72f5b99722cdfcf4bf8f88c556cf92 ("fbdev: fbcon: select VT_HW_CONSOLE_BINDING") made FRAMEBUFFER_CONSOLE always select VT_HW_CONSOLE_BINDING, but forgot to remove select VT_HW_CONSOLE_BINDING if FRAMEBUFFER_CONSOLE from the individual drivers' sections that already did

[PATCH v2 1/2] drm: Drop superfluous "select VT_HW_CONSOLE_BINDING"

2015-01-12 Thread Geert Uytterhoeven
commit 765d5b9c2b72f5b9 ("fbdev: fbcon: select VT_HW_CONSOLE_BINDING") made FRAMEBUFFER_CONSOLE always select VT_HW_CONSOLE_BINDING, but forgot to remove select VT_HW_CONSOLE_BINDING if FRAMEBUFFER_CONSOLE from the individual drivers' sections that already did this before. Remove it,

Re: [PATCH v2] mm/zsmalloc: add statistics support

2015-01-12 Thread Seth Jennings
On Tue, Dec 23, 2014 at 11:40:45AM +0900, Minchan Kim wrote: > Hi Ganesh, > > On Tue, Dec 23, 2014 at 10:26:12AM +0800, Ganesh Mahendran wrote: > > Hello Minchan > > > > 2014-12-20 10:25 GMT+08:00 Minchan Kim : > > > Hey Ganesh, > > > > > > On Sat, Dec 20, 2014 at 09:43:34AM +0800, Ganesh

Re: [GIT PULL] platform-drivers-x86 for 3.19

2015-01-12 Thread Andrew Lutomirski
On Mon, Jan 12, 2015 at 12:03 PM, Kirill A. Shutemov wrote: > On Mon, Jan 12, 2015 at 10:42:11AM -0800, Andrew Lutomirski wrote: >> On Mon, Jan 12, 2015 at 10:38 AM, Darren Hart wrote: >> > On Mon, Jan 12, 2015 at 12:58:02AM +0200, Kirill A. Shutemov wrote: >> >> On Thu, Dec 18, 2014 at

Re: [PATCH 3/6] HMM: introduce heterogeneous memory management v2.

2015-01-12 Thread Oded Gabbay
On 01/12/2015 05:46 PM, Jerome Glisse wrote: > On Sun, Jan 11, 2015 at 03:24:42PM +0200, Oded Gabbay wrote: >> >> >> On 01/06/2015 12:44 AM, j.gli...@gmail.com wrote: >>> From: Jérôme Glisse >>> >>> This patch only introduce core HMM functions for registering a new mirror >>> and >>> stopping

Re: [GIT PULL] platform-drivers-x86 for 3.19

2015-01-12 Thread Kirill A. Shutemov
On Mon, Jan 12, 2015 at 10:42:11AM -0800, Andrew Lutomirski wrote: > On Mon, Jan 12, 2015 at 10:38 AM, Darren Hart wrote: > > On Mon, Jan 12, 2015 at 12:58:02AM +0200, Kirill A. Shutemov wrote: > >> On Thu, Dec 18, 2014 at 09:51:27AM -0800, Darren Hart wrote: > >> > thinkpad-acpi using software

Re: [PATCH 0/6] AT91 DT for 3.20 #1

2015-01-12 Thread Boris Brezillon
On Mon, 12 Jan 2015 20:01:51 +0100 Alexandre Belloni wrote: > This series enables RTC on the at91sam9n12 and at91rm9200. > It also adds nodes for the SRAM availabe on at91 SoCs. > > Finally it adds a dtsi for the at91sam9xe and uses it for the ethernut5 dts. To the whole series: Acked-by:

Re: [PATCH] kgdb: fix potential out-of-bounds access

2015-01-12 Thread Brian Norris
On Mon, Jan 12, 2015 at 11:54 AM, Jason Wessel wrote: > This is actually already fixed a different way in the kgdb-next: > > https://git.kernel.org/cgit/linux/kernel/git/jwessel/kgdb.git/commit/?h=kgdb-next=c7d9ebf81c456dc185c8eae9e293bfdccf2a65f5 Great. Thanks for the quick response. Brian --

Re: [RFC] hwmon: jc42: use bitops' sign_extend16

2015-01-12 Thread Guenter Roeck
On Mon, Jan 12, 2015 at 06:28:20PM +0100, Martin Kepplinger wrote: > Example change, using new sign_extend functions. No need to drop the Signed-off: line; it only means that I can not take the patch even if I want to. Also, if the patch itself is final, no need to state that it is an example in

Re: [PATCH v5] can: Convert to runtime_pm

2015-01-12 Thread Marc Kleine-Budde
On 01/12/2015 04:04 PM, Kedareswara rao Appana wrote: > Instead of enabling/disabling clocks at several locations in the driver, > Use the runtime_pm framework. This consolidates the actions for runtime PM > In the appropriate callbacks and makes the driver more readable and > mantainable. > >

Re: [PATCH 00/25] line6usb cleanup

2015-01-12 Thread Greg Kroah-Hartman
On Mon, Jan 12, 2015 at 05:35:01PM +0100, Takashi Iwai wrote: > At Sun, 11 Jan 2015 15:04:55 -0600, > Chris Rorvick wrote: > > > > > At Fri, 9 Jan 2015 23:35:46 -0600, > > > Chris Rorvick wrote: > > >> > > >> I have a TonePort UX2 that I've used for testing, meaning that some of > > >> this is

Re: [PATCH] Staging: line6: fix parentheses around macro in usbdefs.h

2015-01-12 Thread Greg Kroah-Hartman
On Wed, Dec 03, 2014 at 07:34:42PM +0100, Sam van Kampen wrote: > This patch fixes the error "Macros with complex values should be enclosed in > parentheses", as reported by checkpatch.pl. > > Signed-off-by: Sam van Kampen > --- > drivers/staging/line6/usbdefs.h | 2 +- > 1 file changed, 1

Re: [PATCH v2 3/3] X86: Add a thread cpu time implementation to vDSO

2015-01-12 Thread Shaohua Li
On Tue, Jan 06, 2015 at 11:18:39AM +0100, Peter Zijlstra wrote: > On Mon, Jan 05, 2015 at 03:23:38PM -0800, Shaohua Li wrote: > > Good, it works. But the timestamp (.time_running and friends) only gets > > updated for real hardware event between context switches. For software > > event, the

Re: [PATCH v2] bitops.h: add sign_extend8(), 16 and 64 functions

2015-01-12 Thread Guenter Roeck
On Mon, Jan 12, 2015 at 06:22:50PM +0100, Martin Kepplinger wrote: > This adds helper functions for sign-extending signed values of any lower > (hardware-)given size to s8, s16 or s64 respectively, just like > sign_extend32() > for s32. > > Signed-off-by: Martin Kepplinger > Suggested-by:

Re: [PATCH] x86: introduce push/pop macros which generate CFI_REL_OFFSET and CFI_RESTORE

2015-01-12 Thread Andy Lutomirski
On Mon, Jan 12, 2015 at 11:37 AM, Borislav Petkov wrote: > Andy, please trim your replies. > > On Mon, Jan 12, 2015 at 11:25:39AM -0800, Andy Lutomirski wrote: >> I think that some users don't want the CFI_REL_OFFSET. > > Why? I thought those two annotations are independent? As you said: > >

[PATCH] kgdb: fix potential out-of-bounds access

2015-01-12 Thread Brian Norris
CPU arrays (e.g., kgdb_info[]) are indexed from 0 (inclusive) to NR_CPUS (exclusive). Pointed out by Coverity, CID 1262269 Signed-off-by: Brian Norris Cc: Jason Wessel --- Untested kernel/debug/kdb/kdb_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: Question concerning RCU

2015-01-12 Thread Paul E. McKenney
On Mon, Jan 12, 2015 at 11:48:28AM +, Stoidner, Christoph wrote: > Hi Paul, > > > You got stack traces with the stall warnings, correct? If so, please look > > at them and at Documentation/RCU/stallwarn.txt and see if the kernel is > > looping somewhere inappropriate. > > Yes and no. I have

Re: [PATCH RESEND] nfs: prevent truncate on active swapfile

2015-01-12 Thread Omar Sandoval
On Sat, Jan 10, 2015 at 05:08:03PM -0500, Trond Myklebust wrote: > Hi Omar, > > On Thu, Jan 8, 2015 at 4:18 AM, Omar Sandoval wrote: > > Most filesystems prevent truncation of an active swapfile by way of > > inode_newsize_ok, called from inode_change_ok. NFS doesn't call either > > from

Re: [PATCH v3 3/5] ARM: at91/dt: update udc compatible strings

2015-01-12 Thread Boris Brezillon
On Mon, 12 Jan 2015 13:31:26 -0600 Felipe Balbi wrote: > On Mon, Jan 12, 2015 at 08:18:16PM +0100, Boris Brezillon wrote: > > Hi Felipe, > > > > On Mon, 12 Jan 2015 12:23:49 -0600 > > Felipe Balbi wrote: > > > > > On Mon, Jan 12, 2015 at 11:57:56AM +0100, Boris Brezillon wrote: > > > >

Re: [PATCH] x86: introduce push/pop macros which generate CFI_REL_OFFSET and CFI_RESTORE

2015-01-12 Thread Borislav Petkov
Andy, please trim your replies. On Mon, Jan 12, 2015 at 11:25:39AM -0800, Andy Lutomirski wrote: > I think that some users don't want the CFI_REL_OFFSET. Why? I thought those two annotations are independent? As you said: "IOW, one is to keep the stack frame tracking consistent and the other is

Re: [PATCH v3 3/5] ARM: at91/dt: update udc compatible strings

2015-01-12 Thread Felipe Balbi
On Mon, Jan 12, 2015 at 08:18:16PM +0100, Boris Brezillon wrote: > Hi Felipe, > > On Mon, 12 Jan 2015 12:23:49 -0600 > Felipe Balbi wrote: > > > On Mon, Jan 12, 2015 at 11:57:56AM +0100, Boris Brezillon wrote: > > > at91sam9g45, at91sam9x5 and sama5 SoCs should not use > > >

[PATCH 02/10] PCI, x86: clip firmware assigned resource under parent bridge's

2015-01-12 Thread Yinghai Lu
Some bios put range that is not fully coverred by root bus resources. Try to clip them and update them in pci bridge bars. Link: https://bugzilla.kernel.org/show_bug.cgi?id=85491 Reported-by: Marek Kordik Tested-by: Marek Kordik Fixes: 5b28541552ef ("PCI: Restrict 64-bit prefetchable bridge

[PATCH 1/3] mmc: core: Allow host driver to provide isr for card-detect interrupts.

2015-01-12 Thread NeilBrown
One of the reasons omap_hsmmc doesn't use the slot-gpio library is that it has some non-standard functionality in the card-detect interrupt service routine. To make it possible for omap_hsmmc (and maybe others) to be converted to use slot-gpio, add 'mmc_gpio_request_cd_isr' which provide an

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