KASAN: use-after-free Read in bcm_send_to_user

2020-04-28 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:51184ae3 Merge tag 'for-5.7-rc3-tag' of git://git.kernel.o.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=11561e6410 kernel config: https://syzkaller.appspot.com/x/.config?x=5b075813ec8b93cd das

Re: [PATCH v2 91/91] ARM: dts: bcm2711: Enable the display pipeline

2020-04-28 Thread Maxime Ripard
Hi Stefan, On Sat, Apr 25, 2020 at 10:54:22PM +0200, Stefan Wahren wrote: > Hi Maxime, > > Am 24.04.20 um 17:35 schrieb Maxime Ripard: > > Now that all the drivers have been adjusted for it, let's bring in the > > necessary device tree changes. > > > > Signed-off-by: Maxime Ripard > > --- > > a

Re: [RFC Patch v1 2/4] irqchip/gic-v3: Add support to handle SGI as pseudo NMI

2020-04-28 Thread Sumit Garg
Hi Marc, Thanks for your comments and apologies for my delayed response as I was exploring ideas that you have shared. On Sat, 25 Apr 2020 at 20:02, Marc Zyngier wrote: > > On 2020-04-25 11:29, Marc Zyngier wrote: > > On Fri, 24 Apr 2020 16:39:12 +0530 > > Sumit Garg wrote: > > > > Hi Sumit, >

Re: linux-next boot error: WARNING: suspicious RCU usage in ipmr_get_table

2020-04-28 Thread Madhuparna Bhowmik
er/0/1: > >> #0: 8a5a6330 (pernet_ops_rwsem){+.+.}-{3:3}, at: > >> register_pernet_subsys+0x16/0x40 net/core/net_namespace.c:1257 > >> > >> stack backtrace: > >> CPU: 0 PID: 1 Comm: swapper/0 Not tainted > >> 5.7.0-rc3-next-20200428-syzka

Re: [PATCH] firmware: stratix10-svc: Drop unnecessary checking for and populating /firmware/ node

2020-04-28 Thread Sudeep Holla
On Tue, Apr 28, 2020 at 09:14:25AM -0500, Richard Gong wrote: > Hi, > > On 4/28/20 3:32 AM, Sudeep Holla wrote: > > On Mon, Apr 27, 2020 at 02:12:56PM -0500, Richard Gong wrote: > > > Hi Sudeep, > > > > > > In our dts, firmware is not under root node. You can refer to > > > arch/arm64/boot/dts/al

[PATCH -next] drm/mcde: dsi: Fix return value check in dev_err()

2020-04-28 Thread Wei Yongjun
In case of error, the function of_drm_find_bridge() returns NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Signed-off-by: Wei Yongjun --- drivers/gpu/drm/mcde/mcde_dsi.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff

Re: [PATCH 0/3] KVM: x86/mmu: Use kernel's PG_LEVEL_* enums

2020-04-28 Thread Barret Rhoden
On 4/27/20 8:54 PM, Sean Christopherson wrote: Drop KVM's PT_{PAGE_TABLE,DIRECTORY,PDPE}_LEVEL KVM enums in favor of the kernel's PG_LEVEL_{4K,2M,1G} enums, which have far more user friendly names. thanks for doing this - it fell off my radar. all 3: Reviewed-by: Barret Rhoden The KVM nam

Re: [PATCH] kernel/trace: Stop and wait for kthread on preempt irq module unload

2020-04-28 Thread Joel Fernandes
On Tue, Apr 28, 2020 at 06:19:05PM +0800, Xiao Yang wrote: > Hi Joel, > > Thanks for your quick fix. > > Unfortunately, it fixes my original panic but introduces other > issues(two wanings and one panic) on my arm64 vm, as below: > -

Re: [PATCH v5 0/4] introduction of migration_version attribute for VFIO live migration

2020-04-28 Thread Dr. David Alan Gilbert
* Yan Zhao (yan.y.z...@intel.com) wrote: > On Mon, Apr 27, 2020 at 11:37:43PM +0800, Dr. David Alan Gilbert wrote: > > * Yan Zhao (yan.y.z...@intel.com) wrote: > > > On Sat, Apr 25, 2020 at 03:10:49AM +0800, Dr. David Alan Gilbert wrote: > > > > * Yan Zhao (yan.y.z...@intel.com) wrote: > > > > > On

Re: x86 entry perf unwinding failure (missing IRET_REGS annotation on stack switch?)

2020-04-28 Thread Josh Poimboeuf
On Tue, Apr 28, 2020 at 02:46:27PM +0200, Peter Zijlstra wrote: > > I'm thinking something like this should fix it. Peter, does this look > > ok? > > Unfortunate. But also, I fear, insufficient. Specifically consider > things like: > > ALTERNATIVE "jmp 1f", > "alt... >

Re: x86 entry perf unwinding failure (missing IRET_REGS annotation on stack switch?)

2020-04-28 Thread Peter Zijlstra
On Tue, Apr 28, 2020 at 02:46:27PM +0200, Peter Zijlstra wrote: > On Tue, Apr 28, 2020 at 02:04:50AM -0500, Josh Poimboeuf wrote: > > I'm thinking something like this should fix it. Peter, does this look > > ok? > > Unfortunate. But also, I fear, insufficient. Specifically consider > things like

Re: [PATCH 0/2] Add support for StorageD3Enable _DSD property

2020-04-28 Thread Christoph Hellwig
On Tue, Apr 28, 2020 at 07:09:59AM -0700, David E. Box wrote: > > I'm not sure who came up with the idea to put this into ACPI, but it > > belongs into NVMe. Please talk to the NVMe technical working group > > instead of trying to overrules them in an unrelated group that > > doesn't > > apply to

Re: [PATCH][next] scsi: qla2xxx: make 1 bit bit-fields unsigned int

