[PATCH v2] macintosh: Add module license to ans-lcd

2018-01-30 Thread Larry Finger
In kernel 4.15, the modprobe step on my PowerBook G4 started complaining that there was no module license for ans-lcd. Signed-off-by: Larry Finger --- v2 - fixed typo in commit message --- drivers/macintosh/ans-lcd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/macintosh/ans-lcd.c

Re: [PATCH v4 0/7] typec: tcpm: Add sink side support for PPS

2018-01-30 Thread Guenter Roeck
On 01/30/2018 05:25 AM, Heikki Krogerus wrote: On Tue, Jan 02, 2018 at 03:50:48PM +, Adam Thomson wrote: This patch set adds sink side support for the PPS feature introduced in the USB PD 3.0 specification. The source PPS supply is represented using the Power Supply framework to provide acc

[PATCH] ARM: dts: am33xx: add PDU001 board

2018-01-30 Thread Felix Brack
This patch adds support for the PDU001 board from EETS GmbH. The board is built around the byteENGINE module AM335X from bytes at work AG which in turn is built around a Sitara SoC from TI. Signed-off-by: Felix Brack --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/am335x-pdu00

Re: [PATCH 1/4] i2c: xlp9xx: return ENXIO on slave address NACK

2018-01-30 Thread George Cherian
Gentle Ping on this series. On 01/18/2018 11:09 AM, George Cherian wrote: From: Dmitry Bazhenov Fix the driver violation of the common practice to return ENXIO error on a slave address NACK. Signed-off-by: Dmitry Bazhenov Signed-off-by: George Cherian --- drivers/i2c/busses/i2c-xlp9xx.c |

Re: [PATCH v2 1/2] drm/bridge/synopsys: dsi: Add a warning msg on dsi read requests

2018-01-30 Thread Philippe CORNU
Hi Archit, And many thanks, Philippe :-) On 01/30/2018 03:09 PM, Archit Taneja wrote: > > > On 01/26/2018 06:14 AM, Brian Norris wrote: >> On Thu, Jan 25, 2018 at 11:37:59AM +0100, Philippe Cornu wrote: >>> The dcs/generic dsi read feature is not yet implemented so it >>> is important to warn t

[PATCH v2] x86/cpuid: Fix up "virtual" IBRS/IBPB/STIBP feature bits on Intel

2018-01-30 Thread David Woodhouse
Despite the fact that all the other code there seems to be doing it, just using set_cpu_cap() in early_intel_init() doesn't actually work. For CPUs with PKU support, setup_pku() calls get_cpu_cap() after c->c_init() has set those feature bits. That resets those bits back to what was queried from t

Re: v4.15 and I/O hang with BFQ

2018-01-30 Thread Oleksandr Natalenko
Hi. 30.01.2018 09:19, Ming Lei wrote: Hi, We knew there is IO hang issue on BFQ over USB-storage wrt. blk-mq, and last time I found it is inside BFQ. You can try the debug patch in the following link[1] to see if it is same with the previous report[1][2]: [1] https://marc.info/?l=linux-block&m=

[PATCH] lightnvm: remove chnl_offset in nvme_nvm_identity

2018-01-30 Thread Matias Bjørling
The identity structure is initialized to zero in the beginning of the nvme_nvm_identity function. The chnl_offset is separately set to zero. Since both the variable and assignment is never changed, remove them. Signed-off-by: Matias Bjørling --- drivers/nvme/host/lightnvm.c | 4 +--- 1 file chan

Re: [PATCH v4 5/7] x86/irq: Count Hyper-V reenlightenment interrupts

2018-01-30 Thread Thomas Gleixner
On Tue, 30 Jan 2018, Radim Krčmář wrote: > 2018-01-29 22:48+0100, Thomas Gleixner: > > On Wed, 24 Jan 2018, Radim Krčmář wrote: > > > 2018-01-24 14:23+0100, Vitaly Kuznetsov: > > > > Hyper-V reenlightenment interrupts arrive when the VM is migrated, we're > > > > not supposed to see many of them. H

Re: [PATCH v2 4/5] selinux: Use pointer to switch policydb and sidtab

2018-01-30 Thread Stephen Smalley
On Fri, 2018-01-26 at 15:32 +0100, peter.enderb...@sony.com wrote: > From: Peter Enderborg > > This i preparation for switching to RCU locks. To be able to use > RCU we need atomic switched pointer. This adds the dynamic > memory copying to be a single pointer. It copy all the > data structures i

Re: [PATCH v3 2/4] KVM: x86: Add IBPB support

2018-01-30 Thread David Woodhouse
On Tue, 2018-01-30 at 08:22 -0600, Tom Lendacky wrote: > > @@ -918,6 +919,9 @@ static void svm_vcpu_init_msrpm(u32 *msrpm) > >   > >   set_msr_interception(msrpm, direct_access_msrs[i].index, 1, 1); > >   } > > + > > + if (boot_cpu_has(X86_FEATURE_IBPB)) > > + set_msr_interc

Re: [RFC] mm/migrate: Consolidate page allocation helper functions

2018-01-30 Thread Michal Hocko
On Tue 30-01-18 10:36:42, Anshuman Khandual wrote: > Allocation helper functions for migrate_pages() remmain scattered with > similar names making them really confusing. Rename these functions based > on the context for the migration and move them all into common migration > header. Functionality r

[GIT PULL] Please pull NFS client changes

2018-01-30 Thread Trond Myklebust
Hi Linus, The following changes since commit a8750ddca918032d6349adbf9a4b6555e7db20da: Linux 4.15-rc8 (2018-01-14 15:32:30 -0800) are available in the Git repository at: git://git.linux-nfs.org/projects/trondmy/linux-nfs.git tags/nfs-for-4.16-1 for you to fetch changes up to e231c6879cfd44

Re: v4.15 and I/O hang with BFQ

