[PATCH AUTOSEL 4.19 04/27] afs: Fix loop index mixup in afs_deliver_vl_get_entry_by_name_u()

2019-08-20 Thread Sasha Levin
From: Marc Dionne [ Upstream commit 4a46fdba449a5cd890271df5a9e23927d519ed00 ] afs_deliver_vl_get_entry_by_name_u() scans through the vl entry received from the volume location server and builds a return list containing the sites that are currently valid. When assigning values for the return

[PATCH AUTOSEL 4.19 02/27] nvme-multipath: revalidate nvme_ns_head gendisk in nvme_validate_ns

2019-08-20 Thread Sasha Levin
From: Anthony Iliopoulos [ Upstream commit fab7772bfbcfe8fb8e3e352a6a8fcaf044cded17 ] When CONFIG_NVME_MULTIPATH is set, only the hidden gendisk associated with the per-controller ns is run through revalidate_disk when a rescan is triggered, while the visible blockdev never gets its size

[PATCH AUTOSEL 5.2 27/44] dma-direct: don't truncate dma_required_mask to bus addressing capabilities

2019-08-20 Thread Sasha Levin
From: Lucas Stach [ Upstream commit d8ad55538abe443919e20e0bb996561bca9cad84 ] The dma required_mask needs to reflect the actual addressing capabilities needed to handle the whole system RAM. When truncated down to the bus addressing capabilities dma_addressing_limited() will incorrectly signal

[PATCH AUTOSEL 5.2 35/44] xen/blkback: fix memory leaks

2019-08-20 Thread Sasha Levin
From: Wenwen Wang [ Upstream commit ae78ca3cf3d9e9f914bfcd0bc5c389ff18b9c2e0 ] In read_per_ring_refs(), after 'req' and related memory regions are allocated, xen_blkif_map() is invoked to map the shared frame, irq, and etc. However, if this mapping process fails, no cleanup is performed,

[PATCH AUTOSEL 5.2 38/44] i2c: rcar: avoid race when unregistering slave client

2019-08-20 Thread Sasha Levin
From: Wolfram Sang [ Upstream commit 7b814d852af6944657c2961039f404c4490771c0 ] After we disabled interrupts, there might still be an active one running. Sync before clearing the pointer to the slave device. Fixes: de20d1857dd6 ("i2c: rcar: add slave support") Reported-by: Krzysztof Adamski

[PATCH AUTOSEL 4.19 11/27] soundwire: cadence_master: fix register definition for SLAVE_STATE

2019-08-20 Thread Sasha Levin
From: Pierre-Louis Bossart [ Upstream commit b07dd9b400981f487940a4d84292d3a0e7cd9362 ] wrong prefix and wrong macro. Signed-off-by: Pierre-Louis Bossart Link: https://lore.kernel.org/r/20190725234032.21152-14-pierre-louis.boss...@linux.intel.com Signed-off-by: Vinod Koul Signed-off-by:

[PATCH AUTOSEL 4.19 09/27] nvme: fix a possible deadlock when passthru commands sent to a multipath device

2019-08-20 Thread Sasha Levin
From: Sagi Grimberg [ Upstream commit b9156daeb1601d69007b7e50efcf89d69d72ec1d ] When the user issues a command with side effects, we will end up freezing the namespace request queue when updating disk info (and the same for the corresponding mpath disk node). However, we are not freezing the

[PATCH AUTOSEL 4.19 05/27] fs: afs: Fix a possible null-pointer dereference in afs_put_read()

2019-08-20 Thread Sasha Levin
From: Jia-Ju Bai [ Upstream commit a6eed4ab5dd4bfb696c1a3f49742b8d1846a66a0 ] In afs_read_dir(), there is an if statement on line 255 to check whether req->pages is NULL: if (!req->pages) goto error; If req->pages is NULL, afs_put_read() on line 337 is executed. In

[PATCH AUTOSEL 4.19 13/27] iio: adc: max9611: Fix temperature reading in probe

2019-08-20 Thread Sasha Levin
From: Jacopo Mondi [ Upstream commit b9ddd5091160793ee9fac10da765cf3f53d2aaf0 ] The max9611 driver reads the die temperature at probe time to validate the communication channel. Use the actual read value to perform the test instead of the read function return value, which was mistakenly used so

[PATCH AUTOSEL 4.19 19/27] usb: gadget: mass_storage: Fix races between fsg_disable and fsg_set_alt

2019-08-20 Thread Sasha Levin
From: Benjamin Herrenschmidt [ Upstream commit 4a56a478a525d6427be90753451c40e1327caa1a ] If fsg_disable() and fsg_set_alt() are called too closely to each other (for example due to a quick reset/reconnect), what can happen is that fsg_set_alt sets common->new_fsg from an interrupt while

Re: [PATCH 4/9] drivers: ata: ahci_xgene: use devm_platform_ioremap_resource()

2019-08-20 Thread Bartlomiej Zolnierkiewicz
On 8/20/19 2:35 PM, Enrico Weigelt, metux IT consult wrote: > Use the new helper that wraps the calls to platform_get_resource() > and devm_ioremap_resource() together. > > Signed-off-by: Enrico Weigelt, metux IT consult > --- > drivers/ata/ahci_xgene.c | 21 +++-- > 1 file

[PATCH AUTOSEL 4.19 17/27] iommu/dma: Handle SG length overflow better

2019-08-20 Thread Sasha Levin
From: Robin Murphy [ Upstream commit ab2cbeb0ed301a9f0460078e91b09f39958212ef ] Since scatterlist dimensions are all unsigned ints, in the relatively rare cases where a device's max_segment_size is set to UINT_MAX, then the "cur_len + s_length <= max_len" check in __finalise_sg() will always

[PATCH AUTOSEL 4.19 10/27] nvme-pci: Fix async probe remove race

