[PATCH 03/18] pstore: Avoid race in module unloading

2017-03-06 Thread Kees Cook
Technically, it might be possible for struct pstore_info to go out of scope after the module_put(), so report the backend name first. Signed-off-by: Kees Cook --- fs/pstore/platform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/pstore/platform.c b/fs/pstore/platfor

Re: [PATCH] dt-bindings: display: rk3288-mipi-dsi: add reset property

2017-03-06 Thread Sean Paul
On Fri, Mar 03, 2017 at 11:39:45AM +, John Keeping wrote: > This reset is required in order to fully reset the internal state of the > MIPI controller. > > Signed-off-by: John Keeping I'm sorry I missed this in my review. Adding Rob Herring directly for his ack. Also, Reviewed-by: Sean Pau

Re: [PATCH 17/29] drivers, pci: convert hv_pci_dev.refs from atomic_t to refcount_t

2017-03-06 Thread Bjorn Helgaas
[+cc Hyper-V folks, -cc others] On Mon, Mar 06, 2017 at 04:21:04PM +0200, Elena Reshetova wrote: > refcount_t type and corresponding API should be > used instead of atomic_t when the variable is used as > a reference counter. This allows to avoid accidental > refcounter overflows that might lead t

Re: [patch -mm] mm, vmstat: suppress pcp stats for unpopulated zones in zoneinfo

2017-03-06 Thread Andrew Morton
On Mon, 6 Mar 2017 14:03:32 -0800 (PST) David Rientjes wrote: > After "mm, vmstat: print non-populated zones in zoneinfo", /proc/zoneinfo > will show unpopulated zones. > > The per-cpu pageset statistics are not relevant for unpopulated zones and > can be potentially lengthy, so supress them

[PATCH 10/18] pstore: Replace arguments for write() API

2017-03-06 Thread Kees Cook
Similar to the pstore_info read() callback, there were too many arguments. This switches to the new struct pstore_record pointer instead. This adds "reason" and "part" to the record structure as well. Signed-off-by: Kees Cook --- arch/powerpc/kernel/nvram_64.c| 27 + drivers/

[PATCH 13/18] pstore: Allocate records on heap instead of stack

2017-03-06 Thread Kees Cook
In preparation for handling records off to pstore_mkfile(), allocate the record instead of reusing stack. This still always frees the record, though, since pstore_mkfile() isn't yet keeping it. Signed-off-by: Kees Cook --- fs/pstore/platform.c | 30 ++ 1 file changed,

[PATCH 02/18] pstore: Shut down worker when unregistering

2017-03-06 Thread Kees Cook
When built as a module and running with update_ms >= 0, pstore will Oops during module unload since the work timer is still running. This makes sure the worker is stopped before unloading. Signed-off-by: Kees Cook Cc: sta...@vger.kernel.org --- fs/pstore/platform.c | 10 +- 1 file change

[PATCH 05/18] pstore: Add kernel-doc for struct pstore_info

2017-03-06 Thread Kees Cook
This adds documentation for struct pstore_info, which also includes the basic API the backends need to implement. Signed-off-by: Kees Cook --- include/linux/pstore.h | 133 +++-- 1 file changed, 128 insertions(+), 5 deletions(-) diff --git a/include/l

[patch -mm] mm, vmstat: suppress pcp stats for unpopulated zones in zoneinfo

2017-03-06 Thread David Rientjes
After "mm, vmstat: print non-populated zones in zoneinfo", /proc/zoneinfo will show unpopulated zones. The per-cpu pageset statistics are not relevant for unpopulated zones and can be potentially lengthy, so supress them when they are not interesting. Also moves lowmem reserve protection inform

[PATCH 2/2] f2fs: don't overwrite node block by SSR

2017-03-06 Thread Jaegeuk Kim
This patch fixes that SSR can overwrite previous warm node block consisting of a node chain since the last checkpoint. Fixes: 5b6c6be2d878 ("f2fs: use SSR for warm node as well") Signed-off-by: Jaegeuk Kim --- fs/f2fs/segment.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/fs/f2fs/se

Re: [PATCH 00/17] clocksource/arch_timer: Errara workaround infrastructure rework

2017-03-06 Thread dann frazier
On Mon, Mar 6, 2017 at 4:26 AM, Marc Zyngier wrote: > It has recently become obvious that a number of arm64 systems have > been blessed with a set of timers that are slightly less than perfect, > and require a bit of hand-holding. We already have a bunch of > errata-specific code to deal with this

Re: cgroup: WARNING in cgroup_kill_sb

2017-03-06 Thread Tejun Heo
Hello, Dmitry. Can you please see whether the following patch resolves the issue? I'm a bit nervous about it ending up in circular dependency, but I *think* it should be okay. Thanks. diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c index 0125589..9c40421 100644 --- a/kernel/cgroup/c

Re: [PATCH v8 6/6] arm64: dts: allwinner: h5: add support for the Orange Pi PC 2 board

2017-03-06 Thread Rask Ingemann Lambertsen
On Tue, Mar 07, 2017 at 01:17:50AM +0800, Icenowy Zheng wrote: > From: Andre Przywara > > The Orange Pi PC 2 is a typical single board computer using the > Allwinner H5 SoC. Apart from the usual suspects it features three > separately driven USB ports and a Gigabit Ethernet port. > Also it has a

Re: [PATCH] zram: set physical queue limits to avoid array out of bounds accesses

