[PATCH AUTOSEL for-4.9 01/53] extcon: Remove potential problem when calling extcon_register_notifier()

2017-11-08 Thread Levin, Alexander (Sasha Levin)
From: Chanwoo Choi [ Upstream commit 01b4c9a1ae07a25d208cad0da7dd288007a22984 ] This patch removes the potential problem of extcon_register_notifier() when edev parameter is NULL. When edev is NULL, this function returns the first extcon device which includes the sepecific external connector of

[PATCH AUTOSEL for-3.18 10/27] igb: Fix hw_dbg logging in igb_update_flash_i210

2017-11-08 Thread Levin, Alexander (Sasha Levin)
From: Hannu Lounento [ Upstream commit 76ed5a8f47476e4984cc8c0c1bc4cee62650f7fd ] Fix an if statement with hw_dbg lines where the logic was inverted with regards to the corresponding return value used in the if statement. Signed-off-by: Hannu Lounento Signed-off-by: Peter Senna Tschudin Teste

[PATCH AUTOSEL for-3.18 06/27] ata: SATA_MV should depend on HAS_DMA

2017-11-08 Thread Levin, Alexander (Sasha Levin)
From: Geert Uytterhoeven [ Upstream commit 62989cebd367a1aae1e009e1a5b1ec046a4c8fdc ] If NO_DMA=y: ERROR: "dma_pool_alloc" [drivers/ata/sata_mv.ko] undefined! ERROR: "dmam_pool_create" [drivers/ata/sata_mv.ko] undefined! ERROR: "dma_pool_free" [drivers/ata/sata_mv.ko] undefined! Ad

[PATCH AUTOSEL for-4.4 38/39] MIPS: Netlogic: Exclude netlogic,xlp-pic code from XLR builds

2017-11-08 Thread Levin, Alexander (Sasha Levin)
From: Paul Burton [ Upstream commit 9799270affc53414da96e77e454a5616b39cdab0 ] Code in arch/mips/netlogic/common/irq.c which handles the XLP PIC fails to build in XLR configurations due to cpu_is_xlp9xx not being defined, leading to the following build failure: arch/mips/netlogic/common/irq

[PATCH AUTOSEL for-4.4 19/39] scsi: lpfc: Correct host name in symbolic_name field

2017-11-08 Thread Levin, Alexander (Sasha Levin)
From: James Smart [ Upstream commit 6c9231f604c2575be24c96d38deb70f145172f92 ] Correct host name in symbolic_name field of nameserver registrations Signed-off-by: Dick Kennedy Signed-off-by: James Smart Reviewed-by: Hannes Reinecke Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levi

Re: [PATCH] xen: xenbus_probe_frontend: mark expected switch fall-throughs

2017-11-08 Thread Boris Ostrovsky
On 11/03/2017 04:03 AM, Juergen Gross wrote: > On 02/11/17 19:41, Gustavo A. R. Silva wrote: >> In preparation to enabling -Wimplicit-fallthrough, mark switch cases >> where we are expecting to fall through. >> >> Addresses-Coverity-ID: 146562 >> Addresses-Coverity-ID: 146563 >> Signed-off-by: Gust

[PATCH AUTOSEL for-3.18 23/27] MIPS: End asm function prologue macros with .insn

2017-11-08 Thread Levin, Alexander (Sasha Levin)
From: Paul Burton [ Upstream commit 08889582b8aa0bbc01a1e5a0033b9f98d2e11caa ] When building a kernel targeting a microMIPS ISA, recent GNU linkers will fail the link if they cannot determine that the target of a branch or jump is microMIPS code, with errors such as the following: mips-img-

Re: [PATCH] xen/pvcalls: fix unsigned less than zero error check

2017-11-08 Thread Boris Ostrovsky
On 11/03/2017 05:01 AM, Juergen Gross wrote: > On 03/11/17 09:42, Colin King wrote: >> From: Colin Ian King >> >> The check on bedata->ref is never true because ref is an unsigned >> integer. Fix this by assigning signed int ret to the return of the >> call to gnttab_claim_grant_reference so the -

[PATCH AUTOSEL for-4.4 33/39] ixgbe: do not disable FEC from the driver

2017-11-08 Thread Levin, Alexander (Sasha Levin)
From: Emil Tantilov [ Upstream commit 1fe954b2097bb907b4578e6a74e4c1d23785a601 ] FEC is configured by the NVM and the driver should not be overriding it. Signed-off-by: Emil Tantilov Tested-by: Krishneil Singh Signed-off-by: Jeff Kirsher Signed-off-by: Sasha Levin --- drivers/net/ethernet/

Re: [PATCH] xen/pvcalls: remove redundant check for irq >= 0

2017-11-08 Thread Boris Ostrovsky
On 11/03/2017 06:01 AM, Juergen Gross wrote: > On 03/11/17 10:20, Colin King wrote: >> From: Colin Ian King >> >> This is a moot point, but irq is always less than zero at the label >> out_error, so the check for irq >= 0 is redundant and can be removed. >> >> Detected by CoverityScan, CID#1460371

Re: [PATCH] xen/pvcalls-front: mark expected switch fall-through

2017-11-08 Thread Boris Ostrovsky
On 11/03/2017 04:04 AM, Juergen Gross wrote: > On 02/11/17 19:51, Gustavo A. R. Silva wrote: >> In preparation to enabling -Wimplicit-fallthrough, mark switch cases >> where we are expecting to fall through. >> >> Notice that in this particular case I placed the "fall through" comment >> on its own

[PATCH AUTOSEL for-4.4 32/39] ixgbe: add mask for 64 RSS queues

