Re: [PATCH v5 1/2] dt-bindings: tlv320adcx140: Add GPIO config and drive config

2020-09-21 Thread Mark Brown
On Fri, 18 Sep 2020 13:40:24 +0200, Camel Guo wrote: > Add properties for configuring the General Purpose Input Output (GPIO). > There are 2 settings for GPIO, configuration and the output drive type. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Re: [PATCH -next v2] mt7601u: Convert to DEFINE_SHOW_ATTRIBUTE

2020-09-21 Thread Jakub Kicinski
On Sat, 19 Sep 2020 10:48:38 +0800 Qinglang Miao wrote: > Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. > > Signed-off-by: Qinglang Miao Acked-by: Jakub Kicinski You can keep my ack.

[PATCH 4.19 23/49] i2c: algo: pca: Reapply i2c bus settings after reset

2020-09-21 Thread Greg Kroah-Hartman
From: Evan Nimmo [ Upstream commit 0a355aeb24081e4538d4d424cd189f16c0bbd983 ] If something goes wrong (such as the SCL being stuck low) then we need to reset the PCA chip. The issue with this is that on reset we lose all config settings and the chip ends up in a disabled state which results in

[PATCH 4.19 29/49] Drivers: hv: vmbus: Add timeout to vmbus_wait_for_unload

2020-09-21 Thread Greg Kroah-Hartman
From: Michael Kelley [ Upstream commit 911e1987efc8f3e6445955fbae7f54b428b92bd3 ] vmbus_wait_for_unload() looks for a CHANNELMSG_UNLOAD_RESPONSE message coming from Hyper-V. But if the message isn't found for some reason, the panic path gets hung forever. Add a timeout of 10 seconds to

[PATCH 4.19 24/49] spi: Fix memory leak on splited transfers

2020-09-21 Thread Greg Kroah-Hartman
From: Gustav Wiklander [ Upstream commit b59a7ca15464c78ea1ba3b280cfc5ac5ece11ade ] In the prepare_message callback the bus driver has the opportunity to split a transfer into smaller chunks. spi_map_msg is done after prepare_message. Function spi_res_release releases the splited transfers in

Re: [PATCH v3 1/2] dt-bindings: tlv320adcx140: Add GPIO config and drive config

2020-09-21 Thread Mark Brown
On Wed, 16 Sep 2020 09:59:48 +0200, Camel Guo wrote: > Add properties for configuring the General Purpose Input Output (GPIO). > There are 2 settings for GPIO, configuration and the output drive type. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

[PATCH 4.19 33/49] fbcon: Fix user font detection test at fbcon_resize().

2020-09-21 Thread Greg Kroah-Hartman
From: Tetsuo Handa [ Upstream commit ec0972adecb391a8d8650832263a4790f3bfb4df ] syzbot is reporting OOB read at fbcon_resize() [1], for commit 39b3cffb8cf31117 ("fbcon: prevent user font height or width change from causing potential out-of-bounds access") is by error using

Re: [PATCH 1/2] dt-bindings: tas2562: Add TAS2564 to binding

2020-09-21 Thread Mark Brown
On Fri, 18 Sep 2020 10:01:29 -0500, Dan Murphy wrote: > Add the TAS2564 compatible and data sheet link to the binding. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/2] dt-bindings: tas2562: Add TAS2564 to binding commit:

[PATCH 4.19 20/49] nvme-rdma: cancel async events before freeing event struct

2020-09-21 Thread Greg Kroah-Hartman
From: David Milburn [ Upstream commit 925dd04c1f9825194b9e444c12478084813b2b5d ] Cancel async event work in case async event has been queued up, and nvme_rdma_submit_async_event() runs after event has been freed. Signed-off-by: David Milburn Reviewed-by: Keith Busch Reviewed-by: Sagi

[PATCH 4.19 45/49] serial: 8250_pci: Add Realtek 816a and 816b

2020-09-21 Thread Greg Kroah-Hartman
From: Tobias Diedrich commit 3c5a87be170aba8ac40982182f812dcff6ed1ad1 upstream. These serial ports are exposed by the OOB-management-engine on RealManage-enabled network cards (e.g. AMD DASH enabled systems using Realtek cards). Because these have 3 BARs, they fail the "num_iomem <= 1" check

[PATCH 4.19 38/49] USB: UAS: fix disconnect by unplugging a hub

2020-09-21 Thread Greg Kroah-Hartman
From: Oliver Neukum commit 325b008723b2dd31de020e85ab9d2e9aa4637d35 upstream. The SCSI layer can go into an ugly loop if you ignore that a device is gone. You need to report an error in the command rather than in the return value of the queue method. We need to specifically check for ENODEV.

[PATCH 4.19 13/49] regulator: pwm: Fix machine constraints application

2020-09-21 Thread Greg Kroah-Hartman
From: Vincent Whitchurch [ Upstream commit 59ae97a7a9e1499c2070e29841d1c4be4ae2994a ] If the zero duty cycle doesn't correspond to any voltage in the voltage table, the PWM regulator returns an -EINVAL from get_voltage_sel() which results in the core erroring out with a "failed to get the

[PATCH 4.19 39/49] usblp: fix race between disconnect() and read()

2020-09-21 Thread Greg Kroah-Hartman
From: Oliver Neukum commit 9cdabcb3ef8c24ca3a456e4db7b012befb688e73 upstream. read() needs to check whether the device has been disconnected before it tries to talk to the device. Signed-off-by: Oliver Neukum Reported-by: syzbot+be5b5f86a162a6c28...@syzkaller.appspotmail.com Link:

[PATCH 4.19 11/49] scsi: libfc: Fix for double free()

