[PATCH v3 3/3] megaraid_sas : fix whitespace errors

2015-07-07 Thread Bjorn Helgaas
Fix whitespace and indentation errors. No code change. Signed-off-by: Bjorn Helgaas --- drivers/scsi/megaraid/megaraid_sas_base.c | 244 ++--- 1 file changed, 118 insertions(+), 126 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/meg

Re: [PATCH 1/6] xen/x86/pvh: Save %rbx in xen_pvh_early_cpu_init()

2015-07-07 Thread Boris Ostrovsky
On 07/07/2015 04:26 PM, Konrad Rzeszutek Wilk wrote: diff --git a/arch/x86/xen/xen-head.S b/arch/x86/xen/xen-head.S index 8afdfcc..b1508a8 100644 --- a/arch/x86/xen/xen-head.S +++ b/arch/x86/xen/xen-head.S @@ -56,28 +56,28 @@ ENTRY(startup_xen) * @entry: true if this is a secondary vcpu coming

[PATCH v3 0/3] megaraid: use dev_printk() when possible

2015-07-07 Thread Bjorn Helgaas
The current megaraid driver messages are somewhat inconsistent, with different combinations of driver name and device address: megasas: 0x1000:0x005b:0x15d9:0x0690: bus 1:slot 0:func 0 megaraid_sas :01:00.0: megasas: FW restarted successfully from megasas_init_fw! megasas: Waiting for F

[PATCH v3 1/3] megaraid : use dev_printk when possible

2015-07-07 Thread Bjorn Helgaas
Use dev_printk() when possible to make messages more useful. Signed-off-by: Bjorn Helgaas --- drivers/scsi/megaraid.c | 140 ++- 1 file changed, 66 insertions(+), 74 deletions(-) diff --git a/drivers/scsi/megaraid.c b/drivers/scsi/megaraid.c index bc

Re: [PATCH 1/6] xen/x86/pvh: Save %rbx in xen_pvh_early_cpu_init()