2017-11-08 Thread Levin, Alexander (Sasha Levin)
From: Emil Tantilov [ Upstream commit 2bf1a87b903bd81b1448a1cef73de59fb6c4d340 ] The indirection table was reported incorrectly for X550 and newer where we can support up to 64 RSS queues. Reported-by Krishneil Singh Signed-off-by: Emil Tantilov Tested-by: Andrew Bowers Signed-off-by: Jeff K

[PATCH AUTOSEL for-4.4 36/39] MIPS: init: Ensure bootmem does not corrupt reserved memory

2017-11-08 Thread Levin, Alexander (Sasha Levin)
From: Marcin Nowakowski [ Upstream commit d9b5b658210f28ed9f70c757d553e679d76e2986 ] Current init code initialises bootmem allocator with all of the low memory that it assumes is available, but does not check for reserved memory block, which can lead to corruption of data that may be stored ther

[PATCH AUTOSEL for-4.4 35/39] MIPS: End asm function prologue macros with .insn

2017-11-08 Thread Levin, Alexander (Sasha Levin)
From: Paul Burton [ Upstream commit 08889582b8aa0bbc01a1e5a0033b9f98d2e11caa ] When building a kernel targeting a microMIPS ISA, recent GNU linkers will fail the link if they cannot determine that the target of a branch or jump is microMIPS code, with errors such as the following: mips-img-

Re: [PATCH v4] xen: support priv-mapping in an HVM tools domain

2017-11-08 Thread Boris Ostrovsky
On 11/03/2017 04:51 PM, Boris Ostrovsky wrote: > On 11/03/2017 01:04 PM, Paul Durrant wrote: >> If the domain has XENFEAT_auto_translated_physmap then use of the PV- >> specific HYPERVISOR_mmu_update hypercall is clearly incorrect. >> >> This patch adds checks in xen_remap_domain_gfn_array() and >>

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

2017-11-08 Thread Boris Ostrovsky
On 11/06/2017 03:46 PM, Boris Ostrovsky wrote: > On 11/02/2017 05:19 AM, Juergen Gross wrote: >> In order to support Linux to run as a pv guest on machines with huge >> memory (>16TB) or as a hvm guest with more than 16TB of memory the >> kernel has to support grant table interface v2, as v1 is lim

[PATCH AUTOSEL for-4.4 01/39] extcon: palmas: Check the parent instance to prevent the NULL

2017-11-08 Thread Levin, Alexander (Sasha Levin)
From: Roger Quadros [ Upstream commit 9fe172b9be532acc23e35ba693700383ab775e66 ] extcon-palmas must be child of palmas and expects parent's drvdata to be valid. Check for non NULL parent drvdata and fail if it is NULL. Not doing so will result in a NULL pointer dereference later in the probe() p

Re: [PATCH] xen/privcmd: remove unused variable pageidx

2017-11-08 Thread Boris Ostrovsky
On 11/08/2017 08:30 AM, Juergen Gross wrote: > On 08/11/17 14:00, Colin King wrote: >> From: Colin Ian King >> >> Variable pageidx is assigned a value but it is never read, hence it >> is redundant and can be removed. Cleans up clang warning: >> >> drivers/xen/privcmd.c:199:2: warning: Value store

[PATCH AUTOSEL for-4.4 13/39] igb: Fix hw_dbg logging in igb_update_flash_i210

2017-11-08 Thread Levin, Alexander (Sasha Levin)
From: Hannu Lounento [ Upstream commit 76ed5a8f47476e4984cc8c0c1bc4cee62650f7fd ] Fix an if statement with hw_dbg lines where the logic was inverted with regards to the corresponding return value used in the if statement. Signed-off-by: Hannu Lounento Signed-off-by: Peter Senna Tschudin Teste

[PATCH AUTOSEL for-4.4 12/39] igb: close/suspend race in netif_device_detach

2017-11-08 Thread Levin, Alexander (Sasha Levin)
From: Todd Fujinaka [ Upstream commit 9474933caf21a4cb5147223dca1551f527aaac36 ] Similar to ixgbe, when an interface is part of a namespace it is possible that igb_close() may be called while __igb_shutdown() is running which ends up in a double free WARN and/or a BUG in free_msi_irqs(). Extend

[PATCH AUTOSEL for-4.4 09/39] ata: SATA_MV should depend on HAS_DMA

2017-11-08 Thread Levin, Alexander (Sasha Levin)
From: Geert Uytterhoeven [ Upstream commit 62989cebd367a1aae1e009e1a5b1ec046a4c8fdc ] If NO_DMA=y: ERROR: "dma_pool_alloc" [drivers/ata/sata_mv.ko] undefined! ERROR: "dmam_pool_create" [drivers/ata/sata_mv.ko] undefined! ERROR: "dma_pool_free" [drivers/ata/sata_mv.ko] undefined! Ad

[PATCH AUTOSEL for-3.18 17/27] ALSA: vx: Fix possible transfer overflow

