Re: [PATCH] ipc/msg: add msgsnd_timed and msgrcv_timed syscall for system V message queue

2021-03-03 Thread Andrew Morton
On Tue, 23 Feb 2021 23:11:43 +0800 Eric Gao wrote: > sometimes, we need the msgsnd or msgrcv syscall can return after a limited > time, so that the business thread do not be blocked here all the time. In > this case, I add the msgsnd_timed and msgrcv_timed syscall that with time > parameter,

Re: [PATCH 5/7] printk: Make %pS and friends print module build ID

2021-03-03 Thread Stephen Boyd
Quoting Petr Mladek (2021-03-03 02:25:58) > On Mon 2021-03-01 09:47:47, Stephen Boyd wrote: > > The %pS printk format (among some others) is used to print kernel > > addresses symbolically. When the kernel prints an address inside of a > > module, the kernel prints the addresses' symbol name along

[PATCH] MIPS: Add comment about CONFIG_MIPS32_O32 in loongson3_defconfig when build with Clang

2021-03-03 Thread Tiezhu Yang
When build kernel with Clang [1]: $ make CC=clang loongson3_defconfig $ make CC=clang there exists the following error: Checking missing-syscalls for O32 CALLscripts/checksyscalls.sh error: ABI 'o32' is not supported on CPU 'mips64r2' make[1]: *** [Kbuild:48: missing-syscalls] Error 1

Re: [PATCH v3 1/1] mm/madvise: replace ptrace attach requirement for process_madvise

2021-03-03 Thread Suren Baghdasaryan
On Wed, Mar 3, 2021 at 4:04 PM Shakeel Butt wrote: > > On Wed, Mar 3, 2021 at 3:34 PM Suren Baghdasaryan wrote: > > > > On Wed, Mar 3, 2021 at 3:17 PM Shakeel Butt wrote: > > > > > > On Wed, Mar 3, 2021 at 10:58 AM Suren Baghdasaryan > > > wrote: > > > > > > > > process_madvise currently

Re: [RFC PATCH] USB:XHCI:Modify XHCI driver for USB2.0 controller

2021-03-03 Thread Peter Chen
On 21-02-27 11:31:00, liulongfang wrote: > On 2021/2/26 16:38, Greg KH wrote: > > On Fri, Feb 26, 2021 at 04:21:37PM +0800, Longfang Liu wrote: > >> Our current XHCI hardware controller has been customized to only > >> support USB 2.0 ports. > > > > That sounds like a spec violation, right? Why

[PATCH 2/3] Revert "netfilter: x_tables: Switch synchronization to RCU"

2021-03-03 Thread Mark Tomlinson
This reverts commit cc00bcaa589914096edef7fb87ca5cee4a166b5c. This (and the preceding) patch basically re-implemented the RCU mechanisms of patch 784544739a25. That patch was replaced because of the performance problems that it created when replacing tables. Now, we have the same issue: the call

[PATCH 3/3] netfilter: x_tables: Use correct memory barriers.

2021-03-03 Thread Mark Tomlinson
When a new table value was assigned, it was followed by a write memory barrier. This ensured that all writes before this point would complete before any writes after this point. However, to determine whether the rules are unused, the sequence counter is read. To ensure that all writes have been

Re: [PATCH v9 17/18] virt: acrn: Introduce an interface for Service VM to control vCPU

2021-03-03 Thread Shuo A Liu
On Wed 3.Mar'21 at 18:37:19 +0100, Borislav Petkov wrote: On Sun, Feb 07, 2021 at 11:10:39AM +0800, shuo.a@intel.com wrote: From: Shuo Liu ACRN supports partition mode to achieve real-time requirements. In partition mode, a CPU core can be dedicated to a vCPU of User VM. The local APIC

Re: [PATCH][next] media: venus: hfi_cmds.h: Replace one-element array with flexible-array member

2021-03-03 Thread Gustavo A. R. Silva
Hi all, Friendly ping: who can take this, please? Thanks -- Gustavo On Wed, Feb 10, 2021 at 04:57:20PM -0600, Gustavo A. R. Silva wrote: > There is a regular need in the kernel to provide a way to declare having > a dynamically sized set of trailing elements in a structure. Kernel code >

Re: [PATCH][next] media: venus: hfi_msgs.h: Replace one-element arrays with flexible-array members

2021-03-03 Thread Gustavo A. R. Silva
Hi all, Friendly ping: who can take this, please? Thanks -- Gustavo On Wed, Feb 10, 2021 at 06:10:44PM -0600, Gustavo A. R. Silva wrote: > There is a regular need in the kernel to provide a way to declare having > a dynamically sized set of trailing elements in a structure. Kernel code > should

[PATCH v3] memcg: charge before adding to swapcache on swapin

2021-03-03 Thread Shakeel Butt
Currently the kernel adds the page, allocated for swapin, to the swapcache before charging the page. This is fine but now we want a per-memcg swapcache stat which is essential for folks who wants to transparently migrate from cgroup v1's memsw to cgroup v2's memory and swap counters. In addition

Re: [PATCH v2 09/10] fs/xfs: Handle CoW for fsdax write() path

2021-03-03 Thread ruansy.f...@fujitsu.com
> On Wed, Mar 03, 2021 at 09:57:48AM +, ruansy.f...@fujitsu.com wrote: > > > What is the advantage of the ioemap_end handler here? It adds another > > > indirect funtion call to the fast path, so if we can avoid it, I'd > > > rather do that. > > > > These code were in xfs_file_dax_write(). I

linux-next: build warning after merge of the rcu tree

