Re: mm: WARNING in __delete_from_page_cache

2016-01-26 Thread Williams, Dan J
On Tue, 2016-01-26 at 14:36 +0100, Jan Kara wrote: > On Tue 26-01-16 07:54:56, Matthew Wilcox wrote: > > On Tue, Jan 26, 2016 at 03:42:34AM +, Williams, Dan J wrote: > > > @@ -2907,7 +2912,12 @@ extern void replace_mount_options(struct > > > super_block *sb, char *options); > > >   > > >  stati

Re: [PATCH] spi: atmel: fix handling of cs_change set on non-last xfer

2016-01-26 Thread Nicolas Ferre
Le 18/01/2016 02:25, Mans Rullgard a écrit : > The driver does the wrong thing when cs_change is set on a non-last > xfer in a message. When cs_change is set, the driver deactivates the > CS and leaves it off until a later xfer again has cs_change set whereas > it should be briefly toggling CS off

Re: [PATCH V4 16/16] ARM64: tegra: select PM_GENERIC_DOMAINS

2016-01-26 Thread Jon Hunter
Hi Arnd, Ulf, On 14/01/16 17:16, Jon Hunter wrote: > > On 14/01/16 09:21, Arnd Bergmann wrote: >> On Thursday 14 January 2016 09:57:14 Ulf Hansson wrote: >>> On 13 January 2016 at 21:43, Arnd Bergmann wrote: On Wednesday 13 January 2016 18:03:24 Thierry Reding wrote: > On Fri, Dec 04, 2

Re: [PATCH 10/10] vfio: allow the user to register reserved iova range for MSI mapping

