[PATCH] staging: atomisp2: replace DEVICE_ATTR with DEVICE_ATTR_RO

2017-12-11 Thread Aishwarya Pant
This is a clean-up patch which replaces DEVICE_ATTR() macro with file permission specific DEVICE_ATTR_RO() macro for compaction and readability. Done using coccinelle: @r@ identifier attr, show_fn; declarer name DEVICE_ATTR; @@ DEVICE_ATTR(attr, \(S_IRUGO\|0444\), show_fn, NULL); @script: pytho

Re: [PATCH V2] netlink: Add netns check on taps

2017-12-11 Thread Michal Kubecek
On Mon, Dec 11, 2017 at 11:58:37AM -0500, David Miller wrote: > From: Michal Kubecek > Date: Mon, 11 Dec 2017 17:13:50 +0100 > > > On Wed, Dec 06, 2017 at 03:57:14PM -0500, David Miller wrote: > >> From: Kevin Cernekee > >> Date: Wed, 6 Dec 2017 12:12:27 -0800 > >> > >> > Currently, a nlmon li

[PATCH 1/2] watchdog: davinci_wdt: add restart function

2017-12-11 Thread David Lechner
This adds a restart function to the davinci watchdog timer driver. This is copied from arch/arm/mach-davinci/time.c and will allow us to remove the code from there. Signed-off-by: David Lechner --- drivers/watchdog/davinci_wdt.c | 38 ++ 1 file changed, 38 in

[PATCH 2/2] ARM: davinci: remove watchdog reset

2017-12-11 Thread David Lechner
This removes the watchdog reset code. The reset has been moved to drivers/watchdog/davinci_wdt.c. The watchdog driver registers the reset with the kernel so defining a reset for each machine is no longer needed. Signed-off-by: David Lechner --- arch/arm/mach-davinci/board-da830-evm.c | 1 -

[PATCH 0/2] ARM: davinici: move watchdog restart from mach to drivers

2017-12-11 Thread David Lechner
This series moves the watchdog restart code from arch/arm/mach-davinci to drivers/watchdog. Tested working on LEGO MINDSTORMS EV3 (TI AM1808 processor). David Lechner (2): watchdog: davinci_wdt: add restart function ARM: davinci: remove watchdog reset arch/arm/mach-davinci/board-da830-evm.c

Re: Oops on 4.15-rc[123] on shutdown/reboot

2017-12-11 Thread Bjorn Helgaas
[+cc linux-pci] On Mon, Dec 11, 2017 at 11:29:50AM -0500, Sinan Kaya wrote: > Hi Chris, > > > > > I'm more than happy to provide additional diagnostics and test proposed > > fixes. As a starter for ten, I've attached the > > output from 'lspci -v'. If, however, you need to see the backtrace, I'

RE: [PATCH v4 5/5] ARM: ep93xx: ts72xx: Add support for BK3 board - ts72xx derivative

2017-12-11 Thread Hartley Sweeten
On Thursday, November 30, 2017 4:52 PM, Lukasz Majewski wrote: > > The BK3 board is a derivative of the ts72xx reference design. Lukasz, I was just reviewing the other TS-72xx boards and noticed this: > +/* BK3 specific defines */ > +#define BK3_CPLDVER_PHYS_BASE0x2340 > +#

Re: [PATCH 2/2] ntb_hw_switchtec: Check for alignment of the buffer in mw_set_trans()

2017-12-11 Thread Logan Gunthorpe
On 11/12/17 07:58 AM, Allen Hubbe wrote: !IS_ALIGNED(addr, BIT_ULL(xlate_pos)) Ok, yes, that's much better. I'll change it. Thanks. + /* +* In certain circumstances we can get a buffer that is +* not aligned to its size. (Most of the time +

Re: [PATCH v5 04/15] soundwire: Add MIPI DisCo property helpers

2017-12-11 Thread Vinod Koul
On Mon, Dec 11, 2017 at 06:06:30PM +0100, Takashi Iwai wrote: > On Mon, 11 Dec 2017 18:00:22 +0100, > Vinod Koul wrote: > > > > On Mon, Dec 11, 2017 at 05:10:17PM +0100, Takashi Iwai wrote: > > > On Wed, 06 Dec 2017 16:47:00 +0100, > > > Vinod Koul wrote: > > > > > > > > + /* TODO:

Re: [PATCH v2] net: ethernet: arc: fix error handling in emac_rockchip_probe

2017-12-11 Thread David Miller
From: Branislav Radocaj Date: Sat, 9 Dec 2017 12:51:33 +0100 > If clk_set_rate() fails, we should disable clk before return. > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Branislav Radocaj > --- > > Changes since v2: > * Improved inconsistent failure hand

Re: [RFC][PATCH] ipc: mqueue: wq_add priority changed to dynamic priority

2017-12-11 Thread Jonathan Haws
Adding linux-rt-users group to thread. From: Jonathan Haws Sent: Monday, December 11, 2017 08:37 To: mi...@kernel.org; v...@zeniv.linux.org.uk; a...@arndb.de; a...@linux-foundation.org; deepa.ker...@gmail.com Cc: linux-kernel@vger.kernel.org; t...@linutron

Re: [PATCH 3/6] x86/hyper-v: reenlightenment notifications support

2017-12-11 Thread Roman Kagan
On Mon, Dec 11, 2017 at 10:56:33AM +0100, Vitaly Kuznetsov wrote: > Roman Kagan writes: > > On Fri, Dec 08, 2017 at 11:49:57AM +0100, Vitaly Kuznetsov wrote: > >> +void register_hv_tsc_update(void (*cb)(void)) > >> +{ > > > > The function name seems unfortunate. IMHO such a name suggests > > regi

Re: [PATCH v2] perf test shell: Fix check open filename arg using 'perf trace

2017-12-11 Thread Arnaldo Carvalho de Melo
Em Mon, Dec 11, 2017 at 01:43:12PM -0200, Arnaldo de Melo escreveu: > Em Fri, Dec 08, 2017 at 06:48:17PM +0100, Michael Petlan escreveu: > > Hi Arnaldo, so I have tried what you've suggested and looks good. > > Patch is attached. Sorry for not posting it in-text, but I need to > > fix my mail clien

Re: Oops on 4.15-rc[123] on shutdown/reboot

2017-12-11 Thread Chris Clayton
On 11/12/17 16:29, Sinan Kaya wrote: > Hi Chris, > >> >> I'm more than happy to provide additional diagnostics and test proposed >> fixes. As a starter for ten, I've attached the >> output from 'lspci -v'. If, however, you need to see the backtrace, I'll >> need some advice on how to capture t

Re: [PATCH v5 04/15] soundwire: Add MIPI DisCo property helpers

2017-12-11 Thread Takashi Iwai
On Mon, 11 Dec 2017 18:00:22 +0100, Vinod Koul wrote: > > On Mon, Dec 11, 2017 at 05:10:17PM +0100, Takashi Iwai wrote: > > On Wed, 06 Dec 2017 16:47:00 +0100, > > Vinod Koul wrote: > > > > > > + /* TODO: Read audio mode */ > > > + > > > + i++; > > > + } > > > > Don't we use coun