2017-03-06 Thread Jens Axboe
On 03/06/2017 01:18 PM, Andrew Morton wrote: > On Mon, 6 Mar 2017 08:21:11 -0700 Jens Axboe wrote: > >> On 03/06/2017 03:23 AM, Johannes Thumshirn wrote: >>> zram can handle at most SECTORS_PER_PAGE sectors in a bio's bvec. When using >>> the NVMe over Fabrics loopback target which potentially se

[PATCH 1/2] gpio: mmio: add support for NI 169445 NAND GPIO

2017-03-06 Thread Nathan Sullivan
The GPIO-based NAND controller on National Instruments 169445 hardware exposes a set of simple lines for the control signals. Signed-off-by: Nathan Sullivan --- .../bindings/gpio/ni,169445-nand-gpio.txt | 36 ++ drivers/gpio/gpio-mmio.c | 1

[PATCH 1/2] f2fs: don't need to invalidate wrong node page

2017-03-06 Thread Jaegeuk Kim
If f2fs_new_inode() is failed, the bad inode will invalidate 0'th node page during f2fs_evict_inode(), which doesn't need to do. Signed-off-by: Jaegeuk Kim --- fs/f2fs/inode.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/inode.c b/fs/f2fs/inode.c index 24bb8213

Re: [PATCH 1/2] leds: cpcap: new driver

2017-03-06 Thread Jacek Anaszewski
Hi Sebastian, Thanks for the patch. I have few comments in the code below. On 03/05/2017 06:22 PM, Sebastian Reichel wrote: > Motorola CPCAP is a PMIC found in multiple smartphones. > This driver adds support for the chip's LED controllers. > It has explicit support for all controllers used by th

Re: [PATCH 2/7] xen: introduce the header file for the Xen 9pfs transport protocol

2017-03-06 Thread Boris Ostrovsky
On 03/06/2017 04:36 PM, Stefano Stabellini wrote: > On Mon, 6 Mar 2017, Boris Ostrovsky wrote: >>> + uint32_t size; >>> + uint8_t id; >>> + uint16_t tag; >> I realize that this is in the spec now and it's probably too late to ask >> this question but wouldn't it be better if id and tag were s

Re: [PATCH] objtool: drop redundant flags generation

2017-03-06 Thread Josh Poimboeuf
On Mon, Mar 06, 2017 at 05:54:01PM +, Nicholas Mc Guire wrote: > On Mon, Mar 06, 2017 at 11:25:37AM -0600, Josh Poimboeuf wrote: > > > arch/x86/tools/gen-insn-attr-x86.awk | 12 ++-- > > > tools/objtool/arch/x86/insn/gen-insn-attr-x86.awk | 12 ++-- > > > > There's

Re: [PATCH 4/5] IB/nes: Delete unnecessary braces

2017-03-06 Thread Julia Lawall
On Mon, 6 Mar 2017, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 6 Mar 2017 17:55:43 +0100 > > Do not use curly brackets at some source code places > where a single statement should be sufficient. The introduction of ? is not mentioned in the commit log. I'm not sure that it i

[PATCH v2 2/2] HID: corsair: Add driver Scimitar Pro RGB gaming mouse 1b1c:1b3e support to hid-corsair

2017-03-06 Thread Oscar Campos
This mouse sold by Corsair as Scimitar PRO RGB defines two consecutive Logical Minimum items in its Application (Consumer.0001) report making it non parseable. This patch fixes the report descriptor overriding byte 77 in rdesc from 0x16 (Logical Minimum with 16 bits value) to 0x26 (Logical Maximum

Re: [PATCH 0/2] HID: Corsair Scimitar Pro RGB gaming mouse driver and support for other Corsair devices

2017-03-06 Thread Oscar Campos
On Mon, Mar 06, 2017 at 01:55:21PM +0100, Jiri Kosina wrote: > On Fri, 10 Feb 2017, Oscar Campos wrote: > > > Since I have a Corsair Scimitar PRO RGB that does not works on Linux, I > > tried to find a solution doing some research but was not able to find any. > [ ... snip ... ] > > > > I created t

Re: XTS Crypto Not Found In /proc/crypto Even After Compiled for 4.10.1.

2017-03-06 Thread Nathan Royce
OK, I just tried 4.10.0 and the output is looking the same. I can't say my setup is all that odd. The cryptographic use is only with the swap partition found in my original email (seen in Herbert's reply). My normal build goes as such: 1) git clean -xdf 2) git reset --hard 3) curl https://github

Re: [PATCH 2/7] xen: introduce the header file for the Xen 9pfs transport protocol

2017-03-06 Thread Stefano Stabellini
On Mon, 6 Mar 2017, Boris Ostrovsky wrote: > > + uint32_t size; > > + uint8_t id; > > + uint16_t tag; > > I realize that this is in the spec now and it's probably too late to ask > this question but wouldn't it be better if id and tag were swapped? No > need to pack and potentially faster ac

Re: [PATCH] zram: set physical queue limits to avoid array out of bounds accesses

2017-03-06 Thread Andrew Morton
On Mon, 6 Mar 2017 08:21:11 -0700 Jens Axboe wrote: > On 03/06/2017 03:23 AM, Johannes Thumshirn wrote: > > zram can handle at most SECTORS_PER_PAGE sectors in a bio's bvec. When using > > the NVMe over Fabrics loopback target which potentially sends a huge bulk of > > pages attached to the bio's

Re: [RFC PATCH v2 01/32] x86: Add the Secure Encrypted Virtualization CPU feature

2017-03-06 Thread Borislav Petkov
On Mon, Mar 06, 2017 at 01:11:03PM -0500, Brijesh Singh wrote: > Sending it through stg mail to avoid line wrapping. Please let me know if > something > is still messed up. I have tried applying it and it seems to apply okay. Yep, thanks. -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix

Re: [PATCH 08/26] brcmsmac: make some local variables 'static const' to reduce stack size

2017-03-06 Thread Arnd Bergmann
On Mon, Mar 6, 2017 at 5:19 PM, Kalle Valo wrote: > Arend Van Spriel writes: > >> On 2-3-2017 17:38, Arnd Bergmann wrote: >>> With KASAN and a couple of other patches applied, this driver is one >>> of the few remaining ones that actually use more than 2048 bytes of >>> kernel stack: >>> >>> broa

Re: [PATCH 2/3] percpu: acquire pcpu_lock when updating pcpu_nr_empty_pop_pages

2017-03-06 Thread Tejun Heo
On Sat, Feb 25, 2017 at 01:00:19PM -0800, Tahsin Erdogan wrote: > Update to pcpu_nr_empty_pop_pages in pcpu_alloc() is currently done > without holding pcpu_lock. This can lead to bad updates to the variable. > Add missing lock calls. > > Fixes: b539b87fed37 ("percpu: implmeent pcpu_nr_empty_pop_p

[PATCH net-next] tg3: Add the ability to conditionally build w/ HWMON

2017-03-06 Thread Florian Fainelli
Introduce a Kconfig option: CONFIG_TIGON3_HWMON which allows to build in/out support for thermal sensors reported by Tigon3 NICs. Signed-off-by: Florian Fainelli --- drivers/net/ethernet/broadcom/Kconfig | 8 +++- drivers/net/ethernet/broadcom/tg3.c | 7 +++ 2 files changed, 14 inserti

Re: [v3] mmc: sdhci-cadence: add HS400 enhanced strobe support

2017-03-06 Thread Masahiro Yamada
Hi Piotr, 2017-03-06 17:28 GMT+09:00 Piotr Sroka : > Add support for HS400ES mode to Cadence SDHCI driver. > > Signed-off-by: Piotr Sroka > --- > Changes in v2: > - Modify enhanced strobe function to handle disabling > enhanced strobe inside the function. > Do no relay on that mmc_set_ios() i

Re: [PATCH 2/3] mtd: spi-nor: Add Octal SPI support to Cadence QSPI driver.

2017-03-06 Thread Boris Brezillon
On Mon, 6 Mar 2017 12:32:25 + Artur Jedrysek wrote: > Recent versions of Cadence QSPI controller support Octal SPI transfers > as well. This patch updates existing driver to support such feature. > > It is not possible to determine whether or not octal mode is supported > just by looking at

Re: [PATCH v4 2/3] perf: kretprobes: offset from reloc_sym if kernel supports it

2017-03-06 Thread Masami Hiramatsu
On Mon, 6 Mar 2017 20:34:10 +0530 "Naveen N. Rao" wrote: > On 2017/03/04 09:49AM, Masami Hiramatsu wrote: > > On Thu, 2 Mar 2017 23:25:06 +0530 > > "Naveen N. Rao" wrote: > > > > > We indicate support for accepting sym+offset with kretprobes through a > > > line in ftrace README. Parse the sam

Re: [PATCH 1/3] mtd: spi-nor: Add support for Octal SPI mode.

2017-03-06 Thread Boris Brezillon
Hi Artur, Can you please make sure all patches of a patch series are part of the same thread? git send-email should take care of that for you. On Mon, 6 Mar 2017 12:30:23 + Artur Jedrysek wrote: > This patch adds support for Octal SPI data reads in SPI NOR framework. > Opcodes for programmi

Re: [PATCH V12 07/10] efi: print unrecognized CPER section

2017-03-06 Thread Joe Perches
On Mon, 2017-03-06 at 13:45 -0700, Tyler Baicar wrote: > UEFI spec allows for non-standard section in Common Platform Error > Record. This is defined in section N.2.3 of UEFI version 2.5. > > Currently if the CPER section's type (UUID) does not match with > one of the section types that the kernel

Re: [PATCH v3 0/7] in-kernel resource manager

2017-03-06 Thread Jarkko Sakkinen
On Fri, Mar 03, 2017 at 05:19:01PM +0200, Jarkko Sakkinen wrote: > This patch set adds support for TPM spaces that provide an isolated > execution context for transient objects and HMAC and policy sessions. A > space is swapped into TPM volatile memory only when it is used and > swapped out after t

Re: [RFC PATCH 0/4] KVM: Emulate UMIP (or almost do so)

2017-03-06 Thread Paolo Bonzini
- Original Message - > From: "Yu Zhang" > To: "Paolo Bonzini" > Cc: "qian ouyang" , linux-kernel@vger.kernel.org, > k...@vger.kernel.org > Sent: Wednesday, March 1, 2017 10:04:17 AM > Subject: Re: [RFC PATCH 0/4] KVM: Emulate UMIP (or almost do so) > > > > On 12/13/2016 7:03 PM, Pao

Re: [PATCH 1/3] percpu: remove unused chunk_alloc parameter from pcpu_get_pages()

2017-03-06 Thread Tejun Heo
On Sat, Feb 25, 2017 at 12:59:26PM -0800, Tahsin Erdogan wrote: > pcpu_get_pages() doesn't use chunk_alloc parameter, remove it. > > Fixes: fbbb7f4e149f ("percpu: remove the usage of separate populated bitmap > in percpu-vm") > Signed-off-by: Tahsin Erdogan Applied to wq/for-4.11-fixes. Thanks

Re: [PATCH] x86, kasan: add KASAN checks to atomic operations

2017-03-06 Thread Peter Zijlstra
On Mon, Mar 06, 2017 at 04:20:18PM +, Mark Rutland wrote: > > >> So the problem is doing load/stores from asm bits, and GCC > > >> (traditionally) doesn't try and interpret APP asm bits. > > >> > > >> However, could we not write a GCC plugin that does exactly that? > > >> Something that interpr

Re: __queue_work oops.

2017-03-06 Thread Tejun Heo
Hello, Applied the following to wq/for-4.11-fixes. Thanks. -- 8< -- >From 637fdbae60d6cb9f6e963c1079d7e0445c86ff7d Mon Sep 17 00:00:00 2001 From: Tejun Heo Date: Mon, 6 Mar 2017 15:33:42 -0500 Subject: [PATCH] workqueue: trigger WARN if queue_delayed_work() is called with NULL @wq If

Re: [PATCH v4 2/3] perf: kretprobes: offset from reloc_sym if kernel supports it

2017-03-06 Thread Masami Hiramatsu
On Mon, 6 Mar 2017 23:19:09 +0530 "Naveen N. Rao" wrote: > Masami, > Your patch works, thanks! However, I felt we could refactor and reuse > some of the code across kprobes.c for this purpose. Can you please see > if the below patch is fine? OK, looks good to me:) Acked-by: Masami Hiramatsu

