[PATCH 0/5] srcu: Fix boot stall v2

2021-04-08 Thread Frederic Weisbecker
So here is a different approach to solve the early SRCU issue. Early initialized ssp's are reset on srcu_init() and their callbacks get requeued. I expanded testing in the last patch. git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git rcu/dev HEAD:

[RFC v3] KVM: x86: Support KVM VMs sharing SEV context

2021-04-08 Thread Nathan Tempelman
Add a capability for userspace to mirror SEV encryption context from one vm to another. On our side, this is intended to support a Migration Helper vCPU, but it can also be used generically to support other in-guest workloads scheduled by the host. The intention is for the primary guest and the

Re: [RFC bpf-next 0/1] bpf: Add page cache iterator

2021-04-08 Thread Darrick J. Wong
On Wed, Apr 07, 2021 at 02:46:10PM -0700, Daniel Xu wrote: > There currently does not exist a way to answer the question: "What is in > the page cache?". There are various heuristics and counters but nothing > that can tell you anything like: > > * 3M from /home/dxu/foo.txt > * 5K from ...

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

2021-04-08 Thread Randy Dunlap
On 4/8/21 3:58 PM, Dexuan Cui wrote: > Changes in v3: > Changed the Kconfig file: > Microsoft Azure Network Device ==> Microsoft Network Devices > Drop the default m > validated ==> supported Hi, I am satisfied with the Kconfig changes. thanks. -- ~Randy

Re: [PATCH -next] lib: zstd: Make symbol 'HUF_compressWeights_wksp' static

2021-04-08 Thread Nick Desaulniers
On Thu, Apr 8, 2021 at 5:55 AM Zhao Xuehui wrote: > > The symbol 'HUF_compressWeights_wksp' is not used outside of > huf_compress.c, so this commit marks it static. Reviewed-by: Nick Desaulniers Quite a few other functions are declared in a header, but I don't see any existing callers in tree.

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

2021-04-08 Thread Dexuan Cui
> From: David Miller > Sent: Thursday, April 8, 2021 5:41 PM > > ... > > In the driver code, all the structs/unions marked by __packed are used to > > talk with the hardware, so I think __packed is necessary here? > > It actually isan't in many cases, check with and without the __packed >

[PATCH 3/3] staging: rtl8712: remove (most of) enum WIFI_FRAME_TYPE

2021-04-08 Thread Christophe JAILLET
The values defined in enum WIFI_FRAME_TYPE are the same the #define IEEE80211_FTYPE_xxx from Use these values to avoid code duplication. WIFI_QOS_DATA_TYPE is a bit more tricky and doesn't have a direct equivalence in . So leave this one as-is for now. Signed-off-by: Christophe JAILLET ---

Re: [RFC PATCH v6 1/1] cmdline: Add capability to both append and prepend at the same time

2021-04-08 Thread Rob Herring
On Sun, Apr 4, 2021 at 12:20 PM Christophe Leroy wrote: > > One user has expressed the need to both append and prepend some > built-in parameters to the command line provided by the bootloader. > > Allthough it is a corner case, it is easy to implement so let's do it. > > When the user chooses to

[PATCH] iommu: exynos: remove unneeded local variable initialization

2021-04-08 Thread Krzysztof Kozlowski
The initialization of 'fault_addr' local variable is not needed as it is shortly after overwritten. Addresses-Coverity: Unused value Signed-off-by: Krzysztof Kozlowski --- drivers/iommu/exynos-iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH v15 00/13] s390/vfio-ap: dynamic configuration support

2021-04-08 Thread Halil Pasic
On Tue, 6 Apr 2021 11:31:09 -0400 Tony Krowiak wrote: > Tony Krowiak (13): > s390/vfio-ap: fix circular lockdep when setting/clearing crypto masks The subsequent patches, re introduce this circular locking dependency problem. See my kernel messages for the details. The link we severe in the

[PATCH 0/2] media: zoran: clean up style issues

2021-04-08 Thread Mitali Borkar
These patches make changes to clean up style issues as identified by checkpatch Mitali Borkar (2): media: zoran: add spaces around '<<' media: zoran: replace bit shifts by BIT() macro drivers/staging/media/zoran/zr36057.h | 16 +--- 1 file changed, 9 insertions(+), 7

[PATCH 1/2] media: zoran: add spaces around '<<'

2021-04-08 Thread Mitali Borkar
Added spaces around '<<' operator to improve readability and meet linux kernel coding style. Reported by checkpatch Signed-off-by: Mitali Borkar --- drivers/staging/media/zoran/zr36057.h | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git

Re: [PATCH v2 1/6] dt-bindings: devapc: Update bindings

2021-04-08 Thread Rob Herring
On Thu, Apr 01, 2021 at 02:38:02PM +0800, Nina Wu wrote: > From: Nina Wu Every change is an 'update'. Perhaps mention mt8192 in the subject. > > To support newer hardware architecture of devapc, > update device tree bindings. > > Signed-off-by: Nina Wu > --- >

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

2021-04-08 Thread Sowjanya Komatineni
This patch adds check to call 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. --- drivers/ata/ahci_tegra.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

[PATCH v2] Follow up patch to Tegra186 AHCI support patch series