2017-11-08 Thread Levin, Alexander (Sasha Levin)
From: Takashi Iwai [ Upstream commit 874e1f6fad9a5184b67f4cee37c1335cd2cc5677 ] The pseudo DMA transfer codes in VX222 and VX-pocket driver have a slight bug where they check the buffer boundary wrongly, and may overflow. Also, the zero sample count might be handled badly for the playback (alth

[PATCH AUTOSEL for-3.18 14/27] scsi: lpfc: Correct host name in symbolic_name field

2017-11-08 Thread Levin, Alexander (Sasha Levin)
From: James Smart [ Upstream commit 6c9231f604c2575be24c96d38deb70f145172f92 ] Correct host name in symbolic_name field of nameserver registrations Signed-off-by: Dick Kennedy Signed-off-by: James Smart Reviewed-by: Hannes Reinecke Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levi

[PATCH AUTOSEL for-3.18 01/27] extcon: palmas: Check the parent instance to prevent the NULL

2017-11-08 Thread Levin, Alexander (Sasha Levin)
From: Roger Quadros [ Upstream commit 9fe172b9be532acc23e35ba693700383ab775e66 ] extcon-palmas must be child of palmas and expects parent's drvdata to be valid. Check for non NULL parent drvdata and fail if it is NULL. Not doing so will result in a NULL pointer dereference later in the probe() p

[PATCH AUTOSEL for-3.18 05/27] ata: SATA_HIGHBANK should depend on HAS_DMA

2017-11-08 Thread Levin, Alexander (Sasha Levin)
From: Geert Uytterhoeven [ Upstream commit 2a736e0585e585c2566b5119af8381910a170e44 ] If NO_DMA=y: ERROR: "bad_dma_ops" [drivers/ata/sata_highbank.ko] undefined! Add a dependency on HAS_DMA to fix this. Signed-off-by: Geert Uytterhoeven Signed-off-by: Tejun Heo Signed-off-by: Sasha Levi

[PATCH AUTOSEL for-3.18 04/27] ata: ATA_BMDMA should depend on HAS_DMA

2017-11-08 Thread Levin, Alexander (Sasha Levin)
From: Geert Uytterhoeven [ Upstream commit 7bc7ab1e63dfe004931502f90ce7020e375623da ] If NO_DMA=y: ERROR: "dmam_alloc_coherent" [drivers/ata/libata.ko] undefined! Add a dependency on HAS_DMA to fix this. Signed-off-by: Geert Uytterhoeven Signed-off-by: Tejun Heo Signed-off-by: Sasha Lev

Re: [PATCH] x86/mm: Unbreak modules that rely on external PAGE_KERNEL availability

2017-11-08 Thread Linus Torvalds
On Wed, Nov 8, 2017 at 1:15 PM, Borislav Petkov wrote: > > Right, AFAIRC, the main reason for this being an export was because if > we hid it in a function, you'd have all those function calls as part of > the _PAGE_* macros and that's just crap. Yes, that would be worse. I was thinking that may

[PATCH AUTOSEL for-3.18 13/27] scsi: lpfc: FCoE VPort enable-disable does not bring up the VPort

2017-11-08 Thread Levin, Alexander (Sasha Levin)
From: James Smart [ Upstream commit 104450eb08ca662e6b1d02da11aca9598e978f3e ] FCoE VPort enable-disable does not bring up the VPort. VPI structure needed to be initialized before being re-registered. Signed-off-by: Dick Kennedy Signed-off-by: James Smart Reviewed-by: Hannes Reinecke Signed-

[PATCH AUTOSEL for-4.4 22/39] ALSA: vx: Don't try to update capture stream before running

2017-11-08 Thread Levin, Alexander (Sasha Levin)
From: Takashi Iwai [ Upstream commit ed3c177d960bb5881b945ca6f784868126bb90db ] The update of stream costs significantly, and we should avoid it unless the stream really has started. Check pipe->running flag instead of pipe->prepared. Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --

[PATCH AUTOSEL for-4.4 04/39] ARM: dts: Fix am335x and dm814x scm syscon to probe children

2017-11-08 Thread Levin, Alexander (Sasha Levin)
From: Tony Lindgren [ Upstream commit 1aa09df0854efe16b7a80358a18f0a0bebafd246 ] Without these changes children of the scn syscon won't probe. Signed-off-by: Tony Lindgren Signed-off-by: Sasha Levin --- arch/arm/boot/dts/am33xx.dtsi | 3 ++- arch/arm/boot/dts/dm814x.dtsi | 3 ++- 2 files cha

[PATCH AUTOSEL for-4.4 07/39] ata: ATA_BMDMA should depend on HAS_DMA

2017-11-08 Thread Levin, Alexander (Sasha Levin)
From: Geert Uytterhoeven [ Upstream commit 7bc7ab1e63dfe004931502f90ce7020e375623da ] If NO_DMA=y: ERROR: "dmam_alloc_coherent" [drivers/ata/libata.ko] undefined! Add a dependency on HAS_DMA to fix this. Signed-off-by: Geert Uytterhoeven Signed-off-by: Tejun Heo Signed-off-by: Sasha Lev

[PATCH AUTOSEL for-4.4 05/39] ARM: OMAP2+: Fix init for multiple quirks for the same SoC

2017-11-08 Thread Levin, Alexander (Sasha Levin)
From: Tony Lindgren [ Upstream commit 6e613ebf4405fc09e2a8c16ed193b47f80a3cbed ] It's possible that there are multiple quirks that need to be initialized for the same SoC. Fix the issue by not returning on the first match. Signed-off-by: Tony Lindgren Signed-off-by: Sasha Levin --- arch/arm/

[PATCH AUTOSEL for-4.4 21/39] scsi: lpfc: Clear the VendorVersion in the PLOGI/PLOGI ACC payload

2017-11-08 Thread Levin, Alexander (Sasha Levin)
From: James Smart [ Upstream commit e0165f20447c8ca1d367725ee94d8ec9f38ca275 ] Clear the VendorVersion in the PLOGI/PLOGI ACC payload Vendor version info may have been set on fabric login. Before sending PLOGI payloads, ensure that it's cleared. Signed-off-by: Dick Kennedy Signed-off-by: Jame

[PATCH AUTOSEL for-4.4 24/39] backlight: lcd: Fix race condition during register

2017-11-08 Thread Levin, Alexander (Sasha Levin)
From: Uwe Kleine-König [ Upstream commit cc21942bce652d1a92dae85b785378256e1df1f7 ] Once device_register is called for a device its attributes might be accessed. As the callbacks of a lcd device's attributes make use of the lcd_ops, the respective member must be setup before calling device_regis

[PATCH AUTOSEL for-4.4 29/39] ixgbe: fix AER error handling

2017-11-08 Thread Levin, Alexander (Sasha Levin)
From: Emil Tantilov [ Upstream commit 126db13fa0e6d05c9f94e0125f61e773bd5ab079 ] Make sure that we free the IRQs in ixgbe_io_error_detected() when responding to an PCIe AER error and also restore them when the interface recovers from it. Previously it was possible to trigger BUG_ON() check in f

[PATCH 0/9] Remove use of "gpio-reset" from DT

2017-11-08 Thread Andrew F. Davis
Hello all, I was working on fixing up the tlv320aic31xx driver when I noticed its gpio reset was not working, it was due to this driver looking for "gpio-reset" instead of the usual "reset-gpio". A quick check shows this mistake is rare and only copied by one other audio CODECs: $ git grep "reset

[PATCH AUTOSEL for-4.4 30/39] ixgbe: handle close/suspend race with netif_device_detach/present

2017-11-08 Thread Levin, Alexander (Sasha Levin)
From: Emil Tantilov [ Upstream commit f7f37e7ff2b9b7eff7fbd035569cab35896869a3 ] When an interface is part of a namespace it is possible that ixgbe_close() may be called while __ixgbe_shutdown() is running which ends up in a double free WARN and/or a BUG in free_msi_irqs(). To handle this situa

[PATCH 6/9] ARM: dts: imx: Fix the audio CODEC's reset pin

2017-11-08 Thread Andrew F. Davis
The correct DT property for specifying a GPIO used for reset is "reset-gpio", fix this here. Fixes: 50bffb78e2ee ("ARM: dts: imx: add Gateworks Ventana GW5903 support") Signed-off-by: Andrew F. Davis --- arch/arm/boot/dts/imx6qdl-gw5903.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 5/9] ARM: dts: imx6: RDU2: Fix the audio CODEC's reset pin

