Re: [tip:x86/boot] ACPI/NUMA: Add warning message if the padding size for KASLR is not enough

2018-10-03 Thread Masayoshi Mizuma
From: Masayoshi Mizuma Subject: [PATCH] Fix for build error if CONFIG_RANDOMIZE_BASE is not defined. Fix the following build error. ld: drivers/acpi/numa.o: in function `acpi_numa_init': drivers/acpi/numa.c:473: undefined reference to `rand_mem_physical_padding' make: *** [Makefile:1030:

Re: [PATCH 1/4] mm/hugetlb: Enable PUD level huge page migration

2018-10-03 Thread Suzuki K Poulose
On 03/10/18 12:10, Anshuman Khandual wrote: On 10/03/2018 03:52 PM, Suzuki K Poulose wrote: On 02/10/18 13:56, Anshuman Khandual wrote: On 10/02/2018 06:08 PM, Suzuki K Poulose wrote: Hi Anshuman On 02/10/18 13:15, Anshuman Khandual wrote: Architectures like arm64 have PUD level

Re: [PATCH V4 02/25] mmc: mmci: create generic mmci_dma_setup

2018-10-03 Thread Ludovic BARRE
hi Ulf On 10/03/2018 11:22 AM, Ulf Hansson wrote: + Srinivas for next series, I will add Srinivas [...] #ifdef CONFIG_DMA_ENGINE -static void mmci_dma_setup(struct mmci_host *host) +static inline void mmci_dma_release(struct mmci_host *host); + +int mmci_dmae_setup(struct mmci_host

[PATCH] MAINTAINERS: intel_pmc_core: Update MAINTAINERS

2018-10-03 Thread Rajneesh Bhardwaj
This removes the entry for pmc_core.h file in the MAINTAINERS as the file is already removed by a previous commit. "platform/x86: intel_pmc_core: Remove unused header file" Reported-by: Joe Perches Signed-off-by: Rajneesh Bhardwaj --- MAINTAINERS | 1 - 1 file changed, 1 deletion(-) diff

Re: [RFC PATCH] mtd: rawnand: ams-delta: use ->exec_op()

2018-10-03 Thread Boris Brezillon
Hi Janusz, On Wed, 3 Oct 2018 14:00:28 +0200 Janusz Krzysztofik wrote: > Replace legacy callbacks with ->select_chip() and ->exec_op(). Thanks for working on that, that's really appreciated. > > Implementation of NAND_OP_WAITRDY_INSTR has been based on legacy > nand_wait_ready(), I don't

Re: [GIT PULL linux-next] Add Compiler Attributes tree

2018-10-03 Thread Steven Rostedt
On Wed, 3 Oct 2018 14:14:28 +0200 Miguel Ojeda wrote: > HI Dominique, > > On Wed, Oct 3, 2018 at 12:37 AM Dominique Martinet > wrote: > > > > Miguel Ojeda wrote on Wed, Oct 03, 2018: > > > As I have read, -next is supposed to be a vision of what the merge > > > window will look like after

Re: [PATCH] zsmalloc: fix fall-through annotation

2018-10-03 Thread Sergey Senozhatsky
Oh, Cc-ing Andrew message id: lkml.kernel.org/r/20181003105114.ga24...@embeddedor.com --- On (10/03/18 21:26), Sergey Senozhatsky wrote: > On (10/03/18 12:51), Gustavo A. R. Silva wrote: > Replace "fallthru" with a proper "fall through" annotation. > > This fix is part of the ongoing efforts

Re: [PATCH 4.9 00/94] 4.9.131-stable review

2018-10-03 Thread Guenter Roeck
On 10/02/2018 06:24 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.9.131 release. There are 94 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be

[PATCH v2 3/4] x86/asm: Simplify GEN_*_RMWcc() macros

2018-10-03 Thread Peter Zijlstra
Currently the GEN_*_RMWcc() macros include a return statement, which pretty much mandates we directly wrap them in a (inline) function. Macros with return statements are tricky and, as per the above, limit use, so remove the return statement and make them statement-expressions. This allows them

[PATCH v2 4/4] locking/qspinlock, x86: Provide liveness guarantee

2018-10-03 Thread Peter Zijlstra
On x86 we cannot do fetch_or with a single instruction and thus end up using a cmpxchg loop, this reduces determinism. Replace the fetch_or with a composite operation: tas-pending + load. Using two instructions of course opens a window we previously did not have. Consider the scenario:

[PATCH v2 1/4] locking/qspinlock: Re-order code

2018-10-03 Thread Peter Zijlstra
Flip the branch condition after atomic_fetch_or_acquire(_Q_PENDING_VAL) such that we loose the indent. This also result in a more natural code flow IMO. Cc: mi...@kernel.org Cc: t...@linutronix.de Cc: long...@redhat.com Cc: andrea.pa...@amarulasolutions.com Acked-by: Will Deacon Signed-off-by:

[PATCH v2 2/4] locking/qspinlock: Rework some comments

2018-10-03 Thread Peter Zijlstra
While working my way through the code again; I felt the comments could use help. Cc: mi...@kernel.org Cc: will.dea...@arm.com Cc: t...@linutronix.de Cc: long...@redhat.com Cc: andrea.pa...@amarulasolutions.com Signed-off-by: Peter Zijlstra (Intel) --- kernel/locking/qspinlock.c | 38

[GIT PULL] ARM: at91: DT for 4.20 #2

