[PATCH] scsi: ufs: Remove unnecessary null checks in ufshcd_find_max_sup_active_icc_level()

2021-03-08 Thread Yue Hu
From: Yue Hu Since vcc/vccq/vccq2 have already been null checked before using. Signed-off-by: Yue Hu --- drivers/scsi/ufs/ufshcd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 7b3267e..f941bc3 100644 ---

Re: [PATCH 3/3] power: supply: max8997_charger: Switch to new binding

2021-03-08 Thread Timon Baetz
On Mon, 1 Feb 2021 19:03:35 +0100, Krzysztof Kozlowski wrote: > On Mon, Feb 01, 2021 at 09:26:42AM +, Timon Baetz wrote: > > On Sun, 31 Jan 2021 18:28:40 +0100, Krzysztof Kozlowski wrote: > > > On Sat, Jan 30, 2021 at 05:30:14PM +, Timon Baetz wrote: > > > > Get regulator from parent

Re: [PATCH] x86/perf: Fix guest_get_msrs static call if there is no PMU

2021-03-08 Thread Peter Zijlstra
On Mon, Mar 08, 2021 at 12:40:44PM -0800, Sean Christopherson wrote: > On Mon, Mar 08, 2021, Peter Zijlstra wrote: > > Given the one user in atomic_switch_perf_msrs() that should work because > > it doesn't seem to care about nr_msrs when !msrs. > > Uh, that commit quite cleary says: D0h! I got

Re: [PATCH v2 3/7] powerpc: convert config files to generic cmdline

2021-03-08 Thread Christophe Leroy
Le 09/03/2021 à 01:02, Daniel Walker a écrit : This is a scripted mass convert of the config files to use the new generic cmdline. There is a bit of a trim effect here. It would seems that some of the config haven't been trimmed in a while. If you do that in a separate patch, you loose

[PATCH] selftests/timers: remove unneeded semicolon

2021-03-08 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./tools/testing/selftests/timers/nanosleep.c:75:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- tools/testing/selftests/timers/nanosleep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH v4 4/5] perf stat: Enable iostat mode for x86 platforms

2021-03-08 Thread liuqi (BA)
Hi Alexander, On 2021/2/3 21:58, Alexander Antonov wrote: 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

Re: [PATCH v2 1/2] mm: disable LRU pagevec during the migration temporarily

2021-03-08 Thread kernel test robot
/linux.git 144c79ef33536b4ecb4951e07dbc1f2b7fa99d32 config: arm64-randconfig-r023-20210308 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 820f508b08d7c94b2dd7847e9710d2bc36d3dd45) reproduce (this is a W=1 build): wget https

Re: [PATCH v4 2/3] dt-bindings: mtd: Add a property to declare secure regions in NAND chips

2021-03-08 Thread Boris Brezillon
On Mon, 8 Mar 2021 19:01:34 +0530 Manivannan Sadhasivam wrote: > On Mon, Mar 08, 2021 at 10:10:59AM +0100, Boris Brezillon wrote: > > On Mon, 8 Mar 2021 11:14:46 +0530 > > Manivannan Sadhasivam wrote: > > > > > On a typical end product, a vendor may choose to secure some regions in > > >

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

2021-03-08 Thread Christophe Leroy
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 Ruslichenko Signed-off-by: Ruslan Bilovol Signed-off-by: Daniel Walker --- arch/powerpc/Kconfig| 37

Re: [RFC PATCH] sched: Simplify leaf_cfs_rq_list maintenance

2021-03-08 Thread Dietmar Eggemann
Hi Michal, On 25/02/2021 17:27, Michal Koutný wrote: > leaf_cfs_rq_list should contain cfs_rqs that have runnable entities in > them. When we're operating under a throttled hierarchy we always update > the leaf_cfs_rq_list in order no to break list_add_leaf_cfs_rq invariant > of adding complete

Re: [PATCH v2] net: mac802154: Fix general protection fault

2021-03-08 Thread Stefan Schmidt
Hello. On 04.03.21 16:21, Pavel Skripkin wrote: syzbot found general protection fault in crypto_destroy_tfm()[1]. It was caused by wrong clean up loop in llsec_key_alloc(). If one of the tfm array members is in IS_ERR() range it will cause general protection fault in clean up function [1].

Re: [PATCH 6/6] mm: Drop redundant HAVE_ARCH_TRANSPARENT_HUGEPAGE

2021-03-08 Thread Arnd Bergmann
On Mon, Mar 8, 2021 at 7:41 AM Anshuman Khandual wrote: > > HAVE_ARCH_TRANSPARENT_HUGEPAGE has duplicate definitions on platforms that > subscribe it. Drop these reduntant definitions and instead just select it > on applicable platforms. > > Cc: Vineet Gupta > Cc: Russell King > Cc: Arnd

Re: [syzbot] WARNING: ODEBUG bug in net_dm_cmd_trace

2021-03-08 Thread Ido Schimmel
On Sun, Mar 07, 2021 at 06:30:27PM -0800, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit:d310ec03 Merge tag 'perf-core-2021-02-17' of git://git.ker.. > git tree: net-next > console output: https://syzkaller.appspot.com/x/log.txt?x=108adb32d0 >

Re: [PATCH v2 1/3] mm: Fix dropped memcg from mem cgroup soft limit tree

2021-03-08 Thread Michal Hocko
On Fri 05-03-21 11:07:59, Tim Chen wrote: > > > On 3/5/21 1:11 AM, Michal Hocko wrote: > > On Thu 04-03-21 09:35:08, Tim Chen wrote: > >> > >> > >> On 2/18/21 11:13 AM, Michal Hocko wrote: > >> > >>> > >>> Fixes: 4e41695356fb ("memory controller: soft limit reclaim on > >>> contention") > >>>