Re: [PATCH] usb: xhci: fix incorrect memset()

2017-12-11 Thread Arnd Bergmann
On Mon, Dec 11, 2017 at 6:01 PM, Greg Kroah-Hartman wrote: > On Mon, Dec 11, 2017 at 02:59:13PM +0200, Mathias Nyman wrote: >> On 11.12.2017 13:27, Arnd Bergmann wrote: >> > gcc-8 warnings about the new driver using a memset with a bogus length: >> > >> > drivers/usb/host/xhci-dbgcap.c: In functio

Re: [PATCH -mm] mm, swap: Fix race between swapoff and some swap operations

2017-12-11 Thread Paul E. McKenney
On Mon, Dec 11, 2017 at 01:30:03PM +0800, Huang, Ying wrote: > Andrew Morton writes: > > > On Fri, 08 Dec 2017 16:41:38 +0800 "Huang\, Ying" > > wrote: > > > >> > Why do we need srcu here? Is it enough with rcu like below? > >> > > >> > It might have a bug/room to be optimized about performance

Re: [RFC PATCH 0/9] ethtool netlink interface (WiP)

2017-12-11 Thread David Miller
From: Jiri Pirko Date: Mon, 11 Dec 2017 17:32:46 +0100 > I think that it does not make sense to convert ethtool->netlink_ethtool > 1:1 feature wise. Now we have devlink, ritch switch representation > model, tc offload and many others. Lot of things that are in > ethtool, should be done in devlink

Re: [PATCH] usb: xhci: fix incorrect memset()

2017-12-11 Thread Greg Kroah-Hartman
On Mon, Dec 11, 2017 at 02:59:13PM +0200, Mathias Nyman wrote: > On 11.12.2017 13:27, Arnd Bergmann wrote: > > gcc-8 warnings about the new driver using a memset with a bogus length: > > > > drivers/usb/host/xhci-dbgcap.c: In function 'xhci_dbc_eps_exit': > > drivers/usb/host/xhci-dbgcap.c:369:2:

Re: [PATCH v2 1/2] dt-bindings: Add binding for Sitronix ST7735R display panels

2017-12-11 Thread Noralf Trønnes
Den 10.12.2017 23.10, skrev David Lechner: This adds a new device tree binding for Sitronix ST7735R display panels, such as the Adafruit 1.8" TFT. Signed-off-by: David Lechner Acked-by: Rob Herring --- v2: changes: * None, but... I'm wondering about my choice of compatible here. I chose the

Re: [PATCH V2] netlink: Add netns check on taps

2017-12-11 Thread David Miller
From: Michal Kubecek Date: Mon, 11 Dec 2017 17:13:50 +0100 > On Wed, Dec 06, 2017 at 03:57:14PM -0500, David Miller wrote: >> From: Kevin Cernekee >> Date: Wed, 6 Dec 2017 12:12:27 -0800 >> >> > Currently, a nlmon link inside a child namespace can observe systemwide >> > netlink activity. Fil

[PATCH v6 1/3] clk: at91: pmc: Wait for clocks when resuming

2017-12-11 Thread Romain Izard
Wait for the syncronization of all clocks when resuming, not only the UPLL clock. Do not use regmap_read_poll_timeout, as it will call BUG() when interrupts are masked, which is the case in here. Signed-off-by: Romain Izard Acked-by: Ludovic Desroches Acked-by: Nicolas Ferre --- drivers/clk/at

[PATCH v3 2/3] arm64: allwinner: axp803: Add drivevbus regulator

2017-12-11 Thread Jagan Teki
Add reg_drivevbus regualtor for boards which are using external regulator to drive the OTG VBus through N_VBUSEN PMIC pin. Signed-off-by: Jagan Teki --- Changes for v3: - none arch/arm64/boot/dts/allwinner/axp803.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/

[PATCH v3 3/3] arm64: allwinner: a64: bananapi-m64: add usb otg

2017-12-11 Thread Jagan Teki
Add usb otg support for bananapi-m64 board, - USB-ID connected with PH9 - USB-DRVVBUS controlled by N_VBUSEN pin from PMIC Signed-off-by: Jagan Teki --- Changes for v3: - Move the position of reg_drivevbus as per binding documentation. Changes for v2: - add drvvbus regulator - add N_VBUSEN pin

