Re: [PATCH] ARM: dts: stm32: update sdmmc IP version for STM32MP157 SOC

2020-10-22 Thread Yann GAUTIER
On 10/20/20 4:04 PM, Ahmad Fatoum wrote: > From: Yann Gautier > > Update the IP version to v2.0, which supports linked lists in internal DMA, > and is present in STM32MP1 SoCs. > > The mmci driver supports the v2.0 periph id since 7a2a98be672b ("mmc: mmci: > Add support for sdmmc variant

[PATCH v2 05/10] soc: bcm: raspberrypi-power: Release firmware handle on unbind

2020-10-22 Thread Nicolas Saenz Julienne
Upon unbinding the device make sure we release RPi's firmware interface. Signed-off-by: Nicolas Saenz Julienne --- drivers/soc/bcm/raspberrypi-power.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/soc/bcm/raspberrypi-power.c b/drivers/soc/bcm/raspberrypi-power.c

[PATCH v2 07/10] input: raspberrypi-ts: Release firmware handle when not needed

2020-10-22 Thread Nicolas Saenz Julienne
After passing the DMA buffer address through the firmware interface, release the firmware handle, we won't need it anymore. Signed-off-by: Nicolas Saenz Julienne --- drivers/input/touchscreen/raspberrypi-ts.c | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH] arm64: dts: allwinner: beelink-gs1: Enable both RGMII RX/TX delay

2020-10-22 Thread Maxime Ripard
On Sun, Oct 18, 2020 at 07:24:09PM +0200, Clément Péron wrote: > Before the commit: > net: phy: realtek: fix rtl8211e rx/tx delay config > > The software overwrite for RX/TX delays of the RTL8211e were not > working properly and the Beelink GS1 had both RX/TX delay of RGMII > interface set using

[PATCH v2 01/10] firmware: raspberrypi: Introduce rpi_firmware_put()

2020-10-22 Thread Nicolas Saenz Julienne
When unbinding the firmware device we need to make sure it has no consumers left. Otherwise we'd leave them with a firmware handle pointing at freed memory. Keep a reference count of all consumers and make sure they all finished unbinding before we do. Suggested-by: Uwe Kleine-König

[PATCH v2 06/10] staging: vchiq: Release firmware handle on unbind

2020-10-22 Thread Nicolas Saenz Julienne
Upon unbinding the device make sure we release RPi's firmware interface. Signed-off-by: Nicolas Saenz Julienne --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c

[PATCH v2 09/10] DO NOT MERGE: ARM: dts: Add RPi's official PoE hat support

2020-10-22 Thread Nicolas Saenz Julienne
This is an example on how to enable the fan on top of RPi's official PoE hat. Signed-off-by: Nicolas Saenz Julienne --- Changes since v1: - Update patch to use 2 pwm cells arch/arm/boot/dts/bcm2711-rpi-4-b.dts | 54 +++ 1 file changed, 54 insertions(+) diff --git

Re: [PATCH] mm,thp,shmem: limit shmem THP alloc gfp_mask

2020-10-22 Thread Yu Xu
On 10/22/20 11:48 AM, Rik van Riel wrote: The allocation flags of anonymous transparent huge pages can be controlled through the files in /sys/kernel/mm/transparent_hugepage/defrag, which can help the system from getting bogged down in the page reclaim and compaction code when many THPs are

Re: default cpufreq gov, was: [PATCH] sched/fair: check for idle core

2020-10-22 Thread A L
From: Peter Zijlstra -- Sent: 2020-10-22 - 14:29 > On Thu, Oct 22, 2020 at 02:19:29PM +0200, Rafael J. Wysocki wrote: >> > However I do want to retire ondemand, conservative and also very much >> > intel_pstate/active mode. >> >> I agree in general, but IMO it would not be prudent

Re: [PATCH] mm,thp,shmem: limit shmem THP alloc gfp_mask

2020-10-22 Thread Rik van Riel
On Thu, 2020-10-22 at 17:50 +0200, Michal Hocko wrote: > On Thu 22-10-20 09:25:21, Rik van Riel wrote: > > On Thu, 2020-10-22 at 10:15 +0200, Michal Hocko wrote: > > > On Wed 21-10-20 23:48:46, Rik van Riel wrote: > > > > > > > > diff --git a/mm/shmem.c b/mm/shmem.c > > > > index

Re: [PATCH v1] ARM: vfp: Use long jump to fix THUMB2 kernel compilation error

2020-10-22 Thread Ard Biesheuvel
On Thu, 22 Oct 2020 at 17:57, Dmitry Osipenko wrote: > > 22.10.2020 10:06, Ard Biesheuvel пишет: > > On Thu, 22 Oct 2020 at 05:30, Kees Cook wrote: > >> > >> On Thu, Oct 22, 2020 at 03:00:06AM +0300, Dmitry Osipenko wrote: > >>> 22.10.2020 02:40, Kees Cook пишет: > On Thu, Oct 22, 2020 at

Re: [PATCH v6 5/6] can: ctucanfd: CTU CAN FD open-source IP core - platform/SoC support.

2020-10-22 Thread Pavel Pisa
Hello Pavel, thanks for review. On Thursday 22 of October 2020 13:43:06 Pavel Machek wrote: > Hi! > > > +++ b/drivers/net/can/ctucanfd/Kconfig > > @@ -21,4 +21,15 @@ config CAN_CTUCANFD_PCI > > PCIe board with PiKRON.com designed transceiver riser shield is > > available at

Re: [PATCH] arm64: dts: allwinner: Pine H64: Enable both RGMII RX/TX delay

2020-10-22 Thread Maxime Ripard
On Mon, Oct 19, 2020 at 06:34:49AM +, Corentin Labbe wrote: > Since commit bbc4d71d6354 ("net: phy: realtek: fix rtl8211e rx/tx delay > config"), > the network is unusable on PineH64 model A. > > This is due to phy-mode incorrectly set to rgmii instead of rgmii-id. > > Fixes: 729e1ffcf47e

Re: [PATCH v2] checkpatch: fix false positives in REPEATED_WORD warning

2020-10-22 Thread Joe Perches
On Thu, 2020-10-22 at 20:20 +0530, Aditya Srivastava wrote: > Presence of hexadecimal address or symbol results in false warning > message by checkpatch.pl. [] > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl [] > @@ -3051,7 +3051,10 @@ sub process { > } > > # check

Re: [PATCH v1] ARM: vfp: Use long jump to fix THUMB2 kernel compilation error

2020-10-22 Thread Russell King - ARM Linux admin
On Thu, Oct 22, 2020 at 06:06:32PM +0200, Ard Biesheuvel wrote: > On Thu, 22 Oct 2020 at 17:57, Dmitry Osipenko wrote: > > > > 22.10.2020 10:06, Ard Biesheuvel пишет: > > > On Thu, 22 Oct 2020 at 05:30, Kees Cook wrote: > > >> > > >> On Thu, Oct 22, 2020 at 03:00:06AM +0300, Dmitry Osipenko

[PATCH] zram: break the strict dependency from lzo

2020-10-22 Thread Rui Salvaterra
There's nothing special about zram and lzo. It works just fine without it, so as long as at least one of the other supported compression algorithms is selected. Additionally, drop the explicit dependency from CRYPTO, as it's implied by the selection of the algorithms themselves. Signed-off-by:

Re: [PATCH] net-veth: Fix memleak in veth_newlink

2020-10-22 Thread Jakub Kicinski
On Thu, 22 Oct 2020 13:42:33 +0800 Dinghao Liu wrote: > When rtnl_configure_link() fails, peer needs to be > freed just like when register_netdevice() fails. > > Signed-off-by: Dinghao Liu Can you see this leak or are you just sending this based on your reading of the code? netdev should be

Re: [PATCH V9 1/4] fuse: Definitions and ioctl() for passthrough

2020-10-22 Thread Alessio Balsini
On Wed, Sep 30, 2020 at 05:44:54PM +0200, Miklos Szeredi wrote: > On Thu, Sep 24, 2020 at 3:13 PM Alessio Balsini wrote: > > > > Introduce the new FUSE passthrough ioctl(), which allows userspace to > > specify a direct connection between a FUSE file and a lower file system > > file. > > Such

Re: [PATCH 24/29] arm64: dts: allwinner: h6: Harmonize DWC USB3 DT nodes name

2020-10-22 Thread Maxime Ripard
On Tue, Oct 20, 2020 at 02:59:54PM +0300, Serge Semin wrote: > In accordance with the DWC USB3 bindings the corresponding node > name is suppose to comply with the Generic USB HCD DT schema, which > requires the USB nodes to have the name acceptable by the regexp: > "^usb(@.*)?" . Make sure the

Re: [PATCH] can: vxcan: Fix memleak in vxcan_newlink

2020-10-22 Thread Jakub Kicinski
On Wed, 21 Oct 2020 13:20:16 +0200 Oliver Hartkopp wrote: > On 21.10.20 07:21, Dinghao Liu wrote: > > When rtnl_configure_link() fails, peer needs to be > > freed just like when register_netdevice() fails. > > > > Signed-off-by: Dinghao Liu > > Acked-by: Oliver Hartkopp > > Btw. as the

Re: [PATCH V9 2/4] fuse: Trace daemon creds

2020-10-22 Thread Alessio Balsini
On Wed, Sep 30, 2020 at 03:16:20PM -0400, Antonio SJ Musumeci wrote: > On 9/30/2020 2:45 PM, Miklos Szeredi wrote: > > On Thu, Sep 24, 2020 at 3:13 PM Alessio Balsini wrote: > > > Add a reference to the FUSE daemon credentials, so that they can be used > > > to > > > temporarily raise the user

Re: [PATCH RFC] checkpatch: extend attributes check to handle more patterns

2020-10-22 Thread Joe Perches
On Thu, 2020-10-22 at 20:29 +0530, Dwaipayan Ray wrote: > On Thu, Oct 22, 2020 at 8:22 PM Dwaipayan Ray wrote: > > It is generally preferred that the macros from > > include/linux/compiler_attributes.h are used, unless there > > is a reason not to. [] > I am a bit worried about the code size

RE: Buggy commit tracked to: "Re: [PATCH 2/9] iov_iter: move rw_copy_check_uvector() into lib/iov_iter.c"

2020-10-22 Thread David Laight
From: Greg KH > Sent: 22 October 2020 15:40 > > On Thu, Oct 22, 2020 at 04:28:20PM +0200, Arnd Bergmann wrote: ... > > Can you attach the iov_iter.s files from the broken build, plus the > > one with 'noinline' for comparison? Maybe something can be seen > > in there. > > I don't know how to

Re: [PATCH V9 3/4] fuse: Introduce synchronous read and write for passthrough

2020-10-22 Thread Alessio Balsini
On Wed, Sep 30, 2020 at 08:50:46PM +0200, Miklos Szeredi wrote: > > [...] > > +ssize_t fuse_passthrough_read_iter(struct kiocb *iocb_fuse, > > + struct iov_iter *iter) > > +{ > > + ssize_t ret; > > + const struct cred *old_cred; > > + struct file

[GIT PULL] More arm64 updates for -rc1

2020-10-22 Thread Will Deacon
Hi Linus, Please pull this small selection of arm64 fixes and updates for -rc1. Most of these are fixes that came in during the merge window, with the exception of the HAVE_MOVE_PMD mremap() speed-up which we discussed back in 2018 and somehow forgot to enable upstream [1]. Anyway, usual summary

Re: [PATCH -next] treewide: Remove stringification from __alias macro definition

2020-10-22 Thread Joe Perches
On Thu, 2020-10-22 at 09:33 +0200, Peter Zijlstra wrote: > On Wed, Oct 21, 2020 at 11:58:25AM -0700, Joe Perches wrote: > > Like the __section macro, the __alias macro uses > > macro # stringification to create quotes around > > the section name used in the __attribute__. > > > > Remove the

Re: [PATCH v1] ARM: vfp: Use long jump to fix THUMB2 kernel compilation error

2020-10-22 Thread Ard Biesheuvel
On Thu, 22 Oct 2020 at 18:11, Russell King - ARM Linux admin wrote: > > On Thu, Oct 22, 2020 at 06:06:32PM +0200, Ard Biesheuvel wrote: > > On Thu, 22 Oct 2020 at 17:57, Dmitry Osipenko wrote: > > > > > > 22.10.2020 10:06, Ard Biesheuvel пишет: > > > > On Thu, 22 Oct 2020 at 05:30, Kees Cook

Re: [PATCH v6 4/6] can: ctucanfd: CTU CAN FD open-source IP core - PCI bus support.

2020-10-22 Thread Pavel Pisa
Hello Pavel, thanks for review. On Thursday 22 of October 2020 13:39:52 Pavel Machek wrote: > Hi! > > > @@ -12,4 +12,13 @@ config CAN_CTUCANFD > > > > if CAN_CTUCANFD > > > > +config CAN_CTUCANFD_PCI > > + tristate "CTU CAN-FD IP core PCI/PCIe driver" > > + depends on PCI > > + help > > +

[PATCH] cpufreq: Avoid configuring old governors as default with intel_pstate

2020-10-22 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Subject: [PATCH] cpufreq: Avoid configuring old governors as default with intel_pstate Commit 33aa46f252c7 ("cpufreq: intel_pstate: Use passive mode by default without HWP") was meant to cause intel_pstate without HWP to be used in the passive mode with the schedutil

Re: [PATCH v1] ARM: vfp: Use long jump to fix THUMB2 kernel compilation error

2020-10-22 Thread Russell King - ARM Linux admin
On Thu, Oct 22, 2020 at 06:20:40PM +0200, Ard Biesheuvel wrote: > On Thu, 22 Oct 2020 at 18:11, Russell King - ARM Linux admin > wrote: > > > > On Thu, Oct 22, 2020 at 06:06:32PM +0200, Ard Biesheuvel wrote: > > > On Thu, 22 Oct 2020 at 17:57, Dmitry Osipenko wrote: > > > > > > > > 22.10.2020

Re: [PATCH] arm64: NUMA: Kconfig: Increase max number of nodes

2020-10-22 Thread Vanshi Konda
On Thu, Oct 22, 2020 at 12:21:27PM +0100, Robin Murphy wrote: On 2020-10-22 02:07, Vanshi Konda wrote: On Thu, Oct 22, 2020 at 12:44:15AM +0100, Robin Murphy wrote: On 2020-10-21 12:02, Jonathan Cameron wrote: On Wed, 21 Oct 2020 09:43:21 +0530 Anshuman Khandual wrote: On 10/20/2020 11:39

Re: [PATCH] lib: add basic KUnit test for lib/math

2020-10-22 Thread Daniel Latypov
On Thu, Oct 22, 2020 at 8:06 AM Andy Shevchenko wrote: > > On Wed, Oct 21, 2020 at 10:47:50AM -0700, Daniel Latypov wrote: > > On Tue, Oct 20, 2020 at 8:40 PM David Gow wrote: > > > On Tue, Oct 20, 2020 at 6:46 AM Daniel Latypov > > > wrote: > > > > > > > > Add basic test coverage for files

Re: default cpufreq gov, was: [PATCH] sched/fair: check for idle core

2020-10-22 Thread Mel Gorman
On Thu, Oct 22, 2020 at 05:25:14PM +0200, Peter Zijlstra wrote: > On Thu, Oct 22, 2020 at 03:52:50PM +0100, Mel Gorman wrote: > > > There are some questions > > currently on whether schedutil is good enough when HWP is not available. > > Srinivas and Rafael will know better, but Intel does run a

Re: [PATCH v1] ARM: vfp: Use long jump to fix THUMB2 kernel compilation error

2020-10-22 Thread Ard Biesheuvel
On Thu, 22 Oct 2020 at 18:23, Russell King - ARM Linux admin wrote: > > On Thu, Oct 22, 2020 at 06:20:40PM +0200, Ard Biesheuvel wrote: > > On Thu, 22 Oct 2020 at 18:11, Russell King - ARM Linux admin > > wrote: > > > > > > On Thu, Oct 22, 2020 at 06:06:32PM +0200, Ard Biesheuvel wrote: > > > >

Re: [PATCH v1] ARM: vfp: Use long jump to fix THUMB2 kernel compilation error

2020-10-22 Thread Dmitry Osipenko
22.10.2020 19:23, Russell King - ARM Linux admin пишет: > On Thu, Oct 22, 2020 at 06:20:40PM +0200, Ard Biesheuvel wrote: >> On Thu, 22 Oct 2020 at 18:11, Russell King - ARM Linux admin >> wrote: >>> >>> On Thu, Oct 22, 2020 at 06:06:32PM +0200, Ard Biesheuvel wrote: On Thu, 22 Oct 2020 at

RE: Buggy commit tracked to: "Re: [PATCH 2/9] iov_iter: move rw_copy_check_uvector() into lib/iov_iter.c"

2020-10-22 Thread David Laight
From: Christoph Hellwig > Sent: 22 October 2020 14:24 > > On Thu, Oct 22, 2020 at 11:36:40AM +0200, David Hildenbrand wrote: > > My thinking: if the compiler that calls import_iovec() has garbage in > > the upper 32 bit > > > > a) gcc will zero it out and not rely on it being zero. > > b) clang