2021-03-03 Thread Stephen Rothwell
Hi all, After merging the rcu tree, today's linux-next build (htmldocs) produced this warning: kernel/rcu/tree.c:3824: warning: expecting prototype for start_poll_state_synchronize_rcu(). Prototype was for start_poll_synchronize_rcu() instead Introduced by commit 7f9a26bbfff2 ("rcu:

Re: [PATCH] net: mac802154: Fix null pointer dereference

2021-03-03 Thread Alexander Aring
Hi, On Wed, 3 Mar 2021 at 11:28, Pavel Skripkin wrote: > > syzbot found general protection fault in crypto_destroy_tfm()[1]. > It was caused by wrong clean up loop in llsec_key_alloc(). > If one of the tfm array members won't be initialized it will cause > NULL dereference in

linux-next: Fixes tag needs some work in the net tree

2021-03-03 Thread Stephen Rothwell
Hi all, In commit b12422362ce9 ("net: macb: Add default usrio config to default gem config") Fixes tag Fixes: edac63861db7 ("add userio bits as platform configuration") has these problem(s): - Subject does not match target commit subject Just use git log -1 --format='Fixes:

Re: XDP socket rings, and LKMM litmus tests

2021-03-03 Thread Alan Stern
On Wed, Mar 03, 2021 at 02:03:48PM -0800, Paul E. McKenney wrote: > On Wed, Mar 03, 2021 at 03:22:46PM -0500, Alan Stern wrote: > > On Wed, Mar 03, 2021 at 09:40:22AM -0800, Paul E. McKenney wrote: > > > On Wed, Mar 03, 2021 at 12:12:21PM -0500, Alan Stern wrote: > > > > > > Local variables

[PATCH v7 4/4] perf test: Add test for event name starting with a number

2021-03-03 Thread Shunsuke Nakamura
From: Shunsuke Nakamura Add test for event name starting with a number. This test pattern checks that event names starting with a number do not result in a 'parse error'. Committer notes: Testing arm64 and x86: # ./perf test fake 10: PMU events

[PATCH v7 0/4] perf vendor events: Support PMU events for A64FX

2021-03-03 Thread Shunsuke Nakamura
From: Shunsuke Nakamura This patch series supports A64FX PMU event v1.2. The first patch add more common and microarchitecture events. This patch is based on john's patch [1]. The second patch fixes the lexical definition of event name so that perf can recognize event name that start with a

[PATCH v7 1/4] perf vendor events arm64: Add more common and uarch events

2021-03-03 Thread Shunsuke Nakamura
From: Shunsuke Nakamura Add the following events.[1] Common architectural events: - L2I_TLB_REFILL - L2I_TLB - SIMD_INST_RETIRED - SVE_INST_RETIRED Common microarchitectural events: - UOP_SPEC - SVE_MATH_SPEC - FP_SPEC - FP_FMA_SPEC - FP_RECPE_SPEC - FP_CVT_SPEC -

[PATCH v7 3/4] perf vendor events arm64: Add Fujitsu A64FX pmu event

2021-03-03 Thread Shunsuke Nakamura
From: Shunsuke Nakamura Add pmu events for A64FX. Documentation source: https://github.com/fujitsu/A64FX/blob/master/doc/A64FX_PMU_Events_v1.2.pdf Signed-off-by: Shunsuke Nakamura Reviewed-by: John Garry --- .../arch/arm64/fujitsu/a64fx/branch.json | 8 +

Re: [PATCH] Fix ld-version.sh script if LLD was built with LLD_VENDOR

2021-03-03 Thread Masahiro Yamada
On Thu, Mar 4, 2021 at 9:18 AM Bernhard Rosenkränzer wrote: > > If LLD was built with -DLLD_VENDOR="xyz", ld.lld --version output > will prefix LLD_VENDOR. Since LLD_VENDOR can contain spaces, the > LLD identifier isn't guaranteed to be $2 either. > > Adjust the version checker to handle such

Re: [External] Re: [PATCH v17 0/9] Free some vmemmap pages of HugeTLB page

2021-03-03 Thread Muchun Song
On Thu, Mar 4, 2021 at 11:14 AM Singh, Balbir wrote: > > On 26/2/21 12:21 am, Muchun Song wrote: > > Hi all, > > > > This patch series will free some vmemmap pages(struct page structures) > > associated with each hugetlbpage when preallocated to save memory. > > > > In order to reduce the

[PATCH] arch/powerpc/include: remove duplicate include in thread_info.h

2021-03-03 Thread menglong8 . dong
From: Zhang Yunkai 'asm/page.h' included in 'arch/powerpc/include/asm/thread_info.h' is duplicated.It is also included in 13th line. Signed-off-by: Zhang Yunkai --- arch/powerpc/include/asm/thread_info.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/powerpc/include/asm/thread_info.h

[PATCH v7 2/4] perf tools: Add lexical definition of event name

2021-03-03 Thread Shunsuke Nakamura
From: Shunsuke Nakamura Add the lexical definition of event name so that the numbers are recognizable. A64FX defines an event name that starts with a number. - 0inst_commit - 1inst_commit - 2inst_commit - 3inst_commit - 4inst_commit Signed-off-by: Shunsuke Nakamura Acked-by: John Garry

Re: [PATCH 6/6] firmware: qcom_scm: Only compile legacy calls on ARM

2021-03-03 Thread Elliot Berman
On 2/23/2021 1:45 PM, Stephen Boyd wrote: These scm calls are never used outside of legacy ARMv7 based platforms. That's because PSCI, mandated on arm64, implements them for modern SoCs via the PSCI spec. Let's move them to the legacy file and only compile the legacy file into the kernel when