2017-11-08 Thread Andrew F. Davis
The correct DT property for specifying a GPIO used for reset is "reset-gpio", fix this here. Fixes: d763762e3b58 ("ARM: dts: imx6: add ZII RDU2 boards") Signed-off-by: Andrew F. Davis --- arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --g

[PATCH 9/9] ASoC: tlv320aic3x: Fix the reset GPIO OF name

2017-11-08 Thread Andrew F. Davis
The correct DT property for specifying a GPIO used for reset is "reset-gpio", fix this here. Fixes: c24fdc886fde ("ASoC: tlv320aic3x: Add device tree bindings") Signed-off-by: Andrew F. Davis --- sound/soc/codecs/tlv320aic3x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/

[PATCH 1/9] ASoC: tlv320aic31xx: Fix typo in DT binding documentation

2017-11-08 Thread Andrew F. Davis
The property used to specify a GPIO intended for reset is "reset-gpio", this binding uses "gpio-reset", as almost all other bindings use the former name this use of the latter is certainly not intended and was a typo. It is not compatible with newer methods used to fetch GPIO pins and to prevent th

[PATCH 3/9] ASoC: cs42l56: bindings: sound: Fix reset GPIO name in example DT binding

2017-11-08 Thread Andrew F. Davis
The binding states the reset GPIO property shall be named "cirrus,gpio-nreset" and this is what the driver looks for, but the example uses "gpio-reset". Fix this here. Fixes: 3bb40619aca8 ("ASoC: cs42l56: bindings: sound: Add bindings for CS42L56 CODEC") Signed-off-by: Andrew F. Davis --- Docu

[PATCH 7/9] ARM: dts: omap3-n900: Fix the audio CODEC's reset pin

2017-11-08 Thread Andrew F. Davis
The correct DT property for specifying a GPIO used for reset is "reset-gpio", fix this here. Fixes: 14e3e295b2b9 ("ARM: dts: omap3-n900: Add TLV320AIC3X support") Signed-off-by: Andrew F. Davis --- arch/arm/boot/dts/omap3-n900.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH 4/9] ARM: dts: am335x-pepper: Fix the audio CODEC's reset pin

2017-11-08 Thread Andrew F. Davis
The correct DT property for specifying a GPIO used for reset is "reset-gpio", fix this here. Fixes: 4341881d0562 ("ARM: dts: Add devicetree for Gumstix Pepper board") Signed-off-by: Andrew F. Davis --- arch/arm/boot/dts/am335x-pepper.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

[PATCH 2/9] ASoC: tlv320aic3x: Fix typo in DT binding documentation

2017-11-08 Thread Andrew F. Davis
The property used to specify a GPIO intended for reset is "reset-gpio", this binding uses "gpio-reset", as almost all other bindings use the former name this use of the latter is certainly not intended and was a typo. It is not compatible with newer methods used to fetch GPIO pins and to prevent th

[PATCH 8/9] ASoC: tlv320aic31xx: Fix the reset GPIO OF name

2017-11-08 Thread Andrew F. Davis
The correct DT property for specifying a GPIO used for reset is "reset-gpio", fix this here. Fixes: e00447fafbf7 ("ASoC: tlv320aic31xx: Add basic codec driver implementation") Signed-off-by: Andrew F. Davis --- sound/soc/codecs/tlv320aic31xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH AUTOSEL for-4.4 11/39] igb: reset the PHY before reading the PHY ID

2017-11-08 Thread Levin, Alexander (Sasha Levin)
From: Aaron Sierra [ Upstream commit 182785335447957409282ca745aa5bc3968facee ] Several people have reported firmware leaving the I210/I211 PHY's page select register set to something other than the default of zero. This causes the first accesses, PHY_IDx register reads, to access something else

[PATCH AUTOSEL for-4.4 23/39] ALSA: vx: Fix possible transfer overflow