[tip: timers/urgent] hrtimer: Update softirq_expires_next correctly after __hrtimer_get_next_event()

2021-03-08 Thread tip-bot2 for Anna-Maria Behnsen
The following commit has been merged into the timers/urgent branch of tip: Commit-ID: 46eb1701c046cc18c032fa68f3c8ccbf24483ee4 Gitweb: https://git.kernel.org/tip/46eb1701c046cc18c032fa68f3c8ccbf24483ee4 Author:Anna-Maria Behnsen AuthorDate:Tue, 23 Feb 2021 17:02:40 +01:00

[RFC PATCH v2 5/8] platform/x86: gpd pocket fan: Clean-up by using managed work init

2021-03-08 Thread Matti Vaittinen
Few drivers implement remove call-back only for ensuring a delayed work gets cancelled prior driver removal. Clean-up these by switching to use devm_delayed_work_autocancel() instead. This change is compile-tested only. All testing is appreciated. Signed-off-by: Matti Vaittinen ---

[RFC PATCH v2 4/8] hwmon: raspberry-pi: Clean-up few drivers by using managed work init

2021-03-08 Thread Matti Vaittinen
Few drivers implement remove call-back only for ensuring a delayed work gets cancelled prior driver removal. Clean-up these by switching to use devm_delayed_work_autocancel() instead. This change is compile-tested only. All testing is appreciated. Signed-off-by: Matti Vaittinen ---

[RFC PATCH v2 8/8] watchdog: retu_wdt: Clean-up by using managed work init

2021-03-08 Thread Matti Vaittinen
Few drivers implement remove call-back only for ensuring a delayed work gets cancelled prior driver removal. Clean-up these by switching to use devm_delayed_work_autocancel() instead. This change is compile-tested only. All testing is appreciated. Signed-off-by: Matti Vaittinen ---

[RFC PATCH v2 7/8] regulator: qcom_spmi-regulator: Clean-up by using managed work init

2021-03-08 Thread Matti Vaittinen
Few drivers implement remove call-back only for ensuring a delayed work gets cancelled prior driver removal. Clean-up these by switching to use devm_delayed_work_autocancel() instead. Additionally, this helps avoiding mixing devm and manual resource management and cleans up a (theoretical?) bug

[RFC PATCH v2 6/8] power: supply: Clean-up few drivers by using managed work init

2021-03-08 Thread Matti Vaittinen
Few drivers implement remove call-back only for ensuring a delayed work gets cancelled prior driver removal. Clean-up these by switching to use devm_delayed_work_autocancel() instead. This change is compile-tested only. All testing is appreciated. Signed-off-by: Matti Vaittinen ---

Re: [RFC 1/1] s390/pci: expose a PCI device's UID as its index