[PATCH 5/5] CMDLINE: x86: convert to generic builtin command line

2021-03-03 Thread Daniel Walker
This updates the x86 code to use the CONFIG_GENERIC_CMDLINE option. Cc: xe-linux-exter...@cisco.com Signed-off-by: Ruslan Ruslichenko Signed-off-by: Ruslan Bilovol Signed-off-by: Daniel Walker --- arch/x86/Kconfig| 44 + arch/x86/kernel/setup.c

[PATCH 2/5] CMDLINE: drivers: of: ifdef out cmdline section

2021-03-03 Thread Daniel Walker
It looks like there's some seepage of cmdline stuff into the generic device tree code. This conflicts with the generic cmdline implementation so I remove it in the case when that's enabled. Cc: xe-linux-exter...@cisco.com Signed-off-by: Ruslan Ruslichenko Signed-off-by: Daniel Walker ---

Re: XDP socket rings, and LKMM litmus tests

2021-03-03 Thread Paul E. McKenney
On Wed, Mar 03, 2021 at 10:21:01PM -0500, Alan Stern wrote: > On Wed, Mar 03, 2021 at 02:03:48PM -0800, Paul E. McKenney wrote: > > On Wed, Mar 03, 2021 at 03:22:46PM -0500, Alan Stern wrote: > > > On Wed, Mar 03, 2021 at 09:40:22AM -0800, Paul E. McKenney wrote: > > > > On Wed, Mar 03, 2021 at

Re: [PATCH v9 6/9] crypto: Add NIST P384 curve parameters

2021-03-03 Thread Herbert Xu
On Thu, Feb 25, 2021 at 11:07:59AM -0500, Stefan Berger wrote: > From: Saulo Alessandre > > * crypto/ecc_curve_defs.h > - add nist_p384 params > > * include/crypto/ecdh.h > - add ECC_CURVE_NIST_P384 > > Signed-off-by: Saulo Alessandre > Tested-by: Stefan Berger > --- >

Re: [PATCH 3/3] crypto: hisilicon/sec - fixes shash test error

2021-03-03 Thread liulongfang
On 2021/3/4 12:41, Herbert Xu wrote: > On Sat, Feb 20, 2021 at 05:51:22PM +0800, liulongfang wrote: > . >> Since patch3 is an unnecessary patch, >> can you just remove it and merge patch1 and patch2? > > Please repost. > > Thanks, > Ok. Thanks, Longfang

Re: [PATCH] KVM: nVMX: Add CET entry/exit load bits to evmcs unsupported list

2021-03-03 Thread Yang Weijiang
On Wed, Mar 03, 2021 at 10:36:40AM +0100, Vitaly Kuznetsov wrote: > Yang Weijiang writes: > > > CET in nested guest over Hyper-V is not supported for now. Relevant > > enabling patches will be posted as a separate patch series. > > > > Suggested-by: Paolo Bonzini > > Signed-off-by: Yang

RE: [PATCH RFC v1 12/15] iommu/virtio: Add support for INVALIDATE request

2021-03-03 Thread Tian, Kevin
> From: Jacob Pan > Sent: Thursday, March 4, 2021 2:29 AM > > Hi Vivek, > > On Fri, 15 Jan 2021 17:43:39 +0530, Vivek Gautam > wrote: > > > From: Jean-Philippe Brucker > > > > Add support for tlb invalidation ops that can send invalidation > > requests to back-end virtio-iommu when stage-1

Re: [PATCH 3/3] crypto: hisilicon/sec - fixes shash test error

2021-03-03 Thread Herbert Xu
On Sat, Feb 20, 2021 at 05:51:22PM +0800, liulongfang wrote: . > Since patch3 is an unnecessary patch, > can you just remove it and merge patch1 and patch2? Please repost. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key:

[PATCH v4 0/8] Add support for SVM atomics in Nouveau

2021-03-03 Thread Alistair Popple
This is the forth version of a series to add support to Nouveau for atomic memory operations on OpenCL shared virtual memory (SVM) regions. This is achieved using the atomic PTE bits on the GPU to only permit atomic operations to system memory when a page is not mapped in userspace on the CPU. The

[PATCH v4 1/8] mm: Remove special swap entry functions

2021-03-03 Thread Alistair Popple
Remove the migration and device private entry_to_page() and entry_to_pfn() inline functions and instead open code them directly. This results in shorter code which is easier to understand. Signed-off-by: Alistair Popple --- v4: * Added pfn_swap_entry_to_page() * Reinstated check that migration

Re: [PATCH v2 2/4] dt-bindings: arm: ti: Add bindings for Siemens IOT2050 boards

2021-03-03 Thread Vignesh Raghavendra
On 2/12/21 1:02 AM, Jan Kiszka wrote: > From: Jan Kiszka > > These boards are based on AM6528 GP and AM6548 HS SOCs. > > Signed-off-by: Jan Kiszka Reviewed-by: Vignesh Raghavendra > --- > Documentation/devicetree/bindings/arm/ti/k3.yaml | 2 ++ > 1 file changed, 2 insertions(+) > >

[PATCH v4 3/8] mm/rmap: Split try_to_munlock from try_to_unmap

2021-03-03 Thread Alistair Popple
The behaviour of try_to_unmap_one() is difficult to follow because it performs different operations based on a fairly large set of flags used in different combinations. TTU_MUNLOCK is one such flag. However it is exclusively used by try_to_munlock() which specifies no other flags. Therefore