2020-04-28 Thread Bart Van Assche
On 2020-04-28 03:20, Colin King wrote: > From: Colin Ian King > > The bitfields mpi_fw_dump_reading and mpi_fw_dumped are currently signed > which is not recommended as the representation is an implementation defined > behaviour. Fix this by making the bit-fields unsigned ints. > > Fixes: cbb01

[PATCH v2] arm64: dts: allwinner: h6: Use dummy regulator for Tanix TX6

2020-04-28 Thread Clément Péron
Tanix TX6 has a fixed regulator. As DVFS is instructed to change voltage to meet OPP table, the DVFS is not working as expected. Avoid to introduce a new dedicated OPP Table where voltage are equals to the fixed regulator as it will only duplicate all the OPPs. Instead remove the fixed regulator s

Re: [PATCH v2 4/8] bus: mhi: core: Handle firmware load using state worker

2020-04-28 Thread Jeffrey Hugo
Err, you fixed the SOB on patches 1-3, but now broke 4+. On 4/27/2020 8:59 PM, Bhaumik Bhatt wrote: No "From: ..." means you are the author. Upon power up, driver queues firmware worker thread if the execution environment is PBL. Firmware worker is blocked with a timeout until state worker get

Re: [PATCH] ath10k: increase rx buffer size to 2048

2020-04-28 Thread Ben Greear
On 04/28/2020 05:01 AM, Kalle Valo wrote: Sven Eckelmann writes: On Wednesday, 1 April 2020 09:00:49 CEST Sven Eckelmann wrote: On Wednesday, 5 February 2020 20:10:43 CEST Linus Lüssing wrote: From: Linus Lüssing Before, only frames with a maximum size of 1528 bytes could be transmitted

Re: [Intel-gfx] [RFC 06/17] drm: i915: fix sg_table nents vs. orig_nents misuse

2020-04-28 Thread Tvrtko Ursulin
On 28/04/2020 14:19, Marek Szyprowski wrote: The Documentation/DMA-API-HOWTO.txt states that dma_map_sg returns the numer of the created entries in the DMA address space. However the subsequent calls to dma_sync_sg_for_{device,cpu} and dma_unmap_sg must be called with the original number of ent

Re: [PATCH v2 1/2] dt-bindings: display: simple: Add IVO M133NWF4 R0

2020-04-28 Thread Rob Herring
On Sat, Apr 25, 2020 at 12:58 PM Sam Ravnborg wrote: > > Hi Björn. > > On Mon, Apr 20, 2020 at 02:57:27PM -0700, Bjorn Andersson wrote: > > Define the vendor prefix for InfoVision Optoelectronics and add their > > M133NWF4 R0 13.3" FHD (1920x1080) TFT LCD panel to the compatible list > > of panel-

Re: linux-next boot error: WARNING: suspicious RCU usage in ipmr_get_table

2020-04-28 Thread Qian Cai
info that might help us debug this: >>>> >>>> >>>> rcu_scheduler_active = 2, debug_locks = 1 >>>> 1 lock held by swapper/0/1: >>>> #0: ffff8a5a6330 (pernet_ops_rwsem){+.+.}-{3:3}, at: >>>> register_pernet_subsys+0x16/0x40

Re: [PATCH v3 02/16] mfd: mfd-core: Don't overwrite the dma_mask of the child device

2020-04-28 Thread Andy Shevchenko
On Tue, Apr 28, 2020 at 02:06:20PM +0100, Robin Murphy wrote: > On 2020-04-28 1:45 pm, Andy Shevchenko wrote: > > On Thu, Apr 23, 2020 at 07:45:29PM +0200, Michael Walle wrote: > > > Commit cdfee5623290 ("driver core: initialize a default DMA mask for > > > platform device") initialize the DMA of a

[PATCH v2] virtio-blk: handle block_device_operations callbacks after hot unplug

2020-04-28 Thread Stefan Hajnoczi
A userspace process holding a file descriptor to a virtio_blk device can still invoke block_device_operations after hot unplug. For example, a program that has /dev/vdb open can call ioctl(HDIO_GETGEO) after hot unplug to invoke virtblk_getgeo(). Introduce a reference count in struct virtio_blk s

Re: [PATCH v2] arm64: dts: allwinner: h6: Use dummy regulator for Tanix TX6

2020-04-28 Thread Clément Péron
Hi Maxime, Warpme, On Tue, 28 Apr 2020 at 16:26, Clément Péron wrote: > > Tanix TX6 has a fixed regulator. As DVFS is instructed to change > voltage to meet OPP table, the DVFS is not working as expected. > > Avoid to introduce a new dedicated OPP Table where voltage are > equals to the fixed reg

Re: [PATCH v7 4/8] drm: imx: Add i.MX 6 MIPI DSI host platform driver

2020-04-28 Thread Daniel Vetter
On Wed, Apr 22, 2020 at 04:07:27AM +0300, Laurent Pinchart wrote: > Hi Adrian, > > On Tue, Apr 21, 2020 at 07:16:06PM +0300, Adrian Ratiu wrote: > > This adds support for the Synopsis DesignWare MIPI DSI v1.01 host > > controller which is embedded in i.MX 6 SoCs. > > > > Based on following patche

[PATCH net v1] net: mt7603: remove duplicate error message

2020-04-28 Thread Dejin Zheng
it will print an error message by itself when devm_platform_ioremap_resource() goes wrong. so remove the duplicate error message. Signed-off-by: Dejin Zheng --- drivers/net/wireless/mediatek/mt76/mt7603/soc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/wire

Re: x86 entry perf unwinding failure (missing IRET_REGS annotation on stack switch?)