2020-09-21 Thread Greg Kroah-Hartman
From: Javed Hasan [ Upstream commit 5a5b80f98534416b3b253859897e2ba1dc241e70 ] Fix for '>skb' double free. Link: https://lore.kernel.org/r/20200825093940.19612-1-jha...@marvell.com Reported-by: Dan Carpenter Signed-off-by: Javed Hasan Signed-off-by: Martin K. Petersen Signed-off-by: Sasha

[PATCH 5.8 015/118] scsi: libfc: Fix for double free()

2020-09-21 Thread Greg Kroah-Hartman
From: Javed Hasan [ Upstream commit 5a5b80f98534416b3b253859897e2ba1dc241e70 ] Fix for '>skb' double free. Link: https://lore.kernel.org/r/20200825093940.19612-1-jha...@marvell.com Reported-by: Dan Carpenter Signed-off-by: Javed Hasan Signed-off-by: Martin K. Petersen Signed-off-by: Sasha

[PATCH 4.19 46/49] x86/boot/compressed: Disable relocation relaxation

2020-09-21 Thread Greg Kroah-Hartman
From: Arvind Sankar commit 09e43968db40c33a73e9ddbfd937f46d5c334924 upstream. The x86-64 psABI [0] specifies special relocation types (R_X86_64_[REX_]GOTPCRELX) for indirection through the Global Offset Table, semantically equivalent to R_X86_64_GOTPCREL, which the linker can take advantage of

[PATCH 5.8 010/118] NFSv4.1 handle ERR_DELAY error reclaiming locking state on delegation recall

2020-09-21 Thread Greg Kroah-Hartman
From: Olga Kornievskaia [ Upstream commit 3d7a9520f0c3e6a68b6de8c5812fc8b6d7a52626 ] A client should be able to handle getting an ERR_DELAY error while doing a LOCK call to reclaim state due to delegation being recalled. This is a transient error that can happen due to server moving its volumes

[PATCH 4.19 40/49] i2c: i801: Fix resume bug