2018-01-30 Thread Ming Lei
On Tue, Jan 30, 2018 at 03:30:28PM +0100, Oleksandr Natalenko wrote: > Hi. > ... >systemd-udevd-271 [000] 4.311033: bfq_insert_requests: insert > rq->0 >systemd-udevd-271 [000] ...1 4.311037: blk_mq_do_dispatch_sched: > not get rq, 1 > cfdisk-408 [000]

Re: [netfilter-core] kernel panic: Out of memory and no killable processes... (2)

2018-01-30 Thread Michal Hocko
On Tue 30-01-18 15:01:11, Florian Westphal wrote: > > From d48e950f1b04f234b57b9e34c363bdcfec10aeee Mon Sep 17 00:00:00 2001 > > From: Michal Hocko > > Date: Tue, 30 Jan 2018 14:51:07 +0100 > > Subject: [PATCH] net/netfilter/x_tables.c: make allocation less aggressive > > Acked-by: Florian Westph

Re: [PATCH V3 0/5] bugs fix for large PEBS mmap read and rdpmc read

2018-01-30 Thread Liang, Kan
On 1/30/2018 4:16 AM, Stephane Eranian wrote: Hi, On Mon, Jan 29, 2018 at 8:29 AM, wrote: From: Kan Liang -- Changes since V2: - Refined the changelog - Introduced specific read function for large PEBS. The previous generic PEBS read function is confusing. Disabled PMU in

Re: [PATCH 4/4] rtc: isl1208: add support for isl1219 with hwmon for tamper detection

2018-01-30 Thread Rob Herring
On Tue, Jan 30, 2018 at 2:56 AM, Denis OSTERLAND wrote: > Am Montag, den 29.01.2018, 17:41 -0600 schrieb Rob Herring: >> On Tue, Jan 23, 2018 at 01:18:01PM +0100, Michael Grzeschik wrote: >> > >> > We add support for the ISL1219 chip that got an integrated tamper >> > detection function. This patc

Re: [PATCH 4/4] rtc: isl1208: add support for isl1219 with hwmon for tamper detection

2018-01-30 Thread Rob Herring
On Tue, Jan 30, 2018 at 8:41 AM, Rob Herring wrote: > On Tue, Jan 30, 2018 at 2:56 AM, Denis OSTERLAND > wrote: >> Am Montag, den 29.01.2018, 17:41 -0600 schrieb Rob Herring: >>> On Tue, Jan 23, 2018 at 01:18:01PM +0100, Michael Grzeschik wrote: >>> > >>> > We add support for the ISL1219 chip tha

Re: [RFC,05/10] x86/speculation: Add basic IBRS support infrastructure

2018-01-30 Thread Christophe de Dinechin
> On 30 Jan 2018, at 13:11, Christian Borntraeger > wrote: > > > > On 01/30/2018 01:23 AM, Linus Torvalds wrote: > [...] >> >> So I actually have a _different_ question to the virtualization >> people. This includes the vmware people, but it also obviously >> incldues the Amazon AWS kind of

[tip:x86/pti] x86/mm: Fix overlap of i386 CPU_ENTRY_AREA with FIX_BTMAP

2018-01-30 Thread tip-bot for William Grant
Commit-ID: 55f49fcb879fbeebf2a8c1ac7c9e6d90df55f798 Gitweb: https://git.kernel.org/tip/55f49fcb879fbeebf2a8c1ac7c9e6d90df55f798 Author: William Grant AuthorDate: Tue, 30 Jan 2018 22:22:55 +1100 Committer: Thomas Gleixner CommitDate: Tue, 30 Jan 2018 15:30:35 +0100 x86/mm: Fix overlap o

Re: [PATCH v6 07/36] nds32: Exception handling

2018-01-30 Thread Greentime Hu
Hi, Arnd: 2018-01-30 21:33 GMT+08:00 Arnd Bergmann : > On Tue, Jan 30, 2018 at 11:01 AM, Vincent Chen wrote: >> 2018-01-24 19:10 GMT+08:00 Arnd Bergmann : >>> On Wed, Jan 24, 2018 at 12:09 PM, Arnd Bergmann wrote: On Wed, Jan 24, 2018 at 11:53 AM, Vincent Chen wrote: > 2018-01-18 18:14

[tip:x86/pti] x86/spectre: Check CONFIG_RETPOLINE in command line parser

2018-01-30 Thread tip-bot for Dou Liyang
Commit-ID: 9471eee9186a46893726e22ebb54cade3f9bc043 Gitweb: https://git.kernel.org/tip/9471eee9186a46893726e22ebb54cade3f9bc043 Author: Dou Liyang AuthorDate: Tue, 30 Jan 2018 14:13:50 +0800 Committer: Thomas Gleixner CommitDate: Tue, 30 Jan 2018 15:30:35 +0100 x86/spectre: Check CONFI

Re: [PATCH v6 01/41] dt-bindings: clock: Add new bindings for TI Davinci PLL clocks

2018-01-30 Thread Rob Herring
On Mon, Jan 29, 2018 at 3:14 PM, David Lechner wrote: > On 01/29/2018 01:53 PM, Rob Herring wrote: >> >> On Sat, Jan 20, 2018 at 11:13:40AM -0600, David Lechner wrote: >>> >>> This adds a new binding for the PLL IP blocks in the mach-davinci >>> family of processors. Currently, only da850 has devi

Re: [PATCH 3.18 00/52] 3.18.93-stable review

2018-01-30 Thread Greg Kroah-Hartman
On Tue, Jan 30, 2018 at 06:19:15AM -0800, Guenter Roeck wrote: > On 01/29/2018 04:56 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 3.18.93 release. > > There are 52 patches in this series, all will be posted as a response > > to this one. If anyone has any

Re: [RFC,05/10] x86/speculation: Add basic IBRS support infrastructure

2018-01-30 Thread Christian Borntraeger
On 01/30/2018 03:46 PM, Christophe de Dinechin wrote: > > >> On 30 Jan 2018, at 13:11, Christian Borntraeger >> wrote: >> >> >> >> On 01/30/2018 01:23 AM, Linus Torvalds wrote: >> [...] >>> >>> So I actually have a _different_ question to the virtualization >>> people. This includes the vmwar

