Re: [PATCH RFC 00/30] userfaultfd-wp: Support shmem and hugetlbfs

2021-02-05 Thread Peter Xu
On Fri, Feb 05, 2021 at 02:21:47PM -0800, Hugh Dickins wrote: > On Fri, 29 Jan 2021, Peter Xu wrote: > > > > Huge & Mike, > > > > Would any of you have comment/concerns on the high-level design of this > > series? > > > > It would be great to know it, especially major objection, before move on

[PATCH v4 3/8] driver core: Add fw_devlink.strict kernel param

2021-02-05 Thread Saravana Kannan
This param allows forcing all dependencies to be treated as mandatory. This will be useful for boards in which all optional dependencies like IOMMUs and DMAs need to be treated as mandatory dependencies. Signed-off-by: Saravana Kannan --- Documentation/admin-guide/kernel-parameters.txt | 5

[PATCH 1/3] drivers/net/ethernet/amd: Correct spacing around C keywords

2021-02-05 Thread Amy Parker
Many C keywords and their statements are not formatted correctly per the kernel style guide. Their spacing makes them harder to read and to maintain. This patch updates their spacing to follow the style guide. Signed-off-by: Amy Parker --- drivers/net/ethernet/amd/atarilance.c | 36

((Confirmation Letter from United States of America ..Stay safe ..Aviod COVID 19))

2021-02-05 Thread COL.IVAN TODD
Dear Friend, Due to a lot of internet Fraud people have nursed fear to do online business that is real because of fear of dealing with the wrong people, I want to tell you that this mail is not one of them, can I trust you also to do this Business? Trust you are doing good? Stay proud !!!

[PATCH v4 8/8] clk: Mark fwnodes when their clock provider is added/removed

2021-02-05 Thread Saravana Kannan
This allows fw_devlink to recognize clock provider drivers that don't use the device-driver model to initialize the device. fw_devlink will use this information to make sure consumers of such clock providers aren't indefinitely blocked from probing, waiting for the power domain device to appear

Re: [PATCH v3 2/2] tpm: in tpm2_del_space check if ops pointer is still valid

2021-02-05 Thread Jason Gunthorpe
On Fri, Feb 05, 2021 at 09:54:29AM -0800, James Bottomley wrote: > On Fri, 2021-02-05 at 13:25 -0400, Jason Gunthorpe wrote: > > On Fri, Feb 05, 2021 at 08:48:11AM -0800, James Bottomley wrote: > > > > Thanks for pointing this out. I'd strongly support Jason's > > > > proposal: > > > > > > > >

Re: [RFC v1 09/26] x86/tdx: Handle CPUID via #VE

2021-02-05 Thread Andy Lutomirski
On Fri, Feb 5, 2021 at 3:39 PM Kuppuswamy Sathyanarayanan wrote: > > From: "Kirill A. Shutemov" > > TDX has three classes of CPUID leaves: some CPUID leaves > are always handled by the CPU, others are handled by the TDX module, > and some others are handled by the VMM. Since the VMM cannot

[net-next v4 08/14] octeontx2-af: cn10k: Add RPM MAC support

2021-02-05 Thread Geetha sowjanya
From: Hariprasad Kelam OcteonTx2's next gen platform the CN10K has RPM MAC which has a different serdes when compared to CGX MAC. Though the underlying HW is different, the CSR interface has been designed largely inline with CGX MAC, with few exceptions though. So we are using the same CGX

[PATCH v4 0/8] Make fw_devlink=on more forgiving

2021-02-05 Thread Saravana Kannan
There are a lot of devices/drivers where they never have a struct device created for them or the driver initializes the hardware without ever binding to the struct device. This series is intended to avoid any boot regressions due to such devices/drivers when fw_devlink=on and also address the

[PATCH v2 1/2] kunit: support failure from dynamic analysis tools

2021-02-05 Thread Daniel Latypov
From: Uriel Guajardo Add a kunit_fail_current_test() function to fail the currently running test, if any, with an error message. This is largely intended for dynamic analysis tools like UBSAN and for fakes. E.g. say I had a fake ops struct for testing and I wanted my `free` function to complain

Re: [PATCH] Documentation: kunit: add tips.rst for small examples

2021-02-05 Thread Brendan Higgins
On Mon, Jan 25, 2021 at 10:53 AM Daniel Latypov wrote: > > ./usage.rst contains fairly long examples and explanations of things > like how to fake a class and how to use parameterized tests (and how you > could do table-driven tests yourself). > > It's not exactly necessary information, so we add

[net-next v4 01/14] octeontx2-af: cn10k: Add mbox support for CN10K platform

2021-02-05 Thread Geetha sowjanya
Firmware allocates memory regions for PFs and VFs in DRAM. The PFs memory region is used for AF-PF and PF-VF mailbox. This mbox facilitates communication between AF-PF and PF-VF. On CN10K platform: The DRAM region allocated to PF is enumerated as PF BAR4 memory. PF BAR4 contains AF-PF mbox region

Re: [Patch v4 1/3] lib: Restrict cpumask_local_spread to houskeeping CPUs

2021-02-05 Thread Thomas Gleixner
On Thu, Feb 04 2021 at 14:17, Nitesh Narayan Lal wrote: > On 2/4/21 2:06 PM, Marcelo Tosatti wrote: How about adding a new flag for isolcpus instead? >>> Do you mean a flag based on which we can switch the affinity mask to >>> housekeeping for all the devices at the time of IRQ