2020-04-28 Thread Josh Poimboeuf
On Tue, Apr 28, 2020 at 04:16:14PM +0200, Peter Zijlstra wrote: > On Tue, Apr 28, 2020 at 02:46:27PM +0200, Peter Zijlstra wrote: > > On Tue, Apr 28, 2020 at 02:04:50AM -0500, Josh Poimboeuf wrote: > > > > I'm thinking something like this should fix it. Peter, does this look > > > ok? > > > > Un

Re: [PATCH 1/5] dt-bindings: bus: Add firewall bindings

2020-04-28 Thread Linus Walleij
On Tue, Apr 28, 2020 at 3:13 PM Benjamin GAIGNARD wrote: > Does the following description sound good for you: > Firewall properties provide the possible firewall bus controller > configurations for a device. > Bus firewall controllers are typically used to control if a hardware > block can perfor

[PATCH] dma: zynqmp_dma: Initialize descriptor list after freeing during reset

2020-04-28 Thread Rafał Hibner
List elements are not formally removed from list therefore list head is not initialized during zynqmp_dma_reset. Signed-off-by: Rafal Hibner This BUG causes kernel panic when transaction is unsuccessful: [ cut here ] [ 62.710730] list_add corruption. prev->next should

Re: x86 entry perf unwinding failure (missing IRET_REGS annotation on stack switch?)

2020-04-28 Thread Peter Zijlstra
On Tue, Apr 28, 2020 at 09:14:57AM -0500, Josh Poimboeuf wrote: > On Tue, Apr 28, 2020 at 02:46:27PM +0200, Peter Zijlstra wrote: > > > I'm thinking something like this should fix it. Peter, does this look > > > ok? > > > > Unfortunate. But also, I fear, insufficient. Specifically consider > > th

Re: [PATCH v3 00/10] livepatch,module: Remove .klp.arch and module_disable_ro()

2020-04-28 Thread Josh Poimboeuf
On Tue, Apr 28, 2020 at 03:48:58PM +0200, Miroslav Benes wrote: > > With the small issue in patch 2 fixed > > Acked-by: Miroslav Benes > > Great stuff. I am happy we will get rid of the arch-specific code. Thanks! Good catch with the bad rebase. I'll fix it up with another revision. -- Jos

Re: [PATCH v7 03/15] s390/zcrypt: driver callback to indicate resource in use

2020-04-28 Thread Tony Krowiak
On 4/28/20 7:07 AM, Harald Freudenberger wrote: On 28.04.20 00:24, Tony Krowiak wrote: On 4/27/20 4:20 AM, Pierre Morel wrote: On 2020-04-07 21:20, Tony Krowiak wrote: Introduces a new driver callback to prevent a root user from unbinding an AP queue from its device driver if the queue is

Re: [PATCH v3 7/7] arm64: dts: sun50i-h6: Add HDMI audio to H6 DTSI

2020-04-28 Thread Clément Péron
Hi Maxime, On Tue, 28 Apr 2020 at 10:14, Maxime Ripard wrote: > > On Sun, Apr 26, 2020 at 12:41:15PM +0200, Clément Péron wrote: > > From: Jernej Skrabec > > > > Add a simple-soundcard to link audio between HDMI and I2S. > > > > Signed-off-by: Jernej Skrabec > > Signed-off-by: Marcus Cooper >

Re: [PATCH v2 1/8] bus: mhi: core: Cache intmod from mhi event to mhi channel

2020-04-28 Thread Jeffrey Hugo
On 4/27/2020 8:59 PM, Bhaumik Bhatt wrote: From: Hemant Kumar Driver is using zero initialized intmod value from mhi channel when configuring TRE for bei field. This prevents interrupt moderation to take effect in case it is supported by an event ring. Fix this by copying intmod value from asso

Re: [PATCH v3 04/16] dt-bindings: mfd: Add bindings for sl28cpld

2020-04-28 Thread Michael Walle
Am 2020-04-28 14:48, schrieb Andy Shevchenko: On Thu, Apr 23, 2020 at 07:45:31PM +0200, Michael Walle wrote: This adds device tree bindings for the board management controller found on the Kontron SMARC-sAL28 board. I think it should be independent patches (same way as you do for drivers).

[PATCH -rt] hrtimer: fix logic for when grabbing softirq_expiry_lock can be elided