Re: [PATCH v2 04/16] arm/arm64: KVM: Add PSCI_VERSION helper

2018-01-30 Thread Marc Zyngier
On 30/01/18 13:15, Robin Murphy wrote: > On 29/01/18 17:45, Marc Zyngier wrote: >> As we're about to trigger a PSCI version explosion, it doesn't >> hurt to introduce a PSCI_VERSION helper that is going to be >> used everywhere. >> >> Signed-off-by: Marc Zyngier >> --- >> include/kvm/arm_psci.h

Re: [PATCH 4.14 00/71] 4.14.16-stable review

2018-01-30 Thread Greg Kroah-Hartman
On Tue, Jan 30, 2018 at 06:21:27AM -0800, Guenter Roeck wrote: > On 01/29/2018 04:56 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.14.16 release. > > There are 71 patches in this series, all will be posted as a response > > to this one. If anyone has any

[PATCH] esp4: remove redundant initialization of pointer esph

2018-01-30 Thread Colin King
From: Colin Ian King Pointer esph is being assigned a value that is never read, esph is re-assigned and only read inside an if statement, hence the initialization is redundant and can be removed. Cleans up clang warning: net/ipv4/esp4.c:657:21: warning: Value stored to 'esph' during its initiali

[tip:x86/pti] x86/entry/64: Remove the SYSCALL64 fast path

2018-01-30 Thread tip-bot for Andy Lutomirski
Commit-ID: 21d375b6b34ff511a507de27bf316b3dde6938d9 Gitweb: https://git.kernel.org/tip/21d375b6b34ff511a507de27bf316b3dde6938d9 Author: Andy Lutomirski AuthorDate: Sun, 28 Jan 2018 10:38:49 -0800 Committer: Thomas Gleixner CommitDate: Tue, 30 Jan 2018 15:30:36 +0100 x86/entry/64: Remov

[tip:x86/pti] x86/entry/64: Push extra regs right away

2018-01-30 Thread tip-bot for Andy Lutomirski
Commit-ID: d1f7732009e0549eedf8ea1db948dc37be77fd46 Gitweb: https://git.kernel.org/tip/d1f7732009e0549eedf8ea1db948dc37be77fd46 Author: Andy Lutomirski AuthorDate: Sun, 28 Jan 2018 10:38:49 -0800 Committer: Thomas Gleixner CommitDate: Tue, 30 Jan 2018 15:30:36 +0100 x86/entry/64: Push

[GIT PULL] GPIO bulk changed for the v4.16 kernel cycle

2018-01-30 Thread Linus Walleij
Hi Linus, here is the GPIO big pull request for the v4.16 cycle. It is pretty calm this time around I think. I even got time to get to things like starting to clean up header includes. The details are in the signed tag as usual. Please pull it in! Yours, Linus Walleij The following changes si

[tip:x86/pti] x86/asm: Move 'status' from thread_struct to thread_info

2018-01-30 Thread tip-bot for Andy Lutomirski
Commit-ID: 37a8f7c38339b22b69876d6f5a0ab851565284e3 Gitweb: https://git.kernel.org/tip/37a8f7c38339b22b69876d6f5a0ab851565284e3 Author: Andy Lutomirski AuthorDate: Sun, 28 Jan 2018 10:38:50 -0800 Committer: Thomas Gleixner CommitDate: Tue, 30 Jan 2018 15:30:36 +0100 x86/asm: Move 'stat

Re: [PATCH] x86/cpuid: Fix up "virtual" IBRS/IBPB/STIBP feature bits on Intel

2018-01-30 Thread Alan Cox
On Tue, 30 Jan 2018 06:01:43 -0800 Arjan van de Ven wrote: > On 1/30/2018 5:11 AM, Borislav Petkov wrote: > > On Tue, Jan 30, 2018 at 01:57:21PM +0100, Thomas Gleixner wrote: > >> So much for the theory. That's not going to work. If the boot cpu has the > >> feature then the alternatives will h

Re: [RFC,05/10] x86/speculation: Add basic IBRS support infrastructure

2018-01-30 Thread Christophe de Dinechin
> On 30 Jan 2018, at 15:52, Christian Borntraeger > wrote: > > > > On 01/30/2018 03:46 PM, Christophe de Dinechin wrote: >> >> >>> On 30 Jan 2018, at 13:11, Christian Borntraeger >>> wrote: >>> >>> >>> >>> On 01/30/2018 01:23 AM, Linus Torvalds wrote: >>> [...] So I actuall

Re: [PATCH v4.15-rc9] sched, cgroup: Don't reject lower cpu.max on ancestors

2018-01-30 Thread Tejun Heo
Hello, On Tue, Jan 30, 2018 at 11:21:56AM +0100, Peter Zijlstra wrote: > afaiu the existing code does exactly the opposite, it forces the > descendants to configure less than the parent allows. > > You're taking out an error condition and silently allowing descentant > misconfiguration. How does

Re: [PATCH 05/16] arm64: Add flags to check the safety of a capability for late CPU

2018-01-30 Thread Dave Martin
On Tue, Jan 30, 2018 at 11:17:38AM +, Suzuki K Poulose wrote: > On 26/01/18 10:10, Dave Martin wrote: > >On Tue, Jan 23, 2018 at 12:27:58PM +, Suzuki K Poulose wrote: > >>Add two different flags to indicate if the conflict of a capability > >>on a late CPU with the current system state > >>

Re: [PATCH] x86/cpuid: Fix up "virtual" IBRS/IBPB/STIBP feature bits on Intel

2018-01-30 Thread David Woodhouse
On Tue, 2018-01-30 at 14:54 +, Alan Cox wrote: > The only case I can think of where you'd get a non boot processor that > didn't have the same microcode loaded as the rest on entry to the OS would > be in a system where it was possibly to phyically hot plug processors > post boot. > > There

Re: [PATCH v2] drm/stm: drv: Improve data transfers