2020-09-21 Thread Greg Kroah-Hartman
From: Volker Rümelin commit 66d402e2e9455cf0213c42b97f22a0493372d7cc upstream. On suspend the original host configuration gets restored. The resume routine has to undo this, otherwise the SMBus master may be left in disabled state or in i2c mode. [JD: Rebased on v5.8, moved the write into

[PATCH 4.19 14/49] spi: spi-loopback-test: Fix out-of-bounds read

2020-09-21 Thread Greg Kroah-Hartman
From: Vincent Whitchurch [ Upstream commit 837ba18dfcd4db21ad58107c65bfe89753aa56d7 ] The "tx/rx-transfer - crossing PAGE_SIZE" test always fails when len=131071 and rx_offset >= 5: spi-loopback-test spi0.0: Running test tx/rx-transfer - crossing PAGE_SIZE ... with iteration values: len =

Re: [PATCH] arm64: dts: marvell: espressobin: Get rid of duplicate serial aliases

2020-09-21 Thread Andre Heider
On 21/09/2020 18:53, Pali Rohár wrote: On Monday 21 September 2020 18:48:30 Andre Heider wrote: The included armada-372x.dtsi already defines these two aliases. Where? I do not see it in that file:

[PATCH 4.19 19/49] nvme-fc: cancel async events before freeing event struct

2020-09-21 Thread Greg Kroah-Hartman
From: David Milburn [ Upstream commit e126e8210e950bb83414c4f57b3120ddb8450742 ] Cancel async event work in case async event has been queued up, and nvme_fc_submit_async_event() runs after event has been freed. Signed-off-by: David Milburn Reviewed-by: Keith Busch Reviewed-by: Sagi Grimberg

[PATCH 4.19 34/49] MIPS: SNI: Fix spurious interrupts

2020-09-21 Thread Greg Kroah-Hartman
From: Thomas Bogendoerfer [ Upstream commit b959b97860d0fee8c8f6a3e641d3c2ad76eab6be ] On A20R machines the interrupt pending bits in cause register need to be updated by requesting the chipset to do it. This needs to be done to find the interrupt cause and after interrupt service. In commit

Re: [v4,2/5] arm64: dts: mt8183: update watchdog device node

2020-09-21 Thread Matthias Brugger
On 03/08/2020 09:14, Crystal Guo wrote: The watchdog driver for MT8183 relies on DT data, so the fallback compatible MT6589 won't work, need to update watchdog device node to sync with watchdog dt-binding document. Signed-off-by: Crystal Guo Applied to v5.9-next/dts64 Thanks! ---

[PATCH 5.8 035/118] KVM: MIPS: Change the definition of kvm type

2020-09-21 Thread Greg Kroah-Hartman
From: Huacai Chen [ Upstream commit 15e9e35cd1dec2bc138464de6bf8ef828df19235 ] MIPS defines two kvm types: #define KVM_VM_MIPS_TE 0 #define KVM_VM_MIPS_VZ 1 In Documentation/virt/kvm/api.rst it is said that "You probably want to use 0 as machine type", which implies that

[PATCH 5.8 017/118] scsi: lpfc: Extend the RDF FPIN Registration descriptor for additional events

2020-09-21 Thread Greg Kroah-Hartman
From: James Smart [ Upstream commit 441f6b5b097d74a8aa72ec0d8992ef820e2b3773 ] Currently the driver registers for Link Integrity events only. This patch adds registration for the following FPIN types: - Delivery Notifications - Congestion Notification - Peer Congestion Notification Link:

[PATCH 5.8 012/118] habanalabs: prevent user buff overflow

2020-09-21 Thread Greg Kroah-Hartman
From: Moti Haimovski [ Upstream commit 6396feabf7a4104a4ddfecc00b8aac535c631a66 ] This commit fixes a potential debugfs issue that may occur when reading the clock gating mask into the user buffer since the user buffer size was not taken into consideration. Signed-off-by: Moti Haimovski

[PATCH 5.8 036/118] clk: davinci: Use the correct size when allocating memory

2020-09-21 Thread Greg Kroah-Hartman
From: Christophe JAILLET [ Upstream commit 3dabfa2bda48dab717986609762ce2a49335eb99 ] 'sizeof(*pllen)' should be used in place of 'sizeof(*pllout)' to avoid a small over-allocation. Fixes: 2d1726915159 ("clk: davinci: New driver for davinci PLL clocks") Signed-off-by: Christophe JAILLET Link:

[PATCH 5.8 042/118] ASoC: rt715: Fix return check for devm_regmap_init_sdw()

2020-09-21 Thread Greg Kroah-Hartman
From: Vinod Koul [ Upstream commit 282eb0b52e3f0399ee48a4cad0d9ffec840b0164 ] devm_regmap_init_sdw() returns a valid pointer on success or ERR_PTR on failure which should be checked with IS_ERR. Also use PTR_ERR for returning error codes. Reported-by: Takashi Iwai Fixes: d1ede0641b05 ("ASoC:

[PATCH 5.8 040/118] ASoC: rt1308-sdw: Fix return check for devm_regmap_init_sdw()

2020-09-21 Thread Greg Kroah-Hartman
From: Vinod Koul [ Upstream commit 344850d93c098e1b17e6f89d5e436893e9762ef3 ] devm_regmap_init_sdw() returns a valid pointer on success or ERR_PTR on failure which should be checked with IS_ERR. Also use PTR_ERR for returning error codes. Reported-by: Takashi Iwai Fixes: a87a6653a28c ("ASoC:

[PATCH 5.8 045/118] drm/mediatek: dsi: Fix scrolling of panel with small hfp or hbp

2020-09-21 Thread Greg Kroah-Hartman
From: Jitao Shi [ Upstream commit 35bf948f1edbf507f6e57e0879fa6ea36d2d2930 ] horizontal_backporch_byte should be hbp * bpp - hbp extra bytes. So remove the wrong subtraction 10. Fixes: 7a5bc4e22ecf ("drm/mediatek: change the dsi phytiming calculate method") Signed-off-by: Jitao Shi

[PATCH 5.8 043/118] ASoC: rt700: Fix return check for devm_regmap_init_sdw()

2020-09-21 Thread Greg Kroah-Hartman
From: Vinod Koul [ Upstream commit db1a4250aef53775ec0094b81454213319cc8c74 ] devm_regmap_init_sdw() returns a valid pointer on success or ERR_PTR on failure which should be checked with IS_ERR. Also use PTR_ERR for returning error codes. Reported-by: Takashi Iwai Fixes: 7d2a5f9ae41e ("ASoC:

[PATCH 5.8 044/118] ASoC: qcom: common: Fix refcount imbalance on error

2020-09-21 Thread Greg Kroah-Hartman
From: Dinghao Liu [ Upstream commit c1e6414cdc371f9ed82cefebba7538499a3059f9 ] for_each_child_of_node returns a node pointer np with refcount incremented. So when devm_kzalloc fails, a pairing refcount decrement is needed to keep np's refcount balanced. Fixes: 16395ceee11f8 ("ASoC: qcom:

[PATCH 5.8 047/118] ASoC: soc-core: add snd_soc_find_dai_with_mutex()

2020-09-21 Thread Greg Kroah-Hartman
From: Kuninori Morimoto [ Upstream commit 20d9fdee72dfaa1fa7588c7a846283bd740e7157 ] commit 25612477d20b52 ("ASoC: soc-dai: set dai_link dpcm_ flags with a helper") added snd_soc_dai_link_set_capabilities(). But it is using snd_soc_find_dai() (A) which is required client_mutex (B). And

[PATCH 5.8 048/118] ASoC: meson: axg-toddr: fix channel order on g12 platforms

2020-09-21 Thread Greg Kroah-Hartman
From: Jerome Brunet [ Upstream commit 9c4b205a20f483d8a5d1208cfec33e339347d4bd ] On g12 and following platforms, The first channel of record with more than 2 channels ends being placed randomly on an even channel of the output. On these SoCs, a bit was added to force the first channel to be

[PATCH 5.8 041/118] ASoC: rt711: Fix return check for devm_regmap_init_sdw()

2020-09-21 Thread Greg Kroah-Hartman
From: Vinod Koul [ Upstream commit be1a4b2c56db860a220c6f74d461188e5733264a ] devm_regmap_init_sdw() returns a valid pointer on success or ERR_PTR on failure which should be checked with IS_ERR. Also use PTR_ERR for returning error codes. Reported-by: Takashi Iwai Fixes: 320b8b0d13b8 ("ASoC:

[PATCH 5.8 024/118] cifs: fix DFS mount with cifsacl/modefromsid

2020-09-21 Thread Greg Kroah-Hartman
From: Ronnie Sahlberg [ Upstream commit 01ec372cef1e5afa4ab843bbaf88a6fcb64dc14c ] RHBZ: 1871246 If during cifs_lookup()/get_inode_info() we encounter a DFS link and we use the cifsacl or modefromsid mount options we must suppress any -EREMOTE errors that triggers or else we will not be able

[PATCH 5.8 011/118] phy: omap-usb2-phy: disable PHY charger detect

2020-09-21 Thread Greg Kroah-Hartman
From: Roger Quadros [ Upstream commit ad7a7acaedcf45071c822b6c983f9c1e084041c9 ] AM654x PG1.0 has a silicon bug that D+ is pulled high after POR, which could cause enumeration failure with some USB hubs. Disabling the USB2_PHY Charger Detect function will put D+ into the normal state. This

[PATCH 5.8 046/118] powerpc/book3s64/radix: Fix boot failure with large amount of guest memory

2020-09-21 Thread Greg Kroah-Hartman
From: Aneesh Kumar K.V [ Upstream commit 103a8542cb35b5130f732d00b0419a594ba1b517 ] If the hypervisor doesn't support hugepages, the kernel ends up allocating a large number of page table pages. The early page table allocation was wrongly setting the max memblock limit to ppc64_rma_size with

[RFC PATCH v1 0/3] drm/panel: mantix panel reset fixes

2020-09-21 Thread Guido Günther
Posting as RFC since I'm not sure how to handle the bindings, please see below. The first patch in this series fixes dereferencing a NULL mode in the error path. The second one extends the resets to not only reset RESX but also TP_RSTN since otherwise the display will stay completely blank. I

[PATCH 5.8 070/118] drm/mediatek: Add missing put_device() call in mtk_drm_kms_init()

2020-09-21 Thread Greg Kroah-Hartman
From: Yu Kuai [ Upstream commit 2132940f2192824acf160d115192755f7c58a847 ] if of_find_device_by_node() succeed, mtk_drm_kms_init() doesn't have a corresponding put_device(). Thus add jump target to fix the exception handling for this function implementation. Fixes: 119f5173628a ("drm/mediatek:

[PATCH 5.8 039/118] ASoC: qcom: Set card->owner to avoid warnings

2020-09-21 Thread Greg Kroah-Hartman
From: Stephan Gerhold [ Upstream commit 3c27ea23ffb43262da6c64964163895951aaed4e ] On Linux 5.9-rc1 I get the following warning with apq8016-sbc: WARNING: CPU: 2 PID: 69 at sound/core/init.c:207 snd_card_new+0x36c/0x3b0 [snd] CPU: 2 PID: 69 Comm: kworker/2:1 Not tainted 5.9.0-rc1 #1 Workqueue:

[RFC PATCH v1 1/3] drm/panel: mantix: Don't dereference NULL mode

2020-09-21 Thread Guido Günther
Don't dereference mode which was just NULL checked. Signed-off-by: Guido Günther Reported-by: Dan Carpenter --- drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c

[RFC PATCH v1 3/3] dt-binding: display: Require two rests on mantix panel

2020-09-21 Thread Guido Günther
We need to reset both for the panel to show an image. Signed-off-by: Guido Günther --- .../bindings/display/panel/mantix,mlaf057we51-x.yaml | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/display/panel/mantix,mlaf057we51-x.yaml

[RFC PATCH v1 2/3] drm/panel: mantix: Fix panel reset

2020-09-21 Thread Guido Günther
The mantix panel needs two reset lines (RESX and TP_RSTN) deasserted to output an image. Only deasserting RESX is not enough and the display will stay blank. Deassert in prepare() and assert in unprepare() to keep device held in reset when off. Signed-off-by: Guido Günther ---

[PATCH 5.8 030/118] f2fs: fix indefinite loop scanning for free nid

2020-09-21 Thread Greg Kroah-Hartman
From: Sahitya Tummala [ Upstream commit e2cab031ba7b5003cd12185b3ef38f1a75e3dae8 ] If the sbi->ckpt->next_free_nid is not NAT block aligned and if there are free nids in that NAT block between the start of the block and next_free_nid, then those free nids will not be scanned in scan_nat_page().

[PATCH 5.8 065/118] fbcon: Fix user font detection test at fbcon_resize().

2020-09-21 Thread Greg Kroah-Hartman
From: Tetsuo Handa [ Upstream commit ec0972adecb391a8d8650832263a4790f3bfb4df ] syzbot is reporting OOB read at fbcon_resize() [1], for commit 39b3cffb8cf31117 ("fbcon: prevent user font height or width change from causing potential out-of-bounds access") is by error using

[PATCH 5.8 071/118] drm/mediatek: Add missing put_device() call in mtk_hdmi_dt_parse_pdata()

2020-09-21 Thread Greg Kroah-Hartman
From: Yu Kuai [ Upstream commit 0680a622318b8d657323b94082f4b9a44038dfee ] if of_find_device_by_node() succeed, mtk_drm_kms_init() doesn't have a corresponding put_device(). Thus add jump target to fix the exception handling for this function implementation. Fixes: 8f83f26891e1 ("drm/mediatek:

[PATCH 5.8 026/118] nvme-fc: cancel async events before freeing event struct

2020-09-21 Thread Greg Kroah-Hartman
From: David Milburn [ Upstream commit e126e8210e950bb83414c4f57b3120ddb8450742 ] Cancel async event work in case async event has been queued up, and nvme_fc_submit_async_event() runs after event has been freed. Signed-off-by: David Milburn Reviewed-by: Keith Busch Reviewed-by: Sagi Grimberg

[PATCH 5.8 029/118] block: only call sched requeue_request() for scheduled requests

2020-09-21 Thread Greg Kroah-Hartman
From: Omar Sandoval [ Upstream commit e8a8a185051a460e3eb0617dca33f996f4e31516 ] Yang Yang reported the following crash caused by requeueing a flush request in Kyber: [2.517297] Unable to handle kernel paging request at virtual address ffd8071c0b00 ... [2.517468] pc :

[PATCH 5.8 028/118] nvme-tcp: cancel async events before freeing event struct

2020-09-21 Thread Greg Kroah-Hartman
From: David Milburn [ Upstream commit ceb1e0874dba5cbfc4e0b4145796a4bfb3716e6a ] Cancel async event work in case async event has been queued up, and nvme_tcp_submit_async_event() runs after event has been freed. Signed-off-by: David Milburn Reviewed-by: Keith Busch Reviewed-by: Sagi Grimberg

[PATCH 5.8 049/118] ASoC: tlv320adcx140: Fix accessing uninitialized adcx140->dev

2020-09-21 Thread Greg Kroah-Hartman
From: Camel Guo [ Upstream commit 2569231d71dff82cfd6e82ab3871776f72ec53b6 ] In adcx140_i2c_probe, adcx140->dev is accessed before its initialization. This commit fixes this bug. Fixes: 689c7655b50c ("ASoC: tlv320adcx140: Add the tlv320adcx140 codec driver family") Acked-by: Dan Murphy

[PATCH 5.8 072/118] arm64: bpf: Fix branch offset in JIT

2020-09-21 Thread Greg Kroah-Hartman
From: Ilias Apalodimas [ Upstream commit 32f6865c7aa3c422f710903baa6eb81abc6f559b ] Running the eBPF test_verifier leads to random errors looking like this: [ 6525.735488] Unexpected kernel BRK exception at EL1 [ 6525.735502] Internal error: ptrace BRK handler: f2000100 [#1] SMP [ 6525.741609]

[PATCH 5.8 078/118] riscv: Add sfence.vma after early page table changes

2020-09-21 Thread Greg Kroah-Hartman
From: Greentime Hu [ Upstream commit 21190b74bcf3a36ebab9a715088c29f59877e1f3 ] This invalidates local TLB after modifying the page tables during early init as it's too early to handle suprious faults as we otherwise do. Fixes: f2c17aabc917 ("RISC-V: Implement compile-time fixed mappings")

[PATCH 5.8 080/118] efi: efibc: check for efivars write capability

2020-09-21 Thread Greg Kroah-Hartman
From: Ard Biesheuvel [ Upstream commit 46908326c6b801201f1e46f5ed0db6e85bef74ae ] Branden reports that commit f88814cc2578c1 ("efi/efivars: Expose RT service availability via efivars abstraction") regresses UEFI platforms that implement GetVariable but not SetVariable when booting kernels

[PATCH 5.8 077/118] i2c: mxs: use MXS_DMA_CTRL_WAIT4END instead of DMA_CTRL_ACK

2020-09-21 Thread Greg Kroah-Hartman
From: Matthias Schiffer [ Upstream commit 6eb158ec0a45dbfd98bc6971c461b7d4d5bf61b3 ] The driver-specific usage of the DMA_CTRL_ACK flag was replaced with a custom flag in commit ceeeb99cd821 ("dmaengine: mxs: rename custom flag"), but i2c-mxs was not updated to use the new flag, completely

[PATCH 5.8 079/118] locking/lockdep: Fix "USED" <- "IN-NMI" inversions

2020-09-21 Thread Greg Kroah-Hartman
From: pet...@infradead.org [ Upstream commit 23870f1227680d2aacff6f79c3abbd04e86e ] During the LPC RCU BoF Paul asked how come the "USED" <- "IN-NMI" detector doesn't trip over rcu_read_lock()'s lockdep annotation. Looking into this I found a very embarrasing typo in verify_lock_unused():

[PATCH 5.8 073/118] iommu/amd: Fix potential @entry null deref

2020-09-21 Thread Greg Kroah-Hartman
From: Joao Martins [ Upstream commit 14c4acc5ed22c21f9821103be7c48efdf9763584 ] After commit 26e495f34107 ("iommu/amd: Restore IRTE.RemapEn bit after programming IRTE"), smatch warns: drivers/iommu/amd/iommu.c:3870 amd_iommu_deactivate_guest_mode() warn: variable dereferenced

Re: [PATCH V2 1/3] efi: Support for MOK variable config table

2020-09-21 Thread Arvind Sankar
On Mon, Sep 21, 2020 at 06:27:17PM +0200, Ard Biesheuvel wrote: > On Mon, 21 Sep 2020 at 18:19, Arvind Sankar wrote: > > > > On Fri, Sep 04, 2020 at 09:31:05PM -0400, Lenny Szubowicz wrote: > > > + /* > > > + * The EFI MOK config table must fit within a single EFI memory > > > + *

[PATCH 5.8 074/118] iommu/amd: Restore IRTE.RemapEn bit for amd_iommu_activate_guest_mode

2020-09-21 Thread Greg Kroah-Hartman
From: Suravee Suthikulpanit [ Upstream commit e97685abd5d711c885053d4949178f7ab9acbaef ] Commit e52d58d54a32 ("iommu/amd: Use cmpxchg_double() when updating 128-bit IRTE") removed an assumption that modify_irte_ga always set the valid bit, which requires the callers to set the appropriate value

[PATCH 5.8 075/118] kconfig: qconf: use delete[] instead of delete to free array (again)

2020-09-21 Thread Greg Kroah-Hartman
From: Masahiro Yamada [ Upstream commit a608b6a646e8816bc0db156baad2e0679fa4d137 ] Commit c9b09a9249e6 ("kconfig: qconf: use delete[] instead of delete to free array") fixed two lines, but there is one more. (cppcheck does not report it for some reason...) This was detected by Clang. "make

[PATCH 5.8 057/118] perf record: Dont clear events period if set by a term

2020-09-21 Thread Greg Kroah-Hartman
From: Ian Rogers [ Upstream commit 3b0a18c1aa6cbfa7b0dd513b6be9893ef6e6ac30 ] If events in a group explicitly set a frequency or period with leader sampling, don't disable the samples on those events. Prior to 5.8: perf record -e '{cycles/period=12345000/,instructions/period=6789000/}:S'

[PATCH 5.8 084/118] drm/i915/gem: Delay tracking the GEM context until it is registered

2020-09-21 Thread Greg Kroah-Hartman
From: Chris Wilson commit e7d95527f27a6d9edcffbd74eee38e5cb6b91785 upstream. Avoid exposing a partially constructed context by deferring the list_add() from the initial construction to the end of registration. Otherwise, if we peek into the list of contexts from inside debugfs, we may see the

[PATCH 5.8 082/118] x86/unwind/fp: Fix FP unwinding in ret_from_fork

2020-09-21 Thread Greg Kroah-Hartman
From: Josh Poimboeuf [ Upstream commit 6f9885a36c006d798319661fa849f9c293b9 ] There have been some reports of "bad bp value" warnings printed by the frame pointer unwinder: WARNING: kernel stack regs at 5bac7112 in sh:1014 has bad 'bp' value This warning

[PATCH 5.8 083/118] drm/kfd: fix a system crash issue during GPU recovery

2020-09-21 Thread Greg Kroah-Hartman
From: Dennis Li commit 66a5710beaf42903d553378f609166034bd219c7 upstream. The crash log as the below: [Thu Aug 20 23:18:14 2020] general protection fault: [#1] SMP NOPTI [Thu Aug 20 23:18:14 2020] CPU: 152 PID: 1837 Comm: kworker/152:1 Tainted: G OE 5.4.0-42-generic

[PATCH 5.8 085/118] drm/i915: Filter wake_flags passed to default_wake_function

2020-09-21 Thread Greg Kroah-Hartman
From: Chris Wilson commit 20612303a0b45de748d31331407e84300c38e497 upstream. (NOTE: This is the minimal backportable fix, a full fix is being developed at https://patchwork.freedesktop.org/patch/388048/) The flags passed to the wait_entry.func are passed onwards to try_to_wake_up(), which has

[PATCH 5.8 060/118] perf metric: Fix some memory leaks

2020-09-21 Thread Greg Kroah-Hartman
From: Namhyung Kim [ Upstream commit 4f57a1ed749a81ec553d89233cab53db9365e193 ] I found some memory leaks while reading the metric code. Some are real and others only occur in the error path. When it failed during metric or event parsing, it should release all resources properly. Fixes:

[PATCH 5.8 081/118] locking/percpu-rwsem: Use this_cpu_{inc,dec}() for read_count

2020-09-21 Thread Greg Kroah-Hartman
From: Hou Tao [ Upstream commit e6b1a44eccfcab5e5e280be376f65478c3b2c7a2 ] The __this_cpu*() accessors are (in general) IRQ-unsafe which, given that percpu-rwsem is a blocking primitive, should be just fine. However, file_end_write() is used from IRQ context and will cause load-store issues on

[PATCH 5.8 058/118] MIPS: SNI: Fix MIPS_L1_CACHE_SHIFT

2020-09-21 Thread Greg Kroah-Hartman
From: Thomas Bogendoerfer [ Upstream commit 564c836fd945a94b5dd46597d6b7adb464092650 ] Commit 930beb5ac09a ("MIPS: introduce MIPS_L1_CACHE_SHIFT_") forgot to select the correct MIPS_L1_CACHE_SHIFT for SNI RM. This breaks non coherent DMA because of a wrong allocation alignment. Fixes:

Re: [PATCH] mmap_lock: add tracepoints around lock acquisition

2020-09-21 Thread Axel Rasmussen
On Sun, Sep 20, 2020 at 9:58 PM Yafang Shao wrote: > > On Fri, Sep 18, 2020 at 2:13 AM Axel Rasmussen > wrote: > > > > The goal of these tracepoints is to be able to debug lock contention > > issues. This lock is acquired on most (all?) mmap / munmap / page fault > > operations, so a

[PATCH 5.8 104/118] kprobes: fix kill kprobe which has been marked as gone

2020-09-21 Thread Greg Kroah-Hartman
From: Muchun Song commit b0399092ccebd9feef68d4ceb8d6219a8c0caa05 upstream. If a kprobe is marked as gone, we should not kill it again. Otherwise, we can disarm the kprobe more than once. In that case, the statistics of kprobe_ftrace_enabled can unbalance which can lead to that kprobe do not

Re: [PATCH] arm64: dts: marvell: espressobin: Get rid of duplicate serial aliases

2020-09-21 Thread Pali Rohár
On Monday 21 September 2020 18:48:30 Andre Heider wrote: > The included armada-372x.dtsi already defines these two aliases. Where? I do not see it in that file: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/marvell/armada-372x.dtsi > >

Re: [PATCH v38 13/24] x86/sgx: Add SGX_IOC_ENCLAVE_ADD_PAGES

2020-09-21 Thread Sean Christopherson
On Mon, Sep 21, 2020 at 02:41:04PM +0300, Jarkko Sakkinen wrote: > On Fri, Sep 18, 2020 at 05:09:19PM -0700, Sean Christopherson wrote: > > On Fri, Sep 18, 2020 at 03:39:32PM +0300, Jarkko Sakkinen wrote: > > > On Fri, Sep 18, 2020 at 03:20:39PM +0300, Jarkko Sakkinen wrote: > > > > On Thu, Sep

[PATCH 5.8 110/118] arm64: paravirt: Initialize steal time when cpu is online

2020-09-21 Thread Greg Kroah-Hartman
From: Andrew Jones commit 75df529bec9110dad43ab30e2d9490242529e8b8 upstream. Steal time initialization requires mapping a memory region which invokes a memory allocation. Doing this at CPU starting time results in the following trace when CONFIG_DEBUG_ATOMIC_SLEEP is enabled: BUG: sleeping

[PATCH 5.8 109/118] ehci-hcd: Move include to keep CRC stable

2020-09-21 Thread Greg Kroah-Hartman
From: Quentin Perret commit 29231826f3bd65500118c473fccf31c0cf14dbc0 upstream. The CRC calculation done by genksyms is triggered when the parser hits EXPORT_SYMBOL*() macros. At this point, genksyms recursively expands the types of the function parameters, and uses that as the input for the CRC

[PATCH 5.8 117/118] mm: memcg: fix memcg reclaim soft lockup

2020-09-21 Thread Greg Kroah-Hartman
From: Xunlei Pang commit e3336cab2579012b1e72b5265adf98e2d6e244ad upstream. We've met softlockup with "CONFIG_PREEMPT_NONE=y", when the target memcg doesn't have any reclaimable memory. It can be easily reproduced as below: watchdog: BUG: soft lockup - CPU#0 stuck for 111s![memcg_test:2204]

[PATCH 5.8 106/118] s390: add 3f program exception handler

2020-09-21 Thread Greg Kroah-Hartman
From: Janosch Frank commit cd4d3d5f21ddbfae3f686ac0ff405f21f7847ad3 upstream. Program exception 3f (secure storage violation) can only be detected when the CPU is running in SIE with a format 4 state description, e.g. running a protected guest. Because of this and because user space partly

[PATCH 5.8 097/118] Input: i8042 - add Entroware Proteus EL07R4 to nomux and reset lists

2020-09-21 Thread Greg Kroah-Hartman
From: Hans de Goede commit c4440b8a457779adeec42c5e181cb4016f19ce0f upstream. The keyboard drops keypresses early during boot unless both the nomux and reset quirks are set. Add DMI table entries for this. BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1806085 Signed-off-by: Hans de

[PATCH 5.8 062/118] perf parse-event: Fix memory leak in evsel->unit

2020-09-21 Thread Greg Kroah-Hartman
From: Namhyung Kim [ Upstream commit b12eea5ad8e77f8a380a141e3db67c07432dde16 ] The evsel->unit borrows a pointer of pmu event or alias instead of owns a string. But tool event (duration_time) passes a result of strdup() caused a leak. It was found by ASAN during metric test: Direct leak

[PATCH 5.4 07/72] firmware_loader: fix memory leak for paged buffer

2020-09-21 Thread Greg Kroah-Hartman
From: Prateek Sood commit 4965b8cd1bc1ffb017e5c58e622da82b55e49414 upstream. vfree() is being called on paged buffer allocated using alloc_page() and mapped using vmap(). Freeing of pages in vfree() relies on nr_pages of struct vm_struct. vmap() does not update nr_pages. It can lead to memory

[PATCH 5.4 33/72] ASoC: meson: axg-toddr: fix channel order on g12 platforms

2020-09-21 Thread Greg Kroah-Hartman
From: Jerome Brunet [ Upstream commit 9c4b205a20f483d8a5d1208cfec33e339347d4bd ] On g12 and following platforms, The first channel of record with more than 2 channels ends being placed randomly on an even channel of the output. On these SoCs, a bit was added to force the first channel to be

[PATCH 5.4 09/72] scsi: pm8001: Fix memleak in pm8001_exec_internal_task_abort

2020-09-21 Thread Greg Kroah-Hartman
From: Dinghao Liu [ Upstream commit ea403fde7552bd61bad6ea45e3feb99db77cb31e ] When pm8001_tag_alloc() fails, task should be freed just like it is done in the subsequent error paths. Link: https://lore.kernel.org/r/20200823091453.4782-1-dinghao@zju.edu.cn Acked-by: Jack Wang

[PATCH 5.4 08/72] NFSv4.1 handle ERR_DELAY error reclaiming locking state on delegation recall

2020-09-21 Thread Greg Kroah-Hartman
From: Olga Kornievskaia [ Upstream commit 3d7a9520f0c3e6a68b6de8c5812fc8b6d7a52626 ] A client should be able to handle getting an ERR_DELAY error while doing a LOCK call to reclaim state due to delegation being recalled. This is a transient error that can happen due to server moving its volumes

[PATCH 5.4 18/72] openrisc: Fix cache API compile issue when not inlining

2020-09-21 Thread Greg Kroah-Hartman
From: Stafford Horne [ Upstream commit 3ae90d764093dfcd6ab8ab6875377302892c87d4 ] I found this when compiling a kbuild random config with GCC 11. The config enables CONFIG_DEBUG_SECTION_MISMATCH, which sets CFLAGS -fno-inline-functions-called-once. This causes the call to cache_loop in cache.c

[PATCH 5.4 29/72] clk: rockchip: Fix initialization of mux_pll_src_4plls_p

2020-09-21 Thread Greg Kroah-Hartman
From: Nathan Chancellor [ Upstream commit e9c006bc782c488f485ffe50de20b44e1e3daa18 ] A new warning in Clang points out that the initialization of mux_pll_src_4plls_p appears incorrect: ../drivers/clk/rockchip/clk-rk3228.c:140:58: warning: suspicious concatenation of string literals in an array

[PATCH 5.4 20/72] nvme-rdma: cancel async events before freeing event struct

2020-09-21 Thread Greg Kroah-Hartman
From: David Milburn [ Upstream commit 925dd04c1f9825194b9e444c12478084813b2b5d ] Cancel async event work in case async event has been queued up, and nvme_rdma_submit_async_event() runs after event has been freed. Signed-off-by: David Milburn Reviewed-by: Keith Busch Reviewed-by: Sagi

[PATCH 5.4 30/72] ASoC: qcom: Set card->owner to avoid warnings

2020-09-21 Thread Greg Kroah-Hartman
From: Stephan Gerhold [ Upstream commit 3c27ea23ffb43262da6c64964163895951aaed4e ] On Linux 5.9-rc1 I get the following warning with apq8016-sbc: WARNING: CPU: 2 PID: 69 at sound/core/init.c:207 snd_card_new+0x36c/0x3b0 [snd] CPU: 2 PID: 69 Comm: kworker/2:1 Not tainted 5.9.0-rc1 #1 Workqueue:

[PATCH] arm64: dts: marvell: espressobin: Get rid of duplicate serial aliases

2020-09-21 Thread Andre Heider
The included armada-372x.dtsi already defines these two aliases. Signed-off-by: Andre Heider --- This goes on top of Pali's patch: "arm64: dts: marvell: espressobin: Add ethernet switch aliases" The resulting .dtb files are the same. arch/arm64/boot/dts/marvell/armada-3720-espressobin.dtsi |

Re: [PATCH v3 2/4] soc: mediatek: pwrap: add arbiter capability

2020-09-21 Thread Matthias Brugger
On 21/09/2020 13:03, Hsin-Hsiung Wang wrote: Add arbiter capability for pwrap driver. Can you provide a bit more verbose commit message, please. This patch is preparing for adding mt6873/8192 pwrap support. Signed-off-by: Hsin-Hsiung Wang --- drivers/soc/mediatek/mtk-pmic-wrap.c | 57

[PATCH 5.4 00/72] 5.4.67-rc1 review

2020-09-21 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.67 release. There are 72 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Wed, 23 Sep 2020 16:31:02 +. Anything

[PATCH 5.4 54/72] usblp: fix race between disconnect() and read()

2020-09-21 Thread Greg Kroah-Hartman
From: Oliver Neukum commit 9cdabcb3ef8c24ca3a456e4db7b012befb688e73 upstream. read() needs to check whether the device has been disconnected before it tries to talk to the device. Signed-off-by: Oliver Neukum Reported-by: syzbot+be5b5f86a162a6c28...@syzkaller.appspotmail.com Link:

[PATCH 5.4 31/72] ASoC: qcom: common: Fix refcount imbalance on error

2020-09-21 Thread Greg Kroah-Hartman
From: Dinghao Liu [ Upstream commit c1e6414cdc371f9ed82cefebba7538499a3059f9 ] for_each_child_of_node returns a node pointer np with refcount incremented. So when devm_kzalloc fails, a pairing refcount decrement is needed to keep np's refcount balanced. Fixes: 16395ceee11f8 ("ASoC: qcom:

[PATCH 5.4 25/72] i2c: algo: pca: Reapply i2c bus settings after reset

2020-09-21 Thread Greg Kroah-Hartman
From: Evan Nimmo [ Upstream commit 0a355aeb24081e4538d4d424cd189f16c0bbd983 ] If something goes wrong (such as the SCL being stuck low) then we need to reset the PCA chip. The issue with this is that on reset we lose all config settings and the chip ends up in a disabled state which results in

[PATCH 5.4 38/72] perf test: Fix the "signal" test inline assembly

2020-09-21 Thread Greg Kroah-Hartman
From: Jiri Olsa [ Upstream commit 8a39e8c4d9baf65d88f66d49ac684df381e30055 ] When compiling with DEBUG=1 on Fedora 32 I'm getting crash for 'perf test signal': Program received signal SIGSEGV, Segmentation fault. 0x00c68548 in __test_function () (gdb) bt #0 0x00c68548

[PATCH 5.4 48/72] iommu/amd: Fix potential @entry null deref

2020-09-21 Thread Greg Kroah-Hartman
From: Joao Martins [ Upstream commit 14c4acc5ed22c21f9821103be7c48efdf9763584 ] After commit 26e495f34107 ("iommu/amd: Restore IRTE.RemapEn bit after programming IRTE"), smatch warns: drivers/iommu/amd/iommu.c:3870 amd_iommu_deactivate_guest_mode() warn: variable dereferenced

[PATCH 5.4 44/72] MIPS: SNI: Fix spurious interrupts

2020-09-21 Thread Greg Kroah-Hartman
From: Thomas Bogendoerfer [ Upstream commit b959b97860d0fee8c8f6a3e641d3c2ad76eab6be ] On A20R machines the interrupt pending bits in cause register need to be updated by requesting the chipset to do it. This needs to be done to find the interrupt cause and after interrupt service. In commit

[PATCH 5.4 47/72] arm64: bpf: Fix branch offset in JIT

2020-09-21 Thread Greg Kroah-Hartman
From: Ilias Apalodimas [ Upstream commit 32f6865c7aa3c422f710903baa6eb81abc6f559b ] Running the eBPF test_verifier leads to random errors looking like this: [ 6525.735488] Unexpected kernel BRK exception at EL1 [ 6525.735502] Internal error: ptrace BRK handler: f2000100 [#1] SMP [ 6525.741609]

[PATCH 5.4 46/72] drm/mediatek: Add missing put_device() call in mtk_hdmi_dt_parse_pdata()

2020-09-21 Thread Greg Kroah-Hartman
From: Yu Kuai [ Upstream commit 0680a622318b8d657323b94082f4b9a44038dfee ] if of_find_device_by_node() succeed, mtk_drm_kms_init() doesn't have a corresponding put_device(). Thus add jump target to fix the exception handling for this function implementation. Fixes: 8f83f26891e1 ("drm/mediatek:

[PATCH 5.4 45/72] drm/mediatek: Add exception handing in mtk_drm_probe() if component init fail

2020-09-21 Thread Greg Kroah-Hartman
From: Yu Kuai [ Upstream commit 64c194c00789889b0f9454f583712f079ba414ee ] mtk_ddp_comp_init() is called in a loop in mtk_drm_probe(), if it fail, previous successive init component is not proccessed. Thus uninitialize valid component and put their device if component init failed. Fixes:

[PATCH 5.4 37/72] Drivers: hv: vmbus: Add timeout to vmbus_wait_for_unload

2020-09-21 Thread Greg Kroah-Hartman
From: Michael Kelley [ Upstream commit 911e1987efc8f3e6445955fbae7f54b428b92bd3 ] vmbus_wait_for_unload() looks for a CHANNELMSG_UNLOAD_RESPONSE message coming from Hyper-V. But if the message isn't found for some reason, the panic path gets hung forever. Add a timeout of 10 seconds to

[PATCH 5.4 21/72] nvme-tcp: cancel async events before freeing event struct

2020-09-21 Thread Greg Kroah-Hartman
From: David Milburn [ Upstream commit ceb1e0874dba5cbfc4e0b4145796a4bfb3716e6a ] Cancel async event work in case async event has been queued up, and nvme_tcp_submit_async_event() runs after event has been freed. Signed-off-by: David Milburn Reviewed-by: Keith Busch Reviewed-by: Sagi Grimberg

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