RE: [Patch v3 2/6] cifs: Allocate validate negotiation request through kmalloc

2018-04-18 Thread Long Li
> Subject: Re: [Patch v3 2/6] cifs: Allocate validate negotiation request > through > kmalloc > > On 4/18/2018 9:08 AM, David Laight wrote: > > From: Tom Talpey > >> Sent: 18 April 2018 12:32 > > ... > >> On 4/17/2018 8:33 PM, Long Li wrote: > >>> From: Long Li > >>> > >>>

[PATCH v2] tracing: fix bad use of igrab in trace_uprobe.c

2018-04-18 Thread Song Liu
As Miklos reported and suggested: This pattern repeats two times in trace_uprobe.c and in kernel/events/core.c as well: ret = kern_path(filename, LOOKUP_FOLLOW, ); if (ret) goto fail_address_parse; inode = igrab(d_inode(path.dentry)); path_put(); And

Re: [PATCH] gpio: make several const arrays static, shrinks object size

2018-04-18 Thread William Breathitt Gray
On Wed, Apr 18, 2018 at 06:26:34PM +0100, Colin King wrote: >From: Colin Ian King > >Don't populate the const read-only arrays 'port' on the stack but >instead make them static. Makes the object code smaller: > >Before: > textdata bss dechex filename >

[PATCH] ASoC: msm8916-wcd-analog: use threaded context for mbhc events

2018-04-18 Thread srinivas . kandagatla
From: Srinivas Kandagatla As snd_soc_jack_report() can sleep, move handling of mbhc events to a thread context rather than in interrupt context. Fixes: de66b3455023 ('ASoC: codecs: msm8916-wcd-analog: add MBHC support') Reported-by: Bjorn Andersson

[PATCH v2 3/3] dt-bindings: Document the DT bindings for lan78xx

2018-04-18 Thread Phil Elwell
The Microchip LAN78XX family of devices are Ethernet controllers with a USB interface. Despite being discoverable devices it can be useful to be able to configure them from Device Tree, particularly in low-cost applications without an EEPROM or programmed OTP. Document the supported properties in

Re: ORC unwinder bad backtrace

2018-04-18 Thread Josh Poimboeuf
On Wed, Apr 18, 2018 at 06:54:38AM -0700, Matthew Wilcox wrote: > f81061192 : > ... > 810611bf: 90 nop > 810611c0 : > > I suspect an off-by-one error; you don't really mean to point to the > byte before perf_trace_x86_exception, you mean to point to byte

Re: [PATCH v2 1/2] pinctrl/samsung: Correct EINTG banks order

2018-04-18 Thread Krzysztof Kozlowski
On Tue, Apr 17, 2018 at 4:12 AM, Tomasz Figa wrote: > 2018-04-17 0:52 GMT+09:00 Paweł Chmiel : >> All banks with GPIO interrupts should be at beginning >> of bank array and without any other types of banks between them. >> This order is

[PATCH v2 2/3] lan78xx: Read LED states from Device Tree

2018-04-18 Thread Phil Elwell
Add support for DT property "microchip,led-modes", a vector of zero to four cells (u32s) in the range 0-15, each of which sets the mode for one of the LEDs. Some possible values are: 0=link/activity 1=link1000/activity 2=link100/activity 3=link10/activity

[PATCH] ARM: dts: stm32: Add DAC support to stm32mp157c

2018-04-18 Thread Fabrice Gasnier
Add support for DAC (Digital to Analog Converter) to STM32MP157C. STM32MP157C DAC has two output channels. Signed-off-by: Fabrice Gasnier --- arch/arm/boot/dts/stm32mp157c.dtsi | 24 1 file changed, 24 insertions(+) diff --git

[PATCH v3] regulator: Don't return or expect -errno from of_map_mode()