2016-01-26 Thread kbuild test robot
-passthrough-on-ARM-ARM64/20160126-211921 config: x86_64-randconfig-s3-01262306 (attached as .config) reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): ERROR: "alloc_iova" [drivers/vfio/vfio_iommu_typ

Re: [PATCH] ubsan: fix tree-wide -Wmaybe-uninitialized false positives

2016-01-26 Thread Andrey Ryabinin
On 01/26/2016 12:41 AM, Andrew Morton wrote: > On Mon, 25 Jan 2016 19:01:34 +0300 Andrey Ryabinin > wrote: > >> -fsanitize=* options makes GCC less smart than usual and increase number >> of 'maybe-uninitialized' false-positives. So this patch does two things: >> * Add -Wno-maybe-uninitialized

[PATCH v2] Add hard/soft lockup debugger entry points

2016-01-26 Thread Jeff Merkey
This patch adds an export which can be set by system debuggers to direct the hard lockup and soft lockup detector to trigger a breakpoint exception and enter a debugger if one is active. It is assumed that if someone sets this variable, then an breakpoint handler of some sort will be actively load

Re: [PATCH v4 2/6] drm/dsi: Refactor device creation

2016-01-26 Thread Archit Taneja
On 1/21/2016 9:16 PM, Thierry Reding wrote: On Thu, Dec 10, 2015 at 06:11:36PM +0530, Archit Taneja wrote: Simplify the mipi dsi device creation process. device_initialize and "MIPI" and "DSI", please. Sure, I'll replace with these and in the other patches. device_add don't need to be

[PATCH] scripts/dtc: Update to upstream commit b06e55c88b9b

2016-01-26 Thread Rob Herring
Sync to upstream dtc commit b06e55c88b9b ("Prevent crash on modulo by zero"). This adds the following commits from upstream: b06e55c Prevent crash on modulo by zero b433450 Fix some bugs in processing of line directives d728ad5 Fix crash on nul character in string escape sequence 1ab2205 Gracefull

Re: [PATCH 2/3] input: touchscreen: ad7879: fix default x/y axis assignment

2016-01-26 Thread Stefan Agner
On 2016-01-25 23:58, Michael Hennerich wrote: > On 01/26/2016 04:04 AM, Stefan Agner wrote: >> The measurements read from the controller which are temporary stored >> in conversion_data, are interpreted wrong. The first measurement X+ >> contains the Y position, and the second measurement Y+ the X

Re: [RFC PATCH] mm: support CONFIG_ZONE_DEVICE + CONFIG_ZONE_DMA

2016-01-26 Thread Dan Williams
On Mon, Jan 25, 2016 at 10:00 PM, Sudip Mukherjee wrote: > On Mon, Jan 25, 2016 at 04:06:40PM -0800, Dan Williams wrote: >> It appears devices requiring ZONE_DMA are still prevalent (see link >> below). For this reason the proposal to require turning off ZONE_DMA to >> enable ZONE_DEVICE is unten

Re: [PATCH V8 20/23] perf tools: making function set_max_cpu_num() non static

2016-01-26 Thread Mathieu Poirier
On 25 January 2016 at 14:29, Arnaldo Carvalho de Melo wrote: > Em Mon, Jan 25, 2016 at 06:12:42PM -0300, Arnaldo Carvalho de Melo escreveu: >> Em Mon, Jan 25, 2016 at 01:46:22PM -0700, Mathieu Poirier escreveu: >> > On 14 January 2016 at 14:46, Mathieu Poirier >> > wrote: >> > > For memory alloc

Re: [PATCH 6/7] [media] em28xx: add MEDIA_TUNER dependency

2016-01-26 Thread Mauro Carvalho Chehab
Em Tue, 26 Jan 2016 17:51:11 +0100 Arnd Bergmann escreveu: > On Tuesday 26 January 2016 14:36:44 Mauro Carvalho Chehab wrote: > > Em Tue, 26 Jan 2016 16:53:38 +0100 > > Arnd Bergmann escreveu: > > > On Tuesday 26 January 2016 12:33:08 Mauro Carvalho Chehab wrote: > > > > Em Tue, 26 Jan 2016

Re: fast path cycle muncher (vmstat: make vmstat_updater deferrable again and shut down on idle)

2016-01-26 Thread Mike Galbraith
On Tue, 2016-01-26 at 10:26 -0600, Christoph Lameter wrote: > On Tue, 26 Jan 2016, Mike Galbraith wrote: > > > > Why would the deferring cause this overhead? > > > > Because we schedule to idle cores aggressively, thus we may pop in and > > out of idle at high frequency. > > Whats the point of g

[PATCH v4 03/22] arm64: pgtable: implement static [pte|pmd|pud]_offset variants

2016-01-26 Thread Ard Biesheuvel
The page table accessors pte_offset(), pud_offset() and pmd_offset() rely on __va translations, so they can only be used after the linear mapping has been installed. For the early fixmap and kasan init routines, whose page tables are allocated statically in the kernel image, these functions will re

[PATCH v4 07/22] arm64: move kernel image to base of vmalloc area

2016-01-26 Thread Ard Biesheuvel
This moves the module area to right before the vmalloc area, and moves the kernel image to the base of the vmalloc area. This is an intermediate step towards implementing KASLR, which allows the kernel image to be located anywhere in the vmalloc area. Signed-off-by: Ard Biesheuvel --- arch/arm64

[PATCH v4 16/22] kallsyms: add support for relative offsets in kallsyms address table

2016-01-26 Thread Ard Biesheuvel
Similar to how relative extables are implemented, it is possible to emit the kallsyms table in such a way that it contains offsets relative to some anchor point in the kernel image rather than absolute addresses. On 64-bit architectures, it cuts the size of the kallsyms address table in half, sinc

[PATCH v4 21/22] efi: stub: use high allocation for converted command line

2016-01-26 Thread Ard Biesheuvel
Before we can move the command line processing before the allocation of the kernel, which is required for detecting the 'nokaslr' option which controls that allocation, move the converted command line higher up in memory, to prevent it from interfering with the kernel itself. Since x86 needs the a

[PATCH v4 12/22] arm64: avoid dynamic relocations in early boot code

2016-01-26 Thread Ard Biesheuvel
Before implementing KASLR for arm64 by building a self-relocating PIE executable, we have to ensure that values we use before the relocation routine is executed are not subject to dynamic relocation themselves. This applies not only to virtual addresses, but also to values that are supplied by the

[PATCH v4 19/22] efi: stub: implement efi_get_random_bytes() based on EFI_RNG_PROTOCOL

2016-01-26 Thread Ard Biesheuvel
This exposes the firmware's implementation of EFI_RNG_PROTOCOL via a new function efi_get_random_bytes(). Reviewed-by: Matt Fleming Signed-off-by: Ard Biesheuvel --- drivers/firmware/efi/libstub/Makefile | 2 +- drivers/firmware/efi/libstub/efistub.h | 3 ++ drivers/firmware/efi/libstub/rand

Re: [PATCH 3/3] input: touchscreen: ad7879: add device tree support

2016-01-26 Thread Stefan Agner
On 2016-01-26 00:14, Michael Hennerich wrote: > On 01/26/2016 04:04 AM, Stefan Agner wrote: >> Add device tree support for the I2C variant of AD7879 (AD7879-1). This >> allows to specify the touchscreen controller as a I2C client node. >> Most of the options available as platform data are also avai

[PATCH v4 22/22] arm64: efi: invoke EFI_RNG_PROTOCOL to supply KASLR randomness

2016-01-26 Thread Ard Biesheuvel
Since arm64 does not use a decompressor that supplies an execution environment where it is feasible to some extent to provide a source of randomness, the arm64 KASLR kernel depends on the bootloader to supply some random bits in the /chosen/kaslr-seed DT property upon kernel entry. On UEFI systems

[PATCH v4 20/22] efi: stub: add implementation of efi_random_alloc()

2016-01-26 Thread Ard Biesheuvel
This implements efi_random_alloc(), which allocates a chunk of memory of a certain size at a certain alignment, and uses the random_seed argument it receives to randomize the address of the allocation. This is implemented by iterating over the UEFI memory map, counting the number of suitable slots

Re: stty blocks forever when the line is already opened (and the tx buffer can't be flushed)

2016-01-26 Thread Peter Hurley
Hi Richard, On 01/26/2016 08:19 AM, Richard Genoud wrote: > [ sorry for the noise, I forgot to Cc the lkml ] > > Hi, > I've found a case were calling > stty -F /dev/ttyS1 clocal > blocks forever. > And I don't know if it's a very old bug or if it's meant to be like that. > > Here is how to repro

[PATCH v4 09/22] extable: add support for relative extables to search and sort routines

2016-01-26 Thread Ard Biesheuvel
This adds support to the generic search_extable() and sort_extable() implementations for dealing with exception table entries whose fields contain relative offsets rather than absolute addresses. Acked-by: Helge Deller Acked-by: Heiko Carstens Acked-by: H. Peter Anvin Acked-by: Tony Luck Acked

[PATCH v4 15/22] scripts/sortextable: add support for ET_DYN binaries

2016-01-26 Thread Ard Biesheuvel
Add support to scripts/sortextable for handling relocatable (PIE) executables, whose ELF type is ET_DYN, not ET_EXEC. Other than adding support for the new type, no changes are needed. Signed-off-by: Ard Biesheuvel --- scripts/sortextable.c | 8 1 file changed, 4 insertions(+), 4 deleti

[PATCH v4 17/22] arm64: add support for building the kernel as a relocate PIE binary

2016-01-26 Thread Ard Biesheuvel
This implements CONFIG_RELOCATABLE, which links the final vmlinux image with a dynamic relocation section, which allows the early boot code to perform a relocation to a different virtual address at runtime. This is a prerequisite for KASLR (CONFIG_RANDOMIZE_BASE). Signed-off-by: Ard Biesheuvel -

[PATCH v4 18/22] arm64: add support for kernel ASLR

2016-01-26 Thread Ard Biesheuvel
This adds support for KASLR is implemented, based on entropy provided by the bootloader in the /chosen/kaslr-seed DT property. Depending on the size of the address space (VA_BITS) and the page size, the entropy in the virtual displacement is up to 13 bits (16k/2 levels) and up to 25 bits (all 4 lev

[PATCH v4 13/22] arm64: allow kernel Image to be loaded anywhere in physical memory

2016-01-26 Thread Ard Biesheuvel
This relaxes the kernel Image placement requirements, so that it may be placed at any 2 MB aligned offset in physical memory. This is accomplished by ignoring PHYS_OFFSET when installing memblocks, and accounting for the apparent virtual offset of the kernel Image. As a result, virtual address ref

[PATCH v4 10/22] arm64: switch to relative exception tables

2016-01-26 Thread Ard Biesheuvel
Instead of using absolute addresses for both the exception location and the fixup, use offsets relative to the exception table entry values. Not only does this cut the size of the exception table in half, it is also a prerequisite for KASLR, since absolute exception table entries are subject to dyn

[PATCH v4 14/22] arm64: make asm/elf.h available to asm files

2016-01-26 Thread Ard Biesheuvel
This reshuffles some code in asm/elf.h and puts a #ifndef __ASSEMBLY__ around its C definitions so that the CPP defines can be used in asm source files as well. Signed-off-by: Ard Biesheuvel --- arch/arm64/include/asm/elf.h | 22 1 file changed, 13 insertions(+), 9 deletions

[PATCH v4 11/22] arm64: avoid R_AARCH64_ABS64 relocations for Image header fields

2016-01-26 Thread Ard Biesheuvel
Unfortunately, the current way of using the linker to emit build time constants into the Image header will no longer work once we switch to the use of PIE executables. The reason is that such constants are emitted into the binary using R_AARCH64_ABS64 relocations, which are resolved at runtime, not

[PATCH v4 04/22] arm64: decouple early fixmap init from linear mapping

2016-01-26 Thread Ard Biesheuvel
Since the early fixmap page tables are populated using pages that are part of the static footprint of the kernel, they are covered by the initial kernel mapping, and we can refer to them without using __va/__pa translations, which are tied to the linear mapping. Since the fixmap page tables are di

[PATCH v4 08/22] arm64: add support for module PLTs

2016-01-26 Thread Ard Biesheuvel
This adds support for emitting PLTs at module load time for relative branches that are out of range. This is a prerequisite for KASLR, which may place the kernel and the modules anywhere in the vmalloc area, making it more likely that branch target offsets exceed the maximum range of +/- 128 MB. S

Re: [kernel-hardening] Re: [PATCH 0/2] sysctl: allow CLONE_NEWUSER to be disabled

2016-01-26 Thread Serge Hallyn
Quoting Josh Boyer (jwbo...@fedoraproject.org): > On Mon, Jan 25, 2016 at 11:57 PM, Eric W. Biederman > wrote: > > Kees Cook writes: > > > >> On Mon, Jan 25, 2016 at 11:33 AM, Eric W. Biederman > >> wrote: > >>> Kees Cook writes: > > Well, I don't know about less weird, but it would l

Re: [PATCH v9 2/6] Documentation, dt, arm64/arm: dt bindings for numa.

2016-01-26 Thread Ganapatrao Kulkarni
Hi Rob, Mark, On Wed, Jan 20, 2016 at 7:48 PM, Rob Herring wrote: > On Mon, Jan 18, 2016 at 10:06:01PM +0530, Ganapatrao Kulkarni wrote: >> DT bindings for numa mapping of memory, cores and IOs. >> >> Reviewed-by: Robert Richter >> Signed-off-by: Ganapatrao Kulkarni >> --- >> Documentation/de

[PATCH v4 06/22] arm64: add support for ioremap() block mappings

2016-01-26 Thread Ard Biesheuvel
This wires up the existing generic huge-vmap feature, which allows ioremap() to use PMD or PUD sized block mappings. Signed-off-by: Ard Biesheuvel --- Documentation/features/vm/huge-vmap/arch-support.txt | 2 +- arch/arm64/Kconfig | 1 + arch/arm64/include/asm

[PATCH v4 02/22] arm64: introduce KIMAGE_VADDR as the virtual base of the kernel region

2016-01-26 Thread Ard Biesheuvel
This introduces the preprocessor symbol KIMAGE_VADDR which will serve as the symbolic virtual base of the kernel region, i.e., the kernel's virtual offset will be KIMAGE_VADDR + TEXT_OFFSET. For now, we define it as being equal to PAGE_OFFSET, but in the future, it will be moved below it once we mo

[PATCH v4 05/22] arm64: kvm: deal with kernel symbols outside of linear mapping

2016-01-26 Thread Ard Biesheuvel
KVM on arm64 uses a fixed offset between the linear mapping at EL1 and the HYP mapping at EL2. Before we can move the kernel virtual mapping out of the linear mapping, we have to make sure that references to kernel symbols that are accessed via the HYP mapping are translated to their linear equival

[PATCH v4 01/22] of/fdt: make memblock minimum physical address arch configurable

2016-01-26 Thread Ard Biesheuvel
By default, early_init_dt_add_memory_arch() ignores memory below the base of the kernel image since it won't be addressable via the linear mapping. However, this is not appropriate anymore once we decouple the kernel text mapping from the linear mapping, so archs may want to drop the low limit enti

[PATCH v4 00/22] arm64: implement support for KASLR

2016-01-26 Thread Ard Biesheuvel
This series implements KASLR for arm64, by building the kernel as a PIE executable that can relocate itself at runtime, and moving it to a random offset in the vmalloc area. v2 and up also implement physical randomization, i.e., it allows the kernel to deal with being loaded at any physical offset

Re: [RFC PATCH V2 3/8] genirq: Add runtime power management support for IRQ chips

2016-01-26 Thread Thomas Gleixner
On Fri, 22 Jan 2016, Ulf Hansson wrote: > Here's a small collection of drivers that I easily picked up as > candidates for using these new APIs. > In principle, they would invoke these new APIs from their runtime PM > callbacks. > > drivers/spi/spi-atmel.c > drivers/spi/spi-pl022.c > drivers/i2c/

Re: [kernel-hardening] Re: [PATCH 0/2] sysctl: allow CLONE_NEWUSER to be disabled

2016-01-26 Thread Serge Hallyn
Quoting Josh Boyer (jwbo...@fedoraproject.org): > On Tue, Jan 26, 2016 at 9:46 AM, Austin S. Hemmelgarn > wrote: > > On 2016-01-26 09:38, Josh Boyer wrote: > >> > >> On Mon, Jan 25, 2016 at 11:57 PM, Eric W. Biederman > >> wrote: > >>> > >>> Kees Cook writes: > >>> > On Mon, Jan 25, 2016 at

[PATCH] hisi_sas: fix v1 hw check for slot error

2016-01-26 Thread John Garry
Completion header bit CMPLT_HDR_RSPNS_XFRD flags whether the response frame is received into host memory, and not whether the response frame has an error. As such, change the decision on whether a slot has an error. Also redundant check on CMPLT_HDR_CMD_CMPLT_MSK is removed. Fixes: 27a3f229 ("hisi

Re: [PATCH v2] Add hard/soft lockup debugger entry points

2016-01-26 Thread Chris Metcalf
On 01/26/2016 12:04 PM, Jeff Merkey wrote: This patch adds an export which can be set by system debuggers to direct the hard lockup and soft lockup detector to trigger a breakpoint exception and enter a debugger if one is active. It is assumed that if someone sets this variable, then an breakpoi

Re: [v3,11/41] mips: reuse asm-generic/barrier.h

2016-01-26 Thread Peter Zijlstra
On Wed, Jan 27, 2016 at 12:52:07AM +0800, Boqun Feng wrote: > I recall that last time you and Linus came into a conclusion that even > on Alpha, a barrier for read->write with data dependency is unnecessary: > > http://article.gmane.org/gmane.linux.kernel/2077661 > > And in an earlier mail of tha

Re: [PATCH v2] perf: Synchronously cleanup child events

2016-01-26 Thread Peter Zijlstra
On Tue, Jan 26, 2016 at 05:16:37PM +0100, Peter Zijlstra wrote: > > +struct file *perf_event_get(unsigned int fd) > > { > > + struct file *file; > > > > + file = fget_raw(fd); > > fget_raw() to guarantee the return value isn't NULL? afaict the O_PATH > stuff does not apply to perf events, s

Re: [PATCH 1/2] timer: add setup_deferrable_timer macro

2016-01-26 Thread Thomas Gleixner
On Tue, 12 Jan 2016, Lucas Stach wrote: > Add the trivial missing macro to setup a deferrable timer. > > Signed-off-by: Lucas Stach Acked-by: Thomas Gleixner @Rafael: Feel free to pick that up along with the other one.

RE: [PATCH 00/10] KVM PCIe/MSI passthrough on ARM/ARM64

2016-01-26 Thread Pavel Fedin
Hello! I'd like just to clarify some things for myself and better wrap my head around it... > On x86 all accesses to the 1MB PA region [FEE0_h - FEF0_000h] are directed > as interrupt messages: accesses to this special PA window directly target the > APIC configuration space and not DRAM, m

Re: N900 sleep mode (in 4.5-rc0, if that matters)

2016-01-26 Thread Tony Lindgren
* Pavel Machek [160126 06:01]: > > It seems like I have rather lot of blocking bits: > > 1fff 48005020 (fa005020) cm_idlest_per blocking bits: 0007e000 Looks like most of these are for GPIO banks, that's OK those get saved and restored in the idle loop. Here bit 18 UART4 is a mystery thoug

Re: Nokia N900: musb is in wrong state after boot

2016-01-26 Thread Tony Lindgren
* Pali Rohár [160126 06:35]: > On Thursday 21 January 2016 12:30:13 Tony Lindgren wrote: > > * joerg Reisenweber [160121 11:35]: > > > On Thu 21 January 2016 11:21:13 Tony Lindgren wrote: > > > > Do you have some pointer > > > > to the "certain resistor value on ID to GND" spec? Is it maybe part

Re: [PATCH v2] Add hard/soft lockup debugger entry points

2016-01-26 Thread Jeff Merkey
On 1/26/16, Chris Metcalf wrote: > On 01/26/2016 12:04 PM, Jeff Merkey wrote: >> This patch adds an export which can be set by system debuggers to direct >> the hard lockup and soft lockup detector to trigger a breakpoint >> exception >> and enter a debugger if one is active. It is assumed that i

Re: [Openipmi-developer] ipmi_si feature request: SMBIOS-based autoloading

2016-01-26 Thread Andy Lutomirski
On Tue, Jan 26, 2016 at 5:43 AM, Corey Minyard wrote: > > On 01/26/2016 07:32 AM, Corey Minyard wrote: >> >> On 01/24/2016 07:45 PM, Andy Lutomirski wrote: >>> >>> ipmi_si doesn't autoload on systems where it's found via SMBIOS. >>> Could that be fixed? >> >> I'm not really sure. I kind of assume

Re: [PATCH V4 16/16] ARM64: tegra: select PM_GENERIC_DOMAINS

2016-01-26 Thread Thierry Reding
On Thu, Jan 14, 2016 at 12:11:39PM +0100, Arnd Bergmann wrote: > On Thursday 14 January 2016 11:29:24 Thierry Reding wrote: > > > > It just occurred to me that none of these options really make much of a > > difference. As Jon mentioned once we merge this series a lot of features > > on Tegra will

Re: [PATCH] qe_ic: fix a buffer overflow error and add check elsewhere

2016-01-26 Thread Thomas Gleixner
On Thu, 21 Jan 2016, Zhao Qiang wrote: > 127 is the theoretical up boundary of QEIC number, > in fact there only be 44 qe_ic_info now. > add check to overflow for qe_ic_info How do you trigger that overflow? The above does not explain WHY we need these checks. > diff --git a/drivers/soc/fsl/qe/q

Re: [PATCH v5 10/14] serial: pic32_uart: Add PIC32 UART driver

2016-01-26 Thread Greg Kroah-Hartman
On Tue, Jan 26, 2016 at 10:04:41AM -0700, Joshua Henderson wrote: > Hi Greg and Jiri, > > Ping! Need an ack for this or pull it upstream. The merge window _just_ ended, please give us a chance to catch up on patches to be reviewed. There's no reason you need a response for this right away, it c

[PATCH] tile kgdb: fix bug in copy to gdb regs, and optimize memset

2016-01-26 Thread Chris Metcalf
David Binderman pointed out that we were doing a full memset() of the gdb register buffer and then doing a memcpy() to it that was almost as big. This commit optimizes that by only doing a memset() of the registers that are intended to be zero. While making this change I noticed that we were not

Re: [PATCH] workqueue: warn if memory reclaim tries to flush !WQ_MEM_RECLAIM workqueue

2016-01-26 Thread Thierry Reding
On Thu, Dec 03, 2015 at 02:26:16PM -0500, Tejun Heo wrote: > Task or work item involved in memory reclaim trying to flush a > non-WQ_MEM_RECLAIM workqueue or one of its work items can lead to > deadlock. Trigger WARN_ONCE() if such conditions are detected. > > Signed-off-by: Tejun Heo > Cc: Pete

Re: fast path cycle muncher (vmstat: make vmstat_updater deferrable again and shut down on idle)

2016-01-26 Thread Mike Galbraith
On Tue, 2016-01-26 at 10:26 -0600, Christoph Lameter wrote: > On Tue, 26 Jan 2016, Mike Galbraith wrote: > > > On Tue, 2016-01-26 at 03:14 +0100, Mike Galbraith wrote: > > > > > Perf and RT say we don't want quiet_vmstat() in the idle loop > > > either. > > > > BTW, the perf numbers were not fro

Re: [PATCH] Revert "Staging: panel: usleep_range is preferred over udelay"

2016-01-26 Thread Dan Carpenter
On Mon, Jan 25, 2016 at 03:13:21PM +0530, Sudip Mukherjee wrote: > Apart from the mail which Ying Huang sent to me last week for another error > (which actually turned out to be this one), i saw the first report by > Ying Huang on November. > https://lkml.org/lkml/2015/11/2/93 Ying, could you CC t

Re: [PATCH] ASoC: fsl: add imx-cs427x machine driver

2016-01-26 Thread Nicolin Chen
On Tue, Jan 26, 2016 at 09:05:42AM -0200, Fabio Estevam wrote: > On Tue, Jan 26, 2016 at 9:01 AM, Felipe Ferreri Tonello > wrote: > > > Actually yes, thanks! I didn't know about the existence of fsl-asoc-card. > > > > I get some errors but I don't think they actually matter: > > [ 19.734494] fs

Re: [PATCH v4 14/22] arm64: make asm/elf.h available to asm files

2016-01-26 Thread Mark Rutland
On Tue, Jan 26, 2016 at 06:10:41PM +0100, Ard Biesheuvel wrote: > This reshuffles some code in asm/elf.h and puts a #ifndef __ASSEMBLY__ > around its C definitions so that the CPP defines can be used in asm > source files as well. > > Signed-off-by: Ard Biesheuvel Acked-by: Mark Rutland Mark.

Re: [PATCH v8 4/5] iommu/mediatek: Add mt8173 IOMMU driver

2016-01-26 Thread Robin Murphy
On 26/01/16 04:12, Yong Wu wrote: This patch adds support for mediatek m4u (MultiMedia Memory Management Unit). Whilst I can't speak for the hardware specifics, I think we've got the API aspects and general shape of the code looking pretty much right by now - I don't see anything worth compla

Re: [PATCH v4 05/22] arm64: kvm: deal with kernel symbols outside of linear mapping

2016-01-26 Thread Marc Zyngier
On 26/01/16 17:10, Ard Biesheuvel wrote: > KVM on arm64 uses a fixed offset between the linear mapping at EL1 and > the HYP mapping at EL2. Before we can move the kernel virtual mapping > out of the linear mapping, we have to make sure that references to kernel > symbols that are accessed via the H

Re: [PATCH v2] Add hard/soft lockup debugger entry points

2016-01-26 Thread kbuild test robot
Hi Jeff, [auto build test ERROR on v4.5-rc1] [also build test ERROR on next-20160125] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Jeff-Merkey/Add-hard-soft-lockup-debugger-entry-points/2016

Re: [RFC] kconfig: a new command line tool to set configs

2016-01-26 Thread Dan Carpenter
On Mon, Jun 15, 2015 at 02:55:46PM +0200, Michal Marek wrote: > On 2015-05-12 12:31, Dan Carpenter wrote: > > This is an ugly hack job I made last night and it barely works. It > > does two things: > > > > 1) Sometimes I want to search for a config so I have to load > > menuconfig, then sear

Re: [PATCH] cpufreq: Fix NULL reference crash while accessing policy->governor_data

2016-01-26 Thread Juri Lelli
On 26/01/16 09:57, Juri Lelli wrote: > Hi Viresh, > > On 25/01/16 22:33, Viresh Kumar wrote: > > There is a little race discovered by Juri, where we are able to: > > - create and read a sysfs file before policy->governor_data is being set > > to a non NULL value. > > OR > > - set policy->gover

Re: [PATCH v4 3/6] drm/dsi: Try to match non-DT dsi devices

2016-01-26 Thread Archit Taneja
On 1/21/2016 9:35 PM, Thierry Reding wrote: On Thu, Dec 10, 2015 at 06:11:37PM +0530, Archit Taneja wrote: Add a device name field in mipi_dsi_device. This name is different from the actual dev name (which is of the format "hostname.reg"). When the device is created via DT, this name is set to

Re: [PATCH] qe_ic: fix a buffer overflow error and add check elsewhere

2016-01-26 Thread Scott Wood
On Tue, 2016-01-26 at 18:31 +0100, Thomas Gleixner wrote: > On Thu, 21 Jan 2016, Zhao Qiang wrote: > > > 127 is the theoretical up boundary of QEIC number, > > in fact there only be 44 qe_ic_info now. > > add check to overflow for qe_ic_info > > How do you trigger that overflow? The above does no

Re: [kernel-hardening] Re: [PATCH 0/2] sysctl: allow CLONE_NEWUSER to be disabled

2016-01-26 Thread Austin S. Hemmelgarn
On 2016-01-26 12:15, Serge Hallyn wrote: Quoting Josh Boyer (jwbo...@fedoraproject.org): On Mon, Jan 25, 2016 at 11:57 PM, Eric W. Biederman wrote: Kees Cook writes: On Mon, Jan 25, 2016 at 11:33 AM, Eric W. Biederman wrote: Kees Cook writes: Well, I don't know about less weird, but it

Kredit?

2016-01-26 Thread primfinance
Brauchen Sie ein Geschäft oder einen persönlichen Kredit? Wir haben die Fähigkeit zur Geschäfts- und persönlichen Kredit / Darlehen an Unternehmen und Individuum zu 3 % Zins. Unser Firmensitz ist in China, Europa und Amerika. Für weitere Informationen Kontakt E-Mail: premsfinancial...@outlook.com

Re: net/irda: use-after-free in ircomm_param_request

2016-01-26 Thread Cong Wang
On Mon, Jan 25, 2016 at 7:59 AM, Dmitry Vyukov wrote: > It seems that skb can be freed after skb_put() and spinlock unlock, > but ircomm_param_request reads skb->len afterwards: > > int ircomm_param_request(struct ircomm_tty_cb *self, __u8 pi, int flush) > { > ... > skb_put(skb, count); >

Re: [PATCH v6 4/5] Add ioctl to retrieve USBTMC-USB488 capabilities

2016-01-26 Thread Dave Penkler
On Sun, Jan 24, 2016 at 08:42:54PM -0800, Greg KH wrote: > On Sun, Nov 29, 2015 at 01:35:51PM +0100, Dave Penkler wrote: > > This is a convenience function to obtain an instrument's > > capabilities from its file descriptor without having to access sysfs > > from the user program. > > > > Signed-o

Re: [patch] hfs: fix hfs_readdir()

2016-01-26 Thread Viacheslav Dubeyko
On Tue, 2016-01-26 at 12:26 +0300, Dan Carpenter wrote: > I was looking through static analysis warnings and we seem to be copying > garbage into &rd->key. This goes back to before the start of git... > > Signed-off-by: Dan Carpenter > --- > Not tested. Please review carefully. > > diff --git

Re: [PATCH/RFC 3/3] s390: query dynamic DEBUG_PAGEALLOC setting

2016-01-26 Thread Heiko Carstens
On Tue, Jan 26, 2016 at 10:18:25AM +0100, Christian Borntraeger wrote: > We can use debug_pagealloc_enabled() to check if we can map > the identity mapping with 1MB/2GB pages as well as to print > the current setting in dump_stack. > > Signed-off-by: Christian Borntraeger > --- > arch/s390/kerne

Re: fast path cycle muncher (vmstat: make vmstat_updater deferrable again and shut down on idle)

2016-01-26 Thread Christoph Lameter
On Tue, 26 Jan 2016, Mike Galbraith wrote: > On Tue, 2016-01-26 at 10:26 -0600, Christoph Lameter wrote: > > On Tue, 26 Jan 2016, Mike Galbraith wrote: > > > > > On Tue, 2016-01-26 at 03:14 +0100, Mike Galbraith wrote: > > > > > > > Perf and RT say we don't want quiet_vmstat() in the idle loop > >

Re: [PATCH] ntb: perf test: fix address space confusion

2016-01-26 Thread Jiang, Dave
On Tue, 2016-01-26 at 10:31 +0100, Arnd Bergmann wrote: > The ntb driver assigns between pointers an __iomem tokens, and > also casts them to 64-bit integers, which results in compiler > warnings on 32-bit systems: > > drivers/ntb/test/ntb_perf.c: In function 'perf_copy': > drivers/ntb/test/ntb_pe

Re: [PATCHv8 0/5] Driver for new "VMD" device

2016-01-26 Thread Veal, Bryan E.
On Tue, Jan 26, 2016 at 08:46:09AM -0800, Christoph Hellwig wrote: > On Wed, Jan 20, 2016 at 02:43:08PM -0600, Bjorn Helgaas wrote: > > I saw responses from Keith and Bryan, and I hope they answer your > > questions. As far as I can tell, the VMD driver is grossly similar to > > other host bridge

Re: [PATCH] PCI: iproc: Fix BCMA PCIe bus scanning regression

2016-01-26 Thread Bjorn Helgaas
Hi Ray, On Wed, Jan 20, 2016 at 02:55:10PM -0800, Ray Jui wrote: > Commit 943ebae781f5 ("PCI: iproc: Add PAXC interface support") causes > regression on EP device detection on BCMA based platforms. This patch > fixes the issue by allowing multiple devices to be configured on the > same bus, for al

Re: fast path cycle muncher (vmstat: make vmstat_updater deferrable again and shut down on idle)

2016-01-26 Thread Christoph Lameter
On Tue, 26 Jan 2016, Mike Galbraith wrote: > On Tue, 2016-01-26 at 10:26 -0600, Christoph Lameter wrote: > > On Tue, 26 Jan 2016, Mike Galbraith wrote: > > > > > > Why would the deferring cause this overhead? > > > > > > Because we schedule to idle cores aggressively, thus we may pop in and > > >

Re: [PATCH v3 1/4] KVM: Recover IRTE to remapped mode if the interrupt is not single-destination

2016-01-26 Thread rkrc...@redhat.com
2016-01-26 09:44+0800, Yang Zhang: > On 2016/1/25 21:59, rkrc...@redhat.com wrote: >>2016-01-25 09:49+0800, Yang Zhang: >>>On 2016/1/22 21:31, rkrc...@redhat.com wrote: 2016-01-22 10:03+0800, Yang Zhang: >Not so complicated. We can reuse the wake up vector and check whether the >interru

Re: [kernel-hardening] Re: [PATCH 0/2] sysctl: allow CLONE_NEWUSER to be disabled

2016-01-26 Thread Andy Lutomirski
On Tue, Jan 26, 2016 at 10:09 AM, Austin S. Hemmelgarn wrote: > On 2016-01-26 12:15, Serge Hallyn wrote: >> >> Quoting Josh Boyer (jwbo...@fedoraproject.org): >>> >>> On Mon, Jan 25, 2016 at 11:57 PM, Eric W. Biederman >>> wrote: Kees Cook writes: > On Mon, Jan 25, 2016 at 11:

Re: [PATCH v4 05/13] mmc: sdhci-of-arasan: fix clk issue in sdhci_arasan_remove()

2016-01-26 Thread Sören Brinkmann
On Tue, 2016-01-26 at 06:15PM +0800, Jisheng Zhang wrote: > sdhci_pltfm_unregister() could operate host's registers, it will cause > problems if the clk is already disabled and unprepared. Fix this issue > by moving the clk_disable_unprepare() call to the end of remove > function. > > Signed-off-b

[PATCH 00/11] sync framework de-staging: part 2 - de-stage

2016-01-26 Thread Gustavo Padovan
From: Gustavo Padovan This patch series de-stage the sync framework and it a follow up on the clean up series I've sent last week: http://thread.gmane.org/gmane.comp.video.dri.devel/145509 Now in part 2 we finish the de

[PATCH 08/11] staging/android: rename android_fence to timeline_fence

2016-01-26 Thread Gustavo Padovan
From: Gustavo Padovan We are moving out of staging/adroid so rename it to a name that is not related to android anymore. Signed-off-by: Gustavo Padovan --- drivers/staging/android/sync.c | 40 1 file changed, 20 insertions(+), 20 deletions(-) diff --gi

[PATCH 06/11] staging/android: remove sw_sync_timeline and sw_sync_pt

2016-01-26 Thread Gustavo Padovan
From: Gustavo Padovan As we moved value storage to sync_timeline and fence those two structs became useless and can be removed now. Signed-off-by: Gustavo Padovan --- drivers/staging/android/sw_sync.c| 24 +++- drivers/staging/android/sw_sync.h| 24 ++---

[PATCH 10/11] dma-buf/sync_file: bring debug back to sync file

2016-01-26 Thread Gustavo Padovan
From: Gustavo Padovan Enable reports of sync_files through /sync/info Signed-off-by: Gustavo Padovan --- drivers/dma-buf/sync_file.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/dma-buf/sync_file.c b/drivers/dma-buf/sync_file.c index 92474dd..aa1215d 100644 --- a/drivers/

Re: [f2fs-dev] [PATCH 1/2] f2fs: avoid multiple node page writes due to inline_data

2016-01-26 Thread Jaegeuk Kim
Hi Chao, On Tue, Jan 26, 2016 at 02:58:53PM +0800, Chao Yu wrote: > Hi Jaegeuk, > > > -Original Message- > > From: Jaegeuk Kim [mailto:jaeg...@kernel.org] > > Sent: Tuesday, January 26, 2016 3:18 AM > > To: Chao Yu > > Cc: linux-kernel@vger.kernel.org; linux-fsde...@vger.kernel.org; > > l

Re: fast path cycle muncher (vmstat: make vmstat_updater deferrable again and shut down on idle)

2016-01-26 Thread Mike Galbraith
On Tue, 2016-01-26 at 10:25 -0600, Christoph Lameter wrote: > On Mon, 25 Jan 2016, Michal Hocko wrote: > > > > Why would the deferring cause this overhead? > > > > I guess the profile speaks for itself, doesn't it? > > But the system is going idle? Why would this impact performance? We enter/ex

[PATCH 09/11] dma-buf/sync_timeline: de-stage sync_timeline

2016-01-26 Thread Gustavo Padovan
From: Gustavo Padovan De-stage the remaining bit of sync framework: sync_timeline and sw_sync plus some debugging routines. Signed-off-by: Gustavo Padovan --- drivers/dma-buf/Kconfig| 10 + drivers/dma-buf/Makefile | 3 +- drivers/dma-buf/sw_sync.h

[PATCH 11/11] dma-buf/sync_file: bring sync_dump() back

2016-01-26 Thread Gustavo Padovan
From: Gustavo Padovan During the de-stage of sync framework it was easy to keep sync_dump() out to avoid an early de-stage of all debug code, but now that sync_debug.c was de-staged bring sync_dump() back. Signed-off-by: Gustavo Padovan --- drivers/dma-buf/sync_file.c | 8 ++-- 1 file chan

[PATCH 03/11] staging/android: remove .fill_driver_data() timeline ops

2016-01-26 Thread Gustavo Padovan
From: Gustavo Padovan The .fill_driver_data() ops was just a useless abstraction for fence_ops op of the same name. Now that we use fence->seqno to store the value it is cleaner to remove the abstraction and fill the data directly. Signed-off-by: Gustavo Padovan --- drivers/staging/android/sw

[PATCH 05/11] staging/android: remove struct sync_timeline_ops

2016-01-26 Thread Gustavo Padovan
From: Gustavo Padovan Move drv_name, the last field of sync_timeline_ops, to sync_timeline and remove sync_timeline_ops. struct sync_timeline_ops was just an extra abstraction on top of fence_ops, and in the last few commits we removed all it ops in favor of cleaner fence_ops. Signed-off-by: Gu

[PATCH 07/11] staging/android: remove sw_sync.[ch] files

2016-01-26 Thread Gustavo Padovan
From: Gustavo Padovan We can glue the sw_sync file operations directly on the sync framework without the need to pass through sw_sync wrappers. It only builds sw_sync debugfs file support if CONFIG_SW_SYNC is enabled. Signed-off-by: Gustavo Padovan --- drivers/staging/android/Makefile |

[PATCH 01/11] dma-buf/sync_file: de-stage sync_file

2016-01-26 Thread Gustavo Padovan
From: Gustavo Padovan sync_file is useful to connect one or more fences to the file. The file is used by userspace to track fences. Signed-off-by: Gustavo Padovan --- drivers/Kconfig | 2 + drivers/dma-buf/Kconfig | 11 + drivers/dma-buf/Makefile

Re: fast path cycle muncher (vmstat: make vmstat_updater deferrable again and shut down on idle)

2016-01-26 Thread Christoph Lameter
On Tue, 26 Jan 2016, Mike Galbraith wrote: > I disagree. You're burning electrons for no benefit at all to me on my > box. You want to do high speed trading, that's fine, but I expect my > box to be able to pop in and out of idle without having to pay a toll > to the high speed trading bandits o

[PATCH 04/11] staging/android: remove .{fence,timeline}_value_str() from timeline_ops

2016-01-26 Thread Gustavo Padovan
From: Gustavo Padovan Now that the value of fence and the timeline are not stored by sw_sync anymore we can remove this extra abstraction to retrieve this data. This patch changes both fence_ops (.fence_value_str and .timeline_value_str) to return the str directly. It also clean up struct sync_

[PATCH 02/11] staging/android: store last signaled value on sync timeline

2016-01-26 Thread Gustavo Padovan
From: Gustavo Padovan Now fence timeline is aware of the last signaled fence, as it receives the increment to the current value in sync_timeline_signal(). That allow us to remove .has_signaled() from timeline_ops as we can directly compare using timeline->value and fence->seqno in sync.c Signed

Re: [PATCH v1 04/12] xen/hvmlite: Bootstrap HVMlite guest

2016-01-26 Thread Luis R. Rodriguez
On Mon, Jan 25, 2016 at 05:28:08PM -0500, Boris Ostrovsky wrote: > On 01/25/2016 04:21 PM, H. Peter Anvin wrote: > >On 01/25/16 13:12, Luis R. Rodriguez wrote: > >>>Perhaps, but someone would still have to set hardware_subarch. And > >>>it's hvmlite_bootparams() that does it. > >>No, Xen would do i

Re: [PATCH 4/4] perf hists browser: Check script context menu

2016-01-26 Thread Arnaldo Carvalho de Melo
Em Sat, Jan 23, 2016 at 10:31:42PM +0900, Namhyung Kim escreveu: > The script and data-switch context menu are only meaningful when it > deals with a data file. So add a check so that it cannot be shown when > perf-top is run. > > Signed-off-by: Namhyung Kim > --- > tools/perf/ui/browsers/hists

[PATCH] isdn: Remove unnecessary cast in kfree

2016-01-26 Thread Amitoj Kaur Chawla
Remove unnecassary casts in the argument to kfree. Found using Coccinelle. The semantic patch used to find this is as follows: // @@ type T; expression *f; @@ - kfree((T *)(f)); + kfree(f); // Signed-off-by: Amitoj Kaur Chawla --- drivers/isdn/hisax/fsm.c | 2 +- drivers/isdn/mISDN/fsm.c | 2

  1   2   3   4   5   6   7   8   9   10   >