Re: [PATCH net-next,v2] tools: hv: Add clean up for included files in Ubuntu net config

2017-05-16 Thread David Miller
From: Haiyang Zhang Date: Fri, 12 May 2017 12:14:11 -0700 > From: Haiyang Zhang > > The clean up function is updated to cover duplicate config info in > files included by "source" key word in Ubuntu network config. > > Signed-off-by: Haiyang Zhang Applied.

[PATCH 3/3] s390: virtio: Adjust a null pointer check in two functions

2017-05-16 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 16 May 2017 17:14:26 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script “checkpatch.pl” pointed information out like the following. Comparison to NULL could be written … Thus fix the affected source code pla

[PATCH v2] drm: Add DRM_ROTATE_ and DRM_REFLECT_ defines to UAPI

2017-05-16 Thread Robert Foss
Add DRM_ROTATE_ and DRM_REFLECT_ defines to the UAPI as a convenience. Ideally the DRM_ROTATE_ and DRM_REFLECT_ property ids are looked up through the atomic API, but realizing that userspace is likely to take shortcuts and assume that the enum values are what is sent over the wire. As a result t

Re: [PATCH] net: socket: mark socket protocol handler structs as const

2017-05-16 Thread David Miller
From: linzhang Date: Mon, 15 May 2017 10:26:47 +0800 > Signed-off-by: linzhang Applied.

Re: [PATCH] workqueue: Ensure that cpumask set for pools created after boot