[PATCH v3 1/3] regulator: axp20x: add drivevbus support for axp803

2017-12-11 Thread Jagan Teki
Like axp221, axp223, axp813 the axp803 is also supporting external regulator to drive the OTG VBus through N_VBUSEN PMIC pin. Add support for it. Signed-off-by: Jagan Teki Reviewed-by: Rob Herring --- Changes for v3: - Update drivevbus in table of regulators Documentation/devicetree/bindings

Re: [RFC PATCH 2/9] ethtool: introduce ethtool netlink interface

2017-12-11 Thread David Miller
From: Jiri Pirko Date: Mon, 11 Dec 2017 17:02:21 +0100 > Mon, Dec 11, 2017 at 02:53:31PM CET, mkube...@suse.cz wrote: >>No function implemented yet, only genetlink and module infrastructure. >>Register/unregister genetlink family "ethtool" and allow the module to be >>autoloaded by genetlink code

Re: [PATCH v5 04/15] soundwire: Add MIPI DisCo property helpers

2017-12-11 Thread Vinod Koul
On Mon, Dec 11, 2017 at 05:10:17PM +0100, Takashi Iwai wrote: > On Wed, 06 Dec 2017 16:47:00 +0100, > Vinod Koul wrote: > > > > +static int sdw_slave_read_dpn(struct sdw_slave *slave, > > + struct sdw_dpn_prop *dpn, int count, int ports, char *type) > > +{ > > > + nval = f

[PATCH v6 3/3] clk: at91: pmc: Support backup for programmable clocks

2017-12-11 Thread Romain Izard
When an AT91 programmable clock is declared in the device tree, register it into the Power Management Controller driver. On entering suspend mode, the driver saves and restores the Programmable Clock registers to support the backup mode for these clocks. Signed-off-by: Romain Izard Acked-by: Nico

[PATCH v6 0/3] Clock patches for SAMA5D2 backup mode

2017-12-11 Thread Romain Izard
While the core of the backup mode for SAMA5D2 has been integrated in v4.13, it is far from complete. Individual controllers in the chip have drivers that do not support the reset of the registers during suspend, and they need to be adapted to handle it. The first patch uses the clock wakeup code f

[PATCH v6 2/3] clk: at91: pmc: Save SCSR during suspend

2017-12-11 Thread Romain Izard
The contents of the System Clock Status Register (SCSR) needs to be restored into the System Clock Enable Register (SCER). As the bootloader will restore some clocks by itself, the issue can be missed as only the USB controller, the LCD controller, the Image Sensor controller and the programmable

Re: [PATCH v2] ahci: Allow setting a default LPM policy for mobile chipsets

2017-12-11 Thread Tejun Heo
On Mon, Dec 11, 2017 at 05:52:16PM +0100, Hans de Goede wrote: > On many laptops setting a different LPM policy then unknown / > max_performance can lead to power-savings of 1.0 - 1.5 Watts (when idle). > > Modern ultrabooks idle around 6W (at 50% screen brightness), 1.0 - 1.5W > is a significant

Re: RFC(v2): Audit Kernel Container IDs

2017-12-11 Thread Casey Schaufler
On 12/11/2017 8:30 AM, Eric Paris wrote: > On Sat, 2017-12-09 at 10:28 -0800, Casey Schaufler wrote: >> Because a container doesn't have to use namespaces to be a container >> you still need a mechanism for a process to declare that it is in >> fact >> in a container, and to identify the container.

[PATCH v2] ahci: Allow setting a default LPM policy for mobile chipsets

2017-12-11 Thread Hans de Goede
On many laptops setting a different LPM policy then unknown / max_performance can lead to power-savings of 1.0 - 1.5 Watts (when idle). Modern ultrabooks idle around 6W (at 50% screen brightness), 1.0 - 1.5W is a significant chunk of this. There are some performance / latency costs to enabling LP

Re: [PATCH] media: pxa_camera: disable and unprepare the clock source on error

2017-12-11 Thread Laurent Pinchart
Hi Flavio, Thank you for the patch. On Wednesday, 6 December 2017 18:38:50 EET Flavio Ceolin wrote: > pxa_camera_probe() was not calling pxa_camera_deactivate(), > responsible to call clk_disable_unprepare(), on the failure path. This > was leading to unbalancing source clock. > > Found by Linux

Re: [PATCH 0/2] ARM: OMAP2+: CM: make some structures, function arguments and pointers as const

2017-12-11 Thread Tony Lindgren
* Bhumika Goyal [171106 05:17]: > Make some pointers and function arguments as const. After this change, > make the structures of type cm_ll_data as const. Thanks applying both in to omap-for-v4.16/soc. Regards, Tony

Re: [PATCH] sched/rt: Do not pull from current CPU if only one cpu to pull

2017-12-11 Thread Ingo Molnar
* Steven Rostedt wrote: > Daniel Wagner reported a crash on the beaglebone black. This is a > single CPU architecture, and does not have a functional: > arch_send_call_function_single_ipi() and can crash if that is called. > > As it only has one CPU, it shouldn't be called, but if the kernel is

[PATCH][usb-next] usb: xhci: make function xhci_dbc_free_req static

2017-12-11 Thread Colin King
From: Colin Ian King Function xhci_dbc_free_req is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warning: symbol 'xhci_dbc_free_req' was not declared. Should it be static? Signed-off-by: Colin Ian King --- drivers/usb/host/xhci-dbgtty.c | 2 +

Re: [PATCH] ARM: dts: dra7: Disable USB metastability workaround for USB2

2017-12-11 Thread Tony Lindgren
* Felipe Balbi [171204 11:43]: > Roger Quadros writes: > > > The metastability workaround causes Erratic errors [1] > > on the HighSpeed USB PHY which can cause upto 2 seconds > > delay in enumerating to a USB host while in Gadget mode. > > > > Disable the Run/Stop metastability workaround to av

Re: [PATCH 0/2] ASoC: tfa9879: cleanup bindings and claim maintainership

2017-12-11 Thread Peter Rosin
On 2017-12-11 17:35, Mark Brown wrote: > On Mon, Dec 11, 2017 at 03:26:13PM +0100, Peter Rosin wrote: >> Hi! >> >> Device tree bindings where added for the tfa9879 along with improved >> support for them in the driver some time ago. All behind my back. >> This cleans things up and properly adds me

Re: [PATCH v3 07/12] dt-bindings: Document the Rockchip MIPI RX D-PHY bindings

2017-12-11 Thread Laurent Pinchart
Hello Jacob, Thank you for the patch. On Wednesday, 6 December 2017 13:19:34 EET Jacob Chen wrote: > From: Jacob Chen > > Add DT bindings documentation for Rockchip MIPI D-PHY RX > > Signed-off-by: Jacob Chen > --- > .../bindings/media/rockchip-mipi-dphy.txt | 71 +++

Re: [PATCH] lib/string: avoid reading beyond src buffer in strscpy

2017-12-11 Thread Andrey Ryabinin
On 12/08/2017 11:54 PM, Kees Cook wrote: > On Fri, Dec 8, 2017 at 7:29 AM, Dmitry Vyukov wrote: >> On Fri, Dec 8, 2017 at 4:29 PM, Andrey Ryabinin >> wrote: >>> >>> So, possible solutions are: >>> >>> 1) Simply disable word-at-a-time optimization in strscpy(). I seriously >>> doubt >>> that thi