2019-08-20 Thread Sasha Levin
From: Keith Busch [ Upstream commit bd46a90634302bfe791e93ad5496f98f165f7ae0 ] Ensure the controller is not in the NEW state when nvme_probe() exits. This will always allow a subsequent nvme_remove() to set the state to DELETING, fixing a potential race between the initial asynchronous probe

[PATCH AUTOSEL 4.19 14/27] auxdisplay: panel: need to delete scan_timer when misc_register fails in panel_attach

2019-08-20 Thread Sasha Levin
From: zhengbin [ Upstream commit b33d567560c1aadf3033290d74d4fd67af47aa61 ] In panel_attach, if misc_register fails, we need to delete scan_timer, which was setup in keypad_init->init_scan_timer. Reported-by: Hulk Robot Signed-off-by: zhengbin Signed-off-by: Miguel Ojeda Signed-off-by:

[PATCH AUTOSEL 4.19 27/27] tools: hv: fix KVP and VSS daemons exit code

2019-08-20 Thread Sasha Levin
From: Adrian Vladu [ Upstream commit b0995156071b0ff29a5902964a9dc8cfad6f81c0 ] HyperV KVP and VSS daemons should exit with 0 when the '--help' or '-h' flags are used. Signed-off-by: Adrian Vladu Cc: "K. Y. Srinivasan" Cc: Haiyang Zhang Cc: Stephen Hemminger Cc: Sasha Levin Cc:

[PATCH AUTOSEL 4.19 26/27] tools: hv: fixed Python pep8/flake8 warnings for lsvmbus

2019-08-20 Thread Sasha Levin
From: Adrian Vladu [ Upstream commit 5912e791f3018de0a007c8cfa9cb38c97d3e5f5c ] Fixed pep8/flake8 python style code for lsvmbus tool. The TAB indentation was on purpose ignored (pep8 rule W191) to make sure the code is complying with the Linux code guideline. The following command doe not show

[PATCH AUTOSEL 4.14 03/12] auxdisplay: panel: need to delete scan_timer when misc_register fails in panel_attach

2019-08-20 Thread Sasha Levin
From: zhengbin [ Upstream commit b33d567560c1aadf3033290d74d4fd67af47aa61 ] In panel_attach, if misc_register fails, we need to delete scan_timer, which was setup in keypad_init->init_scan_timer. Reported-by: Hulk Robot Signed-off-by: zhengbin Signed-off-by: Miguel Ojeda Signed-off-by:

[PATCH AUTOSEL 4.19 21/27] arm64: cpufeature: Don't treat granule sizes as strict

2019-08-20 Thread Sasha Levin
From: Will Deacon [ Upstream commit 5717fe5ab38f9ccb32718bcb03bea68409c9cce4 ] If a CPU doesn't support the page size for which the kernel is configured, then we will complain and refuse to bring it online. For secondary CPUs (and the boot CPU on a system booting with EFI), we will also print

Re: [PATCH 3/9] drivers: ata: ahci_tegra: use devm_platform_ioremap_resource()

2019-08-20 Thread Bartlomiej Zolnierkiewicz
On 8/20/19 2:35 PM, Enrico Weigelt, metux IT consult wrote: > Use the new helper that wraps the calls to platform_get_resource() > and devm_ioremap_resource() together. > > Signed-off-by: Enrico Weigelt, metux IT consult > --- > drivers/ata/ahci_tegra.c | 13 + > 1 file changed, 5

[PATCH AUTOSEL 4.9 1/7] dmaengine: ste_dma40: fix unneeded variable warning

2019-08-20 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit 5d6fb560729a5d5554e23db8d00eb57cd0021083 ] clang-9 points out that there are two variables that depending on the configuration may only be used in an ARRAY_SIZE() expression but not referenced: drivers/dma/ste_dma40.c:145:12: error: variable

Re: [PATCH 2/4] x86/vmware: Add a header file for hypercall definitions

2019-08-20 Thread Thomas Gleixner
On Tue, 20 Aug 2019, Thomas Hellström (VMware) wrote: > On 8/20/19 1:32 PM, Peter Zijlstra wrote: > > On Sun, Aug 18, 2019 at 04:33:14PM +0200, Thomas Hellström (VMware) wrote: > > > > > +#define VMWARE_HYPERCALL \ > > > + ALTERNATIVE_2(".byte 0xed", \ > > > + ".byte 0x0f, 0x01,

[PATCH AUTOSEL 4.14 10/12] drm/ast: Fixed reboot test may cause system hanged

2019-08-20 Thread Sasha Levin
From: "Y.C. Chen" [ Upstream commit 05b439711f6ff8700e8660f97a1179650778b9cb ] There is another thread still access standard VGA I/O while loading drm driver. Disable standard VGA I/O decode to avoid this issue. Signed-off-by: Y.C. Chen Reviewed-by: Benjamin Herrenschmidt Signed-off-by: Dave

[PATCH AUTOSEL 4.14 08/12] i2c: rcar: avoid race when unregistering slave client

2019-08-20 Thread Sasha Levin
From: Wolfram Sang [ Upstream commit 7b814d852af6944657c2961039f404c4490771c0 ] After we disabled interrupts, there might still be an active one running. Sync before clearing the pointer to the slave device. Fixes: de20d1857dd6 ("i2c: rcar: add slave support") Reported-by: Krzysztof Adamski

[PATCH AUTOSEL 4.14 09/12] i2c: emev2: avoid race when unregistering slave client

2019-08-20 Thread Sasha Levin
From: Wolfram Sang [ Upstream commit d7437fc0d8291181debe032671a289b6bd93f46f ] After we disabled interrupts, there might still be an active one running. Sync before clearing the pointer to the slave device. Fixes: c31d0a00021d ("i2c: emev2: add slave support") Reported-by: Krzysztof Adamski

Re: [PATCH v2 2/3] dt-bindings: PCI: intel: Add YAML schemas for the PCIe RC controller