2017-11-08 Thread Levin, Alexander (Sasha Levin)
From: Takashi Iwai [ Upstream commit 874e1f6fad9a5184b67f4cee37c1335cd2cc5677 ] The pseudo DMA transfer codes in VX222 and VX-pocket driver have a slight bug where they check the buffer boundary wrongly, and may overflow. Also, the zero sample count might be handled badly for the playback (alth

[PATCH AUTOSEL for-4.4 08/39] ata: SATA_HIGHBANK should depend on HAS_DMA

2017-11-08 Thread Levin, Alexander (Sasha Levin)
From: Geert Uytterhoeven [ Upstream commit 2a736e0585e585c2566b5119af8381910a170e44 ] If NO_DMA=y: ERROR: "bad_dma_ops" [drivers/ata/sata_highbank.ko] undefined! Add a dependency on HAS_DMA to fix this. Signed-off-by: Geert Uytterhoeven Signed-off-by: Tejun Heo Signed-off-by: Sasha Levi

[PATCH AUTOSEL for-4.4 16/39] staging: rtl8188eu: fix incorrect ERROR tags from logs

2017-11-08 Thread Levin, Alexander (Sasha Levin)
From: Galo Navarro [ Upstream commit 401579c22ccbcb54244494069973e64b1fe980d2 ] Several lifecycle events in the rtl8188eu driver are logged using the DBG_88E_LEVEL macro from rtw_debug.h, which is tagged as ERROR regardless of the actual level. Below are dmesg excerpts after loading and unloadi

[PATCH AUTOSEL for-4.4 18/39] scsi: lpfc: FCoE VPort enable-disable does not bring up the VPort

2017-11-08 Thread Levin, Alexander (Sasha Levin)
From: James Smart [ Upstream commit 104450eb08ca662e6b1d02da11aca9598e978f3e ] FCoE VPort enable-disable does not bring up the VPort. VPI structure needed to be initialized before being re-registered. Signed-off-by: Dick Kennedy Signed-off-by: James Smart Reviewed-by: Hannes Reinecke Signed-

Re: [PATCH 3/6] target: Fix quiese during transport_write_pending_qf endless loop

2017-11-08 Thread Bryant G. Ly
> From: Nicholas Bellinger > > This patch fixes a potential end-less loop during QUEUE_FULL, > where cmd->se_tfo->write_pending() callback fails repeatedly > but __transport_wait_for_tasks() has already been invoked to > quiese the outstanding se_cmd descriptor. > > To address this bug, this patc

Re: [PATCH 1/6] target: Fix QUEUE_FULL + SCSI task attribute handling

2017-11-08 Thread Bryant G. Ly
> From: Nicholas Bellinger > > This patch fixes a bug during QUEUE_FULL where transport_complete_qf() > calls transport_complete_task_attr() after it's already been invoked > by target_complete_ok_work() or transport_generic_request_failure() > during initial completion, preceeding QUEUE_FULL. >

[PATCH AUTOSEL for-4.4 17/39] scsi: lpfc: Add missing memory barrier

2017-11-08 Thread Levin, Alexander (Sasha Levin)
From: James Smart [ Upstream commit 6b3b3bdb83b4ad51252d21bb13596db879e51850 ] On loosely ordered memory systems (PPC for example), the WQE elements were being updated in memory, but not necessarily flushed before the separate doorbell was written to hw which would cause hw to dma the WQE elemen

[PATCH] Kernel debugging: omap: print warning if CONFIG_DEBUG_LL is enabled

2017-11-08 Thread H. Nikolaus Schaller
commit d2b310b0234c ("ARM: debug: Use generic 8250 debug_ll for omap2 and omap3/4/5 common uarts") commit fc23beb8a577 ("ARM: debug: Use generic 8250 debug_ll for omap3/4/5") switched to generic 8250 debug_ll code which seems to be incompatible with at least OMAP5 boards (OMAP5EVM, Pyra) if CONFI

Re: drivers/x86: add thinkpad-wmi

2017-11-08 Thread Darren Hart
On Tue, Nov 07, 2017 at 02:46:19PM +0200, Andy Shevchenko wrote: > On Mon, Nov 6, 2017 at 8:16 PM, wrote: > >> On Tue, Oct 24, 2017 at 10:59 PM, Mario Limonciello > >> wrote: > > Mario, thanks for your comments on the subject. > > >> > The hope is that eventually drivers on the WMI bus don't n

[PATCH 0/2] tipc: Fine-tuning for three function implementations

2017-11-08 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 8 Nov 2017 22:30:03 +0100 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Use common error handling code in tipc_server_start() Improve a size determination in two functions net/tipc/server.c | 25

Re: [PATCH 2/3] printk: Add /sys/consoles/ interface

2017-11-08 Thread Calvin Owens
On 11/03/2017 07:32 AM, Kroah-Hartman wrote: On Fri, Nov 03, 2017 at 03:21:14PM +0100, Petr Mladek wrote: On Thu 2017-09-28 17:43:56, Calvin Owens wrote: This adds a new sysfs interface that contains a directory for each console registered on the system. Each directory contains a single "loglev

[PATCH 1/2] tipc: Use common error handling code in tipc_server_start()

2017-11-08 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 8 Nov 2017 22:18:35 +0100 * Improve jump targets so that a bit of exception handling can be better reused at the end of this function. * Adjust two condition checks. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

[PATCH 2/2] tipc: Improve a size determination in two functions

2017-11-08 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 8 Nov 2017 22:23:07 +0100 Replace the specification of data structures by pointer dereferences as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. This issue was detect

Re: [PATCH 8/9] ASoC: tlv320aic31xx: Fix the reset GPIO OF name

2017-11-08 Thread Mark Brown
On Wed, Nov 08, 2017 at 03:25:04PM -0600, Andrew F. Davis wrote: > - ret = of_get_named_gpio(np, "gpio-reset", 0); > + ret = of_get_named_gpio(np, "reset-gpio", 0); This is obviously an incompatible change in the binding which will break any production DTs relying on the current behaviour

[PATCH x86/urgent] bpf: emulate push insns for uprobe on x86

2017-11-08 Thread Yonghong Song
Uprobe is a tracing mechanism for userspace programs. Typical uprobe will incur overhead of two traps. First trap is caused by replaced trap insn, and the second trap is to execute the original displaced insn in user space. To reduce the overhead, kernel provides hooks for architectures to emulate

Re: [PATCH] x86/mm: Unbreak modules that rely on external PAGE_KERNEL availability

2017-11-08 Thread Tom Lendacky
On 11/8/2017 3:23 PM, Linus Torvalds wrote: On Wed, Nov 8, 2017 at 1:15 PM, Borislav Petkov wrote: Right, AFAIRC, the main reason for this being an export was because if we hid it in a function, you'd have all those function calls as part of the _PAGE_* macros and that's just crap. Yes, that

Re: [PATCH AUTOSEL for-4.9 04/53] spi: imx: adjust watermark level according to transfer length

2017-11-08 Thread Levin, Alexander (Sasha Levin)
On Wed, Nov 08, 2017 at 08:57:52PM +, Mark Brown wrote: >On Wed, Nov 08, 2017 at 08:49:55PM +, Levin, Alexander (Sasha Levin) wrote: >> From: Jiada Wang >> >> [ Upstream commit 66459c5a50a787c474b734b586328f7111ab6df0 ] >> >> Previously DMA watermark level is configured to fifosize/2, >> D

Re: [PATCH v2 2/5] soc: qcom: Introduce QMI helpers

2017-11-08 Thread Chris Lew
Hi Bjorn, Found a minor typo. On 11/6/2017 9:20 PM, Bjorn Andersson wrote: [..] +ssize_t qmi_send_indication(struct qmi_handle *qmi, struct sockaddr_qrtr *sq, + int msg_id, size_t len, struct qmi_elem_info *ei, + const void *c_struct) +{ +

Re: [PATCH] x86/mm: Unbreak modules that rely on external PAGE_KERNEL availability

2017-11-08 Thread Borislav Petkov
On Wed, Nov 08, 2017 at 01:23:37PM -0800, Linus Torvalds wrote: > I was thinking that maybe we could have a fixed "encrypt" bit in our > PTE, and then replace that "software bit" with whatever the real > hardware mask is (if any). Right, I don't think that should be hard, unless I'm missing anythi

Re: [PATCH] x86/mm: Unbreak modules that rely on external PAGE_KERNEL availability

2017-11-08 Thread Linus Torvalds
On Wed, Nov 8, 2017 at 1:23 PM, Linus Torvalds wrote: > > So _this_ is the underlying problem: > > #define _PAGE_ENC (_AT(pteval_t, sme_me_mask)) > > because that is simply not how the _PAGE_xyz macros should work! > > So it should have been a fixed bit to begin with, and the dynamic part > sho

Re: [PATCH v5 3/3] KVM: nVMX: Fix mmu context after VMLAUNCH/VMRESUME failure

2017-11-08 Thread Jim Mattson
I realize now that there are actually many other problems with deferring some control field checks to the hardware VM-entry of vmcs02. When there is an invalid control field, the vCPU should just fall through to the next instruction, without any state modifiation other than the ALU flags and the VM

x86: CR4 update when IRQs are enabled

2017-11-08 Thread Nadav Amit
I am puzzled by the comment in tlb_state.cr4 , which says: /* * Access to this CR4 shadow and to H/W CR4 is protected by * disabling interrupts when modifying either one. */ This does not seem to be true and adding a warning to CR4 writes when !irqs_disabled() i

Re: [PATCH 1/4] Add a function to start/reduce a timer

2017-11-08 Thread Thomas Gleixner
On Mon, 30 Oct 2017, David Howells wrote: > Add a function, similar to mod_timer(), that will start a timer it isn't > running and will modify it if it is running and has an expiry time longer > than the new time. If the timer is running with an expiry time that's the > same or sooner, no change

Re: [PATCH 8/9] ASoC: tlv320aic31xx: Fix the reset GPIO OF name

2017-11-08 Thread Andrew F. Davis
On 11/08/2017 03:36 PM, Mark Brown wrote: > On Wed, Nov 08, 2017 at 03:25:04PM -0600, Andrew F. Davis wrote: > >> -ret = of_get_named_gpio(np, "gpio-reset", 0); >> +ret = of_get_named_gpio(np, "reset-gpio", 0); > > This is obviously an incompatible change in the binding which will break >

[PATCH] RISC-V: remove spin_unlock_wait()

2017-11-08 Thread Palmer Dabbelt
This was removed from the other architectures in commit 952111d7db02 ("arch: Remove spin_unlock_wait() arch-specific definitions"). I don't want to rebase this into our outstanding patches because they've already been reviewed, so I'm going to treat this as a separate patch. Signed-off-by: Palmer

Re: [PATCH] x86/mm: Unbreak modules that rely on external PAGE_KERNEL availability

2017-11-08 Thread Tom Lendacky
On 11/8/2017 3:45 PM, Borislav Petkov wrote: On Wed, Nov 08, 2017 at 01:23:37PM -0800, Linus Torvalds wrote: I was thinking that maybe we could have a fixed "encrypt" bit in our PTE, and then replace that "software bit" with whatever the real hardware mask is (if any). Right, I don't think tha

Re: [PATCH v11 3/5] mfd: Add driver for RAVE Supervisory Processor

2017-11-08 Thread kbuild test robot
Hi Andrey, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.14-rc8] [cannot apply to next-20171108] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https

Re: [PATCH AUTOSEL for-4.9 04/53] spi: imx: adjust watermark level according to transfer length

2017-11-08 Thread Mark Brown
On Wed, Nov 08, 2017 at 09:39:11PM +, Levin, Alexander (Sasha Levin) wrote: > >On Wed, Nov 08, 2017 at 08:49:55PM +, Levin, Alexander (Sasha Levin) > >wrote: > >This seems like an optimization not a bug fix... > Hm, is it? I read it as "DMA is not being used at all even though we > though

Re: [PATCH 8/9] ASoC: tlv320aic31xx: Fix the reset GPIO OF name

2017-11-08 Thread Mark Brown
On Wed, Nov 08, 2017 at 03:53:51PM -0600, Andrew F. Davis wrote: > On 11/08/2017 03:36 PM, Mark Brown wrote: > > On Wed, Nov 08, 2017 at 03:25:04PM -0600, Andrew F. Davis wrote: > > This is obviously an incompatible change in the binding which will break > > any production DTs relying on the curre

Re: [PATCH] Kernel debugging: omap: print warning if CONFIG_DEBUG_LL is enabled

2017-11-08 Thread Tony Lindgren
* H. Nikolaus Schaller [171108 21:32]: > commit d2b310b0234c ("ARM: debug: Use generic 8250 debug_ll for omap2 and > omap3/4/5 common uarts") > commit fc23beb8a577 ("ARM: debug: Use generic 8250 debug_ll for omap3/4/5") > > switched to generic 8250 debug_ll code which seems to be incompatible >

Re: [RFC PATCH v10 5/7] PCI: Make pci_platform_pm_ops's callbacks optional

2017-11-08 Thread Rafael J. Wysocki
On Friday, October 27, 2017 9:26:10 AM CET Jeffy Chen wrote: > Allow platforms not to provide some of the pci_platform_pm_ops's > callbacks. So? What exactly is wrong with having empty ops in there? Is it really better to have everyone do extra checks every time an op is invoked even when all of

[RFC 4/6] lib/vsprintf.c: add fmtcheck utility

2017-11-08 Thread Rasmus Villemoes
We have a few places in the kernel where a *printf function is used with a non-constant format string, making the ordinary static type checking done by gcc et al. impossible. Some things can still be caught at build time with appropriate instrumentation (I'm sure one can do much better than the for

[RFC 0/6] some compile- and run-time format checking

2017-11-08 Thread Rasmus Villemoes
Consider these strictly RFC/POC. I tried resurrecting my format_template plugin from two years ago, and it rebased pretty cleanly. It also compiles with gcc 6.3, and has the expected effect when one tries to trigger it, so it seems to work ok (I think there was some build bot issue back then, mayb

[RFC 3/6] compiler.h: add __attribute__((format_arg)) shorthand

2017-11-08 Thread Rasmus Villemoes
The __format_arg attribute tells gcc that it can use a specific argument to the annotated function as the format string for the purpose of type-checking a surrounding __printf function call, e.g. sprintf(buf, fmtcheck(what->ever, "%d %lx", 0), i, m) makes gcc check that i and m are indeed an in

[RFC 6/6] lib/test_printf.c: add a few fmtcheck() test cases

2017-11-08 Thread Rasmus Villemoes
It should be trivial to add more test cases, once we figure out the exact rules for being compatible or not. Perhaps we'll have to extend the struct test with a flags element if we add flags that affect the return value. Signed-off-by: Rasmus Villemoes --- lib/test_printf.c | 41

[RFC 5/6] kernel.h: implement fmtmatch() wrapper around fmtcheck()

2017-11-08 Thread Rasmus Villemoes
I couldn't come up with a better name, suggestions welcome. Some users may prefer to EINVAL rather than using the the template as a fallback for printf'ing. fmtmatch() is simply a shorthand for fmtcheck(a, b, c) == a. Signed-off-by: Rasmus Villemoes --- include/linux/kernel.h | 7 +++ 1 fil

[RFC 2/6] compiler.h: add __format_template

2017-11-08 Thread Rasmus Villemoes
Most format strings in the kernel are explicit string literals at the use site and can thus be checked by gcc and other static checkers. There are cases, however, where the format string comes from some struct member and is implicitly assumed to contain certain specifiers. A gcc plugin provides th

[RFC 1/6] plugins: implement format_template attribute

2017-11-08 Thread Rasmus Villemoes
Most format strings in the kernel are string literals, so the compiler and other static analyzers can do type checking. This plugin covers a few of the remaining cases, by introducing a format_template attribute. Consider struct usb_class_driver. Its member 'name' is used as a format string in usb

Re: [RFC PATCH v10 6/7] PCI / PM: Move acpi wakeup code to pci core

2017-11-08 Thread Rafael J. Wysocki
On Friday, October 27, 2017 9:26:11 AM CET Jeffy Chen wrote: > Move acpi wakeup code to pci core as pci_set_wakeup(), so that other > platforms could reuse it. What exactly do you want to reuse? It looks like that's just several lines of code in acpi_pci_wakeup() and acpi_pci_propagate_wakeup() w

linux-next: build warning after merge of the overlayfs tree

2017-11-08 Thread Stephen Rothwell
Hi Miklos, After merging the overlayfs tree, today's linux-next build (powerpc ppc64_defconfig) produced this warning: fs/overlayfs/super.c: In function 'ovl_fill_super': fs/overlayfs/super.c:1070:25: warning: 'numlower' may be used uninitialized in this function [-Wmaybe-uninitialized] unsign

Re: [PATCH] Kernel debugging: omap: print warning if CONFIG_DEBUG_LL is enabled

2017-11-08 Thread Russell King - ARM Linux
On Wed, Nov 08, 2017 at 02:27:55PM -0800, Tony Lindgren wrote: > * H. Nikolaus Schaller [171108 21:32]: > > commit d2b310b0234c ("ARM: debug: Use generic 8250 debug_ll for omap2 and > > omap3/4/5 common uarts") > > commit fc23beb8a577 ("ARM: debug: Use generic 8250 debug_ll for omap3/4/5") > > >

Re: [PATCH] Kernel debugging: omap: print warning if CONFIG_DEBUG_LL is enabled

2017-11-08 Thread Russell King - ARM Linux
On Wed, Nov 08, 2017 at 10:36:04PM +, Russell King - ARM Linux wrote: > We don't need a compiler warning there, we probably need better help > text against DEBUG_LL and against EARLY_PRINTK. Actually, this is already clearly stated against DEBUG_LL: Note that selecting this option w

Re: [PATCH v11 4/5] watchdog: Add RAVE SP watchdog driver

2017-11-08 Thread kbuild test robot
Hi Andrey, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.14-rc8] [cannot apply to next-20171108] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https

linux-next: manual merge of the vfs tree with the btrfs-kdave tree

2017-11-08 Thread Stephen Rothwell
Hi Al, Today's linux-next merge of the vfs tree got a conflict in: fs/btrfs/super.c between commit: c2a6acf1b800 ("btrfs: cleanup btrfs_mount() using mount_root()") from the btrfs-kdave tree and commit: c2c6773f9942 ("VFS: Roll out mount flag differentiation (MS_* -> SB_*) generally")

Re: [PATCH AUTOSEL for-4.9 04/53] spi: imx: adjust watermark level according to transfer length

2017-11-08 Thread Levin, Alexander (Sasha Levin)
On Wed, Nov 08, 2017 at 10:11:02PM +, Mark Brown wrote: >On Wed, Nov 08, 2017 at 09:39:11PM +, Levin, Alexander (Sasha Levin) wrote: >> >On Wed, Nov 08, 2017 at 08:49:55PM +, Levin, Alexander (Sasha Levin) >> >wrote: >> >This seems like an optimization not a bug fix... > >> Hm, is it?

Re: [kernel-hardening] [PATCH v4] scripts: add leaking_addresses.pl

2017-11-08 Thread Tobin C. Harding
On Wed, Nov 08, 2017 at 11:10:56PM +1100, Michael Ellerman wrote: > "Tobin C. Harding" writes: [snip] Hi Michael, I'm working an adding support for ppc64 to leaking_addresses.pl, I've added the kernel address regular expression that you suggested. I'd like to add the false positive for vsyscall

Re: [PATCH v6 0/9] i2c: document DMA handling and add helpers for it

2017-11-08 Thread Mark Brown
On Sat, Nov 04, 2017 at 09:20:00PM +0100, Wolfram Sang wrote: > While previous versions until v3 tried to magically apply bounce buffers when > needed, it became clear that detecting DMA safe buffers is too fragile. This > approach is now opt-in, a DMA_SAFE flag needs to be set on an i2c_msg. The

Re: [PATCH 1/5] kobject: add SPDX identifiers to all kobject files

2017-11-08 Thread Rob Herring
On Tue, Nov 7, 2017 at 10:30 AM, Greg Kroah-Hartman wrote: > It's good to have SPDX identifiers in all files to make it easier to > audit the kernel tree for correct licenses. > > Update the kobject files files with the correct SPDX license identifier > based on the license text in the file itself

linux-next: manual merge of the vfs tree with the ext3 tree

2017-11-08 Thread Stephen Rothwell
Hi Al, Today's linux-next merge of the vfs tree got a conflict in: fs/ext2/super.c between commits: 088519572ca8 ("ext2: Parse mount options into a dedicated structure") 8af634ff9e5c ("ext2: Fix possible sleep in atomic during mount option parsing") from the ext3 tree and commit: c2c

linux-next: manual merge of the vfs tree with the f2fs tree

2017-11-08 Thread Stephen Rothwell
Hi Al, Today's linux-next merge of the vfs tree got a conflict in: fs/f2fs/checkpoint.c between commits: 1f227a3e215d ("f2fs: stop all the operations by cp_error flag") ea6767337f86 ("f2fs: support quota sys files") from the f2fs tree and commit: c2c6773f9942 ("VFS: Roll out mount fla

linux-next: manual merge of the vfs tree with the f2fs tree

2017-11-08 Thread Stephen Rothwell
Hi Al, Today's linux-next merge of the vfs tree got a conflict in: fs/f2fs/super.c between commit: ea6767337f86 ("f2fs: support quota sys files") from the f2fs tree and commit: c2c6773f9942 ("VFS: Roll out mount flag differentiation (MS_* -> SB_*) generally") from the vfs tree. I fix

Re: [GIT PULL] License cleanup: add SPDX license identifiers to some kernel files

2017-11-08 Thread Rob Herring
On Thu, Nov 2, 2017 at 10:16 AM, Greg KH wrote: > [resend without the full diffstat as lkml and some email systems didn't > like to see emails with 12k lines...] > > Hi, > > As discussed at the Maintainers Summit last week, here is a pull request > that adds some SPDX license identifiers to three

Re: [PATCH] aacraid: use timespec64 instead of timeval

2017-11-08 Thread Martin K. Petersen
Arnd, > aacraid passes the current time to the firmware in one of two ways, > either as year/month/day/... or as 32-bit unsigned seconds. > > The first one is broken on 32-bit architectures as it cannot go past > year 2038. Using timespec64 here makes it behave properly on both > 32-bit and 64-bi

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