linux-next boot error: WARNING in prepare_kswapd_sleep

2020-11-23 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:d9137320 Add linux-next specific files for 20201124 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=17b1407950 kernel config: https://syzkaller.appspot.com/x/.config?x=2ac6081150c8eac dashboard

Re: [PATCH v3 00/10] Introduced new Cadence USBSSP DRD Driver.

2020-11-23 Thread Peter Chen
On 20-11-19 15:12:57, Pawel Laszczak wrote: > This patch introduce new Cadence USBSS DRD driver to linux kernel. > > The Cadence USBSS DRD Controller is a highly configurable IP Core which > can be instantiated as Dual-Role Device (DRD), Peripheral Only and > Host Only (XHCI)configurations. > >

[PATCH net-next v2 3/3] net: phy: mscc: use new PTP_MSGTYPE_* defines

2020-11-23 Thread Christian Eggers
Use recently introduced PTP_MSGTYPE_SYNC and PTP_MSGTYPE_DELAY_REQ defines instead of a driver internal enumeration. Signed-off-by: Christian Eggers Reviewed-by: Antoine Tenart Cc: Antoine Tenart --- drivers/net/phy/mscc/mscc_ptp.c | 14 +++--- drivers/net/phy/mscc/mscc_ptp.h | 5

[PATCH] i2c: cadence: Clear HOLD bit before xfer_size register rolls over

2020-11-23 Thread Raviteja Narayanam
On Xilinx zynq SOC if the delay between address register write and control register write in cdns_mrecv function is more, the xfer size register rolls over and controller is stuck. This is an IP bug and is resolved in later versions of IP. To avoid this scenario, disable the interrupts on the

[PATCH net-next v2 2/3] mlxsw: spectrum_ptp: use PTP wide message type definitions

2020-11-23 Thread Christian Eggers
Use recently introduced PTP wide defines instead of a driver internal enumeration. Signed-off-by: Christian Eggers Reviewed-by: Ido Schimmel Cc: Petr Machata Cc: Jiri Pirko Cc: Ido Schimmel --- drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c | 8

Re: [PATCH] ubifs: Fix error return code in ubifs_init_authentication()

