Re: [PATCH v2] mtd: spinand: add support for Foresee FS35ND01G-S1Y2

2021-04-08 Thread Miquel Raynal
Hi Daniel, Daniel Palmer wrote on Wed, 7 Apr 2021 21:01:01 +0900: > Hi Miquel, > > On Wed, 7 Apr 2021 at 17:02, Miquel Raynal wrote: > > You may look at micron_8_ecc_get_status() helper to guide you. But > > IMHO, if there are 0-3 bf, you should probably assume there were 3 bf > > and return

Re: [PATCH v2 07/17] KVM: x86/mmu: Check PDPTRs before allocating PAE roots

2021-04-08 Thread Paolo Bonzini
On 08/04/21 17:48, Sean Christopherson wrote: Freaking PDPTRs. I was really hoping we could keep the lock and pages_available() logic outside of the helpers. What if kvm_mmu_load() reads the PDPTRs and passes them into mmu_alloc_shadow_roots()? Or is that too ugly? The patch I have posted

RE: [PATCH v3 1/2] PCI: xilinx-nwl: Enable coherent PCIe DMA traffic using CCI

2021-04-08 Thread Bharat Kumar Gogada
Thanks Lorenzo. > -Original Message- > From: Lorenzo Pieralisi > Sent: Wednesday, April 7, 2021 9:32 PM > To: linux-...@vger.kernel.org; Bharat Kumar Gogada ; > linux-kernel@vger.kernel.org > Cc: lorenzo.pieral...@arm.com; bhelg...@google.com > Subject: Re: [PATCH v3 1/2] PCI:

Re: [RFC PATCH 5/5] tracing: Add the osnoise tracer

2021-04-08 Thread Jonathan Corbet
Daniel Bristot de Oliveira writes: A quick nit: > Documentation/trace/osnoise_tracer.rst | 149 ++ > include/linux/ftrace_irq.h | 16 + > include/trace/events/osnoise.h | 141 ++ > kernel/trace/Kconfig | 34 + > kernel/trace/Makefile

Re: [PATCH v5 4/6] dt-bindings: PCI: Add SiFive FU740 PCIe host controller

2021-04-08 Thread Rob Herring
On Tue, 06 Apr 2021 17:26:32 +0800, Greentime Hu wrote: > Add PCIe host controller DT bindings of SiFive FU740. > > Signed-off-by: Greentime Hu > --- > .../bindings/pci/sifive,fu740-pcie.yaml | 113 ++ > 1 file changed, 113 insertions(+) > create mode 100644 >

Re: [PATCH v2] platform/x86: add Gigabyte WMI temperature driver

2021-04-08 Thread Hans de Goede
Hi Guenter, On 4/8/21 5:08 PM, Guenter Roeck wrote: > On Mon, Apr 05, 2021 at 10:48:10PM +0200, Thomas Weißschuh wrote: >> Changes since v1: >> * Incorporate feedback from Barnabás Pőcze >> * Use a WMI driver instead of a platform driver >> * Let the kernel manage the driver lifecycle >> *

Re: [PATCH v1 2/5] gpio: xilinx: Correct kernel doc for xgpio_probe()

2021-04-08 Thread Michal Simek
On 4/8/21 4:55 PM, Andy Shevchenko wrote: > Kernel doc validator complains: > > .../gpio-xilinx.c:556: warning: expecting prototype for xgpio_of_probe(). > Prototype was for xgpio_probe() instead > > Correct as suggested by changing the name of the function in the doc.. > > Fixes:

Re: [PATCH 0/4] Add support for XMM fast hypercalls

2021-04-08 Thread Siddharth Chandrasekaran
On Thu, Apr 08, 2021 at 03:38:13PM +, Wei Liu wrote: > On Thu, Apr 08, 2021 at 05:30:26PM +0200, Paolo Bonzini wrote: > > On 08/04/21 17:28, Wei Liu wrote: > > > > Although the Hyper-v TLFS mentions that a guest cannot use this feature > > > > unless the hypervisor advertises support for it,

Re: [PATCH v2 2/2] x86/sgx: Add sgx_nr_{all, free}_pages to the debugfs

2021-04-08 Thread Jarkko Sakkinen
On Thu, Apr 08, 2021 at 11:32:23AM +0200, Borislav Petkov wrote: > On Thu, Apr 08, 2021 at 12:13:21PM +0300, Jarkko Sakkinen wrote: > > Actually I think read-only sysctl attributes would be a better idea. > > I still think debugfs is the right *start* for this: you play with them, > see what

Re: [PATCH v1 2/2] drivers/gpu/drm: don't select DMA_CMA or CMA from aspeed or etnaviv

2021-04-08 Thread Jason Gunthorpe
On Thu, Apr 08, 2021 at 01:38:17PM +0200, Daniel Vetter wrote: > If you want to change this, we need automatic conflict resolution like apt > and other package managers have, with suggestions how to fix the config if > you want to enable a driver, but some of its requirements are missing. The >

Re: [PATCH] KVM: x86: Remove unused function declaration

2021-04-08 Thread Sean Christopherson
On Tue, Apr 06, 2021, Keqian Zhu wrote: > kvm_mmu_slot_largepage_remove_write_access() is decared but not used, > just remove it. > > Signed-off-by: Keqian Zhu Reviewed-by: Sean Christopherson

Re: [RFC bpf-next 1/1] bpf: Introduce iter_pagecache