Re: [PATCH RFC v1 12/15] iommu/virtio: Add support for INVALIDATE request

2021-03-03 Thread Vivek Kumar Gautam
Hi Jacob, Kevin, On 3/4/21 11:28 AM, Tian, Kevin wrote: From: Jacob Pan Sent: Thursday, March 4, 2021 2:29 AM Hi Vivek, On Fri, 15 Jan 2021 17:43:39 +0530, Vivek Gautam wrote: From: Jean-Philippe Brucker Add support for tlb invalidation ops that can send invalidation requests to

[PATCH v4 4/8] mm/rmap: Split migration into its own function

2021-03-03 Thread Alistair Popple
Migration is currently implemented as a mode of operation for try_to_unmap_one() generally specified by passing the TTU_MIGRATION flag or in the case of splitting a huge anonymous page TTU_SPLIT_FREEZE. However it does not have much in common with the rest of the unmap functionality of

[PATCH v4 5/8] mm: Device exclusive memory access

2021-03-03 Thread Alistair Popple
Some devices require exclusive write access to shared virtual memory (SVM) ranges to perform atomic operations on that memory. This requires CPU page tables to be updated to deny access whilst atomic operations are occurring. In order to do this introduce a new swap entry type

[PATCH v4 8/8] nouveau/svm: Implement atomic SVM access

2021-03-03 Thread Alistair Popple
Some NVIDIA GPUs do not support direct atomic access to system memory via PCIe. Instead this must be emulated by granting the GPU exclusive access to the memory. This is achieved by replacing CPU page table entries with special swap entries that fault on userspace access. The driver then grants

[PATCH v4 6/8] mm: Selftests for exclusive device memory

2021-03-03 Thread Alistair Popple
Adds some selftests for exclusive device memory. Signed-off-by: Alistair Popple Acked-by: Jason Gunthorpe Tested-by: Ralph Campbell Reviewed-by: Ralph Campbell --- lib/test_hmm.c | 124 ++ lib/test_hmm_uapi.h| 2 +

[PATCH v4 2/8] mm/swapops: Rework swap entry manipulation code

2021-03-03 Thread Alistair Popple
Both migration and device private pages use special swap entries that are manipluated by a range of inline functions. The arguments to these are somewhat inconsitent so rework them to remove flag type arguments and to make the arguments similar for both read and write entry creation.

[PATCH v4 7/8] nouveau/svm: Refactor nouveau_range_fault

2021-03-03 Thread Alistair Popple
Call mmu_interval_notifier_insert() as part of nouveau_range_fault(). This doesn't introduce any functional change but makes it easier for a subsequent patch to alter the behaviour of nouveau_range_fault() to support GPU atomic operations. Signed-off-by: Alistair Popple ---

Re: [PATCH v7 00/11] Regression fixes/clean ups in the Qualcomm crypto engine driver

2021-03-03 Thread Herbert Xu
On Thu, Feb 11, 2021 at 03:01:17PM -0500, Thara Gopinath wrote: > This patch series is a result of running kernel crypto fuzz tests (by > enabling CONFIG_CRYPTO_MANAGER_EXTRA_TESTS) on the transformations > currently supported via the Qualcomm crypto engine on sdm845. The first > nine patches are

Re: [RFT PATCH] crypto: s5p-sss - initialize APB clock after the AXI bus clock for SlimSSS

2021-03-03 Thread Herbert Xu
On Fri, Feb 12, 2021 at 05:35:26PM +0100, Krzysztof Kozlowski wrote: > The driver for Slim Security Subsystem (SlimSSS) on Exynos5433 takes two > clocks - aclk (AXI/AHB clock) and pclk (APB/Advanced Peripheral Bus > clock). The "aclk", as main high speed bus clock, is enabled first. Then > the

Re: [PATCH 3/8] spi: dw: Add support for Pensando Elba SoC SPI

2021-03-03 Thread Serge Semin
Hello Brad. Thanks for the patch. See my comments below. On Wed, Mar 03, 2021 at 07:41:36PM -0800, Brad Larson wrote: > The Pensando Elba SoC uses a GPIO based chip select > for two DW SPI busses with each bus having two > chip selects. I see a contradiction here. Normally GPIO-based chip-select

Re: [PATCH] crypto: sun8i-ss: fix result memory leak on error path

2021-03-03 Thread Herbert Xu
On Fri, Feb 12, 2021 at 09:46:10AM +0100, Corentin Labbe wrote: > This patch fixes a memory leak on an error path. > > Fixes: d9b45418a917 ("crypto: sun8i-ss - support hash algorithms") > Reported-by: kernel test robot > Reported-by: Dan Carpenter > Signed-off-by: Corentin Labbe > --- >

Re: [RFC PATCH] autofs: find_autofs_mount overmounted parent support

2021-03-03 Thread Ian Kent
On Wed, 2021-03-03 at 18:28 +0300, Alexander Mikhalitsyn wrote: > It was discovered that find_autofs_mount() function > in autofs not support cases when autofs mount > parent is overmounted. In this case this function will > always return -ENOENT. Ok, I get this shouldn't happen. > > Real-life

Re: [PATCH 1/5] CMDLINE: add generic builtin command line

2021-03-03 Thread Christophe Leroy
Le 04/03/2021 à 05:47, Daniel Walker a écrit : This code allows architectures to use a generic builtin command line. The state of the builtin command line options across architecture is diverse. On x86 and mips they have pretty much the same code and the code prepends the builtin command line

Re: [PATCH v2 3/4] arm64: dts: ti: Add support for Siemens IOT2050 boards