Re: [alsa-devel] [PATCH v5 03/15] soundwire: Add Master registration

2017-12-11 Thread Vinod Koul
On Mon, Dec 11, 2017 at 05:02:10PM +0100, Takashi Iwai wrote: > On Wed, 06 Dec 2017 16:46:59 +0100, > Vinod Koul wrote: > > > > + /* Set group device numbers and master device number */ > > + set_bit(SDW_GROUP12_DEV_NUM | SDW_GROUP13_DEV_NUM, bus->assigned); > > Is this really correct? Nope,

[PATCH 27/45] net: remove duplicate includes

2017-12-11 Thread Pravin Shedge
These duplicate includes have been found with scripts/checkincludes.pl but they have been removed manually to avoid removing false positives. Signed-off-by: Pravin Shedge --- net/core/netprio_cgroup.c| 1 - net/dsa/slave.c | 1 - net/netfilter/nf_conntrack_netlin

[PATCH v9 1/5] add infrastructure for tagging functions as error injectable

2017-12-11 Thread Josef Bacik
From: Josef Bacik Using BPF we can override kprob'ed functions and return arbitrary values. Obviously this can be a bit unsafe, so make this feature opt-in for functions. Simply tag a function with KPROBE_ERROR_INJECT_SYMBOL in order to give BPF access to that function for error injection purpo

[PATCH v9 5/5] btrfs: allow us to inject errors at io_ctl_init

2017-12-11 Thread Josef Bacik
From: Josef Bacik This was instrumental in reproducing a space cache bug. Signed-off-by: Josef Bacik Acked-by: Ingo Molnar --- fs/btrfs/free-space-cache.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c index 4426d1c73e50..fb1382

Re: [PATCH] DMA:omap-dma: Fix kernel compilation error and checkpatch issues

2017-12-11 Thread Vinod Koul
On Mon, Dec 11, 2017 at 07:30:33PM +0530, venkat.prashanth2...@gmail.com wrote: > From: Venkat Prashanth B U > > This is the patch to the omap-dma.c file that fixes > the following issues: Thanks Venkat for the patch, but unforntunately it has some issues. First a patch should do only one thing

[PATCH v9 4/5] samples/bpf: add a test for bpf_override_return

2017-12-11 Thread Josef Bacik
From: Josef Bacik This adds a basic test for bpf_override_return to verify it works. We override the main function for mounting a btrfs fs so it'll return -ENOMEM and then make sure that trying to mount a btrfs fs will fail. Acked-by: Alexei Starovoitov Acked-by: Ingo Molnar Signed-off-by: Jo

[PATCH v9 2/5] btrfs: make open_ctree error injectable

2017-12-11 Thread Josef Bacik
From: Josef Bacik This allows us to do error injection with BPF for open_ctree. Signed-off-by: Josef Bacik Acked-by: Ingo Molnar --- fs/btrfs/disk-io.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 10a2a579cc7f..02b5f5667754 100644 --- a/f

[PATCH v9 3/5] bpf: add a bpf_override_function helper

2017-12-11 Thread Josef Bacik
From: Josef Bacik Error injection is sloppy and very ad-hoc. BPF could fill this niche perfectly with it's kprobe functionality. We could make sure errors are only triggered in specific call chains that we care about with very specific situations. Accomplish this with the bpf_override_funciton

[PATCH v9 0/5] Add the ability to do BPF directed error injection

2017-12-11 Thread Josef Bacik
This is the same as v8, just rebased onto the bpf tree. v8->v9: - rebased onto the bpf tree. v7->v8: - removed the _ASM_KPROBE_ERROR_INJECT since it was not needed. v6->v7: - moved the opt-in macro to bpf.h out of kprobes.h. v5->v6: - add BPF_ALLOW_ERROR_INJECTION() tagging for functions that w

Re: [PATCH 0/2] ASoC: tfa9879: cleanup bindings and claim maintainership