2021-04-08 Thread Al Viro
On Wed, Apr 07, 2021 at 02:46:11PM -0700, Daniel Xu wrote: > +static void fini_seq_pagecache(void *priv_data) > +{ > + struct bpf_iter_seq_pagecache_info *info = priv_data; > + struct radix_tree_iter iter; > + struct super_block *sb; > + void **slot; > + > +

Re: [PATCH -next] RDMA/srpt: Fix error return code in srpt_cm_req_recv()

2021-04-08 Thread Bart Van Assche
On 4/8/21 4:31 AM, Wang Wensheng wrote: > Fix to return a negative error code from the error handling > case instead of 0, as done elsewhere in this function. > > Fixes: db7683d7deb2 ("IB/srpt: Fix login-related race conditions") > Reported-by: Hulk Robot > Signed-off-by: Wang Wensheng > --- >

RE: [PATCH v2 net-next] net: mana: Add a driver for Microsoft Azure Network Adapter (MANA)

2021-04-08 Thread Haiyang Zhang
> -Original Message- > From: Stephen Hemminger > Sent: Thursday, April 8, 2021 12:52 PM > To: Randy Dunlap > Cc: Dexuan Cui ; da...@davemloft.net; > k...@kernel.org; KY Srinivasan ; Haiyang Zhang > ; Stephen Hemminger > ; wei@kernel.org; Wei Liu > ; net...@vger.kernel.org;

Re: [PATCH] KVM: X86: Do not yield to self

2021-04-08 Thread Sean Christopherson
On Thu, Apr 08, 2021, Wanpeng Li wrote: > From: Wanpeng Li > > If the target is self we do not need to yield, we can avoid malicious > guest to play this. > > Signed-off-by: Wanpeng Li > --- > Rebased on > https://lore.kernel.org/kvm/1617697935-4158-1-git-send-email-wanpen...@tencent.com/ >

Re: [PATCH] PCI: tegra: Fix runtime PM imbalance in pex_ep_event_pex_rst_deassert

2021-04-08 Thread Lorenzo Pieralisi
On Thu, 8 Apr 2021 15:26:58 +0800, Dinghao Liu wrote: > pm_runtime_get_sync() will increase the runtime PM counter > even it returns an error. Thus a pairing decrement is needed > to prevent refcount leak. Fix this by replacing this API with > pm_runtime_resume_and_get(), which will not change the

Re: [PATCH v2 3/3] perf-stat: introduce config stat.bpf-counter-events

2021-04-08 Thread Song Liu
> On Apr 8, 2021, at 10:20 AM, Jiri Olsa wrote: > > On Thu, Apr 08, 2021 at 04:39:33PM +, Song Liu wrote: >> >> >>> On Apr 8, 2021, at 4:47 AM, Jiri Olsa wrote: >>> >>> On Tue, Apr 06, 2021 at 05:36:01PM -0700, Song Liu wrote: Currently, to use BPF to aggregate perf event

Re: [PATCH 2/7] cxl/mem: Split creation from mapping in probe

2021-04-08 Thread Jonathan Cameron
On Wed, 7 Apr 2021 15:26:20 -0700 Ben Widawsky wrote: > Add a new function specifically for mapping the register blocks and > offsets within. The new function can be used more generically for other > register block identifiers. > > No functional change is meant to be introduced in this patch

Re: [PATCH 4/7] cxl/mem: Get rid of @cxlm.base

2021-04-08 Thread Jonathan Cameron
On Wed, 7 Apr 2021 15:26:22 -0700 Ben Widawsky wrote: > @cxlm.base only existed to support holding the base found in the > register block mapping code, and pass it along to the register setup > code. Now that the register setup function has all logic around managing > the registers, from DVSEC

[PATCH 2/2] arch/x86: arch/sparc: tools/perf: fix typos in comments

2021-04-08 Thread Thomas Tai
s/insted/instead/ s/maintaing/maintaining/ Signed-off-by: Thomas Tai --- arch/sparc/vdso/vdso2c.c | 2 +- arch/x86/entry/vdso/vdso2c.c | 2 +- arch/x86/kernel/cpu/intel.c | 2 +- tools/perf/arch/x86/util/perf_regs.c | 4 ++-- 4 files changed, 5 insertions(+), 5

[PATCH 1/2] x86/traps: call cond_local_irq_disable before returning from exc_general_protection and math_error

2021-04-08 Thread Thomas Tai
This fixes commit 334872a09198 ("x86/traps: Attempt to fixup exceptions in vDSO before signaling") which added return statements without calling cond_local_irq_disable(). According to commit ca4c6a9858c2 ("x86/traps: Make interrupt enable/disable symmetric in C code"), cond_local_irq_disable() is

Re: [PATCH 3/7] cxl/mem: Move register locator logic into reg setup

2021-04-08 Thread Jonathan Cameron
On Wed, 7 Apr 2021 15:26:21 -0700 Ben Widawsky wrote: > Start moving code around to ultimately get rid of @cxlm.base. The > @cxlm.base member serves no purpose other than intermediate storage of > the offset found in cxl_mem_map_regblock() later used by > cxl_mem_setup_regs(). Aside from wanting

Re: [PATCH -next] PM: fix typos in comments

2021-04-08 Thread Rafael J. Wysocki
On Thu, Apr 8, 2021 at 10:14 AM Lu Jialin wrote: > > Change occured to occurred in kernel/power/autosleep.c. > Change consiting to consisting in kernel/power/snapshot.c. > Change avaiable to available in kernel/power/swap.c. > No functionality changed. > > Signed-off-by: Lu Jialin > --- >

Re: [PATCH -next] clk: samsung: Remove redundant dev_err calls

2021-04-08 Thread Sylwester Nawrocki
On 08.04.2021 18:21, Krzysztof Kozlowski wrote: > On 08/04/2021 15:48, Chen Hui wrote: >> There is error message within devm_ioremap_resource >> already, so remove the dev_err calls to avoid redundant >> error messages. >> >> Signed-off-by: Chen Hui >> --- >>

Re: [PATCH v2] KVM: SVM: Make sure GHCB is mapped before updating

2021-04-08 Thread Sean Christopherson
On Thu, Apr 08, 2021, Tom Lendacky wrote: > On 4/8/21 12:10 PM, Sean Christopherson wrote: > > On Thu, Apr 08, 2021, Tom Lendacky wrote: > >> diff --git a/arch/x86/kvm/svm/sev.c b/arch/x86/kvm/svm/sev.c > >> index 83e00e524513..7ac67615c070 100644 > >> --- a/arch/x86/kvm/svm/sev.c > >> +++

RE: [PATCH net-next v3 1/2] mfd: Add Renesas Synchronization Management Unit (SMU) support

2021-04-08 Thread Min Li
> > If this is v3, there should be a changelog here. > Hi Lee There is no change in v3 for MFD part of code, v3 is only for misc part. But I have to format 2 patches together and that is why mfd part got v3 as well. But it is actually identical to v2

Re: [PATCH v4 2/6] dt-bindings: PCI: Add bindings for Brcmstb endpoint device voltage regulators

2021-04-08 Thread Rob Herring
On Tue, Apr 06, 2021 at 05:47:08PM +0100, Mark Brown wrote: > On Thu, Apr 01, 2021 at 05:21:42PM -0400, Jim Quinlan wrote: > > Similar to the regulator bindings found in "rockchip-pcie-host.txt", this > > allows optional regulators to be attached and controlled by the PCIe RC > > driver. That

Re: [PATCH 1/6] PM: runtime: enable wake irq after runtime_suspend hook called

2021-04-08 Thread Rafael J. Wysocki
On Thu, Apr 8, 2021 at 11:35 AM Chunfeng Yun wrote: > > When the dedicated wake irq is level trigger, enable it before > calling runtime_suspend, will trigger an interrupt. > > e.g. > for a low level trigger type, it's low level at running time (0), > and becomes high level when enters suspend

Re: [PATCH 1/2 v2] staging: media: hantro: Align line break to the open parenthesis in file hantro_hw.h

2021-04-08 Thread ascordeiro
Em qui, 2021-04-08 às 13:20 -0300, Ezequiel Garcia escreveu: > Ola Aline, Ola Ezequiel, > Welcome to the kernel community. Hope you enjoy some of this > Outreachy adventures. Thank you! > Normally, when you submit a v2, we want to know what changed > between the first submission and v2. > > If

Re: [PATCH] tools: Fix a typo in kernel-chktaint

2021-04-08 Thread Jonathan Corbet
Masanari Iida writes: > This patch fixes a spelling typo in kernel-chktaint > > Signed-off-by: Masanari Iida > --- > tools/debugging/kernel-chktaint | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/debugging/kernel-chktaint b/tools/debugging/kernel-chktaint >

Re: [PATCH net-next v3 2/2] misc: Add Renesas Synchronization Management Unit (SMU) support

2021-04-08 Thread Greg KH
On Thu, Apr 08, 2021 at 05:26:40PM +, Min Li wrote: > > > > Again, please make this only one file. > > > Hi Greg, the 2 boards have some same named registers in idt82p33_reg.h and > idt8a340_reg.h > so if I put them all in the same file, there will be name conflicts. That does not make

Re: [RFC PATCH v1 00/11] Manage the top tier memory in a tiered memory

2021-04-08 Thread Yang Shi
On Thu, Apr 8, 2021 at 10:19 AM Shakeel Butt wrote: > > Hi Tim, > > On Mon, Apr 5, 2021 at 11:08 AM Tim Chen wrote: > > > > Traditionally, all memory is DRAM. Some DRAM might be closer/faster than > > others NUMA wise, but a byte of media has about the same cost whether it > > is close or far.

[PATCH] export: Make CRCs robust to symbol trimming

2021-04-08 Thread Quentin Perret
The CRC calculation done by genksyms is triggered when the parser hits EXPORT_SYMBOL*() macros. At this point, genksyms recursively expands the types, and uses that as the input for the CRC calculation. In the case of forward-declared structs, the type expands to 'UNKNOWN'. Next, the result of the

Re: [PATCH 00/13] tty.h cleanups

2021-04-08 Thread Greg Kroah-Hartman
On Thu, Apr 08, 2021 at 04:25:22PM +0200, Johan Hovold wrote: > On Thu, Apr 08, 2021 at 02:51:21PM +0200, Greg Kroah-Hartman wrote: > > Turns out there is a lot of tty-internal stuff in include/linux/tty.h > > that do not belong there. Create a internal-to-the-tty-layer .h file > > for these

RE: [PATCH net-next v3 2/2] misc: Add Renesas Synchronization Management Unit (SMU) support

2021-04-08 Thread Min Li
> > That does not make sense, this is only one kernel module, with one .h file in > this patch, I do not see those other files you are talking about... > > And if you have named registers that are identical, and yet you only work on > one device, that feels like a design flaw somewhere :) > Hi