2021-03-03 Thread Vignesh Raghavendra
Hi, On 2/12/21 1:02 AM, Jan Kiszka wrote: > From: Jan Kiszka > > Add support for two Siemens SIMATIC IOT2050 variants, Basic and > Advanced. They are based on the TI AM6528 GP and AM6548 SOCs HS, thus > differ in their number of cores and availability of security features. > Furthermore the

[PATCH v3 2/3] dt-bindings: fpga: Add binding doc for versal fpga manager

2021-03-03 Thread Nava kishore Manne
From: Appana Durga Kedareswara rao This patch adds binding doc for versal fpga manager driver. Signed-off-by: Nava kishore Manne Signed-off-by: Appana Durga Kedareswara rao --- Changes for v2: -Fixed file format and syntax issues. Changes for v3: -Removed

[PATCH v3 3/3] fpga: versal-fpga: Add versal fpga manager driver

2021-03-03 Thread Nava kishore Manne
Add support for Xilinx Versal FPGA manager. PDI source type can be DDR, OCM, QSPI flash etc.. But driver allocates memory always from DDR, Since driver supports only DDR source type. Signed-off-by: Appana Durga Kedareswara rao Signed-off-by: Nava kishore Manne --- Changes for v2:

Re: [RFC PATCH 3/4] KVM: arm64: Install the block entry before unmapping the page mappings

2021-03-03 Thread wangyanan (Y)
Hi Alex, On 2021/3/4 1:27, Alexandru Elisei wrote: Hi Yanan, On 3/3/21 11:04 AM, wangyanan (Y) wrote: Hi Alex, On 2021/3/3 1:13, Alexandru Elisei wrote: Hello, On 2/8/21 11:22 AM, Yanan Wang wrote: When KVM needs to coalesce the normal page mappings into a block mapping, we currently

[PATCH v1] usb: typec: tcpci: Check ROLE_CONTROL while interpreting CC_STATUS

2021-03-03 Thread Badhri Jagan Sridharan
While interpreting CC_STATUS, ROLE_CONTROL has to be read to make sure that CC1/CC2 is not forced presenting Rp/Rd. >From the TCPCI spec: 4.4.5.2 ROLE_CONTROL (Normative): The TCPM shall write B6 (DRP) = 0b and B3..0 (CC1/CC2) if it wishes to control the Rp/Rd directly instead of having the TCPC

[PATCH v3 0/3] Add Bitstream configuration support for Versal

2021-03-03 Thread Nava kishore Manne
This series adds FPGA Manager support for the Xilinx Versal chip. Appana Durga Kedareswara rao (1): dt-bindings: fpga: Add binding doc for versal fpga manager Nava kishore Manne (2): drivers: firmware: Add PDI load API support fpga: versal-fpga: Add versal fpga manager driver

[PATCH v3 1/3] drivers: firmware: Add PDI load API support

2021-03-03 Thread Nava kishore Manne
This patch adds load PDI API support to enable full/partial PDI loading from linux. Programmable Device Image (PDI) is combination of headers, images and bitstream files to be loaded. Signed-off-by: Nava kishore Manne --- Changes for v2: -Updated API Doc and commit msg.

Re: [PATCH 2/5] CMDLINE: drivers: of: ifdef out cmdline section

2021-03-03 Thread Christophe Leroy
Le 04/03/2021 à 05:47, Daniel Walker a écrit : It looks like there's some seepage of cmdline stuff into the generic device tree code. This conflicts with the generic cmdline implementation so I remove it in the case when that's enabled. Cc: xe-linux-exter...@cisco.com Signed-off-by: Ruslan

Re: [PATCH] MIPS: Fix inline asm input/output type mismatch in checksum.h used with Clang

2021-03-03 Thread Tiezhu Yang
On 02/13/2021 04:36 AM, Maciej W. Rozycki wrote: On Wed, 27 Jan 2021, Thomas Bogendoerfer wrote: Fix the following build error when make M=samples/bpf used with Clang: CLANG-bpf samples/bpf/sockex2_kern.o In file included from samples/bpf/sockex2_kern.c:7: In file included from

Re: [PATCH] mm,hwpoison: return -EBUSY when page already poisoned

2021-03-03 Thread Aili Yao
On Wed, 3 Mar 2021 15:41:35 + "Luck, Tony" wrote: > > For error address with sigbus, i think this is not an issue resulted by the > > patch i post, before my patch, the issue is already there. > > I don't find a realizable way to get the correct address for same reason > > --- we don't

Re: [RFC v2 2/2] cgroup: sev: Miscellaneous cgroup documentation.

2021-03-03 Thread Jacob Pan
Hi Vipin, On Tue, 2 Mar 2021 00:17:05 -0800, Vipin Sharma wrote: > +Migration and Ownership > +~~~ > + > +A miscellaneous scalar resource is charged to the cgroup in which it is > used +first, and stays charged to that cgroup until that resource is > freed. Migrating +a

[PATCH] arch/powerpc/include: remove duplicate include in pgtable.h

2021-03-03 Thread menglong8 . dong
From: Zhang Yunkai 'asm/tlbflush.h' included in 'arch/powerpc/include/asm/pgtable.h' is duplicated.It is also included in the 11th line. Signed-off-by: Zhang Yunkai --- arch/powerpc/include/asm/pgtable.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/powerpc/include/asm/pgtable.h

Re: [PATCH v4 10/14] drm/bridge: imx: Add LDB driver helper support

