[PATCH] x86/split_lock: Don't write MSR_TEST_CTRL on CPUs that aren't whitelisted

2020-06-05 Thread Sean Christopherson
Choo! Choo! All aboard the Split Lock Express, with direct service to Wreckage! Skip split_lock_verify_msr() if the CPU isn't whitelisted as a possible SLD-enabled CPU model to avoid writing MSR_TEST_CTRL. MSR_TEST_CTRL exists, and is writable, on many generations of CPUs. Writing the MSR,

Re: [PATCH v2 1/2] scsi: ufs: Add SPDX GPL-2.0 to replace GPL v2 boilerplate

2020-06-05 Thread Bean Huo
On Fri, 2020-06-05 at 12:18 -0700, Eric Biggers wrote: > > +/* SPDX-License-Identifier: GPL-2.0 */ > > /* > >* Universal Flash Storage Host controller driver > > - * > > - * This code is based on drivers/scsi/ufs/ufs.h > >* Copyright (C) 2011-2013 Samsung India Software Operations > >

[PATCH] net/mlx5: Use kfree(ft->g) in arfs_create_groups()

2020-06-05 Thread Denis Efremov
Use kfree() instead of kvfree() on ft->g in arfs_create_groups() because the memory is allocated with kcalloc(). Signed-off-by: Denis Efremov --- drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH v2 1/2] scsi: ufs: Add SPDX GPL-2.0 to replace GPL v2 boilerplate

2020-06-05 Thread Eric Biggers
On Fri, Jun 05, 2020 at 09:14:38PM +0200, Bean Huo wrote: > From: Bean Huo > > Add SPDX GPL-2.0 to UFS driver files that specified the GPL > version 2 license, remove the full boilerplate text. > > Signed-off-by: Bean Huo > --- > drivers/scsi/ufs/ufs.h | 27

Re: [PATCH v3] mm: Fix mremap not considering huge pmd devmap

2020-06-05 Thread Ajay Kaher
Thanks Fan, this scenario works to reproduce on v4.9. And following fix works for v4.9: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?h=linux-4.9.y=44cb51d5b4a736446b728bbde8407844d71843ef -Ajay

[PATCH v2 2/2] scsi: ufs: remove wrapper function ufshcd_setup_clocks()

2020-06-05 Thread Bean Huo
From: Bean Huo The static function ufshcd_setup_clocks() is just a wrapper around __ufshcd_setup_clocks(), remove it. Rename original function wrapped __ufshcd_setup_clocks() to new ufshcd_setup_clocks(). Signed-off-by: Bean Huo --- drivers/scsi/ufs/ufshcd.c | 32

[PATCH v2 0/2] scsi: ufs: cleanup UFS driver

2020-06-05 Thread Bean Huo
From: Bean Huo Cleanup, no functional change Changelog: v1 - 2: 1. split patch (tomas.wink...@intel.com) Bean Huo (2): scsi: ufs: Add SPDX GPL-2.0 to replace GPL v2 boilerplate scsi: ufs: remove wrapper function ufshcd_setup_clocks() drivers/scsi/ufs/ufs.h | 27

[PATCH v2 1/2] scsi: ufs: Add SPDX GPL-2.0 to replace GPL v2 boilerplate

2020-06-05 Thread Bean Huo
From: Bean Huo Add SPDX GPL-2.0 to UFS driver files that specified the GPL version 2 license, remove the full boilerplate text. Signed-off-by: Bean Huo --- drivers/scsi/ufs/ufs.h | 27 +-- drivers/scsi/ufs/ufshcd-pci.c| 25 +

[PATCH] cxgb4: Use kfree() instead kvfree() where appropriate

2020-06-05 Thread Denis Efremov
Use kfree(buf) in blocked_fl_read() because the memory is allocated with kzalloc(). Use kfree(t) in blocked_fl_write() because the memory is allocated with kcalloc(). Signed-off-by: Denis Efremov --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c | 6 +++--- 1 file changed, 3 insertions(+),

Re: [GIT PULL] Please pull powerpc/linux.git powerpc-5.8-1 tag

2020-06-05 Thread Linus Torvalds
On Fri, Jun 5, 2020 at 9:38 AM Michael Ellerman wrote: > > I've pushed the result of my resolution of the conflicts to the powerpc/merge > branch, if you want to look at that, though I've also tried to describe it in > full below. I ended up doing the machine_check_exception() differently,

Re: [PATCH v5 0/8] drm: rcar-du: Add Color Management Module (CMM)

2020-06-05 Thread Laurent Pinchart
On Fri, Jun 05, 2020 at 03:29:00PM +0200, Jacopo Mondi wrote: > Hello Eugeniu, >sorry for the late reply > > On Wed, May 27, 2020 at 09:15:55AM +0200, Eugeniu Rosca wrote: > > Hi Jacopo, > > > > On Tue, Oct 15, 2019 at 12:46:13PM +0200, Jacopo Mondi wrote: > > 8<--- > > > > > * Testing >

Re: [PATCH v2 10/10] ARM: dts: r8a7742-iwg21d-q7: Add support for iWave G21D-Q7 board based on RZ/G1H

2020-06-05 Thread Lad, Prabhakar
Hi Geert, On Fri, Jun 5, 2020 at 1:52 PM Geert Uytterhoeven wrote: > > Hi Prabhakar, > > On Sun, May 3, 2020 at 11:47 PM Lad Prabhakar > wrote: > > Add support for iWave RainboW-G21D-Qseven board based on RZ/G1H. > > > > Signed-off-by: Lad Prabhakar > > Reviewed-by: Marian-Cristian Rotariu >

[PATCH 0/2][RFC] Add more trace point for runtime usage count

2020-06-05 Thread Chen Yu
Currentlt some code flow of runtime usage count changes is not covered by the tracepoints. Add corresponding tracepoints to monitor all the usage_count changes. Chen Yu (2): PM-runtime: Move all runtime usage related function to runtime.c PM-runtime: add more tracepoints for usage_count

[PATCH 2/2][RFC] PM-runtime: add tracepoints to cover all usage_count changes

2020-06-05 Thread Chen Yu
Commit d229290689ae ("PM-runtime: add tracepoints for usage_count changes") has added some tracepoints to monitor the change of runtime usage, and there is something to improve: 1. There are some places that adjust the usage count have not been traced yet. For example, pm_runtime_get_noresume()

[PATCH 1/2][RFC] PM-runtime: Move all runtime usage related function to runtime.c

2020-06-05 Thread Chen Yu
In order to track all the runtime usage count change, move the code related to runtime usage count change from pm_runtime.h to runtime.c, so that in runtime.c we can leverage trace event to do the tracking. Meanwhile export pm_runtime_get_noresume() and pm_runtime_put_noidle() so the module can

Re: [PATCH v5 0/2] Renovate memcpy_mcsafe with copy_mc_to_{user, kernel}

2020-06-05 Thread Dan Williams
On Wed, May 27, 2020 at 4:32 PM Dan Williams wrote: > > Changes since v4 [1]: > - Fix up .gitignore for PowerPC test artifacts (Michael) > > - Collect Michael's Ack. > > [1]: > http://lore.kernel.org/r/159010126119.975921.6614194205409771984.st...@dwillia2-desk3.amr.corp.intel.com > > --- > >

[PATCH] drm/panfrost: Use kvfree() to free bo->sgts in panfrost_mmu_map_fault_addr()

2020-06-05 Thread Denis Efremov
Use kvfree() to free bo->sgts, because the memory is allocated with kvmalloc_array(). Fixes: 187d2929206e ("drm/panfrost: Add support for GPU heap allocations") Cc: sta...@vger.kernel.org Signed-off-by: Denis Efremov --- drivers/gpu/drm/panfrost/panfrost_mmu.c | 2 +- 1 file changed, 1

Re: [PATCH] checkpatch: Add test for possible misuse of IS_ENABLED() without CONFIG_

2020-06-05 Thread Kees Cook
On Fri, Jun 05, 2020 at 11:24:43AM -0700, Joe Perches wrote: > IS_ENABLED is almost always used with CONFIG_ defines. > > Add a test to verify that the #define being tested starts with CONFIG_. > > Signed-off-by: Joe Perches Reviewed-by: Kees Cook -- Kees Cook

[PATCH 3/3] Bluetooth: hci_qca: Refactor error handling in qca_suspend()

2020-06-05 Thread Matthias Kaehlcke
If waiting for IBS sleep times out jump to the error handler, this is easier to read than multiple 'if' branches and a fall through to the error handler. Signed-off-by: Matthias Kaehlcke --- drivers/bluetooth/hci_qca.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff

Re: [PATCH] IMA: Add log statements for failure conditions

2020-06-05 Thread Mimi Zohar
[Cc'ing Paul Moore] Hi Lakshmi, On Thu, 2020-06-04 at 09:32 -0700, Lakshmi Ramasubramanian wrote: > The final log statement in process_buffer_measurement() for failure > condition is at debug level. This does not log the message unless > the system log level is raised which would significantly

Re: slub freelist issue / BUG: unable to handle page fault for address: 000000003ffe0018

2020-06-05 Thread Kees Cook
On Fri, Jun 05, 2020 at 06:55:27PM +0200, Vlastimil Babka wrote: > > On 6/5/20 5:44 PM, Kees Cook wrote: > > On Fri, Jun 05, 2020 at 04:44:51PM +0200, Vegard Nossum wrote: > >> On 2020-06-05 16:08, Vlastimil Babka wrote: > >> > On 6/5/20 3:12 PM, Rafael J. Wysocki wrote: > >> > > On Fri, Jun 5,

[PATCH 0/3]

2020-06-05 Thread Matthias Kaehlcke
This series includes a fix for a possible race in qca_suspend() and some minor refactoring of the same function. Matthias Kaehlcke (3): Bluetooth: hci_qca: Only remove TX clock vote after TX is completed Bluetooth: hci_qca: Skip serdev wait when no transfer is pending Bluetooth: hci_qca:

[PATCH 2/3] Bluetooth: hci_qca: Skip serdev wait when no transfer is pending

2020-06-05 Thread Matthias Kaehlcke
qca_suspend() calls serdev_device_wait_until_sent() regardless of whether a transfer is pending. While it does no active harm since the function should return immediately it makes the code more confusing. Add a flag to track whether a transfer is pending and only call

[PATCH 1/3] Bluetooth: hci_qca: Only remove TX clock vote after TX is completed

2020-06-05 Thread Matthias Kaehlcke
qca_suspend() removes the vote for the UART TX clock after writing an IBS sleep request to the serial buffer. This is not a good idea since there is no guarantee that the request has been sent at this point. Instead remove the vote after successfully entering IBS sleep. This also fixes the issue

Re: [PATCH] rcar-vin: rcar-csi2: Correct the selection of hsfreqrange

2020-06-05 Thread Michael Rodin
Hello Niklas and Suresh, Renesas confirmed that there is a typo in the Hardware Manual (Table 25.9): The correct range for 220 Mbps is 197.125-244.125 and not 197.125 - 224.125 so the both patches are correct, we can do configuration based only on the "default" bit rates. I would say that now we

Re: [PATCH v4 06/11] gpio: add support for the sl28cpld GPIO controller

2020-06-05 Thread Michael Walle
Am 2020-06-05 15:15, schrieb Andy Shevchenko: On Fri, Jun 05, 2020 at 02:42:53PM +0200, Michael Walle wrote: Am 2020-06-05 14:00, schrieb Andy Shevchenko: > On Fri, Jun 5, 2020 at 12:14 AM Michael Walle wrote: > > + return devm_regmap_add_irq_chip_np(dev, dev_of_node(dev), > > regmap,

Re: BUG: kernel NULL pointer dereference from check_preempt_wakeup()

2020-06-05 Thread Paul E. McKenney
On Fri, Jun 05, 2020 at 07:16:07AM -0700, Paul E. McKenney wrote: > On Fri, Jun 05, 2020 at 03:14:51PM +0200, Peter Zijlstra wrote: > > No KCSAN. GCC 8.2.1. No cgroups unless the kernel creates some. > No userspace other than a C-language binary named "init" that > sleeps in an infinite loop. >

Re: [PATCH 2/2] net: dsa: qca8k: introduce SGMII configuration options

2020-06-05 Thread Andrew Lunn
On Fri, Jun 05, 2020 at 07:10:58PM +0100, Jonathan McDowell wrote: > The QCA8337(N) has an SGMII port which can operate in MAC, PHY or BASE-X > mode depending on what it's connected to (e.g. CPU vs external PHY or > SFP). At present the driver does no configuration of this port even if > it is

Re: [PATCH 0/3] fs: reduce export usage of kerne_read*() calls

2020-06-05 Thread Mimi Zohar
On Fri, 2020-06-05 at 11:15 -0700, Scott Branden wrote: > Hi Mimi, > > On 2020-05-23 7:52 p.m., Mimi Zohar wrote: > > Scott, the change should be straight forward.  The additional patch > > needs to: > > - define a new kernel_read_file_id enumeration, like > > FIRMWARE_PARTIAL_READ. > > -

Re: [PATCH v10 6/6] powerpc/papr_scm: Implement support for PAPR_PDSM_HEALTH

2020-06-05 Thread Ira Weiny
On Fri, Jun 05, 2020 at 05:11:36AM +0530, Vaibhav Jain wrote: > This patch implements support for PDSM request 'PAPR_PDSM_HEALTH' > that returns a newly introduced 'struct nd_papr_pdsm_health' instance > containing dimm health information back to user space in response to > ND_CMD_CALL. This

Re: schedutil issue with serial workloads

2020-06-05 Thread Alexander Monakov
On Fri, 5 Jun 2020, Rafael J. Wysocki wrote: > > This sounds like it should be a known problem, but I couldn't find any > > mention of it in the documentation. > > Well, what would you expect to happen instead of what you see? Not sure why you ask. Named workloads are pretty common for example

Re: [PATCH 2/2] net: dsa: qca8k: introduce SGMII configuration options

2020-06-05 Thread Marek Behun
On Fri, 5 Jun 2020 19:10:58 +0100 Jonathan McDowell wrote: > The QCA8337(N) has an SGMII port which can operate in MAC, PHY or BASE-X > mode depending on what it's connected to (e.g. CPU vs external PHY or > SFP). At present the driver does no configuration of this port even if > it is selected.

[PATCH] checkpatch: Add test for possible misuse of IS_ENABLED() without CONFIG_

2020-06-05 Thread Joe Perches
IS_ENABLED is almost always used with CONFIG_ defines. Add a test to verify that the #define being tested starts with CONFIG_. Signed-off-by: Joe Perches --- scripts/checkpatch.pl | 6 ++ 1 file changed, 6 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index

Re: [GIT PULL] sh: remove sh5 support

2020-06-05 Thread Geert Uytterhoeven
Hi Adrian, On Fri, Jun 5, 2020 at 7:58 PM John Paul Adrian Glaubitz wrote: > On 6/5/20 5:59 PM, Rich Felker wrote: > >> Ah, sorry, I missed that. You're right, it should probably go through > >> someone else's tree then. > > > > Do you know if it's needed to un-break sh4? If so we should push to

Re: [RESEND PATCH v9 4/5] ndctl/papr_scm,uapi: Add support for PAPR nvdimm specific methods

2020-06-05 Thread Dan Williams
On Fri, Jun 5, 2020 at 8:22 AM Vaibhav Jain wrote: [..] > > Oh, why not define a maximal health payload with all the attributes > > you know about today, leave some room for future expansion, and then > > report a validity flag for each attribute? This is how the "intel" > > smart-health payload

Re: [PATCH v4 05/11] pwm: add support for sl28cpld PWM controller

2020-06-05 Thread Michael Walle
Am 2020-06-05 10:49, schrieb Lee Jones: [..] +static inline struct sl28cpld_pwm *to_sl28cpld_pwm(struct pwm_chip *chip) +{ + return container_of(chip, struct sl28cpld_pwm, pwm_chip); +} Why not save yourself the trouble and just: struct sl28cpld_pwm *pwm = dev_get_drvdata(chip->dev);

[GIT PULL] dlm updates for 5.8

2020-06-05 Thread David Teigland
Hi Linus, Please pull dlm updates from tag: git://git.kernel.org/pub/scm/linux/kernel/git/teigland/linux-dlm.git dlm-5.8 This set includes a couple minor cleanups, and dropping the interruptible from a wait_event that waits for an event from the userspace cluster management. Thanks, Dave Arnd

Re: [PATCH v5 17/19] mm: memcg/slab: use a single set of kmem_caches for all allocations

2020-06-05 Thread Roman Gushchin
On Fri, Jun 05, 2020 at 06:24:33PM +0200, Vlastimil Babka wrote: > On 5/28/20 12:34 AM, Roman Gushchin wrote: > > diff --git a/mm/slab.h b/mm/slab.h > > index c49a863adb63..57b425d623e5 100644 > > --- a/mm/slab.h > > +++ b/mm/slab.h > ... > > @@ -526,8 +430,7 @@ static inline struct kmem_cache

[PATCH 1/2] f2fs: use kfree() to free super in read_raw_super_block()

2020-06-05 Thread Denis Efremov
Use kfree() instead of kvfree() to free super in read_raw_super_block() because the memory is allocated with kzalloc() in the function. Fixes: 5222595d093e ("f2fs: use kvmalloc, if kmalloc is failed") Signed-off-by: Denis Efremov --- fs/f2fs/super.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 2/2] f2fs: use kfree() to free sbi in f2fs_fill_super()

2020-06-05 Thread Denis Efremov
Use kfree() instead of kvfree() to free sbi in f2fs_fill_super() because the memory is allocated with kzalloc() in the function. Fixes: 5222595d093e ("f2fs: use kvmalloc, if kmalloc is failed") Signed-off-by: Denis Efremov --- fs/f2fs/super.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH 0/3] fs: reduce export usage of kerne_read*() calls

2020-06-05 Thread Scott Branden
Hi Mimi, On 2020-05-23 7:52 p.m., Mimi Zohar wrote: On Fri, 2020-05-22 at 16:25 -0700, Scott Branden wrote: Hi Kees, On 2020-05-22 4:04 p.m., Kees Cook wrote: On Fri, May 22, 2020 at 03:24:32PM -0700, Scott Branden wrote: On 2020-05-18 5:37 a.m., Mimi Zohar wrote: On Sun, 2020-05-17 at

Re: [PATCH v2] block: Fix use-after-free in blkdev_get()

2020-06-05 Thread Dan Carpenter
On Fri, Jun 05, 2020 at 04:42:36PM +0200, Jan Kara wrote: > On Fri 05-06-20 12:43:54, Dan Carpenter wrote: > > I wonder if maybe the best fix is to re-add the "if (!res) " check back > > to blkdev_get(). > > Well, it won't be that simple since we need to call bd_abort_claiming() > under

Re: 5.7.0 / BUG: kernel NULL pointer dereference / setup_cpu_watcher

2020-06-05 Thread Andrew Cooper
On 05/06/2020 09:36, Christian Kujau wrote: > Hi, > > I'm running a small Xen PVH domain and upgrading from vanilla 5.6.0 to > > > Note: that "Xen Platform PCI: unrecognised magic value" on the top appears > in 5.6 kernels as well, but no ill effects so far. > >

Re: [PATCH v3 004/105] clk: bcm: Add BCM2711 DVP driver

2020-06-05 Thread Nicolas Saenz Julienne
On Fri, 2020-06-05 at 19:43 +0200, Maxime Ripard wrote: > Hi Nicolas, > > On Thu, Jun 04, 2020 at 07:26:07PM +0200, Nicolas Saenz Julienne wrote: > > On Wed, 2020-05-27 at 17:47 +0200, Maxime Ripard wrote: > > > The HDMI block has a block that controls clocks and reset signals to the > > > HDMI0

[PATCH 2/2] net: dsa: qca8k: introduce SGMII configuration options

2020-06-05 Thread Jonathan McDowell
The QCA8337(N) has an SGMII port which can operate in MAC, PHY or BASE-X mode depending on what it's connected to (e.g. CPU vs external PHY or SFP). At present the driver does no configuration of this port even if it is selected. Add support for making sure the SGMII is enabled if it's in use,

[PATCH 1/2] dt-bindings: net: dsa: qca8k: document SGMII properties

2020-06-05 Thread Jonathan McDowell
This patch documents the qca8k's SGMII related properties that allow configuration of the SGMII port. Signed-off-by: Jonathan McDowell --- Documentation/devicetree/bindings/net/dsa/qca8k.txt | 4 1 file changed, 4 insertions(+) diff --git

[PATCH 0/2] net: dsa: qca8k: Add SGMII configuration options

2020-06-05 Thread Jonathan McDowell
This pair of patches adds some SGMII device tree configuration options for the QCA8K switch driver, and the associated documentation. At present the driver does no configuration of the SGMII port, even if it is selected. These changes allow configuration of how it is connected up (i.e. connected

Re: [PATCH v2] hwmon:(adm1275) Enable adm1278 ADM1278_TEMP1_EN

2020-06-05 Thread Guenter Roeck
On Fri, Jun 05, 2020 at 10:18:21PM +0530, Manikandan wrote: > On Fri, May 29, 2020 at 10:30:16AM -0700, Guenter Roeck wrote: > > On 5/29/20 5:46 AM, Manikandan Elumalai wrote: > > > The adm1278 temperature sysfs attribute need it for one of the openbmc > > > platform . > > > This functionality

Re: 5.7.0 / BUG: kernel NULL pointer dereference / setup_cpu_watcher

2020-06-05 Thread Christian Kujau
On Fri, 5 Jun 2020, Jürgen Groß wrote: > Do you happen to start the guest with vcpus < maxvcpus? Indeed, I was booting with vcpus=2, maxvcpus=4. Setting both to the same value made the domU boot. > If yes there is already a patch pending for 5.8: >

Re: [PATCH] acpi: battery: Always read fresh battery state on update

2020-06-05 Thread Mat King
On Fri, Jun 5, 2020 at 5:30 AM Rafael J. Wysocki wrote: > > On Thu, Jun 4, 2020 at 9:57 PM Mathew King wrote: > > > > When the ACPI battery receives a notification event it should always > > read the battery state fresh from the ACPI device and not use the cached > > state. > > Why should it?

Re: [GIT PULL] sh: remove sh5 support

2020-06-05 Thread John Paul Adrian Glaubitz
Hi Rich! On 6/5/20 5:59 PM, Rich Felker wrote: >> Ah, sorry, I missed that. You're right, it should probably go through >> someone else's tree then. > > Do you know if it's needed to un-break sh4? If so we should push to > get whoever has jurisdiction over it to include it; otherwise I'm >

arch/x86/include/asm/atomic64_32.h:156: undefined reference to `atomic64_inc_return_386'

2020-06-05 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 435faf5c218a47fd6258187f62d9bb1009717896 commit: 87d6021b814353d7b353afcc3698ffe49de7d4ec x86/math-emu: Limit MATH_EMULATION to 486SX compatibles date: 8 months ago config: um-randconfig-r011-20200605

Re: [PATCH V3 1/3] perf/x86/intel/uncore: Fix oops when counting IMC uncore events on some TGL

2020-06-05 Thread Peter Zijlstra
Thanks!

Re: [PATCH v3 004/105] clk: bcm: Add BCM2711 DVP driver

2020-06-05 Thread Eric Anholt
On Wed, May 27, 2020 at 8:49 AM Maxime Ripard wrote: > > The HDMI block has a block that controls clocks and reset signals to the > HDMI0 and HDMI1 controllers. > > Let's expose that through a clock driver implementing a clock and reset > provider. > > Cc: Michael Turquette > Cc: Stephen Boyd >

[PATCH v2] docs: block: Create blk-mq documentation

2020-06-05 Thread André Almeida
Create a documentation providing a background and explanation around the operation of the Multi-Queue Block IO Queueing Mechanism (blk-mq). The reference for writing this documentation was the source code and "Linux Block IO: Introducing Multi-queue SSD Access on Multi-core Systems", by Axboe et

Re: [RFC PATCH v4 07/10] vfio/pci: introduce a new irq type VFIO_IRQ_TYPE_REMAP_BAR_REGION

2020-06-05 Thread Alex Williamson
On Fri, 5 Jun 2020 00:26:10 + "He, Shaopeng" wrote: > > From: Alex Williamson > > Sent: Thursday, June 4, 2020 12:11 PM > > > > On Wed, 3 Jun 2020 22:42:28 -0400 > > Yan Zhao wrote: > > > > > On Wed, Jun 03, 2020 at 05:04:52PM -0600, Alex Williamson wrote: > > > > On Tue, 2 Jun 2020

Re: [PATCH v10 0/3] perf x86: Exposing IO stack to IO PMON mapping through sysfs

2020-06-05 Thread Peter Zijlstra
On Mon, Jun 01, 2020 at 11:35:40AM +0300, alexander.anto...@linux.intel.com wrote: Didn't GregKH have comments on earlier versions of these patches? I don't see him on Cc anymore. Were all his comments addressed?

Re: [patch V9 10/39] x86/entry: Provide helpers for execute on irqstack

2020-06-05 Thread Qian Cai
On Fri, Jun 05, 2020 at 07:36:22PM +0200, Peter Zijlstra wrote: > On Fri, Jun 05, 2020 at 01:18:16PM -0400, Qian Cai wrote: > > On Thu, May 21, 2020 at 10:05:23PM +0200, Thomas Gleixner wrote: > > > From: Thomas Gleixner > > > > > > Device interrupt handlers and system vector handlers are

Re: slub freelist issue / BUG: unable to handle page fault for address: 000000003ffe0018

2020-06-05 Thread Kees Cook
On Fri, Jun 05, 2020 at 06:37:55PM +0200, Vegard Nossum wrote: > On 2020-06-05 17:44, Kees Cook wrote: > > On Fri, Jun 05, 2020 at 04:44:51PM +0200, Vegard Nossum wrote: > > > That's it :-) This fixes it for me: > > > > > > diff --git a/drivers/acpi/acpica/nsaccess.c > > >

Re: [PATCH] docs: block: Create blk-mq documentation

2020-06-05 Thread André Almeida
Hello Randy, On 5/27/20 6:58 PM, Randy Dunlap wrote: > On 5/27/20 1:09 PM, André Almeida wrote: >> Create a documentation providing a background and explanation around the >> operation of the Multi-Queue Block IO Queueing Mechanism (blk-mq). >> +Hardware dispatch queues >>

Re: kprobes string reading broken on s390

2020-06-05 Thread Sven Schnelle
Masami, On Sat, Jun 06, 2020 at 01:58:06AM +0900, Masami Hiramatsu wrote: > Hi Sven, > > On Fri, 5 Jun 2020 15:25:41 +0200 > Christoph Hellwig wrote: > > > Yes, this looks correct. You probably want to write a small changelog > > and add a Fixes tag, though. > > > > On Fri, Jun 05, 2020 at

Re: [PATCH v3 004/105] clk: bcm: Add BCM2711 DVP driver

2020-06-05 Thread Maxime Ripard
Hi Nicolas, On Thu, Jun 04, 2020 at 07:26:07PM +0200, Nicolas Saenz Julienne wrote: > On Wed, 2020-05-27 at 17:47 +0200, Maxime Ripard wrote: > > The HDMI block has a block that controls clocks and reset signals to the > > HDMI0 and HDMI1 controllers. > > Why not having two separate drivers?

Re: [RFC] METADATA design using V4l2 Request API

2020-06-05 Thread Nicolas Dufresne
Le vendredi 05 juin 2020 à 12:32 +0530, diksh...@codeaurora.org a écrit : > Hi Hans, Nicolas, > > On 2020-05-29 13:01, Hans Verkuil wrote: > > On 29/05/2020 04:18, Nicolas Dufresne wrote: > > > Le jeudi 28 mai 2020 à 16:18 +0530, diksh...@codeaurora.org a écrit : > > > > > not allowed. So I need

Re: [PATCH v3 7/7] Input: Add "inhibited" property

2020-06-05 Thread Hans de Goede
Hi, On 6/5/20 7:33 PM, Andrzej Pietrasiewicz wrote: From: Patrik Fimml Userspace might want to implement a policy to temporarily disregard input from certain devices, including not treating them as wakeup sources. An example use case is a laptop, whose keyboard can be folded under the screen

[PATCH 1/2] drm/amd/display: Use kvfree() to free coeff in build_regamma()

2020-06-05 Thread Denis Efremov
Use kvfree() instead of kfree() to free coeff in build_regamma() because the memory is allocated with kvzalloc(). Fixes: e752058b8671 ("drm/amd/display: Optimize gamma calculations") Cc: sta...@vger.kernel.org Signed-off-by: Denis Efremov ---

Re: [patch V9 10/39] x86/entry: Provide helpers for execute on irqstack

2020-06-05 Thread Peter Zijlstra
On Fri, Jun 05, 2020 at 01:18:16PM -0400, Qian Cai wrote: > On Thu, May 21, 2020 at 10:05:23PM +0200, Thomas Gleixner wrote: > > From: Thomas Gleixner > > > > Device interrupt handlers and system vector handlers are executed on the > > interrupt stack. The stack switch happens in the low level

[PATCH 2/2] drm/amd/display: Use kfree() to free rgb_user in calculate_user_regamma_ramp()

2020-06-05 Thread Denis Efremov
Use kfree() instead of kvfree() to free rgb_user in calculate_user_regamma_ramp() because the memory is allocated with kcalloc(). Signed-off-by: Denis Efremov --- Looks like this kvfree is from merge conflict between 1fafef9dfe12 ("Merge drm-fixes-for-v4.17-rc6-urgent into drm-next") and

[PATCH v3 3/7] ACPI: button: Access input device's users under appropriate mutex

2020-06-05 Thread Andrzej Pietrasiewicz
Inspecting input device's 'users' member should be done under device's mutex, so add appropriate invocations. Signed-off-by: Andrzej Pietrasiewicz --- drivers/acpi/button.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/button.c b/drivers/acpi/button.c

[PATCH v3 5/7] iio: adc: exynos: Use input_device_enabled()

2020-06-05 Thread Andrzej Pietrasiewicz
A new helper is available, so use it. Inspecting 'users' member of input_dev requires taking device's mutex. Signed-off-by: Andrzej Pietrasiewicz --- drivers/iio/adc/exynos_adc.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/iio/adc/exynos_adc.c

[PATCH v3 6/7] platform/x86: thinkpad_acpi: Use input_device_enabled()

2020-06-05 Thread Andrzej Pietrasiewicz
Use the new helper. Inspecting input device's 'users' member needs to be done under device's mutex, so add appropriate invocations. Signed-off-by: Andrzej Pietrasiewicz Acked-by: Henrique de Moraes Holschuh --- drivers/platform/x86/thinkpad_acpi.c | 4 +++- 1 file changed, 3 insertions(+), 1

[PATCH v3 4/7] ACPI: button: Use input_device_enabled() helper

2020-06-05 Thread Andrzej Pietrasiewicz
A new helper is available, so use it. Signed-off-by: Andrzej Pietrasiewicz --- drivers/acpi/button.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/button.c b/drivers/acpi/button.c index ff7ab291f678..4deb2b48d03c 100644 --- a/drivers/acpi/button.c +++

[PATCH v3 7/7] Input: Add "inhibited" property

2020-06-05 Thread Andrzej Pietrasiewicz
From: Patrik Fimml Userspace might want to implement a policy to temporarily disregard input from certain devices, including not treating them as wakeup sources. An example use case is a laptop, whose keyboard can be folded under the screen to create tablet-like experience. The user then must

Re: [PATCH v2 2/2] Revert "KVM: x86: work around leak of uninitialized stack contents"

2020-06-05 Thread Paolo Bonzini
On 05/06/20 13:59, Vitaly Kuznetsov wrote: > handle_vmptrst()/handle_vmread() stopped injecting #PF unconditionally > and switched to nested_vmx_handle_memory_failure() which just kills the > guest with KVM_EXIT_INTERNAL_ERROR in case of MMIO access, zeroing > 'exception' in

[PATCH v3 2/7] Input: use input_device_enabled()

2020-06-05 Thread Andrzej Pietrasiewicz
Use the newly added helper in relevant input drivers. Signed-off-by: Andrzej Pietrasiewicz --- drivers/input/joystick/xpad.c | 4 ++-- drivers/input/keyboard/ep93xx_keypad.c | 2 +- drivers/input/keyboard/gpio_keys.c | 4 ++-- drivers/input/keyboard/imx_keypad.c

[PATCH v3 0/7] Support inhibiting input devices

2020-06-05 Thread Andrzej Pietrasiewicz
Userspace might want to implement a policy to temporarily disregard input from certain devices. An example use case is a convertible laptop, whose keyboard can be folded under the screen to create tablet-like experience. The user then must hold the laptop in such a way that it is difficult to

[PATCH v3 1/7] Input: add input_device_enabled()

2020-06-05 Thread Andrzej Pietrasiewicz
A helper function for drivers to decide if the device is used or not. A lockdep check is introduced as inspecting ->users should be done under input device's mutex. Signed-off-by: Andrzej Pietrasiewicz --- drivers/input/input.c | 8 include/linux/input.h | 2 ++ 2 files changed, 10

I NEED YOUR ATTENTION

2020-06-05 Thread SUHIL ABDULZAHRA
My name is Mr. SUHIL ABDULZAHRA BADR AL-ASADI from IRAQ Ministry of Oil (MoO). Please, I desire to have a confidentially funds transaction with you valued at $66 million dollars for safe keeping and investment? Please forward your response to my private email: abdulzahrasu...@gmail.com for

Re: [PATCH 1/3] media: uapi: h264: update reference lists

2020-06-05 Thread Jernej Škrabec
Dne petek, 05. junij 2020 ob 19:13:24 CEST je Nicolas Dufresne napisal(a): > Sorry, missed one thing. > > Le vendredi 05 juin 2020 à 13:08 -0400, Nicolas Dufresne a écrit : > > Le jeudi 04 juin 2020 à 20:57 +0200, Jernej Skrabec a écrit : > > > When dealing with with interlaced frames, reference

Re: [PATCH 2/3] media: cedrus: h264: Properly configure reference field

2020-06-05 Thread Jernej Škrabec
Dne petek, 05. junij 2020 ob 19:16:35 CEST je Nicolas Dufresne napisal(a): > Le jeudi 04 juin 2020 à 20:57 +0200, Jernej Skrabec a écrit : > > When interlaced H264 content is being decoded, references must indicate > > which field is being referenced. Currently this was done by checking > >

Re: [PATCH][v6] KVM: X86: support APERF/MPERF registers

2020-06-05 Thread Paolo Bonzini
On 05/06/20 19:16, Jim Mattson wrote: @@ -4930,6 +4939,11 @@ int kvm_vm_ioctl_enable_cap(struct kvm *kvm, kvm->arch.exception_payload_enabled = cap->args[0]; r = 0; break; +case KVM_CAP_APERFMPERF: +kvm->arch.aperfmperf_mode =

Re: [patch V9 10/39] x86/entry: Provide helpers for execute on irqstack

2020-06-05 Thread Qian Cai
On Thu, May 21, 2020 at 10:05:23PM +0200, Thomas Gleixner wrote: > From: Thomas Gleixner > > Device interrupt handlers and system vector handlers are executed on the > interrupt stack. The stack switch happens in the low level assembly entry > code. This conflicts with the efforts to consolidate

[PATCH] ALSA: hda: Add NVIDIA codec IDs 9a & 9d through a0 to patch table

2020-06-05 Thread Aaron Plattner
Signed-off-by: Aaron Plattner --- sound/pci/hda/patch_hdmi.c | 5 + 1 file changed, 5 insertions(+) diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c index fbd7cc6026d8..e2b21ef5d7d1 100644 --- a/sound/pci/hda/patch_hdmi.c +++ b/sound/pci/hda/patch_hdmi.c @@ -4145,6

Re: [PATCH 2/3] media: cedrus: h264: Properly configure reference field

2020-06-05 Thread Nicolas Dufresne
Le jeudi 04 juin 2020 à 20:57 +0200, Jernej Skrabec a écrit : > When interlaced H264 content is being decoded, references must indicate > which field is being referenced. Currently this was done by checking > capture buffer flags. However, that is not correct because capture > buffer may hold both

Re: [PATCH][v6] KVM: X86: support APERF/MPERF registers

2020-06-05 Thread Jim Mattson
On Thu, Jun 4, 2020 at 11:35 PM Paolo Bonzini wrote: > > On 05/06/20 07:00, Xiaoyao Li wrote: > > you could do > > > > bool guest_cpuid_aperfmperf = false; > > if (best) > > guest_cpuid_aperfmperf = !!(best->ecx & BIT(0)); > > > > if (guest_cpuid_aperfmerf !=

Re: [PATCH 1/3] media: uapi: h264: update reference lists

2020-06-05 Thread Nicolas Dufresne
Sorry, missed one thing. Le vendredi 05 juin 2020 à 13:08 -0400, Nicolas Dufresne a écrit : > Le jeudi 04 juin 2020 à 20:57 +0200, Jernej Skrabec a écrit : > > When dealing with with interlaced frames, reference lists must tell if > > each particular reference is meant for top or bottom field.

Re: [PATCH v10 4/6] powerpc/papr_scm: Improve error logging and handling papr_scm_ndctl()

2020-06-05 Thread Ira Weiny
On Fri, Jun 05, 2020 at 05:11:34AM +0530, Vaibhav Jain wrote: > Since papr_scm_ndctl() can be called from outside papr_scm, its > exposed to the possibility of receiving NULL as value of 'cmd_rc' > argument. This patch updates papr_scm_ndctl() to protect against such > possibility by assigning it

Re: [PATCH net-next 7/8] net: phy: Add Synopsys DesignWare XPCS MDIO module

2020-06-05 Thread Russell King - ARM Linux admin
Hi Jose, I just tripped over a bug while grepping for something else and reading a bit of this driver: On Mon, Mar 09, 2020 at 09:36:26AM +0100, Jose Abreu wrote: > +static int xpcs_read_lpa(struct mdio_xpcs_args *xpcs, > + struct phylink_link_state *state) > +{ > + int

Re: [PATCH] nand: raw: use write_oob_raw for MTD_OPS_AUTO_OOB mode

2020-06-05 Thread Álvaro Fernández Rojas
I’ve now sent another patch “mtd: rawnand: brcmnand: force raw OOB writes” as an alternative solution to this issue. Best regards, Álvaro. > El 12 may 2020, a las 10:54, Boris Brezillon > escribió: > > On Tue, 12 May 2020 10:44:22 +0200 > Miquel Raynal wrote: > >> Hello, >> >> Richard,

Re: [PATCH 1/3] media: uapi: h264: update reference lists

2020-06-05 Thread Nicolas Dufresne
Le jeudi 04 juin 2020 à 20:57 +0200, Jernej Skrabec a écrit : > When dealing with with interlaced frames, reference lists must tell if > each particular reference is meant for top or bottom field. This info > is currently not provided at all in the H264 related controls. > > Make reference lists

Re: [RFT][PATCH] ACPI: OSL: Use rwlock instead of RCU for memory management

2020-06-05 Thread Dan Williams
On Fri, Jun 5, 2020 at 7:06 AM Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > Subject: [PATCH] ACPI: OSL: Use rwlock instead of RCU for memory management > > The ACPI OS layer uses RCU to protect the list of ACPI memory > mappings from being walked while it is updated. Among other >

[PATCH] mtd: rawnand: brcmnand: force raw OOB writes

2020-06-05 Thread Álvaro Fernández Rojas
MTD_OPS_AUTO_OOB is writting OOB with ECC enabled, which changes all ECC bytes from an erased page to 0x00 when JFFS2 cleanmarkers are added with mtd-utils. | BBI | JFFS2 | ECC | JFFS2 | Spare | 0800 ff ff 19 85 20 03 00 00 00 00 00 00 08 ff ff ff However, if OOB is

[PATCH] KVM: let kvm_destroy_vm_debugfs clean up vCPU debugfs directories

2020-06-05 Thread Paolo Bonzini
After commit 63d0434 ("KVM: x86: move kvm_create_vcpu_debugfs after last failure point") we are creating the pre-vCPU debugfs files after the creation of the vCPU file descriptor. This makes it possible for userspace to reach kvm_vcpu_release before kvm_create_vcpu_debugfs has finished. The

My Dear in the lord

2020-06-05 Thread Mrs. Mina A. Brunel
My Dear in the lord My name is Mrs. Mina A. Brunel I am a Norway Citizen who is living in Burkina Faso, I am married to Mr. Brunel Patrice, a politicians who owns a small gold company in Burkina Faso; He died of Leprosy and Radesyge, in year February 2010, During his lifetime he deposited

[GIT PULL] integrity subsystem updates for v5.8

2020-06-05 Thread Mimi Zohar
Hi Linus, The main changes are extending the TPM 2.0 PCR banks with bank specific file hashes, calculating the "boot_aggregate" based on other TPM PCR banks, using the default IMA hash algorithm, instead of SHA1, as the basis for the cache hash table key, and preventing the mprotect syscall to

Re: [PATCH v2] ACPI: Drop rcu usage for MMIO mappings

2020-06-05 Thread Rafael J. Wysocki
On Fri, Jun 5, 2020 at 6:39 PM Dan Williams wrote: > > On Fri, Jun 5, 2020 at 9:22 AM Rafael J. Wysocki wrote: > [..] > > > The fix we are looking at now is to pre-map operation regions in a > > > similar manner as the way APEI resources are pre-mapped. The > > > pre-mapping would arrange for

R: [PATCH v6 1/2] phy: qualcomm: add qcom ipq806x dwc usb phy driver

2020-06-05 Thread ansuelsmth
> On Wed, Jun 03, 2020 at 03:22:34PM +0200, Ansuel Smith wrote: > > This has lost in the original push for the dwc3 qcom driver. > > This is needed for ipq806x SoC as without this the usb ports > > doesn't work at all. > > FWIW I tested this on my RB3011 so feel free to add: > > Tested-by:

Re: kprobes string reading broken on s390

2020-06-05 Thread Masami Hiramatsu
Hi Sven, On Fri, 5 Jun 2020 15:25:41 +0200 Christoph Hellwig wrote: > Yes, this looks correct. You probably want to write a small changelog > and add a Fixes tag, though. > > On Fri, Jun 05, 2020 at 01:05:34PM +0200, Sven Schnelle wrote: > > Hi Christoph, > > > > with the latest linux-next i

Re: slub freelist issue / BUG: unable to handle page fault for address: 000000003ffe0018

2020-06-05 Thread Vlastimil Babka
On 6/5/20 5:44 PM, Kees Cook wrote: > On Fri, Jun 05, 2020 at 04:44:51PM +0200, Vegard Nossum wrote: >> On 2020-06-05 16:08, Vlastimil Babka wrote: >> > On 6/5/20 3:12 PM, Rafael J. Wysocki wrote: >> > > On Fri, Jun 5, 2020 at 2:48 PM Vegard Nossum >> > > wrote: >> > > > >> > > > On

Re: schedutil issue with serial workloads

2020-06-05 Thread Rafael J. Wysocki
On 6/4/2020 11:29 PM, Alexander Monakov wrote: Hello, Hi, Let's make more people see your report. +Peter, Giovanni, Quentin, Juri, Valentin, Vincent, Doug, and linux-pm. this is a question/bugreport about behavior of schedutil on serial workloads such as rsync, or './configure', or 'make

Re: [PATCH -tip v3 2/2] kcov: Unconditionally add -fno-stack-protector to compiler options

2020-06-05 Thread Nick Desaulniers
On Fri, Jun 5, 2020 at 1:28 AM Marco Elver wrote: > > Unconditionally add -fno-stack-protector to KCOV's compiler options, as > all supported compilers support the option. This saves a compiler > invocation to determine if the option is supported. > > Because Clang does not support

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