Re: [PATCH] ACPI: tables: x86: Reserve memory occupied by ACPI tables

2021-03-24 Thread Rafael J. Wysocki
On Wed, Mar 24, 2021 at 4:42 PM George Kennedy wrote: > > > > On 3/24/2021 9:27 AM, Rafael J. Wysocki wrote: > > On Wed, Mar 24, 2021 at 9:24 AM Mike Rapoport wrote: > >> On Tue, Mar 23, 2021 at 08:26:52PM +0100, Rafael J. Wysocki wrote: > >>> From: Rafael J. Wysocki > >>> > >>> The following pr

Re: [PATCH v3 0/2] quota: Add mountpath based quota support

2021-03-24 Thread Sascha Hauer
On Tue, Mar 16, 2021 at 12:29:16PM +0100, Jan Kara wrote: > On Thu 04-03-21 13:35:38, Sascha Hauer wrote: > > Current quotactl syscall uses a path to a block device to specify the > > filesystem to work on which makes it unsuitable for filesystems that > > do not have a block device. This series ad

[PATCH v2 2/2] intel/pinctrl: check capability offset is between MMIO region

2021-03-24 Thread Roger Pau Monne
When parsing the capability list make sure the offset is between the MMIO region mapped in 'regs', or else the kernel hits a page fault. Adding the check is harmless, and prevents buggy or broken systems from crashing the kernel if the capability linked list is somehow broken. Fixes: 91d898e51e60

[PATCH v2 1/2] intel/pinctrl: check REVID register value for device presence

2021-03-24 Thread Roger Pau Monne
Use the value read from the REVID register in order to check for the presence of the device. A read of all ones is treated as if the device is not present, and hence probing is ended. This fixes an issue when running as a Xen PVH dom0, where the ACPI DSDT table is provided unmodified to dom0 and h

[PATCH v2 0/2] intel/pinctrl: check some registers reads

2021-03-24 Thread Roger Pau Monne
Hello, The following series adds some consistency checks to the values returned by some of the MMIO registers of the Intel pinctrl device. That done to avoid a crash when running as a PVH dom0. See patch #1 for more details. Thanks, Roger. Roger Pau Monne (2): intel/pinctrl: check REVID regis

Re: [PATCH] PCI: PM: Do not read power state in pci_enable_device_flags()

2021-03-24 Thread Rafael J. Wysocki
On Mon, Mar 22, 2021 at 3:32 PM Rafael J. Wysocki wrote: > > On Tue, Mar 16, 2021 at 4:52 PM Rafael J. Wysocki wrote: > > > > From: Rafael J. Wysocki > > > > It should not be necessary to update the current_state field of > > struct pci_dev in pci_enable_device_flags() before calling > > do_pci_

Re: [PATCH] ACPI: tables: x86: Reserve memory occupied by ACPI tables