2017-12-11 Thread Mark Brown
On Mon, Dec 11, 2017 at 03:26:13PM +0100, Peter Rosin wrote: > Hi! > > Device tree bindings where added for the tfa9879 along with improved > support for them in the driver some time ago. All behind my back. > This cleans things up and properly adds me as maintainer of the new > bindings. > > Che

Re: [RFC PATCH 0/9] ethtool netlink interface (WiP)

2017-12-11 Thread Jiri Pirko
Mon, Dec 11, 2017 at 02:53:11PM CET, mkube...@suse.cz wrote: >This is still work in progress and only a very small part of the ioctl >interface is reimplemented but I would like to get some comments before >the patchset becomes too big and changing things becomes too tedious. > >The interface used

Re: [PATCH] rcutorture: Add basic ARM64 support to run scripts

2017-12-11 Thread Paul E. McKenney
On Fri, Dec 08, 2017 at 06:13:43PM +0800, liangli...@huawei.com wrote: > From: Lihao Liang > > This commit adds support of the qemu command qemu-system-aarch64 > to rcutorture. Use the following command to run: > > ./kvm.sh --qemu-cmd qemu-system-aarch64 > > Signed-off-by: Lihao Liang Nice!

Re: [PATCH] MAINTIANERS: change FCoE list to linux-scsi

2017-12-11 Thread Bart Van Assche
On Mon, 2017-12-11 at 10:09 +0100, Johannes Thumshirn wrote: > fcoe-de...@open-fcoe.org is defunct and all patches are routed via the SCSI > tree anyways. > > So update MAINTAINERS accordingly. Please check the spelling of "MAINTAINERS" in the subject. Anyway: Reviewed-by: Bart Van Assche Bar

Re: RFC(v2): Audit Kernel Container IDs

2017-12-11 Thread Eric Paris
On Sat, 2017-12-09 at 10:28 -0800, Casey Schaufler wrote: > On 12/9/2017 2:20 AM, Micka�l Sala�n wrote: > > What about automatically create > > and assign an ID to a process when it enters a namespace different > > than > > one of its parent process? This delegates the (permission) > > respon

Re: Oops on 4.15-rc[123] on shutdown/reboot

2017-12-11 Thread Sinan Kaya
Hi Chris, > > I'm more than happy to provide additional diagnostics and test proposed > fixes. As a starter for ten, I've attached the > output from 'lspci -v'. If, however, you need to see the backtrace, I'll need > some advice on how to capture that. > Can you open a bugzilla and also share

Re: [PATCH] IPI performance benchmark

2017-12-11 Thread Christian Borntraeger
On 12/11/2017 03:55 PM, Yury Norov wrote: > On Mon, Dec 11, 2017 at 03:35:02PM +0100, Christian Borntraeger wrote: >> >> >> On 12/11/2017 03:16 PM, Yury Norov wrote: >>> This benchmark sends many IPIs in different modes and measures >>> time for IPI delivery (first column), and total time, ie inc

Re: [PATCH 13/13] arc: do not use __print_symbol()

2017-12-11 Thread Vineet Gupta
On 12/11/2017 04:53 AM, Sergey Senozhatsky wrote: __print_symbol() uses extra stack space to sprintf() symbol information and then to feed that buffer to printk() char buffer[KSYM_SYMBOL_LEN]; sprint_symbol(buffer, address); printk(fmt, buffer); Replace __print_symbol() with a direct

Re: [PATCH v5 00/15] soundwire: Add a new SoundWire subsystem

2017-12-11 Thread Takashi Iwai
On Wed, 06 Dec 2017 16:46:56 +0100, Vinod Koul wrote: > > This patch series adds a new SoundWire subsystem which implements a > new MIPI bus protocol 'SoundWire'. > > The SoundWire protocol is a robust, scalable, low complexity, low > power, low latency, two-pin (clock and data) multi-drop bus th

Re: [PATCH 3/3] ahci: Allow setting a default LPM policy for mobile chipsets

2017-12-11 Thread Hans de Goede
Hi, On 11-12-17 15:42, Tejun Heo wrote: Hello, Hans. On Wed, Dec 06, 2017 at 04:41:10PM +0100, Hans de Goede wrote: CONFIG_SATA_AHCI=y +CONFIG_SATA_MOBILE_LPM_POLICY=3 This would change the default behavior. Can we not do that? Actually if you would try to apply this git will likely com

Re: Linux 4.15-rc2: Regression in resume from ACPI S3

2017-12-11 Thread Andy Lutomirski
On Mon, Dec 11, 2017 at 6:09 AM, Zhang Rui wrote: > On Sun, 2017-12-10 at 12:30 -0800, Linus Torvalds wrote: >> On Sun, Dec 10, 2017 at 10:56 AM, Pavel Machek wrote: >> > >> > >> > Confirmed, revert fixes it. You see how it moves >> > fix_processor_context >> > around #ifdef CONFIG_X86_32 block?

Re: [PATCH/RFC] DT: leds: Fix 'label' property description and add 'colour' property

2017-12-11 Thread Rob Herring
On Mon, Dec 4, 2017 at 4:43 AM, Pavel Machek wrote: > Hi! > >> Label property was imposed a uniqueness requirement, which was erroneous, >> since ePAPR defines it to "a human readable string describing a device". But it still needs to be unique to be useful. It's just unique from a different pers

Re: [PATCH] Fix resume on x86-32 machines

2017-12-11 Thread Andy Lutomirski
On Mon, Dec 11, 2017 at 7:13 AM, Ingo Molnar wrote: > > * Andy Lutomirski wrote: > >> >> >> > On Dec 10, 2017, at 1:38 PM, Pavel Machek wrote: >> > >> > >> > After 4.15-rc2, suspend stopped working on Thinkpad X60. 5b06bbc >> > (unintentionally?) reordered stuff with respect to >> > fix_processo