[PATCH v6 09/18] treewide: Change list_sort to use const pointers

2021-04-08 Thread Sami Tolvanen
list_sort() internally casts the comparison function passed to it to a different type with constant struct list_head pointers, and uses this pointer to call the functions, which trips indirect call Control-Flow Integrity (CFI) checking. Instead of removing the consts, this change defines the

[PATCH v6 07/18] kallsyms: strip ThinLTO hashes from static functions

2021-04-08 Thread Sami Tolvanen
With CONFIG_CFI_CLANG and ThinLTO, Clang appends a hash to the names of all static functions not marked __used. This can break userspace tools that don't expect the function name to change, so strip out the hash from the output. Suggested-by: Jack Pham Signed-off-by: Sami Tolvanen Reviewed-by:

[PATCH v6 08/18] bpf: disable CFI in dispatcher functions

2021-04-08 Thread Sami Tolvanen
BPF dispatcher functions are patched at runtime to perform direct instead of indirect calls. Disable CFI for the dispatcher functions to avoid conflicts. Signed-off-by: Sami Tolvanen Reviewed-by: Kees Cook Tested-by: Nathan Chancellor --- include/linux/bpf.h | 4 ++-- 1 file changed, 2

[PATCH v6 12/18] arm64: implement function_nocfi

2021-04-08 Thread Sami Tolvanen
With CONFIG_CFI_CLANG, the compiler replaces function addresses in instrumented C code with jump table addresses. This change implements the function_nocfi() macro, which returns the actual function address instead. Signed-off-by: Sami Tolvanen Reviewed-by: Kees Cook Acked-by: Mark Rutland

