Re: [PATCH 2/2] test_firmware: silence underflow warning in test_dev_config_update_u8()

2019-02-21 Thread Dan Carpenter
On Thu, Feb 21, 2019 at 10:54:58AM -0800, Andrew Morton wrote: > On Thu, 21 Feb 2019 21:38:26 +0300 Dan Carpenter > wrote: > > > We put an upper bound on "new" but we don't check for negatives. > > U8_MAX has unsigned type, so `if (new > U8_MAX)' does check for negative. > No, doesn't work in

Re: [PATCH 5/7] power: supply: add Ingenic JZ47xx battery driver.

2019-02-21 Thread Artur Rojek
On 2019-02-20 12:14, Jonathan Cameron wrote: On Sun, 17 Feb 2019 15:29:14 +0100 Artur Rojek wrote: Add a driver for battery present on Ingenic JZ47xx SoCs. Signed-off-by: Artur Rojek A few things inline. thanks, Jonathan Hi Jonathan. One thing inline. Artur --- drivers/power/supply

Re: general protection fault in relay_switch_subbuf

2019-02-21 Thread Andrew Morton
(cc Jens ;)) On Thu, 21 Feb 2019 06:54:03 -0800 syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:c04e2a780caf Merge tag 'fsnotify_for_v5.0-rc4' of git://gi.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=133424c0c

Re: [PATCHv5] random: Make /dev/random wait for input_pool initializedy

2019-02-21 Thread Bernd Edlinger
Hi Theodore, On 2/21/19 1:32 AM, Theodore Y. Ts'o wrote: > Hi Brend, > > I've been looking at your patch, and as far as the core part of what > you're patching, I think this patch below is a conceptually simpler > way of fixing the original core problem. Please take a look and let > me know what

Re: [PATCH] VMCI: Support upto 64-bit PPNs

2019-02-21 Thread Vishnu DASA
Hi Greg, Sounds like a good idea to use the BIT() macro but can I do that in a separate change to cover the entire file (and perhaps other vmci files too)? Thanks, Vishnu On 2/16/19, 11:53 AM, "gre...@linuxfoundation.org" wrote: On Fri, Feb 15, 2019 at 04:32:47PM +, Vishnu DASA wrote

[PATCH] block: fix inconsistent page index

2019-02-21 Thread Francesco Ruggeri
__find_get_block_slow() and grow_buffers() use different methods to compute a page index for a given block: __find_get_block_slow() computes it from bd_inode->i_blkbits, while grow_buffers() computes it from the block size argument. The two can get out of sync, for example if bd_inode->i_blkbits is

Re: [PATCH v2 1/3] x86/cpufeatures: Enumerate user wait instructions

2019-02-21 Thread Fenghua Yu
On Wed, Feb 20, 2019 at 10:37:27PM -0800, Andy Lutomirski wrote: > On Wed, Feb 20, 2019 at 7:44 PM Tao Xu wrote: > > > > From: Fenghua Yu > > > > > From patchwork Wed Jan 16 21:18:41 2019 > > Content-Type: text/plain; charset="utf-8" > > [snipped more stuff like this] > > What happened here?

[PATCH v3] driver: platform: Support parsing GpioInt 0 in platform_get_irq()

2019-02-21 Thread egranata
From: Enrico Granata ACPI 5 added support for GpioInt resources as a way to provide information about interrupts mediated via a GPIO controller. Several device buses (e.g. SPI, I2C) have support for retrieving an IRQ specified via this type of resource, and providing it directly to the driver as

Re: BUG: unable to handle kernel NULL pointer dereference in __generic_file_write_iter

2019-02-21 Thread Andrew Morton
On Thu, 21 Feb 2019 06:52:04 -0800 syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:4aa9fc2a435a Revert "mm, memory_hotplug: initialize struct.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=1101382f40 > kernel con

Re: [PATCH v2] phy: phy-twl4030-usb: fix denied runtime access

2019-02-21 Thread Andreas Kemnade
On Thu, 21 Feb 2019 08:48:03 -0800 Tony Lindgren wrote: > * Andreas Kemnade [190221 16:43]: > > Hi, > > > > On Wed, 20 Feb 2019 14:31:32 -0800 > > Tony Lindgren wrote: > > > > > * Andreas Kemnade [180922 09:48]: > > > > When runtime is not enabled, pm_runtime_get_sync() returns -EACCESS,

Re: [PATCH] VMCI: Support upto 64-bit PPNs

2019-02-21 Thread gre...@linuxfoundation.org
A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? A: No. Q: Should I include quotations after my reply? http://daringfireball.net/2007/07/on_top On Thu, Feb 21, 2019 at 07:26

Re: [PATCH] huegtlbfs: fix races and page leaks during migration

2019-02-21 Thread Andrew Morton
On Thu, 21 Feb 2019 11:11:06 -0800 Mike Kravetz wrote: > > Sorry for the churn. As I find and fix one issue I seem to discover another. > There is still at least one more issue with private pages when COW comes into > play. I continue to work that. I wanted to send this patch earlier as it >

Re: [PATCH v3 1/3] pwm: hibvt: Use individual struct per of-data.

2019-02-21 Thread Uwe Kleine-König
On Tue, Feb 19, 2019 at 10:58:06AM +0100, Mathieu Othacehe wrote: > Split pwm-soc array in one struct per soc and point to the > corresponding on in of-data. > > Signed-off-by: Mathieu Othacehe Acked-by: Uwe Kleine-König -- Pengutronix e.K. | Uwe Kleine-König

Re: [PATCH 2/2] test_firmware: silence underflow warning in test_dev_config_update_u8()