Re: [PATCH 1/2] usb: gadget: restore tristate-choice for legacy gadgets

2017-12-11 Thread Arnd Bergmann
On Mon, Dec 11, 2017 at 5:09 PM, Bart Van Assche wrote: > On Mon, 2017-12-11 at 12:30 +0100, Arnd Bergmann wrote: >> One patch that was meant as a cleanup apparently did more than it intended, >> allowing all combinations of legacy gadget drivers to be built into the >> kernel, and leaving an empt

Re: [PATCH 00/13] replace print_symbol() with printk()-s

2017-12-11 Thread Joe Perches
On Mon, 2017-12-11 at 21:50 +0900, Sergey Senozhatsky wrote: > print_symbol Yay. Just about exactly 5 years earlier... http://lists.infradead.org/pipermail/linux-arm-kernel/2012-December/137121.html

Re: [PATCH PTI v2 3/6] x86/vsyscall/64: Explicitly set _PAGE_USER in the pagetable hierarchy

2017-12-11 Thread Ingo Molnar
* Andy Lutomirski wrote: > On Mon, Dec 11, 2017 at 5:39 AM, Ingo Molnar wrote: > > > > * Andy Lutomirski wrote: > > > >> The kernel is very erratic as to which pagetables have _PAGE_USER > >> set. The vsyscall page gets lucky: it seems that all of the > >> relevant pagetables are among the ap

[PATCH] mm, hugetlbfs: include mm.h for vm_operations_struct

2017-12-11 Thread Arnd Bergmann
The infiniband umem code causes a build failure in some configurations: In file included from drivers/infiniband/core/umem_odp.c:41:0: include/linux/hugetlb.h: In function 'vma_kernel_pagesize': include/linux/hugetlb.h:262:32: error: dereferencing pointer to incomplete type 'const struct vm_opera

Re: [PATCH v8 2/9] x86/early-quirks: export the stolen region as a resource

2017-12-11 Thread Ingo Molnar
* Matthew Auld wrote: > We duplicate the stolen discovery code in early-quirks and in i915, > however if we just export the region as a resource from early-quirks we > can nuke the duplication. > > Signed-off-by: Matthew Auld > Cc: Joonas Lahtinen > Cc: Ville Syrjälä > Cc: Chris Wilson > Cc

[PATCH v2 0/2] dm-unstripe

2017-12-11 Thread Scott Bauer
V1->v2 Changes: 1) Fixed up some spelling errors in documentation. 2) Cleaned up some variable names to something more appropriate.

Re: [PATCH v8 1/9] x86/early-quirks: Extend Intel graphics stolen memory placement to 64bit

2017-12-11 Thread Ingo Molnar
* Matthew Auld wrote: > From: Joonas Lahtinen > > To give upcoming SKU BIOSes more flexibility in placing the Intel > graphics stolen memory, make all variables storing the placement or size > compatible with full 64 bit range. > > Signed-off-by: Joonas Lahtinen > Signed-off-by: Matthew Auld

[PATCH v2 2/2] dm unstripe: Add documentation for unstripe target

2017-12-11 Thread Scott Bauer
Signed-off-by: Scott Bauer --- Documentation/device-mapper/dm-unstripe.txt | 82 + 1 file changed, 82 insertions(+) create mode 100644 Documentation/device-mapper/dm-unstripe.txt diff --git a/Documentation/device-mapper/dm-unstripe.txt b/Documentation/device-mapper/

[PATCH v2 1/2] dm-unstripe: unstripe of IO across RAID 0

2017-12-11 Thread Scott Bauer
This device mapper module remaps and unstripes IO so it lands solely on a single drive in a RAID 0. In a 4 drive RAID 0 the mapper exposes 1/4th of the LBA range as a virtual drive. Each IO to that virtual drive will land on only one of the 4 drives, selected by the user. As an example: Intel NVM

Re: [PATCH net v3] net: phy: meson-gxl: detect LPA corruption

2017-12-11 Thread David Miller
From: Jerome Brunet Date: Fri, 8 Dec 2017 12:08:11 +0100 > I suppose this patch probably seems a bit hacky, especially the part > about the link partner acknowledge. I'm trying to figure out if the > value in MII_LPA makes sense but I don't have such a deep knowledge > of the ethernet spec. Yea

Re: [PATCH v5] kernel: make groups_sort calling a responsibility group_info allocators