2018-04-18 Thread Douglas Anderson
In of_get_regulation_constraints() we were taking the result of of_map_mode() (an unsigned int) and assigning it to an int. We were then checking whether this value was -EINVAL. Some implementers of of_map_mode() were returning -EINVAL (even though the return type of their function needed to be

[PATCH 0/2] sparc64: Add privileged ADI driver

2018-04-18 Thread Tom Hromatka
ADI is a feature supported on SPARC M7 and newer processors to allow hardware to catch rogue accesses to memory. ADI is supported for data fetches only and not instruction fetches. An app can enable ADI on its data pages, set version tags on them and use versioned addresses to access the data

[PATCH 1/2] char: sparc64: Add privileged ADI driver

2018-04-18 Thread Tom Hromatka
SPARC M7 and newer processors utilize ADI to version and protect memory. This driver is capable of reading/writing ADI/MCD versions from privileged user space processes. Addresses in the adi file are mapped linearly to physical memory at a ratio of 1:adi_blksz. Thus, a read (or write) of offset

Re: [PATCH v3 3/3] clk: qcom: Add Global Clock controller (GCC) driver for SDM845

2018-04-18 Thread Manu Gautam
Hi Amit, On 4/18/2018 6:33 PM, Amit Nischal wrote: >>> +   /* Disable the GPLL0 active input to MMSS and GPU via MISC >>> registers */ >>> +   regmap_update_bits(regmap, 0x09ffc, 0x3, 0x3); >>> +   regmap_update_bits(regmap, 0x71028, 0x3, 0x3); >> >> I think we'll have to throw in 

Re: [PATCH] net: don't use kvzalloc for DMA memory

2018-04-18 Thread Mikulas Patocka
On Wed, 18 Apr 2018, Eric Dumazet wrote: > > > On 04/18/2018 07:34 AM, Mikulas Patocka wrote: > > The patch 74d332c13b21 changes alloc_netdev_mqs to use vzalloc if kzalloc > > fails (later patches change it to kvzalloc). > > > > The problem with this is that if the vzalloc function is

[PATCHv2] x86/xen: Remove use of VLAs

2018-04-18 Thread Laura Abbott
There's an ongoing effort to remove VLAs[1] from the kernel to eventually turn on -Wvla. It turns out, the few VLAs in use in Xen produce only a single entry array that is always bounded by GDT_SIZE. Clean up the code to get rid of the VLA and the loop. [1] https://lkml.org/lkml/2018/3/7/621

Re: [PATCH] ARM: omap2: Fix build when using split object directories

2018-04-18 Thread Tony Lindgren
* Dave Gerlach [180413 14:08]: > This is the version of this patch that we want to use, will this go through > you? Sorry for the delay, I just noticed this. Somehow I thought Santosh would queue it, but as the regression was introduced by a commit in my tree I'll pick this

Re: [PATCH] x86/entry/64/compat: Preserve r8-r11 in int $0x80

2018-04-18 Thread Denys Vlasenko
On 04/18/2018 06:53 PM, Andy Lutomirski wrote: On Tue, Apr 17, 2018 at 8:00 AM, Denys Vlasenko wrote: This means that the new behavior is there for some 8 years already. Whoever was impacted by it, probably already switched to the new ABI. Current ABI is "weaker", it

[PATCH] KVM: selftests: exit with 0 status code when tests cannot be run

2018-04-18 Thread Paolo Bonzini
Right now, skipped tests are returning a failure exit code if /dev/kvm does not exists. Consistently return a zero status code so that various scripts over the interwebs do not complain. Also return a zero status code if the KVM_CAP_SYNC_REGS capability is not present, and hardcode in the test

RE: [Patch v3 2/6] cifs: Allocate validate negotiation request through kmalloc

2018-04-18 Thread Long Li
> Subject: Re: [Patch v3 2/6] cifs: Allocate validate negotiation request > through > kmalloc > > Two comments. > > On 4/17/2018 8:33 PM, Long Li wrote: > > From: Long Li > > > > The data buffer allocated on the stack can't be DMA'ed, and hence > > can't send through RDMA

Re: [RESEND PATCH v2 0/4] ARM: davinci: remove the mach-specific aemif driver - part 1

2018-04-18 Thread Santosh Shilimkar
On 4/18/2018 1:17 AM, Sekhar Nori wrote: On Tuesday 17 April 2018 10:59 PM, Santosh Shilimkar wrote: On 4/17/2018 5:36 AM, Bartosz Golaszewski wrote: 2018-04-17 12:53 GMT+02:00 Sekhar Nori : Hi Bartosz, [...] This series applies on top of v8 of David Lechner's CCF series.

Re: [Patch v3 2/6] cifs: Allocate validate negotiation request through kmalloc

2018-04-18 Thread Tom Talpey
On 4/18/2018 1:16 PM, Long Li wrote: Subject: Re: [Patch v3 2/6] cifs: Allocate validate negotiation request through kmalloc Two comments. On 4/17/2018 8:33 PM, Long Li wrote: From: Long Li The data buffer allocated on the stack can't be DMA'ed, and hence can't send

Re: [PATCH 4.9 00/66] 4.9.95-stable review

2018-04-18 Thread Dan Rue
On Tue, Apr 17, 2018 at 05:58:33PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.95 release. > There are 66 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

[PATCH v2 1/3] lan78xx: Read MAC address from DT if present

2018-04-18 Thread Phil Elwell
There is a standard mechanism for locating and using a MAC address from the Device Tree. Use this facility in the lan78xx driver to support applications without programmed EEPROM or OTP. At the same time, regularise the handling of the different address sources. Signed-off-by: Phil Elwell

[PATCH v2 0/3] lan78xx: Read configuration from Device Tree

2018-04-18 Thread Phil Elwell
The Microchip LAN78XX family of devices are Ethernet controllers with a USB interface. Despite being discoverable devices it can be useful to be able to configure them from Device Tree, particularly in low-cost applications without an EEPROM or programmed OTP. This patch set adds support for

Re: [PATCH] Revert mm/vmstat.c: fix vmstat_update() preemption BUG

2018-04-18 Thread Sebastian Andrzej Siewior
ping. any reason not to accept the revert? On 2018-04-11 21:07:29 [+0200], To Tejun Heo wrote: > On 2018-04-11 16:42:21 [+0200], To Tejun Heo wrote: > > > > So is this perhaps related to the cpu hotplug that [1] mentions? e.g. is > > > > the cpu being hotplugged cpu 1, the worker started too

Re: [PATCH v2] tracing/x86: Update syscall trace events to handle new x86 syscall func names

2018-04-18 Thread Steven Rostedt
On Tue, 17 Apr 2018 19:22:36 +0200 Dominik Brodowski wrote: > > Added back original compare to not miss 32bit kernel syscalls > > s/32bit/32bit and 0-parameter syscalls. > > Looks good otherwise. > You want to send an Acked or Reviewed-by to my final patch

[PATCH v10 2/9] mfd: madera: Add DT bindings for Cirrus Logic Madera codecs

2018-04-18 Thread Richard Fitzgerald
Specification of the bindings for the parent MFD driver component of the Cirrus Logic Madera codec drivers. Note that although the interrupt controller and GPIO are child drivers their required bindings are trivial, mandatory, and exist within the parent MFD node so are documented here.

Re: [PATCH v2] regulator: Don't return or expect -errno from of_map_mode()

2018-04-18 Thread Doug Anderson
Hi, On Wed, Apr 18, 2018 at 12:15 AM, Javier Martinez Canillas wrote: >> @@ -124,11 +124,12 @@ static void of_get_regulation_constraints(struct >> device_node *np, >> >> if (!of_property_read_u32(np, "regulator-initial-mode", )) { >> if (desc &&

Re: [RFC PATCH 00/79] Generic page write protection and a solution to page waitqueue

2018-04-18 Thread Darrick J. Wong
On Wed, Apr 18, 2018 at 11:54:30AM -0400, Jerome Glisse wrote: > On Wed, Apr 18, 2018 at 04:13:37PM +0200, Jan Kara wrote: > > Hello, > > > > so I finally got to this :) > > > > On Wed 04-04-18 15:17:50, jgli...@redhat.com wrote: > > > From: Jérôme Glisse > > [...] > > > >

[PATCH 2/2] selftests: sparc64: char: Selftest for privileged ADI driver

2018-04-18 Thread Tom Hromatka
Add a selftest for the sparc64 privileged ADI driver. These tests verify the read(), pread(), write(), pwrite(), and seek() functionality of the driver. The tests also report simple performance statistics: Syscall CallAvgTime AvgSize Count (ticks) (bytes)

[PATCH] arm64: msm8916: fix gic_irq_domain_translate warnings

2018-04-18 Thread srinivas . kandagatla
From: Srinivas Kandagatla Remove the usage of IRQ_TYPE_NONE to fix loud warnings from patch (83a86fbb5b56b "irqchip/gic: Loudly complain about the use of IRQ_TYPE_NONE"). Signed-off-by: Srinivas Kandagatla ---

Re: [PATCH] net: don't use kvzalloc for DMA memory

2018-04-18 Thread Eric Dumazet
On 04/18/2018 09:44 AM, Mikulas Patocka wrote: > > > On Wed, 18 Apr 2018, Eric Dumazet wrote: > >> >> >> On 04/18/2018 07:34 AM, Mikulas Patocka wrote: >>> The patch 74d332c13b21 changes alloc_netdev_mqs to use vzalloc if kzalloc >>> fails (later patches change it to kvzalloc). >>> >>> The

Re: [PATCH net-next 2/2] netns: isolate seqnums to use per-netns locks

2018-04-18 Thread Eric W. Biederman
Christian Brauner writes: > Now that it's possible to have a different set of uevents in different > network namespaces, per-network namespace uevent sequence numbers are > introduced. This increases performance as locking is now restricted to the > network

Re: [patch 5/8] rslib: Split rs control struct

2018-04-18 Thread Kees Cook
On Wed, Apr 4, 2018 at 12:40 PM, Boris Brezillon wrote: > Hi Thomas, > > On Wed, 28 Mar 2018 22:51:43 +0200 > Thomas Gleixner wrote: > >> The decoder library uses variable length arrays on stack. To get rid of >> them it's it would be simple to

Re: [PATCH 1/2] hfs: fix potential refcnt problem of nls module

2018-04-18 Thread Viacheslav Dubeyko
On Tue, 2018-04-17 at 15:05 +0800, Chengguang Xu wrote: > When specifying iocharset/codepage multiple times in a mount, > current option parsing will cause inaccurate refcount of nls > module. Hence, call unload_nls for previous one in this case. > > Signed-off-by: Chengguang Xu

Re: [PATCH 2/2] hfsplus: fix potential refcnt problem of nls module

2018-04-18 Thread Viacheslav Dubeyko
On Tue, 2018-04-17 at 15:05 +0800, Chengguang Xu wrote: > When specifying nls option multiple times in a mount, > current option parsing will cause inaccurate refcount of nls > module. Hence, call unload_nls for previous one in this case. > > Signed-off-by: Chengguang Xu Looks

[PATCH] gpio: make several const arrays static, shrinks object size

2018-04-18 Thread Colin King
From: Colin Ian King Don't populate the const read-only arrays 'port' on the stack but instead make them static. Makes the object code smaller: Before: textdata bss dechex filename 85424088 672 13302 33f6 drivers/gpio/gpio-gpio-mm.o

[PATCH v5 00/23] ASoC: qcom: Add support to QDSP based Audio

2018-04-18 Thread srinivas . kandagatla
From: Srinivas Kandagatla Thankyou everyone for providing feedback on v4 patchset. This patchset aims to provide a basic version of QCOM DSP based audio support which is available in downstream andriod kernels. This patchset support audio playback on HDMI-RX,

[PATCH 1/2] memory: aemif: don't rely on kbuild for driver's name

2018-04-18 Thread Bartosz Golaszewski
From: Bartosz Golaszewski We want to use aemif from board files. Use a static name in the driver's code. Signed-off-by: Bartosz Golaszewski --- drivers/memory/ti-aemif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [RFC PATCH 00/79] Generic page write protection and a solution to page waitqueue

2018-04-18 Thread Jerome Glisse
On Wed, Apr 18, 2018 at 04:13:37PM +0200, Jan Kara wrote: > Hello, > > so I finally got to this :) > > On Wed 04-04-18 15:17:50, jgli...@redhat.com wrote: > > From: Jérôme Glisse [...] > > -- > > The Why ?

[PATCH] atm: iphase: fix spelling mistake: "Tansmit" -> "Transmit"

2018-04-18 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in message text. Signed-off-by: Colin Ian King --- drivers/atm/iphase.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/atm/iphase.c b/drivers/atm/iphase.c

Re: [REGRESSION][BISECTED] i.MX6 pinctrl hogs stopped working

2018-04-18 Thread Richard Fitzgerald
On 10/04/18 19:33, Mika Penttilä wrote: On 10.04.2018 13:21, Richard Fitzgerald wrote: On 04/04/18 06:33, Mika Penttilä wrote: Hi! Reverting this made the hogs on a i.MX6 board work again. : commit b89405b6102fcc3746f43697b826028caa94c823 Author: Richard Fitzgerald

Re: [Xen-devel] [PATCH 0/1] drm/xen-zcopy: Add Xen zero-copy helper DRM driver

2018-04-18 Thread Dongwon Kim
On Wed, Apr 18, 2018 at 03:42:29PM +0300, Oleksandr Andrushchenko wrote: > On 04/18/2018 01:55 PM, Roger Pau Monné wrote: > >On Wed, Apr 18, 2018 at 01:39:35PM +0300, Oleksandr Andrushchenko wrote: > >>On 04/18/2018 01:18 PM, Paul Durrant wrote: > -Original Message- > From:

Re: [RFC PATCH v3 1/3] ima: extend clone() with IMA namespace support

2018-04-18 Thread John Johansen
On 04/13/2018 09:25 AM, Mimi Zohar wrote: > [Cc'ing John Johansen] > > On Tue, 2018-03-27 at 18:01 -0500, Eric W. Biederman wrote: > [...] >> As such I expect the best way to create the ima namespace is by simply >> writing to securityfs/imafs. Possibly before the user namespace is >> even

Re: [PATCH 1/2] tracing: fix bad use of igrab in trace_uprobe.c

2018-04-18 Thread Song Liu
> On Apr 18, 2018, at 7:03 AM, Miklos Szeredi wrote: > > On Wed, Apr 18, 2018 at 8:29 AM, Song Liu wrote: >> As Miklos reported and suggested: >> >> This pattern repeats two times in trace_uprobe.c and in >> kernel/events/core.c as well: >> >>

Re: [PATCH v2 2/3] lan78xx: Read LED states from Device Tree

2018-04-18 Thread Andrew Lunn
On Wed, Apr 18, 2018 at 04:45:22PM +0100, Phil Elwell wrote: > Add support for DT property "microchip,led-modes", a vector of zero > to four cells (u32s) in the range 0-15, each of which sets the mode > for one of the LEDs. Some possible values are: > > 0=link/activity

Re: [PATCH 1/2] tracing: fix bad use of igrab in trace_uprobe.c

2018-04-18 Thread Song Liu
> On Apr 18, 2018, at 7:25 AM, Steven Rostedt wrote: > > On Wed, 18 Apr 2018 16:03:42 +0200 > Miklos Szeredi wrote: > >>> @@ -937,7 +928,8 @@ probe_event_enable(struct trace_uprobe *tu, struct >>> trace_event_file *file, >>>goto

Re: [RFC] virtio: Use DMA MAP API for devices without an IOMMU

2018-04-18 Thread Michael S. Tsirkin
On Wed, Apr 18, 2018 at 08:47:10AM +0530, Anshuman Khandual wrote: > On 04/15/2018 05:41 PM, Christoph Hellwig wrote: > > On Fri, Apr 06, 2018 at 06:37:18PM +1000, Benjamin Herrenschmidt wrote: > implemented as DMA API which the virtio core understands. There is no > need for an IOMMU to

Re: [PATCH 1/2] tracing: fix bad use of igrab in trace_uprobe.c

2018-04-18 Thread Steven Rostedt
On Wed, 18 Apr 2018 16:08:50 + Song Liu wrote: > > This is not against -linus tree. > > These patches are against tip/perf/core. I can also send version against > -linus tree. I can take this patch in my tree (which is currently equal to 4.17-rc1). The other

[PATCH v2] exofs: Avoid VLA in structures

2018-04-18 Thread Kees Cook
On the quest to remove all VLAs from the kernel[1] this adjusts several cases where allocation is made after an array of structures that points back into the allocation. The allocations are changed to perform explicit calculations instead of using a Variable Length Array in a structure.

Re: [PATCH v2] regulator: Don't return or expect -errno from of_map_mode()

2018-04-18 Thread Mark Brown
On Wed, Apr 18, 2018 at 08:56:22AM -0700, Doug Anderson wrote: > On Wed, Apr 18, 2018 at 12:15 AM, Javier Martinez Canillas > >> if (!of_property_read_u32(np, "regulator-initial-mode", )) { > >> if (desc && desc->of_map_mode) { > >> - ret =

Re: [PATCH 0/1] drm/xen-zcopy: Add Xen zero-copy helper DRM driver

2018-04-18 Thread Dongwon Kim
On Wed, Apr 18, 2018 at 09:38:39AM +0300, Oleksandr Andrushchenko wrote: > On 04/17/2018 11:57 PM, Dongwon Kim wrote: > >On Tue, Apr 17, 2018 at 09:59:28AM +0200, Daniel Vetter wrote: > >>On Mon, Apr 16, 2018 at 12:29:05PM -0700, Dongwon Kim wrote: > >>>Yeah, I definitely agree on the idea of

Re: [v2,2/2] regulator: add QCOM RPMh regulator driver

2018-04-18 Thread Mark Brown
On Tue, Apr 17, 2018 at 11:23:47AM -0700, Matthias Kaehlcke wrote: > On Fri, Apr 13, 2018 at 07:50:35PM -0700, David Collins wrote: > > Add the QCOM RPMh regulator driver to manage PMIC regulators > > which are controlled via RPMh on some Qualcomm Technologies, Inc. > > SoCs. RPMh is a hardware

Re: [PATCH v2 1/3] ASoC: dwc: I2S Controller instance param added

2018-04-18 Thread Mark Brown
On Wed, Apr 18, 2018 at 06:18:44PM +0530, Mukunda,Vijendar wrote: > On Wednesday 18 April 2018 04:54 PM, Mark Brown wrote: > > On Wed, Apr 18, 2018 at 04:34:52PM +0530, Vijendar Mukunda wrote: > > > When multiple I2S controller instances created, > > > i2s_instance parameter refers to i2s

Re: [PATCH] x86/MCE, EDAC/mce_amd: Save all aux registers on SMCA systems

2018-04-18 Thread Borislav Petkov
On Tue, Apr 17, 2018 at 06:30:34PM +, Ghannam, Yazen wrote: > We could but it's an issue of documentation and testing the older systems. > > My first pass at this was to unconditionally read the registers because my > understanding was that registers that aren't accessible would be

Re: [PATCH] ARM: omap2: Fix build when using split object directories

2018-04-18 Thread Santosh Shilimkar
On 4/18/2018 10:09 AM, Tony Lindgren wrote: * Dave Gerlach [180413 14:08]: This is the version of this patch that we want to use, will this go through you? Sorry for the delay, I just noticed this. Somehow I thought Santosh would queue it, but as the regression was

Re: [PATCH v3] net: davicom: dm9000: Avoid spinlock recursion during dm9000_timeout routine

2018-04-18 Thread David Miller
From: liuxiang Date: Wed, 18 Apr 2018 21:48:22 +0800 (CST) > Because the timeout task gets the main spinlock and disable the > current cpu's irq, there is no other task on the same cpu can run, > and tasks on the other cpus can not enter the dm9000_timeout() > again. So

Re: [PATCH] prctl: fix compat handling for prctl

2018-04-18 Thread kbuild test robot
Hi Li, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.17-rc1 next-20180418] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

Re: [Patch v3 2/6] cifs: Allocate validate negotiation request through kmalloc

2018-04-18 Thread Tom Talpey
On 4/18/2018 1:11 PM, Long Li wrote: Subject: Re: [Patch v3 2/6] cifs: Allocate validate negotiation request through kmalloc On 4/18/2018 9:08 AM, David Laight wrote: From: Tom Talpey Sent: 18 April 2018 12:32 ... On 4/17/2018 8:33 PM, Long Li wrote: From: Long Li

Re: [PATCH] net: don't use kvzalloc for DMA memory

2018-04-18 Thread David Miller
From: Eric Dumazet Date: Wed, 18 Apr 2018 09:51:25 -0700 > I suggest that virtio_net clearly identifies which part needs a specific > allocation > and does its itself, instead of abusing the netdev_priv storage. > > Ie use a pointer to a block of memory, allocated by

Re: [PATCH v2] tracing: fix bad use of igrab in trace_uprobe.c

2018-04-18 Thread Steven Rostedt
You forgot to add Miklos again. Miklos, have any comments on this patch? Or can you give a "Reviewed-by"? -- Steve On Wed, 18 Apr 2018 10:40:14 -0700 Song Liu wrote: > As Miklos reported and suggested: > > This pattern repeats two times in trace_uprobe.c and in >

[PATCH v5 02/23] soc: qcom: Add APR bus driver

2018-04-18 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch adds support toi APR bus (Asynchronous Packet Router) driver. ARP driver is made as a bus driver so that the apr devices can added removed more dynamically depending on the state of the services on the dsp. APR is used for

[PATCH v5 03/23] ASoC: qdsp6: q6common: Add qdsp6 helper functions

2018-04-18 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch adds some common helper functions like translating dsp error to linux error codes and channel mappings etc. These functions are used in all the following qdsp6 drivers. Signed-off-by: Srinivas Kandagatla

[PATCH 0/2] memory: aemif: add support for machine code

2018-04-18 Thread Bartosz Golaszewski
From: Bartosz Golaszewski This is a follow-up to the series that contained both changes to the aemif driver and platform code. It contains only the driver changes. As the first step in removing duplicate support for aemif from the kernel we need to add support for

Re: [PATCH] net: don't use kvzalloc for DMA memory

2018-04-18 Thread Eric Dumazet
On 04/18/2018 07:34 AM, Mikulas Patocka wrote: > The patch 74d332c13b21 changes alloc_netdev_mqs to use vzalloc if kzalloc > fails (later patches change it to kvzalloc). > > The problem with this is that if the vzalloc function is actually used, > virtio_net doesn't work (because it expects

[PATCH 2/2] cpufreq: brcmstb-avs-cpufreq: prefer SCMI cpufreq if supported

2018-04-18 Thread Markus Mayer
From: Jim Quinlan If the SCMI cpufreq driver is supported, we bail, so that the new approach can be used. Signed-off-by: Jim Quinlan Signed-off-by: Markus Mayer --- drivers/cpufreq/brcmstb-avs-cpufreq.c | 16 1

[PATCH 0/2] brcmstb-avs-cpufreq changes

2018-04-18 Thread Markus Mayer
From: Markus Mayer These changes are based on v4.17-rc1. The two patches are unrelated. Patch 1/2 removes unused code that was only useful during driver development and that has been disabled by default for a long time. Patch 2/2 allows the driver to detect if the system

Re: 4.15.17 regression: bisected: timeout during microcode update

2018-04-18 Thread Borislav Petkov
On Wed, Apr 18, 2018 at 06:53:30AM -0700, Raj, Ashok wrote: > nothing about the microcode itself comes to mind. I'm wondering if > this similar to the Arch linux that used late-load during booting > might be an issue. How so? They'd echo 1 > /sys/... very early during boot? Got an example dmesg

Re: [PATCH 0/3] USB: musb: dsps: phy fix and DT-topology support

2018-04-18 Thread Bin Liu
Johan, On Fri, Apr 13, 2018 at 05:15:02PM +0200, Johan Hovold wrote: > I've been carrying a patch out-of-tree since my work on improving the > USB device-tree support which is needed to be able to describe USB > topologies for musb based controllers. > > This patch, which associates the platform

Re: [PATCH v3 04/10] Documentations: dt-bindings: Add a document of PECI adapter driver for Aspeed AST24xx/25xx SoCs

2018-04-18 Thread Jae Hyun Yoo
On 4/18/2018 6:59 AM, Rob Herring wrote: On Tue, Apr 17, 2018 at 5:06 PM, Jae Hyun Yoo wrote: On 4/17/2018 11:16 AM, Jae Hyun Yoo wrote: On 4/17/2018 6:16 AM, Rob Herring wrote: On Mon, Apr 16, 2018 at 6:12 PM, Jae Hyun Yoo

Re: [PATCH] x86/entry/64/compat: Preserve r8-r11 in int $0x80

2018-04-18 Thread Andy Lutomirski
On Tue, Apr 17, 2018 at 8:00 AM, Denys Vlasenko wrote: > This means that the new behavior is there for some 8 years already. > Whoever was impacted by it, probably already switched to the new ABI. > > Current ABI is "weaker", it allows kernel to save fewer registers. > >

Re: [PATCH] perf tools: coresight: Moving to SPDX identifier

2018-04-18 Thread Arnaldo Carvalho de Melo
Em Mon, Apr 16, 2018 at 02:53:33PM -0600, Mathieu Poirier escreveu: > Moving perf tools CoreSight support to the SPDX identifier. > > Signed-off-by: Mathieu Poirier > --- > tools/include/linux/coresight-pmu.h | 13 + >

Re: [PATCH] net: don't use kvzalloc for DMA memory

2018-04-18 Thread David Miller
From: Eric Dumazet Date: Wed, 18 Apr 2018 09:05:54 -0700 > Each virtio_net should probably allocate the exact amount of > DMA-memory it wants, instead of expecting core networking stack to > have a huge chunk of DMA-memory for everything. Yes, if you need DMA'able

drivers/phy/motorola/phy-mapphone-mdm6600.c:188:16: warning: is used uninitialized in this function

2018-04-18 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: a27fc14219f2e3c4a46ba9177b04d9b52c875532 commit: 5d1ebbda0318b1ba55eaa1fae3fd867af17b0774 phy: mapphone-mdm6600: Add USB PHY driver for MDM6600 on Droid 4 date: 5 weeks ago config:

Re: [PATCH] net: don't use kvzalloc for DMA memory

2018-04-18 Thread David Miller
From: Mikulas Patocka Date: Wed, 18 Apr 2018 12:44:25 -0400 (EDT) > The structure net_device is followed by arbitrary driver-specific data > (accessible with the function netdev_priv). And for virtio-net, these > driver-specific data must be in DMA memory. And we are

Re: [PATCH v2] tracing: fix bad use of igrab in trace_uprobe.c

2018-04-18 Thread Song Liu
> On Apr 18, 2018, at 10:47 AM, Steven Rostedt wrote: > > You forgot to add Miklos again. > I am really sorry! I was expecting "Reported-by" to add Miklos. Song > Miklos, have any comments on this patch? Or can you give a > "Reviewed-by"? > > -- Steve > > > On Wed,

RE: [Xen-devel] [PATCH 0/1] drm/xen-zcopy: Add Xen zero-copy helper DRM driver

2018-04-18 Thread Paul Durrant
> -Original Message- > From: Oleksandr Andrushchenko [mailto:andr2...@gmail.com] > Sent: 18 April 2018 11:21 > To: Paul Durrant ; Roger Pau Monne > > Cc: jgr...@suse.com; Artem Mygaiev ; > Dongwon Kim

Re: [PATCH] KVM: X86: Allow userspace to define the microcode version

2018-04-18 Thread Paolo Bonzini
On 18/04/2018 11:03, Eduardo Habkost wrote: >>> QEMU setting ucode_rev automatically using the host value when >>> using "-cpu host" (with no need for explicit ucode_rev option) >>> makes sense to me. >> QEMU can't get the host value by rdmsr MSR_IA32_UCODE_REV directly >> since rdmsr will #GP

[PATCH v4 2/6] clocksource/drivers: Add a new driver for the Atmel ARM TC blocks

2018-04-18 Thread Alexandre Belloni
Add a driver for the Atmel Timer Counter Blocks. This driver provides a clocksource and two clockevent devices. One of the clockevent device is linked to the clocksource counter and so it will run at the same frequency. This will be used when there is only on TCB channel available for timers.

[PATCH v4 5/6] ARM: configs: at91: use new TCB timer driver

2018-04-18 Thread Alexandre Belloni
Unselecting ATMEL_TCLIB switches the TCB timer driver from tcb_clksrc to timer-atmel-tcb. Signed-off-by: Alexandre Belloni --- arch/arm/configs/at91_dt_defconfig | 1 - arch/arm/configs/sama5_defconfig | 1 - 2 files changed, 2 deletions(-) diff --git

[PATCH v4 1/6] ARM: at91: add TCB registers definitions

2018-04-18 Thread Alexandre Belloni
Add registers and bits definitions for the timer counter blocks found on Atmel ARM SoCs. Tested-by: Alexander Dahl Tested-by: Andras Szemzo Signed-off-by: Alexandre Belloni --- include/soc/at91/atmel_tcb.h | 216

[PATCH v4 6/6] ARM: configs: at91: unselect PIT

2018-04-18 Thread Alexandre Belloni
The PIT is not required anymore to successfully boot and may actually harm in case preempt-rt is used because the PIT interrupt is shared. Disable it so the TCB clocksource is used. Signed-off-by: Alexandre Belloni --- arch/arm/configs/at91_dt_defconfig | 1 +

Re: [PATCH 2/2] fs, elf: drop MAP_FIXED usage from elf_map

2018-04-18 Thread Tetsuo Handa
>From 0ba20dcbbc40b703413c9a6907a77968b087811b Mon Sep 17 00:00:00 2001 From: Tetsuo Handa Date: Wed, 18 Apr 2018 15:31:48 +0900 Subject: [PATCH] fs, elf: don't complain MAP_FIXED_NOREPLACE if mapping failed. Commit 4ed28639519c7bad ("fs, elf: drop MAP_FIXED

Re: [PATCH] media: v4l2-core: Change return type to vm_fault_t

2018-04-18 Thread Souptick Joarder
On Wed, Apr 18, 2018 at 2:38 PM, Sakari Ailus wrote: > On Tue, Apr 17, 2018 at 08:13:06PM +0530, Souptick Joarder wrote: >> Use new return type vm_fault_t for fault handler. For >> now, this is just documenting that the function returns >> a VM_FAULT value rather than an

[PATCH] scsi: mptfc: fix spelling mistake in macro names

2018-04-18 Thread Colin King
From: Colin Ian King Rename macros MPI_FCPORTPAGE0_SUPPORT_SPEED_UKNOWN and MPI_FCPORTPAGE0_CURRENT_SPEED_UKNOWN to add in missing N in UNKNOWN Signed-off-by: Colin Ian King --- drivers/message/fusion/lsi/mpi_cnfg.h | 4 ++--

Re: [PATCH 2/2] fs, elf: drop MAP_FIXED usage from elf_map

2018-04-18 Thread Tetsuo Handa
Michal Hocko wrote: > > Don't complain if IS_ERR_VALUE(), > > this is simply wrong. We do want to warn on the failure because this is > when the actual clash happens. We should just warn on EEXIST. >From 25442cdd31aa5cc8522923a0153a77dfd2ebc832 Mon Sep 17 00:00:00 2001 From: Tetsuo Handa

sound/soc/intel/atom/sst/sst_loader.c:357:9: warning: 'fw' is used uninitialized in this function

2018-04-18 Thread kbuild test robot
Hi Pierre-Louis, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: a27fc14219f2e3c4a46ba9177b04d9b52c875532 commit: 4772c16ede522d46219a59646503d2020841a6f4 ASoC: Intel: Kconfig: Simplify-clarify ACPI/PCI

Re: [PATCH 1/2] vsprintf: Tweak pF/pf comment

2018-04-18 Thread Petr Mladek
On Sat 2018-04-14 12:00:05, Sergey Senozhatsky wrote: > Reflect changes that have happened to pf/pF (deprecation) > specifiers in pointer() comment section. > > Signed-off-by: Sergey Senozhatsky Good catch! Reviewed-by: Petr Mladek I have

Re: [patch v2] mm, oom: fix concurrent munlock and oom reaper unmap

2018-04-18 Thread Michal Hocko
On Wed 18-04-18 20:49:11, Tetsuo Handa wrote: > Michal Hocko wrote: > > On Tue 17-04-18 19:52:41, David Rientjes wrote: > > > Since exit_mmap() is done without the protection of mm->mmap_sem, it is > > > possible for the oom reaper to concurrently operate on an mm until > > > MMF_OOM_SKIP is set.

Re: 4.15.17 regression: bisected: timeout during microcode update

2018-04-18 Thread Vitezslav Samel
On Wed, Apr 18, 2018 at 12:07:21PM +0200, Borislav Petkov wrote: > On Wed, Apr 18, 2018 at 10:11:40AM +0200, Vitezslav Samel wrote: > > Could be done anything to prevent this panic? > > Yes, for starters, is there anything preventing you from using an initrd > and doing early microcode loading?

Re: [PATCH 07/11] lightnvm: pblk: remove unnecessary indirection

2018-04-18 Thread Javier Gonzalez
> On 17 Apr 2018, at 05.11, Matias Bjørling wrote: > > On 4/16/18 12:25 PM, Javier González wrote: >> Remove unnecessary indirection on the read path. > > Title and description are the same. Can you elaborate what changed > since pblk_submit_io now directly can be returned,

Re: 4.15.17 regression: bisected: timeout during microcode update

2018-04-18 Thread Borislav Petkov
On Wed, Apr 18, 2018 at 02:08:40PM +0200, Vitezslav Samel wrote: > I switched to firmware-in-kernel early loading and that works OK. Ok, and keep using that from now on. People should all move away from that late loading dance. I'm saying that in case someone else reads this on lkml. > But

Re: [PATCH net-next v4 0/3] kernel: add support to collect hardware logs in crash recovery kernel

2018-04-18 Thread Rahul Lakkireddy
On Wednesday, April 04/18/18, 2018 at 11:45:46 +0530, Dave Young wrote: > Hi Rahul, > On 04/17/18 at 01:14pm, Rahul Lakkireddy wrote: > > On production servers running variety of workloads over time, kernel > > panic can happen sporadically after days or even months. It is > > important to collect

[PATCH] clk: imx6ul: fix periph clk2 clock mux selection

2018-04-18 Thread Stefan Agner
According to the data sheet the 3rd choice is the bypass clock of pll2. This should not have any effect in practice as this selection is not used currently. Signed-off-by: Stefan Agner --- drivers/clk/imx/clk-imx6ul.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Reply

2018-04-18 Thread Tamale David
Dear Shaohui, I plead an indulgence if I have invaded your privacy by receiving this mail from me without prior permission.With due respect,I contact you purposely based on the similarities of names between you and my deceased client who was an oil servicing contractor with shell petroleum in West

[PATCH resend 4/4] virt: vbox: Log an error when we fail to get the host version

2018-04-18 Thread Hans de Goede
This was the only error path during probe without a message being logged about what went wrong, this fixes this. Signed-off-by: Hans de Goede --- drivers/virt/vboxguest/vboxguest_core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

Re: [PATCH] mm:memcg: add __GFP_NOWARN in __memcg_schedule_kmem_cache_create

2018-04-18 Thread Minchan Kim
On Wed, Apr 18, 2018 at 09:54:37AM +0200, Michal Hocko wrote: > On Wed 18-04-18 16:41:17, Minchan Kim wrote: > > On Wed, Apr 18, 2018 at 09:20:02AM +0200, Michal Hocko wrote: > > > On Wed 18-04-18 11:29:12, Minchan Kim wrote: > [...] > > > > Let's not make user scared. > > > > > > This is not a

[cfs_trace_lock_tcd] BUG: unable to handle kernel NULL pointer dereference at 00000050

2018-04-18 Thread Fengguang Wu
Hello, FYI this happens in mainline kernel 4.17.0-rc1. It looks like a new regression. It occurs in 5 out of 5 boots. [6.524361] ledtrig-cpu: registered to indicate activity on CPUs [6.527658] NET: Registered protocol family 4 [6.528191] comedi: version 0.7.76 -

Re: [RFC PATCH 31/35] Revert "vfs: add d_real_inode() helper"

2018-04-18 Thread Steven Rostedt
On Wed, 18 Apr 2018 13:42:03 +0200 Miklos Szeredi wrote: > On Wed, Apr 18, 2018 at 10:19 AM, Amir Goldstein wrote: > > On Thu, Apr 12, 2018 at 6:08 PM, Miklos Szeredi > > wrote: > >> This reverts commit

Re: [cfs_trace_lock_tcd] BUG: unable to handle kernel NULL pointer dereference at 00000050

2018-04-18 Thread James Simmons
> Hello, > > FYI this happens in mainline kernel 4.17.0-rc1. > It looks like a new regression. > > [7.587002] lnet_selftest_init+0x2c4/0x5d9: > lnet_selftest_init at > drivers/staging/lustre/lnet/selftest/module.c:134 > [7.587002] ?

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