Re: [PATCH v6 6/7] dt-bindings: connector: Add SVDM VDO properties

2021-02-05 Thread Kyle Tso
On Sat, Feb 6, 2021 at 5:30 AM Rob Herring wrote: > > On Fri, Feb 05, 2021 at 11:34:14AM +0800, Kyle Tso wrote: > > Add bindings of VDO properties of USB PD SVDM so that they can be > > used in device tree. > > > > Signed-off-by: Kyle Tso > > --- > > Changes since v5: > > - no change > > > >

[PATCH v4 4/8] of: property: Add fw_devlink support for optional properties

2021-02-05 Thread Saravana Kannan
Not all DT bindings are mandatory bindings. Add support for optional DT bindings and mark iommus, iommu-map, dmas as optional DT bindings. Signed-off-by: Saravana Kannan --- drivers/of/property.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git

Re: [PATCH v3 2/2] tpm: in tpm2_del_space check if ops pointer is still valid

2021-02-05 Thread Jason Gunthorpe
On Fri, Feb 05, 2021 at 05:08:20PM -0800, James Bottomley wrote: > Effectively all of this shuffles the tpmrm device allocation from > chip_alloc to chip_add ... I'm not averse to this but it does mean we > can suffer allocation failures now in the add routine and it makes > error handling a bit

Re: [PATCH] mm: page_alloc: update the COMPACT[STALL|FAIL] events properly