2021-03-24 Thread George Kennedy
On 3/24/2021 9:27 AM, Rafael J. Wysocki wrote: On Wed, Mar 24, 2021 at 9:24 AM Mike Rapoport wrote: On Tue, Mar 23, 2021 at 08:26:52PM +0100, Rafael J. Wysocki wrote: From: Rafael J. Wysocki The following problem has been reported by George Kennedy: Since commit 7fef431be9c9 ("mm/page_

[PATCH v8 3/3] misc/pvpanic: add PCI driver

2021-03-24 Thread Mihai Carabas
Add support for pvpanic PCI device added in qemu [1]. At probe time, obtain the address where to read/write pvpanic events and pass it to the generic handling code. Will follow the same logic as pvpanic MMIO device driver. At remove time, unmap base address and disable PCI device. [1] https://gith

[PATCH v8 1/3] misc/pvpanic: split-up generic and platform dependent code

2021-03-24 Thread Mihai Carabas
Split-up generic and platform dependent code in order to be able to re-use generic event handling code in pvpanic PCI device driver in the next patches. The code from pvpanic.c was split in two new files: - pvpanic.c: generic code that handles pvpanic events - pvpanic-mmio.c: platform/bus dependen

[PATCH v8] add support for pci in the pvpanic driver

2021-03-24 Thread Mihai Carabas
This patchset adds support for PCI in the pvpanic driver. The device already got in qemu [1]. v2: - mmio -> MMIO, pci -> PCI suggested by Randy Dunlap. - group pvpanic-common.c and mmio.c in the same module. The intention was to have only one module and the common code splitted up to be re-used

[PATCH v8 2/3] misc/pvpanic: probe multiple instances

2021-03-24 Thread Mihai Carabas
Create the mecahism that allows multiple pvpanic instances to call pvpanic_probe and receive panic events. A global list will retain all the mapped addresses where to write panic events. Signed-off-by: Mihai Carabas --- drivers/misc/pvpanic/pvpanic-mmio.c | 42 +- drivers/mis

Re: [PATCH] ACPI: processor: Fix CPU0 wakeup in acpi_idle_play_dead()

2021-03-24 Thread Rafael J. Wysocki
On Wed, Mar 24, 2021 at 4:23 PM Vitaly Kuznetsov wrote: > > Commit 496121c02127 ("ACPI: processor: idle: Allow probing on platforms > with one ACPI C-state") broke CPU0 hotplug on certain systems, e.g. > I'm observing the following on AWS Nitro (e.g r5b.xlarge but other > instance types are affect

Re: [PATCH] soundwire: intel: move to auxiliary bus

2021-03-24 Thread Greg KH
On Wed, Mar 24, 2021 at 09:55:01AM -0500, Pierre-Louis Bossart wrote: > Note at this point it would mean an API change and impact the existing > Nvidia/Mellanox code, we are using the same sequence as them THere is no "stable api" in the kernel, so if something has to change, that's fine, we can c

RE: [PATCH] x86/mce: Add Skylake quirk for patrol scrub reported errors

2021-03-24 Thread Luck, Tony
> Yeah, into > > fd258dc4442c ("x86/mce: Add Skylake quirk for patrol scrub reported errors") Thanks ... my memory is failing, and I forgot that the patch had been improved and moved from core.c (where I looked for it) into severity.c -Tony

Re: [PATCH 4/4] ARM: dts: Fix-up EMMC2 controller's frequency

2021-03-24 Thread Nicolas Saenz Julienne
Hi Stefan, On Wed, 2021-03-24 at 16:16 +0100, Stefan Wahren wrote: > Hi Nicolas, > > Am 22.03.21 um 19:58 schrieb Nicolas Saenz Julienne: > > From: Nicolas Saenz Julienne > > > > Force emmc2's frequency to 150MHz as the default 100MHz (set by FW) > > seems to interfere with the VPU clock when s

Re: [PATCH v2 4/7] CMDLINE: powerpc: convert to generic builtin command line

2021-03-24 Thread Christophe Leroy
Le 09/03/2021 à 22:40, Daniel Walker a écrit : On Tue, Mar 09, 2021 at 08:56:47AM +0100, Christophe Leroy wrote: Le 09/03/2021 à 01:02, Daniel Walker a écrit : This updates the powerpc code to use the CONFIG_GENERIC_CMDLINE option. Cc: xe-linux-exter...@cisco.com Signed-off-by: Ruslan Rus

Re: [RESEND PATCH V3 1/2] soc: qcom-geni-se: Cleanup the code to remove proxy votes

2021-03-24 Thread Matthias Kaehlcke
On Wed, Mar 24, 2021 at 03:48:35PM +0530, Roja Rani Yarubandi wrote: > This reverts commit 048eb908a1f2 ("soc: qcom-geni-se: Add interconnect > support to fix earlycon crash") > > ICC core and platforms drivers supports sync_state feature, which > ensures that the default ICC BW votes from the boo

Re: [PATCH] arm64: dts: qcom: trogdor: Add no-hpd to DSI bridge node

2021-03-24 Thread Doug Anderson
Hi, On Tue, Mar 23, 2021 at 7:55 PM Stephen Boyd wrote: > > We should indicate that we're not using the HPD pin on this device, per > the binding document. Otherwise if code in the future wants to enable > HPD in the bridge when this property is absent we'll be wasting power > powering hpd when w

Re: [PATCH] soundwire: intel: move to auxiliary bus

2021-03-24 Thread Pierre-Louis Bossart
On 3/24/21 5:50 AM, Vinod Koul wrote: On 23-03-21, 12:29, Pierre-Louis Bossart wrote: Thanks Greg and Vinod for the reviews -static int intel_master_probe(struct platform_device *pdev) +static int intel_link_probe(struct auxiliary_device *auxdev, const struct auxiliary_device_id *id) {

Re: [PATCH 2/3] virtiofs: split requests that exceed virtqueue size

2021-03-24 Thread Connor Kuehl
On 3/24/21 10:30 AM, Miklos Szeredi wrote: On Wed, Mar 24, 2021 at 4:09 PM Connor Kuehl wrote: On 3/18/21 10:17 AM, Miklos Szeredi wrote: I removed the conditional compilation and renamed the limit. Also made virtio_fs_get_tree() bail out if it hit the WARN_ON(). Updated patch below. Hi M

Re: [PATCH] soundwire: intel: move to auxiliary bus

2021-03-24 Thread Pierre-Louis Bossart
Note that the auxiliary bus API has separate init and add steps, which requires more attention in the error unwinding paths. The main loop needs to deal with kfree() and auxiliary_device_uninit() for the current iteration before jumping to the common label which releases everything allocated in

Re: [PATCH v3 02/17] cfi: add __cficanonical

2021-03-24 Thread Rasmus Villemoes
On 23/03/2021 21.39, Sami Tolvanen wrote: > With CONFIG_CFI_CLANG, the compiler replaces a function address taken > in C code with the address of a local jump table entry, which passes > runtime indirect call checks. However, the compiler won't replace > addresses taken in assembly code, which will

Re: [PATCH 2/3] virtiofs: split requests that exceed virtqueue size

2021-03-24 Thread Miklos Szeredi
On Wed, Mar 24, 2021 at 4:09 PM Connor Kuehl wrote: > > On 3/18/21 10:17 AM, Miklos Szeredi wrote: > > I removed the conditional compilation and renamed the limit. Also made > > virtio_fs_get_tree() bail out if it hit the WARN_ON(). Updated patch below. > > Hi Miklos, > > Has this patch been que

Re: [PATCH 10/11] drm/i915: avoid stringop-overread warning on pri_latency

2021-03-24 Thread Jani Nikula
On Mon, 22 Mar 2021, Arnd Bergmann wrote: > From: Arnd Bergmann > > gcc-11 warns about what appears to be an out-of-range array access: > > In function ‘snb_wm_latency_quirk’, > inlined from ‘ilk_setup_wm_latency’ at > drivers/gpu/drm/i915/intel_pm.c:3108:3: > drivers/gpu/drm/i915/intel_pm.c

Re: [PATCH 0/3] Apple M1 DART IOMMU driver

2021-03-24 Thread Robin Murphy
On 2021-03-20 15:19, Sven Peter wrote: Hi, After Hector's initial work [1] to bring up Linux on Apple's M1 it's time to bring up more devices. Most peripherals connected to the SoC are behind a iommu which Apple calls "Device Address Resolution Table", or DART for short [2]. Unfortunately, it on

Re: [fuse-devel] [PATCH] fuse: avoid deadlock when write fuse inode

2021-03-24 Thread Miklos Szeredi
On Tue, Feb 2, 2021 at 5:41 AM Huang Jianan via fuse-devel wrote: > > We found the following deadlock situations in low memory scenarios: > Thread A Thread B > - __writeback_single_inode > - fuse_write_inode > - fuse_simple_request >- __fuse_request_send > - requ

Re: [v3,PATCH 1/3] dt-bindings: media: mtk-vcodec: Separating mtk vcodec encoder node

2021-03-24 Thread Rob Herring
On Fri, Mar 12, 2021 at 03:35:38PM +0800, Irui Wang wrote: > Updates binding document since the avc and vp8 hardware encoder in > MT8173 are now separated. Separate "mediatek,mt8173-vcodec-enc" to > "mediatek,mt8173-vcodec-enc-vp8" and "mediatek,mt8173-vcodec-enc". > > This patch separates the two

Re: [RFC PATCH 0/3] Separate BE DAI HW constraints from FE ones

2021-03-24 Thread Pierre-Louis Bossart
I am using hw_params_fixup, but it's not enough. The first thing I do is to not add the BE HW constraint rules in runtime->hw_constraints, because this will potentially affect the FE HW params. If the FE does sampling rate conversion, for example, applying the sampling rate constrain rules from

Re: [PATCH v3 1/1] mfd: intel_quark_i2c_gpio: enable MSI interrupt

2021-03-24 Thread Lee Jones
On Wed, 24 Mar 2021, Andy Shevchenko wrote: > Allow interrupts to be MSI if supported by hardware. > > Signed-off-by: Andy Shevchenko > --- > v3: added a comment about magic 1s (Lee) > > drivers/mfd/intel_quark_i2c_gpio.c | 22 -- > 1 file changed, 16 insertions(+), 6 delet

Re: [PATCH v3 09/14] ARM: tegra: acer-a500: Rename avdd to vdda of touchscreen node

2021-03-24 Thread Dmitry Osipenko
24.03.2021 18:11, Thierry Reding пишет: > On Tue, Mar 02, 2021 at 03:09:58PM +0300, Dmitry Osipenko wrote: >> Rename avdd supply to vdda of the touchscreen node. The old supply name >> was incorrect. >> >> Signed-off-by: Dmitry Osipenko >> --- >> arch/arm/boot/dts/tegra20-acer-a500-picasso.dts |

Re: [PATCH] dt-bindings: spi: Convert Freescale QSPI binding to json schema

2021-03-24 Thread Rob Herring
On Fri, 12 Mar 2021 11:10:38 +0530, Kuldeep Singh wrote: > Convert the Freescale QSPI binding to DT schema format using json-schema. > > Signed-off-by: Kuldeep Singh > --- > .../bindings/spi/fsl,spi-fsl-qspi.yaml| 96 +++ > .../devicetree/bindings/spi/spi-fsl-qspi.txt |

Re: [PATCH V2] arm64: dts: qcom: sc7280: Add nodes for eMMC and SD card

2021-03-24 Thread sbhanu
On 2021-03-23 12:31, Stephen Boyd wrote: Quoting Shaik Sajida Bhanu (2021-03-20 11:17:00) diff --git a/arch/arm64/boot/dts/qcom/sc7280-idp.dts b/arch/arm64/boot/dts/qcom/sc7280-idp.dts index 54d2cb3..4105263 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-idp.dts +++ b/arch/arm64/boot/dts/qcom/sc7

[PATCH] ACPI: processor: Fix CPU0 wakeup in acpi_idle_play_dead()

2021-03-24 Thread Vitaly Kuznetsov
Commit 496121c02127 ("ACPI: processor: idle: Allow probing on platforms with one ACPI C-state") broke CPU0 hotplug on certain systems, e.g. I'm observing the following on AWS Nitro (e.g r5b.xlarge but other instance types are affected as well): # echo 0 > /sys/devices/system/cpu/cpu0/online # ec

Re: [PATCH] dt-bindings: mailbox: Add compatible for SM8350 IPCC

2021-03-24 Thread Rob Herring
On Fri, 12 Mar 2021 10:42:03 +0530, Vinod Koul wrote: > Add the compatible string for SM8350 IPCC block on this SoC > > Signed-off-by: Vinod Koul > --- > Documentation/devicetree/bindings/mailbox/qcom-ipcc.yaml | 1 + > 1 file changed, 1 insertion(+) > Acked-by: Rob Herring

Re: [PATCH 1/5] dt-bindings: soc: qcom: wcnss: Add firmware-name property

2021-03-24 Thread Rob Herring
On Thu, 11 Mar 2021 16:33:14 -0800, Bjorn Andersson wrote: > The WCNSS needs firmware which differs between platforms, and possibly > boards. Add a new property "firmware-name" to allow the DT to specify > the platform/board specific path to this firmware file. > > Signed-off-by: Bjorn Andersson

Re: [PATCH] riscv: Do not invoke early_init_dt_verify() twice

2021-03-24 Thread Anup Patel
On Wed, Mar 24, 2021 at 8:33 PM Changbin Du wrote: > > In the setup_arch() of riscv, function early_init_dt_verify() has > been done by parse_dtb(). So no need to call it again. Just directly > invoke unflatten_device_tree(). > > Signed-off-by: Changbin Du > --- > arch/riscv/kernel/setup.c | 5 +

[PATCH][next] staging: rtl8188eu: Fix null pointer dereference on free_netdev call

2021-03-24 Thread Colin King
From: Colin Ian King An unregister_netdev call checks if pnetdev is null, hence a later call to free_netdev can potentially be passing a null pointer, causing a null pointer dereference. Avoid this by adding a null pointer check on pnetdev before calling free_netdev. Fixes: 1665c8fdffbb ("stagin

Re: [PATCH v2 2/2] mfd: intel_quark_i2c_gpio: enable MSI interrupt

2021-03-24 Thread Andy Shevchenko
On Wed, Mar 24, 2021 at 03:10:35PM +, Lee Jones wrote: > On Wed, 24 Mar 2021, Andy Shevchenko wrote: > > On Wed, Mar 24, 2021 at 01:07:23PM +, Lee Jones wrote: > > > On Wed, 24 Mar 2021, Andy Shevchenko wrote: > > > > On Wed, Mar 24, 2021 at 11:50:33AM +, Lee Jones wrote: ... > > > >

[PATCH v3 1/1] mfd: intel_quark_i2c_gpio: enable MSI interrupt

2021-03-24 Thread Andy Shevchenko
Allow interrupts to be MSI if supported by hardware. Signed-off-by: Andy Shevchenko --- v3: added a comment about magic 1s (Lee) drivers/mfd/intel_quark_i2c_gpio.c | 22 -- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/drivers/mfd/intel_quark_i2c_gpio.c b/d

Re: [PATCH v1 2/2] dt-bindings: net: bluetooth: Add device tree bindings for QTI chip wcn6750

2021-03-24 Thread Rob Herring
On Thu, Mar 11, 2021 at 10:28:24PM +0530, Venkata Lakshmi Narayana Gubba wrote: > This patch enables regulators and gpios for the Qualcomm Bluetooth wcn6750 > controller. > > Signed-off-by: Venkata Lakshmi Narayana Gubba > --- > .../devicetree/bindings/net/qualcomm-bluetooth.txt | 43 >

Re: [PATCH v6] mm: cma: support sysfs

2021-03-24 Thread Minchan Kim
On Wed, Mar 24, 2021 at 03:37:02PM +0300, Dmitry Osipenko wrote: > 24.03.2021 08:44, Minchan Kim пишет: > > On Tue, Mar 23, 2021 at 09:47:27PM -0700, John Hubbard wrote: > >> On 3/23/21 8:27 PM, Minchan Kim wrote: > >> ... > > +static int __init cma_sysfs_init(void) > > +{ > > + u

Re: [PATCH 4/4] ARM: dts: Fix-up EMMC2 controller's frequency

2021-03-24 Thread Stefan Wahren
Hi Nicolas, Am 22.03.21 um 19:58 schrieb Nicolas Saenz Julienne: > From: Nicolas Saenz Julienne > > Force emmc2's frequency to 150MHz as the default 100MHz (set by FW) > seems to interfere with the VPU clock when setup at frequencies bigger > than 500MHz (a pretty common case). This ends up causi

Re: [PATCH v1] drm/tegra: dc: Don't set PLL clock to 0Hz

2021-03-24 Thread Thierry Reding
On Tue, Mar 02, 2021 at 04:15:06PM +0300, Dmitry Osipenko wrote: > RGB output doesn't allow to change parent clock rate of the display and > PCLK rate is set to 0Hz in this case. The tegra_dc_commit_state() shall > not set the display clock to 0Hz since this change propagates to the > parent clock.

Re: [PATCH 1/1] block: fix potential infinite loop in the negative branch in __submit_bio_noacct_mq()

2021-03-24 Thread Sergei Shtepa
The 03/24/2021 11:18, Christoph Hellwig wrote: > On Tue, Mar 23, 2021 at 02:48:36PM +0300, Sergei Shtepa wrote: > > When the blk_crypto_bio_prep() function returns false, the processing > > of the bio request must end. Repeated access to blk_crypto_bio_prep() > > for this same bio may lead to acces

Re: [PATCH RESEND] intel/pinctrl: check capability offset is between MMIO region

2021-03-24 Thread Roger Pau Monné
On Wed, Mar 24, 2021 at 04:22:44PM +0200, Andy Shevchenko wrote: > On Wed, Mar 24, 2021 at 02:55:15PM +0100, Roger Pau Monné wrote: > > On Wed, Mar 24, 2021 at 02:58:07PM +0200, Andy Shevchenko wrote: > > > On Wed, Mar 24, 2021 at 01:31:18PM +0100, Roger Pau Monne wrote: > > > Moreover, it seems yo

Re: [PATCH 4/4] PCI/sysfs: Allow userspace to query and set device reset mechanism

2021-03-24 Thread Leon Romanovsky
On Wed, Mar 24, 2021 at 08:37:43AM -0600, Alex Williamson wrote: > On Wed, 24 Mar 2021 12:03:00 +0200 > Leon Romanovsky wrote: > > > On Mon, Mar 22, 2021 at 11:10:03AM -0600, Alex Williamson wrote: > > > On Sun, 21 Mar 2021 10:40:55 +0200 > > > Leon Romanovsky wrote: > > > > > > > On Sat, Mar

Re: [PATCH v2 00/10] Rid W=1 warnings from OF

2021-03-24 Thread Lee Jones
On Wed, 24 Mar 2021, Rob Herring wrote: > On Tue, Mar 23, 2021 at 2:36 AM Lee Jones wrote: > > > > On Mon, 22 Mar 2021, Rob Herring wrote: > > > > > On Thu, Mar 18, 2021 at 4:40 AM Lee Jones wrote: > > > > > > > > This set is part of a larger effort attempting to clean-up W=1 > > > > kernel buil

Re: [PATCH v6] mm: cma: support sysfs

2021-03-24 Thread Minchan Kim
On Wed, Mar 24, 2021 at 03:33:07PM +0300, Dmitry Osipenko wrote: > 24.03.2021 04:05, Minchan Kim пишет: > > +static struct kobject *cma_kobj_root; > > This should be a local variable. Sure. > > > +static struct kobj_type cma_ktype = { > > + .release = cma_kobj_release, > > + .sysfs_ops = &k

Re: [PATCH v3 00/14] NVIDIA Tegra ARM32 device-tree improvements

2021-03-24 Thread Thierry Reding
On Tue, Mar 02, 2021 at 03:09:49PM +0300, Dmitry Osipenko wrote: > Hi, > > This series is partially factored out from [1] since the DT patches > could be applied separately. In addition I added couple more new > patches and implemented suggestion given by Daniel Lezcano to [1], > see "Specify all

Re: [PATCH v3 09/14] ARM: tegra: acer-a500: Rename avdd to vdda of touchscreen node

2021-03-24 Thread Thierry Reding
On Tue, Mar 02, 2021 at 03:09:58PM +0300, Dmitry Osipenko wrote: > Rename avdd supply to vdda of the touchscreen node. The old supply name > was incorrect. > > Signed-off-by: Dmitry Osipenko > --- > arch/arm/boot/dts/tegra20-acer-a500-picasso.dts | 2 +- > 1 file changed, 1 insertion(+), 1 delet

Re: [PATCH v2 2/2] mfd: intel_quark_i2c_gpio: enable MSI interrupt

2021-03-24 Thread Lee Jones
On Wed, 24 Mar 2021, Andy Shevchenko wrote: > On Wed, Mar 24, 2021 at 01:07:23PM +, Lee Jones wrote: > > On Wed, 24 Mar 2021, Andy Shevchenko wrote: > > > > > On Wed, Mar 24, 2021 at 11:50:33AM +, Lee Jones wrote: > > > > On Wed, 24 Mar 2021, Andy Shevchenko wrote: > > > > > > > > > On W

[PATCH][next] net: bridge: Fix missing return assignment from br_vlan_replay_one call

2021-03-24 Thread Colin King
From: Colin Ian King The call to br_vlan_replay_one is returning an error return value but this is not being assigned to err and the following check on err is currently always false because err was initialized to zero. Fix this by assigning err. Addresses-Coverity: ("'Constant' variable guards d

[PATCH v2 4/4] MAINTAINERS: Add Vlad Rezki as vmalloc maintainer

2021-03-24 Thread Matthew Wilcox (Oracle)
People should know to cc Vlad on vmalloc-related patches. With this, get-maintainer.pl suggests: Uladzislau Rezki (maintainer:VMALLOC) Andrew Morton (maintainer:MEMORY MANAGEMENT) linux...@kvack.org (open list:VMALLOC) linux-kernel@vger.kernel.org (open list) which looks appropriate to me. Si

[PATCH v2 3/4] mm/vmalloc: Use kvmalloc to allocate the table of pages

2021-03-24 Thread Matthew Wilcox (Oracle)
If we're trying to allocate 4MB of memory, the table will be 8KiB in size (1024 pointers * 8 bytes per pointer), which can usually be satisfied by a kmalloc (which is significantly faster). Instead of changing this open-coded implementation, just use kvmalloc(). This improves the allocation speed

Re: [PATCH 2/3] virtiofs: split requests that exceed virtqueue size

2021-03-24 Thread Connor Kuehl
On 3/18/21 10:17 AM, Miklos Szeredi wrote: I removed the conditional compilation and renamed the limit. Also made virtio_fs_get_tree() bail out if it hit the WARN_ON(). Updated patch below. Hi Miklos, Has this patch been queued? Connor --- From: Connor Kuehl Subject: virtiofs: split requ

Re: [RFC PATCH v3 1/7] dt_bindings: Add protection limit properties

2021-03-24 Thread Rob Herring
On Thu, 11 Mar 2021 12:21:41 +0200, Matti Vaittinen wrote: > Support specifying protection/error/warning limits for regulator > over current, over temperature and over/under voltage. > > Most of the PMICs support only "protection" feature but few > setups do also support error/warning level indica

[PATCH v2 2/4] mm/util: Add kvmalloc_node_caller

2021-03-24 Thread Matthew Wilcox (Oracle)
Allow the caller of kvmalloc to specify who counts as the allocator of the memory instead of assuming it's the immediate caller. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/mm.h | 4 +++- include/linux/slab.h | 2 ++ mm/util.c| 51 +---

[PATCH v2 0/4] vmalloc: Improve vmalloc(4MB) performance

2021-03-24 Thread Matthew Wilcox (Oracle)
I may have gone a little too far with the first patch. It turns out we have a lot of code using the vmalloc caller functionality, and I decided to convert it all to unsigned long instead of leaving some paths as void * and casting later. I can redo that if necessary. I've tested arm32, sh4 and p

[PATCH v2 1/4] mm/vmalloc: Change the 'caller' type to unsigned long

2021-03-24 Thread Matthew Wilcox (Oracle)
kmalloc uses an unsigned long while vmalloc uses const void * to represent the address of the caller. _RET_IP_ is more popular than __builtin_return_address (429 to 258), so switch vmalloc to match kmalloc (which changes the score to 504 to 183). Also lets us use _THIS_IP_ instead of the explicit

[PATCH] of/fdt: Check dtb pointer first in unflatten_device_tree

2021-03-24 Thread Changbin Du
The setup_arch() would invoke unflatten_device_tree() even no valid fdt found. So we'd better check it first and return early. Signed-off-by: Changbin Du --- drivers/of/fdt.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index dcc1dd96911a..05d439d6

Re: [PATCH] ceph: convert {n}ref from atomic_t to refcount_t

2021-03-24 Thread Jeff Layton
On Wed, 2021-03-24 at 18:26 +0800, Yejune Deng wrote: > refcount_t type should be used instead of atomic_t when the variable > is used as a reference counter. This is because the implementation of > refcount_t can prevent overflows and detect possible use-after-free. > > Signed-off-by: Yejune Deng

Re: [PATCH v30 08/12] landlock: Add syscall implementations

2021-03-24 Thread Mickaël Salaün
On 19/03/2021 22:53, Mickaël Salaün wrote: > > On 19/03/2021 20:06, Kees Cook wrote: >> On Tue, Mar 16, 2021 at 09:42:48PM +0100, Mickaël Salaün wrote: >>> From: Mickaël Salaün [...] >>> +/** >>> + * sys_landlock_create_ruleset - Create a new ruleset >>> + * >>> + * @attr: Pointer to a &struc

[PATCH] riscv: Do not invoke early_init_dt_verify() twice

2021-03-24 Thread Changbin Du
In the setup_arch() of riscv, function early_init_dt_verify() has been done by parse_dtb(). So no need to call it again. Just directly invoke unflatten_device_tree(). Signed-off-by: Changbin Du --- arch/riscv/kernel/setup.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/

Re: [PATCH] x86/mce: Add Skylake quirk for patrol scrub reported errors

2021-03-24 Thread Borislav Petkov
On Mon, Mar 22, 2021 at 03:37:10PM -0700, Tony Luck wrote: > From: Youquan Song > > Skylake has a mode where the system administrator can use a BIOS setup > option to request that the memory controller report uncorrected errors > found by the patrol scrubber as corrected. This results in them be

[PATCH] efi/fdt: fix panic when no valid fdt found

2021-03-24 Thread Changbin Du
setup_arch() would invoke efi_init()->efi_get_fdt_params(). If no valid fdt found then initial_boot_params will be null. So we should stop further fdt processing here. I encountered this issue on risc-v. Signed-off-by: Changbin Du --- drivers/firmware/efi/fdtparams.c | 3 +++ 1 file changed, 3 i

Re: [PATCH 3/6] drm/rockchip: dsi: add ability to work as a phy instead of full dsi

2021-03-24 Thread Heiko Stübner
Am Montag, 15. Februar 2021, 15:33:19 CET schrieb Helen Koike: > > From: Heiko Stuebner > > diff --git a/drivers/gpu/drm/rockchip/Kconfig > > b/drivers/gpu/drm/rockchip/Kconfig > > index cb25c0e8fc9b..3094d4533ad6 100644 > > --- a/drivers/gpu/drm/rockchip/Kconfig > > +++ b/drivers/gpu/drm/rockchi

Re: [PATCH] tee: optee: add invoke_fn tracepoints

2021-03-24 Thread Steven Rostedt
On Wed, 24 Mar 2021 07:48:53 -0700 Guenter Roeck wrote: > On Wed, Mar 24, 2021 at 07:34:07AM -0700, Guenter Roeck wrote: > > On Wed, Feb 10, 2021 at 02:44:09PM +0800, Jisheng Zhang wrote: > > > Add tracepoints to retrieve information about the invoke_fn. This would > > > help to measure how man

Re: [PATCH v5 1/5] mm,memory_hotplug: Allocate memmap from the added memory range

2021-03-24 Thread David Hildenbrand
On 24.03.21 15:42, Michal Hocko wrote: On Wed 24-03-21 13:03:29, Michal Hocko wrote: On Wed 24-03-21 11:12:59, Oscar Salvador wrote: [...] I kind of understand to be reluctant to use vmemmap_pages terminology here, but unfortunately we need to know about it. We could rename nr_vmemmap_pages to

Re: [CRIU] [PATCH] mnt: allow to add a mount into an existing group

2021-03-24 Thread Pavel Tikhomirov
Adding Andrew to CC with the right email. On 3/23/21 3:59 PM, Pavel Tikhomirov wrote: Hi! Can we restart the discussion on this topic? In CRIU we need to be able to dump/restore all mount trees of system container (CT). CT can have anything inside - users which create their custom mounts conf

Re: [PATCH 4/4] dt-bindings: usb: Add chg-psy-name property Maxim 33359 binding

2021-03-24 Thread Rob Herring
On Thu, Mar 11, 2021 at 02:03:13AM -0800, Badhri Jagan Sridharan wrote: > chg-psy-name is an optional string property used to indicate the > power supply object for which the current/voltage_max limits have > to be set. > > Signed-off-by: Badhri Jagan Sridharan > --- > Documentation/devicetree/b

Re: linux-next: manual merge of the opp tree with the v4l-dvb tree

2021-03-24 Thread Stanimir Varbanov
Thanks Stephen! On 3/23/21 2:27 AM, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the opp tree got a conflict in: > > drivers/media/platform/qcom/venus/pm_helpers.c > > between commit: > > 08b1cf474b7f ("media: venus: core, venc, vdec: Fix probe dependency error") > >

Re: [PATCH] tee: optee: add invoke_fn tracepoints

2021-03-24 Thread Guenter Roeck
On Wed, Mar 24, 2021 at 07:34:07AM -0700, Guenter Roeck wrote: > On Wed, Feb 10, 2021 at 02:44:09PM +0800, Jisheng Zhang wrote: > > Add tracepoints to retrieve information about the invoke_fn. This would > > help to measure how many invoke_fn are triggered and how long it takes > > to complete one

Re: [PATCH v2 05/15] PCI: xilinx: Convert to MSI domains

2021-03-24 Thread Marc Zyngier
On Wed, 24 Mar 2021 13:56:16 +, Bharat Kumar Gogada wrote: > > Thanks for that. Can you please try the following patch and let me know if > > it > > helps? > > > > Thanks, > > > > M. > > > > diff --git a/drivers/pci/controller/pcie-xilinx.c > > b/drivers/pci/controller/pcie- > > xili

Re: [PATCH v2 0/7] Generic Command Line changes

2021-03-24 Thread Rob Herring
On Mon, Mar 8, 2021 at 5:02 PM Daniel Walker wrote: > > This fixed some problem identified in my last release. I made updates > based on comments from Christophe Leroy. > > I added scripted updates to the defconfig file for mips and powerpc. > This is required in order to maintain the status quo f

Re: [PATCH] media: venus: Fix internal buffer size calculations for v6.

2021-03-24 Thread Stanimir Varbanov
On 3/17/21 10:35 AM, Dikshita Agarwal wrote: > - Update persist buffer size for encoder to 204800. > - Update persist buffer size calculation for h264 decoder. > - h264d level 6 support needs update in internal buffer size. > update below buffers size > - h264 decoder colocated motion vector

Re: [3/3,v3] tools/power turbostat: Enable accumulate RAPL display

2021-03-24 Thread Doug Smythies
Just resending to previously missed people who should also test this. (See other e-mail: Re: turbostat: Fix Pkg Power on Zen) On Sat, Mar 13, 2021 at 5:49 AM youling 257 wrote: > > test this patch, turbostat can work. > > 2021-03-12 21:41 GMT+08:00, Chen Yu : > > Hi Youling, Bas, and Bingsong, >

Re: [PATCH v5 1/5] mm,memory_hotplug: Allocate memmap from the added memory range

2021-03-24 Thread Michal Hocko
On Wed 24-03-21 13:03:29, Michal Hocko wrote: > On Wed 24-03-21 11:12:59, Oscar Salvador wrote: [...] > > I kind of understand to be reluctant to use vmemmap_pages terminology here, > > but > > unfortunately we need to know about it. > > We could rename nr_vmemmap_pages to offset_buddy_pages or so

Re: [PATCH 5.10 000/150] 5.10.26-rc3 review

2021-03-24 Thread Guenter Roeck
On Wed, Mar 24, 2021 at 10:40:21AM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.10.26 release. > There are 150 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me kno

Re: [PATCH v3] usb: dwc3: gadget: Prevent EP queuing while stopping transfers

2021-03-24 Thread Andy Shevchenko
On Tue, Mar 23, 2021 at 11:53 PM Wesley Cheng wrote: > > > > On 3/23/2021 10:27 AM, Andy Shevchenko wrote: > > On Tue, Mar 23, 2021 at 1:19 AM Wesley Cheng wrote: > >> > >> Hi Andy, > >> > >> On 3/22/2021 2:14 PM, Andy Shevchenko wrote: > >>> On Mon, Mar 22, 2021 at 10:06 PM Wesley Cheng > >>>

Re: turbostat: Fix Pkg Power on Zen

2021-03-24 Thread Doug Smythies
On Wed, Mar 24, 2021 at 5:38 AM Salvatore Bonaccorso wrote: > On Mon, Mar 15, 2021 at 10:54:24PM +0100, Christian Kastner wrote: > > On 01.02.21 10:01, Kurt Garloff wrote: > > > Issue persists on Ryzen in 5.11-rc6: > > > kvmadmin@KurtSrv2018(//):~ [0]$ sudo > > > /casa/src/linux-stable/tools/powe

Re: [PATCH 4/4] PCI/sysfs: Allow userspace to query and set device reset mechanism

2021-03-24 Thread Alex Williamson
On Wed, 24 Mar 2021 12:03:00 +0200 Leon Romanovsky wrote: > On Mon, Mar 22, 2021 at 11:10:03AM -0600, Alex Williamson wrote: > > On Sun, 21 Mar 2021 10:40:55 +0200 > > Leon Romanovsky wrote: > > > > > On Sat, Mar 20, 2021 at 08:59:42AM -0600, Alex Williamson wrote: > > > > On Sat, 20 Mar 20

Re: [PATCH v2] sched: Warn on long periods of pending need_resched

2021-03-24 Thread Peter Zijlstra
On Wed, Mar 24, 2021 at 01:39:16PM +, Mel Gorman wrote: > > Yeah, lets say I was pleasantly surprised to find it there :-) > > > > Minimally, lets move that out before it gets kicked out. Patch below. OK, stuck that in front. > > > Moving something like sched_min_granularity_ns will break

[PATCH -next] x86/kprobes: Fix old-style-declaration warning

2021-03-24 Thread 'Wei Yongjun
From: Wei Yongjun Gcc reports build warning as follows: arch/x86/kernel/kprobes/core.c:940:1: warning: 'inline' is not at beginning of declaration [-Wold-style-declaration] 940 | static int nokprobe_inline kprobe_is_ss(struct kprobe_ctlblk *kcb) | ^~ This commit fix it by moving no

Re: [PATCH] tee: optee: add invoke_fn tracepoints

2021-03-24 Thread Guenter Roeck
On Wed, Feb 10, 2021 at 02:44:09PM +0800, Jisheng Zhang wrote: > Add tracepoints to retrieve information about the invoke_fn. This would > help to measure how many invoke_fn are triggered and how long it takes > to complete one invoke_fn call. > > Signed-off-by: Jisheng Zhang arm64:defconfig: m

[PATCH -next] libnvdimm/security: Make symbol '__nvdimm_security_overwrite_query' static

2021-03-24 Thread 'Wei Yongjun
From: Wei Yongjun The sparse tool complains as follows: drivers/nvdimm/security.c:416:6: warning: symbol '__nvdimm_security_overwrite_query' was not declared. Should it be static? This symbol is not used outside of security.c, so this commit marks it static. Reported-by: Hulk Robot Signed-o

Re: [PATCH] amdgpu: fix gcc -Wrestrict warning

2021-03-24 Thread Joe Perches
On Tue, 2021-03-23 at 14:04 +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > gcc warns about an sprintf() that uses the same buffer as source > and destination, which is undefined behavior in C99: > > drivers/gpu/drm/amd/amdgpu/amdgpu_securedisplay.c: In function > 'amdgpu_securedisplay_de

Re: [PATCH 3/3] mm: unexport follow_pfn

2021-03-24 Thread Paolo Bonzini
On 24/03/21 13:52, Jason Gunthorpe wrote: I think this is the right thing to do. Alex is working on fixing VFIO and while kvm is still racy using follow pte, I think they are working on it too? Yeah, or at least we have a plan. Paolo

[PATCH v5 4/4] perf: Update .gitignore file

2021-03-24 Thread Alexander Antonov
After a "make -C tools/perf", git reports the following untracked file: perf-iostat Add this generated file to perf's .gitignore file. Signed-off-by: Alexander Antonov --- tools/perf/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/.gitignore b/tools/perf/.gitignore ind

[PATCH v5 3/4] perf stat: Enable iostat mode for x86 platforms

2021-03-24 Thread Alexander Antonov
This functionality is based on recently introduced sysfs attributes for Intel® Xeon® Scalable processor family (code name Skylake-SP): Commit bb42b3d39781 ("perf/x86/intel/uncore: Expose an Uncore unit to IIO PMON mapping") Mode is intended to provide four I/O performance metrics in MB per each PC

[PATCH v5 0/4] perf stat: Introduce iostat mode to provide I/O performance metrics

2021-03-24 Thread Alexander Antonov
The previous version can be found at: v4: https://lkml.kernel.org/r/20210203135830.38568-1-alexander.anto...@linux.intel.com/ Changes in this revision are: v4 -> v5: - Addressed comments from Namhyung Kim: 1. Removed AGGR_PCIE_PORT aggregation mode 2. Added iostat_prepare() function 3. Moved

[PATCH v5 1/4] perf stat: Basic support for iostat in perf

2021-03-24 Thread Alexander Antonov
Add basic flow for a new iostat mode in perf. Mode is intended to provide four I/O performance metrics per each PCIe root port: Inbound Read, Inbound Write, Outbound Read, Outbound Write. The actual code to compute the metrics and attribute it to root port is in follow-on patches. Signed-off-by:

[PATCH v5 2/4] perf stat: Helper functions for PCIe root ports list in iostat mode

2021-03-24 Thread Alexander Antonov
Introduce helper functions to control PCIe root ports list. These helpers will be used in the follow-up patch. Signed-off-by: Alexander Antonov --- tools/perf/arch/x86/util/iostat.c | 110 ++ 1 file changed, 110 insertions(+) create mode 100644 tools/perf/arch/x86/ut

[PATCH] fs/pipe: wakeup wr_wait after setting max_usage

2021-03-24 Thread Lukas Schauer
With commit c73be61cede5882f9605a852414db559c0ebedfd a regression was introduced that would lock up resized pipes under certain conditions. In that commit resizing the pipe ring size was moved to a different function, doing that moved the wakeup for pipe->wr_wait before actually raising pipe->max_

Re: [PATCH 5.10 104/157] mptcp: put subflow sock on connect error

2021-03-24 Thread Sasha Levin
On Wed, Mar 24, 2021 at 10:22:29AM +0100, Greg Kroah-Hartman wrote: On Wed, Mar 24, 2021 at 10:04:12AM +0100, Florian Westphal wrote: Naresh Kamboju wrote: > On Mon, 22 Mar 2021 at 18:15, Greg Kroah-Hartman > wrote: > > > > From: Florian Westphal > > > > [ Upstream commit f07157792c633b528de5

Re: [PATCH] [v2] hinic: avoid gcc -Wrestrict warning

2021-03-24 Thread Arnd Bergmann
On Wed, Mar 24, 2021 at 2:29 PM Rasmus Villemoes wrote: > On 24/03/2021 14.07, Arnd Bergmann wrote: > > > if (set_settings & HILINK_LINK_SET_SPEED) { > > speed_level = hinic_ethtool_to_hw_speed_level(speed); > > err = snprintf(set_link_str, SET_LINK_STR_MAX_LEN,

Re: [PATCH v4 14/22] x86/fpu/xstate: Expand the xstate buffer on the first use of dynamic user state

2021-03-24 Thread Dave Hansen
On 3/23/21 2:52 PM, Bae, Chang Seok wrote: >> "System software may disable use of Intel AMX by clearing XCR0[18:17], by >> clearing CR4.OSXSAVE, or by setting IA32_XFD[18]. It is recommended that >> system software initialize AMX state (e.g., by executing TILERELEASE) >> before doing so. Thi

Re: [PATCH RESEND] intel/pinctrl: check capability offset is between MMIO region

2021-03-24 Thread Andy Shevchenko
On Wed, Mar 24, 2021 at 02:55:15PM +0100, Roger Pau Monné wrote: > On Wed, Mar 24, 2021 at 02:58:07PM +0200, Andy Shevchenko wrote: > > On Wed, Mar 24, 2021 at 01:31:18PM +0100, Roger Pau Monne wrote: ... > What could be done is check whether reading REVID returns ~0 and exit > at that point, if

Re: [RFC PATCH] autofs: find_autofs_mount overmounted parent support

2021-03-24 Thread Alexander Mihalicyn
On Tue, Mar 23, 2021 at 11:44 AM Ian Kent wrote: > > On Tue, 2021-03-09 at 13:43 +0300, Alexander Mikhalitsyn wrote: > > On Sat, 06 Mar 2021 17:13:32 +0800 > > Ian Kent wrote: > > > > > On Fri, 2021-03-05 at 14:55 +0300, Alexander Mikhalitsyn wrote: > > > > On Fri, 05 Mar 2021 18:10:02 +0800 > >

Re: [PATCH] [v2] drm/imx: imx-ldb: fix out of bounds array access warning

2021-03-24 Thread Joe Perches
On Wed, 2021-03-24 at 13:17 +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > When CONFIG_OF is disabled, building with 'make W=1' produces warnings > about out of bounds array access: > > drivers/gpu/drm/imx/imx-ldb.c: In function 'imx_ldb_set_clock.constprop': > drivers/gpu/drm/imx/imx-ldb

Re: [PATCH v2 2/2] mfd: intel_quark_i2c_gpio: enable MSI interrupt

2021-03-24 Thread Andy Shevchenko
On Wed, Mar 24, 2021 at 01:07:23PM +, Lee Jones wrote: > On Wed, 24 Mar 2021, Andy Shevchenko wrote: > > > On Wed, Mar 24, 2021 at 11:50:33AM +, Lee Jones wrote: > > > On Wed, 24 Mar 2021, Andy Shevchenko wrote: > > > > > > > On Wed, Mar 24, 2021 at 10:47:29AM +, Lee Jones wrote: > >

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