Re: [PATCH v3] tpm: do not suspend/resume if power stays on

2017-03-06 Thread Jarkko Sakkinen
On Fri, Mar 03, 2017 at 05:09:59PM +0100, Enric Balletbo i Serra wrote: > From: Sonny Rao > > The suspend/resume behavior of the TPM can be controlled by setting > "powered-while-suspended" in the DTS. This is useful for the cases > when hardware does not power-off the TPM. > > Signed-off-by: So

Re: [PATCH 2/3] mtd: Add support for reading MTD devices via the nvmem API

2017-03-06 Thread Boris Brezillon
On Mon, 6 Mar 2017 20:03:28 +0100 Richard Weinberger wrote: > Am 06.03.2017 um 18:21 schrieb Alban: > > On Fri, 3 Mar 2017 23:21:29 +0100 > > Richard Weinberger wrote: > > > >> Am 03.03.2017 um 15:11 schrieb Boris Brezillon: > And add a list of successfully added notifiers, along with

4.11-rc1 acpi stomping ext4 slabs

2017-03-06 Thread Nikolay Borisov
Hello, Booting 4.11-rc1 with kasan enabled and "slub_debug=F" produces the following errors: [7.070797] == [7.071724] BUG: KASAN: slab-out-of-bounds in filldir+0xc3/0x160 at addr 88006bc2b0ae [7.071724] Read of si

[PATCH][RESEND] ecryptfs: fix spelling mistake: "cadidate" -> "candidate"

2017-03-06 Thread Colin King
From: Colin Ian King trivial fix to spelling mistake in ecryptfs_printk message Signed-off-by: Colin Ian King --- fs/ecryptfs/keystore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ecryptfs/keystore.c b/fs/ecryptfs/keystore.c index 11d39ab..4bd9099 100644 --- a/fs/ec

Re: [PATCHv4 28/33] x86/mm: add support of additional page table level during early boot

2017-03-06 Thread Boris Ostrovsky
> diff --git a/arch/x86/include/asm/pgtable_64.h > b/arch/x86/include/asm/pgtable_64.h > index 9991224f6238..c9e41f1599dd 100644 > --- a/arch/x86/include/asm/pgtable_64.h > +++ b/arch/x86/include/asm/pgtable_64.h > @@ -14,15 +14,17 @@ > #include > #include > > +extern p4d_t level4_kernel_pg

Re: [PATCH 1/2] mm: use is_migrate_highatomic() to simplify the code

2017-03-06 Thread Andrew Morton
On Mon, 6 Mar 2017 14:38:33 +0100 Michal Hocko wrote: > On Fri 03-03-17 15:06:19, Andrew Morton wrote: > > On Fri, 3 Mar 2017 14:18:08 +0100 Michal Hocko wrote: > > > > > On Fri 03-03-17 19:10:13, Xishi Qiu wrote: > > > > Introduce two helpers, is_migrate_highatomic() and > > > > is_migrate_hi

[PATCH 5/7] asm-generic: introduce

2017-03-06 Thread Kirill A. Shutemov
Like with pgtable-nopud.h for 4-level paging, this new header is base for converting an architectures to properly folded p4d_t level. Signed-off-by: Kirill A. Shutemov --- include/asm-generic/pgtable-nop4d.h | 56 + include/asm-generic/pgtable-nopud.h | 43 +++

[PATCH V12 08/10] ras: acpi / apei: generate trace event for unrecognized CPER section

2017-03-06 Thread Tyler Baicar
UEFI spec allows for non-standard section in Common Platform Error Record. This is defined in section N.2.3 of UEFI version 2.5. Currently if the CPER section's type (UUID) does not match with any section type that the kernel knows how to parse, trace event is not generated for such section. And t

Re: [PATCH] uvc-gadget: Fix Set Interface (alternate setting) response behaviour

2017-03-06 Thread Laurent Pinchart
Hi Roger, Thank you for the patch. On Friday 03 Mar 2017 13:17:15 Roger Quadros wrote: > On alternate setting change, webcam gadget sends us a UVC_EVENT_STREAMON > or UVC_EVENT_STREAMOFF event. It expects delayed status response on > STREAMON event only but doesn't expect us to send that response