2021-02-05 Thread David Rientjes
On Tue, 2 Feb 2021, Charan Teja Kalla wrote: > >> diff --git a/mm/page_alloc.c b/mm/page_alloc.c > >> index 519a60d..531f244 100644 > >> --- a/mm/page_alloc.c > >> +++ b/mm/page_alloc.c > >> @@ -4152,6 +4152,8 @@ __alloc_pages_direct_compact(gfp_t gfp_mask, > >> unsigned int order, > >>

[RFC v1 24/26] x86/tdx: Add helper to do MapGPA TDVMALL

2021-02-05 Thread Kuppuswamy Sathyanarayanan
From: "Kirill A. Shutemov" MapGPA TDVMCALL requests the host VMM to map a GPA range as private or shared memory mappings. Shared GPA mappings can be used for communication beteen TD guest and host VMM, for example for paravirtualized IO. The new helper tdx_map_gpa() provides access to the

Re: [PATCH] Makefile: reuse CC_VERSION_TEXT

2021-02-05 Thread Masahiro Yamada
On Sat, Feb 6, 2021 at 7:01 AM 'Nick Desaulniers' via Clang Built Linux wrote: > > I noticed we're invoking $(CC) via $(shell) more than once to check the > version. Let's reuse the first string captured in $CC_VERSION_TEXT. > > Fixes: 315bab4e972d ("kbuild: fix endless syncconfig in case arch

[PATCH net-next v2 7/7] net: ipa: avoid field overflow

2021-02-05 Thread Alex Elder
It's possible that the length passed to ipa_header_size_encoded() is larger than what can be represented by the HDR_LEN field alone (starting with IPA v4.5). If we attempted that, u32_encode_bits() would trigger a build-time error. Avoid this problem by masking off high-order bits of the value

Re: [PATCH] kernel: irq: Some words replce with better alternatives in the file timings.c

2021-02-05 Thread Bhaskar Chowdhury
On 19:43 Fri 05 Feb 2021, Thomas Gleixner wrote: Bhaskar, On Fri, Feb 05 2021 at 17:58, Bhaskar Chowdhury wrote: The correct prefix for this file is: genirq/timings: which you can find via: git log kernel/irq/timings.c Also if you send a patch with spelling fixes then you might take care

Re: [PATCH v2] kunit: make kunit_tool accept optional path to .kunitconfig fragment

2021-02-05 Thread Brendan Higgins
On Mon, Feb 1, 2021 at 12:55 PM Daniel Latypov wrote: > > Currently running tests via KUnit tool means tweaking a .kunitconfig > file, which you'd keep around locally and never commit. > This changes makes it so users can pass in a path to a kunitconfig. > > One of the imagined use cases is

Re: [PATCH v3 0/3] kunit: support running subsets of test suites from kunit.py

2021-02-05 Thread Brendan Higgins
On Thu, Feb 4, 2021 at 2:54 PM Daniel Latypov wrote: > > When using `kunit.py run` to run tests, users must populate a > `kunitconfig` file to select the options the tests are hidden behind and > all their dependencies. > > The patch [1] to allow specifying a path to kunitconfig promises to make

[net-next v4 14/14] octeontx2-af: cn10k: MAC internal loopback support

2021-02-05 Thread Geetha sowjanya
From: Hariprasad Kelam MAC on CN10K silicon support loopback for selftest or debug purposes. This patch does necessary configuration to loopback packets upon receiving request from LMAC mapped RVU PF's netdev via mailbox. Also MAC (CGX) on OcteonTx2 silicon variants and MAC (RPM) on OcteonTx3

[net-next v4 00/14] Add Marvell CN10K support

2021-02-05 Thread Geetha sowjanya
The current admin function (AF) driver and the netdev driver supports OcteonTx2 silicon variants. The same OcteonTx2's Resource Virtualization Unit (RVU) is carried forward to the next-gen silicon ie OcteonTx3, with some changes and feature enhancements. This patch set adds support for OcteonTx3

Re: [PATCH 0/3] fs/efs: Follow kernel style guide

2021-02-05 Thread Richard Weinberger
On Fri, Feb 5, 2021 at 11:26 PM Amy Parker wrote: > > On Fri, Feb 5, 2021 at 5:1 AM David Sterba wrote: > > > > On Thu, Feb 04, 2021 at 08:52:14PM -0800, Amy Parker wrote: > > > As the EFS driver is old and non-maintained, > > > > Is anybody using EFS on current kernels? There's not much point

[net-next v4 09/14] octeontx2-af: cn10k: Add support for programmable channels

2021-02-05 Thread Geetha sowjanya
From: Subbaraya Sundeep NIX uses unique channel numbers to identify the packet sources/sinks like CGX,LBK and SDP. The channel numbers assigned to each block are hardwired in CN9xxx silicon. The fixed channel numbers in CN9xxx are: 0x0 | a << 8 | b- LBK(0..3)_CH(0..63) 0x0 | a << 8

[net-next v4 03/14] octeontx2-af: cn10k: Update NIX/NPA context structure

2021-02-05 Thread Geetha sowjanya
NIX hardware context structure got changed to accommodate new features like bandwidth steering, L3/L4 outer/inner checksum enable/disable etc., on CN10K platform. This patch defines new mbox message NIX_CN10K_AQ_INST for new NIX context initialization. This patch also updates the NPA context

[PATCH 2/3] drivers/net/ethernet/amd: Fix bracket matching and line levels

2021-02-05 Thread Amy Parker
Some statements - often if statements - do not follow the kernel style guide regarding what lines brackets and pairs should be on. This patch fixes those style violations. Signed-off-by: Amy Parker --- drivers/net/ethernet/amd/atarilance.c | 13 +

Re: [PATCH 4/8] cgroup: rstat: support cgroup1

2021-02-05 Thread Shakeel Butt
On Fri, Feb 5, 2021 at 10:28 AM Johannes Weiner wrote: > > Rstat currently only supports the default hierarchy in cgroup2. In > order to replace memcg's private stats infrastructure - used in both > cgroup1 and cgroup2 - with rstat, the latter needs to support cgroup1. > > The initialization and

Re: [PATCH v5 04/20] dt-bindings: mfd: axp20x: Add AXP305 compatible (plus optional IRQ)

2021-02-05 Thread Rob Herring
On Wed, Jan 27, 2021 at 05:24:44PM +, Andre Przywara wrote: > The AXP305 PMIC used in AXP805 seems to be fully compatible to the > AXP805 PMIC, so add the proper chain of compatible strings. > > Also at least on one board (Orangepi Zero2) there is no interrupt line > connected to the CPU, so

[PATCH 1/5] block: add disk sequence number

2021-02-05 Thread Matteo Croce
From: Matteo Croce Add a sequence number to the disk devices. This number is put in the uevent so userspace can correlate events when a driver reuses a device, like the loop one. Signed-off-by: Matteo Croce --- block/genhd.c | 19 +++ include/linux/genhd.h | 2 ++ 2

Re: [PATCH v5 3/7] dt-bindings: arm: cpus: Document 'qcom,freq-domain' property

2021-02-05 Thread AngeloGioacchino Del Regno
Il 05/02/21 22:46, Rob Herring ha scritto: On Thu, Jan 21, 2021 at 08:52:46PM +0100, AngeloGioacchino Del Regno wrote: From: Manivannan Sadhasivam Add devicetree documentation for 'qcom,freq-domain' property specific to Qualcomm CPUs. This property is used to reference the CPUFREQ node along

[PATCH 11/15] ARM: dts: ls1021a: fix memory node for schema check

2021-02-05 Thread Li Yang
Fix the following error from "make dtbs_check" memory: False schema does not allow ... Signed-off-by: Li Yang --- arch/arm/boot/dts/ls1021a.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dts/ls1021a.dtsi index

[PATCH 09/15] ARM: dts: ls1021a: fix ifc node to follow binding schema

2021-02-05 Thread Li Yang
Breakup long values in the ifc node. Change the node name to ifc-bus to follow the schema of simple-bus and disable the bus in the SoC dtsi file to be enabled only in board dts files. Signed-off-by: Li Yang --- arch/arm/boot/dts/ls1021a-qds.dts | 6 +++--- arch/arm/boot/dts/ls1021a.dtsi| 3

[net-next v4 06/14] octeontx2-pf: cn10k: Map LMTST region

2021-02-05 Thread Geetha sowjanya
On CN10K platform transmit/receive buffer alloc and free from/to hardware had changed to support burst operation. Whereas pervious silicon's only support single buffer free at a time. To Support the same firmware allocates a DRAM region for each PF/VF for storing LMTLINES. These LMTLINES are used

[PATCH 06/15] ARM: dts: ls1021a: update pcie nodes for dt-schema check

2021-02-05 Thread Li Yang
Break up long values to pass dt-schema checks. Signed-off-by: Li Yang --- arch/arm/boot/dts/ls1021a.dtsi | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dts/ls1021a.dtsi index 4bf6320c85d9..959a3c85b83e 100644

[PATCH v4 6/8] irqdomain: Mark fwnodes when their irqdomain is added/removed

2021-02-05 Thread Saravana Kannan
This allows fw_devlink to recognize irqdomain drivers that don't use the device-driver model to initialize the device. fw_devlink will use this information to make sure consumers of such irqdomain aren't indefinitely blocked from probing, waiting for the irqdomain device to appear and bind to a

Re: [PATCH v2] openrisc: use device tree to determine present cpus

2021-02-05 Thread Stafford Horne
On Fri, Feb 05, 2021 at 05:07:51PM +0100, Geert Uytterhoeven wrote: > Hi Stafford, > > On Fri, Feb 5, 2021 at 3:43 PM Stafford Horne wrote: > > On Mon, Feb 01, 2021 at 12:49:31PM +0100, Jan Henrik Weinstock wrote: > > > Use the device tree to determine the present cpus instead of assuming all >

[PATCH net-next] net/packet: Improve the comment about LL header visibility criteria

2021-02-05 Thread Xie He
The "dev_has_header" function, recently added in commit d549699048b4 ("net/packet: fix packet receive on L3 devices without visible hard header"), is more accurate as criteria for determining whether a device exposes the LL header to upper layers, because in addition to dev->header_ops, it also

Re: [PATCH] lib: Replace obscene word with a better one :)

2021-02-05 Thread Bhaskar Chowdhury
On 14:51 Fri 05 Feb 2021, Steven Rostedt wrote: On Fri, 5 Feb 2021 17:45:43 +0530 Bhaskar Chowdhury wrote: s/fucked/messed/ Rules about obscene language is about new code coming into the kernel. We don't want to encourage people to do sweeping changes of existing code. It just causes

[PATCH v2 0/5] dax-device: Some cleanups

2021-02-05 Thread Uwe Kleine-König
Hello, I didn't get any feedback for the (implicit) v1 of this series that started with Message-Id: 20210127230124.109522-1-...@kleine-koenig.org, but I identified a few improvements myself: - Use "dax-device" consistently as a prefix - Instead of requiring a .remove callback, make it

Re: [PATCH 0/2] Add support for Type-C mux events without port partners

2021-02-05 Thread Benson Leung
Hi Rajmohan, On Fri, 5 Feb 2021 11:51:11 -0800, Rajmohan Mani wrote: > There are cases, where support for Type-C mux events is needed, that > does not have port partners. > Enabling communication to a retimer connected to an USB4 port, when > no devices are attached, is a case that requires

Re: [RFC v1 13/26] x86/tdx: Handle MWAIT, MONITOR and WBINVD

2021-02-05 Thread Kuppuswamy, Sathyanarayanan
Hi Andy, On 2/5/21 3:43 PM, Andy Lutomirski wrote: MWAIT turning into NOP is no good. How about suppressing X86_FEATURE_MWAIT instead? Yes, we can suppress it in tdx_early_init(). + setup_clear_cpu_cap(X86_FEATURE_MWAIT); But do you want to leave the MWAIT #VE handler as it as (just in

Re: [PATCH v4 18/21] mfd: hi6421-spmi-pmic: move driver from staging

2021-02-05 Thread Rob Herring
On Tue, Jan 19, 2021 at 05:10:44PM +0100, Mauro Carvalho Chehab wrote: > This driver is ready for mainstream. So, move it out of staging. > > Signed-off-by: Mauro Carvalho Chehab > --- > .../mfd/hisilicon,hi6421-spmi-pmic.yaml | 135 + > MAINTAINERS

Re: [RFC v1 13/26] x86/tdx: Handle MWAIT, MONITOR and WBINVD

2021-02-05 Thread Andy Lutomirski
On Fri, Feb 5, 2021 at 3:54 PM Kuppuswamy, Sathyanarayanan wrote: > > Hi Andy, > > On 2/5/21 3:43 PM, Andy Lutomirski wrote: > > MWAIT turning into NOP is no good. How about suppressing > > X86_FEATURE_MWAIT instead? > Yes, we can suppress it in tdx_early_init(). > > +

[PATCH v2] tracepoints: Do not punish non static call users

2021-02-05 Thread Steven Rostedt
From: Steven Rostedt With static calls, a tracepoint can call the callback directly if there is only one callback registered to that tracepoint. When there is more than one, the static call will call the tracepoint's "iterator" function, which needs to reload the tracepoint's "funcs" array

Re: [PATCH 4/4] staging: comedi: Use subdir-ccflags-* to inherit debug flag

2021-02-05 Thread Masahiro Yamada
On Fri, Feb 5, 2021 at 6:54 PM Greg KH wrote: > > On Fri, Feb 05, 2021 at 05:44:15PM +0800, Yicong Yang wrote: > > From: Junhao He > > > > Use subdir-ccflags-* instead of ccflags-* to inherit the debug > > settings from Kconfig when traversing subdirectories. > > Again, explain _why_. > > Please

[RFC v1 25/26] x86/tdx: Make DMA pages shared

2021-02-05 Thread Kuppuswamy Sathyanarayanan
From: "Kirill A. Shutemov" Make force_dma_unencrypted() return true for TDX to get DMA pages mapped as shared. __set_memory_enc_dec() is now aware about TDX and sets Shared bit accordingly following with relevant TDVMCALL. Also, Do TDACCEPTPAGE on every 4k page after mapping the GPA range when

[tip: core/urgent] entry: Ensure trap after single-step on system call return

2021-02-05 Thread tip-bot2 for Gabriel Krisman Bertazi
The following commit has been merged into the core/urgent branch of tip: Commit-ID: 6342adcaa683c2b705c24ed201dc11b35854c88d Gitweb: https://git.kernel.org/tip/6342adcaa683c2b705c24ed201dc11b35854c88d Author:Gabriel Krisman Bertazi AuthorDate:Wed, 03 Feb 2021 13:00:48

[PATCH v2 3/5] dax-device: Fix error path in dax_driver_register

2021-02-05 Thread Uwe Kleine-König
The static variable match_always_count is supposed to track if there is a driver registered that has .match_always set. If driver_register() fails, the previous increment must be undone. Signed-off-by: Uwe Kleine-König --- drivers/dax/bus.c | 10 +- 1 file changed, 9 insertions(+), 1

[tip: core/urgent] entry: Use different define for selector variable in SUD

2021-02-05 Thread tip-bot2 for Gabriel Krisman Bertazi
The following commit has been merged into the core/urgent branch of tip: Commit-ID: 36a6c843fd0d8e02506681577e96dabd203dd8e8 Gitweb: https://git.kernel.org/tip/36a6c843fd0d8e02506681577e96dabd203dd8e8 Author:Gabriel Krisman Bertazi AuthorDate:Fri, 05 Feb 2021 13:43:21

Re: [PATCH v3 2/2] tpm: in tpm2_del_space check if ops pointer is still valid

2021-02-05 Thread James Bottomley
On Fri, 2021-02-05 at 13:25 -0400, Jason Gunthorpe wrote: > On Fri, Feb 05, 2021 at 08:48:11AM -0800, James Bottomley wrote: [...] > > The practical consequence of this model is that if you allocate a > > chip structure with tpm_chip_alloc() you have to release it again > > by doing a put of

[PATCH v4] ARM: kprobes: rewrite test-arm.c in UAL

2021-02-05 Thread Nick Desaulniers
Clang's integrated assembler only accepts UAL syntax, rewrite the instructions that were changed by RVCTv2.1. The document "Assembly language changes after RVCTv2.1" was very helpful. movs pc, r1, lsl r2 is converted to be open coded via __inst_arm. The resolution of a discussion on the

Re: [RFC PATCH 6/8] preempt/dynamic: Provide preempt_schedule[_notrace]() static calls

2021-02-05 Thread Josh Poimboeuf
On Fri, Feb 05, 2021 at 04:30:56PM +0100, Peter Zijlstra wrote: > On Wed, Feb 03, 2021 at 03:04:23PM +0100, Peter Zijlstra wrote: > > Fair enough I suppose. I'll slap a changelog and your SoB on it and I > > suppose I'll got commit the whole lot. Then we can forget about it > > again. > > FWIW,

[RFC v1 23/26] x86/tdx: Make pages shared in ioremap()

2021-02-05 Thread Kuppuswamy Sathyanarayanan
From: "Kirill A. Shutemov" All ioremap()ed paged that are not backed by normal memory (NONE or RESERVED) have to be mapped as shared. Reuse the infrastructure we have for AMD SEV. Signed-off-by: Kirill A. Shutemov Reviewed-by: Andi Kleen Signed-off-by: Kuppuswamy Sathyanarayanan ---

Re: [PATCH] KUnit: Docs: make start.rst example Kconfig follow style.rst

2021-02-05 Thread Brendan Higgins
On Tue, Jan 19, 2021 at 3:52 PM Daniel Latypov wrote: > > The primary change is that we want to encourage people to respect > KUNIT_ALL_TESTS to make it easy to run all the relevant tests for a > given config. > > Signed-off-by: Daniel Latypov Reviewed-by: Brendan Higgins

[PATCH v4 5/8] driver core: fw_devlink: Handle suppliers that don't use driver core

2021-02-05 Thread Saravana Kannan
Device links only work between devices that use the driver core to match and bind a driver to a device. So, add an API for frameworks to let the driver core know that a fwnode has been initialized by a driver without using the driver core. Then use this information to make sure that fw_devlink

[RFC PATCH] KVM: x86: Set PF_VCPU when processing IRQs to fix tick-based accounting

2021-02-05 Thread Sean Christopherson
Temporarily set PF_VCPU while processing IRQ VM-Exits so that a tick IRQ accounts the time slice to the guest. Tick-based accounting of guest time is currently broken as PF_VCPU is only set during the relatively short VM-Enter sequence, which runs entirely with IRQs disabled, and IRQs that occur

[PATCH 3/3] drivers/net/ethernet/amd: Break apart one-lined expressions

2021-02-05 Thread Amy Parker
Some expressions using C keywords - especially if expressions - are crammed onto one line. The kernel style guide indicates not to do this, as it harms readability. This patch splits these one-lined statements into two lines. Signed-off-by: Amy Parker --- drivers/net/ethernet/amd/atarilance.c |

Re: [PATCH 0/3] fs/efs: Follow kernel style guide

2021-02-05 Thread Amy Parker
On Fri, Feb 5, 2021 at 2:37 PM Richard Weinberger wrote: > > On Fri, Feb 5, 2021 at 11:26 PM Amy Parker wrote: > > > > On Fri, Feb 5, 2021 at 5:1 AM David Sterba wrote: > > > > > > On Thu, Feb 04, 2021 at 08:52:14PM -0800, Amy Parker wrote: > > > > As the EFS driver is old and non-maintained, >

Re: [PATCH v4 17/21] spmi: hisi-spmi-controller: move driver from staging

2021-02-05 Thread Rob Herring
On Tue, Jan 19, 2021 at 05:10:43PM +0100, Mauro Carvalho Chehab wrote: > The Hisilicon 6421v600 SPMI driver is ready for mainstream. > > So, move it from staging. > > Signed-off-by: Mauro Carvalho Chehab > --- > .../spmi/hisilicon,hisi-spmi-controller.yaml | 75 > MAINTAINERS

Re: [PATCH RFC 00/30] userfaultfd-wp: Support shmem and hugetlbfs

2021-02-05 Thread Hugh Dickins
On Fri, 29 Jan 2021, Peter Xu wrote: > > Huge & Mike, > > Would any of you have comment/concerns on the high-level design of this > series? > > It would be great to know it, especially major objection, before move on to an > non-rfc version. Seeing Mike's update prompts me to speak up: I have

Re: [PATCH] printk: Userspace format enumeration support

2021-02-05 Thread Chris Down
Hi Petr, Thanks for looking over the patch. :-) Petr Mladek writes: Most production issues come from unexpected phenomena, and as such usually the code in question doesn't have easily usable tracepoints or other counters available for the specific problem being mitigated. We have a number of