2020-04-28 Thread Rasmus Villemoes
Commit hrtimer: Add a missing bracket and hide `migration_base' on !SMP which is 47b6de0b7f22 in 5.2-rt and 40aae5708e7a in 4.19-rt, inadvertently changed the logic from base != &migration_base to base == &migration_base. On !CONFIG_SMP, the effect was to effectively always elide this lock/unl

[Linux-kernel-mentees] [PATCH v2 0/2] realtek ethernet : remove legacy power management callbacks.

2020-04-28 Thread Vaibhav Gupta
The purpose of this patch series is to remove legacy power management callbacks from realtek ethernet drivers. The callbacks performing suspend() and resume() operations are still calling pci_save_state(), pci_set_power_state(), etc. and handling the powermanagement themselves, which is not recomm

Re: [PATCH v3 05/16] mfd: Add support for Kontron sl28cpld management controller

2020-04-28 Thread Michael Walle
Am 2020-04-28 14:50, schrieb Andy Shevchenko: On Thu, Apr 23, 2020 at 07:45:32PM +0200, Michael Walle wrote: This patch adds core support for the board management controller found on the SMARC-sAL28 board. It consists of the following functions: - watchdog - GPIO controller - PWM controller

Re: [PATCH v2 2/8] bus: mhi: core: Add range check for channel id received in event ring

2020-04-28 Thread Jeffrey Hugo
On 4/27/2020 8:59 PM, Bhaumik Bhatt wrote: From: Hemant Kumar MHI data completion handler function reads channel id from event ring element. Value is under the control of MHI devices and can be any value between 0 and 255. In order to prevent out of bound access add a bound check against the ma

[Linux-kernel-mentees] [PATCH v2 1/2] realtek/8139too: Remove Legacy Power Management

2020-04-28 Thread Vaibhav Gupta
Upgrade power management from legacy to generic using dev_pm_ops. Remove "struct pci_driver.suspend" and "struct pci_driver.resume" bindings, and add "struct pci_driver.driver.pm" . Add "__maybe_unused" attribute to resume() and susend() callbacks definition to suppress compiler warnings. Generi

Re: [PATCH] kernel/trace: Stop and wait for kthread on preempt irq module unload

2020-04-28 Thread Steven Rostedt
On Tue, 28 Apr 2020 18:19:05 +0800 Xiao Yang wrote: > Hi Joel, > > Thanks for your quick fix. > > Unfortunately, it fixes my original panic but introduces other > issues(two wanings and one panic) on my arm64 vm, as below: > Does the following on top of Joel's patch fix it? -- Steve diff --g

[Linux-kernel-mentees] [PATCH v2 2/2] realtek/8139cp: Remove Legacy Power Management

2020-04-28 Thread Vaibhav Gupta
Upgrade power management from legacy to generic using dev_pm_ops. Add "__maybe_unused" attribute to resume() and susend() callbacks definition to suppress compiler warnings. Generic callback requires an argument of type "struct device*". Hence, convert it to "struct net_device*" using "dev_get_dr

Re: [PATCH] kernel/trace: Stop and wait for kthread on preempt irq module unload

2020-04-28 Thread Steven Rostedt
On Tue, 28 Apr 2020 10:44:09 -0400 Steven Rostedt wrote: > On Tue, 28 Apr 2020 18:19:05 +0800 > Xiao Yang wrote: > > > Hi Joel, > > > > Thanks for your quick fix. > > > > Unfortunately, it fixes my original panic but introduces other > > issues(two wanings and one panic) on my arm64 vm, as be

Re: [PATCHv5 00/13] Implement V4L2_BUF_FLAG_NO_CACHE_* flags

2020-04-28 Thread Hans Verkuil
Hi Sergey, On 24/04/2020 11:29, Sergey Senozhatsky wrote: > Hello, > > v5 with fixes and improvements. > > I have a simple v4l-compliance patch now (will send it separately) which > tests cache and consistency hints. I ran compliance against the vivid > test driver, which was additionally

Re: [PATCH V2] fs/ceph:fix double unlock in handle_cap_export()

2020-04-28 Thread Jeff Layton
On Tue, 2020-04-28 at 21:13 +0800, Wu Bo wrote: > if the ceph_mdsc_open_export_target_session() return fails, > should add a lock to avoid twice unlocking. > Because the lock will be released at the retry or out_unlock tag. > The problem looks real, but... > -- > v1 -> v2: > add spin_lock(&ci->i

[PATCH v1 1/2] ARM: dts: rockchip: rename and label gpio-led subnodes

2020-04-28 Thread Johan Jonker
Current dts files with 'gpio-led' nodes were manually verified. In order to automate this process leds-gpio.txt has been converted to yaml. With this conversion a check for pattern properties was added. A test with the command below gives a screen full of warnings like: arch/arm/boot/dts/rk3188-ra

Re: [PATCH 0/1] Fiji GPU audio register timeout when in BACO state

2020-04-28 Thread Nicholas Johnson
On Tue, Apr 28, 2020 at 09:57:24AM +0200, Takashi Iwai wrote: > On Mon, 27 Apr 2020 20:43:54 +0200, > Alex Deucher wrote: > > > > On Mon, Apr 27, 2020 at 2:39 PM Takashi Iwai wrote: > > > > > > On Mon, 27 Apr 2020 20:28:12 +0200, > > > Alex Deucher wrote: > > > > > > > > On Mon, Apr 27, 2020 at 2

Re: [PATCH v1 1/1] PCI/AER: Use _OSC negotiation to determine AER ownership

2020-04-28 Thread Derrick, Jonathan
Sorry I didn't see this before my comments yesterday For either individual or split set, Reviewed-by: Jon Derrick Thanks Kuppuswamy On Mon, 2020-04-27 at 19:02 -0500, Bjorn Helgaas wrote: > [+cc Jon, Alexandru] > > On Sun, Apr 26, 2020 at 11:30:06AM -0700, > sathyanarayanan.kuppusw...@linux.i

Remaining randconfig objtool warnings, linux-next-20200428

2020-04-28 Thread Arnd Bergmann
I noticed the number of objtool warnings in randconfig kernels have gone down recently, maybe it's possible to eliminate the remaining ones? Here are the ones I ran into recently, using gcc-9.3: ==> build/x86/0x3D2B5D6D_defconfig/log <== arch/x86/kvm/vmx/vmx.o: warning: objtool: vmx_handle_exit_

[PATCH v1 2/2] arm64: dts: rockchip: rename and label gpio-led subnodes

2020-04-28 Thread Johan Jonker
Current dts files with 'gpio-led' nodes were manually verified. In order to automate this process leds-gpio.txt has been converted to yaml. With this conversion a check for pattern properties was added. A test with the command below gives a screen full of warnings like: arch/arm64/boot/dts/rockchi

Re: [PATCH v3 02/16] mfd: mfd-core: Don't overwrite the dma_mask of the child device

2020-04-28 Thread Robin Murphy
On 2020-04-28 3:29 pm, Andy Shevchenko wrote: On Tue, Apr 28, 2020 at 02:06:20PM +0100, Robin Murphy wrote: On 2020-04-28 1:45 pm, Andy Shevchenko wrote: On Thu, Apr 23, 2020 at 07:45:29PM +0200, Michael Walle wrote: Commit cdfee5623290 ("driver core: initialize a default DMA mask for platform

Re: [PATCH v3 04/16] dt-bindings: mfd: Add bindings for sl28cpld

2020-04-28 Thread Andy Shevchenko
On Tue, Apr 28, 2020 at 04:39:44PM +0200, Michael Walle wrote: > Am 2020-04-28 14:48, schrieb Andy Shevchenko: > > On Thu, Apr 23, 2020 at 07:45:31PM +0200, Michael Walle wrote: > > > This adds device tree bindings for the board management controller > > > found > > > on the Kontron SMARC-sAL28 boa

Re: [PATCH v2] arm64/mm: Use phys_to_page() to access pgtable memory

2020-04-28 Thread Will Deacon
On Tue, 28 Apr 2020 09:46:55 +1000, Gavin Shan wrote: > The macros {pgd, pud, pmd}_page() retrieves the page struct of the > corresponding page frame, which is reserved as page table. There > is already a macro (phys_to_page), defined in memory.h as below, > to convert the physical address to the p

Re: [PATCH] arm64: entry: remove unneeded semicolon in el1_sync_handler()

2020-04-28 Thread Will Deacon
On Sat, 18 Apr 2020 16:19:09 +0800, Jason Yan wrote: > Fix the following coccicheck warning: > > arch/arm64/kernel/entry-common.c:97:2-3: Unneeded semicolon Applied to arm64 (for-next/misc), thanks! [1/1] arm64: entry: remove unneeded semicolon in el1_sync_handler() https://git.kernel.org/

Re: [PATCH -next] arm64: smp: Make cpus_stuck_in_kernel static

2020-04-28 Thread Will Deacon
On Thu, 23 Apr 2020 14:33:26 +0800, Zou Wei wrote: > Fix the following sparse warning: > > arch/arm64/kernel/smp.c:68:5: warning: symbol 'cpus_stuck_in_kernel' > was not declared. Should it be static? Applied to arm64 (for-next/misc), thanks! [1/1] arm64: smp: Make cpus_stuck_in_kernel static

Re: [PATCH] KVM: arm64: Drop PTE_S2_MEMATTR_MASK

2020-04-28 Thread Will Deacon
On Wed, 15 Apr 2020 18:57:46 +0800, Zenghui Yu wrote: > The only user of PTE_S2_MEMATTR_MASK macro had been removed since > commit a501e32430d4 ("arm64: Clean up the default pgprot setting"). > It has been about six years and no one has used it again. > > Let's drop it. Applied to arm64 (for-next

Re: [PATCH][next] scsi: qla2xxx: make 1 bit bit-fields unsigned int

2020-04-28 Thread himanshu . madhani
On 4/28/20 5:20 AM, Colin King wrote: From: Colin Ian King The bitfields mpi_fw_dump_reading and mpi_fw_dumped are currently signed which is not recommended as the representation is an implementation defined behaviour. Fix this by making the bit-fields unsigned ints. Fixes: cbb01c2f2f63 ("

Re: [PATCH v3 05/16] mfd: Add support for Kontron sl28cpld management controller

2020-04-28 Thread Andy Shevchenko
On Tue, Apr 28, 2020 at 04:43:24PM +0200, Michael Walle wrote: > Am 2020-04-28 14:50, schrieb Andy Shevchenko: > > On Thu, Apr 23, 2020 at 07:45:32PM +0200, Michael Walle wrote: > > > This patch adds core support for the board management controller found > > > on the SMARC-sAL28 board. It consists

Re: [PATCH v2 3/8] bus: mhi: core: Read transfer length from an event properly

2020-04-28 Thread Jeffrey Hugo
On 4/27/2020 8:59 PM, Bhaumik Bhatt wrote: From: Hemant Kumar When MHI Driver receives an EOT event, it reads xfer_len from the event in the last TRE. The value is under control of the MHI device and never validated by Host MHI driver. The value should never be larger than the real size of the

Re: [PATCH v2] arm64/kernel: Fix range on invalidating dcache for boot page tables

2020-04-28 Thread Will Deacon
On Tue, 28 Apr 2020 09:57:00 +1000, Gavin Shan wrote: > Prior to commit 8eb7e28d4c642c31 ("arm64/mm: move runtime pgds to > rodata"), idmap_pgd_dir, tramp_pg_dir, reserved_ttbr0, swapper_pg_dir, > and init_pg_dir were contiguous at the end of the kernel image. The > maintenance at the end of __crea

Re: [PATCH v2] arm64: kexec_file: Avoid temp buffer for RNG seed

2020-04-28 Thread Will Deacon
On Mon, 30 Mar 2020 17:38:01 +, George Spelvin wrote: > After using get_random_bytes(), you want to wipe the buffer > afterward so the seed remains secret. > > In this case, we can eliminate the temporary buffer entirely. > fdt_setprop_placeholder() returns a pointer to the property value > bu

Re: [linux-sunxi] [PATCH v2] arm64: dts: allwinner: a64: Remove unused SPDIF sound card

2020-04-28 Thread Clément Péron
Hi, On Sun, 26 Apr 2020 at 18:12, Samuel Holland wrote: > > As of v5.7-rc2, Linux now prints the following message at boot: > > [ 33.848525] platform sound_spdif: deferred probe pending > > This is because sound_spdif is waiting on its CPU DAI &spdif to probe, > but &spdif is disabled in the

Re: [RFC PATCH v1 3/5] media: tegra-video: Move PM runtime handle to streaming

2020-04-28 Thread Sowjanya Komatineni
On 4/28/20 6:59 AM, Dmitry Osipenko wrote: External email: Use caution opening links or attachments 28.04.2020 07:20, Sowjanya Komatineni пишет: diff --git a/drivers/staging/media/tegra-video/csi.c b/drivers/staging/media/tegra-video/csi.c index b3dd0c3..29ccdae 100644 --- a/drivers/staging

Re: [PATCH net v1] net: macb: fix an issue about leak related system resources

2020-04-28 Thread Dejin Zheng
On Tue, Apr 28, 2020 at 05:04:32PM +0300, Andy Shevchenko wrote: > On Tue, Apr 28, 2020 at 4:12 PM Dejin Zheng wrote: > > On Tue, Apr 28, 2020 at 10:42:56AM +0200, Nicolas Ferre wrote: > > > On 28/04/2020 at 05:24, Dejin Zheng wrote: > > > > On Mon, Apr 27, 2020 at 01:33:41PM +0300, Andy Shevchenk

Re: [PATCH -rt] hrtimer: fix logic for when grabbing softirq_expiry_lock can be elided

2020-04-28 Thread Steven Rostedt
On Tue, 28 Apr 2020 16:40:26 +0200 Rasmus Villemoes wrote: > Commit > > hrtimer: Add a missing bracket and hide `migration_base' on !SMP > > which is 47b6de0b7f22 in 5.2-rt and 40aae5708e7a in 4.19-rt, > inadvertently changed the logic from base != &migration_base to base > == &migration_base