2017-05-16 Thread Tejun Heo
Hello, Michael. On Mon, May 15, 2017 at 10:48:04AM -0500, Michael Bringmann wrote: > >> --- a/kernel/workqueue.c > >> +++ b/kernel/workqueue.c > >> @@ -3366,6 +3366,8 @@ static struct worker_pool *get_unbound_pool(const > >> struct workqueue_attrs *attrs) > >>copy_workqueue_attrs(pool->attrs,

[ANNOUNCE] The Linux Test Project has been released for May 2017

2017-05-16 Thread Cyril Hrubis
://github.com/linux-test-project/ltp/releases/tag/20170516 The project pages as well as GIT repository are hosted on GitHub: https://github.com/linux-test-project/ltp http://linux-test-project.github.io/ If you ever wondered how to write a LTP testcase, don't miss our developer documentation at:

Re: [PATCH] Staging: comedi: comedidev.h: fixed a warning

2017-05-16 Thread srishti sharma
On Tue, May 16, 2017 at 2:45 PM, Greg KH wrote: > On Tue, May 16, 2017 at 02:00:23PM +0530, srishti wrote: >> Fixed a warning : struct comedi_lrange is generally constant. >> >> Signed-off-by: Srishti Sharma > > As Dan pointed out, you _HAVE_ to test-build your changes. > > Also, your "From:" lin

Re: [PATCH v2] misc: sram-exec: Use aligned fncpy instead of memcpy

2017-05-16 Thread Tony Lindgren
* Russell King - ARM Linux [170503 11:58]: > On Mon, Apr 10, 2017 at 09:52:47AM -0500, Dave Gerlach wrote: > > Currently the sram-exec functionality, which allows allocation of > > executable memory and provides an API to move code to it, is only > > selected in configs for the ARM architecture. B

Re: [RFC PATCH] fs: ext4: don't trap kswapd and allocating tasks on ext4 inode IO

2017-05-16 Thread Jan Kara
On Tue 16-05-17 11:41:05, Johannes Weiner wrote: > On Tue, May 16, 2017 at 04:36:45PM +0200, Jan Kara wrote: > > On Mon 15-05-17 11:46:34, Johannes Weiner wrote: > > > We have observed across several workloads situations where kswapd and > > > direct reclaimers get stuck in the inode shrinker of th

Re: frv build failure in mainline kernel

2017-05-16 Thread David Howells
Guenter Roeck wrote: > Turns out not here because cacheline_aligned_in_smp includes > __page_aligned_data which also declares the section, at least on x86. If there's any sort of section specification, that should suffice, I think. The problem might come that jiffies and jiffies_64 don't coi

[PATCH -next] RAS: Make local function parse_ras_param() static

2017-05-16 Thread Wei Yongjun
From: Wei Yongjun Fixes the following sparse warning: drivers/ras/ras.c:32:12: warning: symbol 'parse_ras_param' was not declared. Should it be static? Signed-off-by: Wei Yongjun --- drivers/ras/ras.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ras/ras.c b/dri

Re: [PATCH 2/4] ftrace/instances: Clear function triggers when removing instances

2017-05-16 Thread Masami Hiramatsu
On Mon, 15 May 2017 12:11:03 -0400 Steven Rostedt wrote: > On Mon, 15 May 2017 11:21:15 -0400 > Steven Rostedt wrote: > > > On Sun, 14 May 2017 01:01:02 +0530 > > "Naveen N. Rao" wrote: > > > > > If instance directories are deleted while there are registered function > > > triggers: > > > >

[PATCH RESEND 00/13] platform/chrome: Add console debugfs, lpc and lightbar programming support

2017-05-16 Thread Enric Balletbo i Serra
Dear Olof, Benson, We have some patches that stayed in the mailing list for long time and already missed some merge window. Please kindly take into consideration to not miss more merge windows. As some patches depends on the other to apply cleanly I created a patch series with all includes to

[PATCH RESEND 06/13] platform/chrome: cros_ec_lpc: Add support for mec1322 EC

2017-05-16 Thread Enric Balletbo i Serra
From: Shawn Nematbakhsh This adds support for the ChromeOS LPC Microchip Embedded Controller (mec1322) variant. mec1322 accesses I/O region [800h, 9ffh] through embedded memory interface (EMI) rather than LPC. Signed-off-by: Shawn Nematbakhsh Signed-off-by: Thierry Escande --- drivers/platfo

[PATCH RESEND 08/13] platform/chrome: cros_ec_lpc: Add power management ops

2017-05-16 Thread Enric Balletbo i Serra
From: Archana Patni This patch adds suspend and resume pm ops to the LPC ChromeOS EC driver. These LPC handlers call the croc_ec generic handlers. Signed-off-by: Archana Patni Signed-off-by: Thierry Escande --- drivers/platform/chrome/cros_ec_lpc.c | 21 + 1 file changed,

[PATCH RESEND 11/13] platform/chrome: cros_ec_lightbar - Control of suspend/resume lightbar sequence

2017-05-16 Thread Enric Balletbo i Serra
From: Eric Caruso Don't let EC control suspend/resume sequence. If the EC controls the lightbar and sets the sequence when it notices the chipset transitioning between states, we can't make exceptions for cases where we don't want to activate the lightbar. Instead, let's move the suspend/resume n

[PATCH RESEND 12/13] platform/chrome: cros_ec_lightbar - Add userspace lightbar control bit to EC

2017-05-16 Thread Enric Balletbo i Serra
From: Eric Caruso Some devices might want to turn off the lightbar if e.g. the system turns the screen off due to idleness. This prevents the kernel from going through its normal suspend/resume pathways. Signed-off-by: Eric Caruso Signed-off-by: Guenter Roeck Signed-off-by: Enric Balletbo i Se

[PATCH RESEND 09/13] platform/chrome: cros_ec_lpc: Add MKBP events support over ACPI

2017-05-16 Thread Enric Balletbo i Serra
From: Gwendal Grignou This patch installs a notify handler to process MKBP events for EC firmware directing them over ACPI. Signed-off-by: Gwendal Grignou Signed-off-by: Thierry Escande --- drivers/platform/chrome/cros_ec_lpc.c | 32 1 file changed, 32 inserti

[PATCH RESEND 13/13] platform/chrome: cros_ec_lightbar - Avoid I2C xfer to EC during suspend

2017-05-16 Thread Enric Balletbo i Serra
From: Jeffery Yu A Mutex lock in cros_ec_cmd_xfer which may be held by frozen Userspace thread during system suspending. So should not call this routine in suspend thread. Signed-off-by: Jeffery Yu Signed-off-by: Guenter Roeck Signed-off-by: Enric Balletbo i Serra --- drivers/platform/chrome

[PATCH RESEND 10/13] platform/chrome: cros_ec_lightbar - Add lightbar program feature to sysfs

2017-05-16 Thread Enric Balletbo i Serra
From: Eric Caruso Add a program feature so we can upload and run programs for lightbar sequences. We should be able to use this to shift sequences out of the EC and save space there. $ cat > /sys/devices/.../cros_ec/program $ echo program > /sys/devices/.../cros_ec/sequence Signed-off-by:

[PATCH RESEND 07/13] platform/chrome: cros_ec_lpc: Add support for GOOG004 ACPI device

2017-05-16 Thread Enric Balletbo i Serra
From: Gwendal Grignou This patch removes platform_device_register() call and adds an ACPI device id structure. The driver is now automatically probed for devices with a GOOG0004 ACPI entry. Signed-off-by: Gwendal Grignou Signed-off-by: Thierry Escande --- drivers/platform/chrome/Kconfig

[PATCH RESEND 04/13] mfd: cros_ec: Add support for dumping panic information

2017-05-16 Thread Enric Balletbo i Serra
From: Nicolas Boichat This dumps the EC panic information from the previous reboot. Similar to the information presented by ectool panicinfo, except that we do not bother doing any parsing (we should write a small offline tool for that). Signed-off-by: Nicolas Boichat Reviewed-by: Guenter Roec

[PATCH RESEND 02/13] mfd: cros_ec: Add EC console read structures definitions

2017-05-16 Thread Enric Balletbo i Serra
From: Nicolas Boichat ec_params_console_read_v1 is used to capture EC logs from kernel, and ec_params_get_cmd_versions_v1 is used to probe whether EC supports that command. Signed-off-by: Nicolas Boichat Reviewed-by: Guenter Roeck Acked-by: Lee Jones Tested-by: Enric Balletbo i Serra --- in

[PATCH RESEND 05/13] platform/chrome: cros_ec_lpc: Add R/W helpers to LPC protocol variants

2017-05-16 Thread Enric Balletbo i Serra
From: Shawn Nematbakhsh Call common functions for read / write to prepare support for future LPC protocol variants which use different I/O ops than inb / outb. Signed-off-by: Shawn Nematbakhsh Signed-off-by: Thierry Escande --- drivers/platform/chrome/Makefile | 3 +- drivers/platfo

[PATCH RESEND 03/13] mfd: cros_ec: add debugfs, console log file

2017-05-16 Thread Enric Balletbo i Serra
From: Eric Caruso If the EC supports the new CONSOLE_READ command type, then we place a console_log file in debugfs for that EC device which allows us to grab EC logs. The kernel will poll every 10 seconds for the log and keep its own buffer, but userspace should grab this and write it out to som

[PATCH RESEND 01/13] mfd: cros_ec: Add helper for event notifier.

2017-05-16 Thread Enric Balletbo i Serra
From: Gwendal Grignou Add cros_ec_get_event() entry point to retrieve event within functions called by the notifier. Signed-off-by: Gwendal Grignou Signed-off-by: Enric Balletbo i Serra Acked-by: Lee Jones --- drivers/platform/chrome/cros_ec_proto.c | 20 include/linux/m

Re: [PATCH v2] perf report: fix off-by-one for non-activation frames

2017-05-16 Thread Milian Wolff
On Dienstag, 16. Mai 2017 16:38:29 CEST Namhyung Kim wrote: > On Tue, May 16, 2017 at 10:59:51AM +0200, Milian Wolff wrote: > > As the documentation for dwfl_frame_pc says, frames that > > are no activation frames need to have their program counter > > decremented by one to properly find the functi

Re: [PATCH] net: ethernet: broadcom: bnxt: remove dead code

2017-05-16 Thread Gustavo A. R. Silva
Hi Michael, Quoting Michael Chan : On Mon, May 15, 2017 at 3:28 PM, Gustavo A. R. Silva wrote: Local variable _sh_ is assigned to a constant value and it is never updated again. Remove this variable and the dead code it guards. Addresses-Coverity-ID: 1350916 Signed-off-by: Gustavo A. R. Silv

Re: [PATCH v2] drm: Add DRM_ROTATE_ and DRM_REFLECT_ defines to UAPI

2017-05-16 Thread Ville Syrjälä
On Tue, May 16, 2017 at 11:55:00AM -0400, Robert Foss wrote: > Add DRM_ROTATE_ and DRM_REFLECT_ defines to the UAPI as a convenience. > > Ideally the DRM_ROTATE_ and DRM_REFLECT_ property ids are looked up > through the atomic API, but realizing that userspace is likely to take > shortcuts and ass

Re: [PATCH 1/1] ARM: dts: dra7x-evm: Enable dual-role mode for USB1

2017-05-16 Thread Tony Lindgren
* Roger Quadros [170411 06:19]: > USB1 port is micro-AB type and can function as peripheral > as well as host. Enable dual-role mode for USB1. > > We don't want to use the OTG controller block on this > platform as it limits host mode to high-speed. Instead > we rely on extcon framework to give u

[PATCH -next] ASoC: rt5665: make local symbol rt5665_i2c_driver static

2017-05-16 Thread Wei Yongjun
From: Wei Yongjun Fixes the following sparse warnings: sound/soc/codecs/rt5665.c:4928:19: warning: symbol 'rt5665_i2c_driver' was not declared. Should it be static? Signed-off-by: Wei Yongjun --- sound/soc/codecs/rt5665.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sou

Re: [PATCH v2] perf report: fix off-by-one for non-activation frames

2017-05-16 Thread Milian Wolff
On Dienstag, 16. Mai 2017 18:17:26 CEST Milian Wolff wrote: > On Dienstag, 16. Mai 2017 16:38:29 CEST Namhyung Kim wrote: > > On Tue, May 16, 2017 at 10:59:51AM +0200, Milian Wolff wrote: > > > As the documentation for dwfl_frame_pc says, frames that > > > are no activation frames need to have thei

Re: WARNING at arch/x86/kernel/alternative.c:707 text_poke+0x25d/0x270

2017-05-16 Thread Masami Hiramatsu
On Tue, 16 May 2017 11:30:19 -0400 Steven Rostedt wrote: > On Wed, 17 May 2017 00:15:39 +0900 > Masami Hiramatsu wrote: > > > > > It appears that the kprobe_optimizer work thread call happened after > > > the init pages were freed, causing alternative.c to give the above > > > warning because

Re: [PATCH 1/1] ARM: dts: dra7: Reduce cpu thermal shutdown temperature

2017-05-16 Thread Tony Lindgren
* Ravikumar [170503 06:57]: > Hi, > > On Wednesday 12 April 2017 11:54 AM, Kattekola, Ravikumar wrote: > > On dra7, as per TRM, the HW shutdown (TSHUT) temperature is hardcoded > > to 123C and cannot be modified by SW. This means when the temperature > > reaches 123C HW asserts TSHUT output which

Re: linux-next: Tree for May 16 (net/core)

2017-05-16 Thread Randy Dunlap
On 05/15/17 18:21, Stephen Rothwell wrote: > Hi all, > > Changes since 20170515: > on i386 or x86_64: when CONFIG_INET is not enabled: ../net/core/sock.c: In function 'skb_orphan_partial': ../net/core/sock.c:1810:2: error: implicit declaration of function 'skb_is_tcp_pure_ack' [-Werror=implic

Re: [usb-gadget-udc] question about null check after calling phys_to_virt() function

2017-05-16 Thread Gustavo A. R. Silva
Hi Felipe, Quoting Felipe Balbi : Hi, "Gustavo A. R. Silva" writes: Hello everybody, While looking into Coverity ID 145958 I ran into the following piece of code at drivers/usb/gadget/udc/amd5536udc.c:852: } else if (i == buf_len) { /* first td */ td = (struct udc_data_dm

Re: [PATCH 06/21] VFS: Introduce a superblock configuration context [ver #3]

2017-05-16 Thread David Howells
Miklos Szeredi wrote: > One way to split this large patch up into more managable chunks would be: > > 1) common infrastructure > 2) new mount related changes > 3) reconfig (remount) related changes > > Would that work? The problem is that remount seems to generally use the same parsing code

Re: [PATCH] ARM: dts: omap4-droid4: add bluetooth

2017-05-16 Thread Tony Lindgren
* Sebastian Reichel [170415 15:21]: > Droid 4 has wl1835 connected to the OMAP's UART4 port, which is > used for Bluetooth and most likely can also be used for controlling > the FM radio and GPS receivers. ... > --- a/arch/arm/boot/dts/omap4-droid4-xt894.dts > +++ b/arch/arm/boot/dts/omap4-droid4

Re: [PATCH 1/2] net-next: stmmac: add adjust_link function

2017-05-16 Thread David Miller
From: Corentin Labbe Date: Mon, 15 May 2017 13:41:39 +0200 > My dwmac-sun8i serie will add some if (has_sun8i) to > stmmac_adjust_link() > Since the current stmmac_adjust_link() alreaady have lots of if > (has_gmac/gmac4), > It is now better to create an adjust_link() function for each dwmac. >

Re: [PATCH] iio: tsl2583: add runtime power management support

2017-05-16 Thread Jonathan Cameron
On 14/05/17 21:08, Brian Masney wrote: On Wed, Apr 26, 2017 at 06:16:34AM +0100, Jonathan Cameron wrote: On 25/04/17 09:06, Brian Masney wrote: This patch adds runtime power management support to the tsl2583 driver. The device is powered off after two seconds of inactivity. Verified that the dr

Re: [PATCHv2 4/4] ARM: dts: omap4-droid4: Add bluetooth

2017-05-16 Thread Tony Lindgren
* Sebastian Reichel [170503 07:25]: > Droid 4 has WL 1285C connected to the OMAP's UART4 port, which is > used for Bluetooth and most likely can also be used for controlling > the FM radio and GPS receivers. I'm picking this patch and applying into omap-for-v4.13/dt thanks. Tony

Re: [PATCH 1/2] net-next: stmmac: add adjust_link function

2017-05-16 Thread Florian Fainelli
On 05/15/2017 04:41 AM, Corentin Labbe wrote: > My dwmac-sun8i serie will add some if (has_sun8i) to > stmmac_adjust_link() > Since the current stmmac_adjust_link() alreaady have lots of if > (has_gmac/gmac4), > It is now better to create an adjust_link() function for each dwmac. Is it really, be

Re: [PATCH V16 08/11] efi: print unrecognized CPER section

2017-05-16 Thread Baicar, Tyler
On 5/16/2017 8:29 AM, Borislav Petkov wrote: On Mon, May 15, 2017 at 03:27:57PM -0600, Tyler Baicar wrote: UEFI spec allows for non-standard section in Common Platform Error Record. This is defined in section N.2.3 of UEFI version 2.5. Currently if the CPER section's type (UUID) does not match

Re: [PATCH v4] DTS: ARM: OMAP5: uevm: add µSD card detect

2017-05-16 Thread Tony Lindgren
* H. Nikolaus Schaller [170515 01:35]: > If we have Linux installed in eMMC we can boot without > µSD card, but inserting one is not recognised. > > The reason is that the card detect gpio (gpio5_152) > is not configured and attached to the mmc1 interface > driver and the mmc driver does not poll

Re: [PATCH 2/4] dt-bindings: Document the Raspberry Pi Touchscreen nodes.

2017-05-16 Thread Eric Anholt
Rob Herring writes: > On Mon, May 15, 2017 at 7:03 PM, Eric Anholt wrote: >> Laurent Pinchart writes: >> >>> Hi Eric, >>> >>> Thank you for the patch. >>> >>> On Thursday 11 May 2017 16:56:23 Eric Anholt wrote: The Raspberry Pi 7" Touchscreen is a DPI touchscreen panel with DSI->DPI b

Re: [PATCH 5/5] mmc: cavium: Fix probing race with regulator

2017-05-16 Thread David Daney
On 05/16/2017 07:37 AM, Rob Herring wrote: On Tue, May 16, 2017 at 8:38 AM, Jan Glauber wrote: On Tue, May 16, 2017 at 08:07:50AM -0500, Rob Herring wrote: On Tue, May 16, 2017 at 4:36 AM, Jan Glauber wrote: If the regulator probing is not yet finished this driver might catch a -EPROBE_DEFER

Re: [PATCH RFC] hugetlbfs 'noautofill' mount option

2017-05-16 Thread Prakash Sangappa
On 5/9/17 1:59 PM, Prakash Sangappa wrote: On 5/9/17 1:58 AM, Christoph Hellwig wrote: On Mon, May 08, 2017 at 03:12:42PM -0700, prakash.sangappa wrote: Regarding #3 as a general feature, do we want to consider this and the complexity associated with the implementation? We have to. Given

Re: Change PAGE_SIZE from minimum 4k to 12k

2017-05-16 Thread Lennart Sorensen
On Tue, May 16, 2017 at 11:27:08AM -0400, Kevin McKinney wrote: > Hi Everyone, > > Would it be possible to have a custom block device driver read/write > in increments of 12k instead of reading/writing data in 4k increments? > In other words, I would like to change the default page size on a > x86

Re: [PATCH 2/4] dt-bindings: Document the Raspberry Pi Touchscreen nodes.

2017-05-16 Thread Laurent Pinchart
Hi Eric, On Tuesday 16 May 2017 09:47:49 Eric Anholt wrote: > Rob Herring writes: > > On Mon, May 15, 2017 at 7:03 PM, Eric Anholt wrote: > >> Laurent Pinchart writes: > >>> Hi Eric, > >>> > >>> Thank you for the patch. > >>> > >>> On Thursday 11 May 2017 16:56:23 Eric Anholt wrote: > Th

Re: [PATCH V16 08/11] efi: print unrecognized CPER section

2017-05-16 Thread Borislav Petkov
On Tue, May 16, 2017 at 10:44:43AM -0600, Baicar, Tyler wrote: > I meant to respond to this comment after I sent the v16 patch series, but > you beat me to it :) > > These prefixes are common to all the GHES/CPER printing to the kernel logs. I don't mean that - I meant to remove them from this pa