2021-03-03 Thread Liu Ying
Hi Robert, On Wed, 2021-03-03 at 16:34 +0100, Robert Foss wrote: > On Wed, 3 Mar 2021 at 08:23, Liu Ying wrote: > > Hi Robert, > > > > On Tue, 2021-03-02 at 15:22 +0100, Robert Foss wrote: > > > Hey Liu, > > > > > > Thanks for submitting this patch. > > > > Thanks for reviewing this patch. >

Re: [PATCH V2 1/2] arm64/mm: Fix pfn_valid() for ZONE_DEVICE based memory

2021-03-03 Thread Anshuman Khandual
On 3/4/21 2:54 AM, Will Deacon wrote: > On Wed, Mar 03, 2021 at 07:04:33PM +, Catalin Marinas wrote: >> On Thu, Feb 11, 2021 at 01:35:56PM +0100, David Hildenbrand wrote: >>> On 11.02.21 13:10, Anshuman Khandual wrote: On 2/11/21 5:23 PM, Will Deacon wrote: > ... and dropped. These

Re: [PATCH V2] mm: Generalize HUGETLB_PAGE_SIZE_VARIABLE

2021-03-03 Thread Anshuman Khandual
On 3/2/21 10:43 AM, Anshuman Khandual wrote: > HUGETLB_PAGE_SIZE_VARIABLE need not be defined for each individual > platform subscribing it. Instead just make it generic. > > Cc: Michael Ellerman > Cc: Benjamin Herrenschmidt > Cc: Paul Mackerras > Cc: Andrew Morton > Cc: Christoph Hellwig

Re: [PATCH v2] amba: Remove deferred device addition

2021-03-03 Thread Saravana Kannan
On Wed, Mar 3, 2021 at 8:00 PM Saravana Kannan wrote: > > The uevents generated for an amba device need PID and CID information > that's available only when the amba device is powered on, clocked and > out of reset. So, if those resources aren't available, the information > can't be read to

Re: [PATCH v3 5/8] mm: Device exclusive memory access

2021-03-03 Thread Alistair Popple
On Tuesday, 2 March 2021 11:41:52 PM AEDT Jason Gunthorpe wrote: > > However try_to_protect() scans the PTEs again under the PTL so checking the > > mapping of interest actually gets replaced during the rmap walk seems like a > > reasonable solution. Thanks for the comments. > > It does seem

Re: [PATCH 1/8] ARM: ARMv7-M: Fix register restore corrupt after svc call

2021-03-03 Thread dillon min
On Wed, Mar 3, 2021 at 10:19 PM Vladimir Murzin wrote: > > On 3/3/21 1:35 PM, dillon min wrote: > > Hi Vladimir, > > > > Thanks for the review. > > > > On Wed, Mar 3, 2021 at 5:52 PM Vladimir Murzin > > wrote: > >> > >> On 3/3/21 8:05 AM, dillon.min...@gmail.com wrote: > >>> From: dillon min >

[RESEND PATCH v2.1 07/10] iomap: Introduce iomap_apply2() for operations on two files

2021-03-03 Thread Shiyang Ruan
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 actions on two files. Signed-off-by: Shiyang Ruan ---

[RESEND PATCH v2.1 08/10] fsdax: Dedup file range to use a compare function

2021-03-03 Thread Shiyang Ruan
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: Goldwyn Rodrigues Signed-off-by: Shiyang Ruan --- fs/dax.c | 56

Re: [RFC PATCH v2 00/13] Add futex2 syscall

2021-03-03 Thread Peter Oskolkov
On Wed, Mar 3, 2021 at 5:22 PM André Almeida wrote: > > Hi, > > This patch series introduces the futex2 syscalls. > > * What happened to the current futex()? > > For some years now, developers have been trying to add new features to > futex, but maintainers have been reluctant to accept then,

[PATCH v3 2/2] crypto: hisilicon/sec - fixes some driver coding style

2021-03-03 Thread Longfang Liu
cleanup static check errors for SEC Signed-off-by: Longfang Liu --- drivers/crypto/hisilicon/sec2/sec_main.c | 131 ++- 1 file changed, 76 insertions(+), 55 deletions(-) diff --git a/drivers/crypto/hisilicon/sec2/sec_main.c

[PATCH v3 1/2] crypto: hisilicon/sec - fixes some log printing style

2021-03-03 Thread Longfang Liu
1. Fix a problem of error log printing 2. Modify error log printing style Signed-off-by: Longfang Liu --- drivers/crypto/hisilicon/sec2/sec.h| 5 +- drivers/crypto/hisilicon/sec2/sec_crypto.c | 82 +++--- drivers/crypto/hisilicon/sec2/sec_crypto.h | 2 - 3

Re: [RFC v2 2/2] cgroup: sev: Miscellaneous cgroup documentation.

2021-03-03 Thread Vipin Sharma
On Wed, Mar 03, 2021 at 06:55:13PM -0800, Jacob Pan wrote: > Hi Vipin, > > On Tue, 2 Mar 2021 00:17:05 -0800, Vipin Sharma wrote: > > > +Migration and Ownership > > +~~~ > > + > > +A miscellaneous scalar resource is charged to the cgroup in which it is > > used +first, and

[rcu:tglx-pc.2021.03.03a] BUILD SUCCESS 614745c470c1cc6c2becaec5d0b4435f83dc3c99

2021-03-03 Thread kernel test robot
allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a005-20210303 i386 randconfig-a003-20210303 i386 randconfig-a002-20210303 i386 randconfig-a004-20210303 i386

[PATCH v10 1/7] crypto: hisilicon/hpre - add version adapt to new algorithms

