Re: [PATCH] kernel/cpu_pm: mark 1 function as __init to save some memory

2020-06-25 Thread Stephen Boyd
Quoting Christophe JAILLET (2020-06-21 01:33:15) > 'cpu_pm_init()' is only called via 'core_initcall'. > It can be marked as __init to save a few bytes of memory. > > Signed-off-by: Christophe JAILLET > --- Reviewed-by: Stephen Boyd

Re: [PATCH v4 1/2] firmware: google: Expose CBMEM over sysfs

2020-06-25 Thread Stephen Boyd
Quoting patrick.rudo...@9elements.com (2020-04-07 01:29:06) > From: Patrick Rudolph > > Make all CBMEM buffers available to userland. This is useful for tools > that are currently using /dev/mem. > > Make the id, size and address available, as well as the raw table data. > > Tools can easily sc

[tip:master] BUILD SUCCESS 360f28f385350da97cd144df62b875e875200e42

2020-06-25 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git master branch HEAD: 360f28f385350da97cd144df62b875e875200e42 Merge branch 'WIP.fixes' elapsed time: 722m configs tested: 100 configs skipped: 4 The following configs have been built successfully. More configs may be teste

Re: [PATCH v3 4/5] iommu/uapi: Handle data and argsz filled by users

2020-06-25 Thread Lu Baolu
On 2020/6/25 1:07, Jacob Pan wrote: On Wed, 24 Jun 2020 14:54:49 +0800 Lu Baolu wrote: Hi Jacob, On 2020/6/24 1:03, Jacob Pan wrote: IOMMU UAPI data has a user filled argsz field which indicates the data length comes with the API call. User data is not trusted, argsz must be validated based

[PATCH net-next v2] bridge: mrp: Extend MRP netlink interface with IFLA_BRIDGE_MRP_CLEAR

2020-06-25 Thread Horatiu Vultur
In case the userspace daemon dies, then when is restarted it doesn't know if there are any MRP instances in the kernel. Therefore extend the netlink interface to allow the daemon to clear all MRP instances when is started. Signed-off-by: Horatiu Vultur --- v2: - use list_for_each_entry_safe in

Greetings

2020-06-25 Thread Mrs Lori Robinson
Greetings, I wonder why you continue neglecting my emails. Please, acknowledge the receipt of this message in reference to the subject above as I intend to send to you the details of the mail. Sometimes, try to check your spam box because most of these correspondences fall out sometimes in SPAM fo

Re: [PATCH 1/2] HID: wiimote: Initialize the controller LEDs with a device ID value

2020-06-25 Thread David Rheinsberg
Hi On Thu, 25 Jun 2020 at 00:09, David Korth wrote: > I've been manually setting the player IDs on Wii controllers when running > multiplayer games by writing to the /sys/class/leds/ directory. Having the > hid-wiimote driver do this itself significantly reduces setup time. What do you mean with

Re: [PATCH 01/10] mfd: wm8350-core: Supply description wm8350_reg_{un}lock args

2020-06-25 Thread Lee Jones
On Thu, 25 Jun 2020, Greg KH wrote: > On Thu, Jun 25, 2020 at 07:46:10AM +0100, Lee Jones wrote: > > Kerneldoc syntax is used, but not complete. Descriptions required. > > > > Prevents warnings like: > > > > drivers/mfd/wm8350-core.c:136: warning: Function parameter or member > > 'wm8350' not

Re: [PATCH 1/7] iommu/vt-d: Enforce PASID devTLB field mask

2020-06-25 Thread Lu Baolu
On 2020/6/23 23:43, Jacob Pan wrote: From: Liu Yi L Set proper masks to avoid invalid input spillover to reserved bits. Acked-by: Lu Baolu Best regards, baolu Signed-off-by: Liu Yi L Signed-off-by: Jacob Pan --- include/linux/intel-iommu.h | 4 ++-- 1 file changed, 2 insertions(+),

Re: [PATCH 2/7] iommu/vt-d: Remove global page support in devTLB flush

2020-06-25 Thread Lu Baolu
On 2020/6/23 23:43, Jacob Pan wrote: Global pages support is removed from VT-d spec 3.0 for dev TLB invalidation. This patch is to remove the bits for vSVA. Similar change already made for the native SVA. See the link below. Acked-by: Lu Baolu Best regards, baolu Link: https://lkml.org/lkm

WARNING in idr_alloc

2020-06-25 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:7ae77150 Merge tag 'powerpc-5.8-1' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15ddb42910 kernel config: https://syzkaller.appspot.com/x/.config?x=d195fe572fb15312 das

Re: [PATCH v4 2/2] firmware: google: Expose coreboot tables over sysfs

2020-06-25 Thread Stephen Boyd
Quoting patrick.rudo...@9elements.com (2020-04-07 01:29:07) > From: Patrick Rudolph > > Make all coreboot table entries available to userland. This is useful for > tools that are currently using /dev/mem. > > Besides the tag and size also expose the raw table data itself. > > Update the ABI doc

Re: [PATCH v3 0/3] printk: replace ringbuffer

2020-06-25 Thread Dave Young
Hi John, On 06/18/20 at 04:55pm, John Ogness wrote: > Hello, > > Here is a v3 for the first series to rework the printk > subsystem. The v2 and history are here [0]. This first series > only replaces the existing ringbuffer implementation. No locking > is removed. No semantics/behavior of printk a

Kernel issues with Radeon Pro WX4100 and DP->HDMI dongles