2018-01-30 Thread Laurent Pinchart
Hi Philippe, Thank you for the patch. On Tuesday, 30 January 2018 12:42:00 EET Philippe Cornu wrote: > To optimize data transfers, align pitch on 128 bytes & height > on 4 bytes. This optimization is not applicable on hw without MMU. > > Signed-off-by: Yannick Fertre > Signed-off-by: Vincent Ab

Re: [PATCH V3 0/5] bugs fix for large PEBS mmap read and rdpmc read

2018-01-30 Thread Liang, Kan
On 1/30/2018 8:39 AM, Jiri Olsa wrote: On Tue, Jan 30, 2018 at 01:16:39AM -0800, Stephane Eranian wrote: Hi, On Mon, Jan 29, 2018 at 8:29 AM, wrote: From: Kan Liang -- Changes since V2: - Refined the changelog - Introduced specific read function for large PEBS. The previous

Re: [PATCH v2] drm/stm: drv: Improve data transfers

2018-01-30 Thread Laurent Pinchart
Hi Benjamin, On Tuesday, 30 January 2018 12:51:25 EET Benjamin Gaignard wrote: > 2018-01-30 11:42 GMT+01:00 Philippe Cornu : > > To optimize data transfers, align pitch on 128 bytes & height > > on 4 bytes. This optimization is not applicable on hw without MMU. > > > > Signed-off-by: Yannick Fert

Re: [PATCH] iio: adc: STM32_DFSDM_ADC should depend on HAS_DMA

2018-01-30 Thread Mark Brown
On Tue, Jan 30, 2018 at 02:21:46PM +0100, Geert Uytterhoeven wrote: > If NO_DMA=y: > > ERROR: "bad_dma_ops" [drivers/iio/adc/stm32-dfsdm-adc.ko] undefined! > > Add a dependency on HAS_DMA to fix this. Once again I have to ask why we're doing this per driver and not having the few architectur

Re: [PATCH V3 0/5] bugs fix for large PEBS mmap read and rdpmc read

2018-01-30 Thread Jiri Olsa
On Tue, Jan 30, 2018 at 09:59:15AM -0500, Liang, Kan wrote: > > > On 1/30/2018 8:39 AM, Jiri Olsa wrote: > > On Tue, Jan 30, 2018 at 01:16:39AM -0800, Stephane Eranian wrote: > > > Hi, > > > > > > On Mon, Jan 29, 2018 at 8:29 AM, wrote: > > > > > > > > From: Kan Liang > > > > > > > > --

Re: [PATCH 08/16] arm64: capabilities: Group handling of features and errata

2018-01-30 Thread Dave Martin
On Mon, Jan 29, 2018 at 05:22:26PM +, Suzuki K Poulose wrote: > On 29/01/18 17:14, Dave Martin wrote: > >On Fri, Jan 26, 2018 at 12:31:18PM +, Suzuki K Poulose wrote: > >>On 26/01/18 11:47, Dave Martin wrote: > >>>On Tue, Jan 23, 2018 at 12:28:01PM +, Suzuki K Poulose wrote: > So fa

Re: [PATCH v5 0/3] livepatch: introduce atomic replace

2018-01-30 Thread Evgenii Shatokhin
On 30.01.2018 17:03, Petr Mladek wrote: On Fri 2018-01-26 14:29:36, Evgenii Shatokhin wrote: On 26.01.2018 13:23, Petr Mladek wrote: On Fri 2018-01-19 16:10:42, Jason Baron wrote: On 01/19/2018 02:20 PM, Evgenii Shatokhin wrote: On 12.01.2018 22:55, Jason Baron wrote: There is one more thin

Re: [PATCH 05/16] arm64: Add flags to check the safety of a capability for late CPU

2018-01-30 Thread Suzuki K Poulose
On 30/01/18 14:56, Dave Martin wrote: On Tue, Jan 30, 2018 at 11:17:38AM +, Suzuki K Poulose wrote: On 26/01/18 10:10, Dave Martin wrote: On Tue, Jan 23, 2018 at 12:27:58PM +, Suzuki K Poulose wrote: Add two different flags to indicate if the conflict of a capability on a late CPU with

Re: [PATCH v2] drm/stm: drv: Improve data transfers

2018-01-30 Thread Benjamin Gaignard
2018-01-30 15:58 GMT+01:00 Laurent Pinchart : > Hi Philippe, > > Thank you for the patch. > > On Tuesday, 30 January 2018 12:42:00 EET Philippe Cornu wrote: >> To optimize data transfers, align pitch on 128 bytes & height >> on 4 bytes. This optimization is not applicable on hw without MMU. >> >> S

Re: [PATCH v2] drm/edid: use true and false for boolean values

2018-01-30 Thread Sean Paul
On Tue, Jan 30, 2018 at 04:05:28AM -0600, Gustavo A. R. Silva wrote: > Assign true or false to boolean variables instead of an integer value. > > This issue was detected with the help of Coccinelle. I suppose you could also fix up the other preferred assignment by adding !! to the bitwise & opera

Re: [PATCH v2] drm/stm: drv: Improve data transfers

2018-01-30 Thread Laurent Pinchart
Hi Benjamin, On Tuesday, 30 January 2018 17:08:48 EET Benjamin Gaignard wrote: > 2018-01-30 15:58 GMT+01:00 Laurent Pinchart: > > On Tuesday, 30 January 2018 12:42:00 EET Philippe Cornu wrote: > >> To optimize data transfers, align pitch on 128 bytes & height > >> on 4 bytes. This optimization is

Re: [PATCH v12 3/9] PCI: Add fwnode handler as input param of pci_register_io_range()

2018-01-30 Thread Rob Herring
On Wed, Jan 24, 2018 at 12:36:19AM +0800, John Garry wrote: > From: Gabriele Paoloni > > In preparation for having the PCI MMIO helpers to use the new generic > I/O space management(LOGIC_PIO) we need to add the fwnode handler as > extra input parameter. > This patch changes the signature of pci_

[PATCH] ocxl: fix signed comparison with less than zero