2021-03-03 Thread Meng Yu
A new generation of accelerator Kunpeng930 has appeared, and the corresponding driver needs to be updated to support some new algorithms of Kunpeng930. To be compatible with Kunpeng920, we add parameter 'struct hisi_qm *qm' to sec_algs_(un)register to identify the chip's version. Signed-off-by:

[PATCH v10 6/7] crypto: add curve25519 params and expose them

2021-03-03 Thread Meng Yu
1. Add curve 25519 parameters in 'crypto/ecc_curve_defs.h'; 2. Add curve25519 interface 'ecc_get_curve25519_param' in 'include/crypto/ecc_curve.h', to make its parameters be exposed to everyone in kernel tree. Signed-off-by: Meng Yu Reviewed-by: Zaibo Xu --- crypto/ecc.c |

[PATCH v10 5/7] crypto: hisilicon/hpre - add 'ECDH' algorithm

2021-03-03 Thread Meng Yu
1. Enable 'ECDH' algorithm in Kunpeng 930; 2. HPRE ECDH Support: ecdh-nist-p192, ecdh-nist-p256. Signed-off-by: Meng Yu Reviewed-by: Zaibo Xu --- drivers/crypto/hisilicon/hpre/hpre.h| 2 +- drivers/crypto/hisilicon/hpre/hpre_crypto.c | 515 +++-

[PATCH v10 7/7] crypto: hisilicon/hpre - add 'CURVE25519' algorithm

2021-03-03 Thread Meng Yu
Enable 'CURVE25519' algorithm in Kunpeng 930. Signed-off-by: Meng Yu Reviewed-by: Zaibo Xu Reported-by: kernel test robot --- drivers/crypto/hisilicon/Kconfig| 1 + drivers/crypto/hisilicon/hpre/hpre.h| 2 + drivers/crypto/hisilicon/hpre/hpre_crypto.c | 366

[PATCH v10 0/7] add ECDH and CURVE25519 algorithms support for Kunpeng 930

2021-03-03 Thread Meng Yu
1. Move curve ID from the key into the algorithm name (like 'ecdh-nist-pxxx' so we get its tfm like 'crypto_alloc_kpp("ecdh-nist-p256", 0, 0)'), in 'crypto/ecc.c' (has been verified by testmgr) and 'crypto/atmel-ecc.c' (only compiled, not do test), and modify 'testmgr.c' and

[PATCH -next] mtd: parsers: ofpart: make symbol 'bcm4908_partitions_quirks' static