2020-06-25 Thread Maxim Levitsky
Hi, I recently tried to connect my TV and WX4100 via two different DP->HDMI dongles. One of them makes my main monitor to go dark, and system to lockup (I haven't yet debugged this futher), and the other one seems to work, most of the time, but sometimes causes a kernel panic on 5.8.0-rc1: [ +

Re: [PATCH 3/7] iommu/vt-d: Fix PASID devTLB invalidation

2020-06-25 Thread Lu Baolu
On 2020/6/23 23:43, Jacob Pan wrote: DevTLB flush can be used for both DMA request with and without PASIDs. The former uses PASID#0 (RID2PASID), latter uses non-zero PASID for SVA usage. This patch adds a check for PASID value such that devTLB flush with PASID is used for SVA case. This is more

Re: [Freedreno] [PATCH] drm/msm/dpu: add support for dither block in display

2020-06-25 Thread kalyan_t
On 2020-06-25 01:55, Rob Clark wrote: On Wed, Jun 24, 2020 at 4:57 AM Kalyan Thota wrote: This change enables dither block for primary interface in display. Enabled for 6bpc in the current version. Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 45 ++

Re: [PATCH v2 2/2] Add PWM fan controller driver for LGM SoC

2020-06-25 Thread Tanwar, Rahul
Hi Uwe, Thanks for your valuable feedback. On 19/6/2020 2:02 pm, Uwe Kleine-König wrote: > Hello Rahul, > > On Thu, Jun 18, 2020 at 08:05:13PM +0800, Rahul Tanwar wrote: >> Intel Lightning Mountain(LGM) SoC contains a PWM fan controller. >> This PWM controller does not have any other consumer,

WARNING: suspicious RCU usage in qrtr_ns_worker

2020-06-25 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:7ae77150 Merge tag 'powerpc-5.8-1' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=123db42910 kernel config: https://syzkaller.appspot.com/x/.config?x=be4578b3f1083656 das

WARNING: suspicious RCU usage in ctrl_cmd_new_lookup

2020-06-25 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:7ae77150 Merge tag 'powerpc-5.8-1' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=14a3bcf910 kernel config: https://syzkaller.appspot.com/x/.config?x=d195fe572fb15312 das

Re: [PATCH v4 6/8] arm: Break cyclic percpu include

2020-06-25 Thread Will Deacon
On Wed, Jun 24, 2020 at 07:53:20PM +0200, Peter Zijlstra wrote: > On Tue, Jun 23, 2020 at 10:02:57AM +0100, Will Deacon wrote: > > On Tue, Jun 23, 2020 at 10:36:51AM +0200, Peter Zijlstra wrote: > > > In order to use in irqflags.h, we need to make sure > > > asm/percpu.h does not itself depend on

[RFC v2] Reed-Solomon Code: Update no_eras to the actual number of errors

2020-06-25 Thread Aiden Leong
Corr and eras_pos are updated to actual correction pattern and erasure positions, but no_eras is not. When this library is used to recover lost bytes, we normally memset the lost trunk of bytes to zero as a placeholder. Unfortunately, if the lost byte is zero, b[i] is zero too. Without correct no_

[PATCH v2 3/4] dt-bindings: i2c-stm32: add SMBus Alert bindings

2020-06-25 Thread Alain Volmat
Add a new binding of the i2c-stm32f7 driver to enable the handling of the SMBUS-Alert. The I2C/SMBUS framework already provides a mechanism to enable SMBus-Alert by naming an IRQ line "smbus_alert". However, on stm32, the SMBus-Alert is part of the i2c IRQ. Using the smbus_alert naming here would

[PATCH v2 0/4] stm32-f7: Addition of SMBus Alert / Host-notify features

2020-06-25 Thread Alain Volmat
This serie adds SMBus Alert and SMBus Host-Notify features for the i2c-stm32f7. This serie v2 rework comments from the 1st serie and replace the very generic reg_client / unreg_client callback with HOST_NOTIFY only reg_hnotify_cli and unreg_hnotify_cli callbacks. Alain Volmat (4): i2c: smbus: a

[PATCH v2 4/4] i2c: stm32f7: Add SMBus-specific protocols support

2020-06-25 Thread Alain Volmat
This patch adds the support for SMBus Host notify and SMBus Alert extensions protocols This patch introduces the st,smbus-alert binding in order to enable SMBus-Alert handling. Indeed, while the I2C/SMBUS framework already provide a mechanism to enable SMBus-Alert by naming an IRQ line "smbus_aler

[PATCH v2 2/4] i2c: addition of client hnotify reg/unreg callbacks

2020-06-25 Thread Alain Volmat
Addition of two callbacks reg_hnotify_cli and unreg_hnotify_cli that can be implemented by adapter drivers in order to take action whenever a client with HOST_NOTIFY flag is being registered to it. Signed-off-by: Alain Volmat --- v2: replace generic client reg/unreg callbacks with host-notify

[PATCH v2 1/4] i2c: smbus: add core function handling SMBus host-notify

2020-06-25 Thread Alain Volmat
SMBus Host-Notify protocol, from the adapter point of view consist of receiving a message from a client, including the client address and some other data. It can be simply handled by creating a new slave device and registering a callback performing the parsing of the message received from the clie

Re: [PATCH] gpio: add GPO driver for PCA9570

2020-06-25 Thread Sungbo Eo
On 2020-06-24 22:01, Andy Shevchenko wrote: On Tue, Jun 23, 2020 at 9:06 AM Sungbo Eo wrote: This patch adds support for the PCA9570 I2C GPO expander. Tested in kernel 5.4 on an ipq40xx platform. This is my first time submitting a whole driver patch, and I'm not really familiar with this

[PATCH v2 2/2] arm64: mm: reserve per-numa CMA after numa_init

2020-06-25 Thread Barry Song
Right now, smmu is using dma_alloc_coherent() to get memory to save queues and tables. Typically, on ARM64 server, there is a default CMA located at node0, which could be far away from node2, node3 etc. with this patch, smmu will get memory from local numa node to save command queues and page table

[PATCH v2 1/2] dma-direct: provide the ability to reserve per-numa CMA

2020-06-25 Thread Barry Song
This is useful for at least two scenarios: 1. ARM64 smmu will get memory from local numa node, it can save its command queues and page tables locally. Tests show it can decrease dma_unmap latency at lot. For example, without this patch, smmu on node2 will get memory from node0 by calling dma_alloc_

[PATCH v2 0/2] make dma_alloc_coherent NUMA-aware by per-NUMA CMA

2020-06-25 Thread Barry Song
Ganapatrao Kulkarni has put some effort on making arm-smmu-v3 use local memory to save command queues[1]. I also did similar job in patch "iommu/arm-smmu-v3: allocate the memory of queues in local numa node" [2] while not realizing Ganapatrao did that before. But it seems it is much better to make

Re: [PATCH 2/2] platform/chrome: cros_ec_typec: Add TBT compat support

2020-06-25 Thread Heikki Krogerus
On Wed, Jun 24, 2020 at 01:09:24AM -0700, Prashant Malani wrote: > Add mux control support for Thunderbolt compatibility mode. > > Suggested-by: Heikki Krogerus > Co-developed-by: Azhar Shaikh > Co-developed-by: Casey Bowman > Signed-off-by: Prashant Malani Reviewed-by: Heikki Krogerus > --

Re: [PATCH 04/22] kbuild: lto: fix recordmcount

2020-06-25 Thread Peter Zijlstra
On Wed, Jun 24, 2020 at 02:45:30PM -0700, Sami Tolvanen wrote: > On Wed, Jun 24, 2020 at 11:27:37PM +0200, Peter Zijlstra wrote: > > On Wed, Jun 24, 2020 at 01:31:42PM -0700, Sami Tolvanen wrote: > > > With LTO, LLVM bitcode won't be compiled into native code until > > > modpost_link. This change p

Re: [PATCH 05/22] kbuild: lto: postpone objtool

2020-06-25 Thread Peter Zijlstra
On Wed, Jun 24, 2020 at 02:49:25PM -0700, Sami Tolvanen wrote: > On Wed, Jun 24, 2020 at 11:19:08PM +0200, Peter Zijlstra wrote: > > On Wed, Jun 24, 2020 at 01:31:43PM -0700, Sami Tolvanen wrote: > > > diff --git a/include/linux/compiler.h b/include/linux/compiler.h > > > index 30827f82ad62..12b115

Re: [fuse] 6b2fb79963: WARNING:at_fs/fuse/file.c:#tree_insert[fuse]

2020-06-25 Thread Vasily Averin
On 6/16/20 3:35 PM, Miklos Szeredi wrote: > On Mon, Jun 15, 2020 at 7:59 AM Vasily Averin wrote: >> >> On 6/15/20 3:50 AM, kernel test robot wrote: >>> FYI, we noticed the following commit (built with gcc-9): >>> >>> commit: 6b2fb79963fbed7db3ef850926d913518fd5c62f ("fuse: optimize >>> writepages

Re: cocci script from 2016 - assignment in if ?

2020-06-25 Thread Joe Perches
On Thu, 2020-06-25 at 08:49 +0200, Julia Lawall wrote: > > On Wed, 24 Jun 2020, j...@perches.com wrote: > > > https://lore.kernel.org/patchwork/patch/649705/ > > > > Any particular reason this wasn't applied? > > > > I ask because I added something similar recently to checkpatch. > > It probab

Re: [RFC 7/7] media: uapi: make H264 stateless codec interface public

2020-06-25 Thread Hans Verkuil
On 23/06/2020 20:28, Ezequiel Garcia wrote: > The H264 interface is now ready to be part of the official > public API. > > In addition, sanitize header includes. > > Signed-off-by: Ezequiel Garcia > --- > drivers/staging/media/hantro/hantro_hw.h | 5 ++--- > include/media/v4l2-

Re: [PATCH] drm/bridge: dw-mipi-dsi.c: remove unused header file

2020-06-25 Thread Daniel Vetter
On Wed, Jun 24, 2020 at 03:08:22PM +, Yannick FERTRE wrote: > Hello Angelo, > thank for patch. > > Reviewed-by: Yannick Fertre Patch applied, thanks. -Daniel > > > > On 4/3/20 3:30 PM, Angelo Ribeiro wrote: > > dw-mipi-dsi does not use any definition from drm_probe_helper. > > > > Cover

Re: [PATCH] mm: Skip opportunistic reclaim for dma pinned pages

2020-06-25 Thread Michal Hocko
On Wed 24-06-20 20:14:17, Chris Wilson wrote: > A general rule of thumb is that shrinkers should be fast and effective. > They are called from direct reclaim at the most incovenient of times when > the caller is waiting for a page. If we attempt to reclaim a page being > pinned for active dma [pin_

[PATCH v2 1/2] gpio: add GPO driver for PCA9570

2020-06-25 Thread Sungbo Eo
NXP PCA9570 is 4-bit I2C GPO expander without interrupt functionality. Its ports are controlled only by a data byte without register address. As there is no other driver similar enough to be adapted for it, a new driver is introduced here. Signed-off-by: Sungbo Eo --- v2: * move the direction fu

[PATCH v2 2/2] dt-bindings: gpio: Add bindings for NXP PCA9570

2020-06-25 Thread Sungbo Eo
This patch adds device tree bindings for the NXP PCA9570, a 4-bit I2C GPO expander. Signed-off-by: Sungbo Eo --- I don't feel I can really maintain this driver, but it seems all yaml docs have a maintainers field so I just added it... --- .../bindings/gpio/gpio-pca9570.yaml | 42 ++

[RESEND PATCH v5 5/6] arm64: tlb: Set the TTL field in flush_tlb_range

2020-06-25 Thread Zhenyu Ye
This patch uses the cleared_* in struct mmu_gather to set the TTL field in flush_tlb_range(). Signed-off-by: Zhenyu Ye Reviewed-by: Catalin Marinas --- arch/arm64/include/asm/tlb.h | 29 - arch/arm64/include/asm/tlbflush.h | 14 -- 2 files changed, 3

[RESEND PATCH v5 6/6] arm64: tlb: Set the TTL field in flush_*_tlb_range

2020-06-25 Thread Zhenyu Ye
This patch implement flush_{pmd|pud}_tlb_range() in arm64 by calling __flush_tlb_range() with the corresponding stride and tlb_level values. Signed-off-by: Zhenyu Ye --- arch/arm64/include/asm/pgtable.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/include/asm/pgtabl

Re: [PATCH 0/8] Fix a bunch of W=1 warnings in Backlight

2020-06-25 Thread Lee Jones
On Wed, 24 Jun 2020, Sam Ravnborg wrote: > Hi Lee. > > On Wed, Jun 24, 2020 at 04:43:21PM +0100, Lee Jones wrote: > > On Wed, 24 Jun 2020, Sam Ravnborg wrote: > > > > > Hi Lee. > > > > > > On Wed, Jun 24, 2020 at 03:57:13PM +0100, Lee Jones wrote: > > > > Attempting to clean-up W=1 kernel build

[PATCH 4/4] KVM: SVM: Rename svm_nested_virtualize_tpr() to nested_svm_virtualize_tpr()

2020-06-25 Thread Joerg Roedel
From: Joerg Roedel Match the naming with other nested svm functions. No functional changes. Signed-off-by: Joerg Roedel --- arch/x86/kvm/svm/svm.c | 6 +++--- arch/x86/kvm/svm/svm.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/sv

Re: [PATCH 00/22] add support for Clang LTO

2020-06-25 Thread Peter Zijlstra
On Wed, Jun 24, 2020 at 02:31:36PM -0700, Nick Desaulniers wrote: > On Wed, Jun 24, 2020 at 2:15 PM Peter Zijlstra wrote: > > > > On Wed, Jun 24, 2020 at 01:31:38PM -0700, Sami Tolvanen wrote: > > > This patch series adds support for building x86_64 and arm64 kernels > > > with Clang's Link Time O

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

2020-06-25 Thread Zhenyu Ye
Add a level-hinted parameter to __tlbi_user, which only gets used if ARMv8.4-TTL gets detected. ARMv8.4-TTL provides the TTL field in tlbi instruction to indicate the level of translation table walk holding the leaf entry for the address that is being invalidated. This patch set the default level

[RESEND PATCH v5 0/6] arm64: tlb: add support for TTL feature

2020-06-25 Thread Zhenyu Ye
In order to reduce the cost of TLB invalidation, ARMv8.4 provides the TTL field in TLBI instruction. The TTL field indicates the level of page table walk holding the leaf entry for the address being invalidated. This series provide support for this feature. When ARMv8.4-TTL is implemented, the o

[RESEND PATCH v5 2/6] arm64: Add level-hinted TLB invalidation helper

2020-06-25 Thread Zhenyu Ye
From: Marc Zyngier Add a level-hinted TLB invalidation helper that only gets used if ARMv8.4-TTL gets detected. Signed-off-by: Marc Zyngier Signed-off-by: Zhenyu Ye Reviewed-by: Catalin Marinas --- arch/arm64/include/asm/tlbflush.h | 29 + 1 file changed, 29 inser

[RESEND PATCH v5 4/6] tlb: mmu_gather: add tlb_flush_*_range APIs

2020-06-25 Thread Zhenyu Ye
From: "Peter Zijlstra (Intel)" tlb_flush_{pte|pmd|pud|p4d}_range() adjust the tlb->start and tlb->end, then set corresponding cleared_*. Signed-off-by: Peter Zijlstra (Intel) Signed-off-by: Zhenyu Ye Acked-by: Catalin Marinas --- include/asm-generic/tlb.h | 55 ---

[PATCH 1/4] KVM: SVM: Rename struct nested_state to svm_nested_state

2020-06-25 Thread Joerg Roedel
From: Joerg Roedel Renaming is only needed in the svm.h header file. No functional changes. Signed-off-by: Joerg Roedel --- arch/x86/kvm/svm/svm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/svm/svm.h b/arch/x86/kvm/svm/svm.h index 6ac4c00a5d82..6a1864

[PATCH 0/4] KVM: SVM: Code move follow-up

2020-06-25 Thread Joerg Roedel
From: Joerg Roedel Hi, here is small series to follow-up on the review comments for moving the kvm-amd module code to its own sub-directory. The comments were only about renaming structs and symbols, so there are no functional changes in these patches. The comments addressed here are all from [

[PATCH 2/4] KVM: SVM: Add vmcb_ prefix to mark_*() functions

2020-06-25 Thread Joerg Roedel
From: Joerg Roedel Make it more clear what data structure these functions operate on. No functional changes. Signed-off-by: Joerg Roedel --- arch/x86/kvm/svm/avic.c | 2 +- arch/x86/kvm/svm/nested.c | 6 +++--- arch/x86/kvm/svm/sev.c| 2 +- arch/x86/kvm/svm/svm.c| 44

[PATCH 3/4] KVM: SVM: Add svm_ prefix to set/clr/is_intercept()

2020-06-25 Thread Joerg Roedel
From: Joerg Roedel Make clear the symbols belong to the SVM code when they are built-in. No functional changes. Signed-off-by: Joerg Roedel --- arch/x86/kvm/svm/nested.c | 2 +- arch/x86/kvm/svm/svm.c| 88 +++ arch/x86/kvm/svm/svm.h| 6 +-- 3 file

[RESEND PATCH v5 1/6] arm64: Detect the ARMv8.4 TTL feature

2020-06-25 Thread Zhenyu Ye
From: Marc Zyngier In order to reduce the cost of TLB invalidation, the ARMv8.4 TTL feature allows TLBs to be issued with a level allowing for quicker invalidation. Let's detect the feature for now. Further patches will implement its actual usage. Signed-off-by: Marc Zyngier Signed-off-by: Zhe

Re: [PATCH 1/2] KVM: X86: Move ignore_msrs handling upper the stack

2020-06-25 Thread Paolo Bonzini
On 25/06/20 08:15, Sean Christopherson wrote: > IMO, kvm_cpuid() is simply buggy. If KVM attempts to access a non-existent > MSR then it darn well should warn. > > diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c > index 8a294f9747aa..7ef7283011d6 100644 > --- a/arch/x86/kvm/cpuid.c > +++

Re: DMA Engine: Transfer From Userspace

2020-06-25 Thread Thomas Ruf
> On 25 June 2020 at 02:42 Dave Jiang wrote: > > > > > On 6/21/2020 12:24 AM, Vinod Koul wrote: > > On 19-06-20, 16:31, Dave Jiang wrote: > >> > >> > >> On 6/19/2020 3:47 PM, Federico Vaga wrote: > >>> Hello, > >>> > >>> is there the possibility of using a DMA engine channel from userspace?

Re: [PATCH v3 05/15] arm64: kvm: Build hyp-entry.S separately for VHE/nVHE

2020-06-25 Thread Marc Zyngier
Hi David, On 2020-06-22 11:20, David Brazdil wrote: Hi Marc, > - void *dst = lm_alias(__bp_harden_hyp_vecs + slot * SZ_2K); > + char *vec = has_vhe() ? __bp_harden_hyp_vecs > +: kvm_nvhe_sym(__bp_harden_hyp_vecs); If we get this construct often, then something that a

Re: [PATCH V2] firmware: imx: Move i.MX SCU soc driver into imx firmware folder

2020-06-25 Thread Arnd Bergmann
On Thu, Jun 25, 2020 at 2:27 AM Anson Huang wrote: > > The i.MX SCU soc driver depends on SCU firmware driver, so it has to > use platform driver model for proper defer probe operation, since > it has no device binding in DT file, a simple platform device is > created together inside the platform

Re: [PATCH v2 0/6] kernfs: proposed locking and concurrency improvement

2020-06-25 Thread Ian Kent
On Tue, 2020-06-23 at 19:13 -0400, Tejun Heo wrote: > Hello, Rick. > > On Mon, Jun 22, 2020 at 02:22:34PM -0700, Rick Lindsley wrote: > > > I don't know. The above highlights the absurdity of the approach > > > itself to > > > me. You seem to be aware of it too in writing: 250,000 "devices". > >

Re: [PATCH v3 08/15] arm64: kvm: Split hyp/switch.c to VHE/nVHE

2020-06-25 Thread Marc Zyngier
On 2020-06-25 06:03, kernel test robot wrote: Hi David, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.8-rc2 next-20200624] [cannot apply to kvmarm/next arm64/for-next/core arm-perf/for-next/perf] [If your patch

Re: [PATCH v5 24/27] ARM: dts: bcm2711: Add firmware clocks node

2020-06-25 Thread Nicolas Saenz Julienne
On Mon, 2020-06-15 at 10:41 +0200, Maxime Ripard wrote: > Now that we have a clock driver for the clocks exposed by the firmware, > let's add the device tree nodes for it. > > Tested-by: Nicolas Saenz Julienne > Signed-off-by: Maxime Ripard > --- Applied for-next. Thanks! Nicolas signature.

Re: [PATCH] scsi: sd: add runtime pm to open / release

2020-06-25 Thread Martin Kepplinger
On 24.06.20 15:33, Bart Van Assche wrote: > On 2020-06-23 04:10, Martin Kepplinger wrote: >> This add a very conservative but simple implementation for runtime PM >> to the sd scsi driver: >> Resume when opened (mounted) and suspend when released (unmounted). >> >> Improvements that allow suspendin

truncate dict: was: Re: [PATCH v3 3/3] printk: use the lockless ringbuffer

2020-06-25 Thread Petr Mladek
On Thu 2020-06-18 16:55:19, John Ogness wrote: > Replace the existing ringbuffer usage and implementation with > lockless ringbuffer usage. Even though the new ringbuffer does not > require locking, all existing locking is left in place. Therefore, > this change is purely replacing the underlining

Re: [PATCH 50/50] staging: vchiq: Move vchiq.h into include directory

2020-06-25 Thread Nicolas Saenz Julienne
> diff --git a/drivers/staging/vc04_services/vchiq-mmal/Makefile > b/drivers/staging/vc04_services/vchiq-mmal/Makefile > index f8164c33aec3..b2a830f48acc 100644 > --- a/drivers/staging/vc04_services/vchiq-mmal/Makefile > +++ b/drivers/staging/vc04_services/vchiq-mmal/Makefile > @@ -5,4 +5,5 @@ obj-

Re: [PATCH 00/22] add support for Clang LTO

2020-06-25 Thread Peter Zijlstra
On Thu, Jun 25, 2020 at 10:03:13AM +0200, Peter Zijlstra wrote: > On Wed, Jun 24, 2020 at 02:31:36PM -0700, Nick Desaulniers wrote: > > On Wed, Jun 24, 2020 at 2:15 PM Peter Zijlstra wrote: > > > > > > On Wed, Jun 24, 2020 at 01:31:38PM -0700, Sami Tolvanen wrote: > > > > This patch series adds su

Re: [PATCH 2/6] arm64/vdso: Zap vvar pages when switching to a time namespace

2020-06-25 Thread Andrei Vagin
On Wed, Jun 24, 2020 at 05:18:01PM +0200, Christian Brauner wrote: > On Wed, Jun 24, 2020 at 01:33:17AM -0700, Andrei Vagin wrote: > > The order of vvar pages depends on whether a task belongs to the root > > time namespace or not. In the root time namespace, a task doesn't have a > > per-namespace

Re: [PATCH] platform/chrome: fix a double-unlock issue

2020-06-25 Thread Enric Balletbo i Serra
Hi Qiushi, Thank you for your patch. On 23/5/20 5:16, wu000...@umn.edu wrote: > From: Qiushi Wu > > In function cros_ec_ishtp_probe(), "up_write" is already called > before function "cros_ec_dev_init". But "up_write" will be called > again after the calling of the function "cros_ec_dev_init" fa

Re: [PATCH 00/22] add support for Clang LTO

2020-06-25 Thread Will Deacon
On Wed, Jun 24, 2020 at 02:30:14PM -0700, Sami Tolvanen wrote: > On Wed, Jun 24, 2020 at 11:15:40PM +0200, Peter Zijlstra wrote: > > On Wed, Jun 24, 2020 at 01:31:38PM -0700, Sami Tolvanen wrote: > > > This patch series adds support for building x86_64 and arm64 kernels > > > with Clang's Link Time

buffer allocation: was: [PATCH v3 3/3] printk: use the lockless ringbuffer

2020-06-25 Thread Petr Mladek
On Thu 2020-06-18 16:55:19, John Ogness wrote: > Replace the existing ringbuffer usage and implementation with > lockless ringbuffer usage. Even though the new ringbuffer does not > require locking, all existing locking is left in place. Therefore, > this change is purely replacing the underlining

Re: [PATCH] MIPS: ingenic: gcw0: Fix HP detection GPIO.

2020-06-25 Thread Thomas Bogendoerfer
On Tue, Jun 23, 2020 at 06:19:45PM -0300, João H. Spies wrote: > Previously marked as active high, but is in reality active low. > > Cc: sta...@vger.kernel.org > Fixes: b1bfdb660516 ("MIPS: ingenic: DTS: Update GCW0 support") > Signed-off-by: João H. Spies > --- > arch/mips/boot/dts/ingenic/gcw0

Re: [PATCH 11/26] mm/mips: Use general page fault accounting

2020-06-25 Thread Thomas Bogendoerfer
On Fri, Jun 19, 2020 at 12:05:23PM -0400, Peter Xu wrote: > Use the general page fault accounting by passing regs into handle_mm_fault(). > It naturally solve the issue of multiple page fault accounting when page fault > retry happened. > > Fix PERF_COUNT_SW_PAGE_FAULTS perf event manually for pag

Re: [PATCH 2/2] watchdog: rti: tweak min_hw_heartbeat_ms to match initial allowed window

2020-06-25 Thread Tero Kristo
On 24/06/2020 18:24, Jan Kiszka wrote: On 24.06.20 13:45, Tero Kristo wrote: If the RTI watchdog has been started by someone (like bootloader) when the driver probes, we must adjust the initial ping timeout to match the currently running watchdog window to avoid generating watchdog reset. Signe

Re: [PATCH v3 08/15] arm64: kvm: Split hyp/switch.c to VHE/nVHE

2020-06-25 Thread Will Deacon
On Thu, Jun 25, 2020 at 09:16:03AM +0100, Marc Zyngier wrote: > On 2020-06-25 06:03, kernel test robot wrote: > > Hi David, > > > > Thank you for the patch! Perhaps something to improve: > > > > [auto build test WARNING on linus/master] > > [also build test WARNING on v5.8-rc2 next-20200624] > >

[PATCH v3 0/2] cpufreq: intel_pstate: Support raw epp and energy_efficiency

2020-06-25 Thread Srinivas Pandruvada
v3 Some edits for the description as suggested by Doug v2 Remove raw value support for EPB Srinivas Pandruvada (2): cpufreq: intel_pstate: Allow enable/disable energy efficiency cpufreq: intel_pstate: Allow raw energy performance preference value Documentation/admin-guide/pm/intel_pstate.rs

[PATCH v3 1/2] cpufreq: intel_pstate: Allow enable/disable energy efficiency

2020-06-25 Thread Srinivas Pandruvada
By default intel_pstate driver disables energy efficiency by setting MSR_IA32_POWER_CTL bit 19 for Kaby Lake desktop CPU model in HWP mode. This CPU model is also shared by Coffee Lake desktop CPUs. This allows these systems to reach maximum possible frequency. But this adds power penalty, which so

Re: [PATCH -v2.1] x86/msr: Filter MSR writes

2020-06-25 Thread Borislav Petkov
On Wed, Jun 24, 2020 at 10:51:40PM -0700, Sean Christopherson wrote: > Maybe s/unrecognized/unauthorized? Unrecognized implies the kernel doesn't > know anything about the MSR being written, which may not hold true. "unrecognized" in the sense that it is not on the whitelist above. It contains on

[PATCH v3 2/2] cpufreq: intel_pstate: Allow raw energy performance preference value

2020-06-25 Thread Srinivas Pandruvada
Currently using attribute "energy_performance_preference", user space can write one of the four per-defined preference string. These preference strings gets mapped to a hard-coded Energy-Performance Preference (EPP) or Energy-Performance Bias (EPB) knob. These four values are supposed to cover bro

Re: [RFC PATCH v1 0/2] rk3318 A95X Z2 board

2020-06-25 Thread Johan Jonker
Hi, Status update. On 6/20/20 3:46 PM, Johan Jonker wrote: > status: EXPERIMENTAL > What works: > uart2 > mmc > emmc > sd card > usb2 /// USB2: The usb2 port only works reliable with: dr_mode = "host"; Question for Heiko: Should we change that in rk3328.

Re: [PATCH 4/7] arm64: dts: mt8183: Fix unit name warnings

2020-06-25 Thread Enric Balletbo i Serra
Hi Matthias, Thank you for you review. On 22/6/20 12:14, Matthias Brugger wrote: > > > On 19/06/2020 12:27, Enric Balletbo i Serra wrote: >> Remove the unit address from the DT nodes that doesn't have a reg >> property. This fixes the following unit name warnings: >> >> Warning (unit_address_

Re: [PATCH v5 01/13] powerpc: Remove Xilinx PPC405/PPC440 support

2020-06-25 Thread Joel Stanley
On Fri, 19 Jun 2020 at 11:02, Michael Ellerman wrote: > > Nathan Chancellor writes: > >> It's kind of nuts that the zImage points to some arbitrary image > >> depending on what's configured and the order of things in the Makefile. > >> But I'm not sure how we make it less nuts without risking bre

Re: [PATCH 7/7] arm64: dts: mt8183: Add krane-sku176 board

2020-06-25 Thread Enric Balletbo i Serra
Hi Matthias, Thank you for your review. On 22/6/20 12:33, Matthias Brugger wrote: > > > On 19/06/2020 12:27, Enric Balletbo i Serra wrote: >> Also known as the Lenovo IdeaPad Duet Chromebook. >> >> There are different krane boards with shared resources, hence a >> mt8183-kukui-krane.dtsi was cr

Re: [RESEND PATCH v5 3/5] drivers core: allow probe_err accept integer and pointer types

2020-06-25 Thread Andy Shevchenko
On Wed, Jun 24, 2020 at 10:40 PM Andrzej Hajda wrote: > On 24.06.2020 17:16, Robin Murphy wrote: ... > I have proposed such thing in my previous iteration[1], except it was > macro because of variadic arguments. You may have a function with variadic arguments. Macros are beasts and make in some

Re: [PATCH 3/3] nsproxy: support CLONE_NEWTIME with setns()

2020-06-25 Thread Andrei Vagin
On Tue, Jun 23, 2020 at 01:55:21PM +0200, Christian Brauner wrote: > On Fri, Jun 19, 2020 at 05:35:59PM +0200, Christian Brauner wrote: > > So far setns() was missing time namespace support. This was partially due > > to it simply not being implemented but also because vdso_join_timens() > > could

Re: [PATCH 10/22] gpiolib: cdev: fix minor race in GET_LINEINFO_WATCH

2020-06-25 Thread Andy Shevchenko
On Thu, Jun 25, 2020 at 1:58 AM Kent Gibson wrote: > On Wed, Jun 24, 2020 at 11:57:14PM +0800, Kent Gibson wrote: > > On Wed, Jun 24, 2020 at 05:46:33PM +0300, Andy Shevchenko wrote: > > > On Tue, Jun 23, 2020 at 7:03 AM Kent Gibson wrote: ... > > > I stumbled over this myself, but... > > > > >

[tip: x86/misc] x86/msr: Filter MSR writes

2020-06-25 Thread tip-bot2 for Borislav Petkov
The following commit has been merged into the x86/misc branch of tip: Commit-ID: a7e1f67ed29f0c339e2aa7483d13b085127566ab Gitweb: https://git.kernel.org/tip/a7e1f67ed29f0c339e2aa7483d13b085127566ab Author:Borislav Petkov AuthorDate:Wed, 10 Jun 2020 21:37:49 +02:00 Committe

Re: [PATCH v2 2/2] cpufreq: Specify default governor on command line

2020-06-25 Thread Viresh Kumar
On 24-06-20, 16:32, Quentin Perret wrote: > Right, but I must admit that, looking at this more, I'm getting a bit > confused with the overall locking for governors :/ > > When in cpufreq_init_policy() we find a governor using > find_governor(policy->last_governor), what guarantees this governor is

[PATCH] modpost: remove use of non-standard strsep() in HOSTCC code

2020-06-25 Thread H. Nikolaus Schaller
strsep() is neither standard C nor POSIX and used outside the kernel code here. Using it here requires that the build host supports it out of the box which is e.g. not true for a Darwin build host and using a cross-compiler. This leads to: scripts/mod/modpost.c:145:2: warning: implicit declaration

Re: [PATCH v1] driver core: Fix suspend/resume order issue with deferred probe

2020-06-25 Thread Geert Uytterhoeven
Hi Saravana, Thanks for your patch! On Thu, Jun 25, 2020 at 5:24 AM Saravana Kannan wrote: > Under the following conditions: > - driver A is built in and can probe device-A > - driver B is a module and can probe device-B I think this is not correct: in my case driver B is builtin, too. > - dev

Re: [PATCH 00/22] add support for Clang LTO

2020-06-25 Thread Peter Zijlstra
On Thu, Jun 25, 2020 at 10:24:33AM +0200, Peter Zijlstra wrote: > On Thu, Jun 25, 2020 at 10:03:13AM +0200, Peter Zijlstra wrote: > > I'm sure Will will respond, but the basic issue is the trainwreck C11 > > made of dependent loads. > > > > Anyway, here's a link to the last time this came up: > >

Re: [PATCH v2 2/2] Add PWM fan controller driver for LGM SoC

2020-06-25 Thread Tanwar, Rahul
On 25/6/2020 1:58 pm, Uwe Kleine-König wrote: > On Thu, Jun 25, 2020 at 12:23:54PM +0800, Tanwar, Rahul wrote: >> Hi Philipp, >> >> On 18/6/2020 8:25 pm, Philipp Zabel wrote: >>> Hi Rahul, >>> >>> On Thu, 2020-06-18 at 20:05 +0800, Rahul Tanwar wrote: Intel Lightning Mountain(LGM) SoC conta

Re: [PATCH v2 1/2] gpio: add GPO driver for PCA9570

2020-06-25 Thread Andy Shevchenko
On Thu, Jun 25, 2020 at 10:59 AM Sungbo Eo wrote: > > NXP PCA9570 is 4-bit I2C GPO expander without interrupt functionality. > Its ports are controlled only by a data byte without register address. > > As there is no other driver similar enough to be adapted for it, a new > driver is introduced he

Re: [PATCH v33 03/21] x86/mm: x86/sgx: Signal SIGSEGV with PF_SGX

2020-06-25 Thread Borislav Petkov
On Thu, Jun 18, 2020 at 01:08:25AM +0300, Jarkko Sakkinen wrote: > From: Sean Christopherson > > Include SGX bit to the PF error codes and throw SIGSEGV with PF_SGX when > a #PF with SGX set happens. > > CPU throws a #PF with the SGX bit in the event of Enclave Page Cache Map

[PATCH] fuse_writepages_fill() optimization to avoid WARN_ON in tree_insert

2020-06-25 Thread Vasily Averin
In current implementation fuse_writepages_fill() tries to share the code: for new wpa it calls tree_insert() with num_pages = 0 then switches to common code used non-modified num_pages and increments it at the very end. Though it triggers WARN_ON(!wpa->ia.ap.num_pages) in tree_insert() WARNING: C

Re: [PATCH] intel_idle: Fix uninitialized variable bug

2020-06-25 Thread Dan Carpenter
On Wed, Jun 24, 2020 at 03:41:05PM +0200, Rafael J. Wysocki wrote: > On Wed, Jun 24, 2020 at 3:19 PM Dan Carpenter > wrote: > > > > The "tick" variable isn't initialized if "lapic_timer_always_reliable" > > is true. > > If lapic_timer_always_reliable is true, then > static_cpu_has(X86_FEATURE_AR

Re: [PATCH 3/3] nsproxy: support CLONE_NEWTIME with setns()

2020-06-25 Thread Andrei Vagin
On Fri, Jun 19, 2020 at 05:35:59PM +0200, Christian Brauner wrote: > So far setns() was missing time namespace support. This was partially due > to it simply not being implemented but also because vdso_join_timens() > could still fail which made switching to multiple namespaces atomically > problem

Re: [PATCH 10/22] gpiolib: cdev: fix minor race in GET_LINEINFO_WATCH

2020-06-25 Thread Kent Gibson
On Thu, Jun 25, 2020 at 11:44:21AM +0300, Andy Shevchenko wrote: > On Thu, Jun 25, 2020 at 1:58 AM Kent Gibson wrote: > > On Wed, Jun 24, 2020 at 11:57:14PM +0800, Kent Gibson wrote: > > > On Wed, Jun 24, 2020 at 05:46:33PM +0300, Andy Shevchenko wrote: > > > > On Tue, Jun 23, 2020 at 7:03 AM Kent

Re: [PATCH 06/11] phy: un-inline devm_mdiobus_register()

2020-06-25 Thread Bartosz Golaszewski
On Tue, Jun 23, 2020 at 1:55 AM Florian Fainelli wrote: > > On 6/22/20 3:00 AM, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > Functions should only be static inline if they're very short. This > > devres helper is already over 10 lines and it will grow soon as we'll > > be impr

Re: [PATCH 3/3] drm/bridge: ps8640: Rework power state handling

2020-06-25 Thread Enric Balletbo i Serra
Hi Sam, On 24/6/20 9:07, Sam Ravnborg wrote: > Hi Enric. > > On Tue, Jun 23, 2020 at 05:16:43PM +0200, Enric Balletbo i Serra wrote: >> Hi Sam, >> >> Many thanks for your feedback. See my answers below. >> >> On 20/6/20 23:42, Sam Ravnborg wrote: >>> Hi Enric. >>> >>> On Mon, Jun 15, 2020 at 10:5

Re: [PATCH 10/22] gpiolib: cdev: fix minor race in GET_LINEINFO_WATCH

2020-06-25 Thread Andy Shevchenko
On Thu, Jun 25, 2020 at 12:13 PM Kent Gibson wrote: > On Thu, Jun 25, 2020 at 11:44:21AM +0300, Andy Shevchenko wrote: > > On Thu, Jun 25, 2020 at 1:58 AM Kent Gibson wrote: > > > On Wed, Jun 24, 2020 at 11:57:14PM +0800, Kent Gibson wrote: ... > > > Perhaps you are referring to the case where

Re: [PATCH] sched/cfs: change initial value of runnable_avg

2020-06-25 Thread Holger Hoffstätte
On 2020-06-24 17:44, Vincent Guittot wrote: Some performance regression on reaim benchmark have been raised with commit 070f5e860ee2 ("sched/fair: Take into account runnable_avg to classify group") The problem comes from the init value of runnable_avg which is initialized with max value. Thi

  1   2   3   4   5   6   7   8   9   10   >