Re: [PATCH 05/10] dmaengine: sun6i: Move number of pchans/vchans/request to device struct

2017-09-08 Thread Maxime Ripard
On Mon, Sep 04, 2017 at 02:30:59PM +, Brüns, Stefan wrote: > On Montag, 4. September 2017 09:43:55 CEST Maxime Ripard wrote: > > On Mon, Sep 04, 2017 at 12:40:56AM +0200, Stefan Brüns wrote: > > > Preparatory patch: If the same compatible is used for different SoCs which > > > have a common

[PATCH] IB/rxe: check for allocation failure on elem

2017-09-08 Thread Colin King
From: Colin Ian King The allocation for elem may fail (especially because we're using GFP_ATOMIC) so best to check for a null return. This fixes a potential null pointer dereference when assigning elem->pool. Detected by CoverityScan CID#1357507 ("Dereference null return value") Fixes:

Re: [PATCH 1/3] kthread: add a mechanism to store cgroup info

2017-09-08 Thread Tejun Heo
On Fri, Sep 08, 2017 at 07:35:37AM -0700, Tejun Heo wrote: > * It's a bit weird to associate a kthread with a css without being > specific. If what's needed is a generic association (this kthread > is temporarily servicing this cgroup), it should be associated with > the cgroup. But, I

Re: [PATCH] Staging: media: omap4iss: Use WARN_ON() instead of BUG_ON().

2017-09-08 Thread Dan Carpenter
On Fri, Sep 08, 2017 at 07:38:18PM +0530, Srishti Sharma wrote: > Use WARN_ON() instead of BUG_ON() to avoid crashing the kernel. > > Signed-off-by: Srishti Sharma > --- > drivers/staging/media/omap4iss/iss.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [PATCH 3/3] dmaengine: sun6i: Add support for Allwinner A64

2017-09-08 Thread Maxime Ripard
Hi, On Mon, Sep 04, 2017 at 09:14:52AM +0100, André Przywara wrote: > > And obviously, while maintaining the stability of the binding of those > > hundreds properties. > > > > Or, you can base all this on the compatible, and be done with it once > > and for all. > > What I am after is to cover

Re: [PATCH v2] tracing: Ignore mmiotrace from kernel commandline

2017-09-08 Thread Steven Rostedt
On Wed, 30 Aug 2017 12:19:30 +0800 "Ziqian SUN (Zamir)" wrote: > From: "Ziqian SUN (Zamir)" > > The mmiotrace tracer cannot be enabled with ftrace=mmiotrace in > kernel commandline. With this patch, a trace_noboot_tracer_list > is implemented and will be checked during system boot. If the >

Re: [PATCH 1/3] kthread: add a mechanism to store cgroup info

2017-09-08 Thread Tejun Heo
On Fri, Sep 08, 2017 at 07:38:46AM -0700, Tejun Heo wrote: > On Fri, Sep 08, 2017 at 07:35:37AM -0700, Tejun Heo wrote: > > * It's a bit weird to associate a kthread with a css without being > > specific. If what's needed is a generic association (this kthread > > is temporarily servicing

Re: [PATCH 2/3] block: make blkcg aware of kthread stored original cgroup info

2017-09-08 Thread Tejun Heo
Hello, On Wed, Sep 06, 2017 at 07:00:52PM -0700, Shaohua Li wrote: > From: Shaohua Li > > Several blkcg APIs are deprecated. After removing them, bio_blkcg is the > only API to get cgroup info for a bio. If bio_blkcg finds current task > is a kthread and has original css recorded, it will use

Re: [PATCH net-next v2 02/10] net: dsa: debugfs: add tree

2017-09-08 Thread Greg Kroah-Hartman
On Fri, Sep 08, 2017 at 10:18:27AM -0400, Vivien Didelot wrote: > Hi Greg, > > Can I ask for a quick review of this patch as well? It's the one adding > the boilerplate for a single debugfs file, and I'm pretty sure it can be > reduced somehow. I don't see a patch here :( > Also more important,

Re: mutex_lock issues during poweroff

2017-09-08 Thread Maxime Ripard
Hi Peter, Thanks for your answer. On Thu, Sep 07, 2017 at 02:40:33PM +0200, Peter Zijlstra wrote: > On Thu, Sep 07, 2017 at 02:16:19PM +0200, Maxime Ripard wrote: > > One thing worth noting is that we couldn't reproduce the issue with a > > 4.13. We can't bisect really easily due to the amount

Re: [Outreachy kernel] [PATCH] staging: typec: tcpm: Comparison to NULL changed as "!port->partner_altmode[pmdata->altmodes]"

2017-09-08 Thread Julia Lawall
On Fri, 8 Sep 2017, Harsha Sharma wrote: > Fixes coding style issue Good job on getting the From issue sorted out. The subject line change description is a bit verbose. One doesn't want to see the whole code, but rather the concept of what has changed. If you were going to tell someone

Re: [PATCH v5] usb: serial: add vid:pid for Cypress WICED dev board

2017-09-08 Thread Greg KH
On Fri, Sep 08, 2017 at 02:35:03PM +, Jeffrey Chu wrote: > Add CYPRESS_VID vid and CYPRESS_WICED_BT_USB and CYPRESS_WICED_WL_USB > device IDs to ftdi_sio driver > > Signed-off-by: Jeffrey Chu > --- > drivers/usb/serial/ftdi_sio.c | 2 ++ > drivers/usb/serial/ftdi_sio_ids.h | 7 +++ >

Re: [PATCH net-next 2/3] net: ethernet: socionext: add AVE ethernet driver

2017-09-08 Thread Masahiro Yamada
2017-09-08 22:02 GMT+09:00 Kunihiko Hayashi : > diff --git a/drivers/net/ethernet/socionext/Kconfig > b/drivers/net/ethernet/socionext/Kconfig > new file mode 100644 > index 000..788f26f > --- /dev/null > +++ b/drivers/net/ethernet/socionext/Kconfig > @@ -0,0 +1,22 @@ > +config

Re: [PATCH 3/3] block/loop: make loop cgroup aware

2017-09-08 Thread Tejun Heo
Hello, On Wed, Sep 06, 2017 at 07:00:53PM -0700, Shaohua Li wrote: > diff --git a/drivers/block/loop.c b/drivers/block/loop.c > index 9d4545f..9850b27 100644 > --- a/drivers/block/loop.c > +++ b/drivers/block/loop.c > @@ -482,6 +482,8 @@ static void lo_rw_aio_complete(struct kiocb *iocb, long >

RE: [PATCH v5] usb: serial: add vid:pid for Cypress WICED dev board

2017-09-08 Thread David Laight
> To: Jeffrey Chu .. > Patch is still corrupted :( > > Please try sending it to yourself first to verify you have your email > client set up correctly. If you are forced to send from outlook, try copy & paste from wordpad. David

Re: [PATCH v9] arm64: allwinner: h5: add NanoPi NEO Plus2 DT support

2017-09-08 Thread Maxime Ripard
On Thu, Sep 07, 2017 at 06:42:22PM +0200, Antony Antony wrote: > Add initial DT for NanoPi NEO Plus2 by FriendlyARM > - Allwinner quad core H5 Cortex A53 with an ARM Mali-450MP GPU > - 1 GB DDR3 RAM > - 8GB eMMC flash (Samsung KLM8G1WEPD-B031) > - micro SD card slot > - Gigabit Ethernet (external

Re: Current mainline git (24e700e291d52bd2) hangs when building e.g. perf

2017-09-08 Thread Borislav Petkov
On Fri, Sep 08, 2017 at 11:16:14AM +0200, Borislav Petkov wrote: ... > +blkid[1020]: segfault at 8 ip 7fec7760c3fd sp 7ffc9dd05890 error 4 > in ld-linux-x86-64.so.2[7fec775fc000+22000] > +blkid[1026]: segfault at 8 ip 7f5a31ecc3fd sp 7fffaf3604b0 error 4 > in

Re: [PATCH v11 4/6] target-arm: kvm64: detect guest RAS EXTENSION feature

2017-09-08 Thread Peter Maydell
On 8 September 2017 at 15:26, gengdongjiu wrote: >> Shouldn't we need to also tell the kernel that we actually want >> it to expose RAS to the guest? Compare the PMU code in this function, >> where we set a kvm_init_features bit to do this. > In the PMU code, it indeed sets a kvm_init_features

Re: [PATCH 3/3] dmaengine: sun6i: Add support for Allwinner A64

2017-09-08 Thread Andre Przywara
Hi Maxime, On 08/09/17 15:39, Maxime Ripard wrote: > Hi, > > On Mon, Sep 04, 2017 at 09:14:52AM +0100, André Przywara wrote: >>> And obviously, while maintaining the stability of the binding of those >>> hundreds properties. >>> >>> Or, you can base all this on the compatible, and be done with

Re: [PATCH v6 03/11] mm, x86: Add support for eXclusive Page Frame Ownership (XPFO)

2017-09-08 Thread Tycho Andersen
On Fri, Sep 08, 2017 at 12:51:40AM -0700, Christoph Hellwig wrote: > > +#include > > > > #include > > > > @@ -55,24 +56,34 @@ static inline struct page *kmap_to_page(void *addr) > > #ifndef ARCH_HAS_KMAP > > static inline void *kmap(struct page *page) > > { > > + void *kaddr; > > + > >

Re: [PATCH] Staging: media: omap4iss: Use WARN_ON() instead of BUG_ON().

2017-09-08 Thread Srishti Sharma
On Fri, Sep 8, 2017 at 8:08 PM, Dan Carpenter wrote: > On Fri, Sep 08, 2017 at 07:38:18PM +0530, Srishti Sharma wrote: >> Use WARN_ON() instead of BUG_ON() to avoid crashing the kernel. >> >> Signed-off-by: Srishti Sharma >> --- >> drivers/staging/media/omap4iss/iss.c | 2 +- >> 1 file changed,

Re: [PATCH net-next v2 02/10] net: dsa: debugfs: add tree

2017-09-08 Thread Vivien Didelot
Hi Greg, You wrote: > > Can I ask for a quick review of this patch as well? It's the one adding > > the boilerplate for a single debugfs file, and I'm pretty sure it can be > > reduced somehow. > > I don't see a patch here :( Oops, you weren't originally in Cc. Please find the patch below. >

[PATCH] can: check for null sk before deferencing it via the call to sock_net

2017-09-08 Thread Colin King
From: Colin Ian King The assignment of net via call sock_net will dereference sk. This is performed before a sanity null check on sk, so there could be a potential null dereference on the sock_net call if sk is null. Fix this by assigning net after the sk null check. Also replace the sk == NULL

RE: [PATCH net-next v2 02/10] net: dsa: debugfs: add tree

2017-09-08 Thread David Laight
From: Vivien Didelot > Sent: 08 September 2017 15:57 ... > > > Also more important, you will notice what seems to be a bug to me: > > > I can read or write a file even if I didn't mask the corresponding mode > > > hence the double check in dsa_debugfs_show and dsa_debugfs_write. > > > > The mode

Re: [PATCH v4 1/6] irqdomain: rename variables in irq_domain_{push,pop}_irq()

2017-09-08 Thread Masahiro Yamada
Hi Marc, David, 2017-09-08 2:45 GMT+09:00 David Daney : > On 09/07/2017 05:47 AM, Marc Zyngier wrote: >> >> On 07/09/17 12:41, Masahiro Yamada wrote: >>> >>> The meaning of "root" in irq_domain_{push,pop} is opposite to the >>> documentation. Documentation/IRQ-domain.txt depicts the hierarchy

Re: [PATCH v4 0/6] irqdomain, gpio: expand irq_domain_push_irq() for DT use and use it for GPIO

2017-09-08 Thread Masahiro Yamada
Hi Marc. 2017-09-07 21:39 GMT+09:00 Marc Zyngier : >> I think there is a possibility where a device tries to get IRQ >> after irq_domain_create_hierarchy(), but before irq_domain_push_irq(). >> >> priv->domain = irq_domain_create_hierarchy(...) >> if (!priv->domain) >>

Re: [PATCH v2] tracing: Ignore mmiotrace from kernel commandline

2017-09-08 Thread Ziqian SUN (Zamir)
> On Wed, 30 Aug 2017 12:19:30 +0800 > "Ziqian SUN (Zamir)" wrote: > > > From: "Ziqian SUN (Zamir)" > > > > The mmiotrace tracer cannot be enabled with ftrace=mmiotrace in > > kernel commandline. With this patch, a trace_noboot_tracer_list > > is implemented and will be checked during system

Re: [PATCH v4 2/6] irqdomain: clear trigger type in irq_domain_push_irq()

2017-09-08 Thread Masahiro Yamada
Hi Marc, 2017-09-07 21:25 GMT+09:00 Marc Zyngier : > On 07/09/17 12:41, Masahiro Yamada wrote: >> Prior to the addition of irq_domain_push_irq(), the hierarchy >> IRQ domain always allocates IRQs from the outer-most domain. >> Each irqchip usually calls irq_domain_alloc_irqs_parent(), >>

Re: [PATCH v4 3/6] irqdomain: move IRQ_DOMAIN_NAME_ALLOCATED define to the original position

2017-09-08 Thread Masahiro Yamada
2017-09-07 21:04 GMT+09:00 Marc Zyngier : > On 07/09/17 12:41, Masahiro Yamada wrote: >> Commit 6a6544e520ab ("genirq/irqdomain: Remove auto-recursive hierarchy >> support") not only deleted IRQ_DOMAIN_FLAG_AUTO_RECURSIVE, but also >> moved IRQ_DOMAIN_NAME_ALLOCATED up. >> >> Get it back to the

[PATCH] Staging: media: imx: Prefer using BIT macro

2017-09-08 Thread Srishti Sharma
Use BIT(x) instead of (1< --- drivers/staging/media/imx/imx-media.h | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/media/imx/imx-media.h b/drivers/staging/media/imx/imx-media.h index d409170..e5b8d29 100644 ---

Re: Do we really need d_weak_revalidate???

2017-09-08 Thread David Howells
Ian Kent wrote: > So far only David commented about using ENOENT rather than EREMOTE. > > I prefer ENOENT for this case myself and he didn't object when I > explained why, David, any concerns? Not really - it just seems EREMOTE is a better fit since there is something there, we're just not

Re: [PATCH v4 6/6] gpio: uniphier: add UniPhier GPIO controller driver

2017-09-08 Thread Masahiro Yamada
Hi Rob, 2017-09-08 4:41 GMT+09:00 Rob Herring : > On Thu, Sep 7, 2017 at 6:42 AM, Masahiro Yamada > wrote: >> This GPIO controller device is used on UniPhier SoCs. >> >> It also serves as an interrupt controller, but interrupt signals are >> just delivered to the parent irqchip without any

RE: [PATCH v2] Add driver to force WMI Thunderbolt controller power status

2017-09-08 Thread Mario.Limonciello
> -Original Message- > From: Mika Westerberg [mailto:mika.westerb...@linux.intel.com] > Sent: Friday, September 8, 2017 3:07 AM > To: Limonciello, Mario > Cc: dvh...@infradead.org; LKML ; > platform-driver- > x...@vger.kernel.org; Richard Hughes ; Yehezkel Bernat > > Subject: Re: [PATCH

[PATCH v3] tpm-dev-common: Reject too short writes

2017-09-08 Thread Alexander Steffen
tpm_transmit() does not offer an explicit interface to indicate the number of valid bytes in the communication buffer. Instead, it relies on the commandSize field in the TPM header that is encoded within the buffer. Therefore, ensure that a) enough data has been written to the buffer, so that the

[PATCH v3] Add driver to force WMI Thunderbolt controller power status

2017-09-08 Thread Mario Limonciello
Current implementations of Intel Thunderbolt controllers will go into a low power mode when not in use. Many machines containing these controllers also have a GPIO wired up that can force the controller awake. This is offered via a ACPI-WMI interface intended to be manipulated by a userspace

[PATCH] rsi: fix a dereference on adapter before it has been null checked

2017-09-08 Thread Colin King
From: Colin Ian King The assignment of dev is dereferencing adapter before adapter has been null checked, potentially leading to a null pointer dereference. Fix this by simply moving the assignment of dev to a later point after the sanity null check of adapter. Detected by CoverityScan

Re: [PATCH 1/2] xfs: always use DAX if mount option is used

2017-09-08 Thread Ross Zwisler
On Fri, Sep 08, 2017 at 12:20:28AM -0700, Christoph Hellwig wrote: > On Thu, Sep 07, 2017 at 03:08:31PM -0600, Ross Zwisler wrote: > > Before support for the per-inode DAX flag was disabled the XFS the code had > > an issue where the user couldn't reliably tell whether or not DAX was being > >

Re: [PATCH net-next v2 02/10] net: dsa: debugfs: add tree

2017-09-08 Thread Greg Kroah-Hartman
On Fri, Sep 08, 2017 at 10:57:29AM -0400, Vivien Didelot wrote: > Hi Greg, > > You wrote: > > > > Can I ask for a quick review of this patch as well? It's the one adding > > > the boilerplate for a single debugfs file, and I'm pretty sure it can be > > > reduced somehow. > > > > I don't see a

Re: [Outreachy kernel] [PATCH] Staging: media: imx: Prefer using BIT macro

2017-09-08 Thread Sean Paul
On Fri, Sep 8, 2017 at 11:11 AM, Srishti Sharma wrote: > Use BIT(x) instead of (1< > Signed-off-by: Srishti Sharma > --- > drivers/staging/media/imx/imx-media.h | 16 > 1 file changed, 8 insertions(+), 8 deletions(-) > > diff --git a/drivers/staging/media/imx/imx-media.h >

[PATCH] MAINTAINERS: Add dri-devel as a mailing list for anything fbdev

2017-09-08 Thread Daniel Vetter
fbdev is in maintenance only, except that it's still used by drm through the drm fbdev emulation, to be able to use fbcon. And people might want to sometimes extend fbcon to enable new features for drm drivers, e.g. Hans' panel orientation work. The problem is that when those patches only touch

[PATCH v1 00/10] Various patches for SAMA5D2 backup mode

2017-09-08 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

[PATCH v1 07/10] iio:adc:at91-sama5d2: Support backup mode

2017-09-08 Thread Romain Izard
Support the backup mode for platform suspend, by restoring the hardware registers on resume. Signed-off-by: Romain Izard --- drivers/iio/adc/at91-sama5d2_adc.c | 71 -- 1 file changed, 61 insertions(+), 10 deletions(-) diff --git

[PATCH v1 09/10] atmel_flexcom: Support backup mode

2017-09-08 Thread Romain Izard
The controller used by a flexcom module is configured at boot, and left alone after this. As the configuration will be lost after backup mode, restore the state of the flexcom driver on resume. Signed-off-by: Romain Izard --- drivers/mfd/atmel-flexcom.c | 65

[PATCH v1 04/10] mtd: nand: atmel: Avoid ECC errors when leaving backup mode

2017-09-08 Thread Romain Izard
During backup mode, the contents of all registers will be cleared as the SoC will be completely powered down. For a product that boots on NAND Flash memory, the bootloader will obviously use the related controller to read the Flash and correct any detected error in the memory, before handling back

[PATCH v1 08/10] pwm: atmel-tcb: Support backup mode

2017-09-08 Thread Romain Izard
Save and restore registers for the PWM on suspend and resume, which makes hibernation and backup modes possible. Signed-off-by: Romain Izard --- drivers/pwm/pwm-atmel-tcb.c | 63 +++-- 1 file changed, 61 insertions(+), 2 deletions(-) diff --git

[PATCH v1 10/10] tty/serial: atmel: Prevent a warning on suspend

2017-09-08 Thread Romain Izard
The atmel serial port driver reported the following warning on suspend: atmel_usart f802.serial: ttyS1: Unable to drain transmitter As the ATMEL_US_TXEMPTY status bit in ATMEL_US_CSR is always cleared when the transmitter is disabled, we need to know the transmitter's state to return the real

Re: [PATCH v2 28/40] tracing: Add support for 'field variables'

2017-09-08 Thread Tom Zanussi
On Thu, 2017-09-07 at 19:43 -0400, Steven Rostedt wrote: > On Tue, 5 Sep 2017 16:57:40 -0500 > Tom Zanussi wrote: > > > Users should be able to directly specify event fields in hist trigger > > 'actions' rather than being forced to explicitly create a variable for > > that purpose. > > > > Add

[PATCH v1 06/10] ehci-atmel: Power down during suspend is normal

2017-09-08 Thread Romain Izard
When an Atmel SoC is suspended with the backup mode, the USB bus will be powered down. As this is expected, do not return an error to the driver core when ehci_resume detects it. Signed-off-by: Romain Izard --- drivers/usb/host/ehci-atmel.c | 3 ++- 1 file changed, 2 insertions(+), 1

[PATCH v1 05/10] mtd: nand: atmel: Report PMECC failures as errors

2017-09-08 Thread Romain Izard
It is not normal for the PMECC to fail when trying to fix ECC errors. Report these cases as errors. Signed-off-by: Romain Izard --- drivers/mtd/nand/atmel/pmecc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/atmel/pmecc.c

[PATCH v1 01/10] clk: at91: pmc: Wait for clocks when resuming

2017-09-08 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 --- drivers/clk/at91/pmc.c | 24 1 file

[PATCH v1 03/10] clk: at91: pmc: Support backup for programmable clocks

2017-09-08 Thread Romain Izard
From: Romain Izard Save and restore the System Clock and Programmable Clock register for the backup use case. Signed-off-by: Romain Izard --- drivers/clk/at91/pmc.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/clk/at91/pmc.c b/drivers/clk/at91/pmc.c index

[PATCH v1 02/10] clk: at91: pmc: Save SCSR during suspend

2017-09-08 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 0/9] add ext4 per-inode DAX flag

2017-09-08 Thread Theodore Ts'o
On Fri, Sep 08, 2017 at 09:25:43AM +1000, Dave Chinner wrote: > > Okay, so other ideas (which you have also probably already though of) > > include: > > > > 1) Just return -EBUSY if anyone tries to change the DAX flag of an inode > > with > > open mappings or any open file handles. > > You

Re: [PATCH] MAINTAINERS: Add dri-devel as a mailing list for anything fbdev

2017-09-08 Thread Sean Paul
On Fri, Sep 8, 2017 at 11:35 AM, Daniel Vetter wrote: > fbdev is in maintenance only, except that it's still used by drm > through the drm fbdev emulation, to be able to use fbcon. And people > might want to sometimes extend fbcon to enable new features for drm > drivers, e.g. Hans' panel

Re: [PATCH v6 10/11] mm: add a user_virt_to_phys symbol

2017-09-08 Thread Kees Cook
On Fri, Sep 8, 2017 at 12:55 AM, Christoph Hellwig wrote: > On Thu, Sep 07, 2017 at 11:36:08AM -0600, Tycho Andersen wrote: >> We need someting like this for testing XPFO. Since it's architecture >> specific, putting it in the test code is slightly awkward, so let's make it >> an arch-specific

Re: [PATCH v2 05/11] mux: Add Intel Cherrytrail USB mux driver

2017-09-08 Thread Peter Rosin
On 2017-09-05 18:42, Hans de Goede wrote: > Intel Cherrytrail SoCs have an internal USB mux for muxing the otg-port > USB data lines between the xHCI host controller and the dwc3 gadget > controller. On some Cherrytrail systems this mux is controlled through > AML code reacting on a GPIO IRQ

[PATCH 1/2] mux: add mux_control_get_optional() API

2017-09-08 Thread Peter Rosin
From: Stephen Boyd Sometimes drivers only use muxes under certain scenarios. For example, the chipidea usb controller may be connected to a usb switch on some platforms, and connected directly to a usb port on others. The driver won't know one way or the other though, so add a

[PATCH 2/2] mux: add explicit hook to leave the mux as-is on init/registration

2017-09-08 Thread Peter Rosin
A board may need a mux controller to stay as-is for a while longer, e.g. if setting the normally preferred idle state destroys booting. The mechanism provided here is not perfect in two ways. 1. As soon as the mux controller is registered, some mux consumer can access it and set a state that

Re: [PATCH v2 04/11] usb: xhci: Add Intel cherrytrail extended cap / otg phy mux handling

2017-09-08 Thread Peter Rosin
On 2017-09-05 18:42, Hans de Goede wrote: > The Intel cherrytrail xhci controller has an extended cap mmio-range > which contains registers to control the muxing to the xhci (host mode) > or the dwc3 (device mode) and vbus-detection for the otg usb-phy. > > Having a mux driver included in the

Re: [PATCH v2 03/11] mux: core: Add usb.h header with MUX_USB_* and and MUX_TYPEC_* state constants

2017-09-08 Thread Peter Rosin
On 2017-09-05 18:42, Hans de Goede wrote: > Add MUX_USB_* and MUX_TYPEC_* state constant defines, which can be used by > USB device/host, resp. Type-C polarity/role/altmode mux drivers and > consumers to ensure that they agree on the meaning of the > mux_control_select() state argument. > >

[PATCH] v4l-ioctl: Fix typo on v4l_print_frmsizeenum

2017-09-08 Thread Ricardo Ribalda Delgado
max_width and max_height are swap with step_width and step_height. Signed-off-by: Ricardo Ribalda Delgado --- Since that this bug has been here for ever. I do not know if we should notify stable or not I have also cut the lines to respect the 80 char limit

pull-request: wireless-drivers 2017-09-08

2017-09-08 Thread Kalle Valo
Hi Dave, few fixes to net tree for 4.14. Note that this pull request contains the iwlwifi fix Linus hopes to have by end of the merge window. Please let me know if there are any problems. Kalle The following changes since commit 8e0deed92406d93ae0365cb8a6134db5721e7aca: tipc: remove

Re: [PATCH 3/3] KVM: SVM: Add irqchip_split() checks before enabling AVIC

2017-09-08 Thread Radim Krčmář
2017-09-05 22:39-0500, Suravee Suthikulpanit: > SVM AVIC hardware accelerates guest write to APIC_EOI register > (for edge-trigger interrupt), which means it does not trap to KVM. > > So, only enable SVM AVIC only in split irqchip mode. > (e.g. launching qemu w/ option '-machine

Re: [PATCH 1/2] mux: add mux_control_get_optional() API

2017-09-08 Thread Peter Rosin
On 2017-09-08 17:45, Peter Rosin wrote: > From: Stephen Boyd > > Sometimes drivers only use muxes under certain scenarios. For > example, the chipidea usb controller may be connected to a usb > switch on some platforms, and connected directly to a usb port on > others. The driver won't know one

[PATCH] signal: remove unused variable mask

2017-09-08 Thread Colin King
From: Colin Ian King The variable mask was introduced by an earlier commit and does not seem to be used, so remove it. Fixes gcc warning: kernel/signal.c:3443:19: warning: unused variable ‘mask’ [-Wunused-variable] Fixes: fc271087ebcb ("signal: replace sigset_to_compat() with

Re: [PATCH v8] vfio: platform: reset: Add Broadcom FlexRM reset module

2017-09-08 Thread Auger Eric
Hi Anup, On 06/09/2017 13:18, Anup Patel wrote: > This patch adds Broadcom FlexRM low-level reset for > VFIO platform. > > It will do the following: > 1. Disable/Deactivate each FlexRM ring > 2. Flush each FlexRM ring > > The cleanup sequence for FlexRM rings is adapted from > Broadcom FlexRM

Re: [PATCH 09/14] arm64: kexec_file: add sha256 digest check in purgatory

2017-09-08 Thread Thiago Jung Bauermann
AKASHI Takahiro writes: > On Fri, Aug 25, 2017 at 11:41:33AM +0100, Mark Rutland wrote: >> On Fri, Aug 25, 2017 at 10:21:06AM +0900, AKASHI Takahiro wrote: >> > On Thu, Aug 24, 2017 at 06:04:40PM +0100, Mark Rutland wrote: >> > > On Thu, Aug 24, 2017 at 05:18:06PM +0900, AKASHI Takahiro wrote:

Re: [PATCH 3/3] net: skb_queue_purge(): lock/unlock the list only once

2017-09-08 Thread Eric Dumazet
On Fri, 2017-09-08 at 05:06 +, Michael Witten wrote: > Date: Thu, 7 Sep 2017 20:07:40 + > With this commit, the list's lock is locked/unlocked only once > for the duration of `skb_queue_purge()'. > > Hitherto, the list's lock has been locked/unlocked every time > an item is dequeued; this

Re: [Outreachy kernel] [PATCH] Staging: media: imx: Prefer using BIT macro

2017-09-08 Thread Srishti Sharma
On Fri, Sep 8, 2017 at 8:59 PM, Sean Paul wrote: > On Fri, Sep 8, 2017 at 11:11 AM, Srishti Sharma wrote: >> Use BIT(x) instead of (1<> >> Signed-off-by: Srishti Sharma >> --- >> drivers/staging/media/imx/imx-media.h | 16 >> 1 file changed, 8 insertions(+), 8 deletions(-) >>

Re: [PATCH v1 07/10] iio:adc:at91-sama5d2: Support backup mode

2017-09-08 Thread Nicolas Ferre
On 08/09/2017 at 17:36, Romain Izard wrote: > Support the backup mode for platform suspend, by restoring the hardware > registers on resume. > > Signed-off-by: Romain Izard Romain, Thanks for your series: definitively some of your patches need to be integrated (I've merged some of them in our

[PATCH 4/4] xen: select grant interface version

2017-09-08 Thread Juergen Gross
Based on the maximum page number of the host select either grant v1 or grant v2. For testing purposes add a way to specify the grant interface version via a boot parameter. Signed-off-by: Juergen Gross --- drivers/xen/grant-table.c | 13 +++-- 1 file changed, 11 insertions(+), 2

[PATCH 1/4] xen: re-introduce support for grant v2 interface

2017-09-08 Thread Juergen Gross
The grant v2 support was removed from the kernel with commit 438b33c7145ca8a5131a30c36d8f59bce119a19a ("xen/grant-table: remove support for V2 tables") as the higher memory footprint of v2 grants resulted in less grants being possible for a kernel compared to the v1 grant interface. As machines

[PATCH 0/4] xen: grant table interface v2 support

2017-09-08 Thread Juergen Gross
In order to support Linux to run as a pv guest on machines with huge memory (>16TB) the kernel has to support grant table interface v2, as v1 is limited to 32 bit frame numbers. This series re-adds that support (it has been removed in 2015) and restricts usage of v2 to the features of v1 in order

[PATCH 2/4] xen: limit grant v2 interface to the v1 functionality

2017-09-08 Thread Juergen Gross
As there is currently no user for sub-page grants or transient grants remove that functionality. This at once makes it possible to switch from grant v2 to grant v1 without restrictions, as there is no loss of functionality other than the limited frame number width related to the switch.

[PATCH 3/4] xen: add grant interface version dependent constants to gnttab_ops

2017-09-08 Thread Juergen Gross
Instead of having multiple variables with constants like grant_table_version or grefs_per_grant_frame add those to struct gnttab_ops and access them just via the gnttab_interface pointer. Signed-off-by: Juergen Gross --- drivers/xen/grant-table.c | 73

Re: [RFC Part2 PATCH v3 02/26] crypto: ccp: Add Platform Security Processor (PSP) device support

2017-09-08 Thread Brijesh Singh
On 09/08/2017 03:40 AM, Borislav Petkov wrote: On Thu, Sep 07, 2017 at 05:19:32PM -0500, Brijesh Singh wrote: At high level, AMD-SP (AMD Secure Processor) (i.e CCP driver) will provide the support for CCP, SEV and TEE FW commands. +--- CCP | AMD-SP --| |

Re: [PATCH 0/2] Two cleanups for Sphinx conf.py

2017-09-08 Thread Jonathan Corbet
On Sun, 3 Sep 2017 16:12:44 -0300 Mauro Carvalho Chehab wrote: > Those patches are just cleanups for Documentation/conf.py. > > The first one removes a package usage directive for a LateX package > that it is not used. > > The second one moves some LaTeX preamble code that it is used only >

Re: [PATCH 1/2] kokr/doc: Update memory-barriers.txt for read-to-write dependencies

2017-09-08 Thread Jonathan Corbet
On Wed, 6 Sep 2017 17:25:30 +0900 SeongJae Park wrote: > This commit applies upstream change, commit 66ce3a4dcb9f ("doc: Update > memory-barriers.txt for read-to-write dependencies") to Korean > translation. I've applied these two. Thanks, jon

Re: mutex_lock issues during poweroff

2017-09-08 Thread Peter Zijlstra
On Fri, Sep 08, 2017 at 04:43:07PM +0200, Maxime Ripard wrote: > What commit happened to be the rewrite? 9d659ae14b54 ("locking/mutex: > Add lock handoff to avoid starvation") ? We backported this one and > 3ca0ff571b09 ("locking/mutex: Rework mutex::owner"), and still can > reproduce the issue.

RE: [PATCH] x86/idt: Unbreak MS HyperV hypercall vector install

2017-09-08 Thread Haiyang Zhang
> -Original Message- > From: Thomas Gleixner [mailto:t...@linutronix.de] > Sent: Friday, September 8, 2017 4:20 AM > To: LKML > Cc: Stephen Hemminger ; Simon Xiao > ; KY Srinivasan ; Haiyang Zhang > ; Steven Rostedt ; Peter > Zijlstra ; Linus Torvalds foundation.org>; Josh Poimboeuf ;

Re: Current mainline git (24e700e291d52bd2) hangs when building e.g. perf

2017-09-08 Thread Andy Lutomirski
On Fri, Sep 8, 2017 at 4:30 AM, Markus Trippelsdorf wrote: > On 2017.09.08 at 12:39 +0200, Markus Trippelsdorf wrote: >> On 2017.09.08 at 12:35 +0200, Ingo Molnar wrote: >> > >> > * Markus Trippelsdorf wrote: >> > >> > > On 2017.09.08 at 11:16 +0200, Borislav Petkov wrote: >> > > > On Fri, Sep

[patch v8 0/4] JTAG driver introduction

2017-09-08 Thread Oleksandr Shamray
When a need raise up to use JTAG interface for system's devices programming or CPU debugging, usually the user layer application implements jtag protocol by bit-bang or using a proprietary connection to vendor hardware. This method can be slow and not generic. We propose to implement general

Re: [PATCH v8 11/28] x86/insn-eval: Add utility function to identify string instructions

2017-09-08 Thread Borislav Petkov
On Fri, Aug 18, 2017 at 05:27:52PM -0700, Ricardo Neri wrote: > String instructions are special because, in protected mode, the linear > address is always obtained via the ES segment register in operands that > use the (E)DI register; the DS segment register in operands that use > the (E)SI

[patch v8 4/4] Documentation: jtag: Add ABI documentation

2017-09-08 Thread Oleksandr Shamray
Added document that describe the ABI for JTAG class drivrer Signed-off-by: Oleksandr Shamray Acked-by: Arnd Bergmann --- v7->v8 v6->v7 Comments pointed by Pavel Machek - Added jtag-cdev documentation to Documentation/ABI/testing folder --- Documentation/ABI/testing/jatg-cdev | 27

[patch v8 3/4] Documentation: jtag: Add bindings for Aspeed SoC 24xx and 25xx families JTAG master driver

2017-09-08 Thread Oleksandr Shamray
It has been tested on Mellanox system with BMC equipped with Aspeed 2520 SoC for programming CPLD devices. Signed-off-by: Oleksandr Shamray Signed-off-by: Jiri Pirko Acked-by: Rob Herring Acked-by: Arnd Bergmann --- v7->v8 Comments pointed by Arnd Bergmann - Change compatible string to

[patch v8 2/4] drivers: jtag: Add Aspeed SoC 24xx and 25xx families JTAG master driver

2017-09-08 Thread Oleksandr Shamray
Driver adds support of Aspeed 2500/2400 series SOC JTAG master controller. Driver implements the following jtag ops: - freq_get; - freq_set; - status_get; - idle; - xfer; It has been tested on Mellanox system with BMC equipped with Aspeed 2520 SoC for programming CPLD devices. Signed-off-by:

[patch v8 1/4] drivers: jtag: Add JTAG core driver

2017-09-08 Thread Oleksandr Shamray
Initial patch for JTAG driver JTAG class driver provide infrastructure to support hardware/software JTAG platform drivers. It provide user layer API interface for flashing and debugging external devices which equipped with JTAG interface using standard transactions. Driver exposes set of IOCTL to

[PATCH] ALSA: msnd: Optimize / harden DSP and MIDI loops

2017-09-08 Thread grygorii tertychnyi
Hi Greg, Could you please apply it for 4.4-stable. This fixes https://nvd.nist.gov/vuln/detail/CVE-2017-9985 Takashi Iwai (1): ALSA: msnd: Optimize / harden DSP and MIDI loops sound/isa/msnd/msnd_midi.c | 30 +++--- sound/isa/msnd/msnd_pinnacle.c | 23

[PATCH] ALSA: msnd: Optimize / harden DSP and MIDI loops

2017-09-08 Thread grygorii tertychnyi
From: Takashi Iwai commit 20e2b791796bd68816fa115f12be5320de2b8021 upstream. The ISA msnd drivers have loops fetching the ring-buffer head, tail and size values inside the loops. Such codes are inefficient and fragile. This patch optimizes it, and also adds the sanity check to avoid the

Re: [PATCH v11 5/6] target-arm: kvm64: handle SIGBUS signal for synchronous External Abort

2017-09-08 Thread gengdongjiu
Hi peter, Sorry for the late response. > > On 18 August 2017 at 15:23, Dongjiu Geng wrote: > > Add SIGBUS signal handler. In this handler, it checks the exception > > type, translates the host VA which is delivered by host or KVM to > > guest PA, then fills this PA to CPER, finally injects a

Re: [PATCH v1 07/10] iio:adc:at91-sama5d2: Support backup mode

2017-09-08 Thread Romain Izard
2017-09-08 18:03 GMT+02:00 Nicolas Ferre : > On 08/09/2017 at 17:36, Romain Izard wrote: >> Support the backup mode for platform suspend, by restoring the hardware >> registers on resume. >> >> Signed-off-by: Romain Izard > > Romain, > > Thanks for your series: definitively some of your patches

Re: [PATCH v11 5/6] target-arm: kvm64: handle SIGBUS signal for synchronous External Abort

2017-09-08 Thread Peter Maydell
On 8 September 2017 at 17:17, gengdongjiu wrote: >> >> This code has all just been copied-and-pasted from target/i386/kvm.c. >> Please instead abstract it out properly into a cpu-independent source file. > > > Yes, it copied from x86. > Do you mean abstracting this code to a common folder so that

Re: [PATCH] ALSA: msnd: Optimize / harden DSP and MIDI loops

2017-09-08 Thread Greg KH
On Fri, Sep 08, 2017 at 09:06:25AM -0700, grygorii tertychnyi wrote: > Hi Greg, > > Could you please apply it for 4.4-stable. > This fixes https://nvd.nist.gov/vuln/detail/CVE-2017-9985 Why just 4.4? What about 4.12, 4.9, and any others? thanks, greg k-h

[GIT PULL] Kselftest update for 4.14-rc1

2017-09-08 Thread Shuah Khan
Hi Linus, Please pull the following Kselftest update for 4.14-rc1. This update consists of: -- TAP13 framework API and converting tests to TAP13 continues. A few more tests are converted and kselftest common RUN_TESTS in lib.mk is enhanced to print TAP13 to cover test shell scripts that

[GIT PULL] PCI changes for v4.14

2017-09-08 Thread Bjorn Helgaas
PCI changes: - add enhanced Downstream Port Containment support, which prints more details about Root Port Programmed I/O errors (Dongdong Liu) - add Layerscape ls1088a and ls2088a support (Hou Zhiqiang) - add MediaTek MT2712 and MT7622 support (Ryder Lee) - add MediaTek MT2712 and

[PATCH -next] nvdimm: btt.c: fix format string warnings

2017-09-08 Thread Randy Dunlap
Dunlap Cc: Vishal Verma Cc: linux-nvd...@lists.01.org --- drivers/nvdimm/btt.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- linux-next-20170908.orig/drivers/nvdimm/btt.c +++ linux-next-20170908/drivers/nvdimm/btt.c @@ -428,7 +428,7 @@ static int btt_map_init(struct are

Re: [PATCH v2] ARM: dts: exynos: fix incomplete Odroid-XU3/4 thermal-zones definition

2017-09-08 Thread Krzysztof Kozlowski
On Thu, Sep 07, 2017 at 06:10:00PM +0200, Bartlomiej Zolnierkiewicz wrote: > From: Willy Wolff > > Odroid XU3/4 boards have thermal sensors per 4 pairs of A7+A15 > cores but currently there is only one thermal-zone (including > cooling maps) defined (for the first pair of cores - the first >

[PATCH] media: default for RC_CORE should be n

2017-09-08 Thread Stephen Hemminger
The Linus policy on Kconfig is that the default should be no for all new devices. I.e the user rebuild a new kernel from an old config should not by default get a larger kernel. Fixes: b4c184e506a4 ("[media] media: reorganize the main Kconfig items") Signed-off-by: Stephen Hemminger ---

答复: [PATCH v11 5/6] target-arm: kvm64: handle SIGBUS signal for synchronous External Abort

2017-09-08 Thread gengdongjiu
[...] > > > > /* > > * xx > > */ > > void kvm_hwpoison_page_add(ram_addr_t ram_addr); > > It should be in the doc-comment format, which begins "/**" and has some > stylization of how you list parameters and so on. Lots of > examples in the existing headers.

Re: [PATCH v2 1/3] ASoC: samsung: i2s: Use specific name for i2s dais

2017-09-08 Thread Krzysztof Kozlowski
On Wed, Sep 06, 2017 at 10:04:13AM +0900, Jaechul Lee wrote: > Add specific dais name when components are registered. Component and dai > name will follow their parent dev name, if the name isn't described. In > case of this driver, each dais will have same name like '1144.i2s0' by >

<    8   9   10   11   12   13   14   15   16   17   >