Re: [PATCH] KVM: X86: Expose KVM_HINTS_REALTIME in KVM_GET_SUPPORTED_CPUID

2020-10-22 Thread Jim Mattson
On Thu, Oct 22, 2020 at 6:02 AM Paolo Bonzini wrote: > > On 22/10/20 03:34, Wanpeng Li wrote: > > From: Wanpeng Li > > > > Per KVM_GET_SUPPORTED_CPUID ioctl documentation: > > > > This ioctl returns x86 cpuid features which are supported by both the > > hardware and kvm in its default

Re: default cpufreq gov, was: [PATCH] sched/fair: check for idle core

2020-10-22 Thread Mel Gorman
On Thu, Oct 22, 2020 at 11:12:00AM -0400, Phil Auld wrote: > > > AFAIK, not quite (added Giovanni as he has been paying more attention). > > > Schedutil has improved since it was merged but not to the extent where > > > it is a drop-in replacement. The standard it needs to meet is that > > > it is

Re: [GIT PULL] 9p update for 5.10-rc1

2020-10-22 Thread Linus Torvalds
On Thu, Oct 22, 2020 at 5:08 AM Dominique Martinet wrote: > > another harmless cycle. Quick note: your email got marked as spam for me. It's probably just gmail doing another round of spam changes, but I do note that while your smtp setup does spf, it doesn't do dkim. Which I think makes gmail