Re: [PATCH 5.10 00/57] 5.10.14-rc1 review

2021-02-05 Thread Igor
On Fri, Feb 05, 2021 at 03:06:26PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.10.14 release. > There are 57 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

[PATCH 00/15] Cleanup of LS1021a device trees

2021-02-05 Thread Li Yang
This is a series of patches trying to cleanup the LS1021a based device trees including: - Add missing nodes - Update to use SPDX tags - Fix existing schema check issues in dts - Update/convert related bindings to deal with some check issues Li Yang (15): dt-bindings: arm: fsl: add ls1021a-tsn

Re: [PATCH v10 3/7] Documentation: ACPI: Document _DSE object usage for enum power state

2021-02-05 Thread Randy Dunlap
On 2/5/21 5:25 AM, Sakari Ailus wrote: > Document the use of the _DSE object for setting desirable power state > during probe. > > Signed-off-by: Sakari Ailus > Reviewed-by: Tomasz Figa > --- > Documentation/firmware-guide/acpi/index.rst | 1 + > .../firmware-guide/acpi/low-power-probe.rst

[PATCH 01/15] dt-bindings: arm: fsl: add ls1021a-tsn board

2021-02-05 Thread Li Yang
Add the missing board in the binding docuemnt. Signed-off-by: Li Yang --- Documentation/devicetree/bindings/arm/fsl.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bindings/arm/fsl.yaml index