2018-10-03 Thread Ludovic Desroches
Arnd, Olof, Here are the second round of DT changes for 4.20. It consists in NAND description fixes (size and partitions). Regards Ludovic The following changes since commit 97181516b0785dd032700ae4899842389c6bea78: arm: dts: sama5d2: Update coresight bindings for hardware ports (2018-09-19

Re: [PATCH] perf tools: Allocate id array in perf_event__synthesize_event_update_cpus

2018-10-03 Thread Jiri Olsa
On Wed, Oct 03, 2018 at 03:08:10PM +0100, John Garry wrote: > On 03/10/2018 12:36, Jiri Olsa wrote: > > On Tue, Oct 02, 2018 at 01:16:21PM +0200, Jiri Olsa wrote: > > > On Tue, Oct 02, 2018 at 11:41:36AM +0100, John Garry wrote: > > > > > > SNIP > > > > > > > > > > > > > > > > > > --- > > > >

Re: [PATCH] perf/x86/intel: Add counter freezing quirk for Goldmont

2018-10-03 Thread Borislav Petkov
On Wed, Oct 03, 2018 at 10:25:03AM -0400, Liang, Kan wrote: > > > On 10/3/2018 10:15 AM, linux-kernel-ow...@vger.kernel.org wrote: > > To make it more generic, I think we also need to extend the struct > > sku_microcode to check vendor and family. > > The "model" in struct x86_cpu_id is u16. I

[PATCH v2] ARM: multi_v7_defconfig: enable STM32 analog & timer drivers

2018-10-03 Thread Fabrice Gasnier
This enables drivers for STM32 timer, low power timer and analog hardware that can be used on STM32MP1 SoC: - Timer & LP Timer MFD core, PWM, trigger & encoder drivers - IIO ADC/DAC/DFSDM - vrefbuf regu driver (voltage reference buffer). Signed-off-by: Fabrice Gasnier ---

Re: [PATCH] kvm: nVMX: fix entry with pending interrupt if APICv is enabled

2018-10-03 Thread Sean Christopherson
On Wed, Oct 03, 2018 at 01:47:47PM +0200, Paolo Bonzini wrote: > Commit b5861e5cf2fcf83031ea3e26b0a69d887adf7d21 introduced a check on > the interrupt-window and NMI-window CPU execution controls in order to > inject an external interrupt vmexit before the first guest instruction > executes.

Re: [PATCH] spi: slave: Fix missing break in switch

2018-10-03 Thread Gustavo A. R. Silva
Hi, On 10/3/18 5:01 PM, Mark Brown wrote: > On Wed, Oct 03, 2018 at 04:46:45PM +0200, Geert Uytterhoeven wrote: >> On Wed, Oct 3, 2018 at 2:57 PM Gustavo A. R. Silva > >>> case CMD_REBOOT: >>> dev_info(>spi->dev, "Rebooting system...\n"); >>>

Re: [PATCHv5 3/7] tty: Hold tty_ldisc_lock() during tty_reopen()

2018-10-03 Thread Guilherme Piccoli
On Tue, Oct 2, 2018 at 6:33 PM Dmitry Safonov wrote: > [...] > Well, v5 passes 0day, so all previous reports are fixed. > But there is a new one about reboot on parisc platform which takes ~3 > mins after the patch with ldisc locked on tty_reopen(). > > I believe it's related to holding read side

Re: [PATCH v3 2/3] perf: add arm64 smmuv3 pmu driver

2018-10-03 Thread John Garry
On 21/09/2018 16:08, Shameer Kolothum wrote: + +ssize_t smmu_pmu_event_show(struct device *dev, + struct device_attribute *attr, char *page) +{ + struct perf_pmu_events_attr *pmu_attr; + + pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr); + +

[PATCH] perf tools: Allocate id array in perf_event__synthesize_event_update_cpus

2018-10-03 Thread Jiri Olsa
On Tue, Oct 02, 2018 at 01:16:21PM +0200, Jiri Olsa wrote: > On Tue, Oct 02, 2018 at 11:41:36AM +0100, John Garry wrote: > > SNIP > > > > > > > > > > --- > > > diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c > > > index 1ec1d9bc2d63..fb2a0dab3978 100644 > > > ---

Re: [PATCH 1/4] mm/hugetlb: Enable PUD level huge page migration

2018-10-03 Thread Anshuman Khandual
On 10/03/2018 04:29 PM, Michal Hocko wrote: > On Wed 03-10-18 15:28:23, Anshuman Khandual wrote: >> >> >> On 10/03/2018 12:28 PM, Michal Hocko wrote: >>> On Wed 03-10-18 07:46:27, Anshuman Khandual wrote: On 10/02/2018 06:09 PM, Michal Hocko wrote: > On Tue 02-10-18 17:45:28,

Re: [RFC, PATCH] ipc/util.c: use idr_alloc_cyclic() for ipc allocations

2018-10-03 Thread Manfred Spraul
On 10/2/18 8:27 PM, Waiman Long wrote: On 10/02/2018 12:19 PM, Manfred Spraul wrote: A bit related to the patch series that increases IPC_MNI: (User space) id reuse create the risk of data corruption: Process A: calls ipc function Process A: sleeps just at the beginning of the syscall Process

Re: [RESEND PATCH v4 1/8] bitops: Introduce the for_each_set_clump macro

2018-10-03 Thread Andy Shevchenko
On Tue, Oct 02, 2018 at 11:21:42AM +0300, Andy Shevchenko wrote: > I would rather go with two prototypes to get()/set() a clump in the bitmap > in a way when it's aligned and BITS_PER_LONG % clump_size == 0. To make things much easier, restrict clump_size to the one from the following set: 1,

[PATCH] kvm: nVMX: fix entry with pending interrupt if APICv is enabled

2018-10-03 Thread Paolo Bonzini
Commit b5861e5cf2fcf83031ea3e26b0a69d887adf7d21 introduced a check on the interrupt-window and NMI-window CPU execution controls in order to inject an external interrupt vmexit before the first guest instruction executes. However, when APIC virtualization is enabled the host does not need a

Re: Bad MAINTAINERS pattern in section 'INTEL PMC CORE DRIVER'

2018-10-03 Thread Rajneesh Bhardwaj
On Wed, Oct 03, 2018 at 03:10:58AM -0700, Joe Perches wrote: > On Wed, 2018-10-03 at 11:00 +0300, Andy Shevchenko wrote: > > On Sat, Sep 29, 2018 at 12:54 AM Joe Perches wrote: > > > Please fix this defect appropriately. > > > > > > linux-next MAINTAINERS section: > > > > > > 7441

[PATCH] soc: qcom: Add irq clear handling during SE init

2018-10-03 Thread Alok Chauhan
when the kernel inits a SE, its quite possible we have pending interrupts from bootloaders which did not handle/clear them. So do this in kernel at the SE init, to avoid some of it causing bad behavior, while at it also club all the register writes needed to clear the se irqs into a function to

Re: [RFC PATCH v2 2/9] dt-bindings: ti-lmu: Remove LM3697

2018-10-03 Thread Dan Murphy
Hello On 10/02/2018 02:28 AM, Pavel Machek wrote: > On Fri 2018-09-28 13:29:47, Dan Murphy wrote: >> Remove support for the LM3697 LED device >> from the ti-lmu. The LM3697 will be supported >> via a stand alone LED driver. >> >> Signed-off-by: Dan Murphy > > NAK, for reasons I explained

Re: [tip:x86/boot] ACPI/NUMA: Add warning message if the padding size for KASLR is not enough

2018-10-03 Thread Peter Zijlstra
Subject: ACPI/NUMA: Fix KASLR build error There is no point in trying to compile KASLR specific code when there is no KASLR. Signed-off-by: Peter Zijlstra (Intel) --- diff --git a/drivers/acpi/numa.c b/drivers/acpi/numa.c index 3d69834c692f..5767733976b3 100644 --- a/drivers/acpi/numa.c +++

[PATCH] spi: slave: Fix missing break in switch

2018-10-03 Thread Gustavo A. R. Silva
Apparently, this code does not actually fall through to the next case because the machine restarts before it has a chance. However, for the sake of maintenance and readability, we better add the missing break statement. Addresses-Coverity-ID: 1437892 ("Missing break in switch") Signed-off-by:

Re: [QUEUED v20180920 04/16] stm class: Introduce framing protocol drivers

2018-10-03 Thread Alexander Shishkin
Mathieu Poirier writes: >> +err = stm_lookup_protocol(proto, , _node_type); >> kfree(devname); >> >> -if (!stm) >> +if (err) { >> +stm_put_device(stm); >> return ERR_PTR(-ENODEV); >> +} > > This condition prevent the subsystem from being used until

RE: [PATCH 0/3] namei: implement various scoping AT_* flags

2018-10-03 Thread David Laight
From: Aleksa Sarai > Sent: 01 October 2018 17:16 > > On 2018-10-01, David Laight wrote: ... > > > * Mountpoint crossings are blocked by AT_XDEV. > > > > You might want a mountpoint flag that allows crossing into the mounted > > filesystem (you may need to get out in order to do pwd()). > >

Re: [PATCH 2/2] mm, numa: Migrate pages to local nodes quicker early in the lifetime of a task

2018-10-03 Thread Mel Gorman
On Wed, Oct 03, 2018 at 06:37:41PM +0530, Srikar Dronamraju wrote: > * Srikar Dronamraju [2018-10-02 23:00:05]: > > > I will try to get a DayTrader run in a day or two. There JVM and db threads > > act on the same memory, I presume it might show some insights. > > I ran 2 runs of daytrader 7

Re: [PATCH v5 0/6] Move swapper_pg_dir to rodata section.

2018-10-03 Thread James Morse
Hi Catalin, Mark, On 25/09/18 15:06, Mark Rutland wrote: > On Tue, Sep 25, 2018 at 05:53:16PM +0800, Jun Yao wrote: >> On Mon, Sep 24, 2018 at 06:19:36PM +0100, Mark Rutland wrote: >>> I've pushed a branch with the cleanups I requested [1] folded in. >>> >>> I'm still a bit worried about the pgd

Re: [PATCH v7 0/8] arm64: untag user pointers passed to the kernel

2018-10-03 Thread Luc Van Oostenryck
On Tue, Oct 02, 2018 at 03:12:35PM +0200, Andrey Konovalov wrote: ... > Changes in v7: > - Rebased onto 17b57b18 (4.19-rc6). > - Dropped the "arm64: untag user address in __do_user_fault" patch, since > the existing patches already handle user faults properly. > - Dropped the "usb, arm64: untag

Re: [PATCH] perf/x86/intel: Add counter freezing quirk for Goldmont

2018-10-03 Thread Liang, Kan
On 10/3/2018 2:10 AM, Thomas Gleixner wrote: On Tue, 2 Oct 2018, kan.li...@linux.intel.com wrote: +static bool intel_atom_v4_counter_freezing_broken(int cpu) { u32 rev = UINT_MAX; /* default to broken for unknown stepping */ - switch (cpu_data(cpu).x86_stepping) { - case

[PATCH V5 2/3] dt-bindings: soc: qcom: GENI SE SPI controller device tree binding

2018-10-03 Thread Alok Chauhan
From: Dilip Kota Move GENI SE SPI controller device-tree bindings from devicetree/bindings/soc/qcom/qcom,geni-se.txt to devicetree/bindings/spi/qcom,spi-geni-qcom.txt. Signed-off-by: Dilip Kota Reviewed-by: Douglas Anderson Reviewed-by: Stephen Boyd Reviewed-by: Rob Herring Signed-off-by:

[PATCH V5 3/3] spi: spi-geni-qcom: Add SPI driver support for GENI based QUP

2018-10-03 Thread Alok Chauhan
From: Girish Mahadevan This driver supports GENI based SPI Controller in the Qualcomm SOCs. The Qualcomm Generic Interface (GENI) is a programmable module supporting a wide range of serial interfaces including SPI. This driver supports SPI operations using FIFO mode of transfer. Signed-off-by:

[PATCH V5 0/3] spi-geni-qcom: QUP SPI GENI driver and SPI device tree bindings

2018-10-03 Thread Alok Chauhan
This patch series adds the driver for GENI based Qualcomm Universal Peripheral (QUP) Serial Peripheral Interface (SPI) and SPI device tree bindings. An overview of the GENI SE SPI controller device tree components are in patch 2 and 1. Patch 3 adds the SPI driver for GENI QUP HW. changes from

[PATCH V5 1/3] dt-bindings: soc: qcom: Remove SPI controller maximum frequency binding

2018-10-03 Thread Alok Chauhan
From: Dilip Kota SPI controller driver should maintain the maximum frequency of the controller instead of relying on device tree bindings. Because maximum frequency is specific property of SPI controller. Signed-off-by: Dilip Kota Reviewed-by: Douglas Anderson Reviewed-by: Stephen Boyd

[RFC] perf tools: Wrong filter_band* values in json calculation"

2018-10-03 Thread Jiri Olsa
On Wed, Oct 03, 2018 at 09:20:46AM +0200, Jiri Olsa wrote: > This reverts commit ac0e2cd555373ae6f8f3a3ad3fbbf5b6d1e7. > > Michael reported an issue with oversized terms values assignment > and I noticed there was actually a misunderstanding of the max > value check in the past. hi, this is

[PATCH v9 06/11] cpuidle: dt: Support hierarchical CPU idle states

2018-10-03 Thread Ulf Hansson
From: Lina Iyer Currently CPU's idle states are represented in a flattened model, via the "cpu-idle-states" binding from within the CPU's device nodes. Support the hierarchical layout during parsing and validating of the CPU's idle states. This is simply done by calling the new OF helper,

[PATCH v9 03/11] PM / Domains: Document flags for genpd

2018-10-03 Thread Ulf Hansson
The current documented description of the GENPD_FLAG_* flags, are too simplified, so let's extend them. Signed-off-by: Ulf Hansson --- include/linux/pm_domain.h | 35 ++- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/include/linux/pm_domain.h

Re: [PATCH] kvm: nVMX: fix entry with pending interrupt if APICv is enabled

2018-10-03 Thread Paolo Bonzini
On 03/10/2018 16:36, Nikita Leshenko wrote: > On Wed, 2018-10-03 at 13:47 +0200, Paolo Bonzini wrote: >> Commit b5861e5cf2fcf83031ea3e26b0a69d887adf7d21 introduced a check on >> the interrupt-window and NMI-window CPU execution controls in order to >> inject an external interrupt vmexit before the

Re: [PATCH] mfd: cros-ec: copy the whole event in get_next_event_xfer

2018-10-03 Thread Enric Balletbo i Serra
Hi Emil, Many thanks to catch this and fix. Some comments below. You missed to add the v2, please send the next patch with v3 prefix. On 28/9/18 19:08, Emil Karlson wrote: > Commit 57e94c8b974db2d83c60e1139c89a70806abbea0 caused cros-ec keyboard events > be truncated on many chromebooks so that

Re: [PATCH v6 0/3] Add a kernel parameter to change the padding size for KASLR

2018-10-03 Thread Masayoshi Mizuma
On Wed, Oct 03, 2018 at 08:52:19AM +0200, Ingo Molnar wrote: > > * Masayoshi Mizuma wrote: > > > This patch series are adding an kernel parameter to change > > the padding size used for KASLR. It is useful for memory hotplug > > capable system. User can adjust the padding size to use it. > > >

RE: [PATCH v3 2/3] perf: add arm64 smmuv3 pmu driver

2018-10-03 Thread Shameerali Kolothum Thodi
> -Original Message- > From: Robin Murphy [mailto:robin.mur...@arm.com] > Sent: 03 October 2018 11:37 > To: Shameerali Kolothum Thodi ; > lorenzo.pieral...@arm.com > Cc: will.dea...@arm.com; mark.rutl...@arm.com; Guohanjun (Hanjun Guo) > ; John Garry ; > pa...@codeaurora.org;

Re: Bug introduced by commit ebeeb1ad9b8a

2018-10-03 Thread Greg Kroah-Hartman
On Wed, Oct 03, 2018 at 01:20:44PM +0200, Håkon Bugge wrote: > Hi Greg, > > > I hope you will find this note appropriate. > > The stable cherry-pick of upstream commit ebeeb1ad9b8a ("rds: tcp: use > rds_destroy_pending() to synchronize netns/module teardown and rds > connection/workq

Re: [PATCH 1/4] mm/hugetlb: Enable PUD level huge page migration

2018-10-03 Thread Michal Hocko
On Wed 03-10-18 12:17:52, Suzuki K Poulose wrote: [...] > I have been under the idea that all the checks at the same level could > have the same indentation. (i.e, 2 tabs in this case for each). Looks > like there is no rule about it. How about replacing it with a > switch..case ? I would simply

[PATCH 1/5] rpmsg: glink: Add GLINK signal support for RPMSG

2018-10-03 Thread Arun Kumar Neelakantam
Add support to handle SMD signals to RPMSG over GLINK. SMD signals mimic serial protocol signals to notify of ports opening and closing. This change affects the rpmsg core, rpmsg char and glink drivers. Signed-off-by: Chris Lew Signed-off-by: Arun Kumar Neelakantam ---

[PATCH 4/5] rpmsg: wakeup poll to notify signal update

2018-10-03 Thread Arun Kumar Neelakantam
Add support to wait on poll to get signal notifications. Send POLLPRI mask to indicate the signal change. Signed-off-by: Arun Kumar Neelakantam --- drivers/rpmsg/rpmsg_char.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/rpmsg/rpmsg_char.c

[PATCH 3/5] rpmsg: Add TIOCMGET/TIOCMSET ioctl support

2018-10-03 Thread Arun Kumar Neelakantam
Add TICOMGET and TIOCMSET ioctl support for rpmsg char device nodes to get/set the low level transport signals. Signed-off-by: Arun Kumar Neelakantam --- drivers/rpmsg/rpmsg_char.c | 54 +++--- 1 file changed, 51 insertions(+), 3 deletions(-) diff --git

[PATCH 0/5] Add TIOCM Signals support for RPMSG char devices

2018-10-03 Thread Arun Kumar Neelakantam
Glink transport support signals to exchange state notification between local and remote side clients. Adding support to send/receive the signal command and notify the clients through callback and POLL notification. Arun Kumar Neelakantam (5): rpmsg: glink: Add GLINK signal support for RPMSG

[PATCH 2/5] rpmsg: Add signal callback to rpmsg char device

2018-10-03 Thread Arun Kumar Neelakantam
Register a callback to get the signal notifications from rpmsg. Signed-off-by: Arun Kumar Neelakantam --- drivers/rpmsg/rpmsg_char.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/rpmsg/rpmsg_char.c b/drivers/rpmsg/rpmsg_char.c index a76b963..86003d5 100644 ---

[PATCH 5/5] rpmsg: glink: Convert the native signals to TIOCM

2018-10-03 Thread Arun Kumar Neelakantam
Native signals over SMEM transport are different from Linux TIOCM signals. Add a macro to convert signals when sent or received from clients. Signed-off-by: Arun Kumar Neelakantam --- drivers/rpmsg/qcom_glink_native.c | 29 + 1 file changed, 29 insertions(+) diff

[RFC PATCH] mtd: rawnand: ams-delta: use ->exec_op()

2018-10-03 Thread Janusz Krzysztofik
Replace legacy callbacks with ->select_chip() and ->exec_op(). Implementation of NAND_OP_WAITRDY_INSTR has been based on legacy nand_wait_ready(), otherwise that function would probabaly have to be reimplemented inside the driver. Hence, legacy callback ->dev_ready() is still used. Use of

Re: [PATCH RFC] cpuidle/drivers/menu: Remove get_loadavg in the performance multiplier

2018-10-03 Thread Daniel Lezcano
On 03/10/2018 13:09, Rafael J. Wysocki wrote: > On Wed, Oct 3, 2018 at 12:25 PM Daniel Lezcano [ ... ] > If you send a non-RFC patch to drop get_loadavg() (but you can drop it > altogether then, there are no other callers of it AFAICS), I'll queue > it up after the 4.20 (or whatever it turns out

Re: [PATCH 1/4] mm/hugetlb: Enable PUD level huge page migration

2018-10-03 Thread Michal Hocko
On Wed 03-10-18 18:36:39, Anshuman Khandual wrote: [...] > So we have two checks here > > 1) platform specific arch_hugetlb_migration -> In principle go ahead > > 2) huge_movable() during allocation > > - If huge page does not have to be placed on movable zone > > -

RE: [PATCH] usbnet: smsc95xx: simplify tx_fixup code

2018-10-03 Thread David Laight
From: Ben Dooks > Sent: 02 October 2018 17:56 > > The smsc95xx_tx_fixup is doing multiple calls to skb_push() to > put an 8-byte command header onto the packet. It would be easier > to do one skb_push() and then copy the data in once the push is > done. > > Signed-off-by: Ben Dooks > --- >

[tip:x86/mm] x86/mm: Fix typo in comment

2018-10-03 Thread tip-bot for Takuya Yamamoto
Commit-ID: b3541fbc3c25bf2ba6d03a450c07f824e318f9b9 Gitweb: https://git.kernel.org/tip/b3541fbc3c25bf2ba6d03a450c07f824e318f9b9 Author: Takuya Yamamoto AuthorDate: Wed, 29 Aug 2018 16:27:30 +0900 Committer: Thomas Gleixner CommitDate: Wed, 3 Oct 2018 16:14:05 +0200 x86/mm: Fix typo in

Re: [PATCH] perf/x86/intel: Add counter freezing quirk for Goldmont

2018-10-03 Thread Liang, Kan
On 10/3/2018 10:15 AM, linux-kernel-ow...@vger.kernel.org wrote: To make it more generic, I think we also need to extend the struct sku_microcode to check vendor and family. The "model" in struct x86_cpu_id is u16. I will also change "model" and "stepping" to u16. struct sku_microcode {   

Re: [PATCH v2] perf record: encode -k clockid frequency into Perf trace

2018-10-03 Thread Alexey Budankov
Hi, On 03.10.2018 16:39, Jiri Olsa wrote: > On Wed, Oct 03, 2018 at 10:01:56AM +0300, Alexey Budankov wrote: >> +if (rec->opts.use_clockid && rec->opts.clockid_res_ns) >> +session->header.env.clockid_res_ns = rec->opts.clockid_res_ns; >> +else >> +

Re: [PATCH] kvm: nVMX: fix entry with pending interrupt if APICv is enabled

2018-10-03 Thread Paolo Bonzini
On 03/10/2018 16:36, Nikita Leshenko wrote: > On Wed, 2018-10-03 at 13:47 +0200, Paolo Bonzini wrote: >> Commit b5861e5cf2fcf83031ea3e26b0a69d887adf7d21 introduced a check on >> the interrupt-window and NMI-window CPU execution controls in order to >> inject an external interrupt vmexit before the

Re: [Problem] Cache line starvation

2018-10-03 Thread Thomas Gleixner
On Wed, 3 Oct 2018, Peter Zijlstra wrote: > On Wed, Oct 03, 2018 at 10:07:05AM +0200, Thomas Gleixner wrote: > > On Wed, 3 Oct 2018, Catalin Marinas wrote: > > > > > On Fri, 21 Sep 2018 at 13:22, Peter Zijlstra wrote: > > > > On Fri, Sep 21, 2018 at 02:02:26PM +0200, Sebastian Andrzej Siewior >

Re: [PATCH] arm64: arch_timer: avoid unused function warning

2018-10-03 Thread Catalin Marinas
On Tue, Oct 02, 2018 at 11:11:44PM +0200, Arnd Bergmann wrote: > arm64_1188873_read_cntvct_el0() is protected by the correct > CONFIG_ARM64_ERRATUM_1188873 #ifdef, but the only reference to it is > also inside of an CONFIG_ARM_ARCH_TIMER_OOL_WORKAROUND section, > and causes a warning if that is

Re: [PATCH v2 01/15] platform: goldfish: pipe: Move the file-scope goldfish_interrupt_tasklet variable into the driver state

2018-10-03 Thread Greg KH
On Tue, Oct 02, 2018 at 04:10:22PM -0700, r...@google.com wrote: > From: Roman Kiryanov > > This is a series of patches to move mutable file-scope variables > into the driver state. This change will help to introduce another > version of the pipe driver (with different state) for the older >

Re: [PATCH] ARM: dts: imx6sx-sdb: Fix enet phy regulator

2018-10-03 Thread Leonard Crestez
On Tue, 2018-10-02 at 21:56 +0200, Linus Walleij wrote: > On Tue, Oct 2, 2018 at 8:37 PM Leonard Crestez < > leonard.cres...@nxp.com> wrote: > > > This issue was exposed by commit efdfeb079cc3 ("regulator: fixed: > > Convert to use GPIO descriptor only") which causes the "gpios" > > property > >

Re: [PATCH 1/4] mm/hugetlb: Enable PUD level huge page migration

2018-10-03 Thread Michal Hocko
On Wed 03-10-18 17:07:13, Anshuman Khandual wrote: > > > On 10/03/2018 04:29 PM, Michal Hocko wrote: [...] > > It is not the platform that decides. That is the whole point of the > > distinction. It is us to say what is feasible and what we want to > > support. Do we want to support giga pages

protected pins and debugfs

2018-10-03 Thread Sodagudi Prasad
Hi All, This is regarding the protected pins configuration reading and printing from non-secure operating systems. GPIO framework is checking whether pin is in use(flag FLAG_REQUESTED) or not in gpiolib_dbg_show(). If GPIO chip drivers are overriding the dbg_show callback, drivers are not

Re: [QUEUED v20180920 00/16] stm class/intel_th: Queued updates for v4.20

2018-10-03 Thread Alexander Shishkin
Mathieu Poirier writes: > On Thu, Sep 20, 2018 at 03:45:37PM +0300, Alexander Shishkin wrote: >> Hi, >> >> These are patches I have queued so far, that I'm planning to send to >> Greg for the next merge window. This is mainly support for MIPI SyS-T >> protocol and all the infrastructure changes

[PATCH v2 0/4] locking/qspinlock, x86: Improve determinism for x86

2018-10-03 Thread Peter Zijlstra
Back when Will did his qspinlock determinism patches, we were left with one cmpxchg loop on x86 due to the use of atomic_fetch_or(). Will proposed a nifty trick: http://lkml.kernel.org/r/20180409145409.ga9...@arm.com While that didn't quite work, this series implements that basic idea.

[PATCH] staging: rtl8712: add SPDX identifiers

2018-10-03 Thread Michael Straube
This satisfies a checkpatch warning and is the preferred method for notating the license. The SPDX identifier is a legally binding shorthand, which can be used instead of the full boiler plate text. Signed-off-by: Michael Straube --- drivers/staging/rtl8712/basic_types.h | 10

Re: [RFC] perf tools: Wrong filter_band* values in json calculation"

2018-10-03 Thread Andi Kleen
> note there's couple of changes that actually changed > the number completely, like: > > -"Filter": "edge=1,filter_band2=4000", > +"Filter": "edge=1,filter_band2=30", Thanks. Looks good. I'll fix the scripts to generate the uncore events. -Andi

Re: [PATCH] tools/pci: Fix compilation warnings

2018-10-03 Thread Lorenzo Pieralisi
On Thu, Aug 23, 2018 at 01:34:53PM +0200, Gustavo Pimentel wrote: > Fix compilation warnings: > - remove unused variables > - change function return from int to void, since it's not used > > Signed-off-by: Gustavo Pimentel > --- > tools/pci/pcitest.c | 7 ++- > 1 file changed, 2

Re: [PATCH 1/4] mm/hugetlb: Enable PUD level huge page migration

2018-10-03 Thread Michal Hocko
On Wed 03-10-18 15:28:23, Anshuman Khandual wrote: > > > On 10/03/2018 12:28 PM, Michal Hocko wrote: > > On Wed 03-10-18 07:46:27, Anshuman Khandual wrote: > >> > >> > >> On 10/02/2018 06:09 PM, Michal Hocko wrote: > >>> On Tue 02-10-18 17:45:28, Anshuman Khandual wrote: > Architectures

[PATCH] rpmsg: glink: smem: Support rx peak for size less than 4 bytes

2018-10-03 Thread Arun Kumar Neelakantam
The current rx peak function fails to read the data if size is less than 4bytes. Use memcpy_fromio to support data reads of size less than 4 bytes. Signed-off-by: Arun Kumar Neelakantam --- drivers/rpmsg/qcom_glink_smem.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff

Re: [GIT PULL] HID fixes

2018-10-03 Thread Greg Kroah-Hartman
On Wed, Oct 03, 2018 at 10:55:19AM +0200, Jiri Kosina wrote: > Greg, > > please pull from > > git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid.git for-linus > > to receive HID subsystem fixes Now pulled, thanks. greg k-h

Re: [PATCH v5 12/21] tpm: move pcr extend code to tpm2-cmd.c

2018-10-03 Thread Jarkko Sakkinen
On Tue, Oct 02, 2018 at 04:58:25AM +, Winkler, Tomas wrote: > > > > > > On Sat, Sep 29, 2018 at 01:30:26AM +0300, Tomas Winkler wrote: > > > Add tpm2_pcr_extend() function to tpm2-cmd.c with signature required > > > by tpm-interface.c. It wraps the original open code implementation. > > >

Re: [PATCH] regulator: fixed: Default enable high on DT regulators

2018-10-03 Thread Mark Brown
On Tue, Oct 02, 2018 at 01:42:38PM +, Leonard Crestez wrote: > This turns the phy off and on again instead of leaving it up from uboot > and it doesn't work for some reason. However looking at > reg_fixed_voltage_probe introducing an edge seems to be intentional for > regulators which are not

Re: [PATCH] zsmalloc: fix fall-through annotation

2018-10-03 Thread Sergey Senozhatsky
On (10/03/18 12:51), Gustavo A. R. Silva wrote: > Replace "fallthru" with a proper "fall through" annotation. > > This fix is part of the ongoing efforts to enabling > -Wimplicit-fallthrough Hmm, comments as annotations? > Signed-off-by: Gustavo A. R. Silva Reviewed-by: Sergey Senozhatsky

Re: [PATCH] clocksource/drivers/fttmr010: fix invalid interrupt register access

2018-10-03 Thread Daniel Lezcano
On 03/10/2018 09:46, Tao Ren wrote: > On 10/2/18, 11:57 PM, "Linus Walleij" > wrote: > >> My thought is go for (2) and do all changes in one patch :) > > No problem, Linus. One more question: looks like my first patch > 4451d3f59f2a (fix set_next_event handler) is not merged back to >

Re: [PATCHv2] printk: CON_PRINTBUFFER console registration is a bit racy

2018-10-03 Thread Sergey Senozhatsky
On (10/03/18 11:23), Petr Mladek wrote: > On Fri 2018-09-28 18:53:04, Sergey Senozhatsky wrote: > > CON_PRINTBUFFER console registration requires us to do several > > preparation steps: > > - Rollback console_seq to replay logbuf messages which were already > > seen on other consoles; > > - Set

Re: [RFC PATCH v2 2/9] dt-bindings: ti-lmu: Remove LM3697

2018-10-03 Thread Pavel Machek
On Wed 2018-10-03 07:24:23, Dan Murphy wrote: > Hello > > On 10/02/2018 02:28 AM, Pavel Machek wrote: > > On Fri 2018-09-28 13:29:47, Dan Murphy wrote: > >> Remove support for the LM3697 LED device > >> from the ti-lmu. The LM3697 will be supported > >> via a stand alone LED driver. > >> > >>

Re: [PATCH v2 4/5] locking/lockdep: Make class->ops a percpu counter

2018-10-03 Thread Waiman Long
On 10/03/2018 03:48 AM, Peter Zijlstra wrote: > On Tue, Oct 02, 2018 at 04:19:19PM -0400, Waiman Long wrote: >> +DEFINE_PER_CPU(unsigned long [MAX_LOCKDEP_KEYS], lock_class_ops); >> @@ -179,9 +181,30 @@ DECLARE_PER_CPU(struct lockdep_stats, lockdep_stats); >> }

[tip:x86/boot] x86/kaslr, ACPI/NUMA: Fix KASLR build error

2018-10-03 Thread tip-bot for Peter Zijlstra (Intel)
Commit-ID: 3a387c6d96e69f1710a3804eb68e1253263298f2 Gitweb: https://git.kernel.org/tip/3a387c6d96e69f1710a3804eb68e1253263298f2 Author: Peter Zijlstra (Intel) AuthorDate: Wed, 3 Oct 2018 14:41:27 +0200 Committer: Borislav Petkov CommitDate: Wed, 3 Oct 2018 16:15:49 +0200 x86/kaslr,

[tip:x86/cache] x86/intel_rdt: Switch to bitmap_zalloc()

2018-10-03 Thread tip-bot for Andy Shevchenko
Commit-ID: 7b6f10b3e6ee031928642e90a0a7233c767dc4ff Gitweb: https://git.kernel.org/tip/7b6f10b3e6ee031928642e90a0a7233c767dc4ff Author: Andy Shevchenko AuthorDate: Thu, 30 Aug 2018 14:50:39 +0300 Committer: Thomas Gleixner CommitDate: Wed, 3 Oct 2018 16:19:35 +0200 x86/intel_rdt:

[PATCH v9 07/11] drivers: firmware: psci: Move psci to separate directory

2018-10-03 Thread Ulf Hansson
Some following changes extends the PSCI driver with some additional new files. Let's avoid to continue cluttering the toplevel firmware directory and first move the PSCI files into a PSCI sub-directory. Suggested-by: Mark Rutland Signed-off-by: Ulf Hansson --- drivers/firmware/Kconfig

[PATCH v9 05/11] of: base: Add of_get_cpu_state_node() to get idle states for a CPU node

2018-10-03 Thread Ulf Hansson
The CPU's idle state nodes are currently parsed at the common cpuidle DT library, but also when initializing back-end data for the arch specific CPU operations, as in the PSCI driver case. To avoid open-coding, let's introduce of_get_cpu_state_node(), which takes the device node for the CPU and

[PATCH v9 00/11] PM / Domains: Support hierarchical CPU arrangement (PSCI/ARM) (a subset)

2018-10-03 Thread Ulf Hansson
I have digested the review comments so far, including a recent offlist chat with with Lorenzo Pieralisi around the debatable PSCI changes. More or less I have a plan for how to move forward. However, to avoid re-posting non-changed patches over and over again, I decided to withhold the more

[PATCH v9 11/11] drivers: firmware: psci: Simplify error path of psci_dt_init()

2018-10-03 Thread Ulf Hansson
Instead of having each psci init function taking care of the of_node_put(), let's deal with that from psci_dt_init(), as this enables a bit simpler error path for each psci init function. Cc: Lina Iyer Co-developed-by: Lina Iyer Signed-off-by: Ulf Hansson Acked-by: Mark Rutland ---

[PATCH v9 10/11] drivers: firmware: psci: Support hierarchical CPU idle states

2018-10-03 Thread Ulf Hansson
From: Lina Iyer Currently CPU's idle states are represented in a flattened model, via the "cpu-idle-states" binding from within the CPU's device nodes. Support the hierarchical layout, simply by converting to calling the new OF helper, of_get_cpu_state_node(). Cc: Lina Iyer Suggested-by:

[PATCH v9 08/11] MAINTAINERS: Update files for PSCI

2018-10-03 Thread Ulf Hansson
The files for the PSCI firmware driver were moved to a sub-directory, let's update MAINTAINERS to reflect that. Suggested-by: Mark Rutland Signed-off-by: Ulf Hansson --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index

[PATCH v9 01/11] PM / Domains: Don't treat zero found compatible idle states as an error

2018-10-03 Thread Ulf Hansson
Instead of returning -EINVAL from of_genpd_parse_idle_states() in case none compatible states was found, let's return 0 to indicate success. Assign also the out-parameter *states to NULL and *n to 0, to indicate to the caller that zero states have been found/allocated. This enables the caller of

[PATCH v9 02/11] PM / Domains: Deal with multiple states but no governor in genpd

2018-10-03 Thread Ulf Hansson
A caller of pm_genpd_init() that provides some states for the genpd via the ->states pointer in the struct generic_pm_domain, should also provide a governor. This because it's the job of the governor to pick a state that satisfies the constraints. Therefore, let's print a warning to inform the

[PATCH v9 04/11] dt: psci: Update DT bindings to support hierarchical PSCI states

2018-10-03 Thread Ulf Hansson
From: Lina Iyer Update DT bindings to represent hierarchical CPU and CPU PM domain idle states for PSCI. Also update the PSCI examples to clearly show how flattened and hierarchical idle states can be represented in DT. Cc: Lina Iyer Signed-off-by: Lina Iyer Co-developed-by: Ulf Hansson

[PATCH v9 09/11] drivers: firmware: psci: Split psci_dt_cpu_init_idle()

2018-10-03 Thread Ulf Hansson
Let's split psci_dt_cpu_init_idle() function into two functions, as to allow following changes to re-use some of the code. Cc: Lina Iyer Co-developed-by: Lina Iyer Signed-off-by: Ulf Hansson --- drivers/firmware/psci/psci.c | 42 1 file changed, 23

Re: [PATCH RFC] cpuidle/drivers/menu: Remove get_loadavg in the performance multiplier

2018-10-03 Thread Rafael J. Wysocki
On Wed, Oct 3, 2018 at 12:25 PM Daniel Lezcano wrote: > > On 03/10/2018 10:58, Rafael J. Wysocki wrote: > > On Tuesday, September 25, 2018 11:38:44 AM CEST Daniel Lezcano wrote: > >> The function get_loadavg() returns almost always zero. To be more > >> precise, statistically speaking for a total

[PATCH] spi: pxa2xx: Mark expected switch fall-through

2018-10-03 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 1056539 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva --- drivers/spi/spi-pxa2xx.c | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [tip:x86/boot] ACPI/NUMA: Add warning message if the padding size for KASLR is not enough

2018-10-03 Thread Borislav Petkov
On Wed, Oct 03, 2018 at 02:34:02PM +0200, Peter Zijlstra wrote: > > Subject: ACPI/NUMA: Fix KASLR build error > > There is no point in trying to compile KASLR specific code when there is > no KASLR. > > Signed-off-by: Peter Zijlstra (Intel) > --- Yeah, Peter and I were just talking on IRC and

Re: [PATCH 4.14 000/137] 4.14.74-stable review

2018-10-03 Thread Guenter Roeck
On 10/02/2018 06:23 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.14.74 release. There are 137 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be

  1   2   3   4   5   6   7   8   9   10   >