[PATCH] arm64: dts: qcom: sc7180: Fix number of interconnect cells

2020-10-22 Thread Rob Clark
From: Rob Clark Looks like thru some sort of mid-air collision, updating the # of interconnect cells for the display was missed. Fixes: e23b1220a2460 ("arm64: dts: qcom: sc7180: Increase the number of interconnect cells") Signed-off-by: Rob Clark --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 2

Re: [PATCH v4] mm: memcg/slab: Stop reparented obj_cgroups from charging root

2020-10-22 Thread Shakeel Butt
On Thu, Oct 22, 2020 at 5:29 AM Richard Palethorpe wrote: > > When use_hierarchy=1, SLAB objects which outlive their descendant > memcg are moved to their parent memcg where they may be uncharged > because charges are made recursively from leaf to root nodes. > > However when use_hierarchy=0,

Re: [PATCH] KVM: X86: Expose KVM_HINTS_REALTIME in KVM_GET_SUPPORTED_CPUID

2020-10-22 Thread Paolo Bonzini
On 22/10/20 18:35, Jim Mattson wrote: > On Thu, Oct 22, 2020 at 6:02 AM Paolo Bonzini wrote: >> >> On 22/10/20 03:34, Wanpeng Li wrote: >>> From: Wanpeng Li >>> >>> Per KVM_GET_SUPPORTED_CPUID ioctl documentation: >>> >>> This ioctl returns x86 cpuid features which are supported by both the >>>