2021-04-08 Thread Sowjanya Komatineni
This includes a follow up patch to Tegra186 AHCI support patch series https://lore.kernel.org/patchwork/cover/1408752/ Delta between patch versions: [v2]: v1 has missing PM domain check in error path. Fixed in v2. Sowjanya Komatineni (1): ata: ahci_tegra: call tegra_powergate_power_off only

[PATCH] staging: media: zoran: reduce length of a line

2021-04-08 Thread Mitali Borkar
Reduced length of a line which exceed the 100 columns limit by splitting the line into two statements and commenting it with '*' Reported by checkpatch. Signed-off-by: Mitali Borkar --- drivers/staging/media/zoran/zr36060.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

Re: [RFC bpf-next 0/1] bpf: Add page cache iterator

2021-04-08 Thread Shakeel Butt
On Wed, Apr 7, 2021 at 2:47 PM Daniel Xu wrote: > > There currently does not exist a way to answer the question: "What is in > the page cache?". There are various heuristics and counters but nothing > that can tell you anything like: > > * 3M from /home/dxu/foo.txt > * 5K from ... > * etc.

Re: [PATCH v7] soc: fsl: enable acpi support in RCPM driver

2021-04-08 Thread Li Yang
On Wed, Apr 7, 2021 at 9:58 PM Ran Wang wrote: > > From: Peng Ma > > This patch enables ACPI support in RCPM driver. > > Signed-off-by: Peng Ma > Signed-off-by: Ran Wang Applied for next. Thanks. > --- > Change in v7: > - Update comment for checking RCPM node which refferred to > > Change

Re: [PATCH] ext4: add a configurable parameter to prevent endless loop in ext4_mb_discard_group_p