[PATCH 07/15] ARM: dts: ls1021a: fix board compatible to follow binding schema

2021-02-05 Thread Li Yang
Align the compatible strings with the board binding defined in schema file. Signed-off-by: Li Yang --- arch/arm/boot/dts/ls1021a-tsn.dts | 1 + arch/arm/boot/dts/ls1021a.dtsi| 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/ls1021a-tsn.dts

[PATCH 04/15] ARM: dts: ls1021a: change to use SPDX identifiers

2021-02-05 Thread Li Yang
Replace the license text with SPDX identifiers. In the mean while updated copyright years for previous changes. Signed-off-by: Li Yang --- arch/arm/boot/dts/ls1021a-qds.dts | 46 ++- arch/arm/boot/dts/ls1021a-twr.dts | 46 ++-

[PATCH 10/15] ARM: dts: ls1021a: remove regulators simple-bus

2021-02-05 Thread Li Yang
There is no regulator bus in hardware. So move the regulator nodes out and remove the regulators simple-bus. This also make the dts align with the simple-bus schema. Signed-off-by: Li Yang --- arch/arm/boot/dts/ls1021a-qds.dts | 19 ++- arch/arm/boot/dts/ls1021a-twr.dts | 19

[RFC v1 26/26] x86/kvm: Use bounce buffers for TD guest