Re: [RFC PATCH v1 0/5] media: tegra: Tegra video driver follow-up patches

2020-04-28 Thread Sowjanya Komatineni
On 4/28/20 12:38 AM, Hans Verkuil wrote: External email: Use caution opening links or attachments On 28/04/2020 06:20, Sowjanya Komatineni wrote: This is a fllow-up to some last feedback received for Tegra VI driver RFC v10 patches. https://patchwork.linuxtv.org/cover/63334/ Sowjanya Komat

Re: [v3] checkpatch: add dedicated checker for 'Fixes:' tag

2020-04-28 Thread Markus Elfring
> I guess it is a better perl programming practice that use non-capturing group > always I suggest to reconsider the information “always”. > when you don't need to use the '$' to access it, Such an expectation can be fine if alternatives would be specified in the notation “(?:…)”. > it will

Re: [PATCH v2] net/ena: Fix build warning in ena_xdp_set()

2020-04-28 Thread Agroskin, Shay
Gavin Shan writes: > This fixes the following build warning in ena_xdp_set(), which is > observed on aarch64 with 64KB page size. > >In file included from ./include/net/inet_sock.h:19, > from ./include/net/ip.h:27, > from drivers/net/ethernet/amazon/ena/ena_netdev.c:46: >driv

Re: [PATCH -next] drm/mediatek: Fix Kconfig warning

