Re: [PATCH] iommu: Add device name to iommu map/unmap trace events

2021-04-05 Thread chenxiang (M)
Hi, 在 2021/2/12 18:50, Joerg Roedel 写道: On Tue, Feb 09, 2021 at 06:06:20PM +0530, Sai Prakash Ranjan wrote: diff --git a/include/linux/iommu.h b/include/linux/iommu.h index 5e7fe519430a..6064187d9bb6 100644 --- a/include/linux/iommu.h +++ b/include/linux/iommu.h @@ -87,6 +87,7 @@ struct iommu_

Re: [PATCH 4/4] mm/page_reporting: Fix possible user allocation failure

2021-04-05 Thread Xunlei Pang
On 4/3/21 3:55 AM, Alexander Duyck wrote: > On Fri, Mar 26, 2021 at 2:45 AM Xunlei Pang wrote: >> >> We encountered user memory allocation failure(OOM) on our >> 512MiB tiny instances, it didn't happen after turning off >> the page reporting. >> >> After some debugging, it turns out 32*4MB=128MB(o

Re: [PATCH 2/4] mm/page_reporting: Introduce free page reporting factor

2021-04-05 Thread Xunlei Pang
On 4/3/21 2:56 AM, Alexander Duyck wrote: > On Fri, Mar 26, 2021 at 2:45 AM Xunlei Pang wrote: >> >> Add new "/sys/kernel/mm/page_reporting/reporting_factor" >> within [0, 100], and stop page reporting when it reaches >> the configured threshold. Default is 100 which means no >> limitation is impo

[PATCH] ftrace: Check if pages were allocated before calling free_pages()

2021-04-05 Thread Jiapeng Chong
It is possible that on error pg->size can be zero when getting its order,which would return a -1 value. It is dangerous to pass in an order of -1 to free_pages(). Check if order is greater than or equal to zero before calling free_pages(). Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --

Re: [PATCH 1/2] ARM: dts: uniphier: Change phy-mode to RGMII-ID to enable delay pins for RTL8211E

2021-04-05 Thread Kunihiko Hayashi
Gentle Ping. Are there any comments about these two patches? Thank you, On Tue, 9 Mar 2021 09:37:15 +0900 Kunihiko Hayashi wrote: > After applying the commit bbc4d71d6354 > ("net: phy: realtek: fix rtl8211e rx/tx delay config"), the configuration > register for TXDLY and RXDLY is set correctly.

linux-next: build warning after merge of the spi tree

2021-04-05 Thread Stephen Rothwell
Hi all, After merging the spi tree, today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/spi/spi-hisi-kunpeng.c: In function 'hisi_spi_transfer_one': drivers/spi/spi-hisi-kunpeng.c:361:9: warning: conversion from 'long unsigned int' to 'unsigned int' changes value from '

Re: [PATCH v6] RISC-V: enable XIP

2021-04-05 Thread Alex Ghiti
Hi Vitaly, Le 4/5/21 à 4:34 AM, Vitaly Wool a écrit : On Sun, Apr 4, 2021 at 10:39 AM Vitaly Wool wrote: On Sat, Apr 3, 2021 at 12:00 PM Alex Ghiti wrote: Hi Vitaly, Le 4/1/21 à 7:10 AM, Alex Ghiti a écrit : Le 4/1/21 à 4:52 AM, Vitaly Wool a écrit : Hi Alex, On Thu, Apr 1, 2021 at 10:

Re: [PATCH RFC 2/3] fpga: support loading from a pre-allocated buffer

2021-04-05 Thread Martin Hundebøll
Hi Nava, On minor comment below. On 02/04/2021 11.09, Nava kishore Manne wrote: Some systems are memory constrained but they need to load very large Configuration files. The FPGA subsystem allows drivers to request this Configuration image be loaded from the filesystem, but this requires that t

[PATCH] tools: perf: util: Remove unnecessary struct declaration

2021-04-05 Thread Wan Jiabing
struct feat_fd is defined at 93rd line. The declaration here is unnecessary. Remove it. Signed-off-by: Wan Jiabing --- tools/perf/util/header.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/perf/util/header.h b/tools/perf/util/header.h index 2aca71763ecf..3b1d284ee18c 100644 --- a/t

Re: [PATCH v6 2/4] soc: qcom: Add SoC sleep stats driver

2021-04-05 Thread Maulik Shah
Hi, On 2/9/2021 6:12 AM, Stephen Boyd wrote: Quoting Maulik Shah (2021-02-04 06:21:46) From: Mahesh Sivasubramanian Let's add a driver to read the stats from remote processor and export to debugfs. The driver creates "qcom_sleep_stats" directory in debugfs and adds files for various low powe

Re: [PATCH v1 2/2] scsi: pm8001: clean up for open brace