[PATCH v6 11/18] psci: use function_nocfi for cpu_resume

2021-04-08 Thread Sami Tolvanen
With CONFIG_CFI_CLANG, the compiler replaces function pointers with jump table addresses, which results in __pa_symbol returning the physical address of the jump table entry. As the jump table contains an immediate jump to an EL1 virtual address, this typically won't work as intended. Use

[PATCH v6 13/18] arm64: use function_nocfi with __pa_symbol

2021-04-08 Thread Sami Tolvanen
With CONFIG_CFI_CLANG, the compiler replaces function address references with the address of the function's CFI jump table entry. This means that __pa_symbol(function) returns the physical address of the jump table entry, which can lead to address space confusion as the jump table points to the

[PATCH v6 10/18] lkdtm: use function_nocfi

2021-04-08 Thread Sami Tolvanen
To ensure we take the actual address of a function in kernel text, use function_nocfi. Otherwise, with CONFIG_CFI_CLANG, the compiler replaces the address with a pointer to the CFI jump table, which is actually in the module when compiled with CONFIG_LKDTM=m. Signed-off-by: Sami Tolvanen

[PATCH net v2 1/2] net: dsa: lantiq_gswip: Don't use PHY auto polling

2021-04-08 Thread Martin Blumenstingl
PHY auto polling on the GSWIP hardware can be used so link changes (speed, link up/down, etc.) can be detected automatically. Internally GSWIP reads the PHY's registers for this functionality. Based on this automatic detection GSWIP can also automatically re-configure it's port settings.

[PATCH net v2 2/2] net: dsa: lantiq_gswip: Configure all remaining GSWIP_MII_CFG bits

2021-04-08 Thread Martin Blumenstingl
There are a few more bits in the GSWIP_MII_CFG register for which we did rely on the boot-loader (or the hardware defaults) to set them up properly. For some external RMII PHYs we need to select the GSWIP_MII_CFG_RMII_CLK bit and also we should un-set it for non-RMII PHYs. The

Re: [PATCH v6 02/10] arm64: perf: Enable PMU counter direct access for perf event

2021-04-08 Thread Rob Herring
On Thu, Apr 8, 2021 at 6:08 AM Mark Rutland wrote: > > On Wed, Apr 07, 2021 at 01:44:37PM +0100, Will Deacon wrote: > > [Moving Mark to To: since I'd like his view on this] > > > > On Thu, Apr 01, 2021 at 02:45:21PM -0500, Rob Herring wrote: > > > On Wed, Mar 31, 2021 at 11:01 AM Will Deacon

Re: [PATCH] PCI: merge slot and bus reset implementations

2021-04-08 Thread Raphael Norwitz
On Wed, Apr 07, 2021 at 04:37:23PM +0300, Leon Romanovsky wrote: > On Wed, Apr 07, 2021 at 06:36:01PM +0530, ameynarkhed...@gmail.com wrote: > > On 21/04/07 03:30PM, Leon Romanovsky wrote: > > > On Wed, Apr 07, 2021 at 01:53:56PM +0530, ameynarkhed...@gmail.com wrote: > > > > On 21/04/07 10:23AM,

[PATCH net v2 0/2] lantiq: GSWIP: two more fixes

2021-04-08 Thread Martin Blumenstingl
Hello, after my last patch got accepted and is now in net as commit 3e6fdeb28f4c33 ("net: dsa: lantiq_gswip: Let GSWIP automatically set the xMII clock") [0] some more people from the OpenWrt community (many thanks to everyone involved) helped test the GSWIP driver: [1] It turns out that the

[PATCH v2] gcov: re-fix clang-11+ support

2021-04-08 Thread Nick Desaulniers
LLVM changed the expected function signature for llvm_gcda_emit_function() in the clang-11 release. Users of clang-11 or newer may have noticed their kernels producing invalid coverage information: $ llvm-cov gcov -a -c -u -f -b .gcda -- gcno=.gcno 1 : checksum mismatch, \ (, ) != (, ) 2

Re: memory leak in bpf

2021-04-08 Thread Rustam Kovhaev
On Wed, Apr 07, 2021 at 04:35:34PM -0700, Andrii Nakryiko wrote: > On Wed, Apr 7, 2021 at 4:24 PM Rustam Kovhaev wrote: > > > > On Mon, Mar 01, 2021 at 09:43:00PM +0100, Dmitry Vyukov wrote: > > > On Mon, Mar 1, 2021 at 9:39 PM Rustam Kovhaev wrote: > > > > > > > > On Mon, Mar 01, 2021 at

Re: [PATCH v7 4/4] fs: unicode: Add utf8 module and a unicode layer

2021-04-08 Thread Gabriel Krisman Bertazi
Shreeya Patel writes: > utf8data.h_shipped has a large database table which is an auto-generated > decodification trie for the unicode normalization functions. > It is not necessary to load this large table in the kernel if no > filesystem is using it, hence make UTF-8 encoding loadable by

Re: [PATCH v2] bus: mhi: core: Fix shadow declarations

2021-04-08 Thread kernel test robot
Hi Manivannan, I love your patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.12-rc6 next-20210408] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base