2019-08-20 Thread Rob Herring
On Tue, Aug 20, 2019 at 4:40 AM Dilip Kota wrote: > > The Intel PCIe RC controller is Synopsys Designware > based PCIe core. Add YAML schemas for PCIe in RC mode > present in Intel Universal Gateway soc. Run 'make dt_binding_check' and fix all the warnings. > > Signed-off-by: Dilip Kota > ---

Re: [PATCH RESEND v4 7/9] KVM: VMX: Handle SPP induced vmexit and page fault

2019-08-20 Thread Yang Weijiang
On Mon, Aug 19, 2019 at 05:04:23PM +0200, Paolo Bonzini wrote: > On 19/08/19 16:43, Paolo Bonzini wrote: > >> + /* > >> + * Record write protect fault caused by > >> + * Sub-page Protection, let VMI decide > >> + * the next

[PATCH AUTOSEL 4.14 06/12] usb: gadget: mass_storage: Fix races between fsg_disable and fsg_set_alt

2019-08-20 Thread Sasha Levin
From: Benjamin Herrenschmidt [ Upstream commit 4a56a478a525d6427be90753451c40e1327caa1a ] If fsg_disable() and fsg_set_alt() are called too closely to each other (for example due to a quick reset/reconnect), what can happen is that fsg_set_alt sets common->new_fsg from an interrupt while

[PATCH AUTOSEL 4.14 12/12] tools: hv: fix KVP and VSS daemons exit code

2019-08-20 Thread Sasha Levin
From: Adrian Vladu [ Upstream commit b0995156071b0ff29a5902964a9dc8cfad6f81c0 ] HyperV KVP and VSS daemons should exit with 0 when the '--help' or '-h' flags are used. Signed-off-by: Adrian Vladu Cc: "K. Y. Srinivasan" Cc: Haiyang Zhang Cc: Stephen Hemminger Cc: Sasha Levin Cc:

[PATCH AUTOSEL 4.9 5/7] i2c: emev2: avoid race when unregistering slave client

2019-08-20 Thread Sasha Levin
From: Wolfram Sang [ Upstream commit d7437fc0d8291181debe032671a289b6bd93f46f ] After we disabled interrupts, there might still be an active one running. Sync before clearing the pointer to the slave device. Fixes: c31d0a00021d ("i2c: emev2: add slave support") Reported-by: Krzysztof Adamski

[PATCH AUTOSEL 4.9 6/7] usb: host: fotg2: restart hcd after port reset

2019-08-20 Thread Sasha Levin
From: Hans Ulli Kroll [ Upstream commit 5ffe59ef754cc39ab2f275dc277732f4 ] On the Gemini SoC the FOTG2 stalls after port reset so restart the HCD after each port reset. Signed-off-by: Hans Ulli Kroll Signed-off-by: Linus Walleij Link:

[PATCH AUTOSEL 4.4 1/4] dmaengine: ste_dma40: fix unneeded variable warning

2019-08-20 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit 5d6fb560729a5d5554e23db8d00eb57cd0021083 ] clang-9 points out that there are two variables that depending on the configuration may only be used in an ARRAY_SIZE() expression but not referenced: drivers/dma/ste_dma40.c:145:12: error: variable

[PATCH AUTOSEL 4.4 4/4] tools: hv: fix KVP and VSS daemons exit code

2019-08-20 Thread Sasha Levin
From: Adrian Vladu [ Upstream commit b0995156071b0ff29a5902964a9dc8cfad6f81c0 ] HyperV KVP and VSS daemons should exit with 0 when the '--help' or '-h' flags are used. Signed-off-by: Adrian Vladu Cc: "K. Y. Srinivasan" Cc: Haiyang Zhang Cc: Stephen Hemminger Cc: Sasha Levin Cc:

[PATCH AUTOSEL 4.9 7/7] tools: hv: fix KVP and VSS daemons exit code

2019-08-20 Thread Sasha Levin
From: Adrian Vladu [ Upstream commit b0995156071b0ff29a5902964a9dc8cfad6f81c0 ] HyperV KVP and VSS daemons should exit with 0 when the '--help' or '-h' flags are used. Signed-off-by: Adrian Vladu Cc: "K. Y. Srinivasan" Cc: Haiyang Zhang Cc: Stephen Hemminger Cc: Sasha Levin Cc:

[PATCH AUTOSEL 4.9 3/7] usb: gadget: composite: Clear "suspended" on reset/disconnect

2019-08-20 Thread Sasha Levin
From: Benjamin Herrenschmidt [ Upstream commit 602fda17c7356bb7ae98467d93549057481d11dd ] In some cases, one can get out of suspend with a reset or a disconnect followed by a reconnect. Previously we would leave a stale suspended flag set. Signed-off-by: Benjamin Herrenschmidt Signed-off-by:

[PATCH AUTOSEL 4.19 22/27] i2c: rcar: avoid race when unregistering slave client

2019-08-20 Thread Sasha Levin
From: Wolfram Sang [ Upstream commit 7b814d852af6944657c2961039f404c4490771c0 ] After we disabled interrupts, there might still be an active one running. Sync before clearing the pointer to the slave device. Fixes: de20d1857dd6 ("i2c: rcar: add slave support") Reported-by: Krzysztof Adamski

[PATCH AUTOSEL 4.19 20/27] xen/blkback: fix memory leaks

2019-08-20 Thread Sasha Levin
From: Wenwen Wang [ Upstream commit ae78ca3cf3d9e9f914bfcd0bc5c389ff18b9c2e0 ] In read_per_ring_refs(), after 'req' and related memory regions are allocated, xen_blkif_map() is invoked to map the shared frame, irq, and etc. However, if this mapping process fails, no cleanup is performed,

[PATCH AUTOSEL 4.19 23/27] i2c: emev2: avoid race when unregistering slave client

2019-08-20 Thread Sasha Levin
From: Wolfram Sang [ Upstream commit d7437fc0d8291181debe032671a289b6bd93f46f ] After we disabled interrupts, there might still be an active one running. Sync before clearing the pointer to the slave device. Fixes: c31d0a00021d ("i2c: emev2: add slave support") Reported-by: Krzysztof Adamski

[PATCH AUTOSEL 4.9 2/7] iommu/dma: Handle SG length overflow better

2019-08-20 Thread Sasha Levin
From: Robin Murphy [ Upstream commit ab2cbeb0ed301a9f0460078e91b09f39958212ef ] Since scatterlist dimensions are all unsigned ints, in the relatively rare cases where a device's max_segment_size is set to UINT_MAX, then the "cur_len + s_length <= max_len" check in __finalise_sg() will always

[PATCH AUTOSEL 4.19 25/27] usb: host: fotg2: restart hcd after port reset

2019-08-20 Thread Sasha Levin
From: Hans Ulli Kroll [ Upstream commit 5ffe59ef754cc39ab2f275dc277732f4 ] On the Gemini SoC the FOTG2 stalls after port reset so restart the HCD after each port reset. Signed-off-by: Hans Ulli Kroll Signed-off-by: Linus Walleij Link:

[PATCH AUTOSEL 4.14 02/12] iio: adc: max9611: Fix temperature reading in probe

2019-08-20 Thread Sasha Levin
From: Jacopo Mondi [ Upstream commit b9ddd5091160793ee9fac10da765cf3f53d2aaf0 ] The max9611 driver reads the die temperature at probe time to validate the communication channel. Use the actual read value to perform the test instead of the read function return value, which was mistakenly used so

[PATCH AUTOSEL 4.19 24/27] drm/ast: Fixed reboot test may cause system hanged

2019-08-20 Thread Sasha Levin
From: "Y.C. Chen" [ Upstream commit 05b439711f6ff8700e8660f97a1179650778b9cb ] There is another thread still access standard VGA I/O while loading drm driver. Disable standard VGA I/O decode to avoid this issue. Signed-off-by: Y.C. Chen Reviewed-by: Benjamin Herrenschmidt Signed-off-by: Dave

[PATCH AUTOSEL 4.14 01/12] dmaengine: ste_dma40: fix unneeded variable warning

2019-08-20 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit 5d6fb560729a5d5554e23db8d00eb57cd0021083 ] clang-9 points out that there are two variables that depending on the configuration may only be used in an ARRAY_SIZE() expression but not referenced: drivers/dma/ste_dma40.c:145:12: error: variable

[PATCH AUTOSEL 4.19 16/27] omap-dma/omap_vout_vrfb: fix off-by-one fi value

2019-08-20 Thread Sasha Levin
From: Hans Verkuil [ Upstream commit d555c34338cae844b207564c482e5a3fb089d25e ] The OMAP 4 TRM specifies that when using double-index addressing the address increases by the ES plus the EI value minus 1 within a frame. When a full frame is transferred, the address increases by the ES plus the

[PATCH AUTOSEL 4.19 15/27] dmaengine: stm32-mdma: Fix a possible null-pointer dereference in stm32_mdma_irq_handler()

2019-08-20 Thread Sasha Levin
From: Jia-Ju Bai [ Upstream commit 39c71a5b8212f4b502d9a630c6706ac723abd422 ] In stm32_mdma_irq_handler(), chan is checked on line 1368. When chan is NULL, it is still used on line 1369: dev_err(chan2dev(chan), "MDMA channel not initialized\n"); Thus, a possible null-pointer dereference

[PATCH AUTOSEL 5.2 43/44] tools: hv: fixed Python pep8/flake8 warnings for lsvmbus

2019-08-20 Thread Sasha Levin
From: Adrian Vladu [ Upstream commit 5912e791f3018de0a007c8cfa9cb38c97d3e5f5c ] Fixed pep8/flake8 python style code for lsvmbus tool. The TAB indentation was on purpose ignored (pep8 rule W191) to make sure the code is complying with the Linux code guideline. The following command doe not show

[PATCH AUTOSEL 4.19 01/27] dmaengine: ste_dma40: fix unneeded variable warning

2019-08-20 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit 5d6fb560729a5d5554e23db8d00eb57cd0021083 ] clang-9 points out that there are two variables that depending on the configuration may only be used in an ARRAY_SIZE() expression but not referenced: drivers/dma/ste_dma40.c:145:12: error: variable

[PATCH AUTOSEL 4.19 08/27] nvmet-loop: Flush nvme_delete_wq when removing the port

2019-08-20 Thread Sasha Levin
From: Logan Gunthorpe [ Upstream commit 86b9a63e595ff03f9d0a7b92b6acc231fecefc29 ] After calling nvme_loop_delete_ctrl(), the controllers will not yet be deleted because nvme_delete_ctrl() only schedules work to do the delete. This means a race can occur if a port is removed but there are

[PATCH AUTOSEL 4.19 12/27] soundwire: cadence_master: fix definitions for INTSTAT0/1

2019-08-20 Thread Sasha Levin
From: Pierre-Louis Bossart [ Upstream commit 664b16589f882202b8fa8149d0074f3159bade76 ] Two off-by-one errors: INTSTAT0 missed BIT(31) and INTSTAT1 is only defined on first 16 bits. Signed-off-by: Pierre-Louis Bossart Link:

[PATCH AUTOSEL 4.19 03/27] afs: Fix the CB.ProbeUuid service handler to reply correctly

2019-08-20 Thread Sasha Levin
From: David Howells [ Upstream commit 2067b2b3f4846402a040286135f98f46f8919939 ] Fix the service handler function for the CB.ProbeUuid RPC call so that it replies in the correct manner - that is an empty reply for success and an abort of 1 for failure. Putting 0 or 1 in an integer in the body

Re: [PATCH] NFSv4: Fix a memory leak bug

2019-08-20 Thread Schumaker, Anna
Hi Wenwen, On Tue, 2019-08-20 at 02:54 -0500, Wenwen Wang wrote: > In nfs4_try_migration(), if nfs4_begin_drain_session() fails, the > previously allocated 'page' and 'locations' are not deallocated, > leading to > memory leaks. To fix this issue, free 'page' and 'locations' before > returning

[PATCH AUTOSEL 5.2 37/44] riscv: fix flush_tlb_range() end address for flush_tlb_page()

2019-08-20 Thread Sasha Levin
From: Paul Walmsley [ Upstream commit eb93685847a9055283d05951c1b205e737f38533 ] The RISC-V kernel implementation of flush_tlb_page() when CONFIG_SMP is set is wrong. It passes zero to flush_tlb_range() as the final address to flush, but it should be at least 'addr'. Some other Linux

[PATCH] selftests: bpf: add config fragment BPF_JIT

2019-08-20 Thread Anders Roxell
When running test_kmod.sh the following shows up # sysctl cannot stat /proc/sys/net/core/bpf_jit_enable No such file or directory cannot: stat_/proc/sys/net/core/bpf_jit_enable # # sysctl cannot stat /proc/sys/net/core/bpf_jit_harden No such file or directory cannot:

[PATCH AUTOSEL 5.2 39/44] i2c: emev2: avoid race when unregistering slave client

2019-08-20 Thread Sasha Levin
From: Wolfram Sang [ Upstream commit d7437fc0d8291181debe032671a289b6bd93f46f ] After we disabled interrupts, there might still be an active one running. Sync before clearing the pointer to the slave device. Fixes: c31d0a00021d ("i2c: emev2: add slave support") Reported-by: Krzysztof Adamski

[PATCH AUTOSEL 5.2 41/44] drm/ast: Fixed reboot test may cause system hanged

2019-08-20 Thread Sasha Levin
From: "Y.C. Chen" [ Upstream commit 05b439711f6ff8700e8660f97a1179650778b9cb ] There is another thread still access standard VGA I/O while loading drm driver. Disable standard VGA I/O decode to avoid this issue. Signed-off-by: Y.C. Chen Reviewed-by: Benjamin Herrenschmidt Signed-off-by: Dave

[PATCH AUTOSEL 5.2 40/44] drm/scheduler: use job count instead of peek

2019-08-20 Thread Sasha Levin
From: Christian König [ Upstream commit e1b4ce25dbc93ab0cb8ed0f236a3b9ff7b03802c ] The spsc_queue_peek function is accessing queue->head which belongs to the consumer thread and shouldn't be accessed by the producer This is fixing a rare race condition when destroying entities. Signed-off-by:

[PATCH AUTOSEL 5.2 34/44] habanalabs: fix device IRQ unmasking for BE host

2019-08-20 Thread Sasha Levin
From: Ben Segal [ Upstream commit b421d83a3947369fd5718824aecfaebe1efbf7ed ] When unmasking IRQs inside the ASIC, the driver passes an array of all the IRQ to unmask. The ASIC's CPU is working in LE so when running in a BE host, the driver needs to do the proper endianness swapping when

[PATCH AUTOSEL 5.2 33/44] habanalabs: fix endianness handling for internal QMAN submission

2019-08-20 Thread Sasha Levin
From: Oded Gabbay [ Upstream commit b9040c99414ba5b85090595a61abc686a5dbb388 ] The PQs of internal H/W queues (QMANs) can be located in different memory areas for different ASICs. Therefore, when writing PQEs, we need to use the correct function according to the location of the PQ. e.g. if the

[PATCH AUTOSEL 5.2 32/44] habanalabs: fix completion queue handling when host is BE

2019-08-20 Thread Sasha Levin
From: Ben Segal [ Upstream commit 4e87334a0ef43663019dbaf3638ad10fd8c3320c ] This patch fix the CQ irq handler to work in hosts with BE architecture. It adds the correct endian-swapping macros around the relevant memory accesses. Signed-off-by: Ben Segal Reviewed-by: Oded Gabbay

[PATCH] selftests: bpf: install files test_xdp_vlan.sh

2019-08-20 Thread Anders Roxell
When ./test_xdp_vlan_mode_generic.sh runs it complains that it can't find file test_xdp_vlan.sh. # selftests: bpf: test_xdp_vlan_mode_generic.sh # ./test_xdp_vlan_mode_generic.sh: line 9: ./test_xdp_vlan.sh: No such file or directory Rework so that test_xdp_vlan.sh gets installed, added to

[PATCH AUTOSEL 5.2 31/44] habanalabs: fix endianness handling for packets from user

2019-08-20 Thread Sasha Levin
From: Ben Segal [ Upstream commit 213ad5ad016a0da975b35f54e8cd236c3b04724b ] Packets that arrive from the user and need to be parsed by the driver are assumed to be in LE format. This patch fix all the places where the code handles these packets and use the correct endianness macros to handle

[PATCH AUTOSEL 5.2 30/44] habanalabs: fix DRAM usage accounting on context tear down

2019-08-20 Thread Sasha Levin
From: Tomer Tayar [ Upstream commit c8113756ba27298d6e95403c087dc5881b419a99 ] The patch fix the DRAM usage accounting by adding a missing update of the DRAM memory consumption, when a context is being torn down without an organized release of the allocated memory. Signed-off-by: Tomer Tayar

[PATCH AUTOSEL 5.2 29/44] usb: gadget: mass_storage: Fix races between fsg_disable and fsg_set_alt

2019-08-20 Thread Sasha Levin
From: Benjamin Herrenschmidt [ Upstream commit 4a56a478a525d6427be90753451c40e1327caa1a ] If fsg_disable() and fsg_set_alt() are called too closely to each other (for example due to a quick reset/reconnect), what can happen is that fsg_set_alt sets common->new_fsg from an interrupt while

[PATCH AUTOSEL 5.2 23/44] IB/mlx5: Fix implicit MR release flow

2019-08-20 Thread Sasha Levin
From: Yishai Hadas [ Upstream commit f591822c3cf314442819486f45ff7dc1f690e0c0 ] Once implicit MR is being called to be released by ib_umem_notifier_release() its leaves were marked as "dying". However, when dereg_mr()->mlx5_ib_free_implicit_mr()->mr_leaf_free() is called, it skips running the

[PATCH AUTOSEL 5.2 22/44] btrfs: trim: Check the range passed into to prevent overflow

2019-08-20 Thread Sasha Levin
From: Qu Wenruo [ Upstream commit 07301df7d2fc220d3de5f7ad804dcb941400cb00 ] Normally the range->len is set to default value (U64_MAX), but when it's not default value, we should check if the range overflows. And if it overflows, return -EINVAL before doing anything. Reviewed-by: Nikolay

[PATCH AUTOSEL 5.2 25/44] omap-dma/omap_vout_vrfb: fix off-by-one fi value

2019-08-20 Thread Sasha Levin
From: Hans Verkuil [ Upstream commit d555c34338cae844b207564c482e5a3fb089d25e ] The OMAP 4 TRM specifies that when using double-index addressing the address increases by the ES plus the EI value minus 1 within a frame. When a full frame is transferred, the address increases by the ES plus the

[PATCH] selftests: net: add missing NFT_FWD_NETDEV to config

2019-08-20 Thread Anders Roxell
/veth0/forwarding # # modprobe FATAL Module ip_tables not found in directory /lib/modules/5.3.0-rc5-next-20190820+ FATAL: Module_ip_tables # # iptables v1.6.2 can't initialize iptables table `filter' Table does not exist (do you need to insmod?) v1.6.2: can't_initialize # Rework to enable

[PATCH AUTOSEL 5.2 24/44] dmaengine: stm32-mdma: Fix a possible null-pointer dereference in stm32_mdma_irq_handler()

2019-08-20 Thread Sasha Levin
From: Jia-Ju Bai [ Upstream commit 39c71a5b8212f4b502d9a630c6706ac723abd422 ] In stm32_mdma_irq_handler(), chan is checked on line 1368. When chan is NULL, it is still used on line 1369: dev_err(chan2dev(chan), "MDMA channel not initialized\n"); Thus, a possible null-pointer dereference

[PATCH AUTOSEL 5.2 13/44] nvme-core: Fix extra device_put() call on error path

2019-08-20 Thread Sasha Levin
From: Logan Gunthorpe [ Upstream commit 8c36e66fb407ce076535a7db98ab9f6d720b866a ] In the error path for nvme_init_subsystem(), nvme_put_subsystem() will call device_put(), but it will get called again after the mutex_unlock(). The device_put() only needs to be called if device_add() fails.

[PATCH AUTOSEL 5.2 21/44] auxdisplay: panel: need to delete scan_timer when misc_register fails in panel_attach

2019-08-20 Thread Sasha Levin
From: zhengbin [ Upstream commit b33d567560c1aadf3033290d74d4fd67af47aa61 ] In panel_attach, if misc_register fails, we need to delete scan_timer, which was setup in keypad_init->init_scan_timer. Reported-by: Hulk Robot Signed-off-by: zhengbin Signed-off-by: Miguel Ojeda Signed-off-by:

[PATCH AUTOSEL 5.2 19/44] soundwire: cadence_master: fix definitions for INTSTAT0/1

2019-08-20 Thread Sasha Levin
From: Pierre-Louis Bossart [ Upstream commit 664b16589f882202b8fa8149d0074f3159bade76 ] Two off-by-one errors: INTSTAT0 missed BIT(31) and INTSTAT1 is only defined on first 16 bits. Signed-off-by: Pierre-Louis Bossart Link:

[PATCH AUTOSEL 5.2 01/44] dmaengine: ste_dma40: fix unneeded variable warning

2019-08-20 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit 5d6fb560729a5d5554e23db8d00eb57cd0021083 ] clang-9 points out that there are two variables that depending on the configuration may only be used in an ARRAY_SIZE() expression but not referenced: drivers/dma/ste_dma40.c:145:12: error: variable

[PATCH AUTOSEL 5.2 15/44] nvme-rdma: fix possible use-after-free in connect error flow

2019-08-20 Thread Sasha Levin
From: Sagi Grimberg [ Upstream commit d94211b8bad3787e0655a67284105f57db728cb1 ] When start_queue fails, we need to make sure to drain the queue cq before freeing the rdma resources because we might still race with the completion path. Have start_queue() error path safely stop the queue. --

[PATCH AUTOSEL 5.2 06/44] afs: Fix off-by-one in afs_rename() expected data version calculation

2019-08-20 Thread Sasha Levin
From: David Howells [ Upstream commit 37c0bbb3326674940e657118306ac52364314523 ] When afs_rename() calculates the expected data version of the target directory in a cross-directory rename, it doesn't increment it as it should, so it always thinks that the target inode is unexpectedly modified

Re: WARNING in kmem_cache_alloc_trace

2019-08-20 Thread syzbot
Hello, syzbot has tested the proposed patch but the reproducer still triggered crash: WARNING in yurex_write/usb_submit_urb [ cut here ] URB 52a92140 submitted while active WARNING: CPU: 1 PID: 3052 at drivers/usb/core/urb.c:362 usb_submit_urb+0x10c1/0x13b0

[PATCH AUTOSEL 5.2 05/44] fs: afs: Fix a possible null-pointer dereference in afs_put_read()

2019-08-20 Thread Sasha Levin
From: Jia-Ju Bai [ Upstream commit a6eed4ab5dd4bfb696c1a3f49742b8d1846a66a0 ] In afs_read_dir(), there is an if statement on line 255 to check whether req->pages is NULL: if (!req->pages) goto error; If req->pages is NULL, afs_put_read() on line 337 is executed. In

Re: [PATCH] x86/mm/pti: in pti_clone_pgtable() don't increase addr by PUD_SIZE

2019-08-20 Thread Thomas Gleixner
On Tue, 20 Aug 2019, Song Liu wrote: > > On Aug 20, 2019, at 4:16 AM, Thomas Gleixner wrote: > > > > On Tue, 20 Aug 2019, Peter Zijlstra wrote: > >> What that code wants to do is skip to the end of the pud, a pmd_size > >> increase will not do that. And right below this, there's a second > >>

[PATCH] bonding: force enable lacp port after link state recovery for 802.3ad

2019-08-20 Thread zhangsha.zhang
From: Sha Zhang After the commit 334031219a84 ("bonding/802.3ad: fix slave link initialization transition states") merged, the slave's link status will be changed to BOND_LINK_FAIL from BOND_LINK_DOWN in the following scenario: - Driver reports loss of carrier and bonding driver receives

Re: [PATCH 9/9] drivers: ata: sata_rcar: use devm_platform_ioremap_resource()

2019-08-20 Thread Bartlomiej Zolnierkiewicz
On 8/20/19 2:35 PM, Enrico Weigelt, metux IT consult wrote: > Use the new helper that wraps the calls to platform_get_resource() > and devm_ioremap_resource() together. > > Signed-off-by: Enrico Weigelt, metux IT consult Acked-by: Bartlomiej Zolnierkiewicz Best regards, -- Bartlomiej

Re: [PATCH 8/9] drivers: ata: sata_gemini: use devm_platform_ioremap_resource()

2019-08-20 Thread Bartlomiej Zolnierkiewicz
On 8/20/19 2:35 PM, Enrico Weigelt, metux IT consult wrote: > Use the new helper that wraps the calls to platform_get_resource() > and devm_ioremap_resource() together. It would also be worth to mention in the patch description that on !res condition the driver will now return -EINVAL (instead

Re: [EXT] Re: [PATCH net-next 0/1] Add BASE-T1 PHY support

2019-08-20 Thread Christian Herber
On 19.08.2019 21:07, Heiner Kallweit wrote: > Caution: EXT Email > > On 19.08.2019 08:32, Christian Herber wrote: >> On 16.08.2019 22:59, Heiner Kallweit wrote: >>> On 15.08.2019 17:32, Christian Herber wrote: This patch adds basic support for BASE-T1 PHYs in the framework. BASE-T1 PHYs

Re: [PATCH v4 04/10] mailbox: sunxi-msgbox: Add a new mailbox driver

2019-08-20 Thread Ondřej Jirman
Hi, On Tue, Aug 20, 2019 at 08:07:53AM -0500, Samuel Holland wrote: > On 8/20/19 6:18 AM, Ondřej Jirman wrote: > > Hi Samuel, > > > > On Mon, Aug 19, 2019 at 10:23:05PM -0500, Samuel Holland wrote: > >> Allwinner sun8i, sun9i, and sun50i SoCs contain a hardware message box > >> used for

Re: [PATCH 4/4] mm, notifier: Catch sleeping/blocking for !blockable

2019-08-20 Thread Jason Gunthorpe
On Tue, Aug 20, 2019 at 10:19:02AM +0200, Daniel Vetter wrote: > We need to make sure implementations don't cheat and don't have a > possible schedule/blocking point deeply burried where review can't > catch it. > > I'm not sure whether this is the best way to make sure all the > might_sleep()

Re: [PATCH 2/4] x86/vmware: Add a header file for hypercall definitions

2019-08-20 Thread VMware
On 8/20/19 1:32 PM, Peter Zijlstra wrote: On Sun, Aug 18, 2019 at 04:33:14PM +0200, Thomas Hellström (VMware) wrote: +#define VMWARE_HYPERCALL \ + ALTERNATIVE_2(".byte 0xed", \ + ".byte 0x0f, 0x01, 0xc1", X86_FEATURE_VMW_VMCALL, \ + ".byte

Re: [PATCH] MAINTAINERS: Extend patterns for Samsung SoC, Security Subsystem and clock drivers

2019-08-20 Thread Sylwester Nawrocki
On 8/18/19 19:27, Krzysztof Kozlowski wrote: > Extend the patterns to cover all related files in respective > categories: > 1. Samsung Exynos ARM architecture: add soc drivers headers and make >directory matches consistent, > 2. Samsung Security SubSystem driver (crypto): add bindings, > 3.

Re: [PATCH v2 1/8] arm64: dts: qcom: sm8150: add base dts file

2019-08-20 Thread Amit Kucheria
On Tue, Aug 20, 2019 at 12:14 PM Vinod Koul wrote: > > This add base DTS file with cpu, psci, firmware, clock, tlmm and > spmi nodes which enables boot to console > > Signed-off-by: Vinod Koul > --- > arch/arm64/boot/dts/qcom/sm8150.dtsi | 305 +++ > 1 file changed, 305

Re: [PATCH 7/9] drivers: ata: sata_dwc_460ex: use devm_platform_ioremap_resource()

2019-08-20 Thread Bartlomiej Zolnierkiewicz
On 8/20/19 2:35 PM, Enrico Weigelt, metux IT consult wrote: > Use the new helper that wraps the calls to platform_get_resource() > and devm_ioremap_resource() together. > > Signed-off-by: Enrico Weigelt, metux IT consult Acked-by: Bartlomiej Zolnierkiewicz Best regards, -- Bartlomiej

Re: [PATCH 6/9] drivers: ata: pata_bk3710: use devm_platform_ioremap_resource()

2019-08-20 Thread Bartlomiej Zolnierkiewicz
On 8/20/19 2:35 PM, Enrico Weigelt, metux IT consult wrote: > Use the new helper that wraps the calls to platform_get_resource() > and devm_ioremap_resource() together. > > Signed-off-by: Enrico Weigelt, metux IT consult Acked-by: Bartlomiej Zolnierkiewicz Best regards, -- Bartlomiej

Re: [PATCH 5/9] drivers: ata: libahci_platform: use devm_platform_ioremap_resource()

2019-08-20 Thread Bartlomiej Zolnierkiewicz
On 8/20/19 2:35 PM, Enrico Weigelt, metux IT consult wrote: > Use the new helper that wraps the calls to platform_get_resource() > and devm_ioremap_resource() together. > > Signed-off-by: Enrico Weigelt, metux IT consult Acked-by: Bartlomiej Zolnierkiewicz Best regards, -- Bartlomiej

Re: [PATCH v3 0/8] PM / ACPI: sleep: Additional changes related to suspend-to-idle

2019-08-20 Thread Rafael J. Wysocki
On Tue, Aug 20, 2019 at 3:10 PM Kristian Klausen wrote: > > On 19.08.2019 22.41, Rafael J. Wysocki wrote: > > On Mon, Aug 19, 2019 at 5:47 PM Kristian Klausen > > wrote: > >> On 19.08.2019 11.05, Rafael J. Wysocki wrote: > >>> On Monday, August 19, 2019 9:59:02 AM CEST Rafael J. Wysocki wrote:

Re: [PATCH 2/9] drivers: ata: ahci_seattle: use devm_platform_ioremap_resource()

2019-08-20 Thread Bartlomiej Zolnierkiewicz
On 8/20/19 2:35 PM, Enrico Weigelt, metux IT consult wrote: > Use the new helper that wraps the calls to platform_get_resource() > and devm_ioremap_resource() together. > > Signed-off-by: Enrico Weigelt, metux IT consult Acked-by: Bartlomiej Zolnierkiewicz Best regards, -- Bartlomiej

Re: [PATCH 1/9] drivers: ata: ahci_octeon: use devm_platform_ioremap_resource()

2019-08-20 Thread Bartlomiej Zolnierkiewicz
On 8/20/19 2:35 PM, Enrico Weigelt, metux IT consult wrote: > Use the new helper that wraps the calls to platform_get_resource() > and devm_ioremap_resource() together. > > Signed-off-by: Enrico Weigelt, metux IT consult Acked-by: Bartlomiej Zolnierkiewicz Best regards, -- Bartlomiej

Status of Subsystems - MICROCHIP SAMA5D2-COMPATIBLE PIOBU GPIO

2019-08-20 Thread Sebastian Duda
Hello Andrei, in my master thesis, I'm using the association of subsystems to maintainers/reviewers and its status given in the MAINTAINERS file. During the research I noticed that there are several subsystems without a status in the maintainers file. One of them is the subsystem `MICROCHIP

Re: [tip:timers/core] hrtimer: Prepare support for PREEMPT_RT

2019-08-20 Thread Frederic Weisbecker
On Thu, Aug 01, 2019 at 12:04:03PM -0700, tip-bot for Anna-Maria Gleixner wrote: > Commit-ID: f61eff83cec9cfab31fd30a2ca8856be379cdcd5 > Gitweb: > https://git.kernel.org/tip/f61eff83cec9cfab31fd30a2ca8856be379cdcd5 > Author: Anna-Maria Gleixner > AuthorDate: Fri, 26 Jul 2019 20:30:59

Re: [PATCH 2/4] memremap: remove the dev field in struct dev_pagemap

2019-08-20 Thread Jason Gunthorpe
On Mon, Aug 19, 2019 at 06:44:02PM -0700, Dan Williams wrote: > On Sun, Aug 18, 2019 at 2:12 AM Christoph Hellwig wrote: > > > > The dev field in struct dev_pagemap is only used to print dev_name in > > two places, which are at best nice to have. Just remove the field > > and thus the name in

Re: add a not device managed memremap_pages v3

2019-08-20 Thread Jason Gunthorpe
On Sun, Aug 18, 2019 at 11:05:53AM +0200, Christoph Hellwig wrote: > Hi Dan and Jason, > > Bharata has been working on secure page management for kvmppc guests, > and one I thing I noticed is that he had to fake up a struct device > just so that it could be passed to the devm_memremap_pages >

Re: [PATCH net-next v3 2/4] net: mdio: add PTP offset compensation to mdiobus_write_sts

2019-08-20 Thread Andrew Lunn
On Tue, Aug 20, 2019 at 11:49:03AM +0200, Miroslav Lichvar wrote: > On Tue, Aug 20, 2019 at 10:48:31AM +0200, Hubert Feurstein wrote: > > > + /* PTP offset compensation: > > +* After the MDIO access is completed (from the chip perspective), the > > +* switch chip will snapshot the PHC

Status of Subsystems - I2C/SMBUS ISMT DRIVER

2019-08-20 Thread Sebastian Duda
Hello Seth, hello Neil, in my master thesis, I'm using the association of subsystems to maintainers/reviewers and its status given in the MAINTAINERS file. During the research I noticed that there are several subsystems without a status in the maintainers file. One of them is the subsystem

Re: [PATCH] x86/mm/pti: in pti_clone_pgtable() don't increase addr by PUD_SIZE

2019-08-20 Thread Rik van Riel
On Tue, 2019-08-20 at 13:16 +0200, Thomas Gleixner wrote: > On Tue, 20 Aug 2019, Peter Zijlstra wrote: > > What that code wants to do is skip to the end of the pud, a > > pmd_size > > increase will not do that. And right below this, there's a second > > instance of this exact pattern. > > > > Did

Re: [PATCH v2 2/3] x86/cpu: Add new Intel Atom CPU model name

2019-08-20 Thread Shevchenko, Andriy
On Tue, Aug 20, 2019 at 03:48:05PM +0300, Luck, Tony wrote: > > >> +#define INTEL_FAM6_ATOM_AIRMONT_NP0x75 /* Lightning Mountain */ > > > > What's _NP ? > > Network Processor. But that is too narrow a descriptor. This is going to be > used in > other areas besides networking. > > I’m

Re: [PATCH] x86/mm/pti: in pti_clone_pgtable() don't increase addr by PUD_SIZE

2019-08-20 Thread Song Liu
> On Aug 20, 2019, at 4:16 AM, Thomas Gleixner wrote: > > On Tue, 20 Aug 2019, Peter Zijlstra wrote: >> What that code wants to do is skip to the end of the pud, a pmd_size >> increase will not do that. And right below this, there's a second >> instance of this exact pattern. >> >> Did I get

<    3   4   5   6   7   8   9   10   11   12   >