2018-01-30 Thread Colin King
From: Colin Ian King Currently the comparison of used < 0 is always false because uses is a size_t. Fix this by making used a ssize_t type. Detected by Coccinelle: drivers/misc/ocxl/file.c:320:6-10: WARNING: Unsigned expression compared with zero: used < 0 Fixes: 5ef3166e8a32 ("ocxl: Driver cod

[RFC PATCH v12 0/6] mm: security: ro protection for dynamic data

2018-01-30 Thread Igor Stoppa
This patch-set introduces the possibility of protecting memory that has been allocated dynamically. The memory is managed in pools: when a memory pool is turned into R/O, all the memory that is part of it, will become R/O. A R/O pool can be destroyed, to recover its memory, but it cannot be turne

[PATCH 1/6] genalloc: track beginning of allocations

2018-01-30 Thread Igor Stoppa
The genalloc library is only capable of tracking if a certain unit of allocation is in use or not. It is not capable of discerning where the memory associated to an allocation request begins and where it ends. The reason is that units of allocations are tracked by using a bitmap, where each bit r

Re: [patch -mm v2 2/3] mm, memcg: replace cgroup aware oom killer mount option with tunable

2018-01-30 Thread Tejun Heo
On Tue, Jan 30, 2018 at 01:20:11PM +0100, Michal Hocko wrote: > From 361275a05ad7026b8f721f8aa756a4975a2c42b1 Mon Sep 17 00:00:00 2001 > From: Michal Hocko > Date: Tue, 30 Jan 2018 09:54:15 +0100 > Subject: [PATCH] oom, memcg: clarify root memcg oom accounting > > David Rientjes has pointed out t

[PATCH 2/6] genalloc: selftest

2018-01-30 Thread Igor Stoppa
Introduce a set of macros for writing concise test cases for genalloc. The test cases are meant to provide regression testing, when working on new functionality for genalloc. Primarily they are meant to confirm that the various allocation strategy will continue to work as expected. The execution

Re: [PATCH 13/16] arm64: Add support for checking errata based on a list of MIDRS

2018-01-30 Thread Dave Martin
On Fri, Jan 26, 2018 at 03:57:44PM +, Suzuki K Poulose wrote: > On 26/01/18 14:16, Dave Martin wrote: > >On Tue, Jan 23, 2018 at 12:28:06PM +, Suzuki K Poulose wrote: > >>Add helpers for detecting an errata on list of midr ranges > >>of affected CPUs. > > > >This doesn't describe what the p

[PATCH 3/6] struct page: add field for vm_struct

2018-01-30 Thread Igor Stoppa
When a page is used for virtual memory, it is often necessary to obtian a handler to the corresponding vm_struct, which refers to the virtually continuous area generated when invoking vmalloc. The struct page has a "mapping" field, which can be re-used, to store a pointer to the parent area. This

[PATCH 4/6] Protectable Memory

2018-01-30 Thread Igor Stoppa
The MMU available in many systems running Linux can often provide R/O protection to the memory pages it handles. However, the MMU-based protection works efficiently only when said pages contain exclusively data that will not need further modifications. Statically allocated variables can be segreg

[PATCH 5/6] Documentation for Pmalloc

2018-01-30 Thread Igor Stoppa
Detailed documentation about the protectable memory allocator. Signed-off-by: Igor Stoppa --- Documentation/core-api/pmalloc.txt | 104 + 1 file changed, 104 insertions(+) create mode 100644 Documentation/core-api/pmalloc.txt diff --git a/Documentation/core-

[PATCH 6/6] Pmalloc: self-test

2018-01-30 Thread Igor Stoppa
Add basic self-test functionality for pmalloc. Signed-off-by: Igor Stoppa --- lib/genalloc.c| 2 +- mm/Kconfig| 7 ++ mm/Makefile | 1 + mm/pmalloc-selftest.c | 65 +++ mm/pmalloc-selftest.h | 30 +++

Re: [PATCH v2] drm/edid: use true and false for boolean values

2018-01-30 Thread Ville Syrjälä
On Tue, Jan 30, 2018 at 10:09:27AM -0500, Sean Paul wrote: > On Tue, Jan 30, 2018 at 04:05:28AM -0600, Gustavo A. R. Silva wrote: > > Assign true or false to boolean variables instead of an integer value. > > > > This issue was detected with the help of Coccinelle. > > I suppose you could also fi

Re: [PATCH RFC 2/4] dt-bindings/interrupt-controller: pdc: descibe PDC device binding

2018-01-30 Thread Rob Herring
On Tue, Jan 23, 2018 at 10:56:54AM -0700, Lina Iyer wrote: > From: Archana Sathyakumar > > Add device binding documentation for the PDC Interrupt controller on > QCOM SoC's like the SDM845. The interrupt-controller can be used to > sense edge low interrupts and wakeup interrupts when the GIC is >

Re: [PATCH v2] iio: accel: bmc150: Check for a second ACPI device for BOSC0200

2018-01-30 Thread Jeremy Cline
On 01/28/2018 03:40 AM, Jonathan Cameron wrote: > On Sun, 14 Jan 2018 10:43:30 + > Jonathan Cameron wrote: > >> On Tue, 9 Jan 2018 21:24:01 + >> Jeremy Cline wrote: >> >>> On 12/10/2017 12:21 PM, Jonathan Cameron wrote: On Wed, 6 Dec 2017 17:52:34 + Jeremy Cline wrote: >

Re: [PATCH 2/2] clk: stm32: Add DSI clock for STM32F469 Board

2018-01-30 Thread Gabriel FERNANDEZ
Hi Rob, Thanks for reviewing. On 01/29/2018 07:56 PM, Rob Herring wrote: > On Thu, Jan 18, 2018 at 03:49:40PM +0100, gabriel.fernan...@st.com wrote: >> From: Gabriel Fernandez >> >> This patch adds DSI clock for STM32F469 board >> >> Signed-off-by: Gabriel Fernandez >> --- >> drivers/clk/clk

Re: [PATCH 15/16] arm64: Delay enabling hardware DBM feature

2018-01-30 Thread Dave Martin
On Fri, Jan 26, 2018 at 04:05:24PM +, Suzuki K Poulose wrote: > On 26/01/18 14:41, Dave Martin wrote: > >On Tue, Jan 23, 2018 at 12:28:08PM +, Suzuki K Poulose wrote: > >>We enable hardware DBM bit in a capable CPU, very early in the > >>boot via __cpu_setup. This doesn't give us a flexibil

[PATCH] drm/stm: check pitch and size calculations even if !CONFIG_MMU

2018-01-30 Thread Benjamin Gaignard
In all cases we have to check pitch and size calculations. Rely on drm_gem_cma_dumb_create for no MMU cases. Fixes: 21f815bf773c ("drm/stm: drv: Improve data transfers") Signed-off-by: Benjamin Gaignard --- drivers/gpu/drm/stm/drv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff

Re: [PATCH V3 0/5] bugs fix for large PEBS mmap read and rdpmc read

2018-01-30 Thread Liang, Kan
On 1/30/2018 10:04 AM, Jiri Olsa wrote: On Tue, Jan 30, 2018 at 09:59:15AM -0500, Liang, Kan wrote: On 1/30/2018 8:39 AM, Jiri Olsa wrote: On Tue, Jan 30, 2018 at 01:16:39AM -0800, Stephane Eranian wrote: Hi, On Mon, Jan 29, 2018 at 8:29 AM, wrote: From: Kan Liang -- Changes sin

Re: [PATCH v6 07/36] nds32: Exception handling

2018-01-30 Thread Arnd Bergmann
On Tue, Jan 30, 2018 at 3:49 PM, Greentime Hu wrote: > Hi, Arnd: > > 2018-01-30 21:33 GMT+08:00 Arnd Bergmann : >> On Tue, Jan 30, 2018 at 11:01 AM, Vincent Chen wrote: >>> 2018-01-24 19:10 GMT+08:00 Arnd Bergmann : On Wed, Jan 24, 2018 at 12:09 PM, Arnd Bergmann wrote: > On Wed, Jan 24

Re: [PATCH 16/16] arm64: Add work around for Arm Cortex-A55 Erratum 1024718

2018-01-30 Thread Dave Martin
On Fri, Jan 26, 2018 at 04:29:53PM +, Suzuki K Poulose wrote: > On 26/01/18 15:33, Dave Martin wrote: > >On Tue, Jan 23, 2018 at 12:28:09PM +, Suzuki K Poulose wrote: > >>Some variants of the Arm Cortex-55 cores (r0p0, r0p1, r1p0) suffer > >>from an erratum 1024718, which causes incorrect u

Re: [PATCH v2] tpm: Move Linux RNG connection to hwrng

2018-01-30 Thread Jarkko Sakkinen
On Tue, Jan 30, 2018 at 10:52:13PM +1100, James Morris wrote: > On Tue, 30 Jan 2018, Jarkko Sakkinen wrote: > > > On Sat, Jan 27, 2018 at 12:20:18PM +0530, PrasannaKumar Muralidharan wrote: > > > Hi Jarkko, > > > > > > On 17 November 2017 at 19:27, Jarkko Sakkinen > > > wrote: > > > > On Fri, No

Re: [PATCH v2] drm/stm: drv: Improve data transfers

2018-01-30 Thread Jani Nikula
On Tue, 30 Jan 2018, Laurent Pinchart wrote: > Hi Benjamin, > > On Tuesday, 30 January 2018 12:51:25 EET Benjamin Gaignard wrote: >> 2018-01-30 11:42 GMT+01:00 Philippe Cornu : >> > To optimize data transfers, align pitch on 128 bytes & height >> > on 4 bytes. This optimization is not applicable o

Re: [PATCH] iio: adc: STM32_DFSDM_ADC should depend on HAS_DMA

2018-01-30 Thread Geert Uytterhoeven
Hi Mark, On Tue, Jan 30, 2018 at 4:03 PM, Mark Brown wrote: > On Tue, Jan 30, 2018 at 02:21:46PM +0100, Geert Uytterhoeven wrote: >> If NO_DMA=y: >> >> ERROR: "bad_dma_ops" [drivers/iio/adc/stm32-dfsdm-adc.ko] undefined! >> >> Add a dependency on HAS_DMA to fix this. > > Once again I have to

Re: [PATCH v2] drm/edid: use true and false for boolean values

2018-01-30 Thread Jani Nikula
On Tue, 30 Jan 2018, Ville Syrjälä wrote: > On Tue, Jan 30, 2018 at 10:09:27AM -0500, Sean Paul wrote: >> On Tue, Jan 30, 2018 at 04:05:28AM -0600, Gustavo A. R. Silva wrote: >> > Assign true or false to boolean variables instead of an integer value. >> > >> > This issue was detected with the hel

Re: [RFC,05/10] x86/speculation: Add basic IBRS support infrastructure

2018-01-30 Thread Christian Borntraeger
On 01/30/2018 03:56 PM, Christophe de Dinechin wrote: > > >> On 30 Jan 2018, at 15:52, Christian Borntraeger >> wrote: >> >> >> >> On 01/30/2018 03:46 PM, Christophe de Dinechin wrote: >>> >>> On 30 Jan 2018, at 13:11, Christian Borntraeger wrote: On 01/30/2018

[PATCH] NFC: fdp: fix signed less or equal zero check in u8 max_size

2018-01-30 Thread Colin King
From: Colin Ian King The u8 variable max_size is being assigned a return value from the call to nci_conn_max_data_pkt_payload_size that can return a -ve error return. Since max_size is a u8, the -ve check for the error will always be false. Fix this by making max_size an int type. Detected using

RE: [PATCH] platform/x86: dell-laptop: Guard SMBIOS calls with a mutex

2018-01-30 Thread Mario.Limonciello
> -Original Message- > From: platform-driver-x86-ow...@vger.kernel.org [mailto:platform-driver-x86- > ow...@vger.kernel.org] On Behalf Of Pali Rohár > Sent: Tuesday, January 30, 2018 5:03 AM > To: Limonciello, Mario > Cc: dvh...@infradead.org; Andy Shevchenko ; > LKML ; platform-driver-...

Re: [PATCH v6 0/4] x86, kasan: add KASAN checks to atomic operations

2018-01-30 Thread Will Deacon
Hi Dmitry, On Mon, Jan 29, 2018 at 06:26:03PM +0100, Dmitry Vyukov wrote: > KASAN uses compiler instrumentation to intercept all memory accesses. > But it does not see memory accesses done in assembly code. > One notable user of assembly code is atomic operations. Frequently, > for example, an ato

Re: [PATCH 13/16] arm64: Add support for checking errata based on a list of MIDRS

2018-01-30 Thread Suzuki K Poulose
On 30/01/18 15:16, Dave Martin wrote: On Fri, Jan 26, 2018 at 03:57:44PM +, Suzuki K Poulose wrote: On 26/01/18 14:16, Dave Martin wrote: On Tue, Jan 23, 2018 at 12:28:06PM +, Suzuki K Poulose wrote: Add helpers for detecting an errata on list of midr ranges of affected CPUs. This do

Re: v4.15 and I/O hang with BFQ

2018-01-30 Thread Paolo Valente
> Il giorno 30 gen 2018, alle ore 15:40, Ming Lei ha > scritto: > > On Tue, Jan 30, 2018 at 03:30:28PM +0100, Oleksandr Natalenko wrote: >> Hi. >> > ... >> systemd-udevd-271 [000] 4.311033: bfq_insert_requests: insert >> rq->0 >> systemd-udevd-271 [000] ...1 4.311037: blk

Re: [PATCH] platform/x86: dell-laptop: Guard SMBIOS calls with a mutex

2018-01-30 Thread Andy Shevchenko
On Tue, Jan 30, 2018 at 5:35 PM, wrote: >> > dell_set_arguments(0x2, 0, 0, 0); >> > ret = dell_send_request(CLASS_INFO, SELECT_RFKILL); >> >> Hi! I'm looking at this code, and do we need shared global buffer with >> mutex protection at all? Is not buffer allocated on stack enough? > > Oh

[PATCH] staging: android: ion: Add implementation of dma_buf_vmap and dma_buf_vunmap

2018-01-30 Thread Alexey Skidanov
Signed-off-by: Alexey Skidanov --- drivers/staging/android/ion/ion.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c index f480885..4f1dc7f 100644 --- a/drivers/staging/android/ion/ion.c +++ b/drivers/stagin

Re: [PATCH net-next 1/1] rtnetlink: enable IFLA_IF_NETNSID for RTM_NEWLINK

2018-01-30 Thread kbuild test robot
Hi Christian, Thank you for the patch! Yet something to improve: [auto build test ERROR on net-next/master] url: https://github.com/0day-ci/linux/commits/Christian-Brauner/rtnetlink-enable-IFLA_IF_NETNSID-for-RTM_NEWLINK/20180130-230918 config: ia64-allmodconfig (attached as .config

Re: [RFC] Per file OOM badness

2018-01-30 Thread Michel Dänzer
On 2018-01-30 12:56 PM, Christian König wrote: > Am 30.01.2018 um 12:42 schrieb Michel Dänzer: >> On 2018-01-30 12:36 PM, Nicolai Hähnle wrote: >>> On 30.01.2018 12:34, Michel Dänzer wrote: On 2018-01-30 12:28 PM, Christian König wrote: > Am 30.01.2018 um 12:02 schrieb Michel Dänzer: >

Re: [PATCH] Lock mmap_sem when calling migrate_pages() in do_move_pages_to_node()

2018-01-30 Thread Zi Yan
Michal Hocko wrote: > On Mon 29-01-18 22:00:11, Zi Yan wrote: >> From: Zi Yan >> >> migrate_pages() requires at least down_read(mmap_sem) to protect >> related page tables and VMAs from changing. Let's do it in >> do_page_moves() for both do_move_pages_to_node() and >> add_page_for_migration().

Re: [PATCH 4/4] objtool: Don't print '.tmp_' prefix for .o files

2018-01-30 Thread Josh Poimboeuf
On Tue, Jan 30, 2018 at 10:58:31AM +0100, Peter Zijlstra wrote: > On Mon, Jan 29, 2018 at 10:00:42PM -0600, Josh Poimboeuf wrote: > > With the following commit: > > > > 2a0098d70640 ("objtool: Fix seg fault with gold linker") > > > > ... objtool warnings started showing the modversions '.tmp_'

Re: [PATCH] Lock mmap_sem when calling migrate_pages() in do_move_pages_to_node()

2018-01-30 Thread Zi Yan
Hugh Dickins wrote: > On Mon, 29 Jan 2018, Zi Yan wrote: >> From: Zi Yan >> >> migrate_pages() requires at least down_read(mmap_sem) to protect >> related page tables and VMAs from changing. Let's do it in > > Page tables are protected by their locks. VMAs may change while > migration is activ

Re: [PATCH 13/16] arm64: Add support for checking errata based on a list of MIDRS

2018-01-30 Thread Dave Martin
On Tue, Jan 30, 2018 at 03:38:44PM +, Suzuki K Poulose wrote: > On 30/01/18 15:16, Dave Martin wrote: > >On Fri, Jan 26, 2018 at 03:57:44PM +, Suzuki K Poulose wrote: > >>On 26/01/18 14:16, Dave Martin wrote: > >>>On Tue, Jan 23, 2018 at 12:28:06PM +, Suzuki K Poulose wrote: > Add h

Re: [PATCH v2] iio: accel: bmc150: Check for a second ACPI device for BOSC0200

2018-01-30 Thread Jonathan Cameron
On Mon, 29 Jan 2018 16:07:02 +0200 Andy Shevchenko wrote: > On Sun, Jan 28, 2018 at 11:40 AM, Jonathan Cameron > wrote: > > On Sun, 14 Jan 2018 10:43:30 + > > Jonathan Cameron wrote: > >> On Tue, 9 Jan 2018 21:24:01 + > >> Jeremy Cline wrote: > >> > On 12/10/2017 12:21 PM, Jonathan

Re: [PATCH v2] drm/edid: use true and false for boolean values

2018-01-30 Thread Sean Paul
On Tue, Jan 30, 2018 at 05:19:46PM +0200, Ville Syrjälä wrote: > On Tue, Jan 30, 2018 at 10:09:27AM -0500, Sean Paul wrote: > > On Tue, Jan 30, 2018 at 04:05:28AM -0600, Gustavo A. R. Silva wrote: > > > Assign true or false to boolean variables instead of an integer value. > > > > > > This issue w

Re: [PATCH 03/24] x86/paravirt: Annotate indirect calls

2018-01-30 Thread Josh Poimboeuf
On Mon, Jan 29, 2018 at 08:21:08PM +0100, Peter Zijlstra wrote: > On Mon, Jan 29, 2018 at 12:38:50PM -0600, Josh Poimboeuf wrote: > > On Tue, Jan 23, 2018 at 04:25:42PM +0100, Peter Zijlstra wrote: > > > Paravirt emits indirect calls which get flagged by objtool retpoline > > > checks, annotate it

Re: [GIT PULL] inode->i_version rework for v4.16

2018-01-30 Thread Theodore Ts'o
On Tue, Jan 30, 2018 at 07:05:48AM -0500, Jeff Layton wrote: > > I want to make sure I understand what's actually broken here thoug. Is > it only broken when the two values are more than 2**63 apart, or is > there something else more fundamentally wrong here? The other problem is that returning a

Re: [PATCH] nvme-pci: use NOWAIT flag for nvme_set_host_mem

2018-01-30 Thread Keith Busch
On Tue, Jan 30, 2018 at 11:41:07AM +0800, jianchao.wang wrote: > Another point that confuses me is that whether nvme_set_host_mem is necessary > in nvme_dev_disable ? > As the comment: > > /* >* If the controller is still alive tell it to stop using the >

Re: [PATCH] checkpatch: warn if changed lines exceeds a maximum size

2018-01-30 Thread Joe Perches
On Tue, 2018-01-30 at 15:57 +, Brown, Nicholas wrote: > Changed lines is the total of inserted and deleted lines. > By default there is no limit, --max-changed-lines may be used to set a > value. Some users may wish to encourage that patches are split into > smaller parts using this. > See Docu

Re: [PATCH] Lock mmap_sem when calling migrate_pages() in do_move_pages_to_node()

2018-01-30 Thread Michal Hocko
On Tue 30-01-18 10:52:58, Zi Yan wrote: > > > Michal Hocko wrote: > > On Mon 29-01-18 22:00:11, Zi Yan wrote: > >> From: Zi Yan > >> > >> migrate_pages() requires at least down_read(mmap_sem) to protect > >> related page tables and VMAs from changing. Let's do it in > >> do_page_moves() for both

Re: [PATCH net-next 1/1] rtnetlink: enable IFLA_IF_NETNSID for RTM_NEWLINK

2018-01-30 Thread kbuild test robot
Hi Christian, Thank you for the patch! Yet something to improve: [auto build test ERROR on net-next/master] url: https://github.com/0day-ci/linux/commits/Christian-Brauner/rtnetlink-enable-IFLA_IF_NETNSID-for-RTM_NEWLINK/20180130-230918 config: i386-randconfig-a1-201804 (attached as .config

[PATCH] clocksource/drivers/fsl_ftm_timer: fix unsigned < 0 comparison check

2018-01-30 Thread Colin King
From: Colin Ian King The return from the call __ftm_clk_init can be negative if there is an error, and this is being checked, however, the check is always false because freq is unsigned. Fix this by removing the unsigned type qualifier, making freq just a long. Detected using Coccinelle: driver

Applied "regulator: Fix suspend to idle" to the regulator tree

2018-01-30 Thread Mark Brown
The patch regulator: Fix suspend to idle has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus

Re: [PATCH v2 3/3] KVM: VMX: make MSR bitmaps per-VCPU

2018-01-30 Thread Radim Krčmář
2018-01-27 09:50+0100, Paolo Bonzini: > Place the MSR bitmap in struct loaded_vmcs, and update it in place > every time the x2apic or APICv state can change. This is rare and > the loop can handle 64 MSRs per iteration, in a similar fashion as > nested_vmx_prepare_msr_bitmap. > > This prepares fo

Re: [PATCH net-next 1/1] rtnetlink: enable IFLA_IF_NETNSID for RTM_NEWLINK

2018-01-30 Thread Christian Brauner
k-enable-IFLA_IF_NETNSID-for-RTM_NEWLINK/20180130-230918 > config: i386-randconfig-a1-201804 (attached as .config) > compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4 > reproduce: > # save the attached .config to linux build tree > make ARCH=i386 > > All errors (new ones

Re: [PATCH v10 27/27] mm: display pkey in smaps if arch_pkeys_enabled() is true

2018-01-30 Thread Ram Pai
On Tue, Jan 30, 2018 at 01:16:11PM +0100, Michal Hocko wrote: > On Thu 18-01-18 17:50:48, Ram Pai wrote: > [...] > > @@ -851,9 +848,13 @@ static int show_smap(struct seq_file *m, void *v, int > > is_pid) > >(unsigned long)(mss->pss >> (10 + PSS_SHIFT))); > > > > if (!

Re: [PATCH 0/2] of: change overlay apply input data from EDT to FDT

2018-01-30 Thread Alan Tull
On Mon, Jan 29, 2018 at 6:35 PM, Frank Rowand wrote: Hi Frank, > Hi Alan, > > In this patch series one of the changes was to change some > devicetree unittest overlay source to use the new sugar syntax to > specify overlay nodes instead of hand coding the fragment nodes. > > One reviewer reminde

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