2015-07-07 Thread Boris Ostrovsky
On 07/07/2015 04:16 PM, Konrad Rzeszutek Wilk wrote: On Mon, Jul 06, 2015 at 11:34:20PM -0400, Boris Ostrovsky wrote: x86-64 ABI requires that functions preserve %rbx. When xen_pvh_early_cpu_init() is executed on boot cpu it is invoked as a function and 'cpuid' instruction will clobber %rbx. (Th

Re: [PATCH] HID: i2c-hid: Call device suspend callback before disabling irq

2015-07-07 Thread Jiri Kosina
On Tue, 7 Jul 2015, Gabriele Mazzotta wrote: > The irq is most likely required by the suspend callback, so disable it > only after the callback had been executed. It would be nice to have a more verbose changelog here -- i.e. why we want to do such change and what could go wrong if IRQ is disabl

[PATCH 0/5] Remove obsolete 'drivers/irqchip/irqchip.h' header

2015-07-07 Thread Joel Porquet
The IRQCHIP_DECLARE macro migrated to 'include/linux/irqchip.h'. See commit 91e20b5040c67c51aad88cf87db4305c5bd7f79d ("irqchip: Move IRQCHIP_DECLARE macro to include/linux/irqchip.h"). This patch removes the inclusions of private header 'drivers/irqchip/irqchip.h' in all affected irqchip drivers,

Re: [PATCH 4/6] xen/x86/pvh: Set up descriptors for 32-bit PVH guests

2015-07-07 Thread Boris Ostrovsky
On 07/07/2015 03:54 PM, Konrad Rzeszutek Wilk wrote: On Mon, Jul 06, 2015 at 11:34:23PM -0400, Boris Ostrovsky wrote: Signed-off-by: Boris Ostrovsky --- arch/x86/xen/enlighten.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/arch/x86/xen/enlighten.c b/a

Re: [PATCH] Warnings : Fixed 80 character length warning in rtw_ap.c

2015-07-07 Thread Joe Perches
On Tue, 2015-07-07 at 15:32 -0400, valdis.kletni...@vt.edu wrote: > All: Is it time to kill that checkpatch test, or hide it behind a non-default > flag, to prevent code churn? I'm not an 80 column zealot. This is for staging isn't it? Code churn there is expected and somewhat desired. A lot o

Re: [PATCH] HID: i2c-hid: Call device suspend callback before disabling irq

2015-07-07 Thread Benjamin Tissoires
On Jul 07 2015 or thereabouts, Gabriele Mazzotta wrote: > The irq is most likely required by the suspend callback, so disable it > only after the callback had been executed. > > Signed-off-by: Gabriele Mazzotta > --- Just in case Jiri missed it: Reviewed-by: Benjamin Tissoires Thanks! Benjami

Re: [PATCH 5/6] xen/x86/pvh: Add 32-bit PVH initialization code

2015-07-07 Thread Konrad Rzeszutek Wilk
On Mon, Jul 06, 2015 at 11:34:24PM -0400, Boris Ostrovsky wrote: > Signed-off-by: Boris Ostrovsky Reviewed-by: Konrad Rzeszutek Wilk ..thought we could just skip the whole 'entry' parameter check. > --- > arch/x86/xen/enlighten.c | 4 > arch/x86/xen/smp.c | 17 ++--- >

[PATCH 15/42] x86, kaslr: Introduce fetch_random_virt_offset to randomize the kernel text mapping address

2015-07-07 Thread Yinghai Lu
From: Baoquan He Kaslr extended kernel text mapping region size from 512M to 1G, namely CONFIG_RANDOMIZE_BASE_MAX_OFFSET. This means kernel text can be mapped to below region: [__START_KERNEL_map + LOAD_PHYSICAL_ADDR, __START_KERNEL_map + 1G] Introduce a function find_random_virt_offset() to ge

[PATCH 11/42] x86, boot: Add checking for memcpy

2015-07-07 Thread Yinghai Lu
parse_elf is using local memcpy to move section to running position. That memcpy actually only support no overlapping or dest < src. Add checking in memcpy to find out wrong with future use, at that time we will need to have backward memcpy for it. Also put comments in parse_elf about the fact.

Re: [PATCHSET v2 block/for-4.3] blkcg: blkcg_policy methods cleanup

2015-07-07 Thread Arianna Avanzini
Hi Tejun, Il 07/07/2015 22:00, Tejun Heo ha scritto: On Tue, Jul 07, 2015 at 11:51:26AM -0400, Tejun Heo wrote: This is v2 of blkcg_policy methods cleanup patchset. Changes from the last take [L] are * Rebased on top of v4.2-rc1 and other pending patches. v4.2-rc1 added a patch to add per

[PATCH 08/42] x86, kaslr: Get correct max_addr for relocs pointer

2015-07-07 Thread Yinghai Lu
There is boundary checking for pointer in kaslr relocation handling. Current code is using output_len, and that is VO (vmlinux after objcopy) file size plus vmlinux.relocs file size. That is not right, as we should use loaded address for running. At that time parse_elf already move the sections

[PATCH 14/42] x86, kaslr: Add two functions which will be used later

2015-07-07 Thread Yinghai Lu
From: Baoquan He Add two functions mem_min_overlap() and store_slot_info() which will be used later. Given a memory region mem_min_overlap will iterate all avoid region to find the first one which overlap with it. store_slot_info() calculates the slot info of passed in region and store it into

[PATCH 12/42] x86, kaslr: Fix a bug that relocation can not be handled when kernel is loaded above 2G

2015-07-07 Thread Yinghai Lu
From: Baoquan He When process 32 bit relocation tables a local variable extended is defined to calculate the physical address of relocs entry. However it's type is int which is enough for i386, for x86_64 not enough. That's why relocation can only be handled when kernel is loaded below 2G, otherw

Re: Notebook does not resume from hibernation

2015-07-07 Thread Markus Weyermann
Pavel I don't know whats going on. One time it seemed to run as expected. But I could not reproduce. Maybe i missed something. unloading rt2800pci rt2800mmio rt2800lib rt2x00pci rt2x00mmio rt2x00lib r8169 does not change anything. I'm probably not familiar enough with linux to bisect, sorry.

[PATCH 18/42] x86, kaslr: Remove useless codes

2015-07-07 Thread Yinghai Lu
From: Baoquan He Several auxiliary functions and slots[] are not needed any more since struct slot_area is used to store the slot info of kaslr now. Hence remove them in this patch. Signed-off-by: Baoquan He --- arch/x86/boot/compressed/aslr.c | 24 1 file changed, 24

Re: [PATCH] sched: let __sched_period() use rq cfs's nr_running

2015-07-07 Thread Cong Wang
On Mon, Jul 6, 2015 at 9:40 PM, wrote: > From: Byungchul Park > > __sched_period() returns a period which a rq can have. the period has to be > stretched by the number of task *the rq has*, when nr_running > nr_latency. > otherwise, task slice can be very smaller than sysctl_sched_min_granularit

Re: [PATCH 1/6] xen/x86/pvh: Save %rbx in xen_pvh_early_cpu_init()

2015-07-07 Thread Konrad Rzeszutek Wilk
> > diff --git a/arch/x86/xen/xen-head.S b/arch/x86/xen/xen-head.S > > index 8afdfcc..b1508a8 100644 > > --- a/arch/x86/xen/xen-head.S > > +++ b/arch/x86/xen/xen-head.S > > @@ -56,28 +56,28 @@ ENTRY(startup_xen) > > * @entry: true if this is a secondary vcpu coming up on this entry > > *

[PATCH 19/42] x86, kaslr: Allow random address could be below loaded address

2015-07-07 Thread Yinghai Lu
Now new output buffer is always after current one. With correct tracking in mem_avoid, we can buffer below that. That would make sure when bootloader like patched grub2 or kexec have put output rather near the end of ram, we still can get random base below output. Now just pick 512M as min_addr.

[PATCH 13/42] x86, kaslr: Introduce struct slot_area to manage randomization slot info

2015-07-07 Thread Yinghai Lu
From: Baoquan He Kernel is expected to be randomly reloaded anywhere in the whole physical memory area, it could be near 64T at most. In this case there could be about 4*1024*1024 randomization slots. Hence the old slot array will cost too much memory and also not efficient to store the slot info

[PATCH 20/42] x86, boot: Add printf support for early console in compressed/misc.c

2015-07-07 Thread Yinghai Lu
Reuse printf.c in x86 setup code. And print out decompress_kernel input and output info. Later decompresser code could print out more info for debug info. Signed-off-by: Yinghai Lu --- arch/x86/boot/compressed/Makefile | 2 +- arch/x86/boot/compressed/misc.c | 38

[PATCH 33/42] x86, boot: Add add_pci handler for SETUP_PCI

2015-07-07 Thread Yinghai Lu
Let it reserve setup_data, and keep it's own list. Also clear the hdr.setup_data, as all handler now handle or reserve setup_data locally already. Cc: Bjorn Helgaas Cc: Matt Fleming Cc: linux-...@vger.kernel.org Signed-off-by: Yinghai Lu --- arch/x86/include/asm/pci.h | 2 ++ arch/x86/kernel

[PATCH 31/42] x86, efi: Copy SETUP_EFI data and access directly

2015-07-07 Thread Yinghai Lu
The copy will be in __initdata, and it is small. We can use pointer to access the setup_data instead of using early_memmap everywhere. Cc: Matt Fleming Cc: linux-...@vger.kernel.org Signed-off-by: Yinghai Lu --- arch/x86/include/asm/efi.h | 2 +- arch/x86/platform/efi/efi.c| 13 ++

[PATCH 40/42] x86, 64bit: remove highmap for not needed ranges

2015-07-07 Thread Yinghai Lu
add cleanup_highmap_late to remove highmap for initmem, around rodata, and [_brk_end, all_end). Kernel Layout: [0.00] .text: [0x0100-0x0200df88] [0.00] .rodata: [0x0220-0x02a1dfff] [0.00] .data: [0x02c0-0x02e510ff] [0.00] .init: [0x02e53000-0x0321

[PATCH 29/42] x86: Find correct 64 bit ramdisk address for microcode early update

2015-07-07 Thread Yinghai Lu
When using kexec with 64bit kernel, bzImage and ramdisk could be loaded above 4G. We need this to get correct ramdisk adress. Make get_ramdisk_image() global and use it for early microcode updating. -v2: update changelog. Signed-off-by: Yinghai Lu --- arch/x86/include/asm/setup.h

[PATCH 03/42] x86, boot: Fix run_size calculation

2015-07-07 Thread Yinghai Lu
While looking at the boot code to add mem mapping for kasl with 64bit above 4G support, I found that e6023367d779 ("x86, kaslr: Prevent .bss from overlaping initrd") and later introduced way to get kernel run_size and pass it around. At first run_size calculation is via perl and then changed to sh

[PATCH 21/42] x86, boot: Add more debug printout in compressed/misc.c

2015-07-07 Thread Yinghai Lu
with support that use printf.c in x86 setup code. print out more info for debug info. Signed-off-by: Yinghai Lu --- arch/x86/boot/compressed/misc.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/x86/boot/compressed/misc.c b/arch/x86/boot/compressed/misc.c i

[PATCH 32/42] x86, of: Let add_dtb reserve setup_data locally

2015-07-07 Thread Yinghai Lu
We will not reserve setup_data in generic code. Every handler need to reserve and copy setup_data locally. Current dtd handling already have code for copying, just add reserve code. Also simplify code a bit by storing real dtb size. Cc: Rob Herring Cc: David Vrabel Signed-off-by: Yinghai Lu -

[PATCH 10/42] x86, 64bit: Set ident_mapping for kaslr

2015-07-07 Thread Yinghai Lu
Current aslr only support random in near range, and new range still use old mapping. Also it does not support new range above 4G. We need to have ident mapping for the new range before we can do decompress to the new output, and later run them. In this patch, we add ident mapping for all needed r

[PATCH 23/42] x86, setup: Use puts() instead of printf() in edd code

2015-07-07 Thread Yinghai Lu
don't need to use printf there. Signed-off-by: Yinghai Lu --- arch/x86/boot/edd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/boot/edd.c b/arch/x86/boot/edd.c index 223e425..88d7c7f 100644 --- a/arch/x86/boot/edd.c +++ b/arch/x86/boot/edd.c @@ -157,7 +157,7 @

[PATCH 28/42] x86, boot: Allow 64bit EFI kernel to be loaded above 4G

2015-07-07 Thread Yinghai Lu
Now could use kexec to place kernel/boot_params/cmd_line/initrd above 4G, but that is with legacy interface with startup_64 directly. This patch will allow 64bit EFI kernel to be loaded above 4G and use EFI HANDOVER PROTOCOL to start the kernel. Current 32bit code32_start is used for passing arou

[PATCH 17/42] x86, kaslr: Add support of kernel physical address randomization above 4G

2015-07-07 Thread Yinghai Lu
From: Baoquan He In kaslr implementation mechanism, mainly process_e820_entry and slots_fetch_random do the job. process_e820_entry is responsible for storing the slot information. slots_fetch_random takes care of fetching slot information. In this patch, for adding support of kernel physical add

[PATCH 36/42] x86, boot, PCI: Copy SETUP_PCI rom to kernel space

2015-07-07 Thread Yinghai Lu
As EFI stub code could put them high when on 32bit or with exactmap= on 64bit conf. Check if the range is mapped, otherwise allocate new one and have the rom data copied. So we could access them directly. Signed-off-by: Yinghai Lu --- arch/x86/pci/common.c | 47 +

[PATCH 34/42] x86: Kill not used setup_data handling code

2015-07-07 Thread Yinghai Lu
Cc: Matt Fleming Signed-off-by: Yinghai Lu --- arch/x86/kernel/kdebugfs.c | 142 - arch/x86/kernel/setup.c| 17 -- 2 files changed, 159 deletions(-) diff --git a/arch/x86/kernel/kdebugfs.c b/arch/x86/kernel/kdebugfs.c index dc1404b..c8ca86c 1

[PATCH 38/42] x86: Fix typo in mark_rodata_ro

2015-07-07 Thread Yinghai Lu
In the comment, should use cleanup_highmap(). and also remove not needed cast for _brk_end, as it is unsigned long. Signed-off-by: Yinghai Lu --- arch/x86/mm/init_64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c index 257b

[PATCH 30/42] x86: Kill E820_RESERVED_KERN

2015-07-07 Thread Yinghai Lu
Now we are using memblock to do early resource reserver/allocation instead of using e820 map directly, and setup_data is reserved in memblock early already. Also kexec generate setup_data and pass pointer to second kernel, so second kernel reserve setup_data by their own. (Now kexec-tools create SE

[PATCH 41/42] x86, 64bit: Add __pa_high/__va_high

2015-07-07 Thread Yinghai Lu
and use it to make the early page table setup code more readable, as we are using kernel high mapping address. Signed-off-by: Yinghai Lu --- arch/x86/kernel/head64.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/arch/x86/kernel/head64.c b/arch/x86/kernel/hea

[PATCH 24/42] x86: Setup early console as early as possible in x86_start_kernel()

2015-07-07 Thread Yinghai Lu
Analyze "console=uart8250,io,0x3f8,115200n8" in i386_start_kernel/x86_64_start_kernel, and call setup_early_serial8250_console() to init early serial console. Only can handle io port kind of 8250, because mmio need ioremap. Use boot_params.hdr.version instead of adding another variable, Suggeste

[PATCH 16/42] x86, kaslr: Randomize physical and virtual address of kernel separately

2015-07-07 Thread Yinghai Lu
From: Baoquan He On x86_64, in old kaslr implementaion only physical address of kernel loading is randomized. Then calculate the delta of physical address where vmlinux was linked to load and where it is finally loaded. If delta is not equal to 0, namely there's a new physical address where kerne

[PATCH 07/42] x86, boot: Move z_extract_offset calculation to header.S

2015-07-07 Thread Yinghai Lu
Old extract_offset calculation is done without knowledge of decompressor size. so it guess one big size. We can move it to header.S, where we have exact decompressor size. We save 8 pages for init_size with this patch. before patch: kernel: [13e00,13fa1dfff] input: [0x13f32d3b4-0x13fa01cc7

[PATCH 04/42] x86, kaslr: Kill not needed and wrong run_size calculation code.

2015-07-07 Thread Yinghai Lu
We use simple and correct version to get run_size now, remove code for wrong run_size calculation. Fixes: e6023367d779 ("x86, kaslr: Prevent .bss from overlaping initrd") Cc: "H. Peter Anvin" Cc: Josh Triplett Cc: Matt Fleming Cc: Kees Cook Cc: Andrew Morton Cc: Ard Biesheuvel Cc: Junjie Mao

[PATCH 06/42] x86, kaslr: Consolidate mem_avoid array filling

2015-07-07 Thread Yinghai Lu
We are going to support kaslr with 64bit above 4G, and new random output buffer could be anywhere. mem_avoid array is used for kaslr to search new output buffer. Current code only track range that is after output+output_run_size. We need to track all range instead of just after output+output_run_

[PATCH 09/42] x86, boot: Split kernel_ident_mapping_init to another file

2015-07-07 Thread Yinghai Lu
We need to include that in boot::decompress_kernel stage to set new ident mapping. Also add checking for __pa/__va macro definition, as we need to override them in boot::decompress_kernel stage. Reviewed-by: Kees Cook Signed-off-by: Yinghai Lu --- arch/x86/include/asm/page.h | 5 +++ arch/x86

[PATCH 42/42] x86: fix msr print again

2015-07-07 Thread Yinghai Lu
msr early print out get broken again, fix it. Signed-off-by: Yinghai Lu --- arch/x86/include/asm/processor.h | 1 - arch/x86/kernel/cpu/common.c | 61 +--- 2 files changed, 32 insertions(+), 30 deletions(-) diff --git a/arch/x86/include/asm/processor.h b

[PATCH 35/42] x86, boot, PCI: Convert SETUP_PCI data to list

2015-07-07 Thread Yinghai Lu
So we could avoid ioremap every time later. Cc: Bjorn Helgaas Cc: linux-...@vger.kernel.org Signed-off-by: Yinghai Lu --- arch/x86/include/asm/pci.h | 2 ++ arch/x86/kernel/setup.c| 1 + arch/x86/pci/common.c | 77 +- 3 files changed, 65 in

[PATCH 25/42] x86, boot: print compression suffix in decompress stage

2015-07-07 Thread Yinghai Lu
Signed-off-by: Yinghai Lu --- arch/x86/boot/compressed/misc.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/x86/boot/compressed/misc.c b/arch/x86/boot/compressed/misc.c index a428c03..9266f78 100644 --- a/arch/x86/boot/compressed/misc.c +++ b/arch/x86/boot/compressed/misc.c @@

[PATCH 39/42] x86, 64bit: add pfn_range_is_highmapped()

2015-07-07 Thread Yinghai Lu
Need to use it to support holes in highmap when remove not used range in highmap. Signed-off-by: Yinghai Lu --- arch/x86/include/asm/pgtable_64.h | 2 ++ arch/x86/mm/init_64.c | 22 ++ arch/x86/mm/pageattr.c| 16 +--- 3 files changed, 25 i

[PATCH 37/42] x86, boot, PCI: Export SETUP_PCI data via sysfs

2015-07-07 Thread Yinghai Lu
So we could let kexec-tools to rebuild SETUP_PCI and pass it to second kernel if needed. Now kexec-tools already build SETUP_EFI and SETUP_E820EXT. Cc: Bjorn Helgaas Cc: linux-...@vger.kernel.org Signed-off-by: Yinghai Lu --- arch/x86/pci/common.c | 175

[PATCH 26/42] x86: remove not needed clear_page calling

2015-07-07 Thread Yinghai Lu
remove not needed clear_page for init_level4_page in x86_64_start_kernel(), as it is with fill 512,8,0 already in head_64.S Signed-off-by: Yinghai Lu --- arch/x86/kernel/head64.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/kernel/head64.c b/arch/x86/kernel/head64.c index 44dc63b.

[PATCH 22/42] x86, setup: Check early serial console per string instead of one char

2015-07-07 Thread Yinghai Lu
Move out serial_putchar() calling out of putchar Let puts() to call serial_putchar() directly. So only need to check early_serial_base per string. Signed-off-by: Yinghai Lu --- arch/x86/boot/tty.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/arch/x86/boot/

[PATCH 27/42] x86: restore end_of_ram to E820_RAM

2015-07-07 Thread Yinghai Lu
We don't need to create mapping for E820_PRAM. Signed-off-by: Yinghai Lu --- arch/x86/kernel/e820.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/arch/x86/kernel/e820.c b/arch/x86/kernel/e820.c index a102564..46ec08d 100644 --- a/arch/x86/kernel/e820.c +++ b/ar

[PATCH 00/42] x86: updated patches for kaslr and setup_data etc for v4.3

2015-07-07 Thread Yinghai Lu
Those patches are rebased on v4.2-rc1 that I sent before but were rejected by Ingo on changelog. Kees Cook said that he would like to give a try to make improvement on changelog to get things moving. First part are kaslr related: 1. First put compressed kernel ZO near end of the buffer before dec

[PATCH 02/42] x86, boot: Move compressed kernel to end of buffer before decompressing

2015-07-07 Thread Yinghai Lu
So we can find out ZO position easily during run-time for kasl buffer searching. Current code is using extract_offset to control copied kernel position, it will put the copied kernel in the middle of buffer when kernel run size is bigger than decompressed needed buffer size. Current layout: when

[PATCH 05/42] x86, kaslr: rename output_size to output_run_size

2015-07-07 Thread Yinghai Lu
Now we are using output_size as parameter, actually we are passing max(output_len, run_size). Change it to output_run_size to make it less confusing. Cc: Kees Cook Signed-off-by: Yinghai Lu --- arch/x86/boot/compressed/aslr.c | 10 +- arch/x86/boot/compressed/misc.c | 6 -- arch/x

[PATCH 01/42] x86, kasl: Remove not needed parameter for choose_kernel_location

2015-07-07 Thread Yinghai Lu
real_mode is global variable, so we do not need to pass it around. Signed-off-by: Yinghai Lu --- arch/x86/boot/compressed/aslr.c | 5 ++--- arch/x86/boot/compressed/misc.c | 2 +- arch/x86/boot/compressed/misc.h | 6 ++ 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/arch/x86/

Re: [RFC PATCH v10 23/50] perf tools: Make perf depend on libbpf

2015-07-07 Thread Arnaldo Carvalho de Melo
Em Tue, Jul 07, 2015 at 04:54:52PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Wed, Jul 01, 2015 at 02:14:11AM +, Wang Nan escreveu: > > By adding libbpf into perf's Makefile, this patch enables perf to > > build libbpf during building if libelf is found and neither NO_LIBELF > > nor NO_LIBB

Re: [PATCH 1/6] xen/x86/pvh: Save %rbx in xen_pvh_early_cpu_init()

2015-07-07 Thread Konrad Rzeszutek Wilk
On Mon, Jul 06, 2015 at 11:34:20PM -0400, Boris Ostrovsky wrote: > x86-64 ABI requires that functions preserve %rbx. When > xen_pvh_early_cpu_init() is executed on boot cpu it is invoked as a > function and 'cpuid' instruction will clobber %rbx. (This is not a > concern on secondary processors sinc

Re: [PATCH 2/2] i2c: i801: add support of Host Notify

2015-07-07 Thread Benjamin Tissoires
On Jul 07 2015 or thereabouts, Jean Delvare wrote: > Hi Benjamin, > > On Tue, 23 Jun 2015 14:58:19 -0400, Benjamin Tissoires wrote: > > The i801 chip can handle the Host Notify feature since ICH 3 as mentioned > > in > > http://www.intel.com/content/dam/doc/datasheet/82801ca-io-controller-hub-3-d

Re: lock-up with module: Optimize __module_address() using a latched RB-tree

2015-07-07 Thread Arthur Marsh
Mathieu Desnoyers wrote on 08/07/15 02:03: - On Jul 7, 2015, at 3:29 AM, Peter Zijlstra pet...@infradead.org wrote: On Tue, Jul 07, 2015 at 02:59:06PM +0930, Arthur Marsh wrote: I had a single, non-reproducible case of the same lock-up happening on my other machine running the Linus git

[PATCH] gpiolib: remove unneeded assignation

2015-07-07 Thread Laurent Navet
ret is assigned value from of_property_read_string_index but is overwritten before being used so remove it. Also fix coverity CID 1309759 Signed-off-by: Laurent Navet --- drivers/gpio/gpiolib-of.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpiolib-of.c b/dri

Re: [PATCH v3 1/7] dt/bindings: Add binding for the Raspberry Pi clock provider

2015-07-07 Thread Eric Anholt
Lee Jones writes: > If I were the Clock Maintainer, I would have probably missed this > patch. You _must_ intimate which subsystem you are submitting to. > >> The hardware clocks are not controllable by the ARM, so we have to >> make requests to the firmware to do so from the VPU side. This wil

[tip:irq/urgent] hotplug: Prevent alloc/ free of irq descriptors during cpu up/down

2015-07-07 Thread tip-bot for Thomas Gleixner
Commit-ID: bdcbafe3402cb337752c4c8bce3445ee4c5559a5 Gitweb: http://git.kernel.org/tip/bdcbafe3402cb337752c4c8bce3445ee4c5559a5 Author: Thomas Gleixner AuthorDate: Sun, 5 Jul 2015 17:12:30 + Committer: Thomas Gleixner CommitDate: Tue, 7 Jul 2015 22:03:22 +0200 hotplug: Prevent alloc

Re: [PATCHSET v2 block/for-4.3] blkcg: blkcg_policy methods cleanup

2015-07-07 Thread Tejun Heo
On Tue, Jul 07, 2015 at 11:51:26AM -0400, Tejun Heo wrote: > This is v2 of blkcg_policy methods cleanup patchset. Changes from the > last take [L] are > > * Rebased on top of v4.2-rc1 and other pending patches. v4.2-rc1 > added a patch to add per-blkcg policy data which is allocated by > blk

GOOD DAY

2015-07-07 Thread DR.CLIF.C. OUEDRAOGO.
-- Dear Friend, I'm happy to inform you about the success in getting those funds transferred under the cooperation of a new partner. Contact western union manager there in Burkina-Faso to send you the total sum of $500.000.00 USA Dollars which i kept as cheque for your compensation for all the pa

Re: [PATCH v3 RESEND] x86/asm/entry/32, selftests: Add test_syscall_vdso test

2015-07-07 Thread Denys Vlasenko
On 07/06/2015 02:46 PM, Ingo Molnar wrote: > > * Ingo Molnar wrote: > >>> tools/testing/selftests/x86/test_syscall_vdso.c | 401 >>> >>> tools/testing/selftests/x86/thunks_32.S | 55 >>> 2 files changed, 456 insertions(+) >>> create mode 100644 tools/tes

[PATCH v4] x86/asm/entry/32, selftests: Add 'test_syscall_vdso' test

2015-07-07 Thread Denys Vlasenko
This new test checks that all x86 registers are preserved across 32-bit syscalls. It tests syscalls through VDSO (if available) and through INT 0x80, normally and under ptrace. If kernel is a 64-bit one, high registers (r8..r15) are poisoned before the syscall is called and are checked afterwards.

[PATCH] hwmon: (nct7802) Add pwmX_enable attribute

2015-07-07 Thread Constantine Shulyupin
Introduced REG_SMARTFAN_EN_BASE, pwmX_enable, show_pwm_enable, store_pwm_enable. Signed-off-by: Constantine Shulyupin --- drivers/hwmon/nct7802.c | 46 ++ 1 file changed, 46 insertions(+) diff --git a/drivers/hwmon/nct7802.c b/drivers/hwmon/nct7802.c

Re: [PATCH v3 0/3] net: dsa: mv88e6xxx: add support for VLAN Table Unit

2015-07-07 Thread Scott Feldman
On Tue, Jul 7, 2015 at 9:17 AM, Vivien Didelot wrote: > Hi Andrew, Scott, > Does this fixup http://ix.io/jxq look good to you? Yes. -- 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.

Re: [PATCH 6/6] xen/x86/pvh: Allow building 32-bit PVH guests

2015-07-07 Thread Konrad Rzeszutek Wilk
On Mon, Jul 06, 2015 at 11:34:25PM -0400, Boris Ostrovsky wrote: > Signed-off-by: Boris Ostrovsky Reviewed-by: Konrad Rzeszutek Wilk > --- > arch/x86/xen/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/x86/xen/Kconfig b/arch/x86/xen/Kconfig > index e88fda8

Re: [PATCH 5/6] xen/x86/pvh: Add 32-bit PVH initialization code

2015-07-07 Thread Konrad Rzeszutek Wilk
On Mon, Jul 06, 2015 at 11:34:24PM -0400, Boris Ostrovsky wrote: > Signed-off-by: Boris Ostrovsky A little bit more here I think - as in that the parameter passing is not an Xen specific thing but something this code cooked up? > --- > arch/x86/xen/enlighten.c | 4 > arch/x86/xen/smp.c

Re: [PATCH 1/2] i2c: add SMBus Host Notify support

2015-07-07 Thread Benjamin Tissoires
On Jul 07 2015 or thereabouts, Jean Delvare wrote: > On Tue, 7 Jul 2015 10:23:33 -0400, Benjamin Tissoires wrote: > > Hi Jean, > > > > On Jun 29 2015 or thereabouts, Jean Delvare wrote: > > > Hi Benjamin, > > > > > > On Tue, 23 Jun 2015 14:58:18 -0400, Benjamin Tissoires wrote: > > > > SMBus Host

[PATCH] HID: i2c-hid: Call device suspend callback before disabling irq

2015-07-07 Thread Gabriele Mazzotta
The irq is most likely required by the suspend callback, so disable it only after the callback had been executed. Signed-off-by: Gabriele Mazzotta --- drivers/hid/i2c-hid/i2c-hid.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/hid/i2c-hid/i2c-hid.c b/drivers/h

Re: [RFC PATCH v10 23/50] perf tools: Make perf depend on libbpf

2015-07-07 Thread Arnaldo Carvalho de Melo
Em Wed, Jul 01, 2015 at 02:14:11AM +, Wang Nan escreveu: > By adding libbpf into perf's Makefile, this patch enables perf to > build libbpf during building if libelf is found and neither NO_LIBELF > nor NO_LIBBPF is set. The newly introduced code is similar to libapi > and libtraceevent buildin

[PATCH v3] kconfig: Delete unnecessary checks before the function call "sym_calc_value"

2015-07-07 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 7 Jul 2015 21:48:23 +0200 The sym_calc_value() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- scr

Re: [PATCH 4/6] xen/x86/pvh: Set up descriptors for 32-bit PVH guests

2015-07-07 Thread Konrad Rzeszutek Wilk
On Mon, Jul 06, 2015 at 11:34:23PM -0400, Boris Ostrovsky wrote: > Signed-off-by: Boris Ostrovsky > --- > arch/x86/xen/enlighten.c | 16 > 1 file changed, 12 insertions(+), 4 deletions(-) > > diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c > index 0b95c9b..7953e

3.18.17 Xen regression

2015-07-07 Thread Boris Ostrovsky
Commit 63753fac67e1 ("x86: Store a per-cpu shadow copy of CR4") in 3.18.y branch introduced a regression on PVH Xen guests. Please apply 5054daa285be ("x86/xen: Initialize cr4 shadow for 64-bit PV(H) guests") from mainline to fix this. 3.18.y appears to be the only affected branch. Thanks.

[PATCH 3/3] emu10k1: rename Audigy Analog Capture Boost control

2015-07-07 Thread Maciej S. Szmigiero
Audigy has "Analog Capture Boost" mixer control, however now this only controls mic level, not other analog sources. It applies also both to playback and capture, so rename it to something more descriptive. Signed-off-by: Maciej Szmigiero --- sound/pci/emu10k1/emumixer.c |2 +- 1 files chan

Re: [PATCH] freescale:Make the function gfar_configure_coalescing_all static

2015-07-07 Thread Uwe Kleine-König
On Tue, Jul 07, 2015 at 03:49:33PM -0400, Nicholas Krause wrote: > This makes the function gfar_configure_coalescing_all static > and removes its function prototype from the header file, gianfar.h really? Looking at the diffstat I dare to disagree. > due to this function only ever being called in

[PATCH 2/3] emu10k1: enable TAD mic out on Audigy

2015-07-07 Thread Maciej S. Szmigiero
Enable TAD output on Audigy naming it "Phone Output", to be consistent with TAD input which is called "Phone". According to Creative doc ( http://support.creative.com/kb/ShowArticle.aspx?sid=3026 ) this should output just mic signal. Signed-off-by: Maciej Szmigiero --- sound/pci/emu10k1/emumixe

[PATCH 1/3] emu10k1: remove unused AC'97 mixer controls on Audigy

2015-07-07 Thread Maciej S. Szmigiero
AC'97 Headphone output and EAPD control aren't used on Audigy so remove them from mixer. Also remove AC'97 3D control as the driver is already doing for Audigys with 1361T ADC. Signed-off-by: Maciej Szmigiero --- sound/pci/emu10k1/emumixer.c | 11 ++- 1 files changed, 6 insertions(+),

[PATCH v2] gpio-pca953x: Support NXP PCAL9555A with Agile I/O

2015-07-07 Thread Clemens Gruber
This patch adds support for the NXP PCAL9555A GPIO expander's extra features, called Agile I/O: Input latching, interrupt masks and open-drain output stages can be configured via 3 optional device tree properties. Cc: Linus Walleij Cc: Alexandre Courbot Signed-off-by: Clemens Gruber --- Change

Re: [RFC PATCH v10 22/50] bpf tools: Link all bpf objects onto a list

2015-07-07 Thread Arnaldo Carvalho de Melo
Em Wed, Jul 01, 2015 at 02:14:10AM +, Wang Nan escreveu: > To prevent caller from creating additional structures to hold > pointers of 'struct bpf_object', this patch link all such Can you rephrase the above sentence? You mean "to allow enumeration of all bpf_objects, keep them in a list". >

Re: [RFC PATCH 6/6] powerpc/kvm: change the condition of identifying hugetlb vm

2015-07-07 Thread Scott Wood
On Tue, 2015-07-07 at 16:05 +0800, wenwei tao wrote: > Hi Scott > > I understand what you said. > > I will use the function 'is_vm_hugetlb_page()' to hide the bit > combinations according to your comments in the next version of patch > set. > > But for the situation like below, there isn't an ob

Re: [PATCH 2/8] xtensa: keep exception/interrupt stack continuous

2015-07-07 Thread Max Filippov
On Tue, Jul 7, 2015 at 10:46 PM, Max Filippov wrote: >> Branch: >> - is there any logical change in the code or are these only to avoid using >> a0? > > Yes. Meant the latter. -- Thanks. -- Max -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message

Re: [PATCH 2/8] xtensa: keep exception/interrupt stack continuous

2015-07-07 Thread Max Filippov
Hi Chris, On Tue, Jul 7, 2015 at 9:47 PM, Chris Zankel wrote: > Not such a big fan about these changes as they introduce additional > load and stores and a branch. > > Copy spill area: > - is this only for debugging? Could the debugger identify the 'kernel > exception' frame and handle it appropr

Re: [RFC PATCH v10 21/50] bpf tools: Introduce accessors for struct bpf_object

2015-07-07 Thread Arnaldo Carvalho de Melo
Em Wed, Jul 01, 2015 at 02:14:09AM +, Wang Nan escreveu: > This patch add an accessor which allows caller to get count of programs > in an object file. > > Signed-off-by: Wang Nan > Acked-by: Alexei Starovoitov > --- > tools/lib/bpf/libbpf.c | 9 + > tools/lib/bpf/libbpf.h | 3 +++ >

[PATCH] powerpc/perf/24x7: Fix lockdep warning

2015-07-07 Thread Sukadev Bhattiprolu
>From 370152d9427e57cd9632b00189f71099f8e85544 Mon Sep 17 00:00:00 2001 From: Sukadev Bhattiprolu Date: Tue, 7 Jul 2015 12:21:10 -0400 Subject: [PATCH 1/1] powerpc/perf/24x7: Fix lockdep warning The sysfs attributes for the 24x7 counters are dynamically allocated. Initialize the attributes using

Re: [RFC PATCH v10 20/50] bpf tools: Introduce accessors for struct bpf_program

2015-07-07 Thread Arnaldo Carvalho de Melo
Em Wed, Jul 01, 2015 at 02:14:08AM +, Wang Nan escreveu: > This patch introduces accessors for user of libbpf to retrieve section > name and fd of a opened/loaded eBPF program. 'struct bpf_prog_handler' > is used for that purpose. Accessors of programs section name and file > descriptor are pro

Re: [PATCH V3 0/3] hwmon:f71882fg add new Fintek SuperIO support

2015-07-07 Thread Guenter Roeck
On 07/07/2015 01:22 AM, Peter Hung wrote: The first patch will add Fintek F81866/F71868 SuperIO with H/W monitor function to f71882fg.c. But some F81866 functional address is differ from F71882fg. The following 2 patches will fix this problem. The test report is upload to following link. If I l

Re: [PATCH] Warnings : Fixed 80 character length warning in rtw_ap.c

2015-07-07 Thread Valdis . Kletnieks
On Mon, 06 Jul 2015 21:53:26 -0400, Sreenath Madasu said: > When the checkpatch.pl script was run, it showed lines with length > more than 80 characters in rtw_ap.c file. Fixed line number 382 by > breaking it up into two lines within 80 characters. > - stainfo_offset

Re: [PATCH 3/6] xen/x86/pvh: Properly set page tables for 32-bit PVH guests

2015-07-07 Thread Konrad Rzeszutek Wilk
On Mon, Jul 06, 2015 at 11:34:22PM -0400, Boris Ostrovsky wrote: > 32-bit PVH guests don't want to write-protect/pin page tables. > > Signed-off-by: Boris Ostrovsky Reviewed-by: Konrad Rzeszutek Wilk > --- > arch/x86/xen/mmu.c | 22 +- > 1 file changed, 13 insertions(+), 9

Re: [PATCH 2/6] xen/x86: Remove unnecessary memset() call

2015-07-07 Thread Konrad Rzeszutek Wilk
On Mon, Jul 06, 2015 at 11:34:21PM -0400, Boris Ostrovsky wrote: > Since ctxt is kzalloc'd there is no need to call a memset for > ctxt->fpu_ctxt. > > Signed-off-by: Boris Ostrovsky Reviewed-by: Konrad Rzeszutek Wilk > --- > arch/x86/xen/smp.c | 1 - > 1 file changed, 1 deletion(-) > > diff -

Re: mmotm 2015-07-06-16-25 uploaded

2015-07-07 Thread Michal Hocko
I have just created since-4.1 branch in mm git tree (http://git.kernel.org/?p=linux/kernel/git/mhocko/mm.git;a=summary). It is based on v4.1 tag in Linus tree and mmotm-2015-07-06-16-25. I have pulled block/core changes as a pre-requisite for Tejun's cgroup writeback series which is applied on top

Filebench failure on ramdisk with Ext4-DAX

2015-07-07 Thread Andiry Xu
Hi, I am running into failures when run filebench on ramdisk(/dev/ram0) with Ext4-DAX. The kernel version is 4.0, and I also verified it occurs on 4.2-rc1. The issue reproduction steps: // Set ramdisk size to 2GB # mkfs.ext4 /dev/ram0 # mount -o dax /dev/ram0 /mnt/ramdisk # filebench filebench>

Re: perf, kprobes: fuzzer generates huge number of WARNings

2015-07-07 Thread Alexei Starovoitov
On Tue, Jul 07, 2015 at 12:00:12AM -0400, Vince Weaver wrote: > > Well the BPF hack is in the fuzzer, not the kernel. And it's not really a > hack, it just turned out to be a huge pain to figure out how to > manually create a valid BPF program in conjunction with a valid kprobe > event. You m

Re: Applied "regmap: Use different lockdep class for each regmap init call" to the regmap tree

2015-07-07 Thread Mark Brown
On Tue, Jul 07, 2015 at 02:58:19PM +0100, Mark Brown wrote: > The patch > >regmap: Use different lockdep class for each regmap init call > > has been applied to the regmap tree at > >git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git ...and reverted because it breaks the

[RFCv5 PATCH 07/46] arm: Cpu invariant scheduler load-tracking support

2015-07-07 Thread Morten Rasmussen
From: Dietmar Eggemann Reuses the existing infrastructure for cpu_scale to provide the scheduler with a cpu scaling correction factor for more accurate load-tracking. This factor comprises a micro-architectural part, which is based on the cpu efficiency value of a cpu as well as a platform-wide m

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