Re: [PATCH] MIPS: uaccess: Reduce number of nested macros

2021-04-08 Thread Christoph Hellwig
> +#define put_user(x, ptr) \ > +({ \ > + __typeof__(*(ptr)) __user *__p = (ptr); \ > + \ >

[PATCH] block: Disable -Walign-mismatch for blk-mq.c

2021-04-08 Thread Nathan Chancellor
LLVM 13 adds a new warning, -Walign-mismatch, which has an instance in blk_mq_complete_send_ipi(): block/blk-mq.c:630:39: warning: passing 8-byte aligned argument to 32-byte aligned parameter 2 of 'smp_call_function_single_async' may result in an unaligned pointer access [-Walign-mismatch]

RE: [PATCH next v2] mfd: Add Renesas Synchronization Management Unit (SMU) support

2021-04-08 Thread Min Li
Hi Lee I just withdraw the misc driver review and sent you a new patch for mfd change alone. I will focus on mfd for now. Please take a look. Thanks Min

Re: [PATCH v1] ata: ahci_tegra: call tegra_powergate_power_off only when PM domain is not present

2021-04-08 Thread Dmitry Osipenko
08.04.2021 19:40, Sowjanya Komatineni пишет: > This patch adds a check on present of PM domain and calls legacy power > domain API tegra_powergate_power_off() only when PM domain is not present. > > This is a follow-up patch to Tegra186 AHCI support patch series >

[PATCH 1/3] staging: rtl8712: remove struct rtl_ieee80211_ht_cap and ieee80211_ht_addt_info

2021-04-08 Thread Christophe JAILLET
struct 'ieee80211_ht_addt_info' is unused and can be removed. struct 'rtl_ieee80211_ht_cap' can be replaced by 'ieee80211_ht_cap' defined in which has the same layout. Signed-off-by: Christophe JAILLET --- drivers/staging/rtl8712/rtl871x_ht.h | 2 +-

Re: [PATCH v3 12/12] kdump: Use vmlinux_build_id to simplify

2021-04-08 Thread Stephen Boyd
Quoting Baoquan He (2021-04-08 03:17:43) > On 04/07/21 at 07:03pm, Petr Mladek wrote: > > On Tue 2021-03-30 20:05:20, Stephen Boyd wrote: > > > We can use the vmlinux_build_id array here now instead of open coding > > > it. This mostly consolidates code. > > > > > > Cc: Jiri Olsa > > > Cc:

Re: [PATCH 0/4] Add support for XMM fast hypercalls

2021-04-08 Thread Paolo Bonzini
On 08/04/21 17:40, Siddharth Chandrasekaran wrote: Although the Hyper-v TLFS mentions that a guest cannot use this feature unless the hypervisor advertises support for it, some hypercalls which we plan on upstreaming in future uses them anyway. No, please don't do this. Check the feature bit(s)

Re: [PATCH 0/4] Add support for XMM fast hypercalls

2021-04-08 Thread Siddharth Chandrasekaran
On Thu, Apr 08, 2021 at 05:48:19PM +0200, Paolo Bonzini wrote: > On 08/04/21 17:40, Siddharth Chandrasekaran wrote: > > > > > Although the Hyper-v TLFS mentions that a guest cannot use this > > > > > feature > > > > > unless the hypervisor advertises support for it, some hypercalls which > > > >

Re: [PATCH RESEND 0/3] x86/sgx: eextend ioctl

2021-04-08 Thread Dave Hansen
On 4/8/21 8:27 AM, Jethro Beekman wrote: > But the native “executable format” for SGX is very clearly defined in > the Intel SDM as a specific sequence of ECREATE, EADD, EEXTEND and > EINIT calls. It's that sequence that's used for loading the enclave > and it's that sequence that's used for

[PATCH v1 1/1] defconfig: enable GPIO_SIM

2021-04-08 Thread Andy Shevchenko
Signed-off-by: Andy Shevchenko --- arch/x86/configs/i386_defconfig | 1 + arch/x86/configs/x86_64_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/x86/configs/i386_defconfig b/arch/x86/configs/i386_defconfig index d696336674b0..e36dc940a83c 100644 ---

Re: [PATCH -next] clk: samsung: Remove redundant dev_err calls

2021-04-08 Thread Krzysztof Kozlowski
On 08/04/2021 15:48, Chen Hui wrote: > There is error message within devm_ioremap_resource > already, so remove the dev_err calls to avoid redundant > error messages. > > Signed-off-by: Chen Hui > --- > drivers/clk/samsung/clk-exynos4412-isp.c | 4 +--- > drivers/clk/samsung/clk-s5pv210-audss.c

[PATCH v2 1/3] arm64: dts: qcom: sm8150: add other QUP nodes and iommus

2021-04-08 Thread Caleb Connolly
Add the first and third qupv3 nodes used to hook up peripherals on some devices, as well as the iommus properties for all of them. Signed-off-by: Caleb Connolly --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 28 1 file changed, 28 insertions(+) diff --git

[PATCH v2 3/3] dt-bindings: qcom: geni-se: document iommus

2021-04-08 Thread Caleb Connolly
Document the iommus property for QCOM Geni SE. Signed-off-by: Caleb Connolly --- Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.yaml

[PATCH v2 2/3] arm64: dts: qcom: sm8150: add i2c nodes

2021-04-08 Thread Caleb Connolly
Tested on the OnePlus 7 Pro (including DMA). Signed-off-by: Caleb Connolly Reviewed-by: Vinod Koul Reviewed-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 521 +++ 1 file changed, 521 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi

Re: [PATCH] char: tpm: fix error return code in tpm_cr50_i2c_tis_recv()

2021-04-08 Thread Jarkko Sakkinen
On Thu, Apr 08, 2021 at 07:26:08PM +0800, Zhihao Cheng wrote: > Fix to return a negative error code from the error handling > case instead of 0, as done elsewhere in this function. > > Fixes: 3a253caaad11 ("char: tpm: add i2c driver for cr50") > Reported-by: Hulk Robot > Signed-off-by: Zhihao

Re: [RFC v3 net-next 0/4] MT7530 interrupt support

2021-04-08 Thread Andrew Lunn
On Thu, Apr 08, 2021 at 11:00:08PM +0800, DENG Qingfang wrote: > Hi René, > > On Thu, Apr 8, 2021 at 10:02 PM René van Dorst wrote: > > > > Tested on Ubiquiti ER-X-SFP (MT7621) with 1 external phy which uses > > irq=POLL. > > > > I wonder if the external PHY's IRQ can be registered in the

Re: [PATCH v1 1/5] bitmap: Make bitmap_remap() and bitmap_bitremap() available to users

2021-04-08 Thread Yury Norov
On Thu, Apr 08, 2021 at 05:55:57PM +0300, Andy Shevchenko wrote: > Currently the bitmap_remap() and bitmap_bitremap() are available > only for CONFIG_NUMA=y case, while some users may benefit out of it > and being independent to NUMA code. Make them available to users > by moving out of ifdeffery

Re: [PATCH v2 net-next] net: mana: Add a driver for Microsoft Azure Network Adapter (MANA)

2021-04-08 Thread Stephen Hemminger
On Thu, 8 Apr 2021 09:22:57 -0700 Randy Dunlap wrote: > On 4/8/21 2:15 AM, Dexuan Cui wrote: > > diff --git a/drivers/net/ethernet/microsoft/Kconfig > > b/drivers/net/ethernet/microsoft/Kconfig > > new file mode 100644 > > index ..12ef6b581566 > > --- /dev/null > > +++

Re: [PATCH] arm64: mte: Move MTE TCF0 check in entry-common

2021-04-08 Thread Will Deacon
On Thu, Apr 08, 2021 at 04:06:23PM +0100, Mark Rutland wrote: > On Thu, Apr 08, 2021 at 03:56:04PM +0100, Will Deacon wrote: > > On Thu, Apr 08, 2021 at 03:37:23PM +0100, Vincenzo Frascino wrote: > > > diff --git a/arch/arm64/kernel/entry-common.c > > > b/arch/arm64/kernel/entry-common.c > > >

Re: [PATCH -next] freezer: Remove unused inline function try_to_freeze_nowarn()

2021-04-08 Thread Rafael J. Wysocki
On Thu, Apr 1, 2021 at 7:58 PM YueHaibing wrote: > > There is no caller in tree, so can remove it. > > Signed-off-by: YueHaibing > --- > include/linux/freezer.h | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/include/linux/freezer.h b/include/linux/freezer.h > index

Re: [RFC PATCH v1 00/11] Manage the top tier memory in a tiered memory

2021-04-08 Thread Shakeel Butt
Hi Tim, On Mon, Apr 5, 2021 at 11:08 AM Tim Chen wrote: > > Traditionally, all memory is DRAM. Some DRAM might be closer/faster than > others NUMA wise, but a byte of media has about the same cost whether it > is close or far. But, with new memory tiers such as Persistent Memory > (PMEM).

Re: [PATCH v2 3/3] perf-stat: introduce config stat.bpf-counter-events

2021-04-08 Thread Arnaldo Carvalho de Melo
Em Thu, Apr 08, 2021 at 04:39:33PM +, Song Liu escreveu: > > On Apr 8, 2021, at 4:47 AM, Jiri Olsa wrote: > > On Tue, Apr 06, 2021 at 05:36:01PM -0700, Song Liu wrote: > >> Currently, to use BPF to aggregate perf event counters, the user uses > >> --bpf-counters option. Enable "use bpf by

Re: [GIT PULL] cpuidle for v5.13-rc1

2021-04-08 Thread Daniel Lezcano
On 08/04/2021 19:24, Rafael J. Wysocki wrote: > On Thu, Apr 8, 2021 at 5:10 PM Daniel Lezcano > wrote: >> >> >> Hi Rafael, >> >> please consider pulling the following change for cpuidle on ARM for >> v5.13-rc1 >> >> Thanks >> >> -- Daniel >> >> >> The following changes since commit

Re: [PATCH net-next v3 2/2] misc: Add Renesas Synchronization Management Unit (SMU) support

2021-04-08 Thread Greg KH
On Thu, Apr 08, 2021 at 06:01:42PM +, Min Li wrote: > > > > That does not make sense, this is only one kernel module, with one .h file > > in > > this patch, I do not see those other files you are talking about... > > > > And if you have named registers that are identical, and yet you only

Re: [PATCH net v1] Revert "lan743x: trim all 4 bytes of the FCS; not just 2"

2021-04-08 Thread Heiner Kallweit
On 08.04.2021 20:00, George McCollister wrote: > On Thu, Apr 8, 2021 at 12:46 PM Sven Van Asbroeck wrote: >> >> Hi George, >> >> On Thu, Apr 8, 2021 at 1:36 PM George McCollister >> wrote: >>> >>> Can you explain the difference in behavior with what I was observing >>> on the LAN7431? >> >> I'm

Re: [PATCH net v2 1/2] net: dsa: lantiq_gswip: Don't use PHY auto polling

2021-04-08 Thread Florian Fainelli
On 4/8/2021 11:38 AM, Martin Blumenstingl wrote: > PHY auto polling on the GSWIP hardware can be used so link changes > (speed, link up/down, etc.) can be detected automatically. Internally > GSWIP reads the PHY's registers for this functionality. Based on this > automatic detection GSWIP can