2020-11-23 Thread Sascha Hauer
On Tue, Nov 24, 2020 at 02:33:20PM +0800, Wang ShaoBo wrote: > Fix to return PTR_ERR() error code from the error handling case where > ubifs_hash_get_desc() failed instead of 0 in ubifs_init_authentication(), > as done elsewhere in this function. > > Fixes: 49525e5eecca5 ("ubifs: Add helper

[PATCH net-next v2 1/3] net: phy: dp83640: use new PTP_MSGTYPE_SYNC define

2020-11-23 Thread Christian Eggers
Replace use of magic number with recently introduced define. Signed-off-by: Christian Eggers Cc: Kurt Kanzenbach --- drivers/net/phy/dp83640.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/net/phy/dp83640.c b/drivers/net/phy/dp83640.c index

Re: [PATCH v4] checkpatch: add fix and improve warning msg for Non-standard signature

2020-11-23 Thread Lukas Bulwahn
On Tue, Nov 24, 2020 at 8:26 AM Joe Perches wrote: > > On Tue, 2020-11-24 at 07:54 +0100, Lukas Bulwahn wrote: > > On Mon, Nov 23, 2020 at 6:33 PM Joe Perches wrote: > [] > > Maybe a patch reduced to the very obvious synonyms helps newcomers or > > people with lousy memory to be reminded that it

[PATCH net-next v2 0/3] net: ptp: use common defines for PTP message types in further drivers

2020-11-23 Thread Christian Eggers
Changes in v2: - resend, as v1 was sent before the prerequisites were merged - removed mismatch between From: and Signed-off-by: - [2/3] Reviewed-by: Ido Schimmel - [3/3] Reviewed-by: Antoine Tenart - [3/3] removed dead email addresses from Cc: This series replaces further

Re: [drm/fb] 6a1b34c0a3: WARNING:at_drivers/gpu/drm/drm_fb_helper.c:#drm_fb_helper_damage_work

2020-11-23 Thread Thomas Zimmermann
Hi Am 24.11.20 um 02:58 schrieb Xing Zhengjun: On 11/23/2020 4:04 PM, Thomas Zimmermann wrote: Hi Am 22.11.20 um 15:18 schrieb kernel test robot: Greeting, FYI, we noticed the following commit (built with gcc-9): commit: 6a1b34c0a339fdc75d7932ad5702f2177c9d7a1c ("drm/fb-helper: Move

Re: [PATCH] bdi: Fix error return code in alloc_wbufs()

2020-11-23 Thread Sascha Hauer
On Sun, Nov 15, 2020 at 04:23:43PM +0800, Wang ShaoBo wrote: > Fix to return PTR_ERR() error code from the error handling case instead > fo 0 in function alloc_wbufs(), as done elsewhere in this function. > > Fixes: 6a98bc4614de ("ubifs: Add authentication nodes to journal") > Signed-off-by: Wang

Re: [PATCH] media: ov8856: Remove 3280x2464 mode

2020-11-23 Thread Dongchun Zhu
Hi Robert, Thanks for the patch. On Mon, 2020-11-16 at 16:50 +0100, Robert Foss wrote: > Remove the 3280x2464 mode as it can't be reproduced and yields > an output resolution of 3264x2448 instead of the desired one. > > Furthermore the 3264x2448 resolution is the highest resolution > that the

RE: [PATCH] arm64: dts: ls1028a: make the eMMC and SD card controllers use fixed indices

2020-11-23 Thread Y.b. Lu
Hi Vladimir, > -Original Message- > From: Vladimir Oltean > Sent: Friday, November 20, 2020 5:30 PM > To: Y.b. Lu > Cc: Shawn Guo ; Leo Li ; Rob > Herring ; linux-arm-ker...@lists.infradead.org; > devicet...@vger.kernel.org; Adrian Hunter ; Ulf > Hansson ; linux-...@vger.kernel.org; >

Re: [PATCH] mm: memory_hotplug: put migration failure information under DEBUG_VM

2020-11-23 Thread Michal Hocko
On Mon 23-11-20 20:40:40, Charan Teja Kalla wrote: > > Thanks Michal! > On 11/23/2020 7:43 PM, Michal Hocko wrote: > > On Mon 23-11-20 19:33:16, Charan Teja Reddy wrote: > >> When the pages are failed to get isolate or migrate, the page owner > >> information along with page info is dumped. If

Re: [RFC PATCH v1 2/4] KVM: arm64: GICv4.1: Try to save hw pending state in save_pending_tables

2020-11-23 Thread Shenming Lu
On 2020/11/23 17:18, Marc Zyngier wrote: > On 2020-11-23 06:54, Shenming Lu wrote: >> After pausing all vCPUs and devices capable of interrupting, in order >     ^ > See my comment below about this. > >> to save the information of all interrupts, besides flushing the pending

Re: [RFC PATCH v1 1/4] irqchip/gic-v4.1: Plumb get_irqchip_state VLPI callback

2020-11-23 Thread Shenming Lu
On 2020/11/23 17:01, Marc Zyngier wrote: > On 2020-11-23 06:54, Shenming Lu wrote: >> From: Zenghui Yu >> >> Up to now, the irq_get_irqchip_state() callback of its_irq_chip >> leaves unimplemented since there is no architectural way to get >> the VLPI's pending state before GICv4.1. Yeah, there

[PATCH] ACPI: PM: Re-enable ACPI GPE if it's already enabled

2020-11-23 Thread Kai-Heng Feng
Dell Precision 5550 fails to detect Thunderbolt device hotplug events, once the Thunderbolt device and its root port are runtime-suspended to D3cold. While putting the entire hierarchy to D3cold, the root port ACPI GPE is enabled via acpi_pci_propagate_wakeup() when suspending Thunderbolt

Re: [PATCH v7 2/5] dt-bindings: leds: Add LED_COLOR_ID_MOONLIGHT definitions

2020-11-23 Thread Gene Chen
Jacek Anaszewski 於 2020年11月24日 週二 上午4:52寫道: > > On 11/23/20 4:00 AM, Gene Chen wrote: > > Jacek Anaszewski 於 2020年11月20日 週五 上午6:26寫道: > >> > >> On 11/19/20 10:57 PM, Pavel Machek wrote: > >>> On Thu 2020-11-19 22:03:14, Jacek Anaszewski wrote: > Hi Pavel, Gene, > > On 11/18/20

[PATCH v2] soc: qcom: rpmh: Remove serialization of TCS commands

2020-11-23 Thread Maulik Shah
From: Lina Iyer Requests sent to RPMH can be sent as fire-n-forget or response required, with the latter ensuring the command has been completed by the hardware accelerator. Commands in a request with tcs_cmd::wait set, would ensure that those select commands are sent as response required, even

[PATCH v2 2/2] scsi: ufs-qcom: Keep core_clk_unipro ON while link is active

2020-11-23 Thread Can Guo
If we want to disable clocks to save power but still keep the link active, core_clk_unipro, as same as ref_clk, should not be the one being disabled. Signed-off-by: Can Guo --- drivers/scsi/ufs/ufs-qcom.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/scsi/ufs/ufs-qcom.c

RE: [EXTERNAL] Re: [PATCH] PCI: Mark AMD Raven iGPU ATS as broken

2020-11-23 Thread Merger, Edgar [AUTOSOL/MAS/AUGS]
Module Version : PiccasoCpu 10 AGESA Version : PiccasoPI 100A I did not try to enter the system in any other way (like via ssh) than via Desktop. -Original Message- From: Huang Rui Sent: Dienstag, 24. November 2020 07:43 To: Kuehling, Felix Cc: Will Deacon ; Deucher, Alexander ;

[PATCH v2 1/2] scsi: ufs: Refector ufshcd_setup_clocks() to remove skip_ref_clk

2020-11-23 Thread Can Guo
Remove the param skip_ref_clk from __ufshcd_setup_clocks(), but keep a flag in struct ufs_clk_info to tell whether a clock can be disabled or not while the link is active. Signed-off-by: Can Guo --- drivers/scsi/ufs/ufshcd-pltfrm.c | 2 ++ drivers/scsi/ufs/ufshcd.c| 25

Re: [PATCH v4] checkpatch: add fix and improve warning msg for Non-standard signature

2020-11-23 Thread Joe Perches
On Tue, 2020-11-24 at 07:54 +0100, Lukas Bulwahn wrote: > On Mon, Nov 23, 2020 at 6:33 PM Joe Perches wrote: [] > Maybe a patch reduced to the very obvious synonyms helps newcomers or > people with lousy memory to be reminded that it is called > "Co-developed-by:" not "Co-authored-by". I have no

Re: [PATCH v9 1/2] kunit: Support for Parameterized Testing

2020-11-23 Thread David Gow
On Mon, Nov 23, 2020 at 9:08 PM Marco Elver wrote: > > On Tue, 17 Nov 2020 at 08:21, David Gow wrote: > > On Mon, Nov 16, 2020 at 1:41 PM Arpitha Raghunandan <98.a...@gmail.com> > > wrote: > > > > > > Implementation of support for parameterized testing in KUnit. This > > > approach requires the

Re: [PATCH v2] usb: musb: remove unused variable 'devctl'

2020-11-23 Thread Greg Kroah-Hartman
On Tue, Nov 24, 2020 at 02:36:13PM +0800, min@mediatek.com wrote: > From: Min Guo > > Remove unused 'devctl' variable to fix compile warnings: > > drivers/usb/musb/musbhsdma.c: In function 'dma_controller_irq': > drivers/usb/musb/musbhsdma.c:324:8: warning: variable 'devctl' set >

Re: [PATCH 4.14 00/60] 4.14.209-rc1 review

2020-11-23 Thread Naresh Kamboju
On Mon, 23 Nov 2020 at 17:59, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.14.209 release. > There are 60 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 know. > >

Re: [PATCH v3 0/5] Improve kernel section protections

2020-11-23 Thread Greentime Hu
Atish Patra 於 2020年11月5日 週四 上午8:05寫道: > > This series aims at improving kernel permissions by doing following things. > > 1. Protect kernel sections early instead of after /init. > 2. Protect .init.text & .init.data sections with appropriate permissions. > 3. Move dynamic relocation section to

Re: [PATCH net] ipv6: addrlabel: fix possible memory leak in ip6addrlbl_net_init

2020-11-23 Thread wanghai (M)
在 2020/11/24 9:22, Jakub Kicinski 写道: On Sun, 22 Nov 2020 10:34:56 +0800 Wang Hai wrote: kmemleak report a memory leak as follows: unreferenced object 0x8880059c6a00 (size 64): comm "ip", pid 23696, jiffies 4296590183 (age 1755.384s) hex dump (first 32 bytes): 20 01 00 10 00

Re: [PATCH v2] brmcfmac: fix compile when DEBUG is defined

2020-11-23 Thread Kalle Valo
hby writes: > I am sorry for the HTML email, and I change the email client. The > patch update. > > From b87d429158b4efc3f6835828f495a261e17d5af4 Mon Sep 17 00:00:00 2001 > From: hby > Date: Tue, 24 Nov 2020 09:16:24 +0800 > Subject: [PATCH] brmcfmac: fix compile when DEBUG is defined > > The

linux-next: Signed-off-by missing for commit in the qcom tree

2020-11-23 Thread Stephen Rothwell
Hi all, Commit 872b41c9a255 ("arm64: dts: qcom: sort sm8150 usb_2 node") is missing a Signed-off-by from its author. -- Cheers, Stephen Rothwell pgpVPDd2LEUBo.pgp Description: OpenPGP digital signature

[PATCH net v2] ipv6: addrlabel: fix possible memory leak in ip6addrlbl_net_init

2020-11-23 Thread Wang Hai
kmemleak report a memory leak as follows: unreferenced object 0x8880059c6a00 (size 64): comm "ip", pid 23696, jiffies 4296590183 (age 1755.384s) hex dump (first 32 bytes): 20 01 00 10 00 00 00 00 00 00 00 00 00 00 00 00 ... 1c 00 00 00 00 00 00 00 00 00 00 00 07 00

arch/powerpc/platforms/pseries/reconfig.c:394:30: error: 'ofdt_proc_ops' defined but not used

2020-11-23 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: d5beb3140f91b1c8a3d41b14d729aefa4dcc58bc commit: 97a32539b9568bb653683349e5a76d02ff3c3e2c proc: convert everything to "struct proc_ops" date: 10 months ago config: powerpc-randconfig-r002-20201124

linux-next: Tree for Nov 24

2020-11-23 Thread Stephen Rothwell
Hi all, Changes since 20201123: Linus' tree lost its build failure (or will shortly - fix in powerpc-fixes). The arm-soc tree gained a build failure so I used the version from next-20201123. The s390 tree gained a conflict against the asm-generic tree. Non-merge commits (relative to Linus

Re: [PATCH 1/3] irqchip: qcom-pdc: Fix phantom irq when changing between rising/falling

2020-11-23 Thread Maulik Shah
Hi Doug, Thanks for the patch. Looks good to me and tested. Reviewed-by: Maulik Shah Tested-by: Maulik Shah Thanks, Maulik On 11/24/2020 5:31 AM, Douglas Anderson wrote: We have a problem if we use gpio-keys and configure wakeups such that we only want one edge to wake us up. AKA:

Re: [RFC PATCH v5] sched/fair: select idle cpu from idle cpumask for task wakeup

2020-11-23 Thread Li, Aubrey
Hi Vincent, On 2020/11/23 17:27, Vincent Guittot wrote: > Hi Aubrey, > > On Thu, 19 Nov 2020 at 13:15, Aubrey Li wrote: >> >> Add idle cpumask to track idle cpus in sched domain. When a CPU >> enters idle, if the idle driver indicates to stop tick, this CPU >> is set in the idle cpumask to be a

[PATCH] drivers/pcmcia: Fix error return code in electra_cf_probe()

2020-11-23 Thread Wei Li
When it fails to call of_get_property(), it just jumps to 'fail1', while the 'status' which will be returned is not updated. Fixes: 2b571a066a2f ("pcmcia: CompactFlash driver for PA Semi Electra boards") Signed-off-by: Wei Li --- drivers/pcmcia/electra_cf.c | 1 + 1 file changed, 1 insertion(+)

RE: [PATCH v2] uio/uio_pci_generic: remove unneeded pci_set_drvdata()

2020-11-23 Thread Ardelean, Alexandru
> -Original Message- > From: Alexandru Ardelean > Sent: Monday, November 23, 2020 4:35 PM > To: linux-kernel@vger.kernel.org; k...@vger.kernel.org > Cc: m...@redhat.com; gre...@linuxfoundation.org; Ardelean, Alexandru > > Subject: [PATCH v2] uio/uio_pci_generic: remove unneeded

Re: [PATCH v4] checkpatch: add fix and improve warning msg for Non-standard signature

2020-11-23 Thread Lukas Bulwahn
On Mon, Nov 23, 2020 at 6:33 PM Joe Perches wrote: > > On Mon, 2020-11-23 at 22:54 +0530, Aditya Srivastava wrote: > > Currently, checkpatch.pl warns for BAD_SIGN_OFF on non-standard signature > > styles. > > I think this proposed change is unnecessary. > > > This warning occurs because of

Re: [PATCH 4.19 00/91] 4.19.160-rc1 review

2020-11-23 Thread Naresh Kamboju
On Mon, 23 Nov 2020 at 17:59, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.19.160 release. > There are 91 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 know. > >

Re: [PATCH v2 00/19] Add generic vdso_base tracking

2020-11-23 Thread Christophe Leroy
based on linux-next (next-20201123) and it depends on changes in x86/cleanups (those reclaim TIF_IA32/TIF_X32) and also on my changes in akpm (fixing several mremap() issues). I have a series that cleans up VDSO init on powerpc and migrates powerpc to _install_special_mapping() (patch 10 of

Re: Pinning ZONE_MOVABLE pages

2020-11-23 Thread John Hubbard
On 11/20/20 12:27 PM, Pavel Tatashin wrote: Recently, I encountered a hang that is happening during memory hot remove operation. It turns out that the hang is caused by pinned user pages in ZONE_MOVABLE. Kernel expects that all pages in ZONE_MOVABLE can be migrated, but this is not the case if

Re:[RFC PATCH] Add a new "Frozen" status to MAINTAINERS subsystem entries

2020-11-23 Thread Bernard
From: Joe Perches Date: 2020-11-24 06:24:07 To: Sam Ravnborg ,Bernard Zhao Cc: linux-kernel@vger.kernel.org,Andrew Morton ,Linus Torvalds ,kernel-janitors ,Greg KH Subject: [RFC PATCH] Add a new "Frozen" status to MAINTAINERS subsystem entries>On Mon, 2020-11-23 at 22:42 +0100, Sam

[PATCH] fs/buffer.c: Revoke LRU when trying to drop buffers

2020-11-23 Thread Chris Goldsworthy
From: Laura Abbott When a buffer is added to the LRU list, a reference is taken which is not dropped until the buffer is evicted from the LRU list. This is the correct behavior, however this LRU reference will prevent the buffer from being dropped. This means that the buffer can't actually be

[PATCH] Resolve LRU page-pinning issue for file-backed pages

2020-11-23 Thread Chris Goldsworthy
It is possible for file-backed pages to end up in a contiguous memory area (CMA), such that the relevant page must be migrated using the .migratepage() callback when its backing physical memory is selected for use in an CMA allocation (through cma_alloc()). However, if a set of address space

Re: [PATCH] usb: cdns3: fix NULL pointer dereference on no platform data

2020-11-23 Thread Peter Chen
On 20-11-23 12:49:31, Roger Quadros wrote: > Some platforms (e.g. TI) will not have any platform data which will > lead to NULL pointer dereference if we don't check for NULL pdata. > > Fixes: a284b7fd1b8f ("usb: cdns3: add quirk for enable runtime pm by default") > Reported-by: Nishanth Menon >

Re: [PATCH] PCI: Mark AMD Raven iGPU ATS as broken

2020-11-23 Thread Huang Rui
On Tue, Nov 24, 2020 at 06:51:11AM +0800, Kuehling, Felix wrote: > On 2020-11-23 5:33 p.m., Will Deacon wrote: > > On Mon, Nov 23, 2020 at 09:04:14PM +, Deucher, Alexander wrote: > >> [AMD Public Use] > >> > >>> -Original Message- > >>> From: Will Deacon > >>> Sent: Monday, November

Re: [PATCH 00/12] Add the page size in the perf record (user tools)

2020-11-23 Thread Namhyung Kim
Hi, On Wed, Nov 18, 2020 at 4:57 AM wrote: > > From: Kan Liang > > Current perf can report both virtual addresses and physical addresses, > but not the page size. Without the page size information of the utilized > page, users cannot decide whether to promote/demote large pages to > optimize

Re: [PATCH] Revert "usb: cdns3: core: quit if it uses role switch class"

2020-11-23 Thread Peter Chen
On 20-11-23 13:50:51, Roger Quadros wrote: > This reverts commit 50642709f6590fe40afa6d22c32f23f5b842aed5. > > This commit breaks hardware based role switching on TI platforms. > cdns->role_sw is always going to be non-zero as it is a pointer > to the usb_role_switch instance. Some other means

Re: [PATCH v2 4/4] iio: hid-sensors: Add hinge sensor driver

2020-11-23 Thread Ye, Xiang
On Sat, Nov 21, 2020 at 05:56:29PM +, Jonathan Cameron wrote: > On Thu, 19 Nov 2020 18:03:31 +0800 > Ye Xiang wrote: > > > The Hinge sensor is a common custom sensor on laptops. It calculates > > the angle between the lid (screen) and the base (keyboard). In addition, > > it also exposes

[PATCH v2] cpuidle: arm: qcom: fix Kconfig problems

2020-11-23 Thread Randy Dunlap
c: John Stultz --- v2: change to depends on QCOM_SCM (suggested by Bjorn) drivers/cpuidle/Kconfig.arm |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20201123.orig/drivers/cpuidle/Kconfig.arm +++ linux-next-20201123/drivers/cpuidle/Kconfig.arm @@ -108,10 +108,10 @@ conf

Re: [PATCH 5.4 000/158] 5.4.80-rc1 review

2020-11-23 Thread Naresh Kamboju
On Mon, 23 Nov 2020 at 18:06, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.4.80 release. > There are 158 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 know. > >

[PATCH v2] usb: musb: remove unused variable 'devctl'

2020-11-23 Thread min.guo
From: Min Guo Remove unused 'devctl' variable to fix compile warnings: drivers/usb/musb/musbhsdma.c: In function 'dma_controller_irq': drivers/usb/musb/musbhsdma.c:324:8: warning: variable 'devctl' set but not used [-Wunused-but-set-variable] Signed-off-by: Min Guo --- changes in

Re: kernel BUG at fs/ext4/inode.c:LINE!

2020-11-23 Thread Hugh Dickins
On Mon, 23 Nov 2020, Linus Torvalds wrote: > On Mon, Nov 23, 2020 at 8:07 PM Hugh Dickins wrote: > > > > The problem is that PageWriteback is not accompanied by a page reference > > (as the NOTE at the end of test_clear_page_writeback() acknowledges): as > > soon as TestClearPageWriteback has

Re: [PATCH] cpuidle: arm: qcom: fix Kconfig problems

2020-11-23 Thread Randy Dunlap
fined reference to `__arm_smccc_smc' >> >> Fixes: a871be6b8eee ("cpuidle: Convert Qualcomm SPM driver to a generic >> CPUidle driver") >> Signed-off-by: Randy Dunlap >> Reported-by: kernel test robot >> Cc: linux...@vger.kernel.org >> Cc: Andy Gr

Re: [PATCH] dcookies: Make dcookies depend on CONFIG_OPROFILE

2020-11-23 Thread Viresh Kumar
On 20-10-20, 16:31, Viresh Kumar wrote: > From: Arnd Bergmann > > The dcookies stuff is used only with OPROFILE and there is no need to > build it if CONFIG_OPROFILE isn't enabled. Build it depending on > CONFIG_OPROFILE instead of CONFIG_PROFILING. > > Signed-off-by: Arnd Bergmann > [ Viresh:

[PATCH] ubifs: Fix error return code in ubifs_init_authentication()

2020-11-23 Thread Wang ShaoBo
Fix to return PTR_ERR() error code from the error handling case where ubifs_hash_get_desc() failed instead of 0 in ubifs_init_authentication(), as done elsewhere in this function. Fixes: 49525e5eecca5 ("ubifs: Add helper functions for authentication support") Signed-off-by: Wang ShaoBo ---

Re: [Regression]: Commit 74d905d2 breaks the touchpad and touchscreen of Google Chromebook "samus"

2020-11-23 Thread Wang, Jiada
Hi Andre Thanks for the log, Hmmm, from the log (also as you have observed) Seems "data->use_retrigen_workaround" is true on your device so workaround mxt_process_messages_until_invalid() is used. which is as same as with the commit reverted, I am not sure what caused IRQ get generated. @dmitry

[PATCH] EDAC, mv64x60: Fix error return code in mv64x60_pci_err_probe()

2020-11-23 Thread Wang ShaoBo
Fix to return -ENODEV error code when edac_pci_add_device() failed instaed of 0 in mv64x60_pci_err_probe(), as done elsewhere in this function. Fixes: 4f4aeeabc061 ("drivers-edac: add marvell mv64x60 driver") Signed-off-by: Wang ShaoBo --- drivers/edac/mv64x60_edac.c | 1 + 1 file changed, 1

[PATCH V4 0/3] cpufreq_cooling: Get effective CPU utilization from scheduler

2020-11-23 Thread Viresh Kumar
Hi, This patchset makes the cpufreq_cooling driver reuse the CPU utilization metric provided by the scheduler instead of depending on idle and busy times of a CPU, which aren't that accurate to measure the busyness of a CPU for the next cycle. More details can be seen in the commit log of patch

[PATCH V4 3/3] thermal: cpufreq_cooling: Reuse sched_cpu_util() for SMP platforms

2020-11-23 Thread Viresh Kumar
Several parts of the kernel are already using the effective CPU utilization (as seen by the scheduler) to get the current load on the CPU, do the same here instead of depending on the idle time of the CPU, which isn't that accurate comparatively. This is also the right thing to do as it makes the

[PATCH V4 2/3] sched/core: Rename schedutil_cpu_util() and allow rest of the kernel to use it

2020-11-23 Thread Viresh Kumar
There is nothing schedutil specific in schedutil_cpu_util(), rename it to effective_cpu_util(). Also create and expose another wrapper sched_cpu_util() which can be used by other parts of the kernel, like thermal core (that will be done in a later commit). Signed-off-by: Viresh Kumar ---

[PATCH V4 1/3] sched/core: Move schedutil_cpu_util() to core.c

2020-11-23 Thread Viresh Kumar
There is nothing schedutil specific in schedutil_cpu_util(), move it to core.c and define it only for CONFIG_SMP. Signed-off-by: Viresh Kumar --- kernel/sched/core.c | 108 +++ kernel/sched/cpufreq_schedutil.c | 106 --

Re: [PATCH v2 11/19] mm/mmap: Make vm_special_mapping::mremap return void

2020-11-23 Thread Christophe Leroy
Le 24/11/2020 à 01:29, Dmitry Safonov a écrit : Previously .mremap() callback needed (int) return to provide way to restrict resizing of a special mapping. Now it's restricted by providing .may_split = special_mapping_split. Removing (int) return simplifies further changes to

[PATCH] net: fs_enet: Fix incorrect IS_ERR_VALUE macro usages

2020-11-23 Thread Wei Li
IS_ERR_VALUE macro should be used only with unsigned long type. Especially it works incorrectly with unsigned shorter types on 64bit machines. Fixes: 976de6a8c304 ("fs_enet: Be an of_platform device when CONFIG_PPC_CPM_NEW_BINDING is set.") Fixes: 4c35630ccda5 ("[POWERPC] Change rheap functions

Re: [PATCH v2 09/19] s390/vdso: Remove vdso_base pointer from mm->context

2020-11-23 Thread Christophe Leroy
Le 24/11/2020 à 01:29, Dmitry Safonov a écrit : Not used any more. Same, what about mremap(), why can it be removed ? Cc: Christian Borntraeger Cc: Heiko Carstens Cc: Vasily Gorbik Cc: linux-s...@vger.kernel.org Signed-off-by: Dmitry Safonov --- arch/s390/include/asm/mmu.h | 1 -

Re: [PATCH 2/2] scsi: pm8001: Fix misindentation

2020-11-23 Thread Jinpu Wang
On Tue, Nov 24, 2020 at 5:36 AM Joe Perches wrote: > > kernel robot reported a misindentation of a goto. > > Fix it. > > At the same time, use a temporary for a repeated entry in the same block > to reduce visual noise. > > Reported-by: kernel test robot > Signed-off-by: Joe Perches Acked-by:

Re: [PATCH 1/2] scsi: pm8001: Convert pm8001_printk to pm8001_info

2020-11-23 Thread Jinpu Wang
On Tue, Nov 24, 2020 at 5:36 AM Joe Perches wrote: > > Use the more common logging style. > > Signed-off-by: Joe Perches Acked-by: Jack Wang Thanks! > --- > drivers/scsi/pm8001/pm8001_init.c | 12 ++-- > drivers/scsi/pm8001/pm8001_sas.c | 4 ++-- > drivers/scsi/pm8001/pm8001_sas.h |

[PATCH] net/ethernet/freescale: Fix incorrect IS_ERR_VALUE macro usages

2020-11-23 Thread Wei Li
IS_ERR_VALUE macro should be used only with unsigned long type. Especially it works incorrectly with unsigned shorter types on 64bit machines. Fixes: 4c35630ccda5 ("[POWERPC] Change rheap functions to use ulongs instead of pointers") Signed-off-by: Wei Li ---

Re: [PATCH v2 08/19] arm/vdso: Remove vdso pointer from mm->context

2020-11-23 Thread Christophe Leroy
Le 24/11/2020 à 01:29, Dmitry Safonov a écrit : Not used any more. But what about mremap() ? Maybe you should explain why you can remove it ? Signed-off-by: Dmitry Safonov --- arch/arm/include/asm/mmu.h | 3 --- arch/arm/kernel/vdso.c | 12 2 files changed, 15

Re: [PATCH v2 06/19] elf/vdso: Reuse arch_setup_additional_pages() parameters

2020-11-23 Thread Christophe Leroy
"Reuse arch_setup_additional_pages() parameters" Did you mean "remove" ? Or "Revise" ? Maybe could be: "Modify arch_setup_additional_pages() parameters" Le 24/11/2020 à 01:29, Dmitry Safonov a écrit : Both parameters of arch_setup_additional_pages() are currently unused. commit fc5243d98ac2

[PATCH v2 2/2] arm64: dts: qcom: sc7180: Add DDR/L3 votes for the pro variant

2020-11-23 Thread Sibi Sankar
Add DDR/L3 bandwidth votes for the pro variant of SC7180 SoC, as it support frequencies upto 2.5 GHz. Signed-off-by: Sibi Sankar --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi

[PATCH v2 1/2] arm64: dts: qcom: sc7180-lite: Tweak DDR/L3 scaling on SC7180-lite

2020-11-23 Thread Sibi Sankar
Tweak the DDR/L3 bandwidth votes on the lite variant of the SC7180 SoC since the gold cores only support frequencies upto 2.1 GHz. Signed-off-by: Sibi Sankar --- V2: * Updated the lite ddr/l3 cpufreq map to have better power numbers with similar perf.

[PATCH kernel v4 8/8] powerpc/pci: Remove LSI mappings on device teardown

2020-11-23 Thread Alexey Kardashevskiy
From: Oliver O'Halloran When a passthrough IO adapter is removed from a pseries machine using hash MMU and the XIVE interrupt mode, the POWER hypervisor expects the guest OS to clear all page table entries related to the adapter. If some are still present, the RTAS call which isolates the PCI

[PATCH kernel v4 5/8] genirq: Add free_irq hook for IRQ descriptor and use for mapping disposal

2020-11-23 Thread Alexey Kardashevskiy
We want to make the irq_desc.kobj's release hook free associated resources but we do not want to pollute the irqdesc code with domains. This adds a free_irq hook which is called when the last reference to the descriptor is dropped. The first user is mapped irqs. This potentially can break the

[PATCH kernel v4 4/8] genirq: Free IRQ descriptor via embedded kobject

2020-11-23 Thread Alexey Kardashevskiy
At the moment the IRQ descriptor is freed via the free_desc() helper. We want to add reference counting to IRQ descriptors and there is already kobj embedded into irq_desc which we want to reuse. This shuffles free_desc()/etc to make it simply call kobject_put() and moves all the cleanup into the

RE: [EXTERNAL] Re: [PATCH] PCI: Mark AMD Raven iGPU ATS as broken

2020-11-23 Thread Merger, Edgar [AUTOSOL/MAS/AUGS]
This is a board developed by my company. Subsystem-ID is ea50:0c19 or ea50:cc10 (depending on which particular carrier board the compute module is attached to), however we haven´t managed yet to enter this Subsystem-ID to every PCI-Device in the system, because of missing means to do that by

[PATCH kernel v4 7/8] genirq/irqdomain: Reference irq_desc for already mapped irqs

2020-11-23 Thread Alexey Kardashevskiy
This references an irq_desc if already mapped interrupt requested to map again. This happends for PCI legacy interrupts where 4 interrupts are shared among all devices on the same PCI host bus adapter. >From now on, the users shall call irq_dispose_mapping() for every irq_create_fwspec_mapping().

[PATCH kernel v4 1/8] genirq/ipi: Simplify irq_reserve_ipi

2020-11-23 Thread Alexey Kardashevskiy
__irq_domain_alloc_irqs() can already handle virq==-1 and free descriptors if it failed allocating hardware interrupts so let's skip this extra step. Signed-off-by: Alexey Kardashevskiy --- kernel/irq/ipi.c | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git

[PATCH kernel v4 6/8] genirq/irqdomain: Move hierarchical IRQ cleanup to kobject_release

2020-11-23 Thread Alexey Kardashevskiy
This moves hierarchical domain's irqs cleanup into the kobject release hook to make irq_domain_free_irqs() as simple as kobject_put. Signed-off-by: Alexey Kardashevskiy --- kernel/irq/irqdomain.c | 43 +- 1 file changed, 22 insertions(+), 21 deletions(-)

[PATCH kernel v4 0/8] genirq/irqdomain: Add reference counting to IRQs

2020-11-23 Thread Alexey Kardashevskiy
This is another attempt to add reference counting to IRQ descriptors; or - more to the point - reuse already existing kobj from irq_desc. This allows the same IRQ to be used several times (such as legacy PCI INTx) and when disposing those, only the last reference drop clears the hardware mappings.

[PATCH kernel v4 2/8] genirq/irqdomain: Clean legacy IRQ allocation

2020-11-23 Thread Alexey Kardashevskiy
There are 10 users of __irq_domain_alloc_irqs() and only one - IOAPIC - passes realloc==true. There is no obvious reason for handling this specific case in the generic code. This splits out __irq_domain_alloc_irqs_data() to make it clear what IOAPIC does and makes __irq_domain_alloc_irqs()

[PATCH kernel v4 3/8] genirq/irqdomain: Drop unused realloc parameter from __irq_domain_alloc_irqs

2020-11-23 Thread Alexey Kardashevskiy
The two previous patches made @realloc obsolete. This finishes removing it. Signed-off-by: Alexey Kardashevskiy --- include/linux/irqdomain.h | 4 +--- arch/x86/kernel/apic/io_apic.c | 2 +- drivers/gpio/gpiolib.c | 1 - drivers/irqchip/irq-armada-370-xp.c | 2 +-

Re: [PATCH] scsi: ufs: Don't disable core_clk_unipro if the link is active

2020-11-23 Thread Can Guo
Hi Stanley, On 2020-11-24 13:20, Stanley Chu wrote: Hi Can, On Mon, 2020-11-23 at 21:05 -0800, Can Guo wrote: If we want to disable clocks but still keep the link active, both ref_clk and core_clk_unipro should be skipped. "core_clk_unipro" seems used by ufs-qcom only and not defined in

Re: [Regression]: Commit 74d905d2 breaks the touchpad and touchscreen of Google Chromebook "samus"

2020-11-23 Thread Andre Muller
On 24/11/2020 04.02, Wang, Jiada wrote: Hello Andre Thanks for the log, can you add more debug information like following diff, and get full log? Hi Jiada, I added the warnings, but none of them triggers. I double-checked the generated object file, it includes the debug strings. (Also tested

Re: [PATCH v2 02/19] elf: Move arch_setup_additional_pages() to generic elf.h

2020-11-23 Thread Christophe Leroy
Le 24/11/2020 à 01:29, Dmitry Safonov a écrit : Ifdef the function in the header, not in the code. Following kernel style, move it to Kconfig. All it makes it easier to follow when the option is enabled/disabled. Remove re-definition from compat_binfmt_elf, as it's always defined under

Re: [PATCH v2 05/19] elf: Remove compat_arch_setup_additional_pages()

2020-11-23 Thread Christophe Leroy
Le 24/11/2020 à 01:29, Dmitry Safonov a écrit : Now that all users rely on detecting bitness of new-born task checking personality, remove compat_arch_setup_additional_pages() macro, simplifying the code. I understand from cover that you wanted to reword "new-born" ? Signed-off-by:

Re: [PATCH 5.9 000/252] 5.9.11-rc1 review

2020-11-23 Thread Naresh Kamboju
On Mon, 23 Nov 2020 at 18:14, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.9.11 release. > There are 252 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 know. > >

[PATCH] phram: Allow the user to set the erase page size.

2020-11-23 Thread Guohua Zhong
Permit the user to specify the erase page size as a parameter. This solves two problems: - phram can access images made by mkfs.jffs2. mkfs.jffs2 won't create images with erase sizes less than 8KiB; many architectures define PAGE_SIZE as 4KiB. - Allows more effective use of small capacity

[PATCH 11/17] fs/reiserfs: Use memcpy_from_page()

2020-11-23 Thread ira . weiny
From: Ira Weiny Remove the open coding of kmap/memcpy/kunmap and use the new memcpy_from_page() function. Signed-off-by: Ira Weiny --- fs/reiserfs/journal.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/fs/reiserfs/journal.c b/fs/reiserfs/journal.c index

[PATCH 04/17] fs/afs: Convert to memzero_page()

2020-11-23 Thread ira . weiny
From: Ira Weiny Convert the kmap()/memcpy()/kunmap() pattern to memzero_page(). Cc: David Howells Signed-off-by: Ira Weiny --- fs/afs/write.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/fs/afs/write.c b/fs/afs/write.c index 50371207f327..ed7419de0178 100644 ---

[PATCH 05/17] fs/btrfs: Convert to memzero_page()

2020-11-23 Thread ira . weiny
From: Ira Weiny Remove the kmap/memset()/kunmap pattern and use the new memzero_page() call where possible. Cc: Chris Mason Cc: Josef Bacik Cc: David Sterba Signed-off-by: Ira Weiny --- fs/btrfs/inode.c | 21 + 1 file changed, 5 insertions(+), 16 deletions(-) diff

[PATCH 06/17] fs/hfs: Convert to mem*_page() interface

2020-11-23 Thread ira . weiny
From: Ira Weiny Where possible remove kmap/mem*/kunmap in favor of the new mem*_page() calls. Signed-off-by: Ira Weiny --- fs/hfs/bnode.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/fs/hfs/bnode.c b/fs/hfs/bnode.c index b63a4df7327b..56037ae5ba69 100644

[PATCH V3.1] entry: Pass irqentry_state_t by reference

2020-11-23 Thread ira . weiny
From: Ira Weiny Currently struct irqentry_state_t only contains a single bool value which makes passing it by value is reasonable. However, future patches add information to this struct. This includes the PKRS thread state, included in this series, as well as information to store kmap

Re: [PATCH v7 1/5] leds: flash: Add flash registration with undefined CONFIG_LEDS_CLASS_FLASH

2020-11-23 Thread Gene Chen
Jacek Anaszewski 於 2020年11月24日 週二 上午5:07寫道: > > On 11/23/20 4:20 AM, Gene Chen wrote: > > Jacek Anaszewski 於 2020年11月20日 週五 上午6:29寫道: > >> > >> Hi Gene, > >> > >> On 11/18/20 11:47 AM, Gene Chen wrote: > >>> From: Gene Chen > >>> > >>> Add flash registration with undefined

[PATCH 10/17] fs/freevxfs: Use memcpy_to_page()

2020-11-23 Thread ira . weiny
From: Ira Weiny Remove kmap/memcpy/kunmap pattern in favor of the new memcpy_to_page() Cc: Christoph Hellwig Signed-off-by: Ira Weiny --- fs/freevxfs/vxfs_immed.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/fs/freevxfs/vxfs_immed.c b/fs/freevxfs/vxfs_immed.c

[PATCH 16/17] lib: Use mempcy_to/from_page()

2020-11-23 Thread ira . weiny
From: Ira Weiny Remove kmap/mem*()/kunmap pattern and use memcpy_to/from_page() Cc: Alexei Starovoitov Cc: Daniel Borkmann Cc: "Jérôme Glisse" Signed-off-by: Ira Weiny --- lib/test_bpf.c | 11 ++- lib/test_hmm.c | 10 ++ 2 files changed, 4 insertions(+), 17 deletions(-)

[PATCH 14/17] drivers/scsi: Use memcpy_to_page()

2020-11-23 Thread ira . weiny
From: Ira Weiny Remove kmap/mem*()/kunmap pattern and use memcpy_to_page() Cc: Brian King Signed-off-by: Ira Weiny --- drivers/scsi/ipr.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c index b0aa58d117cc..3cdd8db24270

[PATCH 15/17] drivers/staging: Use memcpy_to/from_page()

2020-11-23 Thread ira . weiny
From: Ira Weiny Remove kmap/mem*()/kunmap pattern and use memcpy_to/from_page() Cc: Greg Kroah-Hartman Signed-off-by: Ira Weiny --- drivers/staging/rts5208/rtsx_transport.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rts5208/rtsx_transport.c

[PATCH 17/17] samples: Use memcpy_to/from_page()

2020-11-23 Thread ira . weiny
From: Ira Weiny Remove kmap/mem*()/kunmap pattern and use memcpy_to/from_page() Cc: Kirti Wankhede Signed-off-by: Ira Weiny --- samples/vfio-mdev/mbochs.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/samples/vfio-mdev/mbochs.c b/samples/vfio-mdev/mbochs.c index

[PATCH 13/17] drivers/target: Convert to mem*_page()

2020-11-23 Thread ira . weiny
From: Ira Weiny Remove the kmap/mem*()/kunmap patter and use the new mem*_page() functions. Cc: "Martin K. Petersen" Signed-off-by: Ira Weiny --- drivers/target/target_core_rd.c| 6 ++ drivers/target/target_core_transport.c | 10 +++--- 2 files changed, 5 insertions(+), 11

  1   2   3   4   5   6   7   8   9   10   >