2019-02-21 Thread Andrew Morton
On Thu, 21 Feb 2019 22:18:56 +0300 Dan Carpenter wrote: > On Thu, Feb 21, 2019 at 10:54:58AM -0800, Andrew Morton wrote: > > On Thu, 21 Feb 2019 21:38:26 +0300 Dan Carpenter > > wrote: > > > > > We put an upper bound on "new" but we don't check for negatives. > > > > U8_MAX has unsigned type

Re: [PATCH] doc: cgroup: correct the wrong information about measure of memory pressure

2019-02-21 Thread Yang Shi
On 2/19/19 2:45 AM, 禹舟键 wrote: Hi TeJun I've built the 5.0.0-rc6 kernel with psi option, but I cannot find any cgroup.controllers when I mounted cgroup2. [root@bogon /]# uname -r [root@bogon /]# 5.0.0-rc6+ [root@bogon /]# mount -t cgroup2 none cgroup2/ [root@bogon /]# cat cgroup2/cgroup.contr

Re: [PATCH] drivers: depend on HAS_IOMEM for devm_platform_ioremap_resource()

2019-02-21 Thread Andy Shevchenko
On Thu, Feb 21, 2019 at 6:27 PM Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > We only build devm_ioremap_resource() if HAS_IOMEM is selected, so this > dependency must cascade down to devm_platform_ioremap_resource(). > +#ifdef CONFIG_HAS_IOMEM > void __iomem *devm_platform_iorem

[PATCH net] MAINTAINERS: mark CAIF as orphan

2019-02-21 Thread Jann Horn
The listed address for the CAIF maintainer bounces with "553 5.3.0 ... No such user here", and the only existing email address of the maintainer in git history hasn't responded in a week. Therefore, remove the listed maintainer and mark CAIF as orphan. Signed-off-by: Jann Horn --- MAINTAINERS |

Re: [PATCH v3 3/3] pwm: hibvt: Add hi3559v100 support