2021-03-03 Thread 'Wei Yongjun
From: Wei Yongjun The sparse tool complains as follows: drivers/mtd/parsers/ofpart_core.c:25:32: warning: symbol 'bcm4908_partitions_quirks' was not declared. Should it be static? This symbol is not used outside of ofpart_core.c, so this commit marks it static. Fixes: 457da931b608 ("mtd:

RE: [PATCH v2 0/2] Add DFX AXI Shutdown manager IP support for Xilinx

2021-03-03 Thread Nava kishore Manne
Ping! > -Original Message- > From: Nava kishore Manne > Sent: Thursday, February 11, 2021 10:42 AM > To: m...@kernel.org; t...@redhat.com; robh...@kernel.org; Michal Simek > ; linux-f...@vger.kernel.org; > devicet...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; linux- >

[PATCH v2] gpio: regmap: set gpio_chip of_node

2021-03-03 Thread Álvaro Fernández Rojas
This is needed for properly registering gpio regmap as a child of a regmap pin controller. Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Michael Walle --- v2: split this patch from the bcm63xx-pinctrl series drivers/gpio/gpio-regmap.c | 1 + include/linux/gpio/regmap.h | 3 +++ 2 files

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

2021-03-03 Thread Paul E. McKenney
On Thu, Mar 04, 2021 at 12:41:05PM +1100, Stephen Rothwell wrote: > Hi all, > > After merging the rcu tree, today's linux-next build (htmldocs) produced > this warning: > > kernel/rcu/tree.c:3824: warning: expecting prototype for > start_poll_state_synchronize_rcu(). Prototype was for >

ixgbe: disabling already-disabled device

2021-03-03 Thread Liu, Yongxin
Hello, I am seeing the following call trace on the second run of "rtcwake -m mem -s 20". After reverting commit 6f82b2558735 ("ixgbe: use generic power management"), the call trace disappeared. It seems "pci_disable_device()" is used in "__ixgbe_shutdown()", however "pci_enable_device_mem()"

Re: [v2] ubifs: Fix read out-of-bounds in ubifs_jnl_write_inode()

2021-03-03 Thread Chengsong Ke
ping >> Reproducer: >> 0. config KASAN && apply print.patch >> 1. mount ubifs on /root/temp >> 2. run test.sh > > What does test.sh do? Go to Link: https://bugzilla.kernel.org/show_bug.cgi?id=210865. test.sh creates a very long path file test_file, and then create a symbol link link_file for

linux-next: build warnings after merge of the v4l-dvb tree

2021-03-03 Thread Stephen Rothwell
Hi all, After merging the v4l-dvb tree, today's linux-next build (htmldocs) produced these warnings: Documentation/userspace-api/media/v4l/hist-v4l2.rst:818: WARNING: undefined label: control-flags (if the link has no caption the label must precede a section header)

Re: [PATCH v5] i2c: virtio: add a virtio i2c frontend driver

2021-03-03 Thread Jie Deng
On 2021/3/3 17:38, Viresh Kumar wrote: On 03-03-21, 16:46, Jie Deng wrote: This is not a problem. My original proposal was to mirror the struct i2c_msg. The code you looked at was based on that. However, the virtio TC prefer not to mirror it. They have some concerns. For example, there is a

[PATCH 1/4] userfaultfd.2: Add UFFD_FEATURE_THREAD_ID docs

2021-03-03 Thread Peter Xu
UFFD_FEATURE_THREAD_ID is supported since Linux 4.14. Signed-off-by: Peter Xu --- man2/userfaultfd.2 | 12 1 file changed, 12 insertions(+) diff --git a/man2/userfaultfd.2 b/man2/userfaultfd.2 index e7dc9f813..2d14effc6 100644 --- a/man2/userfaultfd.2 +++ b/man2/userfaultfd.2 @@

[PATCH 0/4] man2: udpate mm/userfaultfd manpages to latest

2021-03-03 Thread Peter Xu
There're two features missing in current manpage, namely: (1) Userfaultfd Thread-ID feature (2) Userfaultfd write protect mode There's also a 3rd one which was just contributed from Axel - Axel, I think it would be great if you can add that part too, probably after the whole hugetlbfs/shmem

[PATCH 3/4] ioctl_userfaultfd.2: Add UFFD_FEATURE_THREAD_ID docs

2021-03-03 Thread Peter Xu
UFFD_FEATURE_THREAD_ID is supported in Linux 4.14. Signed-off-by: Peter Xu --- man2/ioctl_userfaultfd.2 | 4 1 file changed, 4 insertions(+) diff --git a/man2/ioctl_userfaultfd.2 b/man2/ioctl_userfaultfd.2 index 47ae5f473..1965d1932 100644 --- a/man2/ioctl_userfaultfd.2 +++

[PATCH v6] i2c: virtio: add a virtio i2c frontend driver

2021-03-03 Thread Jie Deng
Add an I2C bus driver for virtio para-virtualization. The controller can be emulated by the backend driver in any device model software by following the virtio protocol. The device specification can be found on https://lists.oasis-open.org/archives/virtio-comment/202101/msg8.html. By

[PATCH][next] staging: rtl8188eu: Replace one-element array with flexible-array in struct ndis_802_11_var_ie

2021-03-03 Thread Gustavo A. R. Silva
There is a regular need in the kernel to provide a way to declare having a dynamically sized set of trailing elements in a structure. Kernel code should always use “flexible array members”[1] for these cases. The older style of one-element or zero-length arrays should no longer be used[2]. Use

Re: [PATCH] MIPS: Add comment about CONFIG_MIPS32_O32 in loongson3_defconfig when build with Clang

2021-03-03 Thread Nathan Chancellor
On Thu, Mar 04, 2021 at 09:15:44AM +0800, Tiezhu Yang wrote: > When build kernel with Clang [1]: > > $ make CC=clang loongson3_defconfig > $ make CC=clang > > there exists the following error: > > Checking missing-syscalls for O32 > CALLscripts/checksyscalls.sh > error: ABI 'o32' is not

[PATCH 2/4] userfaultfd.2: Add write-protect mode

2021-03-03 Thread Peter Xu
Write-protect mode is supported starting from Linux 5.7. Signed-off-by: Peter Xu --- man2/userfaultfd.2 | 88 -- 1 file changed, 86 insertions(+), 2 deletions(-) diff --git a/man2/userfaultfd.2 b/man2/userfaultfd.2 index 2d14effc6..8e1602d62 100644

[PATCH 4/4] ioctl_userfaultfd.2: Add write-protect mode docs

2021-03-03 Thread Peter Xu
Userfaultfd write-protect mode is supported starting from Linux 5.7. Signed-off-by: Peter Xu --- man2/ioctl_userfaultfd.2 | 74 +--- 1 file changed, 70 insertions(+), 4 deletions(-) diff --git a/man2/ioctl_userfaultfd.2 b/man2/ioctl_userfaultfd.2 index

Re: [PATCH v3 7/9] KVM: vmx/pmu: Add Arch LBR emulation and its VMCS field

2021-03-03 Thread Xu, Like
On 2021/3/4 1:26, Sean Christopherson wrote: On Wed, Mar 03, 2021, Like Xu wrote: New VMX controls bits for Arch LBR are added. When bit 21 in vmentry_ctrl is set, VM entry will write the value from the "Guest IA32_LBR_CTL" guest state field to IA32_LBR_CTL. When bit 26 in vmexit_ctrl is set,

Re: [PATCH v2] net: 9p: advance iov on empty read

2021-03-03 Thread asmadeus
patchwork-bot+netdev...@kernel.org wrote on Thu, Mar 04, 2021 at 01:10:07AM +: > This patch was applied to netdev/net.git thanks for taking the patch, I didn't take the time to reply yesterday after my bisect finally finished. I've got the culprit now, could you add the following?

Re: XDP socket rings, and LKMM litmus tests

2021-03-03 Thread Alan Stern
On Thu, Mar 04, 2021 at 09:26:31AM +0800, Boqun Feng wrote: > On Wed, Mar 03, 2021 at 03:22:46PM -0500, Alan Stern wrote: > > Which brings us back to the case of the > > > > dep ; rfi > > > > dependency relation, where the accesses in the middle are plain and > > non-racy. Should the LKMM

[PATCH] arch/powerpc/include:fix misspellings in tlbflush.h

2021-03-03 Thread menglong8 . dong
From: Zhang Yunkai Some typos are found out.The information at the end of the file does not match the beginning. Signed-off-by: Zhang Yunkai --- arch/powerpc/include/asm/book3s/32/tlbflush.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

<    6   7   8   9   10   11   12   13   14   15   >