2020-04-28 Thread Daniel Vetter
On Sun, Apr 26, 2020 at 04:20:39PM +0800, Chun-Kuang Hu wrote: > Hi, YueHaibing: > > YueHaibing 於 2020年4月20日 週一 下午10:04寫道: > > > > WARNING: unmet direct dependencies detected for MTK_MMSYS > > Depends on [n]: (ARCH_MEDIATEK [=y] || COMPILE_TEST [=n]) && > > COMMON_CLK_MT8173_MMSYS [=n] > > S

[PATCH -next] soc: ti: knav_qmss_queue: fix error return code in knav_queue_probe()

2020-04-28 Thread Wei Yongjun
Fix to return negative error code -ENODEV from the error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun --- drivers/soc/ti/knav_qmss_queue.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soc/ti/knav_qmss_queue.c b/drivers/soc/ti/knav_qmss

Re: [PATCH v3 0/9] Add a new LOOP_SET_FD_AND_STATUS ioctl

2020-04-28 Thread Martijn Coenen
On Tue, Apr 28, 2020 at 9:02 AM Christoph Hellwig wrote: > I think reusing LO_FLAGS_DIRECT_IO makes sense to me - we have 32 > flags in the existing flags field (at least for loop_info64), so > we might as well use the field and the flags. Then we need flags > validation in that we don't accept n

Re: linux-next boot error: WARNING: suspicious RCU usage in ipmr_get_table

2020-04-28 Thread Madhuparna Bhowmik
rcu_scheduler_active = 2, debug_locks = 1 > >>>> 1 lock held by swapper/0/1: > >>>> #0: 8a5a6330 (pernet_ops_rwsem){+.+.}-{3:3}, at: > >>>> register_pernet_subsys+0x16/0x40 net/core/net_namespace.c:1257 > >>>> > >>>&g

Re: [PATCH glibc 5/9] glibc: Perform rseq(2) registration at C startup and thread creation (v17)

2020-04-28 Thread Mathieu Desnoyers
- On Apr 28, 2020, at 8:54 AM, Florian Weimer f...@deneb.enyo.de wrote: > * Mathieu Desnoyers: > >> - On Apr 28, 2020, at 8:35 AM, Florian Weimer f...@deneb.enyo.de wrote: >> >>> * Mathieu Desnoyers: >>> One issue I'm currently facing when running "make check": because nptl/tst

Re: [RFC PATCH v1 3/5] media: tegra-video: Move PM runtime handle to streaming

2020-04-28 Thread Dmitry Osipenko
28.04.2020 17:51, Sowjanya Komatineni пишет: > > On 4/28/20 6:59 AM, Dmitry Osipenko wrote: >> External email: Use caution opening links or attachments >> >> >> 28.04.2020 07:20, Sowjanya Komatineni пишет: >>> diff --git a/drivers/staging/media/tegra-video/csi.c >>> b/drivers/staging/media/tegra-v

[PATCH -next] md: dm-ebs-target: fix build errors & Kconfig entry

2020-04-28 Thread Randy Dunlap
at.com --- drivers/md/Kconfig | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) --- linux-next-20200428.orig/drivers/md/Kconfig +++ linux-next-20200428/drivers/md/Kconfig @@ -338,12 +338,12 @@ config DM_WRITECACHE to be cached in standard RAM. config DM_EB

