Re: [PATCH v7 04/11] dmaengine: Introduce max SG list entries capability

2020-07-10 Thread Peter Ujfalusi
On 10/07/2020 1.45, Serge Semin wrote: > Some devices may lack the support of the hardware accelerated SG list > entries automatic walking through and execution. In this case a burden of > the SG list traversal and DMA engine re-initialization lies on the > DMA engine driver (normally implemente

Re: [PATCH] kcmp: add separate Kconfig symbol for kcmp syscall

2020-07-10 Thread Cyrill Gorcunov
On Fri, Jul 10, 2020 at 09:56:31AM +0200, Rasmus Villemoes wrote: > The ability to check open file descriptions for equality (without > resorting to unreliable fstat() and fcntl(F_GETFL) comparisons) can be > useful outside of the checkpoint/restore use case - for example, > systemd uses kcmp() to

Re: [PATCH 0/4] Add support for GPU load values

2020-07-10 Thread Lucas Stach
Hi Christian, Am Freitag, den 10.07.2020, 09:41 +0200 schrieb Christian Gmeiner: > This patch series add support for loadavg values for GPU > sub-components. I am adding a SMA algorithm as I was not > really sure if EWMA would be a good fit for this use case. 1 second is a pretty long window in G

linux-next: Tree for Jul 10

2020-07-10 Thread Stephen Rothwell
Hi all, Changes since 20200709: My fixes tree contains: dbf24e30ce2e ("device_cgroup: Fix RCU list debugging warning") b236d81d9e4f ("powerpc/boot/dts: Fix dtc "pciex" warnings") The kbuild tree still had its build failure for which I reverted a commit. The scmi tree lost its build failure

[PATCH] ARM: dts: imx6qp-sabresd: enable sata

2020-07-10 Thread Richard Zhu
Enable SATA on iMX6QP SABRESD board. Signed-off-by: Richard Zhu Reviewed-by: Fabio Estevam --- arch/arm/boot/dts/imx6qp-sabresd.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/imx6qp-sabresd.dts b/arch/arm/boot/dts/imx6qp-sabresd.dts index f1b9cb104fdd..480e73183f

[PATCH] ARM: dts: imx6qp-sabreauto: enable sata

2020-07-10 Thread Richard Zhu
Enable SATA on iMX6QP SABREAUTO board. Signed-off-by: Richard Zhu Reviewed-by: Fabio Estevam --- arch/arm/boot/dts/imx6qp-sabreauto.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/imx6qp-sabreauto.dts b/arch/arm/boot/dts/imx6qp-sabreauto.dts index d4caeeb0af70..63

Re: [PATCH 1/2] memory: samsung: exynos5422-dmc: Adjust polling interval and uptreshold

2020-07-10 Thread Lukasz Luba
Hi Chanwoo, On 7/9/20 5:08 AM, Chanwoo Choi wrote: Hi Lukasz, On 7/9/20 12:34 AM, Lukasz Luba wrote: In order to react faster and make better decisions under some workloads, benchmarking the memory subsystem behavior, adjust the polling interval and upthreshold value used by the simple_ondeman

Re: [REGRESSION] mlx5: Driver remove during hot unplug is broken

2020-07-10 Thread Niklas Schnelle
On 7/9/20 8:34 PM, Parav Pandit wrote: > On 7/9/2020 3:36 PM, Niklas Schnelle wrote: >> >> On 7/8/20 5:44 PM, Parav Pandit wrote: ... snip .. > >>> >> As is the patch above fixes the dereference but results in the same >> completion error >> as current 5.8-rc4 > > Below patch should hopefull

Re: [PATCH] KVM: nSVM: vmentry ignores EFER.LMA and possibly RFLAGS.VM

2020-07-10 Thread Maxim Levitsky
On Thu, 2020-07-09 at 20:41 +0200, Paolo Bonzini wrote: > On 09/07/20 20:40, Jim Mattson wrote: > > On Thu, Jul 9, 2020 at 11:31 AM Paolo Bonzini wrote: > > > On 09/07/20 20:28, Jim Mattson wrote: > > > > > That said, the VMCB here is guest memory and it can change under our > > > > > feet between

[PATCH][next] drm/amdgpu: fix spelling mistake "Falied" -> "Failed"

2020-07-10 Thread Colin King
From: Colin Ian King There is a spelling mistake in a DRM_ERROR error message. Fix it. Signed-off-by: Colin Ian King --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/am

Re: 回复: WARNING in submit_audio_out_urb/usb_submit_urb

2020-07-10 Thread Takashi Iwai
On Fri, 10 Jul 2020 10:12:43 +0200, Zhang, Qiang wrote: > > > > > 发件人: linux-kernel-ow...@vger.kernel.org > 代表 syzbot > 发送时间: 2020年7月9日 21:34 > 收件人: andreyk...@google.com; gre...@linuxfoundation.org; > ingras...@epigenesys.com; linux-kernel@vger.kerne

Re: [PATCH v5 2/4] printk: add lockless ringbuffer

2020-07-10 Thread Sergey Senozhatsky
On (20/07/09 15:29), John Ogness wrote: [..] > +/* > + * A data block: mapped directly to the beginning of the data block area > + * specified as a logical position within the data ring. > + * > + * @id: the ID of the associated descriptor > + * @data: the writer data > + * > + * Note that the si

Congratulations

2020-07-10 Thread Mr.Mark. Bill
CONGRATULATIONS Congratulations we proudly bring to your notice that your profile has win in the www.google.com online draws of the FREE LOTTO PROMOTIONS. You have been selected as the second category winner in www.google.com draws done via computer ballot system, there were no tickets purcha

Re: [PATCH 0/4] Add support for GPU load values

2020-07-10 Thread Christian Gmeiner
Hoi Lucas Am Fr., 10. Juli 2020 um 10:31 Uhr schrieb Lucas Stach : > > Hi Christian, > > Am Freitag, den 10.07.2020, 09:41 +0200 schrieb Christian Gmeiner: > > This patch series add support for loadavg values for GPU > > sub-components. I am adding a SMA algorithm as I was not > > really sure if E

Re: [PATCH v7 05/11] dmaengine: Introduce DMA-device device_caps callback

2020-07-10 Thread Andy Shevchenko
On Fri, Jul 10, 2020 at 01:45:44AM +0300, Serge Semin wrote: > There are DMA devices (like ours version of Synopsys DW DMAC) which have > DMA capabilities non-uniformly redistributed between the device channels. > In order to provide a way of exposing the channel-specific parameters to > the DMA en

Re: [PATCH v2] drm/bridge/synopsys: dsi: allow LP commands in video mode

2020-07-10 Thread Philippe CORNU
On 7/8/20 4:08 PM, Yannick Fertre wrote: > From: Antonio Borneo > > Current code only sends LP commands in command mode. > > Allows sending LP commands also in video mode by setting the > proper flag in DSI_VID_MODE_CFG. > > Signed-off-by: Antonio Borneo > --- > drivers/gpu/drm/bridge/syno

Re: [PATCH] drm/bridge/synopsys: dsi: add support for non-continuous HS clock

2020-07-10 Thread Philippe CORNU
On 7/1/20 9:42 PM, Yannick Fertre wrote: > From: Antonio Borneo > > Current code enables the HS clock when video mode is started or to > send out a HS command, and disables the HS clock to send out a LP > command. This is not what DSI spec specify. > > Enable HS clock either in command and in

Re: [PATCH] drm/bridge/synopsys: dsi: allow sending longer LP commands

2020-07-10 Thread Philippe CORNU
On 7/1/20 4:31 PM, Yannick Fertre wrote: > From: Antonio Borneo > > Current code does not properly computes the max length of LP > commands that can be send during H or V sync, and rely on static > values. > Limiting the max LP length to 4 byte during the V-sync is overly > conservative. > > R

Re: [PATCH v5 2/4] printk: add lockless ringbuffer

2020-07-10 Thread Sergey Senozhatsky
On (20/07/10 17:43), Sergey Senozhatsky wrote: > [..] > > > +void prb_init(struct printk_ringbuffer *rb, > > + char *text_buf, unsigned int textbits, > > + char *dict_buf, unsigned int dictbits, > > + struct prb_desc *descs, unsigned int descbits) > > +{ > > + memset(desc

Re: [RFC 07/12] media: uapi: h264: Add DPB entry field reference flags

2020-07-10 Thread Jonas Karlman
On 2020-07-10 10:13, Boris Brezillon wrote: > On Fri, 10 Jul 2020 01:21:07 -0300 > Ezequiel Garcia wrote: > >> Hello Jonas, >> >> In the context of the uAPI cleanup, >> I'm revisiting this patch. >> >> On Sun, 2019-09-01 at 12:45 +, Jonas Karlman wrote: >>> Add DPB entry flags to help indicat

[PATCH 1/5] power: supply: core: add quick charge type property

2020-07-10 Thread Qiwu Huang
From: Qiwu Huang Reports the kind of quick charge type based on different adapter power. UI will show different animation effect for different quick charge type. Signed-off-by: Qiwu Huang --- Documentation/ABI/testing/sysfs-class-power | 10 ++ drivers/power/supply/power_supply_sysfs.c

[GIT PULL] ARM: dts: uniphier: UniPhier DT updates for v5.9

2020-07-10 Thread Masahiro Yamada
Hi Olof, Arnd, Here are UniPhier DT (32bit) updates for the v5.9 merge window. Please pull! The following changes since commit 48778464bb7d346b47157d21ffde2af6b2d39110: Linux 5.8-rc2 (2020-06-21 15:45:29 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/k

[PATCH 5/5] power: supply: core: supply battery soc with decimal form

2020-07-10 Thread Qiwu Huang
From: Qiwu Huang Broadcast battery soc with decimal form. soc_decimal is the decimal part of battery soc. soc_decimal_rate is update frequency of decimal part of battery soc. Signed-off-by: Qiwu Huang --- Documentation/ABI/testing/sysfs-class-power | 20 drivers/power/supp

Re: [PATCH 1/2] dt-bindings: chrome: Add cros-ec-typec mux props

2020-07-10 Thread Prashant Malani
Hi Rob, Thought I'd check in again to see if you've had a chance to look at this proposal. Since Type C connector class framework assumes the existing "{mode,orientation,data-role}-switch" bindings for non-DT platforms already, as I see it, we can either: 1. Implement a different handling for DT

[PATCH 4/5] power: supply: core: property to control reverse charge

2020-07-10 Thread Qiwu Huang
From: Qiwu Huang Interface to control wireless reverse charge. Supply reverse charge function when enabled. Signed-off-by: Qiwu Huang --- Documentation/ABI/testing/sysfs-class-power | 13 - drivers/power/supply/power_supply_sysfs.c | 1 + include/linux/power_supply.h

Re: [PATCH 2/4] drm/etnaviv: add loadavg accounting

2020-07-10 Thread Christian Gmeiner
Hoi Lucas, Am Fr., 10. Juli 2020 um 10:19 Uhr schrieb Lucas Stach : > > Hi Christian, > > Am Freitag, den 10.07.2020, 09:41 +0200 schrieb Christian Gmeiner: > > The GPU has an idle state register where each bit represents the idle > > state of a sub-GPU component like FE or TX. Sample this registe

[PATCH 3/5] power: supply: core: add wireless signal strength property

2020-07-10 Thread Qiwu Huang
From: Qiwu Huang reports wireless signal strength. The value show degree of coupling between tx and rx. Signed-off-by: Qiwu Huang --- Documentation/ABI/testing/sysfs-class-power | 9 - drivers/power/supply/power_supply_sysfs.c | 1 + include/linux/power_supply.h| 1 +

[PATCH 2/5] power: supply: core: add wireless charger adapter type property

2020-07-10 Thread Qiwu Huang
From: Qiwu Huang Reports what type of wireless adapter connection is currently active forthe supply. for example it can show if ADAPTER_PD capable source is attached. Signed-off-by: Qiwu Huang --- Documentation/ABI/testing/sysfs-class-power | 13 + drivers/power/supply/power_supply

Re: [PATCH v7 08/11] dmaengine: dw: Add dummy device_caps callback

2020-07-10 Thread Andy Shevchenko
On Fri, Jul 10, 2020 at 01:45:47AM +0300, Serge Semin wrote: > Since some DW DMA controllers (like one installed on Baikal-T1 SoC) may > have non-uniform DMA capabilities per device channels, let's add > the DW DMA specific device_caps callback to expose that specifics up to > the DMA consumer. It'

Re: [PATCH v7 08/11] dmaengine: dw: Add dummy device_caps callback

2020-07-10 Thread Andy Shevchenko
On Fri, Jul 10, 2020 at 11:51:23AM +0300, Andy Shevchenko wrote: > On Fri, Jul 10, 2020 at 01:45:47AM +0300, Serge Semin wrote: > > Since some DW DMA controllers (like one installed on Baikal-T1 SoC) may > > have non-uniform DMA capabilities per device channels, let's add > > the DW DMA specific de

[PATCH] stmmac: pci: Add support for LS7A bridge chip

2020-07-10 Thread Zhi Li
Add gmac platform data to support LS7A bridge chip. Co-developed-by: Hongbin Li Signed-off-by: Hongbin Li Signed-off-by: Zhi Li --- drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/net/ethernet/stmicro/stmmac/s

[GIT PULL] optee bus for v5.9

2020-07-10 Thread Jens Wiklander
Hello arm-soc maintainers, Please pull these patches enabling multi-stage OP-TEE bus enumeration and also adds a TPM driver for a OP-TEE based fTPM Trusted Application. The TPM driver depends on and takes advantage of the multi-stage OP-TEE bus enumeration by indicating that it should be probed a

Re: [RESEND PATCH v5 3/6] arm64: Add tlbi_user_level TLB invalidation helper

2020-07-10 Thread Catalin Marinas
On Fri, Jul 10, 2020 at 09:20:59AM +0800, Zhenyu Ye wrote: > On 2020/7/10 0:48, Catalin Marinas wrote: > > On Thu, Jun 25, 2020 at 04:03:11PM +0800, Zhenyu Ye wrote: > >> @@ -189,8 +195,9 @@ static inline void flush_tlb_page_nosync(struct > >> vm_area_struct *vma, > >>unsigned long addr = __TL

Re: [PATCH v2 02/10] x86/percpu: Clean up percpu_to_op()

2020-07-10 Thread Peter Zijlstra
On Fri, Jul 10, 2020 at 12:38:23AM -0400, Brian Gerst wrote: > On Thu, Jul 9, 2020 at 6:30 AM Peter Zijlstra wrote: > > > > On Sat, May 30, 2020 at 06:11:19PM -0400, Brian Gerst wrote: > > > + if (0) {\ > > > + typeof(_var) pt

[GIT PULL] arm64: dts: uniphier: UniPhier DT updates for v5.9

2020-07-10 Thread Masahiro Yamada
Hi Olof, Arnd, Here are UniPhier DT (64bit) updates for the v5.9 merge window. Please pull! The following changes since commit 48778464bb7d346b47157d21ffde2af6b2d39110: Linux 5.8-rc2 (2020-06-21 15:45:29 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/ke

Re: WARNING in __kernel_write

2020-07-10 Thread Christoph Hellwig
On Thu, Jul 09, 2020 at 04:54:19PM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: 9p fails to validate the fds passed in, triggering the new WARN_ON_ONCE added in __kernel_write. Mostly harmless as only the warning is new, but I'll send a patch to better validate the fds

Re: [PATCH v2] mm/hugetlb: split hugetlb_cma in nodes with memory

2020-07-10 Thread Anshuman Khandual
On 07/10/2020 09:20 AM, Barry Song wrote: > Rather than splitting huge_cma in online nodes, it is better to do it in > nodes with memory. > Without this patch, for an ARM64 server with four numa nodes and only > node0 has memory. If I set hugetlb_cma=4G in bootargs, > > without this patch, I go

[PATCH] net/9p: validate fds in p9_fd_open

2020-07-10 Thread Christoph Hellwig
p9_fd_open just fgets file descriptors passed in from userspace, but doesn't verify that they are valid for read or writing. This gets cought down in the VFS when actually attemping a read or write, but a new warning added in linux-next upsets syzcaller. Fix this by just verifying the fds early o

Re: [PATCH 2/2] mmc: sdhci-of-aspeed: Fix clock divider calculation

2020-07-10 Thread Andrew Jeffery
On Fri, 10 Jul 2020, at 17:09, Ulf Hansson wrote: > On Thu, 9 Jul 2020 at 21:57, Eddie James wrote: > > > > When calculating the clock divider, start dividing at 2 instead of 1. > > The divider is divided by two at the end of the calculation, so starting > > at 1 may result in a divider of 0, w

Re: [PATCH v5] x86/crypto: aesni: Fix build with LLVM_IAS=1

2020-07-10 Thread Sedat Dilek
On Thu, Jul 9, 2020 at 2:56 PM Herbert Xu wrote: > > On Fri, Jul 03, 2020 at 04:32:06PM +0200, Sedat Dilek wrote: > > When building with LLVM_IAS=1 means using Clang's Integrated Assembly (IAS) > > from LLVM/Clang >= v10.0.1-rc1+ instead of GNU/as from GNU/binutils > > I see the following breakage

[PATCH] media: vpss: clean up resources in init

2020-07-10 Thread Evgeny Novikov
If platform_driver_register() fails within vpss_init() resources are not cleaned up. The patch fixes this issue by introducing the corresponding error handling. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Evgeny Novikov --- drivers/media/platform/davinci/vpss.c

Re: [PATCH] pinctrl: qcom: Handle broken PDC dual edge case on sc7180

2020-07-10 Thread Marc Zyngier
Hi Doug, On Wed, 08 Jul 2020 22:16:25 +0100, Douglas Anderson wrote: > > As per Qualcomm, there is a PDC hardware issue (with the specific IP > rev that exists on sc7180) that causes the PDC not to work properly > when configured to handle dual edges. > > Let's work around this by emulating onl

Re: [PATCH RFC] kprobes: Remove MODULES dependency

2020-07-10 Thread Peter Zijlstra
On Fri, Jul 10, 2020 at 02:45:19AM +0300, Jarkko Sakkinen wrote: > Remove MODULES dependency and migrate from module_alloc to vmalloc(). > According to Andi, the history with this dependency is that kprobes > originally required custom LKM's, which does not hold today anymore. > > Right now one ha

Re: [PATCH] kcmp: add separate Kconfig symbol for kcmp syscall

2020-07-10 Thread Rasmus Villemoes
On 10/07/2020 10.30, Cyrill Gorcunov wrote: > On Fri, Jul 10, 2020 at 09:56:31AM +0200, Rasmus Villemoes wrote: >> The ability to check open file descriptions for equality (without >> resorting to unreliable fstat() and fcntl(F_GETFL) comparisons) can be >> useful outside of the checkpoint/restore

Re: [PATCH v3 08/14] drm/panfrost: move devfreq_init()/fini() in device

2020-07-10 Thread Steven Price
On 09/07/2020 15:03, Clément Péron wrote: Later we will introduce devfreq probing regulator if they are present. As regulator should be probe only one time we need to get this logic in the device_init(). panfrost_device is already taking care of devfreq_resume() and devfreq_suspend(), so it's no

[PATCH v3 1/2] intel-hid: Fix return value check in check_acpi_dev()

2020-07-10 Thread Lu Wei
In the function check_acpi_dev(), if it fails to create platform device, the return value is ERR_PTR() or NULL. Thus it must use IS_ERR_OR_NULL to check return value. Fixes: ecc83e52b28c ("intel-hid: new hid event driver for hotkeys") Reported-by: Hulk Robot Signed-off-by: Lu Wei --- v2->v3 - Mo

[PATCH v3 2/2] intel-vbtn: Fix return value check in check_acpi_dev()

2020-07-10 Thread Lu Wei
In the function check_acpi_dev(), if it fails to create platform device, the return value is ERR_PTR() or NULL. Thus it must use IS_ERR_OR_NULL to check return value. Fixes: 332e0812 ("intel-vbtn: new driver for Intel Virtual Button") Reported-by: Hulk Robot Signed-off-by: Lu Wei --- v2->v3 - Mo

[PATCH v3 0/2] Fix return value check

2020-07-10 Thread Lu Wei
In the function check_acpi_dev(), if it fails to create platform device, the return value is ERR_PTR() or NULL. Thus it must use IS_ERR_OR_NULL to check return value. *** BLURB HERE *** Lu Wei (2): intel-hid: Fix return value check in check_acpi_dev() intel-vbtn: Fix return value check in che

Re: [PATCH v2] KVM: nVMX: fixes for preemption timer migration

2020-07-10 Thread Stefano Garzarella
Hi Paolo, On Thu, Jul 09, 2020 at 01:28:01PM -0400, Paolo Bonzini wrote: > Commit 850448f35aaf ("KVM: nVMX: Fix VMX preemption timer migration", > 2020-06-01) accidentally broke nVMX live migration from older version > by changing the userspace ABI. Restore it and, while at it, ensure > that vmx-

Re: [PATCH v3 07/14] drm/panfrost: rename error labels in device_init

2020-07-10 Thread Steven Price
On 09/07/2020 15:03, Clément Péron wrote: Rename goto labels in device_init it will be easier to maintain. Reviewed-by: Alyssa Rosenzweig Signed-off-by: Clément Péron Nice clean up, thanks. As you noted this needs rebasing as the "regulator init" message has gone. Reviewed-by: Steven Pric

Re: [PATCH v4 0/4] printk: replace ringbuffer

2020-07-10 Thread Petr Mladek
On Thu 2020-07-09 09:09:31, John Ogness wrote: > On 2020-07-08, Petr Mladek wrote: > > OK, I think that we are ready to try this in linux-next. > > I am going to push it there via printk/linux.git. > > > > [...] > > > > Of course, there are still many potential problems. The following comes > > t

Re: [PATCH v3] PCI: aardvark: Don't touch PCIe registers if no card connected

2020-07-10 Thread Lorenzo Pieralisi
On Thu, Jul 09, 2020 at 05:09:59PM +0200, Pali Rohár wrote: [...] > > I understand that but the bridge bus resource can be trimmed to just > > contain the root bus because that's the only one where there is a > > chance you can enumerate a device. > > It is possible to register only root bridge

Re: x86: crypto: fix building crc32c with clang ias

2020-07-10 Thread Sedat Dilek
[ Please CC me I am not subscribed to this ML ] [ Original patch from Arnd (see [0]) ] Hi, as reported in [1] this is the last patch we "ClangBuiltLinux folks" need to be full compliant with LLVM_IAS=1 (for example with Linux v5.8-rc4). These two commits entered recently cryptodev-2.6.git: comm

[PATCH] bpf: fix fds_example SIGSEGV error

2020-07-10 Thread Wenbo Zhang
The `BPF_LOG_BUF_SIZE`'s value is `UINT32_MAX >> 8`, so define an array with it on stack caused an overflow. Signed-off-by: Wenbo Zhang --- samples/bpf/fds_example.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/bpf/fds_example.c b/samples/bpf/fds_example.c index

[PATCH v4 05/14] drm/panfrost: use spinlock instead of atomic

2020-07-10 Thread Clément Péron
Convert busy_count to a simple int protected by spinlock. Reviewed-by: Steven Price Reviewed-by: Alyssa Rosenzweig Signed-off-by: Clément Péron --- drivers/gpu/drm/panfrost/panfrost_devfreq.c | 43 +++-- drivers/gpu/drm/panfrost/panfrost_devfreq.h | 9 - 2 files changed, 4

[PATCH v4 00/14] Add regulator devfreq support to Panfrost

2020-07-10 Thread Clément Péron
Hi, This serie cleans and adds regulator support to Panfrost devfreq. This is mostly based on comment for the freshly introduced lima devfreq. We need to add regulator support because on Allwinner the GPU OPP table defines both frequencies and voltages. First patches [01-07] should not change th

[PATCH v4 03/14] drm/panfrost: don't use pfdevfreq.busy_count to know if hw is idle

2020-07-10 Thread Clément Péron
This use devfreq variable that will be lock with spinlock in future patches. We should either introduce a function to access this one but as devfreq is optional let's just remove it. Reviewed-by: Steven Price Reviewed-by: Alyssa Rosenzweig Signed-off-by: Clément Péron --- drivers/gpu/drm/panfr

[PATCH v4 10/14] drm/panfrost: add regulators to devfreq

2020-07-10 Thread Clément Péron
Some OPP tables specify voltage for each frequency. Devfreq can handle these regulators but they should be get only 1 time to avoid issue and know who is in charge. If OPP table is probe don't init regulator. Reviewed-by: Steven Price Reviewed-by: Alyssa Rosenzweig Signed-off-by: Clément Péron

[PATCH v4 01/14] drm/panfrost: avoid static declaration

2020-07-10 Thread Clément Péron
This declaration can be avoided so change it. Reviewed-by: Steven Price Reviewed-by: Alyssa Rosenzweig Signed-off-by: Clément Péron --- drivers/gpu/drm/panfrost/panfrost_devfreq.c | 38 ++--- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/drivers/gpu/drm/panfro

[PATCH v4 13/14] [DO NOT MERGE] arm64: dts: allwinner: h6: Add GPU OPP table

2020-07-10 Thread Clément Péron
Add an Operating Performance Points table for the GPU to enable Dynamic Voltage & Frequency Scaling on the H6. The voltage range is set with minival voltage set to the target and the maximal voltage set to 1.2V. This allow DVFS framework to work properly on board with fixed regulator. Signed-off-

[PATCH v4 12/14] arm64: dts: allwinner: h6: Add cooling map for GPU

2020-07-10 Thread Clément Péron
Add a simple cooling map for the GPU. Reviewed-by: Alyssa Rosenzweig Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 22 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwin

[PATCH v4 11/14] arm64: defconfig: Enable devfreq cooling device

2020-07-10 Thread Clément Péron
Devfreq cooling device framework is used in Panfrost to throttle GPU in order to regulate its temperature. Enable this driver for ARM64 SoC. Reviewed-by: Alyssa Rosenzweig Signed-off-by: Clément Péron --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm

[PATCH v4 09/14] drm/panfrost: dynamically alloc regulators

2020-07-10 Thread Clément Péron
We will later introduce regulators managed by OPP. Only alloc regulators when it's needed. This also help use to release the regulators only when they are allocated. Reviewed-by: Steven Price Reviewed-by: Alyssa Rosenzweig Signed-off-by: Clément Péron --- drivers/gpu/drm/panfrost/panfrost_dev

[PATCH v4 07/14] drm/panfrost: rename error labels in device_init

2020-07-10 Thread Clément Péron
Rename goto labels in device_init it will be easier to maintain. Reviewed-by: Alyssa Rosenzweig Reviewed-by: Steven Price Signed-off-by: Clément Péron --- drivers/gpu/drm/panfrost/panfrost_device.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/dri

[PATCH v4 14/14] [DO NOT MERGE] arm64: dts: allwinner: force GPU regulator to be always

2020-07-10 Thread Clément Péron
Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts index 3f7ceeb1a767..14257f7476b8 100644 -

[PATCH v4 08/14] drm/panfrost: move devfreq_init()/fini() in device

2020-07-10 Thread Clément Péron
Later we will introduce devfreq probing regulator if they are present. As regulator should be probe only one time we need to get this logic in the device_init(). panfrost_device is already taking care of devfreq_resume() and devfreq_suspend(), so it's not totally illogic to move the devfreq_init()

[PATCH v4 02/14] drm/panfrost: clean headers in devfreq

2020-07-10 Thread Clément Péron
Don't include not required headers and sort them. Reviewed-by: Steven Price Reviewed-by: Alyssa Rosenzweig Signed-off-by: Clément Péron --- drivers/gpu/drm/panfrost/panfrost_devfreq.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panfrost/panfrost_

[PATCH v4 06/14] drm/panfrost: properly handle error in probe

2020-07-10 Thread Clément Péron
Introduce a boolean to know if opp table has been added. With this, we can call panfrost_devfreq_fini() in case of error and release what has been initialised. Reviewed-by: Steven Price Reviewed-by: Alyssa Rosenzweig Signed-off-by: Clément Péron --- drivers/gpu/drm/panfrost/panfrost_devfreq.c

[PATCH v4 04/14] drm/panfrost: introduce panfrost_devfreq struct

2020-07-10 Thread Clément Péron
Introduce a proper panfrost_devfreq to deal with devfreq variables. Reviewed-by: Steven Price Reviewed-by: Alyssa Rosenzweig Signed-off-by: Clément Péron --- drivers/gpu/drm/panfrost/panfrost_devfreq.c | 76 - drivers/gpu/drm/panfrost/panfrost_devfreq.h | 20 +- drivers

Re: [PATCH v7 04/11] dmaengine: Introduce max SG list entries capability

2020-07-10 Thread Serge Semin
Hello Peter On Fri, Jul 10, 2020 at 11:31:47AM +0300, Peter Ujfalusi wrote: > > > On 10/07/2020 1.45, Serge Semin wrote: > > Some devices may lack the support of the hardware accelerated SG list > > entries automatic walking through and execution. In this case a burden of > > the SG list travers

Re: [PATCH v2] KVM: nVMX: fixes for preemption timer migration

2020-07-10 Thread Paolo Bonzini
On 10/07/20 11:05, Stefano Garzarella wrote: > Hi Paolo, > > On Thu, Jul 09, 2020 at 01:28:01PM -0400, Paolo Bonzini wrote: >> Commit 850448f35aaf ("KVM: nVMX: Fix VMX preemption timer migration", >> 2020-06-01) accidentally broke nVMX live migration from older version >> by changing the userspace

[Patch v5 1/3] mm/mremap: it is sure to have enough space when extent meets requirement

2020-07-10 Thread Wei Yang
old_end is passed to these two function to check whether there is enough space to do the move, while this check is done before invoking these functions. These two functions only would be invoked when extent meets the requirement and there is one check before invoking these functions: if (exte

[Patch v5 2/3] mm/mremap: calculate extent in one place

2020-07-10 Thread Wei Yang
Page tables is moved on the base of PMD. This requires both source and destination range should meet the requirement. Current code works well since move_huge_pmd() and move_normal_pmd() would check old_addr and new_addr again. And then return to move_ptes() if the either of them is not aligned. I

[PATCH v3 1/2] intel-hid: Fix return value check in check_acpi_dev()

2020-07-10 Thread Lu Wei
In the function check_acpi_dev(), if it fails to create platform device, the return value is ERR_PTR() or NULL. Thus it must use IS_ERR_OR_NULL to check return value. Fixes: ecc83e52b28c ("intel-hid: new hid event driver for hotkeys") Reported-by: Hulk Robot Signed-off-by: Lu Wei --- drivers/p

[Patch v5 3/3] mm/mremap: start addresses are properly aligned

2020-07-10 Thread Wei Yang
After previous cleanup, extent is the minimal step for both source and destination. This means when extent is HPAGE_PMD_SIZE or PMD_SIZE, old_addr and new_addr are properly aligned too. Since these two functions are only invoked in move_page_tables, it is safe to remove the check now. Signed-off-

[Patch v5 0/3] mm/mremap: cleanup move_page_tables() a little

2020-07-10 Thread Wei Yang
move_page_tables() tries to move page table by PMD or PTE. The root reason is if it tries to move PMD, both old and new range should be PMD aligned. But current code calculate old range and new range separately. This leads to some redundant check and calculation. This cleanup tries to consolidate

[PATCH v3 0/2] Fix return value check

2020-07-10 Thread Lu Wei
In the function check_acpi_dev(), if it fails to create platform device, the return value is ERR_PTR() or NULL. Thus it must use IS_ERR_OR_NULL to check return value. --- v2->v3 - Modify format v3->v4 - Change commit number to 12 characters Lu Wei (2): intel-hid: Fix return value check in check

Re: [PATCH 2/2] mmc: sdhci-of-aspeed: Fix clock divider calculation

2020-07-10 Thread Ulf Hansson
On Thu, 9 Jul 2020 at 21:57, Eddie James wrote: > > When calculating the clock divider, start dividing at 2 instead of 1. > The divider is divided by two at the end of the calculation, so starting > at 1 may result in a divider of 0, which shouldn't happen. > > Signed-off-by: Eddie James Applied

[PATCH v3 2/2] intel-vbtn: Fix return value check in check_acpi_dev()

2020-07-10 Thread Lu Wei
In the function check_acpi_dev(), if it fails to create platform device, the return value is ERR_PTR() or NULL. Thus it must use IS_ERR_OR_NULL to check return value. Fixes: 332e081225fc ("intel-vbtn: new driver for Intel Virtual Button") Reported-by: Hulk Robot Signed-off-by: Lu Wei --- drive

Re: [PATCH v2] genpd: Fix up terminology with parent/child

2020-07-10 Thread Ulf Hansson
On Thu, 9 Jul 2020 at 14:25, Rafael J. Wysocki wrote: > > On Thu, Jul 9, 2020 at 1:32 AM Kees Cook wrote: > > > > The genpd infrastructure uses the terms master/slave, but such uses have > > no external exposures (not even in Documentation/driver-api/pm/*) and are > > not mandated by nor associat

Re: [PATCH] Drivers: hv: Change flag to write log level in panic msg to false

2020-07-10 Thread Olaf Hering
On Fri, Jun 26, Joseph Salisbury wrote: > When the kernel panics, one page worth of kmsg data is written to an allocated > page. The Hypervisor is notified of the page address trough the MSR. This > panic information is collected on the host. Since we are only collecting one > page of data, the

Re: [PATCH] irqchip/stm32-exti: map direct event to irq parent

2020-07-10 Thread Marc Zyngier
Alexandre, On Wed, 08 Jul 2020 05:57:24 +0100, kernel test robot wrote: > > [1 ] > Hi Alexandre, > > I love your patch! Perhaps something to improve: > > [auto build test WARNING on stm32/stm32-next] > [also build test WARNING on soc/for-next v5.8-rc4 next-20200707] > [If your patch is applie

Re: a question of split_huge_page

2020-07-10 Thread Alex Shi
在 2020/7/10 下午1:28, Mika Penttilä 写道: > > > On 10.7.2020 7.51, Alex Shi wrote: >> >> 在 2020/7/10 上午12:07, Kirill A. Shutemov 写道: >>> On Thu, Jul 09, 2020 at 04:50:02PM +0100, Matthew Wilcox wrote: On Thu, Jul 09, 2020 at 11:11:11PM +0800, Alex Shi wrote: > Hi Kirill & Matthew, >

Re: [RFC PATCH 7/7] lazy tlb: shoot lazies, a non-refcounting lazy tlb option

2020-07-10 Thread Peter Zijlstra
On Fri, Jul 10, 2020 at 11:56:46AM +1000, Nicholas Piggin wrote: > On big systems, the mm refcount can become highly contented when doing > a lot of context switching with threaded applications (particularly > switching between the idle thread and an application thread). > > Abandoning lazy tlb sl

Re: [Ksummit-discuss] [Tech-board-discuss] [PATCH] CodingStyle: Inclusive Terminology

2020-07-10 Thread Tibor Raschko
>>> Nobody has a problem understanding "blacklist" and "whitelist". These >>> are universally understood words even outside of computing. Claiming >>> that we need clearer alternatives is smoke and mirrors. >> >> Actually, as a non-native English speaker, the first time I saw >> "list", I had to do

Re: [PATCH] kcmp: add separate Kconfig symbol for kcmp syscall

2020-07-10 Thread Cyrill Gorcunov
On Fri, Jul 10, 2020 at 11:05:11AM +0200, Rasmus Villemoes wrote: > >> I deliberately drop the ifdef in the eventpoll.h header rather than > >> replace with KCMP_SYSCALL; it's harmless to declare a function that > >> isn't defined anywhere. > > > > Could you please point why setting #fidef KCMP_SY

Re: [PATCH v7 05/11] dmaengine: Introduce DMA-device device_caps callback

2020-07-10 Thread Serge Semin
On Fri, Jul 10, 2020 at 11:45:03AM +0300, Andy Shevchenko wrote: > On Fri, Jul 10, 2020 at 01:45:44AM +0300, Serge Semin wrote: > > There are DMA devices (like ours version of Synopsys DW DMAC) which have > > DMA capabilities non-uniformly redistributed between the device channels. > > In order to

Re: [PATCH] irqchip/stm32-exti: map direct event to irq parent

2020-07-10 Thread Alexandre Torgue
Hi Marc, On 7/10/20 11:31 AM, Marc Zyngier wrote: Alexandre, On Wed, 08 Jul 2020 05:57:24 +0100, kernel test robot wrote: [1 ] Hi Alexandre, I love your patch! Perhaps something to improve: [auto build test WARNING on stm32/stm32-next] [also build test WARNING on soc/for-next v5.8-rc4 nex

[PATCH v1] arm64: tlb: don't set the ttl value in flush_tlb_page_nosync

2020-07-10 Thread Zhenyu Ye
flush_tlb_page_nosync() may be called from pmd level, so we can not set the ttl = 3 here. The callstack is as follows: pmdp_set_access_flags ptep_set_access_flags flush_tlb_fix_spurious_fault flush_tlb_page

Re: [RFC PATCH 4/7] x86: use exit_lazy_tlb rather than membarrier_mm_sync_core_before_usermode

2020-07-10 Thread Peter Zijlstra
On Fri, Jul 10, 2020 at 11:56:43AM +1000, Nicholas Piggin wrote: > And get rid of the generic sync_core_before_usermode facility. > > This helper is the wrong way around I think. The idea that membarrier > state requires a core sync before returning to user is the easy one > that does not need hid

[PATCH v2 2/2] arm64: tlb: Use the TLBI RANGE feature in arm64

2020-07-10 Thread Zhenyu Ye
Add __TLBI_VADDR_RANGE macro and rewrite __flush_tlb_range(). When cpu supports TLBI feature, the minimum range granularity is decided by 'scale', so we can not flush all pages by one instruction in some cases. For example, when the pages = 0xe81a, let's start 'scale' from maximum, and find right

[PATCH v2 1/2] arm64: tlb: Detect the ARMv8.4 TLBI RANGE feature

2020-07-10 Thread Zhenyu Ye
ARMv8.4-TLBI provides TLBI invalidation instruction that apply to a range of input addresses. This patch detect this feature. Signed-off-by: Zhenyu Ye --- arch/arm64/include/asm/cpucaps.h | 3 ++- arch/arm64/include/asm/sysreg.h | 3 +++ arch/arm64/kernel/cpufeature.c | 10 ++ 3 fil

[PATCH v2 0/2] arm64: tlb: add support for TLBI RANGE instructions

2020-07-10 Thread Zhenyu Ye
NOTICE: this series are based on the arm64 for-next/tlbi branch: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/tlbi -- ARMv8.4-TLBI provides TLBI invalidation instruction that apply to a range of input addresses. This series add support for this feature. -- ChangeList: v2

[PATCH] MAINTAIERS: Add John Ogness as printk reviewer

2020-07-10 Thread Petr Mladek
John Ogness has started major rework of the printk code. Add him as reviewer so that he is aware of all other coming changes and could influence their integration. Signed-off-by: Petr Mladek --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 1d4aa

Re: [PATCH] blk-mq: Remove unnecessary local variable

2020-07-10 Thread Ming Lei
On Fri, Jul 10, 2020 at 04:22:10PM +0800, Baolin Wang wrote: > Hi, > > On Sat, Jul 04, 2020 at 03:26:14PM +0800, Baolin Wang wrote: > > Remove unnecessary local variable 'ret' in blk_mq_dispatch_hctx_list(). > > > > A gentle ping? Reviewed-by: Ming Lei -- Ming

[PATCH v5 00/12] Initial MStar/Sigmastar ARMv7 SoC support

2020-07-10 Thread Daniel Palmer
This patch set adds initial support for MStar/Sigmastar's Armv7 based SoCs. There is just enough here to get to a shell with an initramfs but support for a lot of the hardware is in progress and will follow. MStar also shipped chips with MIPS cores and ARM9 etc which are incompatible so I've tried

Re: [PATCH v7 08/11] dmaengine: dw: Add dummy device_caps callback

2020-07-10 Thread Serge Semin
On Fri, Jul 10, 2020 at 11:51:23AM +0300, Andy Shevchenko wrote: > On Fri, Jul 10, 2020 at 01:45:47AM +0300, Serge Semin wrote: > > Since some DW DMA controllers (like one installed on Baikal-T1 SoC) may > > have non-uniform DMA capabilities per device channels, let's add > > the DW DMA specific de

RE: [PATCH v2] mm/hugetlb: split hugetlb_cma in nodes with memory

2020-07-10 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Anshuman Khandual [mailto:anshuman.khand...@arm.com] > Sent: Friday, July 10, 2020 8:59 PM > To: Song Bao Hua (Barry Song) ; > a...@linux-foundation.org > Cc: x...@kernel.org; linux...@kvack.org; linux-kernel@vger.kernel.org; > Linuxarm ; linux-arm-ker...@list

[PATCH v5 01/12] dt-bindings: vendor-prefixes: Add mstar vendor prefix

2020-07-10 Thread Daniel Palmer
Add prefix for MStar Semiconductor, Inc. Signed-off-by: Daniel Palmer Acked-by: Rob Herring --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/binding

[PATCH v5 05/12] dt-bindings: arm: Add mstar YAML schema

2020-07-10 Thread Daniel Palmer
Signed-off-by: Daniel Palmer Reviewed-by: Rob Herring --- .../devicetree/bindings/arm/mstar.yaml| 33 +++ MAINTAINERS | 7 2 files changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/mstar.yaml diff

<    1   2   3   4   5   6   7   8   9   10   >