Re: [PATCHv4 18/33] x86/xen: convert __xen_pgd_walk() and xen_cleanmfnmap() to support p4d

2017-03-06 Thread Boris Ostrovsky
> +static int xen_p4d_walk(struct mm_struct *mm, p4d_t *p4d, > + int (*func)(struct mm_struct *mm, struct page *, enum pt_level), > + bool last, unsigned long limit) > +{ > + int i, nr, flush = 0; > + > + nr = last ? p4d_index(limit) + 1 : PTRS_PER_P4D; > + for

[PATCH V12 10/10] arm/arm64: KVM: add guest SEA support

2017-03-06 Thread Tyler Baicar
Currently external aborts are unsupported by the guest abort handling. Add handling for SEAs so that the host kernel reports SEAs which occur in the guest kernel. Signed-off-by: Tyler Baicar --- arch/arm/include/asm/kvm_arm.h | 10 ++ arch/arm/include/asm/system_misc.h | 5 +

[PATCH V12 06/10] acpi: apei: panic OS with fatal error status block

2017-03-06 Thread Tyler Baicar
From: "Jonathan (Zhixiong) Zhang" Even if an error status block's severity is fatal, the kernel does not honor the severity level and panic. With the firmware first model, the platform could inform the OS about a fatal hardware error through the non-NMI GHES notification type. The OS should pani

[PATCH V12 07/10] efi: print unrecognized CPER section

2017-03-06 Thread Tyler Baicar
UEFI spec allows for non-standard section in Common Platform Error Record. This is defined in section N.2.3 of UEFI version 2.5. Currently if the CPER section's type (UUID) does not match with one of the section types that the kernel knows how to parse, the section is skipped. Therefore, user is n

Re: [PATCH] Delete redundant return value check of platform_get_resource()

2017-03-06 Thread Tejun Heo
On Mon, Feb 27, 2017 at 10:41:18PM +0100, Belen Sarabia wrote: > Delete error handling from the result of a call to platform_get_resource() > when the value is immediately passed to devm_ioremap_resource(). > > Signed-off-by: Belen Sarabia Applied to libata/for-4.12. Thanks. -- tejun

[PATCH V12 09/10] trace, ras: add ARM processor error trace event

2017-03-06 Thread Tyler Baicar
Currently there are trace events for the various RAS errors with the exception of ARM processor type errors. Add a new trace event for such errors so that the user will know when they occur. These trace events are consistent with the ARM processor error section type defined in UEFI 2.6 spec section

Question about hwmon_attr_show_string

2017-03-06 Thread Peter Hüwe
Hi Guenter, I was wondering whether there was a particular reason why hwmon_attr_show_string passes only an "empty" pointer(pointer) to the ops- >read_string function rather than the buffer itself? Wouldn't this mean that in ops->read_string I'd have to reserve some space for the value on the h

[PATCH 6/7] mm: convert generic code to 5-level paging

2017-03-06 Thread Kirill A. Shutemov
Convert all non-architecture-specific code to 5-level paging. It's mostly mechanical adding handling one more page table level in places where we deal with pud_t. Signed-off-by: Kirill A. Shutemov --- drivers/misc/sgi-gru/grufault.c | 9 +- fs/userfaultfd.c| 6 +- include/as

[PATCH 3/7] asm-generic: introduce __ARCH_USE_5LEVEL_HACK

2017-03-06 Thread Kirill A. Shutemov
We are going to introduce to provide abstraction for properly (in opposite to 5level-fixup.h hack) folded p4d level. The new header will be included from pgtable-nopud.h. If an architecture uses , we cannot use 5level-fixup.h directly to quickly convert the architecture to 5-level paging as it wo

[PATCH 2/7] asm-generic: introduce 5level-fixup.h

2017-03-06 Thread Kirill A. Shutemov
We are going to switch core MM to 5-level paging abstraction. This is preparation step which adds As with 4level-fixup.h, the new header allows quickly make all architectures compatible with 5-level paging in core MM. In long run we would like to switch architectures to properly folded p4d level

[PATCH V12 05/10] acpi: apei: handle SEA notification type for ARMv8

2017-03-06 Thread Tyler Baicar
ARM APEI extension proposal added SEA (Synchronous External Abort) notification type for ARMv8. Add a new GHES error source handling function for SEA. If an error source's notification type is SEA, then this function can be registered into the SEA exception handler. That way GHES will parse and rep

[PATCH V12 03/10] efi: parse ARM processor error

2017-03-06 Thread Tyler Baicar
Add support for ARM Common Platform Error Record (CPER). UEFI 2.6 specification adds support for ARM specific processor error information to be reported as part of the CPER records. This provides more detail on for processor error logs. Signed-off-by: Tyler Baicar CC: Jonathan (Zhixiong) Zhang R

[PATCH 4/7] arch, mm: convert all architectures to use 5level-fixup.h

2017-03-06 Thread Kirill A. Shutemov
If an architecture uses 4level-fixup.h we don't need to do anything as it includes 5level-fixup.h. If an architecture uses pgtable-nop*d.h, define __ARCH_USE_5LEVEL_HACK before inclusion of the header. It makes asm-generic code to use 5level-fixup.h. If an architecture has 4-level paging or folds

[PATCH V12 04/10] arm64: exception: handle Synchronous External Abort

2017-03-06 Thread Tyler Baicar
SEA exceptions are often caused by an uncorrected hardware error, and are handled when data abort and instruction abort exception classes have specific values for their Fault Status Code. When SEA occurs, before killing the process, report the error in the kernel logs. Update fault_info[] with spec

[PATCH 0/7] 5-level paging: prepare generic code

2017-03-06 Thread Kirill A. Shutemov
As per Linus' suggestion, I'm splitting generic part of 5-level paging enabling into separate patchset. I believe it's relatively low-risk and can be applied to v4.11. Merging it now would make x86 5-level paging enabling in v4.12 easier. The first patch is actually x86-specific: detect 5-level

[PATCH 7/7] mm: introduce __p4d_alloc()

2017-03-06 Thread Kirill A. Shutemov
For full 5-level paging we need a helper to allocate p4d page table. Signed-off-by: Kirill A. Shutemov --- mm/memory.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/mm/memory.c b/mm/memory.c index 7f1c2163b3ce..235ba51b2fbf 100644 --- a/mm/memory.c +++ b/mm/memory.

[PATCH 1/7] x86/cpufeature: Add 5-level paging detection

2017-03-06 Thread Kirill A. Shutemov
Look for 'la57' in /proc/cpuinfo to see if your machine supports 5-level paging. Signed-off-by: Kirill A. Shutemov --- arch/x86/include/asm/cpufeatures.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/include/asm/cpufeatures.h b/arch/x86/include/asm/cpufeatures.h

[PATCH V12 01/10] acpi: apei: read ack upon ghes record consumption

2017-03-06 Thread Tyler Baicar
A RAS (Reliability, Availability, Serviceability) controller may be a separate processor running in parallel with OS execution, and may generate error records for consumption by the OS. If the RAS controller produces multiple error records, then they may be overwritten before the OS has consumed th

[PATCH V12 02/10] ras: acpi/apei: cper: generic error data entry v3 per ACPI 6.1

2017-03-06 Thread Tyler Baicar
Currently when a RAS error is reported it is not timestamped. The ACPI 6.1 spec adds the timestamp field to the generic error data entry v3 structure. The timestamp of when the firmware generated the error is now being reported. Signed-off-by: Tyler Baicar CC: Jonathan (Zhixiong) Zhang Reviewed-

[PATCH V12 00/10] Add UEFI 2.6 and ACPI 6.1 updates for RAS on ARM64

2017-03-06 Thread Tyler Baicar
When a memory error, CPU error, PCIe error, or other type of hardware error that's covered by RAS occurs, firmware should populate the shared GHES memory location with the proper GHES structures to notify the OS of the error. For example, platforms that implement firmware first handling may impleme

Re: [PATCH] workqueue: use setup_deferrable_timer

2017-03-06 Thread Tejun Heo
On Sun, Feb 26, 2017 at 08:58:21AM +0800, Geliang Tang wrote: > Use setup_deferrable_timer() instead of init_timer_deferrable() to > simplify the code. > > Signed-off-by: Geliang Tang Applied to wq/for-4.12. Thanks. -- tejun

Re: [PATCHv4 28/33] x86/mm: add support of additional page table level during early boot

2017-03-06 Thread Kirill A. Shutemov
On Mon, Mar 06, 2017 at 03:05:49PM -0500, Boris Ostrovsky wrote: > > > diff --git a/arch/x86/include/asm/pgtable_64.h > > b/arch/x86/include/asm/pgtable_64.h > > index 9991224f6238..c9e41f1599dd 100644 > > --- a/arch/x86/include/asm/pgtable_64.h > > +++ b/arch/x86/include/asm/pgtable_64.h > > @@

Re: ata: WARNING in ata_sff_qc_issue

2017-03-06 Thread Tejun Heo
Hello, Applied the following to libata/for-4.11-fixes. Thanks. -- 8< -- >From 0580b762a4d6b70817476b90042813f8573283fa Mon Sep 17 00:00:00 2001 From: Tejun Heo Date: Mon, 6 Mar 2017 15:26:54 -0500 Subject: [PATCH] libata: drop WARN from protocol error in ata_sff_qc_issue() ata_sff_qc_i

Re: [i2c-tools PATCH v2] i2ctransfer: add new tool

2017-03-06 Thread Uwe Kleine-König
Hey Wolfram, On Mon, Mar 06, 2017 at 03:29:31PM +0100, Wolfram Sang wrote: > S, finally, finally, here is another version of my 'i2ctransfer' tool. > This > time, I'll keep at it until it is upstream. It was lying around long enough. > Thanks must go to Renesas for further funding this work!

Re: [PATCH] ata: constify of_device_id structures

2017-03-06 Thread Tejun Heo
On Thu, Mar 02, 2017 at 01:03:28AM +0530, Bhumika Goyal wrote: > Declare of_device_id structures as const as they are either passed to > the macro MODULE_DEVICE_TABLE or stored in the of_match_table field of a > device_driver structure. This field is of type const, so of_device_id > structures havi

Re: [PATCH v6 1/3] drm_fourcc: Add new P010, P016 video format

2017-03-06 Thread Ayaka
從我的 iPad 傳送 > Ville Syrjälä 於 2017年3月7日 上午2:34 寫道: > >> On Tue, Mar 07, 2017 at 01:58:23AM +0800, Ayaka wrote: >> >> >> 從我的 iPad 傳送 >> Ville Syrjälä 於 2017年3月6日 下午9:06 寫道: On Sun, Mar 05, 2017 at 06:00:31PM +0800, Randy Li wrote: P010 is a planar 4:2:0 YUV with interle

Re: [PATCH 0/3] arm,arm64: dts: uniphier: remove skeleton.dtsi inclusion and fix warnings

2017-03-06 Thread Masahiro Yamada
2017-02-26 14:04 GMT+09:00 Masahiro Yamada : > - The inclusion of skeleton.dtsi is deprecated. > Specify #address-cells and #size-cells explicitly > > - If built with W=1, many warnings are displayed. Fix them. > > > Masahiro Yamada (3): > ARM: dts: uniphier: remove skeleton.dtsi inclusi

Re: [PATCH v2] selinux: check for address length in selinux_socket_bind()

2017-03-06 Thread Eric Dumazet
On Mon, 2017-03-06 at 19:46 +0100, Alexander Potapenko wrote: > KMSAN (KernelMemorySanitizer, a new error detection tool) reports use of > uninitialized memory in selinux_socket_bind(): > ... > Signed-off-by: Alexander Potapenko > --- > Changes since v1: > - fixed patch description > - fixed ad

Re: [PATCH] cgroups: censor kernel pointer in debug files

2017-03-06 Thread Tejun Heo
On Sat, Feb 25, 2017 at 01:56:48AM -0800, Kees Cook wrote: > As found in grsecurity, this avoids exposing a kernel pointer through > the cgroup debug entries. > > Signed-off-by: Kees Cook Applied to cgroup/for-4.11-fixes. Thanks. -- tejun

[PATCH 4/7] xen/9pfs: connect to the backend

2017-03-06 Thread Stefano Stabellini
Implement functions to handle the xenbus handshake. Upon connection, allocate the rings according to the protocol specification. Initialize a work_struct and a wait_queue. The work_struct will be used to schedule work upon receiving an event channel notification from the backend. The wait_queue wi

[PATCH 3/7] xen/9pfs: introduce Xen 9pfs transport driver

2017-03-06 Thread Stefano Stabellini
Introduce the Xen 9pfs transport driver: add struct xenbus_driver to register as a xenbus driver and add struct p9_trans_module to register as v9fs driver. All functions are empty stubs for now. Signed-off-by: Stefano Stabellini CC: boris.ostrov...@oracle.com CC: jgr...@suse.com CC: Eric Van Hen

[PATCH 5/7] xen/9pfs: send requests to the backend

2017-03-06 Thread Stefano Stabellini
Implement struct p9_trans_module create and close functions by looking at the available Xen 9pfs frontend-backend connections. We don't expect many frontend-backend connections, thus walking a list is OK. Send requests to the backend by copying each request to one of the available rings (each fron

[PATCH 0/2] Add and Use NMI LAST call chain to eliminate WARNING message

2017-03-06 Thread Mike Travis
Patch 1 adds a new NMI_LAST call chain that mimics the current NMI_UNKNOWN call chain except it eliminates the WARNING message about multiple NMI handlers registering on this call chain. Patch 2 moves the UV NMI handler from using the NMI_UNKNOWN call chain to this new NMI_LAST call chain. --

[PATCH 1/2] x86/platform: Add a low priority low frequency NMI call chain

2017-03-06 Thread Mike Travis
Add a new NMI call chain that is called last after all other NMI handlers have been checked and did not "handle" the NMI. This mimics the current NMI_UNKNOWN call chain except it eliminates the WARNING message about multiple NMI handlers registering on this call chain. This call chain dramaticall

Re: [PATCH cgroup/for-4.10-fixes] cgroup/pids: remove spurious suspicious RCU usage warning

2017-03-06 Thread Tejun Heo
On Wed, Mar 01, 2017 at 03:39:07PM -0500, Tejun Heo wrote: > pids_can_fork() is special in that the css association is guaranteed > to be stable throughout the function and thus doesn't need RCU > protection around task_css access. When determining the css to charge > the pid, task_css_check() is

[PATCH 7/7] xen/9pfs: build 9pfs Xen transport driver

2017-03-06 Thread Stefano Stabellini
This patch adds a Kconfig option and Makefile support for building the 9pfs Xen driver. Signed-off-by: Stefano Stabellini CC: boris.ostrov...@oracle.com CC: jgr...@suse.com CC: Eric Van Hensbergen CC: Ron Minnich CC: Latchesar Ionkov CC: v9fs-develo...@lists.sourceforge.net --- net/9p/Kconfig

[PATCH 1/7] xen: import new ring macros in ring.h

2017-03-06 Thread Stefano Stabellini
Sync the ring.h file with upstream Xen, to introduce the new ring macros. They will be used by the Xen transport for 9pfs. Signed-off-by: Stefano Stabellini CC: konrad.w...@oracle.com CC: boris.ostrov...@oracle.com CC: jgr...@suse.com --- NB: The new macros have not been committed to Xen yet. Do

[PATCH 2/7] xen: introduce the header file for the Xen 9pfs transport protocol

2017-03-06 Thread Stefano Stabellini
It uses the new ring.h macros to declare rings and interfaces. Signed-off-by: Stefano Stabellini CC: konrad.w...@oracle.com CC: boris.ostrov...@oracle.com CC: jgr...@suse.com --- include/xen/interface/io/9pfs.h | 40 1 file changed, 40 insertions(+) crea

[PATCH 6/7] xen/9pfs: receive responses

2017-03-06 Thread Stefano Stabellini
Upon receiving a notification from the backend, schedule the p9_xen_response work_struct. p9_xen_response checks if any responses are available, if so, it reads them one by one, calling p9_client_cb to send them up to the 9p layer (p9_client_cb completes the request). Handle the ring following the

[PATCH v3] MIPS: Fix build breakage caused by header file changes

2017-03-06 Thread Guenter Roeck
Since commit f3ac60671954 ("sched/headers: Move task-stack related APIs from to ") and commit f780d89a0e82 ("sched/headers: Remove from "), various mips builds fail as follows. arch/mips/kernel/smp-mt.c: In function ‘vsmp_boot_secondary’: arch/mips/include/asm/processor.h:384:41: error:

Re: [REGRESSION][v4.9.y][v4.10.y] Input: ALPS - set DualPoint flag for 74 03 28 devices

2017-03-06 Thread dmitry.torok...@gmail.com
Hi Nick, On Mon, Mar 06, 2017 at 03:59:00PM +, Nick Fletcher wrote: > HI, > > I installed the two drivers as requested. Results of dmesg | grep > 'two-finger' below.. Could you please also tell us whether the devoice only has touchpad, or if it has touchpad/starckstick combo? Thanks. --

Re: [PATCH v4] blkcg: allocate struct blkcg_gq outside request queue spinlock

2017-03-06 Thread Tejun Heo
On Sun, Mar 05, 2017 at 06:12:43AM -0800, Tahsin Erdogan wrote: > blkg_conf_prep() currently calls blkg_lookup_create() while holding > request queue spinlock. This means allocating memory for struct > blkcg_gq has to be made non-blocking. This causes occasional -ENOMEM > failures in call paths lik

Re: [PATCH v2] MIPS: Fix build breakage caused by header file changes

2017-03-06 Thread Guenter Roeck
On Sun, Mar 05, 2017 at 09:53:20PM -0800, Guenter Roeck wrote: > Since commit f3ac60671954 ("sched/headers: Move task-stack related > APIs from to ") and commit > f780d89a0e82 ("sched/headers: Remove from > "), various mips builds fail as follows. > > arch/mips/kernel/smp-mt.c: In function ‘vsmp

[PATCH 0/7] Xen transport for 9pfs frontend driver

2017-03-06 Thread Stefano Stabellini
Hi all, This patch series implements a new transport for 9pfs, aimed at Xen systems. The transport is based on a traditional Xen frontend and backend drivers pair. This patch series implements the frontend, which typically runs in a regular unprivileged guest. I'll follow up with another series

Re: [PATCH 11/19] kernel: convert cgroup_namespace.count from atomic_t to refcount_t

2017-03-06 Thread Tejun Heo
On Mon, Feb 20, 2017 at 12:19:00PM +0200, Elena Reshetova wrote: > refcount_t type and corresponding API should be > used instead of atomic_t when the variable is used as > a reference counter. This allows to avoid accidental > refcounter overflows that might lead to use-after-free > situations. >

Re: [PATCH] Input: elan_i2c - add ASUS EeeBook X205TA special touchpad fw

2017-03-06 Thread Dmitry Torokhov
On Sun, Mar 05, 2017 at 03:13:02AM +0100, Matjaz Hegedic wrote: > EeeBook X205TA is yet another ASUS device with a special touchpad > firmware that needs to be accounted for during initialization, or > else the touchpad will go into an invalid state upon suspend/resume. > Adding the appropriate ic_

Re: [PATCH 12/19] kernel: convert css_set.refcount from atomic_t to refcount_t

2017-03-06 Thread Tejun Heo
Hello, On Mon, Feb 20, 2017 at 12:19:01PM +0200, Elena Reshetova wrote: > @@ -134,10 +135,13 @@ static inline void put_css_set(struct css_set *cset) >* can see it. Similar to atomic_dec_and_lock(), but for an >* rwlock >*/ > - if (atomic_add_unless(&cset->refcount, -1,

Kernel without RTC

2017-03-06 Thread Shah, Nehal-bakulchandra
Hi, Currently we are having hardware which does not have RTC. It is single processor system. However it does have TSC timer. Now, how to use scheduler with only TSC as current kernel scheduler leverage the RTC for scheduling? I had seen one old patch http://marc.info/?l=linux-kernel&m=11201320

Re: [RFC] remove support for AVR32 architecture

2017-03-06 Thread Hans-Christian Noren Egtvedt
Around Sun 05 Mar 2017 21:58:16 -0800 or thereabout, Håvard Skinnemoen wrote: > On Wed, Mar 1, 2017 at 12:44 PM, Hans-Christian Noren Egtvedt > wrote: >> I have prepared three patches in my for-linus branch in git tree >> https://git.kernel.org/cgit/linux/kernel/git/egtvedt/linux-avr32.git > > Ac

Re: [bdi_unregister] 165a5e22fa INFO: task swapper:1 blocked for more than 120 seconds.

2017-03-06 Thread James Bottomley
On Mon, 2017-03-06 at 17:13 +0100, Jan Kara wrote: > On Mon 06-03-17 07:44:55, James Bottomley wrote: > > On Mon, 2017-03-06 at 16:14 +0100, Jan Kara wrote: > > > On Mon 06-03-17 06:35:21, James Bottomley wrote: > > > > On Mon, 2017-03-06 at 13:01 +0100, Jan Kara wrote: > > > > > On Mon 06-03-17 11

Re: [PATCH] auxdisplay: img-ascii-lcd: add missing sentinel entry in img_ascii_lcd_matches

2017-03-06 Thread Dmitry Torokhov
On Mon, Mar 06, 2017 at 03:58:04PM -0300, Javier Martinez Canillas wrote: > Hello Paul, > > On 03/06/2017 03:54 PM, Paul Burton wrote: > > Hi Javier, > > > > On Monday, 6 March 2017 10:09:09 PST Javier Martinez Canillas wrote: > >> On 02/24/2017 06:56 PM, Paul Burton wrote: > >>> On Monday, 20 Fe

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