[PATCH 5.8 103/186] MIPS: SNI: Fix SCSI interrupt

2020-09-08 Thread Greg Kroah-Hartman
From: Thomas Bogendoerfer [ Upstream commit baf5cb30fbd1c22f6aa03c081794c2ee0f5be4da ] On RM400(a20r) machines ISA and SCSI interrupts share the same interrupt line. Commit 49e6e07e3c80 ("MIPS: pass non-NULL dev_id on shared request_irq()") accidently dropped the IRQF_SHARED bit, which breaks re

[PATCH 5.8 040/186] batman-adv: Avoid uninitialized chaddr when handling DHCP

2020-09-08 Thread Greg Kroah-Hartman
From: Sven Eckelmann [ Upstream commit 303216e76dcab6049c9d42390b1032f0649a8206 ] The gateway client code can try to optimize the delivery of DHCP packets to avoid broadcasting them through the whole mesh. But also transmissions to the client can be optimized by looking up the destination via th

Re: linux-next: build failure after merge of the akpm-current tree

2020-09-08 Thread Vivek Goyal
On Tue, Sep 08, 2020 at 08:09:50PM +1000, Stephen Rothwell wrote: [..] > fs/fuse/virtio_fs.c: In function 'virtio_fs_setup_dax': > fs/fuse/virtio_fs.c:838:9: error: 'struct dev_pagemap' has no member named > 'res'; did you mean 'ref'? > 838 | pgmap->res = (struct resource){ > | ^

[PATCH 5.4 092/129] ALSA: pcm: oss: Remove superfluous WARN_ON() for mulaw sanity check

2020-09-08 Thread Greg Kroah-Hartman
From: Takashi Iwai commit 949a1ebe8cea7b342085cb6a4946b498306b9493 upstream. The PCM OSS mulaw plugin has a check of the format of the counter part whether it's a linear format. The check is with snd_BUG_ON() that emits WARN_ON() when the debug config is set, and it confuses syzkaller as if it

[PATCH 5.4 100/129] mmc: mediatek: add optional module reset property

2020-09-08 Thread Greg Kroah-Hartman
From: Wenbin Mei commit 855d388df217989fbf1f18c781ae6490dbb48e86 upstream. This patch fixs eMMC-Access on mt7622/Bpi-64. Before we got these Errors on mounting eMMC ion R64: [ 48.664925] blk_update_request: I/O error, dev mmcblk0, sector 204800 op 0x1:(WRITE) flags 0x800 phys_seg 1 prio class

[PATCH 5.4 094/129] ALSA: firewire-digi00x: exclude Avid Adrenaline from detection

2020-09-08 Thread Greg Kroah-Hartman
From: Takashi Sakamoto commit acd46a6b6de88569654567810acad2b0a0a25cea upstream. Avid Adrenaline is reported that ALSA firewire-digi00x driver is bound to. However, as long as he investigated, the design of this model is hardly similar to the one of Digi 00x family. It's better to exclude the mo

[PATCH 5.4 098/129] ALSA: hda/realtek - Improved routing for Thinkpad X1 7th/8th Gen

2020-09-08 Thread Greg Kroah-Hartman
From: Takashi Iwai commit 6a6660d049f88b89fd9a4b9db3581b245f7782fa upstream. There've been quite a few regression reports about the lowered volume (reduced to ca 65% from the previous level) on Lenovo Thinkpad X1 after the commit d2cd795c4ece ("ALSA: hda - fixup for the bass speaker on Lenovo Ca

[PATCH 5.4 106/129] affs: fix basic permission bits to actually work

2020-09-08 Thread Greg Kroah-Hartman
From: Max Staudt commit d3a84a8d0dde4e26bc084b36ffcbdc5932ac85e2 upstream. The basic permission bits (protection bits in AmigaOS) have been broken in Linux' AFFS - it would only set bits, but never delete them. Also, contrary to the documentation, the Archived bit was not handled. Let's fix thi

[PATCH 5.4 116/129] dm crypt: Initialize crypto wait structures

2020-09-08 Thread Greg Kroah-Hartman
From: Damien Le Moal commit 7785a9e4c228db6d01086a52d5685cd7336a08b7 upstream. Use the DECLARE_CRYPTO_WAIT() macro to properly initialize the crypto wait structures declared on stack before their use with crypto_wait_req(). Fixes: 39d13a1ac41d ("dm crypt: reuse eboiv skcipher for IV generation"

[PATCH 5.4 114/129] dm mpath: fix racey management of PG initialization

2020-09-08 Thread Greg Kroah-Hartman
From: Mike Snitzer commit c322ee9320eaa4013ca3620b1130992916b19b31 upstream. Commit 935fcc56abc3 ("dm mpath: only flush workqueue when needed") changed flush_multipath_work() to avoid needless workqueue flushing (of a multipath global workqueue). But that change didn't realize the surrounding fl

[PATCH 4.19 25/88] net: hns: Fix memleak in hns_nic_dev_probe

2020-09-08 Thread Greg Kroah-Hartman
From: Dinghao Liu [ Upstream commit 100e3345c6e719d2291e1efd5de311cc24bb9c0b ] hns_nic_dev_probe allocates ndev, but not free it on two error handling paths, which may lead to memleak. Fixes: 63434888aaf1b ("net: hns: net: hns: enet adds support of acpi") Signed-off-by: Dinghao Liu Signed-off-

[PATCH 4.19 28/88] net: arc_emac: Fix memleak in arc_mdio_probe

2020-09-08 Thread Greg Kroah-Hartman
From: Dinghao Liu [ Upstream commit e2d79cd8875fa8c3cc7defa98a8cc99a1ed0c62f ] When devm_gpiod_get_optional() fails, bus should be freed just like when of_mdiobus_register() fails. Fixes: 1bddd96cba03d ("net: arc_emac: support the phy reset for emac driver") Signed-off-by: Dinghao Liu Reviewed

[PATCH 4.19 29/88] dmaengine: pl330: Fix burst length if burst size is smaller than bus width

2020-09-08 Thread Greg Kroah-Hartman
From: Marek Szyprowski [ Upstream commit 0661cef675d37e2c4b66a996389ebeae8568e49e ] Move the burst len fixup after setting the generic value for it. This finally enables the fixup introduced by commit 137bd11090d8 ("dmaengine: pl330: Align DMA memcpy operations to MFIFO width"), which otherwise

[PATCH 4.19 32/88] bnxt_en: Check for zero dir entries in NVRAM.

2020-09-08 Thread Greg Kroah-Hartman
From: Vasundhara Volam [ Upstream commit dbbfa96ad920c50d58bcaefa57f5f33ceef9d00e ] If firmware goes into unstable state, HWRM_NVM_GET_DIR_INFO firmware command may return zero dir entries. Return error in such case to avoid zero length dma buffer request. Fixes: c0c050c58d84 ("bnxt_en: New Bro

Re: [PATCH v2 1/4] clk: bcm: rpi: Add register to control pixel bvb clk

2020-09-08 Thread Nicolas Saenz Julienne
On Tue, 2020-09-01 at 13:07 +0900, Hoegeun Kwon wrote: > To use QHD or higher, we need to modify the pixel_bvb_clk value. So > add register to control this clock. > > Signed-off-by: Hoegeun Kwon > --- > drivers/clk/bcm/clk-raspberrypi.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/d

[PATCH 1/2] cdrom: delegate automatic CD tray loading to callers of cdrom_open()

2020-09-08 Thread Thomas Schmitt
If open("/dev/sr0", O_RDONLY); pulls in the tray of an optical drive, it immediately returns -1 with errno ENOMEDIUM or the first read(2) fails with EIO. Later, when the drive has stopped blinking, another open() yields success and read() works. This affects not only userland reading of the devic

[PATCH 5.4 026/129] dmaengine: at_hdmac: check return value of of_find_device_by_node() in at_dma_xlate()

2020-09-08 Thread Greg Kroah-Hartman
From: Yu Kuai [ Upstream commit 0cef8e2c5a07d482ec907249dbd6687e8697677f ] The reurn value of of_find_device_by_node() is not checked, thus null pointer dereference will be triggered if of_find_device_by_node() failed. Fixes: bbe89c8e3d59 ("at_hdmac: move to generic DMA binding") Signed-off-by:

[PATCH 4.19 52/88] ext2: dont update mtime on COW faults

2020-09-08 Thread Greg Kroah-Hartman
From: Mikulas Patocka commit 1ef6ea0efe8e68d0299dad44c39dc6ad9e5d1f39 upstream. When running in a dax mode, if the user maps a page with MAP_PRIVATE and PROT_WRITE, the ext2 filesystem would incorrectly update ctime and mtime when the user hits a COW fault. This breaks building of the Linux ker

[PATCH 4.19 49/88] iommu/vt-d: Serialize IOMMU GCMD register modifications

2020-09-08 Thread Greg Kroah-Hartman
From: Lu Baolu [ Upstream commit 6e4e9ec65078093165463c13d4eb92b3e8d7b2e8 ] The VT-d spec requires (10.4.4 Global Command Register, GCMD_REG General Description) that: If multiple control fields in this register need to be modified, software must serialize the modifications through multiple wri

[PATCH 5.4 032/129] netfilter: nf_tables: add NFTA_SET_USERDATA if not null

2020-09-08 Thread Greg Kroah-Hartman
From: Pablo Neira Ayuso [ Upstream commit 6f03bf43ee05b31d3822def2a80f11b3591c55b3 ] Kernel sends an empty NFTA_SET_USERDATA attribute with no value if userspace adds a set with no NFTA_SET_USERDATA attribute. Fixes: e6d8ecac9e68 ("netfilter: nf_tables: Add new attributes into nft_set to store

[PATCH 5.4 007/129] drm/msm: enable vblank during atomic commits

2020-09-08 Thread Greg Kroah-Hartman
From: Rob Clark [ Upstream commit 43906812eaab06423f56af5cca9a9fcdbb4ac454 ] This has roughly the same effect as drm_atomic_helper_wait_for_vblanks(), basically just ensuring that vblank accounting is enabled so that we get valid timestamp/seqn on pageflip events. Signed-off-by: Rob Clark Test

[PATCH 5.8 166/186] dm mpath: fix racey management of PG initialization

2020-09-08 Thread Greg Kroah-Hartman
From: Mike Snitzer commit c322ee9320eaa4013ca3620b1130992916b19b31 upstream. Commit 935fcc56abc3 ("dm mpath: only flush workqueue when needed") changed flush_multipath_work() to avoid needless workqueue flushing (of a multipath global workqueue). But that change didn't realize the surrounding fl

[PATCH 5.4 008/129] habanalabs: validate FW file size

2020-09-08 Thread Greg Kroah-Hartman
From: Ofir Bitton [ Upstream commit bce382a8bb080ed5f2f3a06754526dc58b91cca2 ] We must validate FW size in order not to corrupt memory in case a malicious FW file will be present in system. Signed-off-by: Ofir Bitton Signed-off-by: Oded Gabbay Signed-off-by: Sasha Levin --- drivers/misc/hab

[PATCH 4.19 86/88] mm/hugetlb: fix a race between hugetlb sysctl handlers

2020-09-08 Thread Greg Kroah-Hartman
From: Muchun Song commit 17743798d81238ab13050e8e2833699b54e15467 upstream. There is a race between the assignment of `table->data` and write value to the pointer of `table->data` in the __do_proc_doulongvec_minmax() on the other thread. CPU0: CPU1:

[PATCH 4.19 88/88] net: usb: Fix uninit-was-stored issue in asix_read_phy_addr()

2020-09-08 Thread Greg Kroah-Hartman
From: Himadri Pandya commit a092b7233f0e000cc6f2c71a49e2ecc6f917a5fc upstream. The buffer size is 2 Bytes and we expect to receive the same amount of data. But sometimes we receive less data and run into uninit-was-stored issue upon read. Hence modify the error check on the return value to match

[RFT net] net: ipa: fix u32_replace_bits by u32p_xxx version

2020-09-08 Thread Vadym Kochan
Looks like u32p_replace_bits() should be used instead of u32_replace_bits() which does not modifies the value but returns the modified version. Fixes: 2b9feef2b6c2 ("soc: qcom: ipa: filter and routing tables") Signed-off-by: Vadym Kochan --- Found it while grepping of u32_replace_bits() usage and

[PATCH 5.4 029/129] MIPS: mm: BMIPS5000 has inclusive physical caches

2020-09-08 Thread Greg Kroah-Hartman
From: Florian Fainelli [ Upstream commit dbfc95f98f0158958d1f1e6bf06d74be38dbd821 ] When the BMIPS generic cpu-feature-overrides.h file was introduced, cpu_has_inclusive_caches/MIPS_CPU_INCLUSIVE_CACHES was not set for BMIPS5000 CPUs. Correct this when we have initialized the MIPS secondary cach

[PATCH 4.14 62/65] checkpatch: fix the usage of capture group ( ... )

2020-09-08 Thread Greg Kroah-Hartman
From: Mrinal Pandey commit 13e45417cedbfc44b1926124b1846f5ee8c6ba4a upstream. The usage of "capture group (...)" in the immediate condition after `&&` results in `$1` being uninitialized. This issues a warning "Use of uninitialized value $1 in regexp compilation at ./scripts/checkpatch.pl line

[PATCH 4.14 47/65] ALSA: ca0106: fix error code handling

2020-09-08 Thread Greg Kroah-Hartman
From: Tong Zhang commit ee0761d1d8222bcc5c86bf10849dc86cf008557c upstream. snd_ca0106_spi_write() returns 1 on error, snd_ca0106_pcm_power_dac() is returning the error code directly, and the caller is expecting an negative error code Signed-off-by: Tong Zhang Cc: Link: https://lore.kernel.org

Re: [PATCH RFC 1/7] net: bridge: extend the process of special frames

2020-09-08 Thread Nikolay Aleksandrov
On Fri, 2020-09-04 at 09:15 +, Henrik Bjoernlund wrote: > This patch extends the processing of frames in the bridge. Currently MRP > frames needs special processing and the current implementation doesn't > allow a nice way to process different frame types. Therefore try to > improve this by add

Re: [PATCH] fsync.2: ERRORS: add EIO and ENOSPC

2020-09-08 Thread Jeff Layton
On Tue, 2020-09-08 at 13:27 +0200, Jan Kara wrote: > Added Jeff to CC since he has written the code... > > On Mon 07-09-20 09:11:06, Michael Kerrisk (man-pages) wrote: > > [Widening the CC to include Andrew and linux-fsdevel@] > > [Milan: thanks for the patch, but it's unclear to me from your comm

Re: [RFC] arm64: mm: Do not use both DMA zones when 30-bit address space unavailable

2020-09-08 Thread Nicolas Saenz Julienne
Hi Catalin, thanks for taking the time. On Tue, 2020-09-08 at 12:14 +0100, Catalin Marinas wrote: > > Also note the usage of 'zone_dma_bits' in the DMA code, which assumes that > > ZONE_DMA's physical address space is always smaller than (1 << > > zone_dma_bits) - > > 1. > > I think part of thos

[PATCH] e1000e: do not panic on malformed rx_desc

2020-09-08 Thread Tong Zhang
length may be corrupted in rx_desc and lead to panic, so check the sanity before passing it to skb_put [ 103.840572] skbuff: skb_over_panic: text:8f432cc1 len:61585 put:61585 head:88805642b800 data:88805642b840 tail:0xf0d1 end:0x6c0 dev:e th0 [ 103.841283] [ cut her

Re: [PATCH 04/12] x86/platform/uv: Update UV MMRs for UV5

2020-09-08 Thread Mike Travis
On 9/8/2020 8:44 AM, Greg KH wrote: On Tue, Sep 08, 2020 at 08:35:37AM -0700, Mike Travis wrote: On 9/8/2020 8:23 AM, Greg KH wrote: On Mon, Sep 07, 2020 at 01:54:34PM -0500, Mike Travis wrote: --- linux.orig/drivers/misc/sgi-gru/grufile.c +++ linux/drivers/misc/sgi-gru/grufile.c @@ -7,7

RE: [PATCH v2 0/7] PHY: Prepare Cadence Torrent PHY driver to support multilink configurations

2020-09-08 Thread Swapnil Kashinath Jakhade
Hi Vinod, Thanks for the review comments. > -Original Message- > From: Vinod Koul > Sent: Tuesday, September 8, 2020 10:36 AM > To: Swapnil Kashinath Jakhade > Cc: kis...@ti.com; robh...@kernel.org; linux-kernel@vger.kernel.org; > devicet...@vger.kernel.org; Milind Parab ; Yuti > Suresh

Re: [RFC PATCH 00/16] 1GB THP support on x86_64

2020-09-08 Thread David Hildenbrand
On 03.09.20 18:30, Roman Gushchin wrote: > On Thu, Sep 03, 2020 at 05:23:00PM +0300, Kirill A. Shutemov wrote: >> On Wed, Sep 02, 2020 at 02:06:12PM -0400, Zi Yan wrote: >>> From: Zi Yan >>> >>> Hi all, >>> >>> This patchset adds support for 1GB THP on x86_64. It is on top of >>> v5.9-rc2-mmots-20

Re: [PATCH v11 06/11] PCI: brcmstb: Add control of rescal reset

2020-09-08 Thread Lorenzo Pieralisi
On Mon, Aug 24, 2020 at 03:30:19PM -0400, Jim Quinlan wrote: > From: Jim Quinlan > > Some STB chips have a special purpose reset controller named RESCAL (reset > calibration). The PCIe HW can now control RESCAL to start and stop its > operation. On probe(), the RESCAL is deasserted and the driv

Re: [PATCH 00/12] x86/platform/uv: Updates for UV5

2020-09-08 Thread Mike Travis
On 9/8/2020 8:47 AM, pet...@infradead.org wrote: On Tue, Sep 08, 2020 at 08:28:16AM -0700, Mike Travis wrote: I didn't. If I could figure out how to convert quilt patches into git commits I might be able to do that? (And I didn't know that diffstats were needed on the into?) $ git quiltim

Re: [PATCH] soundwire: qcom: fix SLIBMUS/SLIMBUS typo

2020-09-08 Thread Bjorn Andersson
On Tue 08 Sep 09:08 CDT 2020, Jonathan Marek wrote: > Fix slimbus case being broken thanks to a typo. > > Fixes: 5bd773242f75 ("soundwire: qcom: avoid dependency on CONFIG_SLIMBUS") > Reviewed-by: Bjorn Andersson > Signed-off-by: Jonathan Marek > --- > This should be squashed into the proble

Re: [RFC PATCH v8 1/3] fs: Introduce AT_INTERPRETED flag for faccessat2(2)

2020-09-08 Thread Mickaël Salaün
On 08/09/2020 15:42, Stephen Smalley wrote: > On Tue, Sep 8, 2020 at 9:29 AM Mimi Zohar wrote: >> >> On Tue, 2020-09-08 at 08:52 -0400, Stephen Smalley wrote: >>> On Tue, Sep 8, 2020 at 8:50 AM Stephen Smalley >>> wrote: On Tue, Sep 8, 2020 at 8:43 AM Mickaël Salaün wrote: >

Re: [Intel-gfx] [PATCH 0/8] Convert the intel iommu driver to the dma-iommu api

2020-09-08 Thread Logan Gunthorpe
On 2020-09-08 9:28 a.m., Tvrtko Ursulin wrote: >> >> diff --git a/drivers/gpu/drm/i915/i915_scatterlist.h >> b/drivers/gpu/drm/i915/i915 >> index b7b59328cb76..9367ac801f0c 100644 >> --- a/drivers/gpu/drm/i915/i915_scatterlist.h >> +++ b/drivers/gpu/drm/i915/i915_scatterlist.h >> @@ -27,13 +27,1

Re: linux-next: Tree for Sep 8 (sched/topology.c)

2020-09-08 Thread Valentin Schneider
On 08/09/20 17:07, Valentin Schneider wrote: > On 08/09/20 16:50, Randy Dunlap wrote: >> Sure, here it is again. And >> CONFIG_SMP=y >> CONFIG_SCHED_DEBUG=y >> >> thanks. > > Okay so I can reproduce that with GCC-10.1, now to figure out WTH is going > on... Yet another fail from my end, the de

[REGRESSION][BISECTED] 5.9-rc4 disables console on radeon

2020-09-08 Thread Mikael Pettersson
Starting with linux-5.9-rc4, the Dell monitor on my desktop PC goes black during boot when the kernel activates the framebuffer console, except for this error message shown in the center of the screen: "Dell U2412M The current input timing is not supported by the monitor display. Please change y

Re: [PATCH 4/7] cpufreq: qcom-hw: Make use of of_match data for offsets and row size

2020-09-08 Thread Amit Kucheria
On Tue, Sep 8, 2020 at 1:27 PM Manivannan Sadhasivam wrote: > > For preparing the driver to handle further SoC revisions, let's use the > of_match data for getting the device specific offsets and row size instead > of defining them globally. > > Signed-off-by: Manivannan Sadhasivam > --- > dr

Re: [PATCH 04/12] x86/platform/uv: Update UV MMRs for UV5

2020-09-08 Thread Greg KH
On Tue, Sep 08, 2020 at 09:20:14AM -0700, Mike Travis wrote: > > > On 9/8/2020 8:44 AM, Greg KH wrote: > > On Tue, Sep 08, 2020 at 08:35:37AM -0700, Mike Travis wrote: > > > > > > > > > On 9/8/2020 8:23 AM, Greg KH wrote: > > > > On Mon, Sep 07, 2020 at 01:54:34PM -0500, Mike Travis wrote: > >

[RESEND PATCH v1] PCI: pcie_bus_config can be set at build time

2020-09-08 Thread Jim Quinlan
The Kconfig is modified so that the pcie_bus_config setting can be done at build time in the same manner as the CONFIG_PCIEASPM_ choice. The pci_bus_config setting may still be overridden by the bootline param. Signed-off-by: Jim Quinlan --- drivers/pci/Kconfig | 40

Re: Question: Why is there no notification when a file is opened using filp_open()?

2020-09-08 Thread Amir Goldstein
On Tue, Sep 8, 2020 at 3:53 PM Xiaoming Ni wrote: > > On 2020/9/8 18:06, Amir Goldstein wrote: > > On Tue, Sep 8, 2020 at 11:02 AM Xiaoming Ni wrote: > >> > >> The file opening action on the system may be from user-mode sys_open() > >> or kernel-mode filp_open(). > >> Currently, fsnotify_open() i

[PATCH v2] fib: fix fib_rule_ops indirect call wrappers when CONFIG_IPV6=m

2020-09-08 Thread Brian Vazquez
If CONFIG_IPV6=m, the IPV6 functions won't be found by the linker: ld: net/core/fib_rules.o: in function `fib_rules_lookup': fib_rules.c:(.text+0x606): undefined reference to `fib6_rule_match' ld: fib_rules.c:(.text+0x611): undefined reference to `fib6_rule_match' ld: fib_rules.c:(.text+0x68c): un

Re: [PATCH v2 0/6] dt-bindings: Convert SP804 to Json-schema (and fix users)

2020-09-08 Thread Sudeep Holla
On Fri, 28 Aug 2020 15:20:12 +0100, Andre Przywara wrote: > This is the second attempt at converting the SP804 timer binding to yaml. > Compared to v1, I forbid additional properties, and included the primecell > binding. Also the clock-names property is now listed, although without > further requi

Re: [PATCH v3 06/15] MIPS: generic: Allow boards to set system type

2020-09-08 Thread Philippe Mathieu-Daudé
On Sun, Sep 6, 2020 at 9:31 PM Paul Cercueil wrote: > > Check for the (already existing) "system_type" variable in the > get_system_type() function. If non-NULL, return it as the system type. Nitpick: It is not already "existing", simply declared in asm/bootinfo.h. > > Signed-off-by: Paul Cercue

Re: [PATCH v2 6/6] arm64: dts: ti: k3-j7200-common-proc-board: Add USB support

2020-09-08 Thread Nishanth Menon
On 17:52-20200907, Roger Quadros wrote: > Enable USB0 port in high-speed (2.0) mode. Am I right that this is a choice forced by serdes mux configuration selection? Might be good to document it (default speed is super-speed). > > The board uses lane 3 of SERDES for USB. Set the mux > accordingly

Re: [PATCH v4.14.y 0/3] vfio: Fix for CVE-2020-12888

2020-09-08 Thread Greg KH
On Tue, Sep 08, 2020 at 08:29:04AM -0600, Alex Williamson wrote: > On Tue, 8 Sep 2020 01:47:08 +0530 > Ajay Kaher wrote: > > > CVE-2020-12888 Kernel: vfio: access to disabled MMIO space of some > > devices may lead to DoS scenario > > > > The VFIO modules allow users (guest VMs) to enable or

Re: [PATCH v5 80/80] ARM: dts: bcm2711: Enable the display pipeline

2020-09-08 Thread Nicolas Saenz Julienne
On Thu, 2020-09-03 at 10:01 +0200, Maxime Ripard wrote: > Now that all the drivers have been adjusted for it, let's bring in the > necessary device tree changes. > > The VEC and PV3 are left out for now, since it will require a more specific > clock setup. > > Reviewed-by: Dave Stevenson > Teste

Re: [PATCH 2/2] ASoC: tlv320adcx140: Wake up codec before accessing register

2020-09-08 Thread Dan Murphy
Camel On 9/8/20 6:49 AM, Dan Murphy wrote: Camel On 9/8/20 3:35 AM, Camel Guo wrote: From: Camel Guo According to its datasheet, after reset this codec goes into sleep mode. In this mode, any register accessing should be avoided except for exiting sleep mode. Hence this commit moves SLEEP_CF

Re: [PATCH 3/3] gpiolib: unexport devprop_gpiochip_set_names()

2020-09-08 Thread Bartosz Golaszewski
On Tue, Sep 8, 2020 at 3:52 PM Andy Shevchenko wrote: > > On Tue, Sep 08, 2020 at 02:58:13PM +0200, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > Now that devprop_gpiochip_set_names() is only used in a single place > > inside drivers/gpio/gpiolib.c, there's no need anymore for

Re: [PATCH 26/35] kasan, arm64: Enable TBI EL1

2020-09-08 Thread Andrey Konovalov
On Tue, Sep 8, 2020 at 4:06 PM Catalin Marinas wrote: > > On Tue, Sep 08, 2020 at 03:18:04PM +0200, Andrey Konovalov wrote: > > On Thu, Aug 27, 2020 at 12:40 PM Catalin Marinas > > wrote: > > > > > > On Fri, Aug 14, 2020 at 07:27:08PM +0200, Andrey Konovalov wrote: > > > > diff --git a/arch/arm64

Re: [PATCH 24/35] arm64: mte: Switch GCR_EL1 in kernel entry and exit

2020-09-08 Thread Andrey Konovalov
On Thu, Aug 27, 2020 at 2:16 PM Catalin Marinas wrote: > > On Thu, Aug 27, 2020 at 11:56:49AM +0100, Vincenzo Frascino wrote: > > On 8/27/20 11:38 AM, Catalin Marinas wrote: > > > On Fri, Aug 14, 2020 at 07:27:06PM +0200, Andrey Konovalov wrote: > > >> diff --git a/arch/arm64/kernel/mte.c b/arch/a

Re: [PATCH net-next 1/1] net: hsr/prp: add vlan support

2020-09-08 Thread Murali Karicheri
Hi Willem, Thanks for the response! On 9/4/20 11:45 AM, Willem de Bruijn wrote: On Tue, Sep 1, 2020 at 9:54 PM Murali Karicheri wrote: This patch add support for creating vlan interfaces over hsr/prp interface. Signed-off-by: Murali Karicheri --- net/hsr/hsr_device.c | 4 net/hsr/

Re: [PATCH v6 25/35] i2c: tegra: Factor out error recovery from tegra_i2c_xfer_msg()

2020-09-08 Thread Dmitry Osipenko
08.09.2020 11:49, Andy Shevchenko пишет: > On Tue, Sep 8, 2020 at 5:11 AM Dmitry Osipenko wrote: >> >> Factor out error recovery code from tegra_i2c_xfer_msg() in order to >> make this function easier to read and follow. > > Ordering issue. > You have a patch that replaces int -> unsigned int or

[PATCH 3/3] gpiolib: unexport devprop_gpiochip_set_names()

2020-09-08 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Now that devprop_gpiochip_set_names() is only used in a single place inside drivers/gpio/gpiolib.c, there's no need anymore for it to be exported or to even live in its own source file. Pull this function into the core source file for gpiolib. Signed-off-by: Bartosz Gol

Re: [RFC PATCH 00/22] Enhance VHOST to enable SoC-to-SoC communication

2020-09-08 Thread Cornelia Huck
On Tue, 1 Sep 2020 16:50:03 +0800 Jason Wang wrote: > On 2020/9/1 下午1:24, Kishon Vijay Abraham I wrote: > > Hi, > > > > On 28/08/20 4:04 pm, Cornelia Huck wrote: > >> On Thu, 9 Jul 2020 14:26:53 +0800 > >> Jason Wang wrote: > >> > >> [Let me note right at the beginning that I first noted this

INFO: rcu detected stall in security_file_free (2)

2020-09-08 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:e6135df4 Merge branch 'hashmap_iter_bucket_lock_fix' git tree: bpf console output: https://syzkaller.appspot.com/x/log.txt?x=10e3dbf590 kernel config: https://syzkaller.appspot.com/x/.config?x=a0437fdd630bee11 dashboard link:

Re: [PATCH 26/35] kasan, arm64: Enable TBI EL1

2020-09-08 Thread Andrey Konovalov
On Thu, Aug 27, 2020 at 12:40 PM Catalin Marinas wrote: > > On Fri, Aug 14, 2020 at 07:27:08PM +0200, Andrey Konovalov wrote: > > diff --git a/arch/arm64/mm/proc.S b/arch/arm64/mm/proc.S > > index 152d74f2cc9c..6880ddaa5144 100644 > > --- a/arch/arm64/mm/proc.S > > +++ b/arch/arm64/mm/proc.S > > @

[PATCH] documentation: arm: sunxi: Allwinner H2+/H3 update

2020-09-08 Thread Wilken Gottwalt
Updated information about H2+ and H3 difference and added a link to a slightly newer datasheet. Signed-off-by: Wilken Gottwalt --- Documentation/arm/sunxi.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/arm/sunxi.rst b/Documentation/arm/sunxi.rst index b037428aee98..50b9

[PATCH 0/3] gpiolib: generalize GPIO line names property

2020-09-08 Thread Bartosz Golaszewski
From: Bartosz Golaszewski I initially sent this as part of the gpio-mockup overhaul but since these patches are indepentent and the work on gpio-mockup may become more complicated - I'm sending these separately. The only change is adding additional property helpers to count strings in array. Ba

Re: [PATCH: V2 2/2] gpio: tc35894: Disable Direct KBD interrupts to enable gpio irq

2020-09-08 Thread Lee Jones
On Thu, 03 Sep 2020, dillon.min...@gmail.com wrote: > From: dillon min > > On tc35894, have to disable direct keypad interrupts to make > it as general purpose interrupts functionality work. > if not, after chip reset, IRQST(0x91) will always 0x20, > IRQN always low level, can't be clear. > > C

Re: [PATCH v3] mmc: host: Enable compile testing of multiple drivers

2020-09-08 Thread Ulf Hansson
On Tue, 8 Sep 2020 at 15:57, Krzysztof Kozlowski wrote: > > On Tue, 8 Sep 2020 at 15:54, Ulf Hansson wrote: > > > > + Arnd > > > > On Mon, 7 Sep 2020 at 12:53, Krzysztof Kozlowski wrote: > > > > > > Multiple MMC host controller driver can be compile tested as they do not > > > depend on architec

Re: [PATCH net-next RFC v1 2/4] devlink: Add devlink traps under devlink_ports context

2020-09-08 Thread Jiri Pirko
Sun, Sep 06, 2020 at 05:44:28PM CEST, ido...@idosch.org wrote: >On Wed, Sep 02, 2020 at 06:32:12PM +0300, Aya Levin wrote: [...] > >I understand how this struct allows you to re-use a lot of code between >per-device and per-port traps, but it's mainly enabled by the fact that >you use the same ne

[PATCH] soundwire: qcom: fix SLIBMUS/SLIMBUS typo

2020-09-08 Thread Jonathan Marek
Fix slimbus case being broken thanks to a typo. Fixes: 5bd773242f75 ("soundwire: qcom: avoid dependency on CONFIG_SLIMBUS") Signed-off-by: Jonathan Marek --- This should be squashed into the problematic patch if possible, but I'm not sure if that's possible since its already in linux-next? dri

[PATCH v2] drm: mxsfb: check framebuffer pitch

2020-09-08 Thread Stefan Agner
The lcdif IP does not support a framebuffer pitch (stride) other than framebuffer width. Check for equality and reject the framebuffer otherwise. This prevents a distorted picture when using 640x800 and running the Mesa graphics stack. Mesa tires to use a cache aligned stride, which leads at that

[PATCH v7.2 39/74] x86/sev-es: Setup early #VC handler

2020-09-08 Thread Joerg Roedel
From: Joerg Roedel Setup an early handler for #VC exceptions. There is no GHCB mapped yet, so just re-use the vc_no_ghcb_handler. It can only handle CPUID exit-codes, but that should be enough to get the kernel through verify_cpu() and __startup_64() until it runs on virtual addresses. Signed-of

[PATCH v7.2 40/74] x86/sev-es: Setup GHCB based boot #VC handler

2020-09-08 Thread Joerg Roedel
From: Joerg Roedel Add the infrastructure to handle #VC exceptions when the kernel runs on virtual addresses and has a GHCB mapped. This handler will be used until the runtime #VC handler takes over. Since the handler runs very early, disable instrumentation for sev-es.c. Signed-off-by: Joerg R

Re: [PATCH AUTOSEL 4.14 17/33] net: usb: qmi_wwan: add Telit 0x1050 composition

2020-09-08 Thread Sasha Levin
On Tue, Sep 08, 2020 at 07:33:21AM +0700, Lars Melin wrote: On 9/8/2020 01:15, Sasha Levin wrote: On Mon, Sep 07, 2020 at 11:36:37AM +0200, Kristian Evensen wrote: // snip When testing the FN980 with kernel 4.14, I noticed that the qmi device was not there. Checking the git log, I see that th

Re: [PATCH v6 24/35] i2c: tegra: Rename wait/poll functions

2020-09-08 Thread Dmitry Osipenko
08.09.2020 11:45, Andy Shevchenko пишет: > On Tue, Sep 8, 2020 at 5:11 AM Dmitry Osipenko wrote: >> >> Drop '_timeout' postfix from the wait/poll completion function names in >> order to make the names shorter, making code cleaner a tad. > > ... > >> + time_left = tegra_i2c_wait_completion

Re: [PATCH 4.4 0/2] net: initialize fastreuse on inet_inherit_port

2020-09-08 Thread Greg KH
On Wed, Sep 02, 2020 at 04:05:11PM +0200, Tim Froidcoeur wrote: > Fix for TPROXY initialization of fastreuse flag. > upstream patch was backported by Greg K-H to 4.14 and higher stable version. > > see also https://lore.kernel.org/stable/20200818072007.ga9...@kroah.com > > code in inet_csk_get_po

[PATCH] dt-bindings: net: Correct interrupt flags in examples

2020-09-08 Thread Krzysztof Kozlowski
GPIO_ACTIVE_x flags are not correct in the context of interrupt flags. These are simple defines so they could be used in DTS but they will not have the same meaning: 1. GPIO_ACTIVE_HIGH = 0 = IRQ_TYPE_NONE 2. GPIO_ACTIVE_LOW = 1 = IRQ_TYPE_EDGE_RISING Correct the interrupt flags, assuming the aut

Re: [PATCH] Rescan the entire target on transport reset when LUN is 0

2020-09-08 Thread Michael S. Tsirkin
On Fri, Aug 28, 2020 at 12:21:35PM +, Matej Genci wrote: > VirtIO 1.0 spec says > The removed and rescan events ... when sent for LUN 0, they MAY > apply to the entire target so the driver can ask the initiator > to rescan the target to detect this. > > This change introduces the b

Re: [PATCH v11 00/11] PCI: brcmstb: enable PCIe for STB chips

2020-09-08 Thread Christoph Hellwig
On Tue, Sep 08, 2020 at 11:42:26AM +0100, Lorenzo Pieralisi wrote: > > Maybe we can parallelize the PCIe driver review while the DMA changes > > are being worked on in Christoph's branch. Lorenzo, are you fine with > > the PCIe changes proper? > > I will have a look - the main contentious point wa

Re: [PATCH 0/6] ARM: dts: sun8i: v3s: Enable video decoder

2020-09-08 Thread Martin Cerveny
Hello. On Tue, 8 Sep 2020, Maxime Ripard wrote: On Fri, Sep 04, 2020 at 10:01:06PM +0200, Martin Cerveny wrote: First patch extends cedrus capability to all decoders because V3s missing MPEG2 decoder. Next two patches add system control node (SRAM C1) and next three patches add support for Ced

Re: [PATCH 0/3] arm_scmi: Constify ops pointers in struct scmi_handle

2020-09-08 Thread Sudeep Holla
On Mon, 7 Sep 2020 01:04:49 +0200, Rikard Falkeborn wrote: > A small patch series aiming to constify static scmi_*_ops structs in > drivers/firmware/arm_scmi. Since these are not modified, constify them > to allow the compiler to put them in read-only memory. > > Rikard Falkeborn (3): > cpufreq:

[RESEND PATCH v1] MIPS: uasm: false warning on use of uasm_i_lui()

2020-09-08 Thread Jim Quinlan
Currently, the example uasm code uasm_i_lui(p, tmp, 0xa000); issues a warning at Linux boot when the code is "assembled". This is because the "lui" instruction is defined by the macro "Ip_u1s2(_lui)" -- I believe it should be Ip_u1u2(_lui) -- and its definition is associated with the SIM

Re: [PATCH 4.9 0/2] net: initialize fastreuse on inet_inherit_port

2020-09-08 Thread Greg KH
On Wed, Sep 02, 2020 at 04:05:43PM +0200, Tim Froidcoeur wrote: > Fix for TPROXY initialization of fastreuse flag. > upstream patch was backported by Greg K-H to 4.14 and higher stable version. > > see also https://lore.kernel.org/stable/20200818072007.ga9...@kroah.com/ > > code in inet_csk_get_p

Re: [RFC PATCH v8 1/3] fs: Introduce AT_INTERPRETED flag for faccessat2(2)

2020-09-08 Thread Mimi Zohar
On Tue, 2020-09-08 at 17:44 +0200, Mickaël Salaün wrote: > On 08/09/2020 17:24, Mimi Zohar wrote: > > On Tue, 2020-09-08 at 14:43 +0200, Mickaël Salaün wrote: > >> On 08/09/2020 14:28, Mimi Zohar wrote: > >>> Hi Mickael, > >>> > >>> On Tue, 2020-09-08 at 09:59 +0200, Mickaël Salaün wrote: > di

Re: linux-next: Tree for Sep 2 (lib/ubsan.c)

2020-09-08 Thread Randy Dunlap
On 9/4/20 12:59 AM, Brendan Higgins wrote: > On Thu, Sep 3, 2020 at 11:12 PM Randy Dunlap wrote: >> >> On 9/2/20 8:44 AM, Randy Dunlap wrote: >>> On 9/2/20 1:09 AM, Stephen Rothwell wrote: Hi all, Changes since 20200828: >>> >>> >>> on i386: >>> >>> ../lib/ubsan.c: In function

Re: [PATCH v2] sched/debug: Add new tracepoint to track cpu_capacity

2020-09-08 Thread Phil Auld
Hi Quais, On Mon, Sep 07, 2020 at 12:02:24PM +0100 Qais Yousef wrote: > On 09/02/20 09:54, Phil Auld wrote: > > > > > > I think this decoupling is not necessary. The natural place for those > > > scheduler trace_event based on trace_points extension files is > > > kernel/sched/ and here the inter

[PATCH v2] arm64: dts: qcom: add sm8250 fastrpc nodes

2020-09-08 Thread Jonathan Marek
Add fastrpc nodes for sDSP, cDSP, and aDSP. Signed-off-by: Jonathan Marek --- v2: rebase without audio dts nodes, changed "dsps" to "sdsp" arch/arm64/boot/dts/qcom/sm8250.dtsi | 115 ++- 1 file changed, 113 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/

[PATCH 10/12] dma-direct: rename and cleanup __phys_to_dma

2020-09-08 Thread Christoph Hellwig
The __phys_to_dma vs phys_to_dma distinction isn't exactly obvious. Try to improve the situation by renaming __phys_to_dma to phys_to_dma_unencryped, and not forcing architectures that want to override phys_to_dma to actually provide __phys_to_dma. Signed-off-by: Christoph Hellwig --- arch/arm/

[PATCH 05/12] dma-mapping: add (back) arch_dma_mark_clean for ia64

2020-09-08 Thread Christoph Hellwig
Add back a hook to optimize dcache flushing after reading executable code using DMA. This gets ia64 out of the business of pretending to be dma incoherent just for this optimization. Signed-off-by: Christoph Hellwig --- arch/ia64/Kconfig | 3 +-- arch/ia64/kernel/dma-mapping.c |

Re: [PATCH] regmap: debugfs: potentially duplicate the name string of the config

2020-09-08 Thread Mark Brown
On Tue, Sep 08, 2020 at 06:07:56PM +0200, Dafna Hirschfeld wrote: > Am 08.09.20 um 17:35 schrieb Mark Brown: > > It does not follow that the name should be copied, it equally follows > > (and is expected by the API given that the common case is that the name > > is a static string assigned at buil

[PATCH 12/12] dma-mapping: move the dma_declare_coherent_memory documentation

2020-09-08 Thread Christoph Hellwig
dma_declare_coherent_memory should not be in a DMA API guide aimed at driver writers (that is consumers of the API). Move it to a comment near the function instead. Signed-off-by: Christoph Hellwig --- Documentation/core-api/dma-api.rst | 24 kernel/dma/coherent.c

[PATCH 07/12] dma-direct: lift gfp_t manipulation out of__dma_direct_alloc_pages

2020-09-08 Thread Christoph Hellwig
Move the detailed gfp_t setup from __dma_direct_alloc_pages into the caller to clean things up a little. Signed-off-by: Christoph Hellwig --- kernel/dma/direct.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/kernel/dma/direct.c b/kernel/dma/direct.c index 1d564

[PATCH 01/12] MIPS: make dma_sync_*_for_cpu a little less overzealous

2020-09-08 Thread Christoph Hellwig
When transferring DMA ownership back to the CPU there should never be any writeback from the cache, as the buffer was owned by the device until now. Instead it should just be invalidated for the mapping directions where the device could have written data. Note that the changes rely on the fact tha

[PATCH 11/12] dma-mapping: move dma_common_{mmap,get_sgtable} out of mapping.c

2020-09-08 Thread Christoph Hellwig
Add a new file that contains helpera for misc DMA ops, which is only built when CONFIG_DMA_OPS is set. Signed-off-by: Christoph Hellwig --- kernel/dma/Makefile | 1 + kernel/dma/mapping.c | 47 +--- kernel/dma/ops_helpers.c | 51 +

Re: [PATCH -next] fork: silence a false postive warning in __mmdrop

2020-09-08 Thread Qian Cai
a5 kkk. [12802.557831][T191552] Redzone c5a61231: bb bb bb bb bb bb bb bb [12802.557947][T191552] Padding 3163b13a: 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a [12802.558076][T191552] Padding 92412b1a: 5a 5

[PATCH 02/12] MIPS/jazzdma: remove the unused vdma_remap function

2020-09-08 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig Acked-by: Thomas Bogendoerfer --- arch/mips/include/asm/jazzdma.h | 2 - arch/mips/jazz/jazzdma.c| 70 - 2 files changed, 72 deletions(-) diff --git a/arch/mips/include/asm/jazzdma.h b/arch/mips/include/asm/jazzdma.h inde

dma-mapping cleanups

2020-09-08 Thread Christoph Hellwig
Hi all, this series contains just the cleanup parts from the previous "a saner API for allocating DMA addressable pages" series. The intent is to get this in to reduce the amount of patchbombing for iterations of the real API work.

Re: [PATCH v3 12/14] dt-bindings: mtd: gpmi-nand: Fix matching of clocks on different SoCs

2020-09-08 Thread Rob Herring
On Mon, Sep 7, 2020 at 12:10 AM Krzysztof Kozlowski wrote: > > On Fri, Sep 04, 2020 at 04:36:39PM -0600, Rob Herring wrote: > > On Fri, Sep 4, 2020 at 9:25 AM Krzysztof Kozlowski wrote: > > > > > > Driver requires different amount of clocks for different SoCs. Describe > > > these requirements p

[PATCH v3 5/6] venus: vdec: Use helper to get profile and level

2020-09-08 Thread Stanimir Varbanov
Currently the returned profile and level is not aligned with v4l2 ctrl id. Correct that by use the helpers which translate the v4l2 <-> hfi mapping internally. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/vdec_ctrls.c | 11 +-- 1 file changed, 5 insertions(+), 6

[PATCH for-next] io_uring: return EBADFD when ring isn't in the right state

2020-09-08 Thread Stefano Garzarella
This patch uniforms the returned error (EBADFD) when the ring state (enabled/disabled) is not the expected one. The changes affect io_uring_enter() and io_uring_register() syscalls. Signed-off-by: Stefano Garzarella --- Hi Jens, I also updated the test/register-restrictions in liburing here: h

[PATCH 04/12] dma-mapping: fix DMA_OPS dependencies

2020-09-08 Thread Christoph Hellwig
Driver that select DMA_OPS need to depend on HAS_DMA support to work. The vop driver was missing that dependency, so add it, and also add a nother depends in DMA_OPS itself. That won't fix the issue due to how the Kconfig dependencies work, but at least produce a warning about unmet dependencies.

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