[GIT PULL] remoteproc updates for v5.10

2020-10-22 Thread Bjorn Andersson
The following changes since commit 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5: Linux 5.9-rc1 (2020-08-16 13:04:57 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/andersson/remoteproc.git tags/rproc-v5.10 for you to fetch changes up to

Re: [PATCH V9 4/4] fuse: Handle asynchronous read and write in passthrough

2020-10-22 Thread Alessio Balsini
On Wed, Sep 30, 2020 at 08:54:03PM +0200, Miklos Szeredi wrote: > On Thu, Sep 24, 2020 at 3:13 PM Alessio Balsini wrote: > > > > Extend the passthrough feature by handling asynchronous IO both for read > > and write operations. > > > > When an AIO request is received, if the request targets a

Re: [PATCH] mm,thp,shmem: limit shmem THP alloc gfp_mask

2020-10-22 Thread Rik van Riel
On Fri, 2020-10-23 at 00:00 +0800, Yu Xu wrote: > On 10/22/20 11:48 AM, Rik van Riel wrote: > > The allocation flags of anonymous transparent huge pages can be > > controlled > > through the files in /sys/kernel/mm/transparent_hugepage/defrag, > > which can > > help the system from getting bogged

Re: Buggy commit tracked to: "Re: [PATCH 2/9] iov_iter: move rw_copy_check_uvector() into lib/iov_iter.c"

2020-10-22 Thread Matthew Wilcox
On Thu, Oct 22, 2020 at 04:35:17PM +, David Laight wrote: > Wait... > readv(2) defines: > ssize_t readv(int fd, const struct iovec *iov, int iovcnt); It doesn't really matter what the manpage says. What does the AOSP libc header say? > But the syscall is defined as: > >

Re: [PATCH] powerpc/bitops: Fix possible undefined behaviour with fls() and fls64()

2020-10-22 Thread Segher Boessenkool
On Thu, Oct 22, 2020 at 02:05:46PM +, Christophe Leroy wrote: > fls() and fls64() are using __builtin_ctz() and _builtin_ctzll(). > On powerpc, those builtins trivially use ctlzw and ctlzd power > instructions. > > Allthough those instructions provide the expected result with > input argument

Re: [PATCH rfc 0/2] mm: cma: make cma_release() non-blocking

2020-10-22 Thread Mike Kravetz
On 10/21/20 7:33 PM, Roman Gushchin wrote: > On Wed, Oct 21, 2020 at 05:15:53PM -0700, Mike Kravetz wrote: >> On 10/16/20 3:52 PM, Roman Gushchin wrote: >>> This small patchset makes cma_release() non-blocking and simplifies >>> the code in hugetlbfs, where previously we had to temporarily drop

Re: ltp or kvm triggerable lockdep alloc_pid() deadlock gripe

2020-10-22 Thread Sebastian Andrzej Siewior
On 2020-10-22 07:21:13 [+0200], Mike Galbraith wrote: > Greetings, Hi, > The gripe below is repeatable in two ways here, boot with nomodeset so > nouveau doesn't steal the lockdep show when I then fire up one of my > (oink) full distro VM's, or from an ltp directory ./runltp -f cpuset > with the

[PATCH v2] mm,thp,shmem: limit shmem THP alloc gfp_mask

2020-10-22 Thread Rik van Riel
The allocation flags of anonymous transparent huge pages can be controlled through the files in /sys/kernel/mm/transparent_hugepage/defrag, which can help the system from getting bogged down in the page reclaim and compaction code when many THPs are getting allocated simultaneously. However, the

Re: kernel BUG at mm/page-writeback.c:2241 [ BUG_ON(PageWriteback(page); ]

2020-10-22 Thread Matthew Wilcox
On Thu, Oct 22, 2020 at 07:23:33AM -0600, William Kucharski wrote: > > > > On Oct 21, 2020, at 6:49 PM, Matthew Wilcox wrote: > > > > On Wed, Oct 21, 2020 at 08:30:18PM -0400, Qian Cai wrote: > >> Today's linux-next starts to trigger this wondering if anyone has any clue. > > > > I've seen

Re: [PATCH 4/8] drm/mediatek: dsi: add pdata variable to start clk in HS mode

2020-10-22 Thread Fabien Parent
Hi Chun-Kuang, On Wed, Oct 21, 2020 at 7:07 PM Chun-Kuang Hu wrote: > > Hi, Fabien: > > Fabien Parent 於 2020年10月21日 週三 上午1:43寫道: > > > > On MT8167, DSI seems to work fine only if we start the clk in HS mode. > > If we don't start the clk in HS but try to switch later to HS, the > > display does

Re: [PATCH] PM: sleep: remove unneeded break

2020-10-22 Thread Rafael J. Wysocki
On Mon, Oct 19, 2020 at 10:03 PM wrote: > > From: Tom Rix > > A break is not needed if it is preceded by a return > > Signed-off-by: Tom Rix > --- > drivers/base/power/main.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c > index

Re: [PATCH] mm: memcontrol: add file_thp, shmem_thp to memory.stat

2020-10-22 Thread Rik van Riel
On Thu, 2020-10-22 at 11:18 -0400, Johannes Weiner wrote: > index e80aa9d2db68..334ce608735c 100644 > --- a/mm/filemap.c > +++ b/mm/filemap.c > @@ -204,9 +204,9 @@ static void unaccount_page_cache_page(struct > address_space *mapping, > if (PageSwapBacked(page)) { >

RE: Buggy commit tracked to: "Re: [PATCH 2/9] iov_iter: move rw_copy_check_uvector() into lib/iov_iter.c"

2020-10-22 Thread David Laight
From: Matthew Wilcox > Sent: 22 October 2020 17:41 > > On Thu, Oct 22, 2020 at 04:35:17PM +, David Laight wrote: > > Wait... > > readv(2) defines: > > ssize_t readv(int fd, const struct iovec *iov, int iovcnt); > > It doesn't really matter what the manpage says. What does the AOSP >

drivers/net/wan/fsl_ucc_hdlc.c:368:29: sparse: sparse: incorrect type in assignment (different base types)

2020-10-22 Thread kernel test robot
date: 11 months ago config: powerpc64-randconfig-s031-20201022 (attached as .config) compiler: powerpc64-linux-gcc (GCC) 9.3.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get

Re: [PATCH] mm: memcontrol: add file_thp, shmem_thp to memory.stat

2020-10-22 Thread Shakeel Butt
On Thu, Oct 22, 2020 at 8:20 AM Johannes Weiner wrote: > > As huge page usage in the page cache and for shmem files proliferates > in our production environment, the performance monitoring team has > asked for per-cgroup stats on those pages. > > We already track and export anon_thp per cgroup.

Re: [PATCH v2] mm,thp,shmem: limit shmem THP alloc gfp_mask

2020-10-22 Thread Vlastimil Babka
On 10/22/20 6:45 PM, Rik van Riel wrote: The allocation flags of anonymous transparent huge pages can be controlled through the files in /sys/kernel/mm/transparent_hugepage/defrag, which can help the system from getting bogged down in the page reclaim and compaction code when many THPs are

[GIT PULL] rpmsg updates for 5.10

2020-10-22 Thread Bjorn Andersson
The following changes since commit 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5: Linux 5.9-rc1 (2020-08-16 13:04:57 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/andersson/remoteproc.git tags/rpmsg-v5.10 for you to fetch changes up to

[GIT PULL] ext4 changes for 5.10

2020-10-22 Thread Theodore Y. Ts'o
The following changes since commit a1b8638ba1320e6684aa98233c15255eb803fac7: Linux 5.9-rc7 (2020-09-27 14:38:10 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git tags/ext4_for_linus for you to fetch changes up to

[PATCH] drm/edid: Fix uninitialized variable in drm_cvt_modes()

2020-10-22 Thread Lyude Paul
Noticed this when trying to compile with -Wall on a kernel fork. We potentially don't set width here, which causes the compiler to complain about width potentially being uninitialized in drm_cvt_modes(). So, let's fix that. Signed-off-by: Lyude Paul Cc: # v5.9+ Fixes: 3f649ab728cd ("treewide:

[PATCH] arm64: dts: imx: Add Beacon i.MX8M Nano development kit

2020-10-22 Thread Adam Ford
Beacon Embeddedworks is launching a development kit based on the i.MX8M Nano SoC. The kit consists of a System on Module (SOM) + baseboard. The SOM has the SoC, eMMC, and Ethernet. The baseboard has an wm8962 audio CODEC, and a single USB OTG. Signed-off-by: Adam Ford --- Based on top of

Re: [PATCH] mm: memcontrol: add file_thp, shmem_thp to memory.stat

2020-10-22 Thread Rik van Riel
On Thu, 2020-10-22 at 12:49 -0400, Rik van Riel wrote: > On Thu, 2020-10-22 at 11:18 -0400, Johannes Weiner wrote: > > > index e80aa9d2db68..334ce608735c 100644 > > --- a/mm/filemap.c > > +++ b/mm/filemap.c > > @@ -204,9 +204,9 @@ static void unaccount_page_cache_page(struct > > address_space

[PATCH] Add power/gpu_frequency tracepoint.

2020-10-22 Thread Peiyong Lin
Historically there is no common trace event for GPU frequency, in downstream Android each different hardware vendor implements their own way to expose GPU frequency, for example as a debugfs node. This patch standardize it as a common trace event in upstream linux kernel to help the ecosystem

Re: [RFCv2 14/16] KVM: Handle protected memory in __kvm_map_gfn()/__kvm_unmap_gfn()

2020-10-22 Thread Edgecombe, Rick P
On Thu, 2020-10-22 at 15:06 +0300, Kirill A. Shutemov wrote: > > I think the page could have got unmapped since the gup via the > > hypercall on another CPU. It could be an avenue for the guest to > > crash > > the host. > > Hm.. I'm not sure I follow. Could you elaborate on what scenario you >

Re: [PATCH] acpi: utils: remove unneeded break

2020-10-22 Thread Rafael J. Wysocki
On Mon, Oct 19, 2020 at 10:05 PM wrote: > > From: Tom Rix > > A break is not needed if it is preceded by a return > > Signed-off-by: Tom Rix > --- > drivers/acpi/utils.c | 4 > 1 file changed, 4 deletions(-) > > diff --git a/drivers/acpi/utils.c b/drivers/acpi/utils.c > index

Re: Buggy commit tracked to: "Re: [PATCH 2/9] iov_iter: move rw_copy_check_uvector() into lib/iov_iter.c"

2020-10-22 Thread Nick Desaulniers
On Thu, Oct 22, 2020 at 9:40 AM Matthew Wilcox wrote: > > On Thu, Oct 22, 2020 at 04:35:17PM +, David Laight wrote: > > Wait... > > readv(2) defines: > > ssize_t readv(int fd, const struct iovec *iov, int iovcnt); > > It doesn't really matter what the manpage says. What does the AOSP >

Re: [PATCH RFC v2 00/21] kasan: hardware tag-based mode for production use on arm64

2020-10-22 Thread Andrey Konovalov
On Thu, Oct 22, 2020 at 5:16 PM Dmitry Vyukov wrote: > > On Thu, Oct 22, 2020 at 3:19 PM Andrey Konovalov > wrote: > > > > This patchset is not complete (hence sending as RFC), but I would like to > > start the discussion now and hear people's opinions regarding the > > questions mentioned

Re: [PATCH] arm64: dts: qcom: sc7180: Fix number of interconnect cells

2020-10-22 Thread Rob Clark
On Thu, Oct 22, 2020 at 9:36 AM Rob Clark wrote: > > From: Rob Clark > > Looks like thru some sort of mid-air collision, updating the # of > interconnect cells for the display was missed. > > Fixes: e23b1220a2460 ("arm64: dts: qcom: sc7180: Increase the number of > interconnect cells") >

Re: [PATCH 2/6] media: camss: ispif: Correctly reset based on the VFE ID

2020-10-22 Thread AngeloGioacchino Del Regno
Il giorno mar 20 ott 2020 alle ore 11:03 Robert Foss ha scritto: > > I found a build issue in this commit. > > > On Tue, 20 Oct 2020 at 10:59, Robert Foss wrote: > > > > Nice catch! This patch looks good to me. > > Thank you! :))) > > Signed-off-by: Robert Foss > > > > On Sun, 18 Oct 2020 at

[PATCH v11 01/14] s390/vfio-ap: No need to disable IRQ after queue reset

2020-10-22 Thread Tony Krowiak
The queues assigned to a matrix mediated device are currently reset when: * The VFIO_DEVICE_RESET ioctl is invoked * The mdev fd is closed by userspace (QEMU) * The mdev is removed from sysfs. Immediately after the reset of a queue, a call is made to disable interrupts for the queue. This is

[PATCH v11 02/14] 390/vfio-ap: use new AP bus interface to search for queue devices

2020-10-22 Thread Tony Krowiak
This patch refactors the vfio_ap device driver to use the AP bus's ap_get_qdev() function to retrieve the vfio_ap_queue struct containing information about a queue that is bound to the vfio_ap device driver. The bus's ap_get_qdev() function retrieves the queue device from a hashtable keyed by

[PATCH v11 04/14] s390/zcrypt: driver callback to indicate resource in use

2020-10-22 Thread Tony Krowiak
Introduces a new driver callback to prevent a root user from unbinding an AP queue from its device driver if the queue is in use. The callback will be invoked whenever a change to the AP bus's sysfs apmask or aqmask attributes would result in one or more AP queues being removed from its driver. If

Re: kernel BUG at mm/page-writeback.c:2241 [ BUG_ON(PageWriteback(page); ]

2020-10-22 Thread Matthew Wilcox
On Thu, Oct 22, 2020 at 11:35:26AM -0400, Qian Cai wrote: > On Thu, 2020-10-22 at 01:49 +0100, Matthew Wilcox wrote: > > On Wed, Oct 21, 2020 at 08:30:18PM -0400, Qian Cai wrote: > > > Today's linux-next starts to trigger this wondering if anyone has any > > > clue. > > > > I've seen that

[PATCH v11 12/14] s390/vfio-ap: handle host AP config change notification

2020-10-22 Thread Tony Krowiak
The motivation for config change notification is to enable the vfio_ap device driver to handle hot plug/unplug of AP queues for a KVM guest as a bulk operation. For example, if a new APID is dynamically assigned to the host configuration, then a queue device will be created for each APQN that can

[PATCH v11 10/14] s390/vfio-ap: allow hot plug/unplug of AP resources using mdev device

2020-10-22 Thread Tony Krowiak
Let's hot plug/unplug adapters, domains and control domains assigned to or unassigned from an AP matrix mdev device while it is in use by a guest per the following: * Hot plug AP adapter: When the APID of an adapter is assigned to a matrix mdev in use by a KVM guest, the adapter will be hot

[PATCH v11 11/14] s390/zcrypt: Notify driver on config changed and scan complete callbacks

2020-10-22 Thread Tony Krowiak
This patch intruduces an extension to the ap bus to notify device drivers when the host AP configuration changes - i.e., adapters, domains or control domains are added or removed. To that end, two new callbacks are introduced for AP device drivers: void (*on_config_changed)(struct

[PATCH v11 06/14] s390/vfio-ap: introduce shadow APCB

2020-10-22 Thread Tony Krowiak
The APCB is a field within the CRYCB that provides the AP configuration to a KVM guest. Let's introduce a shadow copy of the KVM guest's APCB and maintain it for the lifespan of the guest. Signed-off-by: Tony Krowiak --- drivers/s390/crypto/vfio_ap_ops.c | 24 +++-

[PATCH v11 08/14] s390/vfio-ap: hot plug/unplug queues on bind/unbind of queue device

2020-10-22 Thread Tony Krowiak
In response to the probe or remove of a queue device, if a KVM guest is using the matrix mdev to which the APQN of the queue device is assigned, the vfio_ap device driver must respond accordingly. In an ideal world, the queue device being probed would be hot plugged into the guest. Likewise, the

[PATCH v11 05/14] s390/vfio-ap: implement in-use callback for vfio_ap driver

2020-10-22 Thread Tony Krowiak
Let's implement the callback to indicate when an APQN is in use by the vfio_ap device driver. The callback is invoked whenever a change to the apmask or aqmask would result in one or more queue devices being removed from the driver. The vfio_ap device driver will indicate a resource is in use if

Re: [PATCH] KVM: X86: Expose KVM_HINTS_REALTIME in KVM_GET_SUPPORTED_CPUID

2020-10-22 Thread Jim Mattson
On Thu, Oct 22, 2020 at 9:37 AM Paolo Bonzini wrote: > > On 22/10/20 18:35, Jim Mattson wrote: > > On Thu, Oct 22, 2020 at 6:02 AM Paolo Bonzini wrote: > >> > >> On 22/10/20 03:34, Wanpeng Li wrote: > >>> From: Wanpeng Li > >>> > >>> Per KVM_GET_SUPPORTED_CPUID ioctl documentation: > >>> > >>>

[PATCH v11 09/14] s390/vfio-ap: allow assignment of unavailable AP queues to mdev device

2020-10-22 Thread Tony Krowiak
The current implementation does not allow assignment of an AP adapter or domain to an mdev device if each APQN resulting from the assignment does not reference an AP queue device that is bound to the vfio_ap device driver. This patch allows assignment of AP resources to the matrix mdev as long as

[PATCH v11 14/14] s390/vfio-ap: update docs to include dynamic config support

2020-10-22 Thread Tony Krowiak
Update the documentation in vfio-ap.rst to include information about the AP dynamic configuration support (i.e., hot plug of adapters, domains and control domains via the matrix mediated device's sysfs assignment attributes). Signed-off-by: Tony Krowiak --- Documentation/s390/vfio-ap.rst | 362

[PATCH v11 03/14] s390/vfio-ap: manage link between queue struct and matrix mdev

2020-10-22 Thread Tony Krowiak
Let's create links between each queue device bound to the vfio_ap device driver and the matrix mdev to which the queue is assigned. The idea is to facilitate efficient retrieval of the objects representing the queue devices and matrix mdevs as well as to verify that a queue assigned to a matrix

[PATCH v11 00/14] s390/vfio-ap: dynamic configuration support

2020-10-22 Thread Tony Krowiak
The current design for AP pass-through does not support making dynamic changes to the AP matrix of a running guest resulting in a few deficiencies this patch series is intended to mitigate: 1. Adapters, domains and control domains can not be added to or removed from a running guest. In order

[PATCH v11 07/14] s390/vfio-ap: sysfs attribute to display the guest's matrix

2020-10-22 Thread Tony Krowiak
The matrix of adapters and domains configured in a guest's APCB may differ from the matrix of adapters and domains assigned to the matrix mdev, so this patch introduces a sysfs attribute to display the matrix of a guest using the matrix mdev. For a matrix mdev denoted by $uuid, the crycb for a

[PATCH v11 13/14] s390/vfio-ap: handle AP bus scan completed notification

2020-10-22 Thread Tony Krowiak
Implements the driver callback invoked by the AP bus when the AP bus scan has completed. Since this callback is invoked after binding the newly added devices to their respective device drivers, the vfio_ap driver will attempt to hot plug the adapters, domains and control domains into each guest

Re: [PATCH 4/5] RISC-V: Protect .init.text & .init.data

2020-10-22 Thread Atish Patra
On Thu, Oct 22, 2020 at 12:22 AM Anup Patel wrote: > > On Thu, Oct 22, 2020 at 10:33 AM Anup Patel wrote: > > > > On Thu, Oct 22, 2020 at 7:01 AM Atish Patra wrote: > > > > > > On Fri, Oct 16, 2020 at 11:24 AM Atish Patra > > > wrote: > > > > > > > > On Tue, Oct 13, 2020 at 10:24 PM Atish

[PATCH] arm64: dts: imx8mm: Add GPU node

2020-10-22 Thread Adam Ford
According to the documentation from NXP, the i.MX8M Nano has a Vivante GC7000 Ultra Lite as its GPU core. With this patch, the Etnaviv driver presents the GPU as: etnaviv-gpu 3800.gpu: model: GC7000, revision: 6203 It uses the GPCV2 controller to enable the power domain for the GPU.

Re: [PATCH rfc 0/2] mm: cma: make cma_release() non-blocking

2020-10-22 Thread Roman Gushchin
On Thu, Oct 22, 2020 at 09:42:11AM -0700, Mike Kravetz wrote: > On 10/21/20 7:33 PM, Roman Gushchin wrote: > > On Wed, Oct 21, 2020 at 05:15:53PM -0700, Mike Kravetz wrote: > >> On 10/16/20 3:52 PM, Roman Gushchin wrote: > >>> This small patchset makes cma_release() non-blocking and simplifies >

Re: [PATCH v5 0/3] iommu/arm-smmu-qcom: Support maintaining bootloader mappings

2020-10-22 Thread Steev Klimaszewski
On 10/19/20 1:23 PM, Bjorn Andersson wrote: > This is the revised fourth attempt of inheriting the stream mapping for > the framebuffer on many Qualcomm platforms, in order to not hit > catastrophic faults during arm-smmu initialization. > > The new approach does, based on Robin's suggestion,

Re: Performance regressions in "boot_time" tests in Linux 5.8 Kernel

2020-10-22 Thread Rahul Gopakumar
Hi Baoquan, >> Can you tell how you measure the boot time?  Our test is actually boothalt, time reported by this test includes both boot-up and shutdown time. >> At above, you said "Patch on latest commit - 20.161 secs", >> could you tell where this 20.161 secs comes from, So this time is

Re: [PATCH] perf/x86/intel: make anythread filter support conditional

2020-10-22 Thread Stephane Eranian
On Thu, Oct 22, 2020 at 1:00 AM Peter Zijlstra wrote: > > On Wed, Oct 21, 2020 at 02:16:12PM -0700, Stephane Eranian wrote: > > Starting with Arch Perfmon v5, the anythread filter on generic counters may > > be > > deprecated. The current kernel was exporting the any filter without > >

Re: [PATCH v4] mm: memcg/slab: Stop reparented obj_cgroups from charging root

2020-10-22 Thread Roman Gushchin
On Thu, Oct 22, 2020 at 09:37:02AM -0700, Shakeel Butt wrote: > On Thu, Oct 22, 2020 at 5:29 AM Richard Palethorpe > wrote: > > > > When use_hierarchy=1, SLAB objects which outlive their descendant > > memcg are moved to their parent memcg where they may be uncharged > > because charges are made

Re: [PATCH rfc 0/2] mm: cma: make cma_release() non-blocking

2020-10-22 Thread Mike Kravetz
On 10/22/20 10:16 AM, Roman Gushchin wrote: > As now, I want to unblock Zi Yan on his work on 1 GB THPs, so maybe > we can go with introducing cma_release_nowait(), as I suggested in > the other e-mail in this thread? Do you have any objections? No objections from me. And, I like that it could

[PATCH v4] Add power/gpu_frequency tracepoint.

2020-10-22 Thread Peiyong Lin
Historically there is no common trace event for GPU frequency, in downstream Android each different hardware vendor implements their own way to expose GPU frequency, for example as a debugfs node. This patch standardize it as a common trace event in upstream linux kernel to help the ecosystem

Re: [PATCH] can: vxcan: Fix memleak in vxcan_newlink

2020-10-22 Thread Oliver Hartkopp
On 22.10.20 18:14, Jakub Kicinski wrote: On Wed, 21 Oct 2020 13:20:16 +0200 Oliver Hartkopp wrote: On 21.10.20 07:21, Dinghao Liu wrote: When rtnl_configure_link() fails, peer needs to be freed just like when register_netdevice() fails. Signed-off-by: Dinghao Liu Acked-by: Oliver

Re: [PATCH v4] driver/perf: Add PMU driver for the ARM DMC-620 memory controller

2020-10-22 Thread Robin Murphy
On 2020-10-21 00:10, Tuan Phan wrote: DMC-620 PMU supports total 10 counters which each is independently programmable to different events and can be started and stopped individually. Currently, it only supports ACPI. Other platforms feel free to test and add support for device tree. Usage

Re: [PATCH v1] ARM: vfp: Use long jump to fix THUMB2 kernel compilation error

2020-10-22 Thread Russell King - ARM Linux admin
On Thu, Oct 22, 2020 at 07:34:38PM +0300, Dmitry Osipenko wrote: > 22.10.2020 19:23, Russell King - ARM Linux admin пишет: > > On Thu, Oct 22, 2020 at 06:20:40PM +0200, Ard Biesheuvel wrote: > >> On Thu, 22 Oct 2020 at 18:11, Russell King - ARM Linux admin > >> wrote: > >>> > >>> On Thu, Oct 22,

Re: [PATCH] can: vxcan: Fix memleak in vxcan_newlink

2020-10-22 Thread Marc Kleine-Budde
On 10/22/20 7:34 PM, Oliver Hartkopp wrote: > @Marc: Can you please make sure that it doesn't get into upstream? Tnx! Ok, I've removed can: vxcan: Fix memleak in vxcan_newlink [Dinghao Liu] from my linux-can/testing. Marc -- Pengutronix e.K. | Marc Kleine-Budde

<    5   6   7   8   9   10   11   >