2019-02-21 Thread Uwe Kleine-König
On Tue, Feb 19, 2019 at 10:58:08AM +0100, Mathieu Othacehe wrote: > Add support for hi3559v100-shub-pwm and hisilicon,hi3559v100-pwm > platforms. They require a special quirk: pwm has to be enabled again > to force duty_cycle refresh. The patch looks fine now. (If you have to do another round: s/a

Re: [PATCH] drivers: depend on HAS_IOMEM for devm_platform_ioremap_resource()

2019-02-21 Thread Andy Shevchenko
On Thu, Feb 21, 2019 at 9:55 PM Andy Shevchenko wrote: > > On Thu, Feb 21, 2019 at 6:27 PM Bartosz Golaszewski wrote: > > > > From: Bartosz Golaszewski > > > > We only build devm_ioremap_resource() if HAS_IOMEM is selected, so this > > dependency must cascade down to devm_platform_ioremap_resour

Re: [PATCH] perf: fix getting source line failure in annotate

2019-02-21 Thread Arnaldo Carvalho de Melo
Em Thu, Feb 21, 2019 at 12:05:59PM +0100, Jiri Olsa escreveu: > On Thu, Feb 21, 2019 at 05:57:16PM +0800, Wei Li wrote: > > SNIP > > > liwei@euler:~/main_code/hulk_work/hulk/tools/perf$ sudo ./perf record > > ./common_while_1 > > [ perf record: Woken up 2 times to write data ] > > [ perf record:

Re: BUG: optimized kprobes illegal instructions in v4.19 stable kernels

2019-02-21 Thread Mathieu Desnoyers
Hi Arnd, Russell, Linus, Can we ensure the arm32 kprobes fix I submitted gets upstream before 5.0 final ? It takes care of an illegal instruction issue with optimized kprobes on arm32. Here is the current state of default kprobes configuration on arm32: using them will trigger illegal instruction

Re: [PATCH v2 1/4] pwm: atmel: add struct atmel_pwm_data

2019-02-21 Thread Uwe Kleine-König
On Tue, Feb 19, 2019 at 10:08:53AM +, claudiu.bez...@microchip.com wrote: > From: Claudiu Beznea > > Add struct atmel_pwm_data to embed different per controller information. At > this stage, embed a member of type struct atmel_pwm_registers in it. I'd write: Introduce a new structur

linux-next: Fixes tag needs some work in Linus' tree

2019-02-21 Thread Stephen Rothwell
Hi Linus, In commit 1062af920c07 ("tmpfs: fix link accounting when a tmpfile is linked in") Fixes tag Fixes: f4e0c30c191 ("allow the temp files created by open() to be linked to") has these problem(s): - SHA1 should be at least 12 digits long Can be fixed by setting core.abbrev to 1

Re: [PATCH 5/6] lib: Fix function documentation for strncpy_from_user

2019-02-21 Thread Stephen Rothwell
Hi Kees, On Wed, 20 Feb 2019 22:02:32 -0800 Kees Cook wrote: > > What I can't quite figure out yet is how to find a way for sfr to flag > newly added users of strcpy, strncpy, and strlcpy. We might need to > bring back __deprecated, but hide it behind a W=linux-next flag or > something crazy. Ste

[PATCH v4 2/3] spi: add FTDI MPSSE SPI controller driver

2019-02-21 Thread Anatolij Gustschin
Add SPI bus controller driver for FTDI MPSSE mode. This driver is supposed to be used together with the FT232H interface driver for FPGA configuration in drivers/usb/misc/ft232h-intf.c which adds an mpsse spi platform device describing USB SPI bus with attached SPI slave devices. Signed-off-by: An

[PATCH v4 0/3] Add support for ARRI FPGA configuration

2019-02-21 Thread Anatolij Gustschin
This series adds drivers and FPGA manager support required for FT232H based ARRI FPGA configuration adapters. Patch 1/3 adds FT232H interface driver (for ARRI USB PIDs) implementing commonly used FTDI USB transfer operations and ACBUS/MPSSE GPIO controllers. Depending on USB PIDs it creates platfo

[PATCH] btrfs: zstd ensure reclaim timer is properly cleaned up

2019-02-21 Thread Dennis Zhou
The timer function, zstd_reclaim_timer_fn(), reschedules itself under certain conditions. Switch to del_timer_sync() to ensure that the timer function hasn't rescheduled itself. Signed-off-by: Dennis Zhou --- fs/btrfs/zstd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/

[PATCH v4 3/3] fpga: Add fpga manager driver for ARRI Altera FPP

2019-02-21 Thread Anatolij Gustschin
Add FPGA manager driver for loading ARRI Altera FPGAs via fast passive parallel (FPP) interface using FTDI FT232H chip. Signed-off-by: Anatolij Gustschin --- .../ABI/testing/sysfs-driver-ftdi-fifo-fpp| 7 + drivers/fpga/Kconfig | 7 + drivers/fpga/Makefile

[PATCH v4 1/3] usb: misc: add driver for FT232H based FPGA configuration devices

2019-02-21 Thread Anatolij Gustschin
Add USB interface driver for ARRI FPGA configuration devices based on FTDI FT232H chip. Depending on USB PID the driver registers different platform devices describing an FPGA configuration interface. One FPGA configuration interface type is the usual SPI bus with additional control and status GPI

[PATCH v2 1/2] doc: translations: sync translations 'remove info about -git patches'

2019-02-21 Thread Federico Vaga
Synchonise translations: CN, IT, JP, KR commit 2c71d305caf9 ("docs: process: Remove outdated info about -git patches") I can guarantee for the Italian translations, but since we are removing an entire chapter I think I did it right also for the other languages. Signed-off-by: Federico Vaga ---

[PATCH v2 2/2] doc: process: complete removal of info about -git patches

2019-02-21 Thread Federico Vaga
The following patch forgot to remove a reference to the -git patches commit 2c71d305caf9 ("docs: process: Remove outdated info about -git patches") This patch complete the removal and update all translations Signed-off-by: Federico Vaga --- Documentation/process/howto.rst|

[PATCH v12] dm: add support to directly boot to a mapped device

2019-02-21 Thread Helen Koike
Add a "create" module parameter, which allows device-mapper targets to be configured at boot time. This enables early use of dm targets in the boot process (as the root device or otherwise) without the need of an initramfs. The syntax used in the boot param is based on the concise format from the

[RESEND PATCH v2] panic/reboot: allow specifying reboot_mode for panic only

2019-02-21 Thread Aaro Koskinen
From: Aaro Koskinen Allow specifying reboot_mode for panic only. This is needed on systems where ramoops is used to store panic logs, and user wants to use warm reset to preserve those, while still having cold reset on normal reboots. Signed-off-by: Aaro Koskinen --- v2: Use REBOOT_UND

Re: [PATCH] mm: migrate: add missing flush_dcache_page for non-mapped page migrate

2019-02-21 Thread Paul Burton
Hi Lars, On Tue, Feb 19, 2019 at 01:32:12PM +0100, Lars Persson wrote: > Our MIPS 1004Kc SoCs were seeing random userspace crashes with SIGILL > and SIGSEGV that could not be traced back to a userspace code > bug. They had all the magic signs of an I/D cache coherency issue. > > Now recently we n

[PATCH RFC 0/1] x86: adds additional CPU options

2019-02-21 Thread Corentin Labbe
Hello This patchset is a try to mainline a patch that lay around in gentoo-kernel for at least 4 years. The original work could be found at https://github.com/graysky2/kernel_gcc_patch So I have worked on cleaning and removing unwanted additionnal changes from the original intent. Regards Core

[PATCH RFC 1/1] x86: adds additional CPU options

2019-02-21 Thread Corentin Labbe
This patch adds additional CPU options to the Linux kernel. The expanded microarchitectures include: * AMD Improved K8-family * AMD K10-family * AMD Family 10h (Barcelona) * AMD Family 14h (Bobcat) * AMD Family 16h (Jaguar) * AMD Family 15h (Bulldozer) * AMD Family 15h (Piledriver) * AMD Family 15h

[PATCH] MIPS: ingenic: Add support for appended devicetree

2019-02-21 Thread Paul Cercueil
Add support for booting the kernel from an externally-appended devicetree, if no devicetree was built-in. Signed-off-by: Paul Cercueil --- arch/mips/Kconfig| 2 +- arch/mips/jz4740/setup.c | 14 +++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/arch/mips/Kco

linux-next: Fixes tag needs some work in the block tree

2019-02-21 Thread Stephen Rothwell
Hi Jens, In commit 8f4e80da764e ("block: bounce: make sure that bvec table is updated") Fixes tag Fixes: 6dc4f100c ("block: allow bio_for_each_segment_all() to iterate over multi-page bvec") has these problem(s): - SHA1 should be at least 12 digits long Can be fixed by setting core

Re: question about page tables in DAX/FS/PMEM case

2019-02-21 Thread Jerome Glisse
On Wed, Feb 20, 2019 at 03:06:22PM -0800, Larry Bassel wrote: > I'm working on sharing page tables in the DAX/XFS/PMEM/PMD case. > > If multiple processes would use the identical page of PMDs corresponding > to a 1 GiB address range of DAX/XFS/PMEM/PMDs, presumably one can instead > of populating

Re: [PATCH v2 2/4] pwm: atmel: add support for controllers with 32 bit counters

2019-02-21 Thread Uwe Kleine-König
Hello, On Tue, Feb 19, 2019 at 10:08:57AM +, claudiu.bez...@microchip.com wrote: > From: Claudiu Beznea > > New SAM9X60's PWM controller use 32 bits counters thus it could generate > signals with higher period and duty cycles than the old ones. Prepare the > current driver to be able to work

Re: [PATCH v2 2/3] dt-bindings: imx8mq-clock: Add the missing ARM clock

2019-02-21 Thread Stephen Boyd
Quoting Abel Vesa (2019-02-15 09:48:45) > Add the missing ARM clock which will be used by cpufreq > > Signed-off-by: Abel Vesa > Reviewed-by: Lucas Stach > --- > include/dt-bindings/clock/imx8mq-clock.h | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/include/dt-bind

Re: [PATCH v2 1/3] clk: imx: imx8mq: Fix the rate propagation for arm pll

2019-02-21 Thread Stephen Boyd
Quoting Abel Vesa (2019-02-15 09:48:43) > The arm pll bypass needs to propagate the rate upwards > in order for the cpufreq to work. > > Fixes: b80522040cd3f ("clk: imx: Add clock driver for i.MX8MQ CCM") > Signed-off-by: Abel Vesa > Reviewed-by: Lucas Stach > --- Applied to clk-next

Re: [PATCH v2 3/3] clk: imx8mq: Add the missing ARM clock

2019-02-21 Thread Stephen Boyd
Quoting Abel Vesa (2019-02-15 09:48:46) > Add the ARM clock as imx_clk_cpu type. > Will be used by cpufreq. > > Signed-off-by: Abel Vesa > Reviewed-by: Lucas Stach > --- Applied to clk-next

Re: [RESEND] clk: imx: Refactor entire sccg pll clk

2019-02-21 Thread Stephen Boyd
Quoting Abel Vesa (2019-02-18 01:24:33) > Make the entire combination of plls to be one single clock. The parents used > for bypasses are specified each as an index in the parents list. > The determine_rate does a lookup throughout all the possible combinations > for all the divs and returns the be

Re: [PATCH v2 3/4] pwm: atmel: add support for SAM9X60's PWM controller

2019-02-21 Thread Uwe Kleine-König
On Tue, Feb 19, 2019 at 10:09:00AM +, claudiu.bez...@microchip.com wrote: > From: Claudiu Beznea > > Add support for SAM9X60's PWM controller. > > Signed-off-by: Claudiu Beznea > --- > drivers/pwm/pwm-atmel.c | 19 +++ > 1 file changed, 19 insertions(+) > > diff --git a/dr

Re: [Xen-devel] xen/evtchn and forced threaded irq

2019-02-21 Thread Julien Grall
Hi Roger, On 21/02/2019 09:14, Roger Pau Monné wrote: > On Thu, Feb 21, 2019 at 08:38:39AM +, Julien Grall wrote: >> Hi Roger, >> >> On Thu, 21 Feb 2019, 08:08 Roger Pau Monné, wrote: >> >>> FWIW, you can also mask the interrupt while waiting for the thread to >>> execute the interrupt handle

Re: [PATCH V4 2/2] clk: imx: scu: add cpu frequency scaling support

2019-02-21 Thread Stephen Boyd
Quoting Anson Huang (2019-02-13 17:54:08) > On NXP's i.MX SoCs with system controller inside, CPU frequency > scaling can ONLY be done by system controller firmware, and it > can ONLY be requested from secure mode, so Linux kernel has to > call ARM SMC to trap to ARM-Trusted-Firmware to request sys

Re: [PATCH][RESEND] Make ARM_TIMER_SP804 depend on (ARM || ARM64)

2019-02-21 Thread Daniel Lezcano
On 21/02/2019 17:06, David Abdurachmanov wrote: > Resending to incl. a proper mailing list and maintainers (not suggested > by scripts/get_maintainer.pl) > > This is only used on arm and arm64 platforms. Other timers also seem > to depend on (ARM || ARM64). > > After I moved Fedora/RISCV kernel t

Re: [PATCH v2 00/10] MIPS: SGI-IP27 rework

2019-02-21 Thread Paul Burton
Hi Thomas, On Tue, Feb 19, 2019 at 04:57:14PM +0100, Thomas Bogendoerfer wrote: > SGI IP27 (Origin/Onyx2) and SGI IP30 (Octane) have a similair > architecture and share some hardware (ioc3/bridge). To share > the software parts this patchset reworks SGI IP27 interrupt > and pci bridge code. By usi

Re: [PATCH net] MAINTAINERS: mark CAIF as orphan

2019-02-21 Thread David Miller
From: Jann Horn Date: Thu, 21 Feb 2019 20:58:16 +0100 > The listed address for the CAIF maintainer bounces with > "553 5.3.0 ... No such user here", and the > only existing email address of the maintainer in git history hasn't > responded in a week. > Therefore, remove the listed maintainer and m

Re: [PATCH RFC 02/39] KVM: x86/xen: intercept xen hypercalls if enabled

2019-02-21 Thread Joao Martins
On 2/21/19 6:29 PM, Sean Christopherson wrote: > On Wed, Feb 20, 2019 at 08:15:32PM +, Joao Martins wrote: >> Add a new exit reason for emulator to handle Xen hypercalls. >> Albeit these are injected only if guest has initialized the Xen >> hypercall page - the hypercall is just a convenience b

Re: [PATCH] mtd: spi-nor: Add Winbond w25q16jv support

2019-02-21 Thread Robert Marko
On Wed, 20 Feb 2019 at 21:29, wrote:>> Hi, Robert,>> On 02/14/2019 10:57 PM, Robert Marko wrote:> > Datasheet: https://www.winbond.com/resource-files/w25q16jv%20spi%20revg%2003222018%20plus.pdf> >> > Testing done on Mikrotik Routerboard RB450Gx4 board under 4.19.19 kernel.>> It is preferable to d

Re: [PATCH] irqchip: brcmstb-l2: use _irqsave variants in non-interrupt code

2019-02-21 Thread Florian Fainelli
On 2/21/19 2:15 AM, Marc Zyngier wrote: > On Wed, 20 Feb 2019 14:15:28 -0800 > Florian Fainelli wrote: > >> From: Doug Berger >> >> Using the irq_gc_lock/irq_gc_unlock functions in the suspend and >> resume functions creates the opportunity for a deadlock during >> suspend, resume, and shutdown.

Re: [RESEND] clk: imx: Refactor entire sccg pll clk

2019-02-21 Thread Stephen Boyd
Quoting Abel Vesa (2019-02-18 01:24:33) > Make the entire combination of plls to be one single clock. The parents used > for bypasses are specified each as an index in the parents list. > The determine_rate does a lookup throughout all the possible combinations > for all the divs and returns the be

Re: [PATCH net-next v6] ipmr: ip6mr: Create new sockopt to clear mfc cache or vifs

2019-02-21 Thread David Miller
From: Callum Sinclair Date: Mon, 18 Feb 2019 10:07:51 +1300 > Created a way to clear the multicast forwarding cache on a socket > without having to either remove the entries manually using the delete > entry socket option or destroy and recreate the multicast socket. > > Calling the socket optio

Re: [PATCH v2 03/13] mm: Add generic p?d_large() macros

2019-02-21 Thread Kirill A. Shutemov
On Thu, Feb 21, 2019 at 05:16:46PM +, Steven Price wrote: > >> Note that in terms of the new page walking code, these new defines are > >> only used when walking a page table without a VMA (which isn't currently > >> done), so architectures which don't use p?d_large currently will work > >> fin

Re: [PATCH] lib/test_rhashtable: fix spelling mistake "existant" -> "existent"

2019-02-21 Thread David Miller
From: Colin King Date: Sun, 17 Feb 2019 22:52:09 + > From: Colin Ian King > > There are spelling mistakes in warning macro messages. Fix them. > > Signed-off-by: Colin Ian King Applied to net-next.

Re: [PATCH] IB/hfi1: Add missing break in switch statement

2019-02-21 Thread Jason Gunthorpe
On Wed, Feb 20, 2019 at 07:02:33PM -0600, Gustavo A. R. Silva wrote: > Fix the following warning by adding a missing break: > > drivers/infiniband/hw/hfi1/tid_rdma.c: In function > ‘hfi1_tid_rdma_wqe_interlock’: > drivers/infiniband/hw/hfi1/tid_rdma.c:3251:3: warning: this statement may > fall t

Re: [RFC PATCH 01/31] mm: migrate: Add exchange_pages to exchange two lists of pages.

2019-02-21 Thread Jerome Glisse
On Fri, Feb 15, 2019 at 02:08:26PM -0800, Zi Yan wrote: > From: Zi Yan > > In stead of using two migrate_pages(), a single exchange_pages() would > be sufficient and without allocating new pages. So i believe it would be better to arrange the code differently instead of having one function that

Re: [PATCH RFC 0/1] x86: adds additional CPU options

2019-02-21 Thread Borislav Petkov
On Thu, Feb 21, 2019 at 09:32:08PM +0100, Corentin Labbe wrote: > Hello > > This patchset is a try to mainline a patch that lay around in > gentoo-kernel for at least 4 years. And every couple of months someone sends some variant of this patch and every time we say no. Just don't bother. https:/

Re: [PATCH] MIPS: ingenic: Add support for appended devicetree

2019-02-21 Thread Jonas Gorski
On Thu, 21 Feb 2019 at 21:39, Paul Cercueil wrote: > > Add support for booting the kernel from an externally-appended > devicetree, if no devicetree was built-in. > > Signed-off-by: Paul Cercueil > --- > arch/mips/Kconfig| 2 +- > arch/mips/jz4740/setup.c | 14 +++--- > 2 files

Re: [PATCH v7 2/2] pwm: sifive: Add a driver for SiFive SoC PWM

2019-02-21 Thread Uwe Kleine-König
On Thu, Feb 21, 2019 at 02:41:41PM +0530, Yash Shah wrote: > Adds a PWM driver for PWM chip present in SiFive's HiFive Unleashed SoC. > > Signed-off-by: Wesley W. Terpstra > [Atish: Various fixes and code cleanup] > Signed-off-by: Atish Patra > Signed-off-by: Yash Shah > --- > drivers/pwm/Kcon

Re: [PATCH] IB/hfi1: Add missing break in switch statement

2019-02-21 Thread Gustavo A. R. Silva
On 2/21/19 3:09 PM, Jason Gunthorpe wrote: > On Wed, Feb 20, 2019 at 07:02:33PM -0600, Gustavo A. R. Silva wrote: >> Fix the following warning by adding a missing break: >> >> drivers/infiniband/hw/hfi1/tid_rdma.c: In function >> ‘hfi1_tid_rdma_wqe_interlock’: >> drivers/infiniband/hw/hfi1/tid_

Re: [RFC PATCH 01/31] mm: migrate: Add exchange_pages to exchange two lists of pages.

2019-02-21 Thread Zi Yan
On 21 Feb 2019, at 13:10, Jerome Glisse wrote: > On Fri, Feb 15, 2019 at 02:08:26PM -0800, Zi Yan wrote: >> From: Zi Yan >> >> In stead of using two migrate_pages(), a single exchange_pages() would >> be sufficient and without allocating new pages. > > So i believe it would be better to arrange t

Re: [PATCH v2] phy: phy-twl4030-usb: fix denied runtime access

2019-02-21 Thread Tony Lindgren
* Andreas Kemnade [190221 19:40]: > On Thu, 21 Feb 2019 08:48:03 -0800 > Tony Lindgren wrote: > > > * Andreas Kemnade [190221 16:43]: > > > Hi, > > > > > > On Wed, 20 Feb 2019 14:31:32 -0800 > > > Tony Lindgren wrote: > > > > > > > * Andreas Kemnade [180922 09:48]: > > > > > When runtim

Re: [PATCH v2 2/2] clk: samsung: exynos5: Fix kfree() of const memory on setting driver_override

2019-02-21 Thread Stephen Boyd
Quoting Krzysztof Kozlowski (2019-02-21 03:45:52) > Platform driver driver_override field should not be initialized from > const memory because the core later kfree() it. If driver_override is > manually set later through sysfs, kfree() of old value leads to: > > $ echo "new_value" > /sys/bus

Re: [PATCH v2 1/2] clk: samsung: exynos5: Fix possible NULL pointer exception on platform_device_alloc() failure

2019-02-21 Thread Stephen Boyd
Quoting Krzysztof Kozlowski (2019-02-21 03:45:51) > During initialization of subdevices if platform_device_alloc() failed, > returned NULL pointer will be later dereferenced. Add proper error > paths to exynos5_clk_register_subcmu(). The return value of this > function is still ignored because at

[PATCH v4 0/1] gpio: add driver for Mellanox BlueField GPIO controller

2019-02-21 Thread Shravan Kumar Ramani
Changes since v3 - the naming scheme has been fixed to remove double underscores and use standard variable names - the locking has been updated to protect the entire read/modify operations. Regarding the suggested use of the generic MMIO library, I noticed that bgpio_init only allows for either

[PATCH v4 1/1] gpio: add driver for Mellanox BlueField GPIO controller

2019-02-21 Thread Shravan Kumar Ramani
This patch adds support for the GPIO controller used by Mellanox BlueField SOCs. Reviewed-by: David Woods Signed-off-by: Shravan Kumar Ramani --- drivers/gpio/Kconfig | 6 ++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-mlxbf.c | 222 ++

Re: [PATCH] sched/x86: Save [ER]FLAGS on context switch

2019-02-21 Thread Thomas Gleixner
On Thu, 21 Feb 2019, Julien Thierry wrote: > On 20/02/2019 22:55, H. Peter Anvin wrote: > > Now, __fentry__ is kind of a special beast; in some ways it is an "exception > > implemented as a function call"; on x86 one could even consider using an INT > > instruction in order to reduce the NOP footpr

Re: [LKP] [driver core] 570d020012: will-it-scale.per_thread_ops -12.2% regression

2019-02-21 Thread Wei Yang
On Thu, Feb 21, 2019 at 10:12:17AM +0100, Greg Kroah-Hartman wrote: >On Thu, Feb 21, 2019 at 04:39:27PM +0800, Wei Yang wrote: >> >>> I don't think this is an issues of struct device. As you said, struct >> >>> device isn't access much during test. Struct device may share slab page >> >>> with so

Re: [PATCH][RESEND] Make ARM_TIMER_SP804 depend on (ARM || ARM64)

2019-02-21 Thread David Abdurachmanov
On Thu, Feb 21, 2019 at 9:48 PM Daniel Lezcano wrote: > > On 21/02/2019 17:06, David Abdurachmanov wrote: > > Resending to incl. a proper mailing list and maintainers (not suggested > > by scripts/get_maintainer.pl) > > > > This is only used on arm and arm64 platforms. Other timers also seem > > t

Re: [PATCH] clk: samsung: s3c2443: Mark expected switch fall-through

2019-02-21 Thread Stephen Boyd
Quoting Kees Cook (2019-02-20 14:26:06) > On Fri, Feb 15, 2019 at 4:34 PM Stephen Boyd wrote: > > Quoting Kees Cook (2019-02-12 10:57:05) > > > On Mon, Feb 11, 2019 at 11:41 PM Krzysztof Kozlowski > > > wrote: > > > > > > > > It is just the GCC which has to be fixed not the code. You want to > >

Re: [PATCH] clk: samsung: s3c2443: Mark expected switch fall-through

2019-02-21 Thread Stephen Boyd
Quoting Gustavo A. R. Silva (2019-02-11 10:15:31) > In preparation to enabling -Wimplicit-fallthrough, mark switch > cases where we are expecting to fall through. > > This patch fixes the following warnings: > > drivers/clk/samsung/clk-s3c2443.c: In function ‘s3c2443_common_clk_init’: > drivers/c

Re: [PATCH] MIPS: ingenic: Add support for appended devicetree

2019-02-21 Thread Paul Cercueil
Hi Jonas, On Thu, 21 Feb 2019 at 21:39, Jonas Gorski wrote: On Thu, 21 Feb 2019 at 21:39, Paul Cercueil wrote: Add support for booting the kernel from an externally-appended devicetree, if no devicetree was built-in. Signed-off-by: Paul Cercueil --- arch/mips/Kconfig| 2 +-

Re: [PATCH] clk: uniphier: Fix update register for CPU-gear

2019-02-21 Thread Stephen Boyd
Quoting Kunihiko Hayashi (2019-02-07 18:25:23) > Need to set the update bit in UNIPHIER_CLK_CPUGEAR_UPD to update > the CPU-gear value. > > Fixes: d08f1f0d596c ("clk: uniphier: add CPU-gear change (cpufreq) support") > Cc: linux-sta...@vger.kernel.org > Signed-off-by: Kunihiko Hayashi > --- Appl

Re: [PATCH 2/2] clk: mmp2: separate LCDC peripheral clk form the display clock

2019-02-21 Thread Stephen Boyd
Quoting Lubomir Rintel (2019-01-20 22:31:29) > These are in fact two clocks, they shouldn't be exposed as one. One is > required for accessing LCD controller registers (peripheral clock), while > other (AXI clock) can be optionally used as a pixel clock source for the > panel. > > LCDC can alterna

Re: [PATCH 1/2] dt-bindings: marvell,mmp2: Add clock id for the LCDC clock

2019-02-21 Thread Stephen Boyd
Quoting Lubomir Rintel (2019-01-20 22:31:28) > The peripheral clock is required for access the the LCDC registers. It > is in fact separate from the "AXI clock" that is optionally used to > generate the pixel clock and as such requires a separate clock id. > > Link: > https://lists.freedesktop.or

[PATCH] drm/msm: Fix incorrect struct size for memory allocation

2019-02-21 Thread Jordan Crouse
The allocation for the clock bulk data does a classic sizeof(pointer) instead of sizeof(struct) so the array ends up incorrectly sized for the clock data. Cc: sta...@vger.kernel.org Fixes: 8e54eea ("drm/msm: Add a helper function to parse clock names") Signed-off-by: Jordan Crouse --- drivers/g

[GIT PULL] clk fixes for v5.0-rc7

2019-02-21 Thread Stephen Boyd
The following changes since commit 9ff1a3b4912528f853048ccd9757ba6a2cc75557: clk: qcom: gcc: Use active only source for CPUSS clocks (2019-01-24 11:41:48 -0800) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git tags/clk-fixes-for-linus f

Re: [PATCH 1/2] dt-bindings: marvell,mmp2: Add clock id for the LCDC clock

2019-02-21 Thread Stephen Boyd
Quoting Lubomir Rintel (2019-02-11 02:20:49) > The peripheral clock is required for access the the LCDC registers. It > is in fact separate from the "AXI clock" that is optionally used to generate > the pixel clock and as such requires a separate clock id. > > Link: > https://lists.freedesktop.or

Re: [PATCH v7 00/23] locking/lockdep: Add support for dynamic keys

2019-02-21 Thread Bart Van Assche
On Thu, 2019-02-14 at 15:00 -0800, Bart Van Assche wrote: > A known shortcoming of the current lockdep implementation is that it requires > lock keys to be allocated statically. This forces certain unrelated > synchronization objects to share keys and this key sharing can cause false > positive dea

Re: [PATCH v2] clk: qcom: clk-rpmh: Add IPA clock support

2019-02-21 Thread Stephen Boyd
Quoting David Dai (2019-01-24 16:47:00) > The clk-rpmh driver only supports on and off RPMh clock resources. Let's > extend the driver by adding support for clocks that are managed by a > different type of RPMh resource known as Bus Clock Manager(BCM). The BCM > is a configurable shared resource ag

[PATCH] afs: Fix manually set volume location server list

2019-02-21 Thread David Howells
When a cell with a volume location server list is added manually by echoing the details into /proc/net/afs/cells, a record is added but the flag saying it has been looked up isn't set. This causes the VL server rotation code to wait forever, with the top of /proc/pid/stack looking like: [

Re: [PATCH v1 2/2] clk: mediatek: correct cpu clock name for MT8173 SoC

2019-02-21 Thread Stephen Boyd
Quoting Seiya Wang (2019-02-10 23:15:55) > Change cpu clock name from ca57 to ca72 since MT8173 does use cortex-a72. > > Signed-off-by: Seiya Wang > --- Acked-by: Stephen Boyd I'm guessing I can't apply this patch because the define is renamed which would break older DTs. Another option would

Re: [PATCH] clk: clk-gpio: add support for sleeping GPIOs in gpio-gate-clk

2019-02-21 Thread Stephen Boyd
Quoting Stephen Boyd (2019-02-13 09:14:22) > > static? > Ok I marked it static and applied to clk-next.

Re: [PATCH] sched/x86: Save [ER]FLAGS on context switch

2019-02-21 Thread Andy Lutomirski
> On Feb 21, 2019, at 4:46 AM, Will Deacon wrote: > >> On Wed, Feb 20, 2019 at 02:55:59PM -0800, H. Peter Anvin wrote: >>> On 2/19/19 4:48 AM, Will Deacon wrote: >>> >>> I think you'll still hate this, but could we not disable preemption during >>> the uaccess-enabled region, re-enabling it

Re: [PATCH] drm/msm: Fix incorrect struct size for memory allocation

2019-02-21 Thread Jeffrey Hugo
On 2/21/2019 2:54 PM, Jordan Crouse wrote: The allocation for the clock bulk data does a classic sizeof(pointer) instead of sizeof(struct) so the array ends up incorrectly sized for the clock data. Cc: sta...@vger.kernel.org Fixes: 8e54eea ("drm/msm: Add a helper function to parse clock names")

Re: [PATCH] sched/x86: Save [ER]FLAGS on context switch

2019-02-21 Thread Linus Torvalds
On Thu, Feb 21, 2019 at 1:35 PM Thomas Gleixner wrote: > > IMNSHO any call inside a AC region is a bug lurking round the corner. The > only thing which is tolerable is an exception of some sort. > > Enforce that with objtool. End of story. Not quite that simple. There are some use cases where yo

Re: [Nouveau] [PATCH -next] drm/nouveau/dmem: remove set but not used variable 'drm'

2019-02-21 Thread Ben Skeggs
On Thu, 21 Feb 2019 at 13:41, YueHaibing wrote: > > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/gpu/drm/nouveau/nouveau_dmem.c: In function 'nouveau_dmem_free': > drivers/gpu/drm/nouveau/nouveau_dmem.c:103:22: warning: > variable 'drm' set but not used [-Wunused-but-set-variable] >

Re: [PATCH] mdio_bus: Fix use-after-free on device_register fails

2019-02-21 Thread Andrew Lunn
On Thu, Feb 21, 2019 at 10:42:01PM +0800, Yue Haibing wrote: > From: YueHaibing > > KASAN has found use-after-free in fixed_mdio_bus_init, > commit 0c692d07842a ("drivers/net/phy/mdio_bus.c: call > put_device on device_register() failure") call put_device() > while device_register() fails,give up

Re: [RFC PATCH] mm,memory_hotplug: Unlock 1GB-hugetlb on x86_64

2019-02-21 Thread Mike Kravetz
On 2/21/19 1:42 AM, Oscar Salvador wrote: > On x86_64, 1GB-hugetlb pages could never be offlined due to the fact > that hugepage_migration_supported() returned false for PUD_SHIFT. > So whenever we wanted to offline a memblock containing a gigantic > hugetlb page, we never got beyond has_unmovable_

Re: [PATCH v2 6/7] clk: stm32mp1: remove unnecessary CLK_DIVIDER_ALLOW_ZERO flag

2019-02-21 Thread Stephen Boyd
Quoting gabriel.fernan...@st.com (2019-02-14 02:40:46) > From: Gabriel Fernandez > > The divisor of ethptp_k and ck_hse_rtc clocks is: 'value register > plus one'. > Then CLK_DIVIDER_ALLOW_ZERO flag has no effect and is useless here. > > Signed-off-by: Gabriel Fernandez > --- Applied to clk-ne

Re: [PATCH v2 3/7] clk: stm32mp1: set ck_csi as critical clock

2019-02-21 Thread Stephen Boyd
Quoting gabriel.fernan...@st.com (2019-02-14 02:40:43) > From: Gabriel Fernandez > > ck_csi is used for IO compensation so it should be > considered as "always-on" and kept on. > > Signed-off-by: Gabriel Fernandez > --- Applied to clk-next

Re: [PATCH v2 5/7] clk: stm32mp1: fix HSI divider flag

2019-02-21 Thread Stephen Boyd
Quoting gabriel.fernan...@st.com (2019-02-14 02:40:45) > From: Gabriel Fernandez > > The divider of HSI (clk-hsi-div) is power of two divider. > > Fixes: 9bee94e7b7da ("clk: stm32mp1: Introduce STM32MP1 clock driver") > Signed-off-by: Gabriel Fernandez > --- Applied to clk-next

Re: [PATCH v2 1/7] clk: stm32mp1: parent clocks update

2019-02-21 Thread Stephen Boyd
Quoting gabriel.fernan...@st.com (2019-02-14 02:40:41) > From: Gabriel Fernandez > > Fixes parent clock for axi, fdcan, sai and adc12 clocks. > > Fixes: e51d297e9a92 ("clk: stm32mp1: add Sub System clocks") > Signed-off-by: Gabriel Fernandez > --- Applied to clk-next

Re: [PATCH v2 7/7] clk: stm32mp1: fix bit width of hse_rtc divider

2019-02-21 Thread Stephen Boyd
Quoting gabriel.fernan...@st.com (2019-02-14 02:40:47) > From: Gabriel Fernandez > > Fix the bit width of the hse rtc divider because it's off by one. > > Fixes: 2c87c9d33117 ("clk: stm32mp1: add RTC clock") > Signed-off-by: Gabriel Fernandez > --- Applied to clk-next

Re: [PATCH v2 2/7] clk: stm32mp1: add CLK_SET_RATE_NO_REPARENT to Kernel clocks

2019-02-21 Thread Stephen Boyd
Quoting gabriel.fernan...@st.com (2019-02-14 02:40:42) > From: Gabriel Fernandez > > STM32MP1 clock IP offers lots of Kernel clocks that are shared > by multiple IP's at the same time. > Then boot loader applies a clock tree that allows to use all IP's > at same time and with the maximum of perfo

[ANNOUNCE] v4.19.23-rt14

2019-02-21 Thread Sebastian Andrzej Siewior
Dear RT folks! I'm pleased to announce the v4.19.23-rt14 patch set. Changes since v4.19.23-rt13: - Use the specified preempt mask in should_resched() on x86. Otherwise a scheduling opportunity of non RT tasks could be missed. - Preserve the task state in cpu_chill() - Add two more c

Re: [PATCH v2 3/5] soc: qcom: socinfo: Expose custom attributes

2019-02-21 Thread Laurent Pinchart
Hi Bjorn, On Thu, Feb 21, 2019 at 07:57:42AM -0800, Bjorn Andersson wrote: > On Thu 21 Feb 04:18 PST 2019, Laurent Pinchart wrote: > > > Hi Vaishali, > > > > Thank you for the patch. > > > > On Wed, Feb 20, 2019 at 10:28:29AM +0530, Vaishali Thakkar wrote: > > > The Qualcomm socinfo provides a

<    5   6   7   8   9   10   11   12   13   >