2021-03-08 Thread Viktor Mihajlovski
On 3/8/21 8:02 AM, Niklas Schnelle wrote: On 3/7/21 9:46 PM, Krzysztof Wilczyński wrote: Hi Niklas, [...] +static ssize_t index_show(struct device *dev, + struct device_attribute *attr, char *buf) +{ + struct zpci_dev *zdev = to_zpci(to_pci_dev(dev)); +

Re: [PATCH] x86/perf: Fix guest_get_msrs static call if there is no PMU

2021-03-08 Thread Peter Zijlstra
On Mon, Mar 08, 2021 at 10:25:59AM +0800, Xu, Like wrote: > On 2021/3/6 6:33, Sean Christopherson wrote: > > Handle a NULL x86_pmu.guest_get_msrs at invocation instead of patching > > in perf_guest_get_msrs_nop() during setup. If there is no PMU, setup > > "If there is no PMU" ... Then you

[PATCH mips/linux.git 4/5] firmware: bcm47xx_nvram: look for NVRAM with for instead of while

2021-03-08 Thread Rafał Miłecki
From: Rafał Miłecki This loop requires variable initialization, stop condition and post iteration increment. It's pretty much a for loop definition. Signed-off-by: Rafał Miłecki --- drivers/firmware/broadcom/bcm47xx_nvram.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

[PATCH mips/linux.git 3/5] firmware: bcm47xx_nvram: extract code copying NVRAM

2021-03-08 Thread Rafał Miłecki
From: Rafał Miłecki This simplifies function finding NVRAM. It doesn't directly deal with NVRAM structure anymore and is a bit smaller. Signed-off-by: Rafał Miłecki --- drivers/firmware/broadcom/bcm47xx_nvram.c | 43 +-- 1 file changed, 25 insertions(+), 18 deletions(-)

[PATCH mips/linux.git 2/5] firmware: bcm47xx_nvram: add helper checking for NVRAM

2021-03-08 Thread Rafał Miłecki
From: Rafał Miłecki This avoids duplicating code doing casting and checking for NVRAM magic. Signed-off-by: Rafał Miłecki --- drivers/firmware/broadcom/bcm47xx_nvram.c | 30 ++- 1 file changed, 18 insertions(+), 12 deletions(-) diff --git

[PATCH mips/linux.git 5/5] firmware: bcm47xx_nvram: inline code checking NVRAM size

2021-03-08 Thread Rafał Miłecki
From: Rafał Miłecki Separated function was not improving code quality much (or at all). Moreover it expected possible flash end address as argument and it was returning NVRAM size. The new code always operates on offsets which means less logic and less calculations. Signed-off-by: Rafał

[PATCH] net: ieee802154: fix error return code of dgram_sendmsg()

2021-03-08 Thread Jia-Ju Bai
When sock_alloc_send_skb() returns NULL to skb, no error return code of dgram_sendmsg() is assigned. To fix this bug, err is assigned with -ENOMEM in this case. Fixes: 78f821b64826 ("ieee802154: socket: put handling into one file") Reported-by: TOTE Robot Signed-off-by: Jia-Ju Bai ---

Re: [PATCH v2 3/3] dt-bindings: mtd: Document use of nvmem-partitions compatible

2021-03-08 Thread Rafał Miłecki
On 16.02.2021 22:26, Ansuel Smith wrote: Document nvmem-partitions compatible used to treat mtd partitions as a nvmem provider. I'm just wondering if "nvmem-partitions" is accurate enough. Partitions bit sounds a bit ambiguous in the mtd context. What do you think about "mtd-nvmem-cells" or

Re: [PATCH v4 08/14] dt-bindings: display: bridge: Add i.MX8qxp pixel link to DPI binding

2021-03-08 Thread Liu Ying
Hi Rob, On Fri, 2021-03-05 at 16:42 -0600, Rob Herring wrote: > On Thu, Feb 18, 2021 at 11:41:49AM +0800, Liu Ying wrote: > > This patch adds bindings for i.MX8qxp pixel link to DPI(PXL2DPI). > > > > Signed-off-by: Liu Ying > > --- > > v3->v4: > > * Add 'fsl,sc-resource' property. (Rob) > > >

Re: [PATCH 1/2] lib/vsprintf: do not show no_hash_pointers message multiple times

2021-03-08 Thread Petr Mladek
On Fri 2021-03-05 20:42:05, Marco Elver wrote: > Do not show no_hash_pointers message multiple times if the option was > passed more than once (e.g. via generated command line). > > Signed-off-by: Marco Elver Reviewed-by: Petr Mladek Best Regards, Petr

RE: "struct perf_sample_data" alignment

2021-03-08 Thread David Laight
... > What I remember is that since perf_sample_data is fairly large, > unconditionally initializing the whole thing is *slow* (and > -fauto-var-init=zero will hurt here). That will hurt everywhere. I can also imagine it hiding bugs and making people shrink on-stack arrays to the point where they

Re: [PATCH] HID: plantronics: Workaround for double volume key presses

2021-03-08 Thread Jiri Kosina
On Sun, 7 Feb 2021, Maxim Mikityanskiy wrote: > Plantronics Blackwire 3220 Series (047f:c056) sends HID reports twice > for each volume key press. This patch adds a quirk to hid-plantronics > for this product ID, which will ignore the second volume key press if > it happens within 5 ms from the

Re: [PATCH v1 1/1] scripts/decodecode: Decode 32-bit code correctly on x86_64

2021-03-08 Thread Borislav Petkov
On Mon, Mar 08, 2021 at 11:59:34AM +0200, Andy Shevchenko wrote: > It works, but... The question here is why the script behaviour depends > so much on the architecture in question (by environment). ARM stuff is > using traditional ARCH (and that's what I have expected to work), > while x86 has a

[PATCH v18 1/9] mm: memory_hotplug: factor out bootmem core functions to bootmem_info.c

2021-03-08 Thread Muchun Song
Move bootmem info registration common API to individual bootmem_info.c. And we will use {get,put}_page_bootmem() to initialize the page for the vmemmap pages or free the vmemmap pages to buddy in the later patch. So move them out of CONFIG_MEMORY_HOTPLUG_SPARSE. This is just code movement without

[PATCH v18 3/9] mm: hugetlb: free the vmemmap pages associated with each HugeTLB page

2021-03-08 Thread Muchun Song
Every HugeTLB has more than one struct page structure. We __know__ that we only use the first 4(HUGETLB_CGROUP_MIN_ORDER) struct page structures to store metadata associated with each HugeTLB. There are a lot of struct page structures associated with each HugeTLB page. For tail pages, the value

[PATCH v18 2/9] mm: hugetlb: introduce a new config HUGETLB_PAGE_FREE_VMEMMAP

2021-03-08 Thread Muchun Song
The option HUGETLB_PAGE_FREE_VMEMMAP allows for the freeing of some vmemmap pages associated with pre-allocated HugeTLB pages. For example, on X86_64 6 vmemmap pages of size 4KB each can be saved for each 2MB HugeTLB page. 4094 vmemmap pages of size 4KB each can be saved for each 1GB HugeTLB page.

[PATCH v18 5/9] mm: hugetlb: set the PageHWPoison to the raw error page

2021-03-08 Thread Muchun Song
Because we reuse the first tail vmemmap page frame and remap it with read-only, we cannot set the PageHWPosion on some tail pages. So we can use the head[4].private (There are at least 128 struct page structures associated with the optimized HugeTLB page, so using head[4].private is safe) to

[PATCH v18 4/9] mm: hugetlb: alloc the vmemmap pages associated with each HugeTLB page

2021-03-08 Thread Muchun Song
When we free a HugeTLB page to the buddy allocator, we need to allocate the vmemmap pages associated with it. However, we may not be able to allocate the vmemmap pages when the system is under memory pressure. In this case, we just refuse to free the HugeTLB page. This changes behavior in some

[PATCH v18 6/9] mm: hugetlb: add a kernel parameter hugetlb_free_vmemmap

2021-03-08 Thread Muchun Song
Add a kernel parameter hugetlb_free_vmemmap to enable the feature of freeing unused vmemmap pages associated with each hugetlb page on boot. We disables PMD mapping of vmemmap pages for x86-64 arch when this feature is enabled. Because vmemmap_remap_free() depends on vmemmap being base page

[PATCH v18 0/9] Free some vmemmap pages of HugeTLB page

2021-03-08 Thread Muchun Song
Hi everyone, This patch series will free some vmemmap pages(struct page structures) associated with each HugeTLB page when preallocated to save memory. In order to reduce the difficulty of the first version of code review. >From this version, we disable PMD/huge page mapping of vmemmap if this

Re: [PATCH] MIPS: boot/compressed: Copy DTB to aligned address

2021-03-08 Thread Thomas Bogendoerfer
On Wed, Mar 03, 2021 at 07:33:05PM +, Paul Cercueil wrote: > Since 5.12-rc1, the Device Tree blob must now be properly aligned. > > Therefore, the decompress routine must be careful to copy the blob at > the next aligned address after the kernel image. > > This commit fixes the kernel

Re: [PATCH] crypto: mips/poly1305 - enable for all MIPS processors

2021-03-08 Thread Thomas Bogendoerfer
On Wed, Mar 03, 2021 at 02:16:04AM +0100, Maciej W. Rozycki wrote: > The MIPS Poly1305 implementation is generic MIPS code written such as to > support down to the original MIPS I and MIPS III ISA for the 32-bit and > 64-bit variant respectively. Lift the current limitation then to enable >

[PATCH] security/selinux/include/: fix misspellings using codespell tool

2021-03-08 Thread menglong8 . dong
From: Xiong Zhenwu A typo is f out by codespell tool in 422th line of security.h: $ codespell ./security/selinux/include/ ./security.h:422: thie ==> the, this Fix a typo found by codespell. Signed-off-by: Xiong Zhenwu --- security/selinux/include/security.h | 2 +- 1 file changed, 1

Re: [PATCH 2/5] kasan: init memory in kasan_(un)poison for HW_TAGS

2021-03-08 Thread Marco Elver
On Sat, Mar 06, 2021 at 01:15AM +0100, Andrey Konovalov wrote: > This change adds an argument to kasan_poison() and kasan_unpoison() > that allows initializing memory along with setting the tags for HW_TAGS. > > Combining setting allocation tags with memory initialization will > improve HW_TAGS

Re: [RFC PATCH v4 2/3] scheduler: add scheduler level for clusters

2021-03-08 Thread Vincent Guittot
On Tue, 2 Mar 2021 at 00:08, Barry Song wrote: > > ARM64 chip Kunpeng 920 has 6 or 8 clusters in each NUMA node, and each > cluster has 4 cpus. All clusters share L3 cache data, but each cluster > has local L3 tag. On the other hand, each clusters will share some > internal system bus. This means

Re: [PATCH v3 01/11] pagemap: Introduce ->memory_failure()

2021-03-08 Thread ruansy.f...@fujitsu.com
> > > > 1 file changed, 8 insertions(+) > > > > > > > > diff --git a/include/linux/memremap.h b/include/linux/memremap.h > > > > index 79c49e7f5c30..0bcf2b1e20bd 100644 > > > > --- a/include/linux/memremap.h > > > > +++ b/include/linux/memremap.h > > > > @@ -87,6 +87,14 @@ struct dev_pagemap_ops

[tip: x86/platform] x86/platform/uv: Set section block size for hubless architectures

2021-03-08 Thread tip-bot2 for Mike Travis
The following commit has been merged into the x86/platform branch of tip: Commit-ID: 6840a150b9daf35e4d21ab9780d0a03b4ed74a5b Gitweb: https://git.kernel.org/tip/6840a150b9daf35e4d21ab9780d0a03b4ed74a5b Author:Mike Travis AuthorDate:Fri, 05 Mar 2021 10:28:53 -06:00

list_add corruption in __percpu_counter_init

2021-03-08 Thread Marc Kleine-Budde
Hello, since updating one of our compile cluster machines from kernel 4.19+105+deb10u9 to 5.10.0-0.bpo.3-amd64 #1 Debian 5.10.13-1~bpo10+1 we're hit by this bug every 1...2 days: list_add corruption. next->prev should be prev (889a9840), but was .

Re: [PATCH] clocksource: sh_cmt: use CMTOUT_IE only when supported

2021-03-08 Thread Niklas Söderlund
Hi Wolfram, Thanks for your patch. On 2021-03-05 14:28:59 +0100, Wolfram Sang wrote: > CMTOUT_IE is only supported for older SoCs. Newer SoCs shall not set > this bit. So, add a version check. > > Reported-by: Phong Hoang > Signed-off-by: Wolfram Sang Reviewed-by: Niklas Söderlund > --- >

Re: [PATCH] docs: gpu: fix typo

2021-03-08 Thread Simon Ser
R-b me. Pushed, thanks!

Re: [PATCH] clocksource: sh_cmt: use CMTOUT_IE only when supported

2021-03-08 Thread Geert Uytterhoeven
Hi Wolfram, Phong-san, On Fri, Mar 5, 2021 at 2:30 PM Wolfram Sang wrote: > CMTOUT_IE is only supported for older SoCs. Newer SoCs shall not set > this bit. So, add a version check. > > Reported-by: Phong Hoang > Signed-off-by: Wolfram Sang Thanks for your patch! As R-Car Gen2/3 indeed don't

[PATCH] rtc: ds1307: set uie_unsupported if no interrupt is available

2021-03-08 Thread Łukasz Stelmach
For an RTC without an IRQ assigned rtc_update_irq_enable() should return -EINVAL. It will, when uie_unsupported is set. Signed-off-by: Łukasz Stelmach --- drivers/rtc/rtc-ds1307.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/rtc/rtc-ds1307.c

Re: [PATCH] arm64: dts: zynqmp: Add compatible strings for si5328

2021-03-08 Thread Laurent Pinchart
Hi Quanyang, Thank you for the patch. On Mon, Mar 08, 2021 at 03:08:43PM +0800, quanyang.w...@windriver.com wrote: > From: Quanyang Wang > > The function of_i2c_get_board_info will call of_modalias_node to check > if a device_node contains "compatible" string. So let's assign the > proper

Re: [PATCH] x86/perf: Fix guest_get_msrs static call if there is no PMU

2021-03-08 Thread Like Xu
On 2021/3/8 15:12, Dmitry Vyukov wrote: On Mon, Mar 8, 2021 at 3:26 AM Xu, Like wrote: On 2021/3/6 6:33, Sean Christopherson wrote: Handle a NULL x86_pmu.guest_get_msrs at invocation instead of patching in perf_guest_get_msrs_nop() during setup. If there is no PMU, setup "If there is no

[PATCH V2 0/4] vDPA/ifcvf: enables Intel C5000X-PL virtio-net

2021-03-08 Thread Zhu Lingshan
This series enabled Intel FGPA SmartNIC C5000X-PL virtio-net for vDPA changes from V1: remove version number string(Leon) add new device ids and remove original device ids in separate patches(Jason) Zhu Lingshan (4): vDPA/ifcvf: get_vendor_id returns a device specific vendor id vDPA/ifcvf:

Re: [PATCH 2/2] arm64: imx8mp: imx8mp-phycore-som enable spi nor

2021-03-08 Thread Marco Felsch
On 21-03-08 07:40, Heiko Schocher wrote: > enable the mt25qu256aba spi nor on the imx8mp-phycore-som. > > Signed-off-by: Heiko Schocher > --- > > .../dts/freescale/imx8mp-phycore-som.dtsi | 27 +++ > 1 file changed, 27 insertions(+) > > diff --git

[PATCH V2 1/4] vDPA/ifcvf: get_vendor_id returns a device specific vendor id

2021-03-08 Thread Zhu Lingshan
In this commit, ifcvf_get_vendor_id() will return a device specific vendor id of the probed pci device than a hard code. Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_main.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/vdpa/ifcvf/ifcvf_main.c

[PATCH RESEND] gcc-plugins: avoid errors with -std=gnu++11 on old gcc

2021-03-08 Thread Valdis Klētnieks
It turns out that older gcc (4.9 and 5.4) have gnu++11 support, but due to a gcc bug fixed in gcc6, throw errors during the build. The relevant gcc bug is https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69959 Version the option based on what gcc we're using. Signed-off-by: Valdis Kletnieks Fixes:

Re: [PATCH v5 05/22] powerpc/irq: Add helper to set regs->softe

2021-03-08 Thread Nicholas Piggin
Excerpts from Christophe Leroy's message of March 5, 2021 6:54 pm: > > > Le 09/02/2021 à 08:49, Nicholas Piggin a écrit : >> Excerpts from Christophe Leroy's message of February 9, 2021 4:18 pm: >>> >>> >>> Le 09/02/2021 à 02:11, Nicholas Piggin a écrit : Excerpts from Christophe Leroy's

Re: [PATCH] arm64: dts: zynqmp: Add compatible strings for si5328

2021-03-08 Thread Michal Simek
Hi, On 3/8/21 9:35 AM, Laurent Pinchart wrote: > Hi Quanyang, > > Thank you for the patch. > > On Mon, Mar 08, 2021 at 03:08:43PM +0800, quanyang.w...@windriver.com wrote: >> From: Quanyang Wang >> >> The function of_i2c_get_board_info will call of_modalias_node to check >> if a device_node

Re: [PATCH] reset: oxnas: replace file name with short description

2021-03-08 Thread Neil Armstrong
On 04/03/2021 17:03, Philipp Zabel wrote: > Fixes a checkpatch warning: > > WARNING: It's generally not useful to have the filename in the file > #3: FILE: drivers/reset/reset-oxnas.c:3: > + * drivers/reset/reset-oxnas.c > > Signed-off-by: Philipp Zabel > --- >

[PATCH] gpu: drm: i915: fix error return code of igt_threaded_blt()

2021-03-08 Thread Jia-Ju Bai
When kcalloc() returns NULL to tsk or thread, no error code of igt_threaded_blt() is returned. To fix this bug, -ENOMEM is returned as error code. Fixes: 0e99f939f08f ("drm/i915/selftests/blt: add some kthreads into the mix") Reported-by: TOTE Robot Signed-off-by: Jia-Ju Bai ---

Re: fscache: Redesigning the on-disk cache

2021-03-08 Thread David Howells
Amir Goldstein wrote: > > (0a) As (0) but using SEEK_DATA/SEEK_HOLE instead of bmap and opening the > > file for every whole operation (which may combine reads and writes). > > I read that NFSv4 supports hole punching, so when using ->bmap() or SEEK_DATA > to keep track of present data,

[PATCH] net: qrtr: fix error return code of qrtr_sendmsg()

2021-03-08 Thread Jia-Ju Bai
When sock_alloc_send_skb() returns NULL to skb, no error return code of qrtr_sendmsg() is assigned. To fix this bug, rc is assigned with -ENOMEM in this case. Fixes: 194ccc88297a ("net: qrtr: Support decoding incoming v2 packets") Reported-by: TOTE Robot Signed-off-by: Jia-Ju Bai ---

Re: [PATCH v3 06/11] kentry: Simplify the common syscall API

2021-03-08 Thread Mark Rutland
On Thu, Mar 04, 2021 at 11:05:59AM -0800, Andy Lutomirski wrote: > The new common syscall API had a large and confusing API surface. Simplify > it. Now there is exactly one way to use it. It's a bit more verbose than > the old way for the simple x86_64 native case, but it's much easier to use >

Re: [PATCH v3] x86/fault: Send a SIGBUS to user process always for hwpoison page access.

2021-03-08 Thread Aili Yao
On Sun, 7 Mar 2021 11:16:24 -0800 Andy Lutomirski wrote: > > > > >> Some programs may use read(2), write(2), etc as ways to check if > > > > >> memory is valid without getting a signal. They might not want > > > > >> signals, which means that this feature might need to be > > > > >>

Re: usb: cdc-acm: BUG kmalloc-128 Poison overwritten

2021-03-08 Thread Oliver Neukum
Am Montag, den 08.03.2021, 09:50 +0100 schrieb Bruno Thomsen: > > Tested-by: Bruno Thomsen > > I have not observed any oops with patches applied. Patches have seen > more than 10 weeks of runtime testing across multiple devices. Hi, that is good news. I shall send them upstream.

Re: [PATCH v3 07/11] kentry: Make entry/exit_to_user_mode() arm64-only

2021-03-08 Thread Mark Rutland
On Thu, Mar 04, 2021 at 11:06:00AM -0800, Andy Lutomirski wrote: > exit_to_user_mode() does part, but not all, of the exit-to-user-mode work. > It's used only by arm64, and arm64 should stop using it (hint, hint!). > Compile it out on other architectures to minimize the chance of error. For

[PATCH] block: rsxx: fix error return code of rsxx_pci_probe()

2021-03-08 Thread Jia-Ju Bai
Some error handling segments of rsxx_pci_probe() do not return error code, so add error code for these segments. Fixes: 8722ff8cdbfa ("block: IBM RamSan 70/80 device driver") Reported-by: TOTE Robot Signed-off-by: Jia-Ju Bai --- drivers/block/rsxx/core.c | 18 +++--- 1 file

Re: [PATCH v3 08/11] entry: Make CONFIG_DEBUG_ENTRY available outside x86

2021-03-08 Thread Mark Rutland
On Thu, Mar 04, 2021 at 11:06:01AM -0800, Andy Lutomirski wrote: > In principle, the generic entry code is generic, and the goal is to use it > in many architectures once it settles down more. Move CONFIG_DEBUG_ENTRY > to the generic config so that it can be used in the generic entry code and >

RE: [PATCH net-next v2 5/6] net: qualcomm: rmnet: don't use C bit-fields in rmnet checksum trailer

2021-03-08 Thread David Laight
From: Alex Elder > Sent: 06 March 2021 03:16 > > Replace the use of C bit-fields in the rmnet_map_dl_csum_trailer > structure with a single one-byte field, using constant field masks > to encode or get at embedded values. > > Signed-off-by: Alex Elder > Reviewed-by: Bjorn Andersson > --- >

Re: [PATCH 0/4] Stylus-on-touchscreen device support

2021-03-08 Thread Jiri Kosina
On Wed, 17 Feb 2021, наб wrote: > This patchset adds support for stylus-on-touchscreen devices as found on > the OneMix 3 Pro and Dell Inspiron 15 7000 2-in-1 (7591), among others; > with it, they properly behave like a drawing tablet. > > Patches 2 and 4 funxionally depend on patch 1. > Patch 4

Re: [PATCH] net: ieee802154: fix error return code of dgram_sendmsg()

2021-03-08 Thread Heiner Kallweit
On 08.03.2021 10:31, Jia-Ju Bai wrote: > When sock_alloc_send_skb() returns NULL to skb, no error return code of > dgram_sendmsg() is assigned. > To fix this bug, err is assigned with -ENOMEM in this case. > Please stop sending such nonsense. Basically all such patches you sent so far are false

Re: [PATCH] MAINTAINERS: Add Michael and Pratyush as designated reviewers for SPI NOR

2021-03-08 Thread Tudor Ambarus
On Mon, 8 Mar 2021 11:23:33 +0200, Tudor Ambarus wrote: > It's already been the case for some time that Michael and Pratyush > are reviewing SPI NOR patches. Update MAINTAINERS to reflect reality. Applied to spi-nor/next, thanks! [1/1] MAINTAINERS: Add Michael and Pratyush as designated

Re: [PATCH 2/2] lib/vsprintf: reduce space taken by no_hash_pointers warning

2021-03-08 Thread Andy Shevchenko
On Fri, Mar 05, 2021 at 08:42:06PM +0100, Marco Elver wrote: > Move the no_hash_pointers warning string into __initconst section, so > that it is discarded after init. Remove common start/end characters. > Also remove repeated lines from the array, since the compiler can't > remove duplicate

[PATCH] Revert "nvme: cleanup zone information initialization"

2021-03-08 Thread Niklas Cassel
From: Niklas Cassel This reverts commit 73d90386b559d6f4c3c5db5e6bb1b68aae8fd3e7. Commit 73d90386b559 ("nvme: cleanup zone information initialization") introduced the following warning at boot: WARNING: CPU: 0 PID: 7 at block/blk-settings.c:252 blk_queue_max_zone_append_sectors+0x7d/0x90 The

[PATCH v3 07/15] mfd: Support for ROHM BD71815 PMIC core

2021-03-08 Thread Matti Vaittinen
Add core support for ROHM BD71815 Power Management IC. The IC integrates regulators, a battery charger with a coulomb counter, a real-time clock (RTC), clock gate and general-purpose outputs (GPO). Signed-off-by: Matti Vaittinen --- Changes since v2: - styling / clean-ups suggested by Lee -

Re: [PATCH] PCI: tegra: Disable PTM capabilities for EP mode

2021-03-08 Thread Om Prakash Singh
On 3/5/2021 11:43 PM, Vidya Sagar wrote: > > > On 3/5/2021 5:49 PM, Bjorn Helgaas wrote: >> External email: Use caution opening links or attachments >> >> >> On Fri, Mar 05, 2021 at 01:42:34PM +0530, Om Prakash Singh wrote: >>> PCIe EP compliance expect PTM capabilities (ROOT_CAPABLE,

Re: [PATCH 1/3] scsi: ufshcd: switch to a version macro

2021-03-08 Thread Caleb Connolly
Hi Christoph, On 08/03/2021 8:00 am, Christoph Hellwig wrote: > This looks like a really nice improvement! > > A bunch of comments below: > >> @@ -696,10 +685,21 @@ static inline u32 ufshcd_get_intr_mask(struct ufs_hba >> *hba) >>*/ >> static inline u32 ufshcd_get_ufs_version(struct

[PATCH] vfio/pci: make the vfio_pci_mmap_fault reentrant

2021-03-08 Thread Zeng Tao
We have met the following error when test with DPDK testpmd: [ 1591.733256] kernel BUG at mm/memory.c:2177! [ 1591.739515] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP [ 1591.747381] Modules linked in: vfio_iommu_type1 vfio_pci vfio_virqfd vfio pv680_mii(O) [ 1591.760536] CPU: 2 PID: 227 Comm:

Re: [PATCH v6 01/37] firmware: arm_scmi: review protocol registration interface

2021-03-08 Thread Cristian Marussi
Hi Sudeep, thanks for reviewing this. On Mon, Mar 08, 2021 at 04:38:30AM +, Sudeep Holla wrote: > On Tue, Feb 02, 2021 at 10:15:19PM +, Cristian Marussi wrote: > > Extend common protocol registration routines and provide some new generic > > protocols get/put helpers that can track

[tip: x86/cleanups] x86: Remove duplicate TSC DEADLINE MSR definitions

2021-03-08 Thread tip-bot2 for Dave Hansen
The following commit has been merged into the x86/cleanups branch of tip: Commit-ID: 09141ec0e4efede4fb5e2aa68cb819fba974325c Gitweb: https://git.kernel.org/tip/09141ec0e4efede4fb5e2aa68cb819fba974325c Author:Dave Hansen AuthorDate:Thu, 05 Mar 2020 09:47:06 -08:00

[tip: efi/urgent] efi: stub: omit SetVirtualAddressMap() if marked unsupported in RT_PROP table

2021-03-08 Thread tip-bot2 for Ard Biesheuvel
The following commit has been merged into the efi/urgent branch of tip: Commit-ID: 9e9888a0fe97b9501a40f717225d2bef7100a2c1 Gitweb: https://git.kernel.org/tip/9e9888a0fe97b9501a40f717225d2bef7100a2c1 Author:Ard Biesheuvel AuthorDate:Fri, 05 Mar 2021 10:21:05 +01:00

Re: [RFC PATCH v2 00/13] Add futex2 syscall

2021-03-08 Thread Stefan Metzmacher
Am 08.03.21 um 12:11 schrieb David Laight: > From: Stefan Metzmacher >> Sent: 07 March 2021 11:35 >> >> Hi André, >>> ** The wait on multiple problem >>> >>> The use case lies in the Wine implementation of the Windows NT interface >>> WaitMultipleObjects. This Windows API function allows a

[PATCH] arm64: dts: zynqmp: Remove si5328 device nodes

2021-03-08 Thread quanyang . wang
From: Quanyang Wang The function of_i2c_get_board_info will call of_modalias_node to check if a device_node contains "compatible" string. But for the device si5328 at zcu102/zcu106 boards, there is no proper DT bindings for them. So remove si5328 device nodes from dts files to eliminate the

[PATCH v7 2/2] drm/bridge: Introduce LT8912B DSI to HDMI bridge

2021-03-08 Thread Adrien Grassein
Lontium LT8912B is a DSI to HDMI bridge. Signed-off-by: Adrien Grassein Reported-by: kernel test robot --- MAINTAINERS | 1 + drivers/gpu/drm/bridge/Kconfig | 14 + drivers/gpu/drm/bridge/Makefile | 1 +

[PATCH v7 0/2] Add support of Lontium lt8912 MIPI to HDMI bridge

2021-03-08 Thread Adrien Grassein
Hi, this patch set adds the support of the Lontium lt8912 MIPI to HDMI bridge in the kernel. It's only support the video part, not the audio part yet since I don't have the datasheet of this component. I get the current i2c configuration from Digi and Boundary drivers. Developed using the

[PATCH v7 1/2] dt-bindings: display: bridge: Add documentation for LT8912B

2021-03-08 Thread Adrien Grassein
Lontium LT8912B is a DSI to HDMI bridge. Signed-off-by: Adrien Grassein Reviewed-by: Rob Herring --- .../display/bridge/lontium,lt8912b.yaml | 102 ++ MAINTAINERS | 5 + 2 files changed, 107 insertions(+) create mode 100644

Re: [PATCH 2/2] arm64: imx8mp: imx8mp-phycore-som enable spi nor

2021-03-08 Thread Teresa Remmet
Hello Heiko, first thanks for the patch :). Am Montag, den 08.03.2021, 07:40 +0100 schrieb Heiko Schocher: > enable the mt25qu256aba spi nor on the imx8mp-phycore-som. > > Signed-off-by: Heiko Schocher > --- > > .../dts/freescale/imx8mp-phycore-som.dtsi | 27 > +++ > 1

RE: [PATCH] Input: elan_i2c - Reduce the resume time for new dev ices

2021-03-08 Thread jingle
Hi Dmitry: 1. missing "i<" + u32 quirks = 0; + int i; + + for (i = 0; ARRAY_SIZE(elan_i2c_quirks); i++) { -> for (i = 0; iquirks & ETP_QUIRK_QUICK_WAKEUP); if (error) dev_err(dev, "initialize when resuming failed: %d\n", error); ->

Re: [RFC] mm: Enable generic pfn_valid() to handle early sections with memmap holes

2021-03-08 Thread Mike Rapoport
Hi Anshuman, On Mon, Mar 08, 2021 at 08:57:53AM +0530, Anshuman Khandual wrote: > Platforms like arm and arm64 have redefined pfn_valid() because their early > memory sections might have contained memmap holes caused by memblock areas > tagged with MEMBLOCK_NOMAP, which should be skipped while

[PATCH] perf symbols: turn dso__fprintf_symbols_by_name into void function

2021-03-08 Thread Yang Li
This function always return '0' and no callers use the return value. So make it a void function. Reported-by: Abaci Robot Signed-off-by: Yang Li --- tools/perf/util/dso.h| 2 +- tools/perf/util/symbol_fprintf.c | 5 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git

Re: [PATCH] gpu: drm: i915: fix error return code of igt_threaded_blt()

2021-03-08 Thread Chris Wilson
Quoting Jia-Ju Bai (2021-03-08 09:07:22) > When kcalloc() returns NULL to tsk or thread, no error code of > igt_threaded_blt() is returned. > To fix this bug, -ENOMEM is returned as error code. Because we decided to skip the test if it could not be run due to insufficient memory, as opposed to

[PATCH v3] MIPS: kernel: Reserve exception base early to prevent corruption

2021-03-08 Thread Thomas Bogendoerfer
BMIPS is one of the few platforms that do change the exception base. After commit 2dcb39645441 ("memblock: do not start bottom-up allocations with kernel_end") we started seeing BMIPS boards fail to boot with the built-in FDT being corrupted. Before the cited commit, early allocations would be in

RE: [PATCH RFC] gcc-plugins: Handle GCC version mismatch for OOT modules

2021-03-08 Thread David Laight
> - "External modules must be built with the same GCC version" > > As has been stated repeatedly, by Linus and others, there's no > technical reason behind this claim. It ignores the realities of how > distros release the kernel and compiler independently, with separate > cadences.

Re: [PATCH 3/7] hwmon: (max31790) Allow setting pulses

2021-03-08 Thread Václav Kubernát
Thanks, I will include fixes in v2 of the patches. By the way, I'd like to mention that Jan is my colleague. Václav pá 5. 3. 2021 v 13:08 odesílatel Jan Kundrát napsal: > > > @@ -285,6 +295,9 @@ static int max31790_write_fan(struct device > > *dev, u32 attr, int channel, > >

Re: [PATCH v2 3/3] dt-bindings: mtd: Document use of nvmem-partitions compatible

2021-03-08 Thread Rafał Miłecki
On 05.03.2021 23:23, Rob Herring wrote: On Wed, Mar 03, 2021 at 11:01:55AM +0100, Rafał Miłecki wrote: [Rob: please advise] On 16.02.2021 22:26, Ansuel Smith wrote: Document nvmem-partitions compatible used to treat mtd partitions as a nvmem provider. Until now we were using "compatible"

Re: [PATCH 2/2] arm64: imx8mp: imx8mp-phycore-som enable spi nor

2021-03-08 Thread Heiko Schocher
Hello Marco, On 08.03.21 10:28, Marco Felsch wrote: > On 21-03-08 08:52, Teresa Remmet wrote: >> Hello Marco, >> >> Am Montag, den 08.03.2021, 09:40 +0100 schrieb Marco Felsch: >>> On 21-03-08 07:40, Heiko Schocher wrote: enable the mt25qu256aba spi nor on the imx8mp-phycore-som.

RE: [PATCH v3 0/6] iio: Add output buffer support

2021-03-08 Thread Sa, Nuno
> -Original Message- > From: Jonathan Cameron > Sent: Saturday, March 6, 2021 6:35 PM > To: Hennerich, Michael > Cc: Ardelean, Alexandru ; > linux-kernel@vger.kernel.org; linux-...@vger.kernel.org; > l...@metafoo.de; Sa, Nuno ; Bogdan, Dragos > > Subject: Re: [PATCH v3 0/6]

[PATCH v18 7/9] mm: hugetlb: introduce nr_free_vmemmap_pages in the struct hstate

2021-03-08 Thread Muchun Song
All the infrastructure is ready, so we introduce nr_free_vmemmap_pages field in the hstate to indicate how many vmemmap pages associated with a HugeTLB page that can be freed to buddy allocator. And initialize it in the hugetlb_vmemmap_init(). This patch is actual enablement of the feature.

  1   2   3   4   5   6   7   8   9   10   >