[RFC PATCH v1 08/25] printk: add ring buffer and kthread

2019-02-12 Thread John Ogness
The printk ring buffer provides an NMI-safe interface for writing messages to a ring buffer. Using such a buffer for alleviates printk callers from the current burdens of disabled preemption while calling the console drivers (and possibly printing out many messages that another task put into the

[RFC PATCH v1 12/25] printk: minimize console locking implementation

2019-02-12 Thread John Ogness
Since printing of the printk buffer is now handled by the printk kthread, minimize the console locking functions to just handle locking of the console. NOTE: With this console_flush_on_panic will no longer flush. Signed-off-by: John Ogness --- kernel/printk/printk.c | 255

Re: Applied "spi: Add Renesas R-Car Gen3 RPC-IF SPI controller driver" to the spi tree

2019-02-12 Thread Marek Vasut
On 2/12/19 3:22 PM, Mark Brown wrote: > The patch > >spi: Add Renesas R-Car Gen3 RPC-IF SPI controller driver > > has been applied to the spi tree at > >https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git > > All being well this means that it will be integrated into the

[PATCH] tools/power turbostat: return the exit status of a command

2019-02-12 Thread David Arcari
turbostat failed to return a non-zero exit status even though the supplied command (turbostat ) failed. Currently when turbostat forks a command it returns zero instead of the actual exit status of the command. Modify the code to return the exit status. Signed-off-by: David Arcari Cc: Len

Re: [PATCH] drm/msm/a6xx: Add support for an interconnect path

2019-02-12 Thread Greg KH
On Tue, Feb 12, 2019 at 04:07:35PM +0200, Georgi Djakov wrote: > Hi Greg, > > On 2/12/19 12:16, Greg KH wrote: > > On Tue, Feb 12, 2019 at 11:52:38AM +0200, Georgi Djakov wrote: > >> From: Jordan Crouse > >> > >> Try to get the interconnect path for the GPU and vote for the maximum > >>

Re: [GIT PULL] csky fixes for v5.0-rc6

2019-02-12 Thread Arnd Bergmann
On Mon, Feb 11, 2019 at 7:28 PM Linus Torvalds wrote: > > On Sun, Feb 10, 2019 at 9:08 PM wrote: > > > > arch/csky patches for 5.0-rc6 > > The bulk of this seems to be new hardware support code. > > Please send it during the 5.1 merge window, not as fixes at post-rc6 time. Aside from this, I

Re: Oops in rpc_clnt_debugfs_register() from debugfs change

2019-02-12 Thread Greg Kroah-Hartman
On Tue, Feb 12, 2019 at 02:31:14PM +, David Howells wrote: > I've bisected an oops that occurs in rpc_clnt_debugfs_register() trying to > dereference a pointer with -EACCES in it. This is the causing commit, though > I suspect the bug is in sunrpc expecting to see NULL rather than an error. >

[GIT PULL] sound fixes for 5.0-rc7

2019-02-12 Thread Takashi Iwai
Linus, please pull sound fixes for v5.0-rc7 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-5.0-rc7 The topmost commit is 00a399cad1a063e7665f06b6497a807db20441fd sound fixes for 5.0-rc7 It's a

Re: [PATCH] mm,memory_hotplug: Explicitly pass the head to isolate_huge_page

2019-02-12 Thread Michal Hocko
On Tue 12-02-19 14:45:49, Oscar Salvador wrote: > On Tue, Feb 12, 2019 at 09:33:29AM +0100, Michal Hocko wrote: > > > > > > if (PageHuge(page)) { > > > struct page *head = compound_head(page); > > > - pfn = page_to_pfn(head) + (1< > >

Re: [PATCH] parisc: use memblock_alloc() instead of custom get_memblock()

2019-02-12 Thread Mike Rapoport
On Tue, Feb 12, 2019 at 06:14:18AM -0800, Matthew Wilcox wrote: > On Tue, Feb 12, 2019 at 03:59:50PM +0200, Mike Rapoport wrote: > > -static void * __init get_memblock(unsigned long size) > > -{ > > - static phys_addr_t search_addr __initdata; > > - phys_addr_t phys; > > - > > - if

[PATCH] Documentation: change linux-4.x references to 5.x

2019-02-12 Thread Arnd Bergmann
As linux-5.0.x is coming up soon, the documentation should match, in particular the README.rst file, so change all 4.x references accordingly. There was a mix of lowercase and uppercase X here, which I changed to using lowercase consistently. Signed-off-by: Arnd Bergmann ---

Re: Oops in rpc_clnt_debugfs_register() from debugfs change

2019-02-12 Thread Greg Kroah-Hartman
On Tue, Feb 12, 2019 at 03:37:20PM +0100, Greg Kroah-Hartman wrote: > On Tue, Feb 12, 2019 at 02:31:14PM +, David Howells wrote: > > I've bisected an oops that occurs in rpc_clnt_debugfs_register() trying to > > dereference a pointer with -EACCES in it. This is the causing commit, > > though

Re: [PATCH 5/5] kasan, slub: fix conflicts with CONFIG_SLAB_FREELIST_HARDENED

2019-02-12 Thread Andrey Konovalov
On Tue, Feb 12, 2019 at 2:43 PM Qian Cai wrote: > > > > On 2/12/19 8:26 AM, Andrey Konovalov wrote: > > Hm, did you apply all 6 patches (the one that you sent and these five) > Yes. I'm failing to reproduce this in QEMU. You're still using the same config, right? Could you share whole dmesg

Re: [RFC PATCH v2 0/4] mm, memory_hotplug: allocate memmap from hotadded memory

2019-02-12 Thread Michal Hocko
On Tue 12-02-19 14:56:58, Oscar Salvador wrote: > On Tue, Feb 12, 2019 at 01:21:38PM +, Shameerali Kolothum Thodi wrote: > > > Hi Oscar, > > > > > > I ran tests on one of our arm64 machines. Particular machine doesn't > > > actually > > > have > > > the mechanics for hotplug, so was all

Re: [PATCH 2/3] soc: amlogic: gx-socinfo: Add new SoC IDs and Packages IDs

2019-02-12 Thread Jerome Brunet
On Tue, 2019-02-12 at 15:23 +0100, Neil Armstrong wrote: > This adds the G12A and G12B SoC ids and the S90X2 package ID. ^ Small typo here | > > Signed-off-by: Neil Armstrong > --- >

Re: Applied "spi: Add Renesas R-Car Gen3 RPC-IF SPI controller driver" to the spi tree

2019-02-12 Thread Mark Brown
On Tue, Feb 12, 2019 at 03:33:12PM +0100, Marek Vasut wrote: > On 2/12/19 3:22 PM, Mark Brown wrote: > > Please add any relevant lists and maintainers to the CCs when replying > > to this mail. > How did that happen when there were still comments and open topics ? Mason had submitted a new

Re: [RFC PATCH v1 01/25] printk-rb: add printk ring buffer documentation

2019-02-12 Thread Greg Kroah-Hartman
On Tue, Feb 12, 2019 at 03:29:39PM +0100, John Ogness wrote: > The full documentation file for the printk ring buffer. > > Signed-off-by: John Ogness > --- > Documentation/printk-ringbuffer.txt | 377 > Nit, shouldn't this be in .rst format and tied into

Re: [RFC PATCH v1 03/25] printk-rb: define ring buffer struct and initializer

2019-02-12 Thread Greg Kroah-Hartman
On Tue, Feb 12, 2019 at 03:29:41PM +0100, John Ogness wrote: > See Documentation/printk-ringbuffer.txt for details about the > initializer arguments. You can put that documentation here in the .h file and have it pulled out automatically into the documentation files when they are created. That

Re: [RFC PATCH v2 0/4] mm, memory_hotplug: allocate memmap from hotadded memory

2019-02-12 Thread Oscar Salvador
On Tue, Feb 12, 2019 at 03:42:42PM +0100, Michal Hocko wrote: > Please make sure to test on a larger machine which has multi section > memblocks. This is where I was hitting on bugs hard. I tested the patchset with large memblocks (2GB) on x86_64, and worked fine as well. On powerpc I was only

Re: [PATCH 0/2] driver core: Fixes related to device links

2019-02-12 Thread Ulf Hansson
On Tue, 12 Feb 2019 at 15:09, Greg Kroah-Hartman wrote: > > On Tue, Feb 12, 2019 at 01:01:13PM +0100, Rafael J. Wysocki wrote: > > Hi Greg at al, > > > > These fix two issues on top of the recent device links material in > > driver-core/driver-core-next. > > > > The first one fixes a race

[PATCH-tip] genirq: Add missing documentation for tot_count

2019-02-12 Thread Waiman Long
Commit 1136b0728969 ("genirq: Avoid summation loops for /proc/stat") adds a new tot_count field to the irq_desc structure without documenting it. This patch adds the missing piece of documentation. Signed-off-by: Waiman Long --- include/linux/irqdesc.h | 1 + 1 file changed, 1 insertion(+)

Re: [PATCH v2] mm/memory-hotplug: Add sysfs hot-remove trigger

2019-02-12 Thread Robin Murphy
On 12/02/2019 08:33, Michal Hocko wrote: On Mon 11-02-19 17:50:46, Robin Murphy wrote: ARCH_MEMORY_PROBE is a useful thing for testing and debugging hotplug, but being able to exercise the (arguably trickier) hot-remove path would be even more useful. Extend the feature to allow removal of

[PATCH 2/4] Expose O_PATHSTATIC to userspace

2019-02-12 Thread demiobenour
From: "Demi M. Obenour" This adds the file open flag O_PATHSTATIC, which ensures that symbolic links are *never* followed, even in path components other than the last. This is distinct from O_NOFOLLOW, which only prevents symlinks in the *last* component from being followed. This is useful for

[PATCH 3/4] Add AT_PATHSTATIC to linkat()

2019-02-12 Thread demiobenour
From: "Demi M. Obenour" This has the same meaning as O_PATHSTATIC does in openat(), and has the same uses. --- fs/namei.c | 8 +++- include/uapi/linux/fcntl.h | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/fs/namei.c b/fs/namei.c index

[PATCH 4/4] Return -EINVAL if userspace passes bogus flags to open()

2019-02-12 Thread demiobenour
From: "Demi M. Obenour" While testing the O_PATHSTATIC patch, I discovered that Linux does not return any error if an invalid flag is passed to open(2). This prevents adding new flags without a (minor) risk of breaking userspace. Therefore, add a check for invalid flags, and return -EINVAL if

Re: [PATCH] mei: expand minor range when registering chrdev region

2019-02-12 Thread cgxu519
On 2/12/19 5:29 PM, Greg KH wrote: On Tue, Feb 12, 2019 at 02:02:52PM +0800, Chengguang Xu wrote: Actually, total amount of available minor number for a single major is MINORMARK + 1. So expand minor range when registering chrdev region. Signed-off-by: Chengguang Xu ---

[PATCH 1/4] Add path resolution flag LOOKUP_NEVER_FOLLOW

2019-02-12 Thread demiobenour
From: "Demi M. Obenour" This adds the flag LOOKUP_NEVER_FOLLOW to path resolution, which tells the code in fs/namei.c to never follow symlinks. This flag overrides LOOKUP_FOLLOW, since this makes internal APIs simpler: code can set the flag without needing to also clear LOOKUP_FOLLOW, which is

Re: Oops in rpc_clnt_debugfs_register() from debugfs change

2019-02-12 Thread David Howells
Greg Kroah-Hartman wrote: > - if (!xprt->debugfs) { > + if (IS_ERR_OR_NULL(xprt->debugfs)) { That works, though I don't much like the idea of there being an error there. Looking in rpc_xprt_debugfs_register() there are two now-dodgy looking checks on the result of debugfs calls. David

Re: [PATCH] ser_gigaset: mark expected switch fall-through

2019-02-12 Thread Gustavo A. R. Silva
On 2/12/19 2:45 AM, Paul Bolle wrote: > Gustavo A. R. Silva schreef op ma 11-02-2019 om 16:34 [-0600]: >> In preparation to enabling -Wimplicit-fallthrough, mark switch >> cases where we are expecting to fall through. >> >> This patch fixes the following warning: >> >>

Re: Oops in rpc_clnt_debugfs_register() from debugfs change

2019-02-12 Thread Greg Kroah-Hartman
On Tue, Feb 12, 2019 at 03:42:14PM +0100, Greg Kroah-Hartman wrote: > On Tue, Feb 12, 2019 at 03:37:20PM +0100, Greg Kroah-Hartman wrote: > > On Tue, Feb 12, 2019 at 02:31:14PM +, David Howells wrote: > > > I've bisected an oops that occurs in rpc_clnt_debugfs_register() trying to > > >

Re: [PATCH 0/2] driver core: Fixes related to device links

2019-02-12 Thread Rafael J. Wysocki
On Tue, Feb 12, 2019 at 3:53 PM Ulf Hansson wrote: > > On Tue, 12 Feb 2019 at 15:09, Greg Kroah-Hartman > wrote: > > > > On Tue, Feb 12, 2019 at 01:01:13PM +0100, Rafael J. Wysocki wrote: > > > Hi Greg at al, > > > > > > These fix two issues on top of the recent device links material in > > >

Re: Oops in rpc_clnt_debugfs_register() from debugfs change

2019-02-12 Thread Greg Kroah-Hartman
On Tue, Feb 12, 2019 at 02:57:34PM +, David Howells wrote: > Greg Kroah-Hartman wrote: > > > - if (!xprt->debugfs) { > > + if (IS_ERR_OR_NULL(xprt->debugfs)) { > > That works, though I don't much like the idea of there being an error there. > > Looking in rpc_xprt_debugfs_register()

Re: [PATCH 0/2] driver core: Fixes related to device links

2019-02-12 Thread Greg Kroah-Hartman
On Tue, Feb 12, 2019 at 03:52:53PM +0100, Ulf Hansson wrote: > On Tue, 12 Feb 2019 at 15:09, Greg Kroah-Hartman > wrote: > > > > On Tue, Feb 12, 2019 at 01:01:13PM +0100, Rafael J. Wysocki wrote: > > > Hi Greg at al, > > > > > > These fix two issues on top of the recent device links material in >

Re: [bpf-next 1/2] tcp: replace SOCK_DEBUG() with tcp_stats()

2019-02-12 Thread Eric Dumazet
On 02/12/2019 03:31 AM, Yafang Shao wrote: > SOCK_DEBUG is a very ancient debugging interface, and it's not very useful > for debugging. > So this patch removes the SOCK_DEBUG() and introduce a new function > tcp_stats() to trace this kind of events. > Some MIBs are added for these events. > >

Re: [PATCH 11/15] PCI: pci-epf-test: Use pci_epc_get_features to get EPC features

2019-02-12 Thread Lorenzo Pieralisi
On Mon, Jan 07, 2019 at 12:11:44PM +0530, Kishon Vijay Abraham I wrote: [...] > static int pci_epf_test_bind(struct pci_epf *epf) > { > int ret; > struct pci_epf_test *epf_test = epf_get_drvdata(epf); > struct pci_epf_header *header = epf->header; > + const struct

Re: [PATCH] staging: vt6656: Use the correct style for SPDX license Identifier

2019-02-12 Thread Nishad Kamdar
On Tue, Feb 05, 2019 at 07:44:31PM +0100, Greg Kroah-Hartman wrote: > On Tue, Feb 05, 2019 at 08:36:24PM +0530, Nishad Kamdar wrote: > > This patch corrects the style for SPDX license Identifier in mac.h > > by using "/* */" in place of "//" as per Linux kernel licensing rules. > > Issue found by

Re: [bpf-next 2/2] bpf: add BPF_SOCK_OPS_STATS_CB for tcp_stats()

2019-02-12 Thread Eric Dumazet
On 02/12/2019 03:31 AM, Yafang Shao wrote: > Introuce this new op BPF_SOCK_OPS_STATS_CB for tcp_stats() such that it > can be traced via BPF on a per socket basis. > There's one argument in BPF_SOCK_OPS_STATS_CB, which is Linux MIB index > LINUX_MIB_* to indicate the TCP event. > All these

Re: [PATCH v2] mm/memory-hotplug: Add sysfs hot-remove trigger

2019-02-12 Thread Michal Hocko
On Tue 12-02-19 14:54:36, Robin Murphy wrote: > On 12/02/2019 08:33, Michal Hocko wrote: > > On Mon 11-02-19 17:50:46, Robin Murphy wrote: > > > ARCH_MEMORY_PROBE is a useful thing for testing and debugging hotplug, > > > but being able to exercise the (arguably trickier) hot-remove path would > >

Re: Oops in rpc_clnt_debugfs_register() from debugfs change

2019-02-12 Thread Greg Kroah-Hartman
On Tue, Feb 12, 2019 at 04:04:59PM +0100, Greg Kroah-Hartman wrote: > On Tue, Feb 12, 2019 at 02:57:34PM +, David Howells wrote: > > Greg Kroah-Hartman wrote: > > > > > - if (!xprt->debugfs) { > > > + if (IS_ERR_OR_NULL(xprt->debugfs)) { > > > > That works, though I don't much like the idea

[PATCH 2/4] mm: Move nr_deactivate accounting to shrink_active_list()

2019-02-12 Thread Kirill Tkhai
We know, which LRU is not active. Signed-off-by: Kirill Tkhai --- mm/vmscan.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index 84542004a277..8d7d55e71511 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -2040,12 +2040,6 @@ static

[PATCH 0/8] arm64: meson: Add support for USB on Amlogic G12A

2019-02-12 Thread Neil Armstrong
This patchset adds support for USB on Amlogic G12A SoCs. This patchset is composed with : - bindings of the PHYs - bindings of the USB Control Glue - PHY Drivers - USB Control Glue driver Device Tree nodes will be added in a separate patchset. The Amlogic G12A USB Complex is composed of : - 2

[PATCH 4/4] mm: Generalize putback scan functions

2019-02-12 Thread Kirill Tkhai
This combines two similar functions move_active_pages_to_lru() and putback_inactive_pages() into single move_pages_to_lru(). This remove duplicate code and makes object file size smaller. Before: textdata bss dec hex filename 570824732 128 61942f1f6 mm/vmscan.o

[PATCH 3/4] mm: Remove pages_to_free argument of move_active_pages_to_lru()

2019-02-12 Thread Kirill Tkhai
We may use input argument list as output argument too. This makes the function more similar to putback_inactive_pages(). Signed-off-by: Kirill Tkhai --- mm/vmscan.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index

[PATCH 0/4] mm: Generalize putback functions

2019-02-12 Thread Kirill Tkhai
Functions putback_inactive_pages() and move_active_pages_to_lru() are almost similar, so this patchset merges them in only function. --- Kirill Tkhai (4): mm: Move recent_rotated pages calculation to shrink_inactive_list() mm: Move nr_deactivate accounting to shrink_active_list()

[PATCH 3/8] dt-bindings: usb: dwc2: Add Amlogic G12A DWC2 Compatible

2019-02-12 Thread Neil Armstrong
Adds the specific compatible string for the DWC2 IP found in the Amlogic G12A SoC Family. Signed-off-by: Neil Armstrong --- Documentation/devicetree/bindings/usb/dwc2.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/usb/dwc2.txt

[PATCH 1/4] mm: Move recent_rotated pages calculation to shrink_inactive_list()

2019-02-12 Thread Kirill Tkhai
Currently, struct reclaim_stat::nr_activate is a local variable, used only in shrink_page_list(). This patch introduces another local variable pgactivate to use instead of it, and reuses nr_activate to account number of active pages. Note, that we need nr_activate to be an array, since type of

[PATCH 7/8] usb: dwc2: Add Amlogic G12A DWC2 Params

2019-02-12 Thread Neil Armstrong
This patchs sets the params for the DWC2 Controller found in the Amlogic G12A SoC family. It mainly sets the settings reported incorrect by the driver, leaving the remaining detected automatically by the driver and provided by the DT node. Signed-off-by: Neil Armstrong ---

[PATCH 8/8] usb: dwc3: Add Amlogic G12A DWC3 glue

2019-02-12 Thread Neil Armstrong
Adds support for Amlogic G12A USB Control Glue HW. The Amlogic G12A SoC Family embeds 2 USB Controllers : - a DWC3 IP configured as Host for USB2 and USB3 - a DWC2 IP configured as Peripheral USB2 Only A glue connects these both controllers to 2 USB2 PHYs, and optionnally to an USB3+PCIE Combo

[PATCH 6/8] phy: amlogic: Add Amlogic G12A USB3 + PCIE Combo PHY Driver

2019-02-12 Thread Neil Armstrong
This adds support for the shared USB3 + PCIE PHY found in the Amlogic G12A SoC Family. It supports USB3 Host mode or PCIE 2.0 mode, depending on the layout of the board. Selection is done by the #phy-cells, making the mode static and exclusive. Signed-off-by: Neil Armstrong ---

[PATCH 5/8] phy: amlogic: add Amlogic G12A USB2 PHY Driver

2019-02-12 Thread Neil Armstrong
This adds support for the USB2 PHY found in the Amlogic G12A SoC Family. It supports Host and/or Peripheral mode, depending on it's position. The first PHY is only used as Host, but the second supports Dual modes defined by the USB Control Glue HW in front of the USB Controllers. Signed-off-by:

[PATCH 4/8] dt-bindings: usb: dwc3: Add Amlogic G12A DWC3 Glue Bindings

2019-02-12 Thread Neil Armstrong
Adds the bindings for the Amlogic G12A USB Glue HW. The Amlogic G12A SoC Family embeds 2 USB Controllers : - a DWC3 IP configured as Host for USB2 and USB3 - a DWC2 IP configured as Peripheral USB2 Only A glue connects these both controllers to 2 USB2 PHYs, and optionnally to an USB3+PCIE Combo

[PATCH 1/8] dt-bindings: phy: Add Amlogic G12A USB2 PHY Bindings

2019-02-12 Thread Neil Armstrong
Add the Amlogic G12A Family USB2 OTG PHY Bindings Signed-off-by: Neil Armstrong --- .../bindings/phy/meson-g12a-usb2-phy.txt | 22 +++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/meson-g12a-usb2-phy.txt diff --git

[PATCH 2/8] dt-bindings: phy: Add Amlogic G12A USB3+PCIE Combo PHY Bindings

2019-02-12 Thread Neil Armstrong
Add the Amlogic G12A Family USB3 + PCIE Combo PHY Bindings. This PHY can provide exclusively USB3 or PCIE support on shared I/Os. Signed-off-by: Neil Armstrong --- .../bindings/phy/meson-g12a-usb3-pcie-phy.txt | 25 +++ 1 file changed, 25 insertions(+) create mode 100644

[PATCH v2] parisc: use memblock_alloc() instead of custom get_memblock()

2019-02-12 Thread Mike Rapoport
The get_memblock() function implements custom bottom-up memblock allocator. Setting 'memblock_bottom_up = true' before any memblock allocation is done allows replacing get_memblock() calls with memblock_alloc(). Signed-off-by: Mike Rapoport --- v2: fix allocation alignment

Re: [PATCH 2/2] chardev: showing minor range for chardev in the output of /proc/devices

2019-02-12 Thread cgxu519
On 2/12/19 5:02 PM, Greg KH wrote: On Tue, Feb 12, 2019 at 04:47:39PM +0800, Chengguang Xu wrote: Currently chardev allows to share major, showing major with minor range for chardev will be more helpful. Signed-off-by: Chengguang Xu --- fs/char_dev.c | 4 +++- 1 file changed, 3

Re: [PATCH 2/2] chardev: showing minor range for chardev in the output of /proc/devices

2019-02-12 Thread Greg KH
On Tue, Feb 12, 2019 at 11:18:22PM +0800, cgxu519 wrote: > On 2/12/19 5:02 PM, Greg KH wrote: > > On Tue, Feb 12, 2019 at 04:47:39PM +0800, Chengguang Xu wrote: > > > Currently chardev allows to share major, showing > > > major with minor range for chardev will be more > > > helpful. > > > > > >

RE: [PATCH] mei: expand minor range when registering chrdev region

2019-02-12 Thread Winkler, Tomas
> > On 2/12/19 5:29 PM, Greg KH wrote: > > On Tue, Feb 12, 2019 at 02:02:52PM +0800, Chengguang Xu wrote: > >> Actually, total amount of available minor number for a single major > >> is MINORMARK + 1. So expand minor range when registering chrdev > >> region. > >> > >> Signed-off-by: Chengguang

Re: [5.0-rc5 regression] "scsi: kill off the legacy IO path" causes 5 minute delay during boot on Sun Blade 2500

2019-02-12 Thread James Bottomley
On Mon, 2019-02-11 at 19:50 -0700, Jens Axboe wrote: > On 2/11/19 7:13 PM, James Bottomley wrote: > > On Mon, 2019-02-11 at 09:31 -0700, Jens Axboe wrote: > > > On 2/11/19 9:28 AM, James Bottomley wrote: > > > > On Mon, 2019-02-11 at 08:46 -0700, Jens Axboe wrote: > > > > > On 2/11/19 8:42 AM,

[PATCH] Input: st-keyscan - fix potential zalloc NULL dereference

2019-02-12 Thread gabriel.fernandez
From: Gabriel Fernandez This patch fixes the following static checker warning: drivers/input/keyboard/st-keyscan.c:156 keyscan_probe() error: potential zalloc NULL dereference: 'keypad_data->input_dev' Reported-by: Dan Carpenter Signed-off-by: Gabriel Fernandez ---

Re: use generic DMA mapping code in powerpc V4

2019-02-12 Thread Christoph Hellwig
On Tue, Feb 12, 2019 at 01:42:56PM +0100, Christian Zigotzky wrote: > On 11 February 2019 at 08:38AM, Christoph Hellwig wrote: >> On Sun, Feb 10, 2019 at 01:00:20PM +0100, Christian Zigotzky wrote: >>> I tested the whole series today. The kernels boot and the P.A. Semi >>> Ethernet works! :-)

[PATCH] mmc: sdhci-xenon: Mark expected switch fall-through

2019-02-12 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. This patch fixes the following warning: drivers/mmc/host/sdhci-xenon-phy.c: In function ‘xenon_emmc_phy_slow_mode’: drivers/mmc/host/sdhci-xenon-phy.c:527:47: warning: this statement may

Re: Oops in rpc_clnt_debugfs_register() from debugfs change

2019-02-12 Thread David Howells
Greg Kroah-Hartman wrote: > And, if you want my larger fix that I will be sending to netdev one of > these days, here's that one. It includes the above patch as part of it. That works. Tested-by: David Howells

Re: [5.0-rc5 regression] "scsi: kill off the legacy IO path" causes 5 minute delay during boot on Sun Blade 2500

2019-02-12 Thread Jens Axboe
On 2/12/19 8:24 AM, James Bottomley wrote: > On Mon, 2019-02-11 at 19:50 -0700, Jens Axboe wrote: >> On 2/11/19 7:13 PM, James Bottomley wrote: >>> On Mon, 2019-02-11 at 09:31 -0700, Jens Axboe wrote: On 2/11/19 9:28 AM, James Bottomley wrote: > On Mon, 2019-02-11 at 08:46 -0700, Jens

Re: [PATCH v2 4/4] arm64: kprobes: Use arch_populate_kprobe_blacklist()

2019-02-12 Thread Masami Hiramatsu
On Mon, 11 Feb 2019 16:05:17 + Marc Zyngier wrote: > On 11/02/2019 15:58, Will Deacon wrote: > > [+Marc] > > > > On Mon, Feb 11, 2019 at 10:10:23PM +0900, Masami Hiramatsu wrote: > >> On Fri, 8 Feb 2019 09:15:19 + > >> Will Deacon wrote: > >>> Did you send a new version of this series?

Re: [PATCH] Input: st-keyscan - fix potential zalloc NULL dereference

2019-02-12 Thread Gabriel FERNANDEZ
Sorry ignore this patch (bad mailing list) Best Regard Gabriel On 2/12/19 4:24 PM, gabriel.fernan...@st.com wrote: > From: Gabriel Fernandez > > This patch fixes the following static checker warning: > > drivers/input/keyboard/st-keyscan.c:156 keyscan_probe() > error: potential zalloc NULL

Re: [PATCH 1/3] clocksource: timer-ti-dm: Fix pwm dmtimer usage of fck reparenting

2019-02-12 Thread Tony Lindgren
Hi, * Daniel Lezcano [190212 09:08]: > > Do you want me to take it through my tree (1 et 3)? No need to thanks, I already sent a pull request on them as "[GIT PULL] omap soc regression fixes for v5.0-rc cycle" with you in Cc. Regards, Tony

[PATCH] scsi: lpfc: fix a handful of indentation issues

2019-02-12 Thread Colin King
From: Colin Ian King There are a handful of statements that are indented incorrectly. Fix these. Signed-off-by: Colin Ian King --- drivers/scsi/lpfc/lpfc_bsg.c | 4 ++-- drivers/scsi/lpfc/lpfc_debugfs.c | 4 ++-- drivers/scsi/lpfc/lpfc_init.c| 2 +- drivers/scsi/lpfc/lpfc_mbox.c|

[PATCH] mtd: lpddr_cmds: Mark expected switch fall-through

2019-02-12 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. This patch fixes the following warning: drivers/mtd/lpddr/lpddr_cmds.c: In function ‘chip_ready’: drivers/mtd/lpddr/lpddr_cmds.c:319:6: warning: this statement may fall through

[PATCH v1] Input: st-keyscan - fix potential zalloc NULL dereference

2019-02-12 Thread gabriel.fernandez
From: Gabriel Fernandez This patch fixes the following static checker warning: drivers/input/keyboard/st-keyscan.c:156 keyscan_probe() error: potential zalloc NULL dereference: 'keypad_data->input_dev' Reported-by: Dan Carpenter Signed-off-by: Gabriel Fernandez ---

Re: [RFC PATCH v1 2/3] regulator: add regulator_desc_list_voltage_linear_range

2019-02-12 Thread Mark Brown
On Tue, Feb 12, 2019 at 04:18:46PM +0200, Matti Vaittinen wrote: > Add regulator_desc_list_voltage_linear_range which can be used > by drivers for getting the voltages before regulator is registered. > This may be useful for drivers which need to fetch the voltage > selectors at device-tree

Re: [PATCH] mtd: cfi_cmdset_0002: Mark expected switch fall-throughs

2019-02-12 Thread Gustavo A. R. Silva
On 2/9/19 2:29 AM, Tokunori Ikegami wrote: > Reviewed-by: Tokunori Ikegami > Thanks, Tokunori. -- Gustavo >> -Original Message- >> From: linux-mtd [mailto:linux-mtd-boun...@lists.infradead.org] On Behalf >> Of Gustavo A. R. Silva >> Sent: Saturday, February 9, 2019 3:06 AM >> To:

[PATCH 2/2] ARC: enable uboot support unconditionally

2019-02-12 Thread Eugeniy Paltsev
After reworking U-boot args handling code and adding paranoid arguments check we can eliminate CONFIG_ARC_UBOOT_SUPPORT and enable uboot support unconditionally. For JTAG case we can assume that core registers will come up reset value of 0 or in worst case we rely on user passing '-on=clear_regs'

[PATCH 0/2] RC: rework U-boot arguments handling

2019-02-12 Thread Eugeniy Paltsev
Reworking U-boot args handling and enable uboot support unconditionally. Changes RFC->v1: * Don't add new ABI contract between kernel and uboot * Eliminate CONFIG_ARC_UBOOT_SUPPORT Kconfig option and enable uboot support unconditionally * Skip invalid U-boot args instead of panic * Check

[PATCH 1/2] ARC: U-boot: check arguments paranoidly

2019-02-12 Thread Eugeniy Paltsev
Handle U-boot arguments paranoidly: * don't allow to pass unknown tag. * try to use external device tree blob only if corresponding tag (TAG_DTB) is set. * check that magic number is correct. * don't check uboot_tag if kernel build with no ARC_UBOOT_SUPPORT. NOTE: If U-boot args are

Re: [PATCH 4.20 000/352] 4.20.8-stable review

2019-02-12 Thread shuah
On 2/11/19 7:13 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.20.8 release. There are 352 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 made

Re: [PATCH 4.19 000/313] 4.19.21-stable review

2019-02-12 Thread shuah
On 2/11/19 7:14 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.19.21 release. There are 313 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

Re: [PATCH 2/2] chardev: showing minor range for chardev in the output of /proc/devices

2019-02-12 Thread cgxu519
On 2/12/19 11:20 PM, Greg KH wrote: On Tue, Feb 12, 2019 at 11:18:22PM +0800, cgxu519 wrote: On 2/12/19 5:02 PM, Greg KH wrote: On Tue, Feb 12, 2019 at 04:47:39PM +0800, Chengguang Xu wrote: Currently chardev allows to share major, showing major with minor range for chardev will be more

Re: [PATCH 4.14 000/205] 4.14.99-stable review

2019-02-12 Thread shuah
On 2/11/19 7:16 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.14.99 release. There are 205 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

Re: [PATCH 4.9 000/137] 4.9.156-stable review

2019-02-12 Thread shuah
On 2/11/19 7:18 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.9.156 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

[PATCH v3 1/4] arm64: kprobes: Move extable address check into arch_prepare_kprobe()

2019-02-12 Thread Masami Hiramatsu
Move extable address check into arch_prepare_kprobe() from arch_within_kprobe_blacklist(). The blacklist is exposed via debugfs as a list of symbols. The extable entries are smaller, so must be filtered out by arch_prepare_kprobe(). Signed-off-by: Masami Hiramatsu Reviewed-by: James Morse ---

[PATCH v3 0/4] arm64: kprobes: Update blacklist checking on arm64

2019-02-12 Thread Masami Hiramatsu
Hello, Here is the v3 series of update of the kprobe blacklist checking on arm64. I found that some blacklist checking code were mis-placed in arch_prepare_kprobe() and arch_within_kprobe_blacklist(). Since the blacklist just filters by symbol, smaller than the symbol, like extable must be

[PATCH v3 2/4] arm64: kprobes: Remove unneeded RODATA check

2019-02-12 Thread Masami Hiramatsu
Remove unneeded RODATA check from arch_prepare_kprobe(). Since check_kprobe_address_safe() already ensured that the probe address is in kernel text, we don't need to check whether the address in RODATA or not. That must be always false. Signed-off-by: Masami Hiramatsu ---

[PATCH v3 3/4] arm64: kprobes: Move exception_text check in blacklist

2019-02-12 Thread Masami Hiramatsu
Move exception/irqentry text address check in blacklist, since those are symbol based rejection. If we prohibit probing on the symbols in exception_text, those should be blacklisted. Signed-off-by: Masami Hiramatsu --- arch/arm64/kernel/probes/kprobes.c |6 ++ 1 file changed, 2

[PATCH v3 4/4] arm64: kprobes: Use arch_populate_kprobe_blacklist()

2019-02-12 Thread Masami Hiramatsu
Use arch_populate_kprobe_blacklist() instead of arch_within_kprobe_blacklist() so that we can see the full blacklisted symbols under the debugfs. Signed-off-by: Masami Hiramatsu --- Changes in v3 - Do not populate blacklist in __kprobe_text in arch_populate_kprobe_blacklist(), since it

Re: [PATCH v6 9/9] vsprintf: Avoid confusion between invalid address and value

2019-02-12 Thread Petr Mladek
On Fri 2019-02-08 19:27:17, Andy Shevchenko wrote: > On Fri, Feb 08, 2019 at 04:23:10PM +0100, Petr Mladek wrote: > > We are able to detect invalid values handled by %p[iI] printk specifier. > > The current error message is "invalid address". It might cause confusion > > against "(efault)"

Re: [PATCH net] sctp: call gso_reset_checksum when computing checksum in sctp_gso_segment

2019-02-12 Thread Neil Horman
On Tue, Feb 12, 2019 at 06:47:30PM +0800, Xin Long wrote: > Jianlin reported a panic when running sctp gso over gre over vlan device: > > [ 84.772930] RIP: 0010:do_csum+0x6d/0x170 > [ 84.790605] Call Trace: > [ 84.791054] csum_partial+0xd/0x20 > [ 84.791657]

Re: [RFC PATCH v7 05/16] arm64/mm: Add support for XPFO

2019-02-12 Thread Khalid Aziz
On 1/23/19 7:20 AM, Konrad Rzeszutek Wilk wrote: > On Thu, Jan 10, 2019 at 02:09:37PM -0700, Khalid Aziz wrote: >> From: Juerg Haefliger >> >> Enable support for eXclusive Page Frame Ownership (XPFO) for arm64 and >> provide a hook for updating a single kernel page table entry (which is >>

Re: [RFC PATCH v1 08/25] printk: add ring buffer and kthread

2019-02-12 Thread Sergey Senozhatsky
On (02/12/19 15:29), John Ogness wrote: [..] > +static int printk_kthread_func(void *data) > +{ > + struct prb_iterator iter; > + struct printk_log *msg; > + size_t ext_len; > + char *ext_text; > + u64 master_seq; > + size_t len; > + char *text; > + char *buf; > +

Re: [PATCH net] sctp: set stream ext to NULL after freeing it in sctp_stream_outq_migrate

2019-02-12 Thread Neil Horman
On Tue, Feb 12, 2019 at 06:51:01PM +0800, Xin Long wrote: > In sctp_stream_init(), after sctp_stream_outq_migrate() freed the > surplus streams' ext, but sctp_stream_alloc_out() returns -ENOMEM, > stream->outcnt will not be set to 'outcnt'. > > With the bigger value on stream->outcnt, when

Re: [PATCH 2/3] mm/filemap: initiate readahead even if IOCB_NOWAIT is set for the I/O

2019-02-12 Thread Jiri Kosina
On Fri, 1 Feb 2019, Dave Chinner wrote: > So, I'll invite the incoherent, incandescent O_DIRECT rage flames of > Linus to be unleashed again and point out the /other reference/ to > IOCB_NOWAIT in mm/filemap.c. That is, in generic_file_read_iter(), > in the *generic O_DIRECT read path*: > >

Re: [PATCH V2 3/4] nvme-pci: avoid irq allocation retrying via .calc_sets

2019-02-12 Thread Keith Busch
On Tue, Feb 12, 2019 at 05:04:38AM -0800, Ming Lei wrote: > Currently pre-caculate each set vectors, and this way requires same > 'max_vecs' and 'min_vecs' passed to pci_alloc_irq_vectors_affinity(), > then nvme_setup_irqs() has to retry in case of allocation failure. > > This usage & interface

Re: [PATCH 2/4] elf: use list_for_each_entry()

2019-02-12 Thread kbuild test robot
Hi Alexey, I love your patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.0-rc4] [cannot apply to next-20190212] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com

Re: [RFC PATCH v7 05/16] arm64/mm: Add support for XPFO

2019-02-12 Thread Khalid Aziz
On 1/23/19 7:24 AM, Konrad Rzeszutek Wilk wrote: > On Thu, Jan 10, 2019 at 02:09:37PM -0700, Khalid Aziz wrote: >> From: Juerg Haefliger >> >> Enable support for eXclusive Page Frame Ownership (XPFO) for arm64 and >> provide a hook for updating a single kernel page table entry (which is >>

Re: [PATCH 2/5] kasan, kmemleak: pass tagged pointers to kmemleak

2019-02-12 Thread Vincenzo Frascino
On 11/02/2019 21:59, Andrey Konovalov wrote: > Right now we call kmemleak hooks before assigning tags to pointers in > KASAN hooks. As a result, when an objects gets allocated, kmemleak sees > a differently tagged pointer, compared to the one it sees when the object > gets freed. Fix it by calling

Re: [PATCH 00/52] [RFC] virtio-fs: shared file system for virtual machines

2019-02-12 Thread Aneesh Kumar K.V
Vivek Goyal writes: > Hi, > > Here are RFC patches for virtio-fs. Looking for feedback on this approach. > > These patches should apply on top of 4.20-rc5. We have also put code for > various components here. > > https://gitlab.com/virtio-fs > > Problem Description > === > We

[PATCH] usb: typec: tcpm: Remove unused functions

2019-02-12 Thread Guenter Roeck
tcpm_update_source_capabilities() and tcpm_update_sink_capabilities() are not used anywhere, and I don't recall why I introduced those functions in the first place. Effectively that means that we don't know if they even work, or ever did. Lets remove them. Reported-by: Kyle Tso Cc: Kyle Tso

[PATCH] qed: fix indentation issue with statements in an if-block

2019-02-12 Thread Colin King
From: Colin Ian King There are some statements in an if-block that are not correctly indented. Fix these. Signed-off-by: Colin Ian King --- drivers/net/ethernet/qlogic/qed/qed_cxt.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git

Re: [RESEND PATCH v2] of: fix kmemleak crash caused by imbalance in early memory reservation

2019-02-12 Thread Rob Herring
On Mon, Feb 11, 2019 at 10:47 AM Marc Gonzalez wrote: > > On 04/02/2019 15:37, Marc Gonzalez wrote: > > > Cc: sta...@vger.kernel.org # 3.15+ > > Fixes: 3f0c820664483 ("drivers: of: add initialization code for dynamic > > reserved memory") > > Acked-by: Marek Szyprowski > > Acked-by: Prateek

Re: [PATCH 1/2] PM-runtime: Take suppliers into account in __pm_runtime_set_status()

2019-02-12 Thread Ulf Hansson
On Thu, 7 Feb 2019 at 19:46, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > If the target device has any suppliers, as reflected by device links > to them, __pm_runtime_set_status() does not take them into account, > which is not consistent with the other parts of the PM-runtime >

[PATCH] scsi: sd: fix entropy gathering for most rotational disks

2019-02-12 Thread James Bottomley
The problem is that the default for MQ is not to gather entropy, whereas the default for the legacy queue was always to gather it. The original attempt to fix entropy gathering for rotational disks under MQ added an else branch in sd_read_block_characteristics(). Unfortunately, the entire check

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