2021-02-05 Thread Kuppuswamy Sathyanarayanan
From: "Kirill A. Shutemov" TDX doesn't allow to perform DMA access to guest private memory. In order for DMA to work properly in TD guest, user SWIOTLB bounce buffers. Move AMD SEV initialization into common code and adopt for TDX. Signed-off-by: Kirill A. Shutemov Reviewed-by: Andi Kleen

[PATCH] Makefile: reuse CC_VERSION_TEXT

2021-02-05 Thread Nick Desaulniers
I noticed we're invoking $(CC) via $(shell) more than once to check the version. Let's reuse the first string captured in $CC_VERSION_TEXT. Fixes: 315bab4e972d ("kbuild: fix endless syncconfig in case arch Makefile sets CROSS_COMPILE") Signed-off-by: Nick Desaulniers --- Makefile | 14

[net-next v4 07/14] octeontx2-pf: cn10k: Use LMTST lines for NPA/NIX

2021-02-05 Thread Geetha sowjanya
This patch adds support to use new LMTST lines for NPA batch free and burst SQE flush. Adds new dev_hw_ops structure to hold platform specific functions and create new files cn10k.c and cn10k.h. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham ---

Re: [PATCH RFC 00/30] userfaultfd-wp: Support shmem and hugetlbfs