[PATCH -next] staging: pi433: fix error return code in pi433_probe()

2020-04-28 Thread Wei Yongjun
Fix to return negative error code -ENOMEM from cdev alloc failed error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun --- drivers/staging/pi433/pi433_if.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/st

Re: [PATCH v1 00/15] Add support for Nitro Enclaves

2020-04-28 Thread Alexander Graf
On 25.04.20 18:05, Paolo Bonzini wrote: CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and know the content is safe. On 24/04/20 21:11, Alexander Graf wrote: What I was saying above is that maybe co

Re: [PATCH v3 2/3] dt-bindings: add Qualcomm IPQ4019 MDIO bindings

2020-04-28 Thread Rob Herring
On Wed, Apr 15, 2020 at 05:02:46PM +0200, Robert Marko wrote: > This patch adds the binding document for the IPQ40xx MDIO driver. > > Signed-off-by: Robert Marko > Cc: Luka Perkov > --- > Changes from v2 to v3: > * Remove status from example > > .../bindings/net/qcom,ipq40xx-mdio.yaml |

Re: [RFC PATCH v1 3/5] media: tegra-video: Move PM runtime handle to streaming

2020-04-28 Thread Sowjanya Komatineni
On 4/28/20 7:59 AM, Dmitry Osipenko wrote: External email: Use caution opening links or attachments 28.04.2020 17:51, Sowjanya Komatineni пишет: On 4/28/20 6:59 AM, Dmitry Osipenko wrote: External email: Use caution opening links or attachments 28.04.2020 07:20, Sowjanya Komatineni пишет:

Re: [PATCH] drm: make drm_file use keyed wakeups

2020-04-28 Thread Daniel Vetter
On Fri, Apr 24, 2020 at 04:51:03PM +0200, Kenny Levinsen wrote: > Some processes, such as systemd, are only polling for EPOLLERR|EPOLLHUP. > As drm_file uses unkeyed wakeups, such a poll receives many spurious > wakeups from uninteresting events. > > Use keyed wakeups to allow the wakeup target to

Re: [PATCH v10 00/13] arm64: Branch Target Identification support

2020-04-28 Thread Mark Brown
On Tue, Apr 28, 2020 at 02:28:05PM +0100, Will Deacon wrote: > I'm happy either way, but it would be nice to base other BTI patches on > top of this branch. Mark -- is it easier for you to refresh the series > against v5.7-rc3, or leave it like it is? Please just let me know either > way. It's pr

Re: [PATCH net v2 2/2] net: phy: DP83TC811: Fix WoL in config init to be disabled

2020-04-28 Thread kbuild test robot
Hi Dan, I love your patch! Yet something to improve: [auto build test ERROR on net/master] [also build test ERROR on linus/master v5.7-rc3 next-20200428] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base&#x

Re: [PATCH v2] drm: make drm_file use keyed wakeups

2020-04-28 Thread Daniel Vetter
On Fri, Apr 24, 2020 at 06:26:15PM +0200, Kenny Levinsen wrote: > Some processes, such as systemd, are only polling for EPOLLERR|EPOLLHUP. > As drm_file uses unkeyed wakeups, such a poll can receive many spurious > wakeups from uninteresting events if, for example, the file description > is subscri

Re: [RFC 02/17] drm: amdgpu: fix sg_table nents vs. orig_nents misuse

2020-04-28 Thread Christian König
Am 28.04.20 um 15:19 schrieb Marek Szyprowski: The Documentation/DMA-API-HOWTO.txt states that dma_map_sg returns the numer of the created entries in the DMA address space. However the subsequent calls to dma_sync_sg_for_{device,cpu} and dma_unmap_sg must be called with the original number of ent

Re: [PATCH] drm: Replace drm_modeset_lock/unlock_all with DRM_MODESET_LOCK_ALL_* helpers

2020-04-28 Thread Daniel Vetter
On Sun, Apr 26, 2020 at 12:01:22PM +0200, Michal Orzel wrote: > As suggested by the TODO list for the kernel DRM subsystem, replace > the deprecated functions that take/drop modeset locks with new helpers. > > Signed-off-by: Michal Orzel Hm can you pls resubmit with intel-gfx mailing list cc'ed?

Re: [RFC PATCH v1 3/5] media: tegra-video: Move PM runtime handle to streaming

2020-04-28 Thread Dmitry Osipenko
28.04.2020 18:08, Sowjanya Komatineni пишет: > > On 4/28/20 7:59 AM, Dmitry Osipenko wrote: >> External email: Use caution opening links or attachments >> >> >> 28.04.2020 17:51, Sowjanya Komatineni пишет: >>> On 4/28/20 6:59 AM, Dmitry Osipenko wrote: External email: Use caution opening link

Re: [RFC 10/17] drm: radeon: fix sg_table nents vs. orig_nents misuse

2020-04-28 Thread Christian König
Am 28.04.20 um 15:19 schrieb Marek Szyprowski: The Documentation/DMA-API-HOWTO.txt states that dma_map_sg returns the numer of the created entries in the DMA address space. However the subsequent calls to dma_sync_sg_for_{device,cpu} and dma_unmap_sg must be called with the original number of ent

[PATCH v3 01/75] KVM: SVM: Add GHCB definitions

2020-04-28 Thread Joerg Roedel
From: Tom Lendacky Extend the vmcb_safe_area with SEV-ES fields and add a new 'struct ghcb' which will be used for guest-hypervisor communication. Signed-off-by: Tom Lendacky Signed-off-by: Joerg Roedel --- arch/x86/include/asm/svm.h | 42 ++ 1 file changed

[PATCH v3 70/75] x86/head/64: Setup TSS early for secondary CPUs