2021-04-08 Thread Andreas Dilger
On Apr 8, 2021, at 12:50 PM, Wen Yang wrote: > > Hi Ritesh and Andreas, > > Thank you for your reply. Since there is still a faulty machine, we have > analyzed it again and found it is indeed a very special case: > > > crash> struct ext4_group_info 8813bb5f72d0 > struct ext4_group_info {

Re: [PATCH v4 2/7] fsdax: Replace mmap entry in case of CoW

2021-04-08 Thread Darrick J. Wong
On Thu, Apr 08, 2021 at 08:04:27PM +0800, Shiyang Ruan wrote: > We replace the existing entry to the newly allocated one in case of CoW. > Also, we mark the entry as PAGECACHE_TAG_TOWRITE so writeback marks this > entry as writeprotected. This helps us snapshots so new write > pagefaults after

Re: [Outreachy kernel] [PATCH 2/2] media: zoran: replace bit shifts by BIT() macro

2021-04-08 Thread Julia Lawall
On Fri, 9 Apr 2021, Mitali Borkar wrote: > On Thu, Apr 08, 2021 at 11:15:07PM +0200, Julia Lawall wrote: > > > > > > On Fri, 9 Apr 2021, Mitali Borkar wrote: > > > > > Added #include and replaced bit shifts by BIT() macro. > > > This BIT() macro from linux/bitops.h is used to define

Re: [PATCH v4 5/7] fsdax: Dedup file range to use a compare function

2021-04-08 Thread Darrick J. Wong
On Thu, Apr 08, 2021 at 08:04:30PM +0800, Shiyang Ruan wrote: > With dax we cannot deal with readpage() etc. So, we create a dax > comparison funciton which is similar with > vfs_dedupe_file_range_compare(). > And introduce dax_remap_file_range_prep() for filesystem use. > > Signed-off-by:

Re: [PATCH v2 7/8] cxl/port: Introduce cxl_port objects

2021-04-08 Thread Bjorn Helgaas
[+cc Greg, Rafael, Matthew: device model questions] Hi Dan, On Thu, Apr 01, 2021 at 07:31:20AM -0700, Dan Williams wrote: > Once the cxl_root is established then other ports in the hierarchy can > be attached. The cxl_port object, unlike cxl_root that is associated > with host bridges, is

Re: [PATCH bpf-next v2 3/6] bpf: Add a bpf_snprintf helper

2021-04-08 Thread Florent Revest
On Thu, Apr 8, 2021 at 12:03 AM Andrii Nakryiko wrote: > On Tue, Apr 6, 2021 at 9:06 AM Florent Revest wrote: > > On Fri, Mar 26, 2021 at 11:55 PM Andrii Nakryiko > > wrote: > > > On Tue, Mar 23, 2021 at 7:23 PM Florent Revest > > > wrote: > > > > + * Formats **%s** and

Re: [PATCH v6 00/18] Add support for Clang CFI

2021-04-08 Thread Kees Cook
On Thu, Apr 08, 2021 at 11:28:25AM -0700, Sami Tolvanen wrote: > This series adds support for Clang's Control-Flow Integrity (CFI) > checking. With CFI, the compiler injects a runtime check before each > indirect function call to ensure the target is a valid function with > the correct static

Re: [PATCH v6 3/5] of/platform: Add stubs for of_platform_device_create/destroy()

2021-04-08 Thread Matthias Kaehlcke
On Thu, Apr 08, 2021 at 10:21:12AM -0500, Rob Herring wrote: > On Mon, Apr 05, 2021 at 01:18:15PM -0700, Matthias Kaehlcke wrote: > > Code for platform_device_create() and of_platform_device_create() is > > platform_device_create()? ack, should be of_platform_device_destroy() > > only generated

Re: [Outreachy kernel] [PATCH 2/2] media: zoran: replace bit shifts by BIT() macro

2021-04-08 Thread Mitali Borkar
On Fri, Apr 09, 2021 at 12:10:06AM +0200, Julia Lawall wrote: > > > On Fri, 9 Apr 2021, Mitali Borkar wrote: > > > On Thu, Apr 08, 2021 at 11:15:07PM +0200, Julia Lawall wrote: > > > > > > > > > On Fri, 9 Apr 2021, Mitali Borkar wrote: > > > > > > > Added #include and replaced bit shifts by

Re: [PATCH 4/4] mm/hugeltb: handle the error case in hugetlb_fix_reserve_counts()

2021-04-08 Thread Mike Kravetz
On 4/2/21 2:32 AM, Miaohe Lin wrote: > A rare out of memory error would prevent removal of the reserve map region > for a page. hugetlb_fix_reserve_counts() handles this rare case to avoid > dangling with incorrect counts. Unfortunately, hugepage_subpool_get_pages > and hugetlb_acct_memory could

Re: linux-next: build warning after merge of the mvebu tree

2021-04-08 Thread Stephen Rothwell
Hi all, On Thu, 8 Apr 2021 09:56:12 +1000 Stephen Rothwell wrote: > > After merging the mvebu tree, today's linux-next build (arm > multi_v7_defconfig) produced this warning: > > arch/arm/boot/dts/armada-385-atl-x530.dts:171.14-199.4: Warning > (spi_bus_reg): /soc/spi@10680/spi-flash@0: SPI

Re: [GIT PULL] Please pull RDMA subsystem changes

2021-04-08 Thread pr-tracker-bot
The pull request you sent on Thu, 8 Apr 2021 16:51:27 -0300: > git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git tags/for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/4fa56ad0d12e24df768c98bffe9039f915d1bc02 Thank you! -- Deet-doot-dot, I am a

Re: [PATCH v3 1/1] dt-bindings: memory: tegra20: emc: Convert to schema

2021-04-08 Thread Dmitry Osipenko
08.04.2021 23:29, Rob Herring пишет: > On Sun, Apr 04, 2021 at 06:55:01PM +0300, Dmitry Osipenko wrote: >> Convert Tegra20 External Memory Controller binding to schema. >> >> Signed-off-by: Dmitry Osipenko >> --- >> .../memory-controllers/nvidia,tegra20-emc.txt | 130 >>

Re: [PATCH 0/9] sched: Core scheduling interfaces

2021-04-08 Thread Josh Don
On Thu, Apr 8, 2021 at 9:47 AM Peter Zijlstra wrote: > > On Thu, Apr 08, 2021 at 03:25:52PM +0200, Michal Koutný wrote: > > > I'm curious whether the cgroup API actually simplifies things that are > > possible with the clone/prctl API or allows anything that wouldn't be > > otherwise possible. >

Re: [RFC v2] KVM: x86: Support KVM VMs sharing SEV context

2021-04-08 Thread Steve Rutherford
On Thu, Apr 8, 2021 at 2:15 PM James Bottomley wrote: > > On Thu, 2021-04-08 at 12:48 -0700, Steve Rutherford wrote: > > On Thu, Apr 8, 2021 at 10:43 AM James Bottomley > > wrote: > > > On Fri, 2021-04-02 at 16:20 +0200, Paolo Bonzini wrote: > > > > On 02/04/21 13:58, Ashish Kalra wrote: > > > >

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

2021-04-08 Thread David Miller
From: Dexuan Cui Date: Fri, 9 Apr 2021 00:24:51 + >> From: David Miller >> Sent: Thursday, April 8, 2021 4:46 PM >> ... >> > +struct gdma_msg_hdr { >> > + u32 hdr_type; >> > + u32 msg_type; >> > + u16 msg_version; >> > + u16 hwc_msg_id; >> > + u32 msg_size; >> > +} __packed; >> > + >>

[PATCH] usb: dwc3: qcom: Fixed an issue that the ret value is incorrect in dwc3_qcom_probe()

2021-04-08 Thread Bixuan Cui
There is a error message after devm_ioremap_resource failed, and the ret is needs to be obtained through PTR_ERR(qcom->qscratch_base). We need to move the dev_err() downwards to ensure that the ret value is correct. Fixes: a4333c3a6ba9 ('usb: dwc3: Add Qualcomm DWC3 glue driver') Reported-by:

[PATCH -next] coresight: trbe: Fix return value check in arm_trbe_register_coresight_cpu()

2021-04-08 Thread Wei Yongjun
In case of error, the function devm_kasprintf() returns NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Fixes: 3fbf7f011f24 ("coresight: sink: Add TRBE driver") Reported-by: Hulk Robot Signed-off-by: Wei Yongjun ---

Re: [PATCH net v1] lan743x: fix ethernet frame cutoff issue

2021-04-08 Thread Sven Van Asbroeck
Hi Andrew, On Thu, Apr 8, 2021 at 9:02 PM Andrew Lunn wrote: > > Adding a Suggested-by: would be good. And it might sometime help > Johnathan Corbet extract some interesting statistics from the commit > messages if everybody uses the same format. Thank you for the suggestion. I'll definitely

Re: [RFC PATCH] KVM: x86: Support write protect huge pages lazily

2021-04-08 Thread Keqian Zhu
Hi Sean, On 2021/4/8 23:52, Sean Christopherson wrote: > On Thu, Apr 08, 2021, Keqian Zhu wrote: >> Hi Ben, >> >> Do you have any similar idea that can share with us? > > Doh, Ben is out this week, he'll be back Monday. Sorry for gumming up the > works :-/ Please don't mind. I'm glad we can

Re: [PATCH v2] ima: Fix function name error in comment.

2021-04-08 Thread Jiele Zhao
Hi Mimi, On 2021/4/6 10:12, Jiele Zhao wrote: The original function name was ima_path_check(). The policy parsing still supports PATH_CHECK. Commit 9bbb6cad0173 ("ima: rename ima_path_check to ima_file_check") renamed the function to ima_file_check(), but missed modifying the function name

Re: [PATCH v4 3/3] dt-bindings: clock: add ti,lmk04832 bindings

2021-04-08 Thread Liam Beguin
On Thu Apr 8, 2021 at 4:13 PM EDT, Rob Herring wrote: > On Tue, Apr 06, 2021 at 08:53:30PM -0400, Liam Beguin wrote: > > From: Liam Beguin > > > > Document devicetree bindings for Texas Instruments' LMK04832. > > The LMK04208 is a high performance clock conditioner with superior clock > > jitter

[PATCH 1/2] iommu/sva: Tighten SVA bind API with explicit flags

2021-04-08 Thread Jacob Pan
The void* drvdata parameter isn't really used in iommu_sva_bind_device() API, the current IDXD code "borrows" the drvdata for a VT-d private flag for supervisor SVA usage. Supervisor/Privileged mode request is a generic feature. It should be promoted from the VT-d vendor driver to the generic

[PATCH 2/2] iommu/sva: Remove mm parameter from SVA bind API

2021-04-08 Thread Jacob Pan
The mm parameter in iommu_sva_bind_device() is intended for privileged process perform bind() on behalf of other processes. This use case has yet to be materialized, let alone potential security implications of adding kernel hooks without explicit user consent. In addition, with the agreement that

Re: [PATCH 2/3] fpga: dfl: Add DFL bus driver for Altera SPI Master

2021-04-08 Thread Xu Yilun
On Thu, Apr 08, 2021 at 05:20:19PM +0800, Wu, Hao wrote: > > On Thu, Apr 08, 2021 at 03:30:15PM +0800, Wu, Hao wrote: > > > > > On Mon, 5 Apr 2021, Moritz Fischer wrote: > > > > > > > > > > > Hi Matthew, > > > > > > > > > > > > On Mon, Apr 05, 2021 at 04:53:00PM -0700, > > > >

RE: [PATCH v4 7/7] fs/xfs: Add dedupe support for fsdax

2021-04-08 Thread ruansy.f...@fujitsu.com
> -Original Message- > From: Su Yue > Subject: Re: [PATCH v4 7/7] fs/xfs: Add dedupe support for fsdax > > > On Thu 08 Apr 2021 at 20:04, Shiyang Ruan wrote: > > > Add xfs_break_two_dax_layouts() to break layout for tow dax files. > > Then call compare range function only when files

RE: [PATCH 2/3] fpga: dfl: Add DFL bus driver for Altera SPI Master

2021-04-08 Thread Wu, Hao
> On Thu, Apr 08, 2021 at 09:20:19AM +, Wu, Hao wrote: > > > On Thu, Apr 08, 2021 at 03:30:15PM +0800, Wu, Hao wrote: > > > > > > On Mon, 5 Apr 2021, Moritz Fischer wrote: > > > > > > > > > > > > > Hi Matthew, > > > > > > > > > > > > > > On Mon, Apr 05, 2021 at 04:53:00PM -0700, > > > > >

Re: [PATCH] KVM: vmx: add mismatched size in vmcs_check32

2021-04-08 Thread Haiwei Li
On Fri, Apr 9, 2021 at 12:05 AM Sean Christopherson wrote: > > On Thu, Apr 08, 2021, lihaiwei.ker...@gmail.com wrote: > > From: Haiwei Li > > > > vmcs_check32 misses the check for 64-bit and 64-bit high. > > Can you clarify in the changelog that, while it is architecturally legal to > access

Re: [PATCH 1/3] powerpc/mm/hash: Avoid resizing-down HPT on first memory hotplug

2021-04-08 Thread Leonardo Bras
Hello David, thanks for your feedback. On Mon, 2021-03-22 at 17:49 +1100, David Gibson wrote: > I don't love this approach. Adding the extra flag at this level seems > a bit inelegant, and it means we're passing up an easy opportunity to > reduce our resource footprint on the host. I

Re: [PATCH net-next v9 1/2] net: Add a WWAN subsystem

2021-04-08 Thread Aleksander Morgado
Hey, > > * Note: Userspace tools like ModemManager are able to link control > ports and netdev by looking at the sysfs hierarchy, it's fine for > simple connection management, but probably not enough for 'multi PDN' > support for which devices may have multiple netdev and ports > targetting

Re: [PATCH v3 1/1] of: unittest: overlay: ensure proper alignment of copied FDT

2021-04-08 Thread Frank Rowand
On 4/8/21 1:27 PM, Rob Herring wrote: > On Thu, Apr 8, 2021 at 10:17 AM wrote: >> >> From: Frank Rowand >> >> The Devicetree standard specifies an 8 byte alignment of the FDT. >> Code in libfdt expects this alignment for an FDT image in memory. >> kmemdup() returns 4 byte alignment on openrisc.

[PATCH] media: dt-bindings: media: renesas,drif: Fix fck definition

2021-04-08 Thread Fabrizio Castro
dt_binding_check reports the below error with the latest schema: Documentation/devicetree/bindings/media/renesas,drif.yaml: properties:clock-names:maxItems: False schema does not allow 1 Documentation/devicetree/bindings/media/renesas,drif.yaml: ignoring, error in schema: properties:

Re: [PATCH 0/2] fdt: translate address if #size-cells = <0>

2021-04-08 Thread Dario Binacchi
> Il 07/04/2021 15:21 Tero Kristo ha scritto: > > > On 07/04/2021 15:52, Rob Herring wrote: > > On Wed, Apr 7, 2021 at 2:07 AM Dario Binacchi wrote: > >> > >> > >>> Il 07/04/2021 03:16 Rob Herring ha scritto: > >>> > >>> > >>> On Tue, Apr 6, 2021 at 5:02 PM Dario Binacchi wrote: > >

Re: [PATCH v33 07/12] landlock: Support filesystem access-control

2021-04-08 Thread James Morris
On Wed, 7 Apr 2021, Mickaël Salaün wrote: > Changes since v31: > * Gracefully forbid reparenting by returning EXDEV in hook_path_link() > and hook_path_rename() (hinted by Al Viro). > * Replace excessive WARN_ON_ONCE() with unlikely() in > hook_path_rename() and use ENOENT instead of EACCES.

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 1:29 PM Shakeel Butt wrote: > > On Thu, Apr 8, 2021 at 11:01 AM Yang Shi wrote: > > > > 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

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

2021-04-08 Thread Daniel Xu
On Thu, Apr 08, 2021 at 04:45:37PM +, Al Viro wrote: > 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

[PATCH v3 1/1] powerpc/iommu: Enable remaining IOMMU Pagesizes present in LoPAR

2021-04-08 Thread Leonardo Bras
According to LoPAR, ibm,query-pe-dma-window output named "IO Page Sizes" will let the OS know all possible pagesizes that can be used for creating a new DDW. Currently Linux will only try using 3 of the 8 available options: 4K, 64K and 16M. According to LoPAR, Hypervisor may also offer 32M, 64M,

Re: [PATCH v7 2/5] i2c: core: add api to provide frequency mode strings

2021-04-08 Thread Wolfram Sang
> +const char *i2c_freq_mode_string(u32 bus_freq_hz) > +{ > + switch (bus_freq_hz) { > + case I2C_MAX_STANDARD_MODE_FREQ: > + return "Standard Mode (100 kHz)"; Sorry, I just noticed just now. Shouldn't we also support lower frequencies than the maximum one? I.e. if

Re: [PATCH 09/12] i2c: icy: Constify the software node

2021-04-08 Thread Wolfram Sang
On Tue, Mar 30, 2021 at 03:58:56PM +0200, Max Staudt wrote: > This looks great, thank you for constifying this. > > Finally it's clean again, yet much more flexible than the original > platform_data approach when I first submitted the driver. I read this as "Reviewed-by" ;) signature.asc

Re: [PATCH v4 06/12] perf record: introduce data file at mmap buffer object

2021-04-08 Thread Jiri Olsa
On Tue, Apr 06, 2021 at 11:47:03AM +0300, Bayduraev, Alexey V wrote: > > Introduce data file and compressor objects into mmap object so > they could be used to process and store data stream from the > corresponding kernel data buffer. Introduce bytes_transferred > and bytes_compressed stats so

Re: [PATCH v4 08/12] perf record: introduce --threads= command line option

2021-04-08 Thread Jiri Olsa
On Tue, Apr 06, 2021 at 11:49:06AM +0300, Bayduraev, Alexey V wrote: SNIP > Suggested-by: Jiri Olsa > Suggested-by: Namhyung Kim > Signed-off-by: Alexey Bayduraev > --- > tools/include/linux/bitmap.h | 11 ++ > tools/lib/bitmap.c | 14 ++ > tools/perf/builtin-record.c | 317

Re: [PATCH v4 1/7] fsdax: Introduce dax_iomap_cow_copy()

2021-04-08 Thread Darrick J. Wong
On Thu, Apr 08, 2021 at 08:04:26PM +0800, Shiyang Ruan wrote: > In the case where the iomap is a write operation and iomap is not equal > to srcmap after iomap_begin, we consider it is a CoW operation. > > The destance extent which iomap indicated is new allocated extent. > So, it is needed to

Re: [PATCH 00/12] i2c: Adding support for software nodes

2021-04-08 Thread Wolfram Sang
On Mon, Mar 29, 2021 at 01:50:35PM +0300, Heikki Krogerus wrote: > Hi, > > The old device property API (device_add_properties()) is going to be > removed. These prepare the i2c subsystem and drivers for the change. > The change is fairly trivial in case of i2c. All we need to do is add > complete

Re: [PATCH v4 11/12] perf session: load data directory files for analysis

2021-04-08 Thread Jiri Olsa
On Tue, Apr 06, 2021 at 11:52:32AM +0300, Bayduraev, Alexey V wrote: > > Introduce decompressor into trace reader object so that decompression > could be executed on per data file basis separately for every data > file located in data directory. > > Load data directory files and provide basic

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

2021-04-08 Thread Sven Van Asbroeck
Hi George, On Thu, Apr 8, 2021 at 3:55 PM George McCollister wrote: > > Works for me too. Sounds good. I'll post a proper patch soon. Would you be able to review+test, and perhaps offer your Reviewed-by/Tested-by tags when everything looks ok?

Re: [PATCH v2 00/21] ipmi: Allow raw access to KCS devices

2021-04-08 Thread Andrew Jeffery
On Thu, 8 Apr 2021, at 21:44, Corey Minyard wrote: > On Thu, Apr 08, 2021 at 10:27:46AM +0930, Andrew Jeffery wrote: > > Hi Corey, > > > > On Fri, 19 Mar 2021, at 16:49, Andrew Jeffery wrote: > > > Hello, > > > > > > This series is a bit of a mix of things, but its primary purpose is to > > >

Re: [PATCHv5 6/6] PCI: layerscape: Add power management support

2021-04-08 Thread Rob Herring
On Tue, Apr 6, 2021 at 10:04 PM Zhiqiang Hou wrote: > > From: Hou Zhiqiang > > Add PME_Turn_Off/PME_TO_Ack handshake sequence, and finally > put the PCIe controller into D3 state after the L2/L3 ready > state transition process completion. > > Signed-off-by: Hou Zhiqiang > --- > V5: > - Fix a

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

2021-04-08 Thread Dmitry Osipenko
08.04.2021 23:55, Sowjanya Komatineni пишет: > This patch adds check to call 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. > --- > drivers/ata/ahci_tegra.c | 6 -- > 1 file

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

2021-04-08 Thread Daniel Latypov
Add basic test coverage for files that don't require any config options: * gcd.c * lcm.c * int_sqrt.c * reciprocal_div.c (Ignored int_pow.c since it's a simple textbook algorithm.) These tests aren't particularly interesting, but they * provide short and simple examples of parameterized tests *

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

2021-04-08 Thread Chunfeng Yun
On Thu, 2021-04-08 at 19:41 +0200, Rafael J. Wysocki wrote: > 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

[PATCH v1] libnvdimm, dax: Fix a missing check in nd_dax_probe()

2021-04-08 Thread wangyingjie55
From: Yingjie Wang In nd_dax_probe(), 'nd_dax' is allocated by nd_dax_alloc(). nd_dax_alloc() may fail and return NULL, so we should better check it's return value to avoid a NULL pointer dereference a bit later in the code. Fixes: c5ed9268643c ("libnvdimm, dax: autodetect support")

[PATCH v2 -next] nilfs2: Fix typos in comments

2021-04-08 Thread Lu Jialin
numer -> number in fs/nilfs2/cpfile.c Decription -> Description in fs/nilfs2/ioctl.c isntance -> instance in fs/nilfs2/the_nilfs.c Signed-off-by: Lu Jialin --- v2: Exclude two typo fixes of "retured -> returned", which has been fixed in previous patch. fs/nilfs2/cpfile.c| 2 +-

[PATCH v2] KVM: vmx: add mismatched size assertions in vmcs_check32()

2021-04-08 Thread lihaiwei . kernel
From: Haiwei Li Add compile-time assertions in vmcs_check32() to disallow accesses to 64-bit and 64-bit high fields via vmcs_{read,write}32(). Upper level KVM code should never do partial accesses to VMCS fields. KVM handles the split accesses automatically in vmcs_{read,write}64() when

[PATCH 2/3] staging: rtl8712: remove enum WIFI_FRAME_SUBTYPE

2021-04-08 Thread Christophe JAILLET
The values defined in enum WIFI_FRAME_SUBTYPE are the same the #define IEEE80211_STYPE_xxx from Use theses values to avoid code duplication. Signed-off-by: Christophe JAILLET --- drivers/staging/rtl8712/rtl871x_recv.c | 2 +- drivers/staging/rtl8712/rtl871x_security.c | 14 +-

Re: [PATCH v2 02/24] x86/resctrl: Split struct rdt_domain

2021-04-08 Thread Reinette Chatre
Hi James, On 4/8/2021 10:20 AM, James Morse wrote: On 31/03/2021 22:36, Reinette Chatre wrote: On 3/12/2021 9:58 AM, James Morse wrote: resctrl is the defacto Linux ABI for SoC resource partitioning features. To support it on another architecture, it needs to be abstracted from the features

Re: [PATCH v4 3/3] dt-bindings: clock: add ti,lmk04832 bindings

2021-04-08 Thread Rob Herring
On Tue, Apr 06, 2021 at 08:53:30PM -0400, Liam Beguin wrote: > From: Liam Beguin > > Document devicetree bindings for Texas Instruments' LMK04832. > The LMK04208 is a high performance clock conditioner with superior clock > jitter cleaning, generation, and distribution with JEDEC JESD204B >

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

2021-04-08 Thread Nishanth Menon
On 22:13-20210408, Arnd Bergmann wrote: > On Thu, Apr 8, 2021 at 6:34 PM Nishanth Menon wrote: > > On 17:24-20210408, Arnd Bergmann wrote: > > > > > > ti/k3-am64-main.dtsi:376.40-385.4: Warning (simple_bus_reg): > > > /bus@f4000/interrupt-controller0:

[PATCH v4 1/1] of: unittest: overlay: ensure proper alignment of copied FDT

2021-04-08 Thread frowand . list
From: Frank Rowand The Devicetree standard specifies an 8 byte alignment of the FDT. Code in libfdt expects this alignment for an FDT image in memory. kmemdup() returns 4 byte alignment on openrisc. Replace kmemdup() with kmalloc(), align pointer, memcpy() to get proper alignment. The 4 byte

[PATCH] staging: rtl8723bs: Remove unnecessary code

2021-04-08 Thread Muhammad Usama Anjum
The same code is executed when the condition "!show_errors" is true or false. Remove the if condition from here. The original intension of this condition was to not to report any error logs if condition was true. But this driver doesn't has those logs added. So this if condition can be removed.

Re: [PATCH v7 4/5] MAINTAINERS: Add maintainer for HiSilicon I2C driver

2021-04-08 Thread Wolfram Sang
On Thu, Apr 08, 2021 at 07:17:20PM +0800, Yicong Yang wrote: > Add maintainer for HiSilicon I2C driver. Only if you need to resend, then you can squash this into the previous patch. If not, I can do it when applying. signature.asc Description: PGP signature

Re: [PATCH v3 03/12] dump_stack: Add vmlinux build ID to stack traces

2021-04-08 Thread Stephen Boyd
Quoting Stephen Boyd (2021-04-08 12:52:27) > > Can you try this patch for x86? I'll dig up some hardware in the meantime. > It works for me backported to this 5.10 kernel running on this x86 device I found. I'll wait for you to confirm and then send the next round. CPU: 0 PID: 2719 Comm: bash

Re: [PATCH] net: sched: sch_teql: fix null-pointer dereference

2021-04-08 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (refs/heads/master): On Thu, 8 Apr 2021 18:14:31 +0300 you wrote: > Reproduce: > > modprobe sch_teql > tc qdisc add dev teql0 root teql0 > > This leads to (for instance in Centos 7 VM) OOPS: > > [...] Here is the summary with links: -

Re: [PATCH v4 1/1] of: unittest: overlay: ensure proper alignment of copied FDT

2021-04-08 Thread Rob Herring
On Thu, Apr 8, 2021 at 3:45 PM wrote: > > From: Frank Rowand > > The Devicetree standard specifies an 8 byte alignment of the FDT. > Code in libfdt expects this alignment for an FDT image in memory. > kmemdup() returns 4 byte alignment on openrisc. Replace kmemdup() > with kmalloc(), align

Re: [PATCH v2 1/2] dt-bindings: pinctrl: qcom-pmic-gpio: Add pm8008 support

2021-04-08 Thread Linus Walleij
On Thu, Apr 8, 2021 at 7:25 PM Guru Das Srinagesh wrote: > Add support for the 2 GPIOs present on Qualcomm Technologies, Inc. > PM8008. > > Acked-by: Bjorn Andersson > Signed-off-by: Guru Das Srinagesh Patches applied. Yours, Linus Walleij

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

2021-04-08 Thread Dave Chinner
On Wed, Apr 07, 2021 at 02:46:11PM -0700, Daniel Xu wrote: > This commit introduces the bpf page cache iterator. This iterator allows > users to run a bpf prog against each page in the "page cache". > Internally, the "page cache" is extremely tied to VFS superblock + inode > combo. Because of

Re: New 'make dtbs_check W=1' warnings

2021-04-08 Thread Linus Walleij
On Thu, Apr 8, 2021 at 5:08 PM Arnd Bergmann wrote: > arch/arm/boot/dts/ste-href520-tvk.dt.yaml: accelerometer@19: > interrupts: [[18, 1], [19, 1]] is too long > arch/arm/boot/dts/ste-hrefprev60-tvk.dt.yaml: gyroscope@68: > interrupts-extended: [[22, 0, 1], [21, 31, 1]] is too long >

Re: [PATCH v4 4/7] iomap: Introduce iomap_apply2() for operations on two files

2021-04-08 Thread Darrick J. Wong
On Thu, Apr 08, 2021 at 08:04:29PM +0800, Shiyang Ruan wrote: > Some operations, such as comparing a range of data in two files under > fsdax mode, requires nested iomap_open()/iomap_end() on two file. Thus, > we introduce iomap_apply2() to accept arguments from two files and > iomap_actor2_t for

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

2021-04-08 Thread Vladimir Oltean
On Thu, Apr 08, 2021 at 08:38:27PM +0200, 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

Re: [PATCHv2 35/38] dt-bindings: power: supply: ab8500: Convert to DT schema format

2021-04-08 Thread Linus Walleij
On Wed, Mar 17, 2021 at 2:51 PM Sebastian Reichel wrote: > Convert the binding to DT schema format. > > Note: The battery node does not have a compatible value and needs > to be described from the binding file for the PMIC. That has not > yet been converted, so I kept the information in

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

2021-04-08 Thread David Miller
From: Dexuan Cui Date: Thu, 8 Apr 2021 15:58:40 -0700 > +struct gdma_msg_hdr { > + u32 hdr_type; > + u32 msg_type; > + u16 msg_version; > + u16 hwc_msg_id; > + u32 msg_size; > +} __packed; > + > +struct gdma_dev_id { > + union { > + struct { > +

[PATCH] staging: rtl8712: fix wrong function output

2021-04-08 Thread Sergei Krainov
Function r8712_find_network() were returning wlan_network even if it didn't match required address. This happened due to not checking if list end was reached and returning last processed wlan_network. Signed-off-by: Sergei Krainov --- drivers/staging/rtl8712/rtl871x_mlme.c | 2 ++ 1 file

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

2021-04-08 Thread Stephen Hemminger
On Thu, 8 Apr 2021 15:58:40 -0700 Dexuan Cui wrote: > Add a VF driver for Microsoft Azure Network Adapter (MANA) that will be > available in the future. > > Co-developed-by: Haiyang Zhang > Signed-off-by: Haiyang Zhang > Signed-off-by: Dexuan Cui > --- > MAINTAINERS

Re: [RFC][PATCH] mm: Split page_has_private() in two to better handle PG_private_2

2021-04-08 Thread Linus Torvalds
On Thu, Apr 8, 2021 at 2:15 PM David Howells wrote: > > mm: Split page_has_private() in two to better handle PG_private_2 >From a look through the patch and some (limited) thinking about it, I like the patch. I think it clarifies the two very different cases, and makes it clear that one is about

Re: [RFC bpf-next 0/1] bpf: Add page cache iterator

2021-04-08 Thread Daniel Xu
On Thu, Apr 08, 2021 at 04:13:32PM -0700, Darrick J. Wong wrote: > On Wed, Apr 07, 2021 at 02:46:10PM -0700, Daniel Xu wrote: > > There currently does not exist a way to answer the question: "What is in > > the page cache?". There are various heuristics and counters but nothing > > that can tell

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

2021-04-08 Thread Dexuan Cui
> From: David Miller > Sent: Thursday, April 8, 2021 4:46 PM > ... > > +struct gdma_msg_hdr { > > + u32 hdr_type; > > + u32 msg_type; > > + u16 msg_version; > > + u16 hwc_msg_id; > > + u32 msg_size; > > +} __packed; > > + > > +struct gdma_dev_id { > > + union { > > + struct

Re: [PATCH v5 0/2] Add support for Qualcomm MFD PMIC register layout

2021-04-08 Thread Guru Das Srinagesh
On Mon, Apr 05, 2021 at 06:11:52PM -0700, Guru Das Srinagesh wrote: > On Thu, Apr 01, 2021 at 11:16:17AM +0100, Mark Brown wrote: > > On Wed, 24 Mar 2021 12:28:52 -0700, Guru Das Srinagesh wrote: > > > Changes from v4: > > > - Only one cosmetic change: Moved the declaration of num_virt_regs under

Re: [PATCH] KVM: SVM: Add support for KVM_SEV_SEND_CANCEL command

2021-04-08 Thread Steve Rutherford
On Thu, Apr 8, 2021 at 3:27 PM Brijesh Singh wrote: > > > On 4/1/21 8:44 PM, Steve Rutherford wrote: > > After completion of SEND_START, but before SEND_FINISH, the source VMM can > > issue the SEND_CANCEL command to stop a migration. This is necessary so > > that a cancelled migration can

[PATCH v3 3/4] kernfs: switch kernfs to use an rwsem

2021-04-08 Thread Ian Kent
The kernfs global lock restricts the ability to perform kernfs node lookup operations in parallel during path walks. Change the kernfs mutex to an rwsem so that, when opportunity arises, node searches can be done in parallel with path walk lookups. Signed-off-by: Ian Kent --- fs/kernfs/dir.c

[PATCH v3 4/4] kernfs: use i_lock to protect concurrent inode updates

2021-04-08 Thread Ian Kent
The inode operations .permission() and .getattr() use the kernfs node write lock but all that's needed is to keep the rb tree stable while updating the inode attributes as well as protecting the update itself against concurrent changes. And .permission() is called frequently during path walks and

[PATCH v3 2/4] kernfs: use VFS negative dentry caching

2021-04-08 Thread Ian Kent
If there are many lookups for non-existent paths these negative lookups can lead to a lot of overhead during path walks. The VFS allows dentries to be created as negative and hashed, and caches them so they can be used to reduce the fairly high overhead alloc/free cycle that occurs during these

[PATCH 1/1] lib/lzo: remove unused local variable 'level'

2021-04-08 Thread Zhen Lei
Fixes the following W=1 kernel build warning: lib/decompress_unlzo.c: In function ‘parse_header’: lib/decompress_unlzo.c:46:5: warning: variable ‘level’ set but not used [-Wunused-but-set-variable] Fixes: 7dd65feb6c60 ("lib: add support for LZO-compressed kernels") Reported-by: Hulk Robot

Re: [GIT PULL] fileattr API

2021-04-08 Thread Al Viro
On Wed, Apr 07, 2021 at 09:22:52PM +0200, Miklos Szeredi wrote: > Hi Al, > > Please pull from: > > git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git fileattr_v4 > > Convert all (with the exception of CIFS) filesystems from handling > FS_IOC_[GS]ETFLAGS and FS_IOC_FS[GS]ETXATTR

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