2021-02-05 Thread Peter Xu
On Fri, Feb 05, 2021 at 01:53:34PM -0800, Mike Kravetz wrote: > On 1/29/21 2:49 PM, Peter Xu wrote: > > On Fri, Jan 15, 2021 at 12:08:37PM -0500, Peter Xu wrote: > >> This is a RFC series to support userfaultfd upon shmem and hugetlbfs. > ... > > Huge & Mike, > > > > Would any of you have

Re: [PATCH] kunit: tool: simplify kconfig is_subset_of() logic

2021-02-05 Thread Brendan Higgins
On Tue, Dec 8, 2020 at 3:21 PM Daniel Latypov wrote: > > Don't use an O(nm) algorithm* and make it more readable by using a dict. > > *Most obviously, it does a nested for-loop over the entire other config. > A bit more subtle, it calls .entries(), which constructs a set from the > list for

Re: [PATCH] kunit: Print test statistics on failure

2021-02-05 Thread Brendan Higgins
On Thu, Dec 10, 2020 at 11:23 PM David Gow wrote: > > When a number of tests fail, it can be useful to get higher-level > statistics of how many tests are failing (or how many parameters are > failing in parameterised tests), and in what cases or suites. This is > already done by some non-KUnit

[RFC v1 21/26] x86/mm: Move force_dma_unencrypted() to common code

2021-02-05 Thread Kuppuswamy Sathyanarayanan
From: "Kirill A. Shutemov" Intel TDX doesn't allow VMM to access guest memory. Any memory that is required for communication with VMM suppose to be shared explicitly by setting the bit in page table entry. The shared memory is similar to unencrypted memory in AMD SME/SEV terminology.

Re: [PATCH -next] media: venus: Include io.h for memremap()

2021-02-05 Thread Fritz Koenig
On Tue, Feb 2, 2021 at 11:51 AM Stephen Boyd wrote: > > This file uses memremap() now, so we should include io.h instead of > relying on any sort of implicit include elsewhere. > > Cc: Dikshita Agarwal > Fixes: 0ca0ca980505 ("media: venus: core: add support to dump FW region") > Signed-off-by:

[PATCH] kunit: make KUNIT_EXPECT_STREQ() quote values, don't print literals

2021-02-05 Thread Daniel Latypov
Before: > Expected str == "world", but > str == hello > "world" == world After: > Expected str == "world", but > str == "hello" Note: like the literal ellision for integers, this doesn't handle the case of KUNIT_EXPECT_STREQ(test, "hello", "world") since we don't expect it to

Re: [PATCH v2 1/1] powerpc/kvm: Save Timebase Offset to fix sched_clock() while running guest code.

2021-02-05 Thread Michael Ellerman
Nicholas Piggin writes: > Excerpts from Leonardo Bras's message of February 5, 2021 4:06 pm: >> Before guest entry, TBU40 register is changed to reflect guest timebase. >> After exitting guest, the register is reverted to it's original value. >> >> If one tries to get the timestamp from host

[net-next v4 12/14] octeontx2-af: cn10k: Add RPM LMAC pause frame support

2021-02-05 Thread Geetha sowjanya
From: Rakesh Babu Flow control configuration is different for CGX(Octeontx2) and RPM(CN10K) functional blocks. This patch adds the necessary changes for RPM to support 802.3 pause frames configuration on cn10k platforms. Signed-off-by: Rakesh Babu Signed-off-by: Geetha sowjanya Signed-off-by:

[net-next v4 04/14] octeontx2-af: cn10k: Update NIX and NPA context in debugfs

2021-02-05 Thread Geetha sowjanya
On CN10K platform NPA and NIX context structure bit fields had changed to support new features like bandwidth steering etc. This patch dumps approprate context for CN10K platform. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../ethernet/marvell/octeontx2/af/rvu_debugfs.c

[RFC v1 22/26] x86/tdx: Exclude Shared bit from __PHYSICAL_MASK

2021-02-05 Thread Kuppuswamy Sathyanarayanan
From: "Kirill A. Shutemov" tdx_shared_mask() returns the mask that has to be set in page table entry to make page shared with VMM. Signed-off-by: Kirill A. Shutemov Reviewed-by: Andi Kleen Signed-off-by: Kuppuswamy Sathyanarayanan --- arch/x86/Kconfig | 1 +

[tip: sched/urgent] Revert "lib: Restrict cpumask_local_spread to houskeeping CPUs"

2021-02-05 Thread tip-bot2 for Thomas Gleixner
The following commit has been merged into the sched/urgent branch of tip: Commit-ID: 2452483d9546de1c540f330469dc4042ff089731 Gitweb: https://git.kernel.org/tip/2452483d9546de1c540f330469dc4042ff089731 Author:Thomas Gleixner AuthorDate:Fri, 05 Feb 2021 23:28:29 +01:00

Re: [PATCH v2 23/28] KVM: x86/mmu: Allow parallel page faults for the TDP MMU

2021-02-05 Thread Sean Christopherson
On Wed, Feb 03, 2021, Paolo Bonzini wrote: > On 03/02/21 18:46, Ben Gardon wrote: > > enum kvm_mmu_lock_mode lock_mode = > > get_mmu_lock_mode_for_root(vcpu->kvm, vcpu->arch.mmu->root_hpa); > > > > kvm_mmu_lock_for_mode(lock_mode); > > > > Not sure if either of those are actually clearer,

[RFC v1 20/26] x86/tdx: Introduce INTEL_TDX_GUEST config option