2020-04-28 Thread Joerg Roedel
From: Joerg Roedel The #VC exception will trigger very early in head_64.S, when the first CPUID instruction is executed. When secondary CPUs boot, they already load the real system IDT, which has the #VC handler configured to be using an IST stack. IST stacks require a TSS to be loaded, to set up

[PATCH v3 74/75] x86/sev-es: Handle NMI State

2020-04-28 Thread Joerg Roedel
From: Joerg Roedel When running under SEV-ES the kernel has to tell the hypervisor when to open the NMI window again after an NMI was injected. This is done with an NMI-complete message to the hypervisor. Add code to the kernels NMI handler to send this message right at the beginning of do_nmi()

[PATCH v3 75/75] x86/efi: Add GHCB mappings when SEV-ES is active

2020-04-28 Thread Joerg Roedel
From: Tom Lendacky Calling down to EFI runtime services can result in the firmware performing VMGEXIT calls. The firmware is likely to use the GHCB of the OS (e.g., for setting EFI variables), so each GHCB in the system needs to be identity mapped in the EFI page tables, as unencrypted, to avoid

[PATCH v3 48/75] x86/sev-es: Wire up existing #VC exit-code handlers

2020-04-28 Thread Joerg Roedel
From: Joerg Roedel Re-use the handlers for CPUID and IOIO caused #VC exceptions in the early boot handler. Signed-off-by: Joerg Roedel --- arch/x86/kernel/sev-es-shared.c | 7 +++ arch/x86/kernel/sev-es.c| 6 ++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/arc

[PATCH v3 37/75] x86/head/64: Move early exception dispatch to C code

2020-04-28 Thread Joerg Roedel
From: Joerg Roedel Move the assembly coded dispatch between page-faults and all other exceptions to C code to make it easier to maintain and extend. Also change the return-type of early_make_pgtable() to bool and make it static. Signed-off-by: Joerg Roedel --- arch/x86/include/asm/pgtable.h |

Re: [PATCH -rt] hrtimer: fix logic for when grabbing softirq_expiry_lock can be elided

2020-04-28 Thread Tom Zanussi
On Tue, 2020-04-28 at 16:40 +0200, Rasmus Villemoes wrote: > Commit > > hrtimer: Add a missing bracket and hide `migration_base' on !SMP > > which is 47b6de0b7f22 in 5.2-rt and 40aae5708e7a in 4.19-rt, > inadvertently changed the logic from base != &migration_base to base > == &migration_base.

[PATCH v3 55/75] x86/sev-es: Handle WBINVD Events

2020-04-28 Thread Joerg Roedel
From: Tom Lendacky Implement a handler for #VC exceptions caused by WBINVD instructions. Signed-off-by: Tom Lendacky [ jroe...@suse.de: Adapt to #VC handling framework ] Co-developed-by: Joerg Roedel Signed-off-by: Joerg Roedel --- arch/x86/kernel/sev-es.c | 9 + 1 file changed, 9 in

[PATCH v3 71/75] x86/head/64: Don't call verify_cpu() on starting APs

2020-04-28 Thread Joerg Roedel
From: Joerg Roedel The APs are not ready to handle exceptions when verify_cpu() is called in secondary_startup_64. Signed-off-by: Joerg Roedel --- arch/x86/include/asm/realmode.h | 1 + arch/x86/kernel/head_64.S | 1 + arch/x86/realmode/init.c| 6 ++ 3 files changed, 8 insert

[PATCH v3 69/75] x86/realmode: Setup AP jump table

2020-04-28 Thread Joerg Roedel
From: Tom Lendacky Setup the AP jump table to point to the SEV-ES trampoline code so that the APs can boot. Signed-off-by: Tom Lendacky [ jroe...@suse.de: - Adapted to different code base - Moved AP table setup from SIPI sending path to real-mode setup co

[PATCH v3 34/75] x86/head/64: Switch to initial stack earlier

2020-04-28 Thread Joerg Roedel
From: Joerg Roedel Make sure there is a stack once the kernel runs from virual addresses. At this stage any secondary CPU which boots will have lost its stack because the kernel switched to a new page-table which does not map the real-mode stack anymore. This is needed for handling early #VC exc

[PATCH v3 36/75] x86/head/64: Load IDT earlier

2020-04-28 Thread Joerg Roedel
From: Joerg Roedel Load the IDT right after switching to virtual addresses in head_64.S so that the kernel can handle #VC exceptions. Signed-off-by: Joerg Roedel --- arch/x86/kernel/head64.c | 15 +++ arch/x86/kernel/head_64.S | 17 + 2 files changed, 32 insertions

[PATCH v3 63/75] x86/sev-es: Handle #DB Events

2020-04-28 Thread Joerg Roedel
From: Joerg Roedel Handle #VC exceptions caused by #DB exceptions in the guest. Do not forward them to the hypervisor and handle them with do_debug() instead. Signed-off-by: Joerg Roedel --- arch/x86/kernel/sev-es.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/

[PATCH v3 73/75] x86/sev-es: Support CPU offline/online

2020-04-28 Thread Joerg Roedel
From: Joerg Roedel Add a play_dead handler when running under SEV-ES. This is needed because the hypervisor can't deliver an SIPI request to restart the AP. Instead the kernel has to issue a VMGEXIT to halt the VCPU. When the hypervisor would deliver and SIPI is wakes up the VCPU instead. Signed

Re: [PATCH v10 00/13] arm64: Branch Target Identification support

2020-04-28 Thread Will Deacon
On Tue, Apr 28, 2020 at 04:12:05PM +0100, Mark Brown wrote: > On Tue, Apr 28, 2020 at 02:28:05PM +0100, Will Deacon wrote: > > > I'm happy either way, but it would be nice to base other BTI patches on > > top of this branch. Mark -- is it easier for you to refresh the series > > against v5.7-rc3,

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