2021-04-05 Thread luojiaxing
On 2021/4/3 0:03, Bart Van Assche wrote: On 4/2/21 2:08 AM, Luo Jiaxing wrote: -static struct flash_command flash_command_table[] = -{ +static struct flash_command flash_command_table[] = { {"set_nvmd",FLASH_CMD_SET_NVMD}, {"update", FLASH_CMD_UPDATE}, {"",

Re: [PATCH v1 1/2] scsi: pm8001: clean up for white space

2021-04-05 Thread luojiaxing
On 2021/4/3 0:01, Bart Van Assche wrote: On 4/2/21 2:08 AM, Luo Jiaxing wrote: #define AAP1_MEMMAP(r, c) \ - (*(u32 *)((u8*)pm8001_ha->memoryMap.region[AAP1].virt_ptr + (r) * 32 \ + (*(u32 *)((u8 *)pm8001_ha->memoryMap.region[AAP1].virt_ptr + (r) * 32 \ + (c))) Since thi

[PATCH] drivers: mtd: ubi: Remove unnecessary struct declaration

2021-04-05 Thread Wan Jiabing
struct ubi_wl_entry is defined at 178th line. The declaration here is unnecessary. Remove it. Signed-off-by: Wan Jiabing --- drivers/mtd/ubi/ubi.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h index c2da77163f94..7c083ad58274 100644 --- a/driv

[PATCH] KVM: x86: Remove unused function declaration

2021-04-05 Thread Keqian Zhu
kvm_mmu_slot_largepage_remove_write_access() is decared but not used, just remove it. Signed-off-by: Keqian Zhu --- arch/x86/include/asm/kvm_host.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index 3768819693e5..9c0af0971

Re: linux-next: build warning after merge of the arm-soc tree

2021-04-05 Thread Krzysztof Kozlowski
On 06/04/2021 02:45, Stephen Rothwell wrote: > Hi all, > > After merging the arm-soc tree, today's linux-next build (x86_64 > allmodconfig) produced this warning: > > drivers/clk/socfpga/clk-gate.c: In function 'socfpga_clk_recalc_rate': > drivers/clk/socfpga/clk-gate.c:102:7: warning: cast fro

Re: [PATCH v5 2/7] pwm: pca9685: Support hardware readout

2021-04-05 Thread Uwe Kleine-König
Hello Thierry, On Wed, Mar 31, 2021 at 05:52:45PM +0200, Thierry Reding wrote: > On Wed, Mar 31, 2021 at 12:25:43PM +0200, Uwe Kleine-König wrote: > > On Mon, Mar 22, 2021 at 09:34:21AM +0100, Thierry Reding wrote: > > > On Mon, Jan 11, 2021 at 09:43:50PM +0100, Uwe Kleine-König wrote: > > > > On

Re: [PATCH 1/2] block: shutdown blktrace in case of fatal signal pending

2021-04-05 Thread Christoph Hellwig
On Sat, Apr 03, 2021 at 04:10:16PM +0800, Ming Lei wrote: > We still may shutdown blktrace if current is the last opener, otherwise > new blktrace can't be started and memory should be leaked forever, and > what do you think of the revised version? I don't think this works. For one there might be

Re: [PATCH] net: phy: fix PHY possibly unwork after MDIO bus resume back

2021-04-05 Thread Heiner Kallweit
On 06.04.2021 04:07, Joakim Zhang wrote: > > Hi Heiner, > >> -Original Message- >> From: Heiner Kallweit >> Sent: 2021年4月5日 20:10 >> To: christian.me...@t2data.com; Joakim Zhang ; >> and...@lunn.ch; li...@armlinux.org.uk; da...@davemloft.net; >> k...@kernel.org >> Cc: net...@vger.kernel.

[PATCH] net/Bluetooth - use the correct print format

2021-04-05 Thread Kai Ye
Use the correct print format. Printing an unsigned int value should use %u instead of %d. For details, please read document: Documentation/core-api/printk-formats.rst Signed-off-by: Kai Ye --- net/bluetooth/l2cap_core.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff

Re: [PATCH rdma-next 02/10] RDMA/core: Enable Relaxed Ordering in __ib_alloc_pd()

2021-04-05 Thread Leon Romanovsky
On Mon, Apr 05, 2021 at 02:01:16PM -0400, Tom Talpey wrote: > On 4/5/2021 1:23 AM, Leon Romanovsky wrote: > > From: Avihai Horon > > > > Enable Relaxed Ordering in __ib_alloc_pd() allocation of the > > local_dma_lkey. > > > > This will take effect only for devices that don't pre-allocate the lke

Re: [PATCH] debugfs: Make debugfs_allow RO after init

2021-04-05 Thread Peter.Enderborg
On 4/5/21 11:39 PM, Kees Cook wrote: > Since debugfs_allow is only set at boot time during __init, make it > read-only after being set. > > Cc: Peter Enderborg > Fixes: a24c6f7bc923 ("debugfs: Add access restriction option") > Signed-off-by: Kees Cook > --- > fs/debugfs/inode.c | 2 +- > 1 file

Re: [PATCH v7 06/11] scsi: ufshpb: Region inactivation in host mode

2021-04-05 Thread Can Guo
On 2021-04-06 14:16, Avri Altman wrote: On 2021-04-06 13:20, Avri Altman wrote: >> > -static void __ufshpb_evict_region(struct ufshpb_lu *hpb, >> > - struct ufshpb_region *rgn) >> > +static int __ufshpb_evict_region(struct ufshpb_lu *hpb, >> > +

Re: [PATCH] KVM: MMU: protect TDP MMU pages only down to required level

2021-04-05 Thread Keqian Zhu
Hi Paolo, I'm just going to fix this issue, and found that you have done this ;-) Please feel free to add: Reviewed-by: Keqian Zhu Thanks, Keqian On 2021/4/2 20:17, Paolo Bonzini wrote: > When using manual protection of dirty pages, it is not necessary > to protect nested page tables down to t

Re: [PATCH v6 1/4] dt-bindings: Introduce SoC sleep stats bindings

2021-04-05 Thread Maulik Shah
Hi, On 3/12/2021 10:45 PM, Bjorn Andersson wrote: On Thu 04 Feb 08:21 CST 2021, Maulik Shah wrote: From: Mahesh Sivasubramanian Add device binding documentation for Qualcomm Technologies, Inc. (QTI) SoC sleep stats driver. The driver is used for displaying SoC sleep statistic maintained by A

Re: [PATCH RFC v1 15/15] iommu/virtio: Update fault type and reason info for viommu fault

2021-04-05 Thread Vivek Kumar Gautam
On 3/29/21 9:53 PM, Jean-Philippe Brucker wrote: On Fri, Mar 12, 2021 at 06:39:05PM +0530, Vivek Kumar Gautam wrote: To complete the page request we would also need to send the response back to the host from virtio backend when handling page request. So the virtio command should also be accom

Re: [PATCH] integrity/ima: Add declarations to init_once void arguments.

2021-04-05 Thread Jiele Zhao
Hi Mimi, Please see if this is a useful suggestion. On 2021/4/6 10:38, James Morris wrote: On Tue, 6 Apr 2021, Jiele Zhao wrote: Ping. Mimi Zohar is the maintainer for this code. On 2021/3/23 9:33, Jiele Zhao wrote: init_once is a callback to kmem_cache_create. The parameter type of this

Re: [PATCH v11 08/13] KVM: X86: Introduce KVM_HC_PAGE_ENC_STATUS hypercall

2021-04-05 Thread Ashish Kalra
On Mon, Apr 05, 2021 at 01:42:42PM -0700, Steve Rutherford wrote: > On Mon, Apr 5, 2021 at 7:28 AM Ashish Kalra wrote: > > > > From: Ashish Kalra > > > > This hypercall is used by the SEV guest to notify a change in the page > > encryption status to the hypervisor. The hypercall should be invoked

Re: [PATCH 04/10] tty: tty_jobctrl: Fix coding style issues of block comments

2021-04-05 Thread Xiaofei Tan
Hi Jiri, On 2021/4/6 12:42, Jiri Slaby wrote: On 05. 04. 21, 5:34, Xiaofei Tan wrote: Fix coding style issues of block comments, reported by checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/tty/tty_jobctrl.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff

RE: [PATCH v7 06/11] scsi: ufshpb: Region inactivation in host mode

2021-04-05 Thread Avri Altman
> > On 2021-04-06 13:20, Avri Altman wrote: > >> > -static void __ufshpb_evict_region(struct ufshpb_lu *hpb, > >> > - struct ufshpb_region *rgn) > >> > +static int __ufshpb_evict_region(struct ufshpb_lu *hpb, > >> > + struct ufshpb_regio

Re: [PATCH net-next v5] net: x25: Queue received packets in the drivers instead of per-CPU queues

2021-04-05 Thread Martin Schiller
On 2021-04-05 21:34, Xie He wrote: Hi Martin, Could you ack? Thanks! Acked-by: Martin Schiller Just for the record: I'm certainly not always the fastest, but I don't work holidays or weekends. So you also need to have some patience.

Re: [PATCH] iio: buffer: use sysfs_attr_init() on allocated attrs

2021-04-05 Thread Marek Szyprowski
On 02.04.2021 19:42, Alexandru Ardelean wrote: > When dynamically allocating sysfs attributes, it's a good idea to call > sysfs_attr_init() on them to initialize lock_class_keys. > This change does that. > > The lock_class_keys are set when the CONFIG_DEBUG_LOCK_ALLOC symbol is > enabled. Which is

Re: [PATCH 1/2] scsi: ufs: Introduce hba performance monitor sysfs nodes

2021-04-05 Thread Can Guo
On 2021-04-06 13:58, Daejun Park wrote: Hi Can Guo, Hi Daejun, On 2021-04-06 12:11, Daejun Park wrote: Hi Can Guo, +static ssize_t monitor_enable_store(struct device *dev, +struct device_attribute *attr, +const char *bu

Re: [PATCH 5.10 096/126] KVM: x86/mmu: Use atomic ops to set SPTEs in TDP MMU map

2021-04-05 Thread Paolo Bonzini
On 05/04/21 10:54, Greg Kroah-Hartman wrote: From: Ben Gardon [ Upstream commit 9a77daacc87dee9fd63e31243f21894132ed8407 ] To prepare for handling page faults in parallel, change the TDP MMU page fault handler to use atomic operations to set SPTEs so that changes are not lost if multiple threa

RE: [PATCH v2 21/21] ipmi: kcs_bmc_aspeed: Optionally apply status address

2021-04-05 Thread ChiaWei Wang
Reviewed-by: Chia-Wei Wang > -Original Message- > From: Andrew Jeffery > Sent: Friday, March 19, 2021 2:28 PM > To: openipmi-develo...@lists.sourceforge.net; open...@lists.ozlabs.org; > miny...@acm.org > Subject: [PATCH v2 21/21] ipmi: kcs_bmc_aspeed: Optionally apply status > address >

RE: [PATCH v2 13/21] ipmi: kcs_bmc: Decouple the IPMI chardev from the core

2021-04-05 Thread ChiaWei Wang
I have tried this patch on Intel EGS CRB with AST2600 A1 as the BMC. Chiawei Tested-by: Chia-Wei Wang > -Original Message- > From: Andrew Jeffery > Sent: Friday, March 19, 2021 2:28 PM > To: openipmi-develo...@lists.sourceforge.net; open...@lists.ozlabs.org; > miny...@acm.org > Subject:

Re: [PATCH] drm/amdgpu: Fix a potential sdma invalid access

2021-04-05 Thread Qu Huang
Hi Christian, On 2021/4/3 16:49, Christian König wrote: Hi Qu, Am 03.04.21 um 07:08 schrieb Qu Huang: Hi Christian, On 2021/4/3 0:25, Christian König wrote: Hi Qu, Am 02.04.21 um 05:18 schrieb Qu Huang: Before dma_resv_lock(bo->base.resv, NULL) in amdgpu_bo_release_notify(), the bo->base.r

RE: [PATCH v2 06/21] ipmi: kcs_bmc_aspeed: Use of match data to extract KCS properties

2021-04-05 Thread ChiaWei Wang
I have tried this patch on Intel EGS CRB with AST2600 A1 as the BMC. Chiawei Tested-by: Chia-Wei Wang > -Original Message- > From: Andrew Jeffery > Sent: Friday, March 19, 2021 2:28 PM > To: openipmi-develo...@lists.sourceforge.net; open...@lists.ozlabs.org; > miny...@acm.org > > Unpac

Re: [PATCH 2/4] KVM: MIPS: rework flush_shadow_* callbacks into one that prepares the flush

2021-04-05 Thread Paolo Bonzini
On 06/04/21 03:36, Huacai Chen wrote: I tried the merge and it will be enough for Linus to remove arch/mips/kvm/trap_emul.c. So I will leave it as is, but next time I'd prefer KVM MIPS changes to go through either my tree or a common topic branch. Emmm, the TE removal series is done by Thomas,

RE: Re: [PATCH 1/2] scsi: ufs: Introduce hba performance monitor sysfs nodes

2021-04-05 Thread Daejun Park
Hi Can Guo, > >Hi Daejun, > >On 2021-04-06 12:11, Daejun Park wrote: >> Hi Can Guo, >> >>> +static ssize_t monitor_enable_store(struct device *dev, >>> +struct device_attribute *attr, >>> +const char *buf, size_t count) >>>

Re: [PATCH 2/2] clk: ti: get register address from device tree

2021-04-05 Thread Tero Kristo
On 02/04/2021 22:20, Dario Binacchi wrote: Until now, only the register offset was retrieved from the device tree to be added, during access, to a common base address for the clocks. If possible, we try to retrieve the physical address of the register directly from the device tree. The physical

[PATCH v1 2/3] drm/msm/disp/dpu1: add vsync and underrun irqs for INTF_5

2021-04-05 Thread Krishna Manikandan
INTF_5 is used by EDP panel in SC7280 target. Add vsync and underrun irqs needed by INTF_5 to dpu irq map. Signed-off-by: Krishna Manikandan --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/disp/dp

[PATCH v1 1/3] drm/msm/disp/dpu1: increase the range of interrupts in dpu_irq_map

2021-04-05 Thread Krishna Manikandan
Currently, each register in the dpu interrupt set is allowed to have a maximum of 32 interrupts. With the introduction of INTF_5_VSYNC and INTF_5_UNDERRUN irqs for EDP panel, the total number of interrupts under INTR_STATUS register in dpu_irq_map will exceed 32. Increase the range of each interrup

[PATCH v1 0/3] Add irq support to accommodate SC7280 target

2021-04-05 Thread Krishna Manikandan
The changes in this series adds all the irq related changes which are needed to support EDP interface coming on sc7280 target. Changes in this series: - Currently each interrupt register has a range of 32 indexes only. But with the introduction of VSYNC and UNDERRUN irq for INTF_

[PATCH v1 3/3] drm/msm/disp/dpu1: add flags to indicate obsolete irqs

2021-04-05 Thread Krishna Manikandan
Some irqs which are applicable for sdm845 target are no longer applicable for sc7180 and sc7280 targets. Add a flag to indicate the irqs which are obsolete for a particular target so that these irqs are skipped while checking for matching irq lookup index. Signed-off-by: Krishna Manikandan --- d

Re: [PATCH v7 06/11] scsi: ufshpb: Region inactivation in host mode

2021-04-05 Thread Can Guo
On 2021-04-06 13:20, Avri Altman wrote: > -static void __ufshpb_evict_region(struct ufshpb_lu *hpb, > - struct ufshpb_region *rgn) > +static int __ufshpb_evict_region(struct ufshpb_lu *hpb, > + struct ufshpb_region *rgn) > { > stru

Re: [PATCH rdma-next 01/10] RDMA: Add access flags to ib_alloc_mr() and ib_mr_pool_init()

2021-04-05 Thread Leon Romanovsky
On Tue, Apr 06, 2021 at 07:27:17AM +0200, Christoph Hellwig wrote: > On Tue, Apr 06, 2021 at 08:23:28AM +0300, Leon Romanovsky wrote: > > The same proposal (enable unconditionally) was raised during > > submission preparations and we decided to follow same pattern > > as other verbs objects which r

RE: [PATCH v6 2/2] ASoC: rt715:add micmute led state control supportspo...@protonmail.com

2021-04-05 Thread Yuan, Perry
Hi Jaroslav: > -Original Message- > From: Yuan, Perry > Sent: Sunday, April 4, 2021 4:32 PM > To: po...@protonmail.com; pierre-louis.boss...@linux.intel.com; > oder_ch...@realtek.com; pe...@perex.cz; ti...@suse.com; > hdego...@redhat.com; mgr...@linux.intel.com; Limonciello, Mario > Cc:

Re: [PATCH 1/2] scsi: ufs: Introduce hba performance monitor sysfs nodes

2021-04-05 Thread Can Guo
On 2021-04-06 13:37, Can Guo wrote: Hi Daejun, On 2021-04-06 12:11, Daejun Park wrote: Hi Can Guo, +static ssize_t monitor_enable_store(struct device *dev, +struct device_attribute *attr, +const char *buf, size_t count) +

Re: [PATCH 1/2] scsi: ufs: Introduce hba performance monitor sysfs nodes

2021-04-05 Thread Can Guo
Hi Daejun, On 2021-04-06 12:11, Daejun Park wrote: Hi Can Guo, +static ssize_t monitor_enable_store(struct device *dev, +struct device_attribute *attr, +const char *buf, size_t count) +{ +struct ufs_hba *hba = dev_

Re: [PATCH] Staging: rtl8192u: ieee80211: fixed a trailing statements of condition.

2021-04-05 Thread dev.dragon
On 4/5/21 1:15 PM, Greg KH wrote: > On Sun, Apr 04, 2021 at 04:26:14PM +0300, dev.dra...@bk.ru wrote: >> From: Dmitrii Wolf >> >> Fixed a coding style issue. > > Really? > >> >> Signed-off-by: Dmitrii Wolf >> --- >> drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c | 8 >> 1 f

Re: [PATCH] tty: use printk_safe context at tty_msg()

2021-04-05 Thread Tetsuo Handa
On 2021/04/06 13:51, Jiri Slaby wrote: > On 03. 04. 21, 6:14, Tetsuo Handa wrote: >> --- a/include/linux/tty.h >> +++ b/include/linux/tty.h >> @@ -14,6 +14,7 @@ >> #include >> #include >> #include >> +#include <../../kernel/printk/internal.h> > > Including printk's internal header in linu

LNX, non-synesthesia version - Re: Fair Pay can be generalized as a Non-Synesthesia project.

2021-04-05 Thread Ywe Cærlyn
And taking out the synesthesia of 'Linux' we get LNX Kernel, and instead fair pay orientation. Serenity, Ywe Cærlyn Den 03.04.2021 11:33, skrev Ywe Cærlyn: Summarizing my posts on LKML, Fair Pay can be generalized as a Non-Synesthesia project, compatible with the muslim Maruf not Munkar princ

[PATCH] power: supply: Fix missing IRQF_ONESHOT as only threaded handler

2021-04-05 Thread zhuguangqing83
From: Guangqing Zhu Coccinelle noticed: 1. drivers/power/supply/pm2301_charger.c:1089:7-27: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT 2. drivers/power/supply/tps65090-charger.c:303:8-33: ERROR: Threaded IRQ with no primary handler requested without IRQF_

Re: [PATCH rdma-next 01/10] RDMA: Add access flags to ib_alloc_mr() and ib_mr_pool_init()

2021-04-05 Thread Christoph Hellwig
On Tue, Apr 06, 2021 at 08:23:28AM +0300, Leon Romanovsky wrote: > The same proposal (enable unconditionally) was raised during > submission preparations and we decided to follow same pattern > as other verbs objects which receive flag parameter. A flags argument can be added when it actually is n

Re: [PATCH] usb: gadget: aspeed: Remove unnecessary version.h includes

2021-04-05 Thread Greg KH
On Tue, Apr 06, 2021 at 11:59:58AM +0800, Jiapeng Chong wrote: > "make versioncheck" shows: > > ./drivers/usb/gadget/udc/aspeed-vhub/hub.c: 33 linux/version.h not > needed. Then you need to fix the tool, and always test-build patches before you send them out, as this is obviously wrong :(

Re: [PATCH rdma-next 01/10] RDMA: Add access flags to ib_alloc_mr() and ib_mr_pool_init()

2021-04-05 Thread Leon Romanovsky
On Mon, Apr 05, 2021 at 03:46:18PM +0200, Christoph Hellwig wrote: > On Mon, Apr 05, 2021 at 08:23:55AM +0300, Leon Romanovsky wrote: > > From: Avihai Horon > > > > Add access flags parameter to ib_alloc_mr() and to ib_mr_pool_init(), > > and refactor relevant code. This parameter is used to pass

Re: [PATCH rdma-next 01/10] RDMA: Add access flags to ib_alloc_mr() and ib_mr_pool_init()

2021-04-05 Thread Leon Romanovsky
On Mon, Apr 05, 2021 at 08:27:16AM -0700, Bart Van Assche wrote: > On 4/4/21 10:23 PM, Leon Romanovsky wrote: > > diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h > > index bed4cfe50554..59138174affa 100644 > > --- a/include/rdma/ib_verbs.h > > +++ b/include/rdma/ib_verbs.h > > @@ -24

RE: [PATCH v7 06/11] scsi: ufshpb: Region inactivation in host mode

2021-04-05 Thread Avri Altman
> > -static void __ufshpb_evict_region(struct ufshpb_lu *hpb, > > - struct ufshpb_region *rgn) > > +static int __ufshpb_evict_region(struct ufshpb_lu *hpb, > > + struct ufshpb_region *rgn) > > { > > struct victim_select_info *lru_inf

linux-next: manual merge of the imx-drm tree with the drm tree

2021-04-05 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the imx-drm tree got a conflict in: drivers/gpu/drm/imx/ipuv3-plane.c between commits: ba5c1649465d ("drm: Rename plane atomic_check state names") 41016fe1028e ("drm: Rename plane->state variables in atomic update and disable") from the drm tree and c

RE: [PATCH bpf-next 2/3] libbpf: selftests: refactor 'BPF_PERCPU_TYPE()' and 'bpf_percpu()' macros

2021-04-05 Thread John Fastabend
Pedro Tammela wrote: > This macro was refactored out of the bpf selftests. > > Since percpu values are rounded up to '8' in the kernel, a careless > user in userspace might encounter unexpected values when parsing the > output of the batched operations. > > Now that both array and hash maps have

Re: [PATCH v7] USB: serial: cp210x: Add support for GPIOs on CP2108

2021-04-05 Thread Greg KH
On Tue, Apr 06, 2021 at 11:02:38AM +0700, Pho Tran wrote: > From: Pho Tran > > Similar to other CP210x devices, GPIO interfaces (gpiochip) should be > supported for CP2108. > > CP2108 has 4 serial interfaces but only 1 set of GPIO pins are shared > to all of those interfaces. So, just need to in

Re: [PATCH v4 01/16] perf/x86/intel: Add x86_pmu.pebs_vmx for Ice Lake Servers

2021-04-05 Thread Xu, Like
Hi Xiangdong, On 2021/4/6 11:24, Liuxiangdong (Aven, Cloud Infrastructure Service Product Dept.) wrote: Hi,like. Some questions about this new pebs patches set: https://lore.kernel.org/kvm/20210329054137.120994-2-like...@linux.intel.com/ The new hardware facility supporting guest PEBS is only

Re: [PATCH rdma-next 00/10] Enable relaxed ordering for ULPs

2021-04-05 Thread Leon Romanovsky
On Mon, Apr 05, 2021 at 11:42:31PM +, Chuck Lever III wrote: > > > > On Apr 5, 2021, at 4:07 PM, Jason Gunthorpe wrote: > > > > On Mon, Apr 05, 2021 at 03:41:15PM +0200, Christoph Hellwig wrote: > >> On Mon, Apr 05, 2021 at 08:23:54AM +0300, Leon Romanovsky wrote: > >>> From: Leon Romanovsk

[PATCH v1 3/4] drm/msm/disp/dpu1: add support to program fetch active in ctl path

2021-04-05 Thread Krishna Manikandan
A new register called CTL_FETCH_ACTIVE is introduced in SC7280 family which is used to inform the HW about the pipes which are active in the current ctl path. This change adds support to program this register based on the active pipes in the current composition. Signed-off-by: Krishna Manikandan

[PATCH v1 1/4] drm/msm/disp/dpu1: add support for display for SC7280 target

2021-04-05 Thread Krishna Manikandan
Add required display hw catalog changes for SC7280 target. Signed-off-by: Krishna Manikandan --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 176 ++--- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 8 +- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c| 4 +- drive

[PATCH v1 2/4] drm/msm/disp/dpu1: add intf offsets for SC7280 target

2021-04-05 Thread Krishna Manikandan
Interface block offsets are different for SC7280 family when compared to existing targets. These offset values are used to access the interface irq registers. This change adds proper interface offsets for SC7280 target. Signed-off-by: Krishna Manikandan --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_i

[PATCH v1 4/4] drm/msm/disp/dpu1: enable DATA_HCTL_EN for sc7280 target

2021-04-05 Thread Krishna Manikandan
The reset value of INTF_CONFIG2 register is changed for SC7280 family. Changes are added to program this register correctly based on the target. DATA_HCTL_EN in INTF_CONFIG2 register allows data to be transferred at a different rate than video timing. When this is set, the number of data per line

[PATCH v1 0/4] Add display support for SC7280 target

2021-04-05 Thread Krishna Manikandan
The changes in this series adds all the required support for display driver for SC7280 target. In addition to the basic catalog changes, changes are added to accommodate new registers for SC7280 target. SC7280 target comes under next generation targets. The register differences in SC7280 when comp

Re: [PATCH rdma-next 00/10] Enable relaxed ordering for ULPs

2021-04-05 Thread Leon Romanovsky
On Tue, Apr 06, 2021 at 10:37:38AM +0800, Honggang LI wrote: > On Mon, Apr 05, 2021 at 08:23:54AM +0300, Leon Romanovsky wrote: > > From: Leon Romanovsky > > > > From Avihai, > > > > Relaxed Ordering is a PCIe mechanism that relaxes the strict ordering > > imposed on PCI transactions, and thus,

Re: [PATCH 2/2] fs/epoll: restore waking from ep_done_scan()

2021-04-05 Thread Andrew Morton
On Mon, 5 Apr 2021 20:22:26 -0700 Davidlohr Bueso wrote: > On Mon, 05 Apr 2021, Andrew Morton wrote: > > >Tricky. 339ddb53d373 was merged in December 2019. So do we backport > >this fix? Could any userspace code be depending upon the > >post-339ddb53d373 behavior? > > As with previous troubl

Re: [PATCH linux-next v2 1/1] phy: Sparx5 Eth SerDes: Use direct register operations

2021-04-05 Thread Vinod Koul
On 29-03-21, 16:13, Steen Hegelund wrote: > Use direct register operations instead of a table of register > information to lower the stack usage. Applied, thanks -- ~Vinod

Re: [PATCH v2] phy: hisilicon: Use the correct HiSilicon copyright

2021-04-05 Thread Vinod Koul
On 01-04-21, 20:02, Hao Fang wrote: > s/Hisilicon/HiSilicon/g. > It should use capital S, according to the official website. Applied, thanks -- ~Vinod

Re: [PATCH -next] phy: marvell: phy-mvebu-cp11i-utmi needs USB_COMMON

2021-04-05 Thread Vinod Koul
On 01-04-21, 14:00, Randy Dunlap wrote: > When USB and USB_COMMON are not enabled, phy-mvebu-cp110-utmi > suffers a build error due to a missing interface that is provided > by CONFIG_USB_COMMON, so make the driver depend on USB_COMMON. > > ld: drivers/phy/marvell/phy-mvebu-cp110-utmi.o: in functi

[PATCH] parisc: avoid a warning on u8 cast for cmpxchg on u8 pointers

2021-04-05 Thread Gao Xiang
From: Gao Xiang commit b344d6a83d01 ("parisc: add support for cmpxchg on u8 pointers") can generate a sparse warningi ("cast truncates bits from constant value"), which has been reported several times [1] [2] [3]. The original code worked as expected, but anyway, let silence such sparse warning

[ACPI] 1a1c130ab7: BUG:kernel_NULL_pointer_dereference,address

2021-04-05 Thread kernel test robot
Greeting, FYI, we noticed the following commit (built with gcc-9): commit: 1a1c130ab7575498eed5bcf7220037ae09cd1f8a ("ACPI: tables: x86: Reserve memory occupied by ACPI tables") https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master in testcase: trinity version: trinity-i386-

Re: [PATCH v2] soundwire: intel_init: test link->cdns

2021-04-05 Thread Vinod Koul
On 06-04-21, 09:01, Bard Liao wrote: > intel_link_probe() could return error and dev_get_drvdata() will return > null in such case. So we have to test link->cdns after > link->cdns = dev_get_drvdata(&ldev->auxdev.dev); > Otherwise, we will meet the "kernel NULL pointer dereference" error. Applied,

Re: [PATCH] soundwire: qcom: handle return correctly in qcom_swrm_transport_params

2021-04-05 Thread Vinod Koul
On 01-04-21, 10:15, Srinivas Kandagatla wrote: > Looks like return from reg_write is set but not checked. > Fix this by adding error return path. Applied, thanks -- ~Vinod

ERROR: modpost: "sba_list" [drivers/char/agp/parisc-agp.ko] undefined!

2021-04-05 Thread kernel test robot
Hi Helge, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0a50438c84363bd37fe18fe432888ae9a074dcab commit: 00e35f2b0e8acb88d4e1aa96ff0490e3bfe46580 parisc: Enable -mlong-calls gcc option by default when !CONFIG_MO

Re: [PATCH v2] soundwire: qcom: wait for fifo space to be available before read/write

2021-04-05 Thread Vinod Koul
On 01-04-21, 10:00, Srinivas Kandagatla wrote: > If we write registers very fast we can endup in a situation where some > of the writes will be dropped without any notice. > > So wait for the fifo space to be available before reading/writing the > soundwire registers. Applied, thanks -- ~Vinod

Re: [PATCH 00/11] treewide: address gcc-11 -Wstringop-overread warnings

2021-04-05 Thread Martin K. Petersen
On Mon, 22 Mar 2021 17:02:38 +0100, Arnd Bergmann wrote: > The coming gcc release introduces a new warning for string operations > reading beyond the end of a fixed-length object. After testing > randconfig kernels for a while, think I have patches for any such > warnings that came up on x86, arm

Re: [PATCH][next] scsi: mptlan: Replace one-element array with flexible-array member

2021-04-05 Thread Martin K. Petersen
On Wed, 24 Mar 2021 18:33:44 -0500, Gustavo A. R. Silva wrote: > There is a regular need in the kernel to provide a way to declare having > a dynamically sized set of trailing elements in a structure. Kernel code > should always use “flexible array members”[1] for these cases. The older > style of

Re: [PATCH] soundwire: qcom: cleanup internal port config indexing

2021-04-05 Thread Vinod Koul
On 01-04-21, 10:24, Srinivas Kandagatla wrote: > Internally used portconfig array for storing port bandwidth > params starts from offset zero. However port zero is not really > used and we also copy the bus parameters to offset zero. > So basically we endup with a code which has to subtract 1 from

Re: [PATCH] scsi: fcoe: fix mismatched fcoe_wwn_from_mac declaration

2021-04-05 Thread Martin K. Petersen
On Mon, 22 Mar 2021 17:46:59 +0100, Arnd Bergmann wrote: > An old cleanup changed the array size from MAX_ADDR_LEN to > unspecified in the declaration, but now gcc-11 warns about this: > > drivers/scsi/fcoe/fcoe_ctlr.c:1972:37: error: argument 1 of type ‘unsigned > char[32]’ with mismatched boun

Re: [PATCH 1/2] aic94xx: avoid -Wempty-body warning

2021-04-05 Thread Martin K. Petersen
On Mon, 22 Mar 2021 11:25:43 +0100, Arnd Bergmann wrote: > Building with 'make W=1' shows a harmless -Wempty-body warning: > > drivers/scsi/aic94xx/aic94xx_init.c: In function 'asd_free_queues': > drivers/scsi/aic94xx/aic94xx_init.c:858:62: error: suggest braces around > empty body in an 'if' st

Re: [PATCH] mvsas: avoid -Wempty-body warning

2021-04-05 Thread Martin K. Petersen
On Mon, 22 Mar 2021 11:33:09 +0100, Arnd Bergmann wrote: > Building with 'make W=1' shows a few harmless -Wempty-body warning for > the mvsas driver: > > drivers/scsi/mvsas/mv_94xx.c: In function 'mvs_94xx_phy_reset': > drivers/scsi/mvsas/mv_94xx.c:278:63: error: suggest braces around empty body

Re: [PATCH][next] SCSI: fusion: mpi_ioc.h: Replace one-element array with flexible-array member

2021-04-05 Thread Martin K. Petersen
On Wed, 24 Mar 2021 18:00:36 -0500, Gustavo A. R. Silva wrote: > There is a regular need in the kernel to provide a way to declare having > a dynamically sized set of trailing elements in a structure. Kernel code > should always use “flexible array members”[1] for these cases. The older > style of

Re: [PATCH v7 06/11] scsi: ufshpb: Region inactivation in host mode

2021-04-05 Thread Can Guo
On 2021-03-31 15:39, Avri Altman wrote: In host mode, the host is expected to send HPB-WRITE-BUFFER with buffer-id = 0x1 when it inactivates a region. Use the map-requests pool as there is no point in assigning a designated cache for umap-requests. Signed-off-by: Avri Altman --- drivers/scsi/

Re: [PATCH -next] serial: 8250: Make symbol 'brcmuart_debugfs_root' static

2021-04-05 Thread Jiri Slaby
On 01. 04. 21, 9:49, Zucheng Zheng wrote: symbol 'brcmuart_debugfs_root' is not used outside of 8250_bcm7271.c, so this commit marks it static. Signed-off-by: Zucheng Zheng Reviewed-by: Jiri Slaby --- drivers/tty/serial/8250/8250_bcm7271.c | 2 +- 1 file changed, 1 insertion(+), 1 delet

Re: [PATCH] tty: use printk_safe context at tty_msg()

2021-04-05 Thread Jiri Slaby
On 03. 04. 21, 6:14, Tetsuo Handa wrote: syzbot is reporting circular locking dependency due to calling printk() with port lock held [1]. When this problem was reported, we worried whether printk_safe context will remain available in future kernels [2], and then this problem was forgotten. But in

[PATCH -next v2 1/2] mm/debug_vm_pgtable: Move {pmd/pud}_huge_tests out of CONFIG_TRANSPARENT_HUGEPAGE

2021-04-05 Thread Shixin Liu
v1->v2: Modified the commit message. The functions {pmd/pud}_set_huge and {pmd/pud}_clear_huge ars not dependent on THP. Signed-off-by: Shixin Liu --- mm/debug_vm_pgtable.c | 91 +++ 1 file changed, 39 insertions(+), 52 deletions(-) diff --git a/mm/debu

[PATCH -next v2 2/2] mm/debug_vm_pgtable: Remove redundant pfn_{pmd/pte}() and fix one comment mistake

2021-04-05 Thread Shixin Liu
v1->v2: Remove redundant pfn_pte() and fold two patch to one. Remove redundant pfn_{pmd/pte}() and fix one comment mistake. Signed-off-by: Shixin Liu --- mm/debug_vm_pgtable.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/mm/debug_vm_pgtable.c b/mm/debug_vm_pgt

Re: [PATCH net-next v4 0/4] usbnet: speed reporting for devices without MDIO

2021-04-05 Thread Grant Grundler
On Tue, Apr 6, 2021 at 12:09 AM Andrew Lunn wrote: > > On Mon, Apr 05, 2021 at 04:13:40PM -0700, Grant Grundler wrote: > > This series introduces support for USB network devices that report > > speed as a part of their protocol, not emulating an MII to be accessed > > over MDIO. > > > > v2: rebase

Re: [PATCH 04/10] tty: tty_jobctrl: Fix coding style issues of block comments

2021-04-05 Thread Jiri Slaby
On 05. 04. 21, 5:34, Xiaofei Tan wrote: Fix coding style issues of block comments, reported by checkpatch.pl. Signed-off-by: Xiaofei Tan --- drivers/tty/tty_jobctrl.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/drivers/tty/tty_jobctrl.c b/drivers/tty

RE: [PATCH 1/2] scsi: ufs: Introduce hba performance monitor sysfs nodes

2021-04-05 Thread Daejun Park
Hi Can Guo, > +static ssize_t monitor_enable_store(struct device *dev, > +struct device_attribute *attr, > +const char *buf, size_t count) > +{ > +struct ufs_hba *hba = dev_get_drvdata(dev); > +unsigned long va

Re: [PATCH V4 XRT Alveo 02/20] fpga: xrt: driver metadata helper functions

2021-04-05 Thread Lizhi Hou
Hi Tom, On 03/28/2021 08:30 AM, Tom Rix wrote: Do not reorder function definitions, this makes comparing changes from the previous patchset difficult. A general issue with returning consistent error codes. There are several cases where fdt_* code are not translated. Sure. Will fix. On 3/

[PATCH] pcnet32: Use pci_resource_len to validate PCI resource

2021-04-05 Thread Guenter Roeck
pci_resource_start() is not a good indicator to determine if a PCI resource exists or not, since the resource may start at address 0. This is seen when trying to instantiate the driver in qemu for riscv32 or riscv64. pci :00:01.0: reg 0x10: [io 0x-0x001f] pci :00:01.0: reg 0x14: [mem

[PATCH v2] MIPS: add support for buggy MT7621S core detection

2021-04-05 Thread Ilya Lipnitskiy
Most MT7621 SoCs have 2 cores, which is detected and supported properly by CPS. Unfortunately, MT7621 SoC has a less common S variant with only one core. On MT7621S, GCR_CONFIG still reports 2 cores, which leads to hangs when starting SMP. CPULAUNCH registers can be used in that case to detect the

arch/parisc/include/asm/cmpxchg.h:75:52: sparse: sparse: cast truncates bits from constant value (5f0ecafe becomes fe)

2021-04-05 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0a50438c84363bd37fe18fe432888ae9a074dcab commit: b344d6a83d01c52fddbefa6b3b4764da5b1022a0 parisc: add support for cmpxchg on u8 pointers date: 9 months ago config: parisc-randconfig-s031-20210406 (attached

[PATCH 4/4] x86/sched: Enable checks of the state of SMT siblings in load balancing

2021-04-05 Thread Ricardo Neri
ITMT relies on asymmetric packing of tasks to ensure CPUs are populated in priority order. When balancing load, the scheduler compares scheduling groups in pairs, and compares only the priority of the CPUs of highest priority in the group. This may result on CPUs with medium priority being overlook

[PATCH 2/4] sched/fair: Introduce arch_sched_asym_prefer_early()

2021-04-05 Thread Ricardo Neri
Introduce arch_sched_asym_prefer_early() so that architectures with SMT can delay the decision to label a candidate busiest group as group_asym_packing. When using asymmetric packing, high priority idle CPUs pull tasks from scheduling groups with low priority CPUs. The decision on using asymmetric

  1   2   3   4   5   6   7   8   9   10   >