2017-12-11 Thread J. Bruce Fields
ACK. (Assuming somebody else takes it--Andrew? Al? Or I can take it through the nfsd tree. I'm not sure who owns the stuff under kernel/.) --b. On Mon, Dec 11, 2017 at 01:14:20PM -0200, Thiago Rafael Becker wrote: > In testing, we found that nfsd threads may call set_groups in parallel for >

Re: [PATCH] arm64: defconfig: enable CONFIG_UNIPHIER_EFUSE

2017-12-11 Thread Masahiro Yamada
FW: Arnd and Olof, This patch looks trivial enough. The reason for not-apply is probably because this patch was sent to Catalin and Will without Arnd and Olof even CC'ed. Arnd, Olof, Please consider to apply it. This one: https://patchwork.kernel.org/patch/10084055/ Thanks. 2017-11-30 1

Re: [RFC PATCH 5/9] ethtool: implement GET_DRVINFO message

2017-12-11 Thread Jiri Pirko
Mon, Dec 11, 2017 at 02:54:01PM CET, mkube...@suse.cz wrote: >Request the same information as ETHTOOL_GDRVINFO. This is read-only so that >corresponding SET_DRVINFO exists but is only used in kernel replies. Rip >the code to query the driver out of the legacy interface and move it to >a new file et

Re: [PATCH v1 03/10] v4l: platform: Add Renesas CEU driver

2017-12-11 Thread Laurent Pinchart
Hi Jacopo, Thank you for the patch. On Wednesday, 15 November 2017 12:55:56 EET Jacopo Mondi wrote: > Add driver for Renesas Capture Engine Unit (CEU). > > The CEU interface supports capturing 'data' (YUV422) and 'images' > (NV[12|21|16|61]). > > This driver aims to replace the soc_camera based

Re: [PATCH V2] netlink: Add netns check on taps

2017-12-11 Thread Michal Kubecek
On Wed, Dec 06, 2017 at 03:57:14PM -0500, David Miller wrote: > From: Kevin Cernekee > Date: Wed, 6 Dec 2017 12:12:27 -0800 > > > Currently, a nlmon link inside a child namespace can observe systemwide > > netlink activity. Filter the traffic so that nlmon can only sniff > > netlink messages fr

Re: linux-next: build warning after merge of the kbuild tree

2017-12-11 Thread Bart Van Assche
On Mon, 2017-12-11 at 09:22 +0900, Masahiro Yamada wrote: > 2017-12-11 7:52 GMT+09:00 Stephen Rothwell : > > After merging the kbuild tree, today's linux-next build (arm > > multi_v7_defconfig) produced this warning: > > > > drivers/usb/gadget/Kconfig:487:warning: choice default symbol 'USB_ETH' i

Re: [PATCH v5 04/15] soundwire: Add MIPI DisCo property helpers

2017-12-11 Thread Takashi Iwai
On Wed, 06 Dec 2017 16:47:00 +0100, Vinod Koul wrote: > > +static int sdw_slave_read_dpn(struct sdw_slave *slave, > + struct sdw_dpn_prop *dpn, int count, int ports, char *type) > +{ > + nval = fwnode_property_read_u32_array(node, > + "mipi-

RE: [Regression 4.15-rc2] New messages `tpm tpm0: A TPM error (2314) occurred continue selftest`

2017-12-11 Thread Alexander.Steffen
> Dear Jason, > > > On 12/08/17 17:18, Jason Gunthorpe wrote: > > On Fri, Dec 08, 2017 at 05:07:39PM +0100, Paul Menzel wrote: > > > >> I have no access to the system right now, but want to point out, that the > >> log was created by `journactl -k`, so I do not know if that messes with the > >> t

Re: [PATCH 1/2] usb: gadget: restore tristate-choice for legacy gadgets

2017-12-11 Thread Bart Van Assche
On Mon, 2017-12-11 at 12:30 +0100, Arnd Bergmann wrote: > One patch that was meant as a cleanup apparently did more than it intended, > allowing all combinations of legacy gadget drivers to be built into the > kernel, and leaving an empty 'choice' statement behind: > > drivers/usb/gadget/Kconfig:4

RE: [PATCH v2] Enable SR-IOV instantiation through /sys file

2017-12-11 Thread Duyck, Alexander H
We could do that. It shouldn't be an issue as long as we disable SR-IOV first. It would just be a matter of recording the state of kernel_pf_autoprobe vs user_pf_autoprobe. It might be useful to make that distinction in the comments somewhere in the code and in the patch description. - Alex >

Re: [PATCH 4/4] fhandle: Improve error responses in name_to_handle_at()

2017-12-11 Thread J. Bruce Fields
On Mon, Dec 11, 2017 at 05:04:05PM +1100, NeilBrown wrote: > 1/ Always return the mnt_id, even if some other error occurs. >It can be useful without the file handle. >An application can initialise the memory to, e.g. -1 >and if there is some other value after name_to_handle_at() >re

Re: [PATCH] arm: dts: uniphier: add efuse node for UniPhier 32bit SoC

2017-12-11 Thread Masahiro Yamada
2017-12-04 17:12 GMT+09:00 Keiji Hayashibara : > Add efuse node for UniPhier LD4, Pro4, sLD8, Pro5 and PXs2. > This efuse node is included in soc-glue. > > Signed-off-by: Keiji Hayashibara > --- > arch/arm/boot/dts/uniphier-ld4.dtsi | 18 ++ > arch/arm/boot/dts/uniphier-pro4.dtsi

Re: [PATCH v8 1/2] dt: bindings: lm3692x: Add bindings for lm3692x LED driver

2017-12-11 Thread Rob Herring
On Mon, Dec 11, 2017 at 9:51 AM, Rob Herring wrote: > On Thu, Dec 7, 2017 at 5:04 PM, Dan Murphy wrote: >> Rob >> >> >> On 12/07/2017 04:49 PM, Rob Herring wrote: >>> On Tue, Dec 05, 2017 at 02:46:29PM -0600, Dan Murphy wrote: This adds the devicetree bindings for the LM3692x I2C LED st

[RESEND PATCH V2] arm64: fault: avoid send SIGBUS two times

2017-12-11 Thread Dongjiu Geng
do_sea() calls arm64_notify_die() which will always signal user-space. It also returns whether APEI claimed the external abort as a RAS notification. If it returns failure do_mem_abort() will signal user-space too. do_mem_abort() wants to know if we handled the error, we always call arm64_notify_d

RE: [PATCH V2 net-next 2/8] net: hns3: Add mailbox support to VF driver

2017-12-11 Thread Salil Mehta
Hi Philippe, > -Original Message- > From: Philippe Ombredanne [mailto:pombreda...@nexb.com] > Sent: Saturday, December 09, 2017 12:17 AM > To: Salil Mehta > Cc: David S. Miller ; Zhuangyuzeng (Yisen) > ; lipeng (Y) ; > mehta.salil@gmail.com; net...@vger.kernel.org; LKML ker...@vger.k

Re: [PATCH 2/2] KVM: x86: Allow userspace to define what's the microcode version

2017-12-11 Thread Paolo Bonzini
On 09/12/2017 08:42, Sironi, Filippo wrote: > I wanted to do the work once rather than doing it per vCPU but using > KVM_{GET|SET}_MSR and extending the list of MSRs that userspace can > save/restore is certainly doable. > > I'll look into that and post a v2. Thanks! Paolo

Re: [PATCH RT 1/9] Revert "fs: jbd2: pull your plug when waiting for space"

2017-12-11 Thread Sebastian Andrzej Siewior
On 2017-12-11 10:53:06 [-0500], Steven Rostedt wrote: > > Yep. Not sure why I didn't include it in 4.4. I added it to my queue, > and started testing it, which is one of the reasons I haven't posted it > yet. Also, my internet connectivity has be really poor while traveling > this time. Ah okay t

Re: [RFC PATCH 2/9] ethtool: introduce ethtool netlink interface

2017-12-11 Thread Jiri Pirko
Mon, Dec 11, 2017 at 02:53:31PM CET, mkube...@suse.cz wrote: >No function implemented yet, only genetlink and module infrastructure. >Register/unregister genetlink family "ethtool" and allow the module to be >autoloaded by genetlink code (if built as a module, distributions would >probably prefer "

Re: [PATCH v5 03/15] soundwire: Add Master registration

2017-12-11 Thread Takashi Iwai
On Wed, 06 Dec 2017 16:46:59 +0100, Vinod Koul wrote: > > + /* Set group device numbers and master device number */ > + set_bit(SDW_GROUP12_DEV_NUM | SDW_GROUP13_DEV_NUM, bus->assigned); Is this really correct? Takashi

Re: [PATCH PTI v2 3/6] x86/vsyscall/64: Explicitly set _PAGE_USER in the pagetable hierarchy

2017-12-11 Thread Andy Lutomirski
On Mon, Dec 11, 2017 at 5:39 AM, Ingo Molnar wrote: > > * Andy Lutomirski wrote: > >> The kernel is very erratic as to which pagetables have _PAGE_USER >> set. The vsyscall page gets lucky: it seems that all of the >> relevant pagetables are among the apparently arbitrary ones that set >> _PAGE_

Re: [PATCH v8 1/2] dt: bindings: lm3692x: Add bindings for lm3692x LED driver

2017-12-11 Thread Dan Murphy
Rob On 12/11/2017 09:51 AM, Rob Herring wrote: > On Thu, Dec 7, 2017 at 5:04 PM, Dan Murphy wrote: >> Rob >> >> >> On 12/07/2017 04:49 PM, Rob Herring wrote: >>> On Tue, Dec 05, 2017 at 02:46:29PM -0600, Dan Murphy wrote: This adds the devicetree bindings for the LM3692x I2C LED string

Re: [RFC][PATCHv2] Fixing POSIX wait queue to insert in task priority order for real-time, including normal tasks

2017-12-11 Thread Steven Rostedt
On Mon, 11 Dec 2017 15:13:29 + Jonathan Haws wrote: > > I didn't realize that script was there.  I'll make use of it!  As far > as RT maintainers go, I take it that is Thomas, Sebastian, and > yourself? Correct, and you can also Cc: linux-rt-users as others like Julia Cartwright may also be

Re: [PATCH v8 1/2] dt: bindings: lm3692x: Add bindings for lm3692x LED driver

2017-12-11 Thread Rob Herring
On Sat, Dec 9, 2017 at 3:21 PM, Jacek Anaszewski wrote: > On 12/08/2017 12:04 AM, Dan Murphy wrote: >> Rob >> >> >> On 12/07/2017 04:49 PM, Rob Herring wrote: >>> On Tue, Dec 05, 2017 at 02:46:29PM -0600, Dan Murphy wrote: This adds the devicetree bindings for the LM3692x I2C LED string

[RFC][PATCH] new byteorder primitives - ..._{replace,get}_bits()

2017-12-11 Thread Al Viro
A lot of drivers are open-coding the "replace these bits in __be32 with the following value" kind of primitives. Let's add them to byteorder.h. Primitives: {be,le}{16,32,64}_replace_bits(old, v, bit, nbits) {be,le}{16,32,64}_get_bits(val, bit, nbits) Essentially, it gives helpers

Re: [PATCH RT 1/9] Revert "fs: jbd2: pull your plug when waiting for space"

2017-12-11 Thread Steven Rostedt
On Mon, 11 Dec 2017 16:37:09 +0100 Sebastian Andrzej Siewior wrote: > > Now it does appear I'm missing that for 4.4. I wonder why I didn't pull > > it in there. Perhaps it wasn't needed, which means this isn't needed > > either. > > I strongly suggest to include "locking/rt-mutex: fix deadloc

Re: [PATCH] ptr_ring: add barriers

2017-12-11 Thread David Miller
From: "Michael S. Tsirkin" Date: Tue, 5 Dec 2017 21:29:37 +0200 > Users of ptr_ring expect that it's safe to give the > data structure a pointer and have it be available > to consumers, but that actually requires an smb_wmb > or a stronger barrier. > > In absence of such barriers and on architec

Re: [PATCH v8 1/2] dt: bindings: lm3692x: Add bindings for lm3692x LED driver

2017-12-11 Thread Rob Herring
On Thu, Dec 7, 2017 at 5:04 PM, Dan Murphy wrote: > Rob > > > On 12/07/2017 04:49 PM, Rob Herring wrote: >> On Tue, Dec 05, 2017 at 02:46:29PM -0600, Dan Murphy wrote: >>> This adds the devicetree bindings for the LM3692x >>> I2C LED string driver. >>> >>> Acked-by: Pavel Machek >>> Signed-off-by

<    1   2   3   4   5   6   7   8   9   >