Re: [PATCH net v2 2/2] net: dsa: lantiq_gswip: Configure all remaining GSWIP_MII_CFG bits

2021-04-08 Thread Florian Fainelli
On 4/8/2021 11:38 AM, Martin Blumenstingl wrote: > There are a few more bits in the GSWIP_MII_CFG register for which we > did rely on the boot-loader (or the hardware defaults) to set them up > properly. > > For some external RMII PHYs we need to select the GSWIP_MII_CFG_RMII_CLK > bit and

Re: [OpenRISC] [PATCH v6 1/9] locking/qspinlock: Add ARCH_USE_QUEUED_SPINLOCKS_XCHG32

2021-04-08 Thread Waiman Long
On 4/6/21 7:52 PM, Stafford Horne wrote: For OpenRISC I did ack the patch to convert to CONFIG_ARCH_USE_QUEUED_SPINLOCKS_XCHG32=y. But I think you are right, the generic code in xchg_tail and the xchg16 emulation code in produced by OpenRISC using xchg32 would produce very similar code. I

Re: [Freedreno] [PATCH 1/3] drm/msm/mdp5: Configure PP_SYNC_HEIGHT to double the vtotal

2021-04-08 Thread Rob Clark
On Wed, Apr 7, 2021 at 12:11 PM AngeloGioacchino Del Regno wrote: > > Il 07/04/21 20:19, abhin...@codeaurora.org ha scritto: > > Hi Marijn > > > > On 2021-04-06 14:47, Marijn Suijten wrote: > >> Leaving this at a close-to-maximum register value 0xFFF0 means it takes > >> very long for the MDSS to

RE: [Intel-wired-lan] [PATCH][next] ice: Fix potential infinite loop when using u8 loop counter

2021-04-08 Thread Brelinski, TonyX
> -Original Message- > From: Intel-wired-lan On Behalf Of > Colin King > Sent: Wednesday, March 31, 2021 7:46 AM > To: Brandeburg, Jesse ; Nguyen, Anthony L > ; David S . Miller ; > Jakub Kicinski ; Cao, Chinh T ; > intel-wired-...@lists.osuosl.org; net...@vger.kernel.org > Cc:

Re: [PATCH] block: Fix sys_ioprio_set(.which=IOPRIO_WHO_PGRP) task iteration

2021-04-08 Thread Jens Axboe
On 4/8/21 3:46 AM, Peter Zijlstra wrote: > > do_each_pid_thread() { } while_each_pid_thread() is a double loop and > thus break doesn't work as expected. Also, it should be used under > tasklist_lock because otherwise we can race against change_pid() for > PGID/SID. Applied, thanks. -- Jens

[PATCH] pinctrl: samsung: use 'int' for register masks in Exynos

2021-04-08 Thread Krzysztof Kozlowski
The Special Function Registers on all Exynos SoC, including ARM64, are 32-bit wide, so entire driver uses matching functions like readl() or writel(). On 64-bit ARM using unsigned long for register masks: 1. makes little sense as immediately after bitwise operation it will be cast to 32-bit

[GIT PULL] Please pull RDMA subsystem changes

2021-04-08 Thread Jason Gunthorpe
Hi Linus, Nothing very exciting here, just a few small bug fixes. No red flags for this release have shown up. Thanks, Jason The following changes since commit a5e13c6df0e41702d2b2c77c8ad41677ebb065b3: Linux 5.12-rc5 (2021-03-28 15:48:16 -0700) are available in the Git repository at:

Re: [PATCH net v1] Revert "lan743x: trim all 4 bytes of the FCS; not just 2"

2021-04-08 Thread George McCollister
On Thu, Apr 8, 2021 at 1:35 PM Sven Van Asbroeck wrote: > > Hi George, > > On Thu, Apr 8, 2021 at 2:26 PM Sven Van Asbroeck wrote: > > > > George, I will send a patch for you to try shortly. Except if you're > > already ahead :) > > Would this work for you? It does for me. Works for me too. >

[PATCH 01/12] staging: rtl8188eu: remove the last urb callback macros

2021-04-08 Thread Martin Kaiser
Both usb_read_port_complete and usb_write_port_complete have a regs parameter that is not used. When this parameter is removed, the functions can be used as urb completion callbacks directly. There's no need for the macros that strip the second parameter. Signed-off-by: Martin Kaiser ---

Re: [PATCH 6/7] KVM: SVM: hyper-v: Enlightened MSR-Bitmap support

2021-04-08 Thread Paolo Bonzini
On 07/04/21 16:41, Vineeth Pillai wrote: +#if IS_ENABLED(CONFIG_HYPERV) +static inline void hv_vmcb_dirty_nested_enlightenments(struct kvm_vcpu *vcpu) +{ + struct vmcb *vmcb = to_svm(vcpu)->vmcb; + + /* +* vmcb can be NULL if called during early vcpu init. +* And

Re: 08ed4efad6: stress-ng.sigsegv.ops_per_sec -41.9% regression

2021-04-08 Thread Linus Torvalds
On Thu, Apr 8, 2021 at 1:32 AM kernel test robot wrote: > > FYI, we noticed a -41.9% regression of stress-ng.sigsegv.ops_per_sec due to > commit > 08ed4efad684 ("[PATCH v10 6/9] Reimplement RLIMIT_SIGPENDING on top of > ucounts") Ouch. I *think* this test may be testing "send so many signals

Re: [GIT PULL] arm64: dts: TI K3 updates for v5.13