2021-02-05 Thread Kuppuswamy Sathyanarayanan
Add INTEL_TDX_GUEST config option to selectively compile TDX guest support. Signed-off-by: Kuppuswamy Sathyanarayanan Reviewed-by: Andi Kleen --- arch/x86/Kconfig | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index

[PATCH net-next v2 2/7] net: ipa: synchronize NAPI only for suspend

2021-02-05 Thread Alex Elder
When stopping a channel, gsi_channel_stop() will ensure NAPI polling is complete when it calls napi_disable(). So there is no need to call napi_synchronize() in that case. Move the call to napi_synchronize() out of __gsi_channel_stop() and into gsi_channel_suspend(), so it's only used where

Re: [PATCH v4 1/2] procfs: Allow reading fdinfo with PTRACE_MODE_READ

2021-02-05 Thread Randy Dunlap
On 2/5/21 1:33 PM, Kalesh Singh wrote: > Android captures per-process system memory state when certain low memory > events (e.g a foreground app kill) occur, to identify potential memory > hoggers. In order to measure how much memory a process actually consumes, > it is necessary to include the

[PATCH v2 0/2] kunit: fail tests on UBSAN errors

2021-02-05 Thread Daniel Latypov
v1 by Uriel is here: [1]. Since it's been a while, I've dropped the Reviewed-By's. It depended on commit 83c4e7a0363b ("KUnit: KASAN Integration") which hadn't been merged yet, so that caused some kerfuffle with applying them previously and the series was reverted. This revives the series but

RE: [PATCH 0/2] Add support for Type-C mux events without port partners

2021-02-05 Thread Mani, Rajmohan
Hi Benson, > Subject: Re: [PATCH 0/2] Add support for Type-C mux events without port > partners > > Hi Rajmohan, > > On Fri, 5 Feb 2021 11:51:11 -0800, Rajmohan Mani wrote: > > There are cases, where support for Type-C mux events is needed, that > > does not have port partners. > > Enabling

[PATCH v2 1/5] dax-device: Prevent registering drivers without probe callback

2021-02-05 Thread Uwe Kleine-König
The bus probe function dax_bus_probe() calls the probe callback without checking it to be non-NULL. Prevent a NULL pointer exception if a driver without a probe function is registered by refusing to register this driver. Signed-off-by: Uwe Kleine-König --- drivers/dax/bus.c | 7 +++ 1 file

Re: [PATCH v2 13/28] KVM: x86/mmu: Ensure forward progress when yielding in TDP MMU iter

2021-02-05 Thread Sean Christopherson
On Tue, Feb 02, 2021, Ben Gardon wrote: > @@ -505,8 +516,8 @@ static bool zap_gfn_range(struct kvm *kvm, struct > kvm_mmu_page *root, > > tdp_mmu_set_spte(kvm, , 0); > > - flush_needed = !can_yield || > -!tdp_mmu_iter_cond_resched(kvm, ,

Re: [PATCH 5.10 00/57] 5.10.14-rc1 review

2021-02-05 Thread Pavel Machek
Hi! > This is the start of the stable review cycle for the 5.10.14 release. > There are 57 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. CIP testing did not find any problems here:

[PATCH v5 22/34] xlink-core: Enable VPU IP management and runtime control

2021-02-05 Thread mgross
From: Seamus Kelly Enable VPU management including, enumeration, boot and runtime control. Add APIs: write control data: used to transmit small, local data start vpu: calls boot_device API ( soon to be deprecated ) stop vpu

[RFC v1 18/26] x86/topology: Disable CPU hotplug support for TDX platforms.

2021-02-05 Thread Kuppuswamy Sathyanarayanan
As per Intel TDX Virtual Firmware Design Guide, sec 4.3.5 and sec 9.4, all unused CPUs are put in spinning state by TDVF until OS requests for CPU bring-up via mailbox address passed by ACPI MADT table. Since by default all unused CPUs are always in spinning state, there is no point in supporting

[PATCH 4/4] fs/btrfs: Convert to zero_user()

2021-02-05 Thread ira . weiny
From: Ira Weiny The development of this patch was aided by the following coccinelle script: // // SPDX-License-Identifier: GPL-2.0-only // Find kmap/memset/kunmap pattern and replace with memset*page calls // // NOTE: Offsets and other expressions may be more complex than what the script //

[PATCH 0/4] btrfs: Convert kmaps to core page calls

2021-02-05 Thread ira . weiny
From: Ira Weiny There are many places where kmap//kunmap patterns occur. We lift these various patterns to core common functions and use them in the btrfs file system. At the same time we convert those core functions to use kmap_local_page() which is more efficient in those calls. I think

[PATCH net-next v2 3/7] net: ipa: do not cache event ring state

2021-02-05 Thread Alex Elder
An event ring's state only needs to be known when it is allocated, reset, or deallocated. We check an event ring's state both before and after performing an event ring control command that changes its state. These are only issued at startup and shutdown, so there is very little value in caching

Re: [PATCH v3 1/2] tpm: fix reference counting for struct tpm_chip

2021-02-05 Thread Jason Gunthorpe
On Fri, Feb 05, 2021 at 10:50:02PM +0100, Lino Sanfilippo wrote: > On 05.02.21 at 16:58, Jason Gunthorpe wrote: > eference in the first place). > > > > No, they are all chained together because they are all in the same > > struct: > > > > struct tpm_chip { > > struct device dev; > > struct

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