Re: [PATCH] KVM: x86: lower default for halt_poll_ns

2017-05-16 Thread Paolo Bonzini
On 18/04/2017 12:41, Paolo Bonzini wrote: > In some fio benchmarks, halt_poll_ns=40 caused CPU utilization to > increase heavily even in cases where the performance improvement was > small. In particular, bandwidth divided by CPU usage was as much as > 60% lower. > > To some extent this is

Re: [PATCH V16 08/11] efi: print unrecognized CPER section

2017-05-16 Thread Baicar, Tyler
On 5/16/2017 10:55 AM, Borislav Petkov wrote: On Tue, May 16, 2017 at 10:44:43AM -0600, Baicar, Tyler wrote: I meant to respond to this comment after I sent the v16 patch series, but you beat me to it :) These prefixes are common to all the GHES/CPER printing to the kernel logs. I don't mean t

Re: [PATCH net v2] net: x25: fix one potential use-after-free issue

2017-05-16 Thread David Miller
From: linzhang Date: Tue, 16 May 2017 11:52:54 +0800 > return rc; > -out_dev: > +out_proc: > + x25_unregister_sysctl(); > +out_sysctl: > unregister_netdevice_notifier(&x25_dev_notifier); > -out_sock: > +out_dev: > + dev_remove_pack(&x25_packet_type); > sock_unregister(AF

Re: [kernel-locking] question about structure field initialization

2017-05-16 Thread Gustavo A. R. Silva
Hi Chris, Quoting Chris Wilson : On Thu, May 11, 2017 at 03:00:02PM -0500, Gustavo A. R. Silva wrote: Hello everybody, While looking into Coverity ID 1402035 I ran into the following piece of code at kernel/locking/test-ww_mutex.c:197: 197static int test_abba(bool resolve) 198{ 199s

[PATCH] ASoC: fsi: Move inline fsi_stream_is_play() before use

2017-05-16 Thread Geert Uytterhoeven
With gcc 4.1.2: sound/soc/sh/fsi.c:304: warning: ‘fsi_stream_is_play’ declared inline after being called sound/soc/sh/fsi.c:304: warning: previous declaration of ‘fsi_stream_is_play’ was here Move fsi_stream_is_play() up to fix this, removing the need for a forward declaration as well.

[PATCH] PCI: endpoint: PCI_ENDPOINT should depend on HAS_DMA

2017-05-16 Thread Geert Uytterhoeven
If NO_DMA=y: drivers/built-in.o: In function `__pci_epc_create': (.text+0xef4e): undefined reference to `bad_dma_ops' drivers/built-in.o: In function `pci_epc_add_epf': (.text+0xf676): undefined reference to `bad_dma_ops' drivers/built-in.o: In function `pci_epf_alloc_space':

Re: frv build failure in mainline kernel

2017-05-16 Thread Guenter Roeck
On Tue, May 16, 2017 at 05:04:32PM +0100, David Howells wrote: > Guenter Roeck wrote: > > > Turns out not here because cacheline_aligned_in_smp includes > > __page_aligned_data which also declares the section, at least on x86. > > If there's any sort of section specification, that should suf

Re: [PATCH v13 00/12] power: add power sequence library

2017-05-16 Thread Krzysztof Kozlowski
On Wed, Feb 15, 2017 at 09:38:09AM +0800, Peter Chen wrote: > On Tue, Feb 14, 2017 at 12:21:48PM +0200, Roger Quadros wrote: > > Peter, > > > > On 11/02/17 03:27, Peter Chen wrote: > > > Hi all, > > > > > > This is a follow-up for my last power sequence framework patch set [1]. > > > According to

[PATCH 0/2] sh-clk: Adjustments for two function implementations

2017-05-16 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 16 May 2017 19:24:56 +0200 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Improve a size determination in sh_clk_fsidiv_register() Delete an error message for a failed memory allocation in two functions d

[PATCH 1/2] sh-clk: Improve a size determination in sh_clk_fsidiv_register()

2017-05-16 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 16 May 2017 18:42:22 +0200 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. Signed-off-by: Mar

RE: [PATCH] scsi: zero per-cmd driver data for each MQ I/O

2017-05-16 Thread Long Li
> -Original Message- > From: Bart Van Assche [mailto:bart.vanass...@sandisk.com] > Sent: Monday, May 15, 2017 5:01 PM > To: j...@linux.vnet.ibm.com; linux-s...@vger.kernel.org; linux- > ker...@vger.kernel.org; Long Li ; > martin.peter...@oracle.com > Cc: Stephen Hemminger ; KY Srinivasan

[PATCH 2/2] sh-clk: Delete an error message for a failed memory allocation in two functions

2017-05-16 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 16 May 2017 19:05:36 +0200 Omit an extra message for a memory allocation failure in these functions. This issue was detected by using the Coccinelle software. Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Si

Re: [PATCH v2 04/53] mutex, futex: adjust kernel-doc markups to generate ReST

2017-05-16 Thread Darren Hart
On Tue, May 16, 2017 at 09:15:56AM -0300, Mauro Carvalho Chehab wrote: > There are a few issues on some kernel-doc markups that was > causing troubles with kernel-doc output on ReST format: > > ./kernel/futex.c:492: WARNING: Inline emphasis start-string without > end-string. > ./kernel/futex.c:12

Re: [PATCH v5 26/32] x86, drm, fbdev: Do not specify encrypted memory for video mappings

2017-05-16 Thread Borislav Petkov
On Tue, Apr 18, 2017 at 04:20:56PM -0500, Tom Lendacky wrote: > Since video memory needs to be accessed decrypted, be sure that the > memory encryption mask is not set for the video ranges. > > Signed-off-by: Tom Lendacky > --- > arch/x86/include/asm/vga.h | 13 + > arch/x86/

[RFC V1 0/1] Reduce cdc_ncm memory use when kernel memory low

2017-05-16 Thread Jim Baxter
Please review this patch Problem --- We are using an ARM embedded platform and require 16KiB NTB's to allow for fast data transfer. Unfortunately we have found that there are times after running the kernel for a while and transferring a lot of data over the CDC-NCM connection that it can bec

[RFC V1 1/1] net: cdc_ncm: Reduce memory use when kernel memory low

2017-05-16 Thread Jim Baxter
The CDC-NCM driver can require large amounts of memory to create skb's and this can be a problem when the memory becomes fragmented. This especially affects embedded systems that have constrained resources but wish to maximise the throughput of CDC-NCM with 16KiB NTB's. The issue is after running

Re: [RFC] perf: Add "-f" and "-F" flags to watch a "/sys" style file

2017-05-16 Thread Luck, Tony
On Mon, May 15, 2017 at 09:45:58PM -0300, Arnaldo Carvalho de Melo wrote: > I haven't been following the discussion about the resctrl fs discussion > to understand why those values couldn't be read via > sys_perf_event_open(), so can't comment on that, but the implementation > on the tools/ classes

Re: [PATCH 2/4] ftrace/instances: Clear function triggers when removing instances

2017-05-16 Thread Naveen N. Rao
On 2017/05/16 07:31PM, Naveen N. Rao wrote: > On 2017/05/15 10:20PM, Steven Rostedt wrote: > > On Sun, 14 May 2017 01:01:02 +0530 > > "Naveen N. Rao" wrote: > > > > [snip] > > > > diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c > > > index c4536c449021..3f2aed4ad1ed 100644 > > > --- a/

[PATCH] perf test: Disable breakpoint signal tests for powerpc

2017-05-16 Thread Jiri Olsa
Following tests are constantly failing on powerpc: # perf test break 18: Breakpoint overflow signal handler : FAILED! 19: Breakpoint overflow sampling : FAILED! The powerpc so far does not have support to even create instruction breakpoint using the perf event interfac

[PATCH v2 1/4] ftrace: Simplify glob handling in unregister_ftrace_function_probe_func()

2017-05-16 Thread Naveen N. Rao
Handle a NULL glob properly and simplify the check. Signed-off-by: Naveen N. Rao --- kernel/trace/ftrace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 39dca4e86a94..c35c3e67d09a 100644 --- a/kernel/trace/ftrace.c +++

[PATCH v2 0/4] ftrace: Fix a few issues

2017-05-16 Thread Naveen N. Rao
This is v2 of the patches posted at: https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1395670.html Changes: - Patch 1 has been updated to actually simplify the check for glob - Patch 2 has been updated to guard the call to clear_ftrace_function_probes() in trace.c with the proper #if

[PATCH v2 4/4] selftests/ftrace: Add test to remove instance with active event triggers

2017-05-16 Thread Naveen N. Rao
Add a test to ensure we clean up properly when removing an instance with active event triggers. Signed-off-by: Naveen N. Rao --- tools/testing/selftests/ftrace/test.d/instances/instance-event.tc | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/f

[PATCH v2 2/4] ftrace/instances: Clear function triggers when removing instances

2017-05-16 Thread Naveen N. Rao
If instance directories are deleted while there are registered function triggers: # cd /sys/kernel/debug/tracing/instances # mkdir test # echo "schedule:enable_event:sched:sched_switch" > test/set_ftrace_filter # rmdir test Unable to handle kernel paging request for data at address 0x000

[PATCH v2 3/4] selftests/ftrace: Fix bashisms

2017-05-16 Thread Naveen N. Rao
Fix a few bashisms in ftrace selftests. Acked-by: Masami Hiramatsu Signed-off-by: Naveen N. Rao --- tools/testing/selftests/ftrace/ftracetest | 2 +- tools/testing/selftests/ftrace/test.d/ftrace/func_event_triggers.tc | 2 +- tools/testing/selftests/ftrace/test.d/funct

Re: [PATCH 1/4] Documentation: dt: Add bindings documentation for DW MIPI CSI-2 Host

2017-05-16 Thread Ramiro Oliveira
Hi Rob, Thank you for your feedback and sorry for the late reply. On 3/15/2017 6:26 PM, Rob Herring wrote: > On Tue, Mar 07, 2017 at 02:37:48PM +, Ramiro Oliveira wrote: >> Create device tree bindings documentation for the Synopsys DW MIPI CSI-2 >> Host. >> >> Signed-off-by: Ramiro Oliveira

Re: A bug in scsi_alloc_target of drivers/scsi/scsi_scan.c

2017-05-16 Thread Benjamin Block
Hello Dashi, On Tue, May 09, 2017 at 09:08:14AM +, Dashi DS1 Cao wrote: > When debugging a race condition in scsi_remove_target of 3.12, I ran into > this possible bug within scsi_alloc_target. > When an existing "struct scsi_target" is found and used, the starget just got > through kzmalloc

Re: frv build failure in mainline kernel

2017-05-16 Thread Matthias Kaehlcke
El Tue, May 16, 2017 at 10:21:30AM -0700 Guenter Roeck ha dit: > On Tue, May 16, 2017 at 05:04:32PM +0100, David Howells wrote: > > Guenter Roeck wrote: > > > > > Turns out not here because cacheline_aligned_in_smp includes > > > __page_aligned_data which also declares the section, at least

[RESEND PATCH v3] UBI: add debugfs file for tracking PEB state

2017-05-16 Thread Zach Brown
From: Ben Shelton Add a file under debugfs to allow easy access to the erase count for each physical erase block on an UBI device. This is useful when debugging data integrity issues with UBIFS on NAND flash devices. Signed-off-by: Ben Shelton Signed-off-by: Zach Brown --- v2: * If ubi_io_is_

Re: [RFC/RFT PATCH v2 3/3] PCI/ACPI: Add ACPI pci_bus_find_numa_node() implementation

2017-05-16 Thread Lorenzo Pieralisi
On Tue, May 16, 2017 at 05:15:29PM +0200, Robert Richter wrote: > On 15.05.17 14:22:05, Lorenzo Pieralisi wrote: > > The introduction of pci_bus_find_numa_node(pci_bus) allows at PCI > > host bridge registration to detect the NUMA node for a given > > struct pci_bus.dev. Implement an ACPI method th

[RESEND: PATCH v4 1/4] firmware: scm: Add new SCM call for switching memory ownership

2017-05-16 Thread Avaneesh Kumar Dwivedi
Two different processors on a SOC need to switch memory ownership during load/unload. To enable this, level second memory map table need to be updated, which is done by secure layer. This patch add the interface for making secure monitor call for memory ownership switching request. Signed-off-by:

[RESEND: PATCH v4 4/4] remoteproc: qcom: Add support for mss boot on msm8996

2017-05-16 Thread Avaneesh Kumar Dwivedi
This patch add support for mss boot on msm8996. Major changes include initializing mss rproc for msm8996, making appropriate change for executing mss reset sequence etc. Signed-off-by: Avaneesh Kumar Dwivedi --- .../devicetree/bindings/remoteproc/qcom,q6v5.txt | 4 +- drivers/remoteproc/qcom

[RESEND: PATCH v4 0/4] Add memory ownership switch support and enable mss rproc on msm8996

2017-05-16 Thread Avaneesh Kumar Dwivedi
This patch does following 1- Adds new scm call which helps in stage two translation of a memory region so that memory ownership sharing and switching can be achieved on armv8 and later. 2- Enable mss remoteproc on msm8996 Major changes since last patch: 1- Refa

[RESEND: PATCH v4 3/4] remoteproc: qcom: Make secure world call for mem ownership switch

2017-05-16 Thread Avaneesh Kumar Dwivedi
MSS proc on msm8996 can not access fw loaded region without stage second translation of memory pages where mpss image are loaded. This patch in order to enable mss boot on msm8996 invoke scm call to switch or share ownership between apps and modem. Signed-off-by: Avaneesh Kumar Dwivedi --- drive

Re: [PATCH 3/4] Documentation: dt: Add bindings documentation for CSI-2 Host Video Platform

2017-05-16 Thread Ramiro Oliveira
Hi Sakari, Thank you for your feedback and sorry for the late response. On 3/8/2017 1:18 PM, Sakari Ailus wrote: > Hi Ramiro, > > On Tue, Mar 07, 2017 at 02:37:50PM +, Ramiro Oliveira wrote: >> Create device tree bindings documentation for the CSI-2 Host Video >> platform. > > Extra space

Re: [RFC 04/10] kmod: provide wrappers for kmod_concurrent inc/dec

2017-05-16 Thread Luis R. Rodriguez
On Wed, Jan 11, 2017 at 09:08:57PM +0100, Luis R. Rodriguez wrote: > On Tue, Jan 10, 2017 at 07:57:10PM +0100, Luis R. Rodriguez wrote: > > On Fri, Dec 16, 2016 at 09:05:00AM +0100, Luis R. Rodriguez wrote: > > > On Thu, Dec 15, 2016 at 01:46:25PM +0100, Petr Mladek wrote: > > > > On Thu 2016-12-08

[RESEND: PATCH v4 2/4] remoteproc: qcom: refactor mss fw image loading sequence

2017-05-16 Thread Avaneesh Kumar Dwivedi
This patch refactor code to first load all firmware blobs and then update modem proc to authenticate and boot fw. Also make a trivial change in a error log. Signed-off-by: Avaneesh Kumar Dwivedi --- drivers/remoteproc/qcom_q6v5_pil.c | 25 - 1 file changed, 12 insertions(

Re: [PATCH v2 2/3] iio: adc: at91-sama5d2_adc: add hw trigger and buffer support

2017-05-16 Thread Jonathan Cameron
As we are only left with one area of questions. +static const struct at91_adc_trigger at91_adc_trigger_list[] = { +{ +.name = "external-rising", +.trgmod_value = AT91_SAMA5D2_TRGR_TRGMOD_EXT_TRIG_RISE, +}, +{ +.name = "external-falling", +.trgmod_valu

Re: [PATCH 3/4] Documentation: dt: Add bindings documentation for CSI-2 Host Video Platform

2017-05-16 Thread Ramiro Oliveira
Hi Rob, Once again sorry for the late response and thank you for your feedback. On 3/15/2017 6:35 PM, Rob Herring wrote: > On Tue, Mar 07, 2017 at 02:37:50PM +, Ramiro Oliveira wrote: >> Create device tree bindings documentation for the CSI-2 Host Video >> platform. >> >> Signed-off-by: Rami

[PATCH v2 50/53] fs: fix the location of the kernel-api book

2017-05-16 Thread Mauro Carvalho Chehab
The kernel-api book is now part of the core-api. Update its location. Signed-off-by: Mauro Carvalho Chehab --- fs/debugfs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c index e892ae7d89f8..77440e4aa9d4 100644 --- a/fs/debugfs/i

[PATCH v2 51/53] usb: fix the comment with regards to DocBook

2017-05-16 Thread Mauro Carvalho Chehab
The USB gadget documentation is not at DocBook anymore. The main file was converted to ReST, and stored at Documentation/driver-api/usb/gadget.rst, but there are still several plain text files related to gadget under Documentation/usb. So, be generic and just mention documentation without specifyi

[PATCH v2 53/53] kernel-doc: describe the ``literal`` syntax

2017-05-16 Thread Mauro Carvalho Chehab
changeset b97f193abf83 ("scripts/kernel-doc: fix parser for apostrophes") added support for ``literal`` inside kernel-doc, in order to allow using the "%" symbol inside a literal block, as this is used at printk() description. Document it. Fixes: b97f193abf83 ("scripts/kernel-doc: fix parser for

[PATCH v2 52/53] docs-rst: get rid of Documentation/sphinx/tmplcvt script

2017-05-16 Thread Mauro Carvalho Chehab
As everything was converted to ReST, we don't need this script anymore. Signed-off-by: Mauro Carvalho Chehab --- Documentation/sphinx/tmplcvt | 28 1 file changed, 28 deletions(-) delete mode 100755 Documentation/sphinx/tmplcvt diff --git a/Documentation/sphinx/tmp

[PATCH net-next] net: dsa: store CPU port pointer in the tree

2017-05-16 Thread Vivien Didelot
A dsa_switch_tree instance holds a dsa_switch pointer and a port index to identify the switch port to which the CPU is attached. Now that the DSA layer has a dsa_port structure to hold this data, use it to point the switch CPU port. This patch simply substitutes s/dst->cpu_switch/dst->cpu_dp->ds/

Re: [patch 07/18] ACPI: Adjust system_state check

2017-05-16 Thread Thomas Gleixner
On Mon, 15 May 2017, Steven Rostedt wrote: > > [ added linux-acpi and took off arm list ;-) ] > > On Sun, 14 May 2017 20:27:23 +0200 > Thomas Gleixner wrote: > > > To enable smp_processor_id() and might_sleep() debug checks earlier, it's > > required to add system states between SYSTEM_BOOTING

Re: [PATCH 2/4] media: platform: dwc: Support for DW CSI-2 Host

2017-05-16 Thread Ramiro Oliveira
Hi Hans, Thank you very much for your feedback. On 5/8/2017 11:38 AM, Hans Verkuil wrote: > Hi Ramiro, > > My sincere apologies for the long delay in reviewing this. The good news is > that > I should have more time for reviews going forward, so I hope I'll be a lot > quicker > in the future.

Re: frv build failure in mainline kernel

2017-05-16 Thread Guenter Roeck
On Tue, May 16, 2017 at 10:58:20AM -0700, Matthias Kaehlcke wrote: > El Tue, May 16, 2017 at 10:21:30AM -0700 Guenter Roeck ha dit: > > > On Tue, May 16, 2017 at 05:04:32PM +0100, David Howells wrote: > > > Guenter Roeck wrote: > > > > > > > Turns out not here because cacheline_aligned_in_sm

Re: [RESEND PATCH v3] UBI: add debugfs file for tracking PEB state

2017-05-16 Thread Richard Weinberger
Zach, Am 16.05.2017 um 19:58 schrieb Zach Brown: > From: Ben Shelton > > Add a file under debugfs to allow easy access to the erase count for > each physical erase block on an UBI device. This is useful when > debugging data integrity issues with UBIFS on NAND flash devices. > > Signed-off-by:

Re: [RFC V1 1/1] net: cdc_ncm: Reduce memory use when kernel memory low

2017-05-16 Thread Bjørn Mork
Jim Baxter writes: > The CDC-NCM driver can require large amounts of memory to create > skb's and this can be a problem when the memory becomes fragmented. > > This especially affects embedded systems that have constrained > resources but wish to maximise the throughput of CDC-NCM with 16KiB > NT

Re: [PATCH v2 04/53] mutex, futex: adjust kernel-doc markups to generate ReST

2017-05-16 Thread Mauro Carvalho Chehab
Em Tue, 16 May 2017 10:35:40 -0700 Darren Hart escreveu: > On Tue, May 16, 2017 at 09:15:56AM -0300, Mauro Carvalho Chehab wrote: > > There are a few issues on some kernel-doc markups that was > > causing troubles with kernel-doc output on ReST format: > > > > ./kernel/futex.c:492: WARNING: Inli

Re: [PATCH] staging: iio: meter: Replace symbolic permissions with octal permissions

2017-05-16 Thread Jonathan Cameron
On 15/05/17 05:38, harinath Nampally wrote: Jonathan, Thank you for letting me know about correct iio git tree. I checked out 'togreg' branch, and noticed that latest ade7758_core.c still has checkpatch.pl warnings. Actually Quentin Swain fixed the similar warnings in the ade7854.c, and my pat

<    1   2   3   4   5   6   7   8   9   >