2021-04-08 Thread Nishanth Menon
On 17:24-20210408, Arnd Bergmann wrote: > From: Arnd Bergmann > > On Mon, 5 Apr 2021 10:53:36 -0500, Nishanth Menon wrote: > > Please pull the following device tree changes for v5.13 cycle. > > > > The following changes since commit a38fd8748464831584a19438cbb3082

Re: [PATCH] arch/m68k/kernel/sys_m68k: Add missing mmap_read_lock() to sys_cacheflush()

2021-04-08 Thread Liam Howlett
Forgot the fixes line. * Liam Howlett [210407 16:00]: > When the superuser flushes the entire cache, the mmap_read_lock() is not > taken, but mmap_read_unlock() is called. Add the missing > mmap_read_lock() call. > > Signed-off-by: Liam R. Howlett > --- > arch/m68k/kernel/sys_m68k.c | 2 ++ >

Re: [GIT PULL] ARM: at91: dt for 5.13

2021-04-08 Thread Nicolas Ferre
Hi Arnd, On 08/04/2021 at 17:24, Arnd Bergmann wrote: From: Arnd Bergmann On Wed, 7 Apr 2021 13:44:15 +0200, nicolas.fe...@microchip.com wrote: Arnd, Olof, Here is first batch of dt changes for 5.13. Please pull. Thanks, best regards, Nicolas The following changes since commit

Re: 08ed4efad6: stress-ng.sigsegv.ops_per_sec -41.9% regression

2021-04-08 Thread Alexey Gladkov
On Thu, Apr 08, 2021 at 09:22:40AM -0700, Linus Torvalds wrote: > On Thu, Apr 8, 2021 at 1:32 AM kernel test robot > wrote: > > > > FYI, we noticed a -41.9% regression of stress-ng.sigsegv.ops_per_sec due to > > commit > > 08ed4efad684 ("[PATCH v10 6/9] Reimplement RLIMIT_SIGPENDING on top of

Re: [PATCH v1 2/2] drivers/gpu/drm: don't select DMA_CMA or CMA from aspeed or etnaviv

2021-04-08 Thread David Hildenbrand
On 08.04.21 14:49, Linus Walleij wrote: On Thu, Apr 8, 2021 at 2:01 PM David Hildenbrand wrote: This is something you could do using a hidden helper symbol like config DRMA_ASPEED_GFX bool "Aspeed display driver" select DRM_WANT_CMA config DRM_WANT_CMA bool

Re: [RFC PATCH v2 3/4] arm64: Detect FTRACE cases that make the stack trace unreliable

2021-04-08 Thread Mark Brown
On Mon, Apr 05, 2021 at 03:43:12PM -0500, madve...@linux.microsoft.com wrote: > From: "Madhavan T. Venkataraman" > > When CONFIG_DYNAMIC_FTRACE_WITH_REGS is enabled and tracing is activated > for a function, the ftrace infrastructure is called for the function at > the very beginning. Ftrace

Re: [PATCH v4 2/6] dt-bindings: PCI: Add bindings for Brcmstb endpoint device voltage regulators

2021-04-08 Thread Jim Quinlan
On Thu, Apr 8, 2021 at 12:20 PM Rob Herring wrote: > > On Tue, Apr 06, 2021 at 02:25:49PM -0400, Jim Quinlan wrote: > > On Tue, Apr 6, 2021 at 1:32 PM Mark Brown wrote: > > > > > > On Tue, Apr 06, 2021 at 01:26:51PM -0400, Jim Quinlan wrote: > > > > On Tue, Apr 6, 2021 at 12:47 PM Mark Brown

Re: [PATCH] KVM: X86: Count success and invalid yields

2021-04-08 Thread Sean Christopherson
On Tue, Apr 06, 2021, Wanpeng Li wrote: > From: Wanpeng Li > > To analyze some performance issues with lock contention and scheduling, > it is nice to know when directed yield are successful or failing. > > Signed-off-by: Wanpeng Li > --- > arch/x86/include/asm/kvm_host.h | 2 ++ >

Re: [PATCH 3/4] mce/copyin: fix to not SIGBUS when copying from user hits poison

2021-04-08 Thread Luck, Tony
On Thu, Apr 08, 2021 at 10:49:58AM +0200, Borislav Petkov wrote: > On Wed, Apr 07, 2021 at 02:43:10PM -0700, Luck, Tony wrote: > > On Wed, Apr 07, 2021 at 11:18:16PM +0200, Borislav Petkov wrote: > > > On Thu, Mar 25, 2021 at 05:02:34PM -0700, Tony Luck wrote: > > > > Andy Lutomirski pointed out

[PATCH] remoteproc: qcom: pas: Add modem support for SDX55

2021-04-08 Thread Manivannan Sadhasivam
Add remoteproc support for Hexagon modem found on the Qualcomm SDX55 platform. Signed-off-by: Manivannan Sadhasivam --- drivers/remoteproc/qcom_q6v5_pas.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/remoteproc/qcom_q6v5_pas.c

Re: [PATCH 04/10] mm/migrate: make migrate_pages() return nr_succeeded

2021-04-08 Thread Yang Shi
On Thu, Apr 8, 2021 at 3:14 AM Oscar Salvador wrote: > > On Thu, Apr 01, 2021 at 11:32:23AM -0700, Dave Hansen wrote: > > > > From: Yang Shi > > > > The migrate_pages() returns the number of pages that were not migrated, > > or an error code. When returning an error code, there is no way to

RE: [PATCH net-next v3 2/2] misc: Add Renesas Synchronization Management Unit (SMU) support

2021-04-08 Thread Min Li
> > Again, please make this only one file. > Hi Greg, the 2 boards have some same named registers in idt82p33_reg.h and idt8a340_reg.h so if I put them all in the same file, there will be name conflicts.

  1   2   3   4   5   6   7   8   9   10   >