[PATCH v2] vfio iommu type1: Improve vfio_iommu_type1_pin_pages performance

2020-11-20 Thread xuxiaoyang (C)
vfio_pin_pages() accepts an array of unrelated iova pfns and processes each to return the physical pfn. When dealing with large arrays of contiguous iovas, vfio_iommu_type1_pin_pages is very inefficient because it is processed page by page.In this case, we can divide the iova pfn array into

[PATCH] crypto: cavium - Use dma_set_mask_and_coherent to simplify code

2020-11-20 Thread Christophe JAILLET
'pci_set_dma_mask()' + 'pci_set_consistent_dma_mask()' can be replaced by an equivalent 'dma_set_mask_and_coherent()' which is much less verbose. Signed-off-by: Christophe JAILLET --- drivers/crypto/cavium/cpt/cptpf_main.c | 10 ++ drivers/crypto/cavium/cpt/cptvf_main.c | 10 ++

RE: [PATCH] uio/uio_pci_generic: remove unneeded pci_set_drvdata()

2020-11-20 Thread Ardelean, Alexandru
> -Original Message- > From: Greg KH > Sent: Friday, November 20, 2020 5:46 PM > To: Ardelean, Alexandru > Cc: linux-kernel@vger.kernel.org > Subject: Re: [PATCH] uio/uio_pci_generic: remove unneeded pci_set_drvdata() > > [External] > > On Thu, Nov 19, 2020 at 04:59:06PM +0200,

[PATCH] crypto: marvell/octeontx - Use dma_set_mask_and_coherent to simplify code

2020-11-20 Thread Christophe JAILLET
'pci_set_dma_mask()' + 'pci_set_consistent_dma_mask()' can be replaced by an equivalent 'dma_set_mask_and_coherent()' which is much less verbose. Signed-off-by: Christophe JAILLET --- drivers/crypto/marvell/octeontx/otx_cptpf_main.c | 10 ++

[gustavoars-linux:testing/clang-ft/for-next] BUILD SUCCESS d2944854e3e118b837755abf4cbdb497662001b7

2020-11-20 Thread kernel test robot
x86_64 randconfig-a006-20201120 x86_64 randconfig-a003-20201120 x86_64 randconfig-a004-20201120 x86_64 randconfig-a005-20201120 x86_64 randconfig-a001-20201120 x86_64 randconfig-a002-20201120 i386

arch/powerpc/xmon/xmon.c:1379:12: error: 'find_free_data_bpt' defined but not used

2020-11-20 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 27bba9c532a8d21050b94224ffd310ad0058c353 commit: 30df74d67d48949da87e3a5b57c381763e8fd526 powerpc/watchpoint/xmon: Support 2nd DAWR date: 6 months ago config: powerpc-randconfig-m031-20201121 (attached as

Re: [RFC PATCH] bpf: preload: Fix build error when O= is set

2020-11-20 Thread Andrii Nakryiko
On Thu, Nov 19, 2020 at 12:51 AM David Gow wrote: > > If BPF_PRELOAD is enabled, and an out-of-tree build is requested with > make O=, compilation seems to fail with: > > tools/scripts/Makefile.include:4: *** O=.kunit does not exist. Stop. > make[4]: *** [../kernel/bpf/preload/Makefile:8:

Re: [PATCH v7 00/17] Add support for Clang LTO

2020-11-20 Thread Ard Biesheuvel
On Sat, 21 Nov 2020 at 00:53, Nick Desaulniers wrote: > > On Fri, Nov 20, 2020 at 3:30 PM Ard Biesheuvel wrote: > > > > On Fri, 20 Nov 2020 at 21:19, Nick Desaulniers > > wrote: > > > > > > On Fri, Nov 20, 2020 at 2:30 AM Ard Biesheuvel wrote: > > > > > > > > On Thu, 19 Nov 2020 at 00:42,

WARNING: filesystem loop2 was created with 512 inodes, the real maximum is 511, mounting anyway

2020-11-20 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:09162bc3 Linux 5.10-rc4 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=16e9a48650 kernel config: https://syzkaller.appspot.com/x/.config?x=e93bbe4ce29223b dashboard link:

WARNING: filesystem loop4 was created with 512 inodes, the real maximum is 511, mounting anyway

2020-11-20 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:09162bc3 Linux 5.10-rc4 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=103f4fbe50 kernel config: https://syzkaller.appspot.com/x/.config?x=75292221eb79ace2 dashboard link:

[PATCH] crypto: cavium/zip - Use dma_set_mask_and_coherent to simplify code

2020-11-20 Thread Christophe JAILLET
'pci_set_dma_mask()' + 'pci_set_consistent_dma_mask()' can be replaced by an equivalent 'dma_set_mask_and_coherent()' which is much less verbose. Signed-off-by: Christophe JAILLET --- drivers/crypto/cavium/zip/zip_main.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff

[PATCH] nfs: Only include nfs42.h when NFS_V4_2 enable

2020-11-20 Thread Wang Qing
Remove duplicate header unnecessary. Only include nfs42.h when NFS_V4_2 enable. Signed-off-by: Wang Qing --- fs/nfs/nfs4proc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 9e0ca9b..a1321a5 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c

Need competent person for this position

2020-11-20 Thread Center linkedIn
Hello! We are writing this letter to you from LinkedIn Customer Center. We have a Job Vacancy for you in your country, If you Receive this message Kindly send us your CV to our office Email: mec...@xcontrol.it For more information about the job,The position of the job cannot stop your business

Re: [PATCH] binder: add flag to clear buffer on txn complete

2020-11-20 Thread Greg KH
On Fri, Nov 20, 2020 at 03:37:43PM -0800, Todd Kjos wrote: > Add a per-transaction flag to indicate that the buffer > must be cleared when the transaction is complete to > prevent copies of sensitive data from being preserved > in memory. > > Signed-off-by: Todd Kjos > --- DOes this need to be

[PATCH] crypto: qat - Use dma_set_mask_and_coherent to simplify code

2020-11-20 Thread Christophe JAILLET
'pci_set_dma_mask()' + 'pci_set_consistent_dma_mask()' can be replaced by an equivalent 'dma_set_mask_and_coherent()' which is much less verbose. While at it, also remove some unless extra () in the 32 bits case. Signed-off-by: Christophe JAILLET --- Instead of returning -EFAULT, we could also

Re: [PATCH v24 08/12] landlock: Add syscall implementations

2020-11-20 Thread Jann Horn
On Thu, Nov 12, 2020 at 9:52 PM Mickaël Salaün wrote: > These 3 system calls are designed to be used by unprivileged processes > to sandbox themselves: > * landlock_create_ruleset(2): Creates a ruleset and returns its file > descriptor. > * landlock_add_rule(2): Adds a rule (e.g. file hierarchy

Re: [PATCH v24 02/12] landlock: Add ruleset and domain management

2020-11-20 Thread Jann Horn
On Thu, Nov 12, 2020 at 9:51 PM Mickaël Salaün wrote: > A Landlock ruleset is mainly a red-black tree with Landlock rules as > nodes. This enables quick update and lookup to match a requested > access, e.g. to a file. A ruleset is usable through a dedicated file > descriptor (cf. following

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

2020-11-20 Thread Jann Horn
On Thu, Nov 12, 2020 at 9:52 PM Mickaël Salaün wrote: > Thanks to the Landlock objects and ruleset, it is possible to identify > inodes according to a process's domain. To enable an unprivileged > process to express a file hierarchy, it first needs to open a directory > (or a file) and pass this

Re: [PATCH v24 12/12] landlock: Add user and kernel documentation

2020-11-20 Thread Jann Horn
On Thu, Nov 12, 2020 at 9:52 PM Mickaël Salaün wrote: > This documentation can be built with the Sphinx framework. > > Cc: James Morris > Cc: Jann Horn > Cc: Kees Cook > Cc: Serge E. Hallyn > Signed-off-by: Mickaël Salaün > Reviewed-by: Vincent Dagonneau Reviewed-by: Jann Horn

Re: [PATCH v24 01/12] landlock: Add object management

2020-11-20 Thread Jann Horn
On Thu, Nov 12, 2020 at 9:51 PM Mickaël Salaün wrote: > A Landlock object enables to identify a kernel object (e.g. an inode). > A Landlock rule is a set of access rights allowed on an object. Rules > are grouped in rulesets that may be tied to a set of processes (i.e. > subjects) to enforce a

Re: [PATCH bpf-next v2 2/3] bpf: Add a BPF helper for getting the IMA hash of an inode

2020-11-20 Thread Yonghong Song
On 11/20/20 4:50 PM, KP Singh wrote: From: KP Singh Provide a wrapper function to get the IMA hash of an inode. This helper is useful in fingerprinting files (e.g executables on execution) and using these fingerprints in detections like an executable unlinking itself. Since the

Re: [PATCH bpf-next v2 1/3] ima: Implement ima_inode_hash

2020-11-20 Thread Yonghong Song
On 11/20/20 4:50 PM, KP Singh wrote: From: KP Singh This is in preparation to add a helper for BPF LSM programs to use IMA hashes when attached to LSM hooks. There are LSM hooks like inode_unlink which do not have a struct file * argument and cannot use the existing ima_file_hash API. An

[PATCH] regulator: Kconfig: Fix REGULATOR_QCOM_RPMH dependencies to avoid build error

2020-11-20 Thread John Stultz
The kernel test robot reported the following build error: All errors (new ones prefixed by >>): xtensa-linux-ld: drivers/regulator/qcom-rpmh-regulator.o: in function `rpmh_regulator_vrm_get_voltage_sel': qcom-rpmh-regulator.c:(.text+0x270): undefined reference to `rpmh_write'

[no subject]

2020-11-20 Thread Steve & Lenka Thomson Foundation®
Greetings, We are pleased to inform you that an amount of £500,000.00(GBP) has been donated and given, gifted to you and your family by Steve & Lenka Thomson, who won the Euro Millions jackpot, lottery of £105,100,701.90 Euro Millions, part of this donation, it is for you and your family.

[PATCH 2/2] arm64: dts: qcom: sm8150-mtp: Enable WiFi node

2020-11-20 Thread Bjorn Andersson
From: Jonathan Marek Enable the WiFi node and specify its supply regulators. Signed-off-by: Jonathan Marek [bjorn: Extracted patch from larger HDK patch] Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/sm8150-mtp.dts | 9 + 1 file changed, 9 insertions(+) diff --git

[PATCH] arm64: dts: qcom: sm8150-mtp: Specify remoteproc firmware

2020-11-20 Thread Bjorn Andersson
Point the various remoteprocs of SM8150 MTP to a place with the platform specific firmware. Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/sm8150-mtp.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150-mtp.dts

[PATCH 1/2] arm64: dts: qcom: sm8150: Add wifi node

2020-11-20 Thread Bjorn Andersson
From: Jonathan Marek Add a node for the WCN3990 WiFi module. Signed-off-by: Jonathan Marek [bjorn: Extracted patch from larger "misc" patch, added qdss clock] Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 23 +++ 1 file changed, 23

[PATCH v1] qnx6: check the sanity of root inode type

2020-11-20 Thread Tong Zhang
root inode should be directory type mount /dev/sdb /mnt [ 18.799875] qnx6: superblock #1 active [ 18.810693] BUG: kernel NULL pointer dereference, address: [ 18.810885] #PF: supervisor instruction fetch in kernel mode [ 18.810999] #PF: error_code(0x0010) - not-present

Re: [PATCH] mm: memcontrol: account pagetables per node

2020-11-20 Thread kernel test robot
Hi Shakeel, Thank you for the patch! Yet something to improve: [auto build test ERROR on driver-core/driver-core-testing] [also build test ERROR on linus/master v5.10-rc4 next-20201120] [cannot apply to mmotm/master cgroup/for-next hnaz-linux-mm/master] [If your patch is applied to the wrong git

[rcu:rcu/next] BUILD SUCCESS 53f29e8d30d0ce9af81b320b115a4e2956f317b3

2020-11-20 Thread kernel test robot
ig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a006-20201120 x86_64 randconfig-a003-20201120 x86_64 randconfig-a004-20201120 x86_64 randconfig-a005-20201120 x86_64 randconfig-a001-20201

INFO: task hung in sync_inodes_sb (4)

2020-11-20 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:03430750 Add linux-next specific files for 20201116 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=17027fdc50 kernel config: https://syzkaller.appspot.com/x/.config?x=a1c4c3f27041fdb8 dashboard

[PATCH v1] qnx6: avoid double release bh

2020-11-20 Thread Tong Zhang
set bh to NULL to avoid double release [ 38.848384] qnx6: superblock #1 active [ 38.855489] attempt to access beyond end of device [ 38.855489] sdb: rw=0, want=6359988796, limit=20 [ 38.855852] Buffer I/O error on dev sdb, logical block 3179994397, async page read [ 38.856327]

[tip:x86/cleanups] BUILD SUCCESS 61b39ad9a7d26fe14a2f5f23e5e940e7f9664d41

2020-11-20 Thread kernel test robot
allnoconfig x86_64 randconfig-a006-20201120 x86_64 randconfig-a003-20201120 x86_64 randconfig-a004-20201120 x86_64 randconfig-a005-20201120 x86_64 randconfig-a001-20201120 x86_64 randconfig-a002-20201120 i386

[PATCH v6 1/5] dma-buf: system_heap: Rework system heap to use sgtables instead of pagelists

2020-11-20 Thread John Stultz
In preparation for some patches to optmize the system heap code, rework the dmabuf exporter to utilize sgtables rather then pageslists for tracking the associated pages. This will allow for large order page allocations, as well as more efficient page pooling. In doing so, the system heap stops

[PATCH v6 4/5] dma-buf: heaps: Skip sync if not mapped

2020-11-20 Thread John Stultz
This patch is basically a port of Ørjan Eide's similar patch for ION https://lore.kernel.org/lkml/20200414134629.54567-1-orjan.e...@arm.com/ Only sync the sg-list of dma-buf heap attachment when the attachment is actually mapped on the device. dma-bufs may be synced at any time. It can be

[PATCH v6 5/5] dma-buf: system_heap: Allocate higher order pages if available

2020-11-20 Thread John Stultz
While the system heap can return non-contiguous pages, try to allocate larger order pages if possible. This will allow slight performance gains and make implementing page pooling easier. Cc: Sumit Semwal Cc: Liam Mark Cc: Laura Abbott Cc: Brian Starkey Cc: Hridya Valsaraju Cc: Suren

[PATCH v6 3/5] dma-buf: heaps: Remove heap-helpers code

2020-11-20 Thread John Stultz
The heap-helpers code was not as generic as initially hoped and it is now not being used, so remove it from the tree. Cc: Sumit Semwal Cc: Liam Mark Cc: Laura Abbott Cc: Brian Starkey Cc: Hridya Valsaraju Cc: Suren Baghdasaryan Cc: Sandeep Patil Cc: Daniel Mentz Cc: Chris Goldsworthy Cc:

[PATCH v6 2/5] dma-buf: heaps: Move heap-helper logic into the cma_heap implementation

2020-11-20 Thread John Stultz
Since the heap-helpers logic ended up not being as generic as hoped, move the heap-helpers dma_buf_ops implementations into the cma_heap directly. This will allow us to remove the heap_helpers code in a following patch. Cc: Sumit Semwal Cc: Liam Mark Cc: Laura Abbott Cc: Brian Starkey Cc:

[PATCH v6 0/5] dma-buf: Code rework and performance improvements for system heap

2020-11-20 Thread John Stultz
Hey All, So just wanted to send another revision of my patch series of performance optimizations to the dma-buf system heap, this time against drm-misc-next. This series reworks the system heap to use sgtables, and then consolidates the pagelist method from the heap-helpers into the CMA heap.

[PATCH] scsi: ufs: Adjust logic in common ADAPT helper

2020-11-20 Thread Bjorn Andersson
The introduction of ufshcd_dme_configure_adapt() refactored out duplication from the Mediatek and Qualcomm drivers. Both these implementations had the logic of: gear_tx == UFS_HS_G4 => PA_INITIAL_ADAPT gear_tx != UFS_HS_G4 => PA_NO_ADAPT but now both implementations pass PA_INITIAL_ADAPT

Re: [PATCH] mm: memcontrol: account pagetables per node

2020-11-20 Thread kernel test robot
Hi Shakeel, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on driver-core/driver-core-testing] [also build test WARNING on linus/master v5.10-rc4 next-20201120] [cannot apply to mmotm/master cgroup/for-next hnaz-linux-mm/master] [If your patch is applied

Re: [RFC PATCH 4/4] sched, rt: support schedstat for RT sched class

2020-11-20 Thread Yafang Shao
On Fri, Nov 20, 2020 at 10:39 AM jun qian wrote: > > Yafang Shao 于2020年11月19日周四 上午11:55写道: > > > > We want to measure the latency of RT tasks in our production > > environment with schedstat facility, but currently schedstat is only > > supported for fair sched class. This patch enable it for RT

RE: [PATCH v3 4/4] Documentation/admin-guide: Change doc for split_lock_detect parameter

2020-11-20 Thread Yu, Fenghua
Hi, Randy, > >>> + for bus lock detection. 0 < N <= HZ/2 and > >>> + N is approximate. Only applied to non-root > >>> + users. > >> > >> Sorry, but I don't know what this means. I think it's the "and N is > >>

Re: [PATCH 3/5] arm64: dts: sdm845: add oneplus 6/t devices

2020-11-20 Thread Bjorn Andersson
On Thu 12 Nov 10:21 CST 2020, Caleb Connolly wrote: [..] > diff --git a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi > b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi > new file mode 100644 > index ..4e6477f1e574 > --- /dev/null > +++

Re: [PATCH v12 00/15] Add RCEC handling to PCI/AER

2020-11-20 Thread Bjorn Helgaas
On Fri, Nov 20, 2020 at 04:10:21PM -0800, Sean V Kelley wrote: > Changes since v11 [1] and based on pci/master tree [2]: > > - No functional changes. Tested with aer injection. > > - Merge RCEC class code and extended capability patch with usage. > - Apply same optimization for

[PATCH v2 5/5] locking/rwsem: Remove reader optimistic spinning

2020-11-20 Thread Waiman Long
Reader optimistic spinning is helpful when the reader critical section is short and there aren't that many readers around. It also improves the chance that a reader can get the lock as writer optimistic spinning disproportionally favors writers much more than readers. Since commit d3681e269fff

[PATCH v2 4/5] locking/rwsem: Wake up all waiting readers if RWSEM_WAKE_READ_OWNED

2020-11-20 Thread Waiman Long
The rwsem wakeup logic has been modified by commit d3681e269fff ("locking/rwsem: Wake up almost all readers in wait queue") to wake up all readers in the wait queue if the first waiter is a reader. This change was made to implement a phase-fair reader/writer lock. Once a reader gets the lock, all

[PATCH v2 2/5] locking/rwsem: Prevent potential lock starvation

2020-11-20 Thread Waiman Long
The lock handoff bit is added in commit 4f23dbc1e657 ("locking/rwsem: Implement lock handoff to prevent lock starvation") to avoid lock starvation. However, allowing readers to do optimistic spinning does introduce an unlikely scenario where lock starvation can happen. The lock handoff bit may

[PATCH v2 1/5] locking/rwsem: Pass the current atomic count to rwsem_down_read_slowpath()

2020-11-20 Thread Waiman Long
The atomic count value right after reader count increment can be useful to determine the rwsem state at trylock time. So the count value is passed down to rwsem_down_read_slowpath() to be used when appropriate. Signed-off-by: Waiman Long --- kernel/locking/rwsem.c | 20 1

[PATCH v2 3/5] locking/rwsem: Enable reader optimistic lock stealing

2020-11-20 Thread Waiman Long
If the optimistic spinning queue is empty and the rwsem does not have the handoff or write-lock bits set, it is actually not necessary to call rwsem_optimistic_spin() to spin on it. Instead, it can steal the lock directly as its reader bias is in the count already. If it is the first reader in

[PATCH v2 0/5] locking/rwsem: Rework reader optimistic spinning

2020-11-20 Thread Waiman Long
v2: - Update some commit logs to incorporate review comments. - Patch 2: remove unnecessary comment. - Patch 3: rename osq_is_empty() to rwsem_no_spinners() as suggested. - Patch 4: correctly handle HANDOFF clearing. - Patch 5: fix !CONFIG_RWSEM_SPIN_ON_OWNER compilation errors. A

Re: [PATCH 1/1] ktest.pl: Fix incorrect reboot for grub2bls

2020-11-20 Thread Steven Rostedt
On Fri, 20 Nov 2020 18:12:43 -0800 Libo Chen wrote: > This issue was first noticed when I was testing different kernels on > Oracle Linux 8 which as Fedora 30+ adopts BLS as default. Even though a > kernel entry was added successfully and the index of that kernel entry was > retrieved correctly,

Re: [PATCH v3 4/4] Documentation/admin-guide: Change doc for split_lock_detect parameter

2020-11-20 Thread Randy Dunlap
On 11/20/20 8:09 PM, Yu, Fenghua wrote: > Hi, Randy, > >>> + ratelimit:N - >>> + Set rate limit to N bus locks per second >>> + for bus lock detection. 0 < N <= HZ/2 and >>> + N is approximate.

RE: [PATCH v3 4/4] Documentation/admin-guide: Change doc for split_lock_detect parameter

2020-11-20 Thread Yu, Fenghua
Hi, Randy, > > + ratelimit:N - > > + Set rate limit to N bus locks per second > > + for bus lock detection. 0 < N <= HZ/2 and > > + N is approximate. Only applied to non-root > > +

Re: [PATCH v8 4/4] remoteproc: qcom: Add minidump id for sm8150 modem

2020-11-20 Thread Bjorn Andersson
On Thu 19 Nov 15:05 CST 2020, Siddharth Gupta wrote: > Add minidump id for modem in sm8150 chipset so that the regions to be > included in the coredump generated upon a crash is based on the minidump > tables in SMEM instead of those in the ELF header. > > Signed-off-by: Siddharth Gupta When

Re: [PATCH v8 3/4] remoteproc: qcom: Add capability to collect minidumps

2020-11-20 Thread Bjorn Andersson
On Thu 19 Nov 15:05 CST 2020, Siddharth Gupta wrote: > This patch adds support for collecting minidump in the event of remoteproc > crash. Parse the minidump table based on remoteproc's unique minidump-id, > read all memory regions from the remoteproc's minidump table entry and > expose the

Re: [PATCH v8 1/4] remoteproc: core: Add ops to enable custom coredump functionality

2020-11-20 Thread Bjorn Andersson
On Thu 19 Nov 15:05 CST 2020, Siddharth Gupta wrote: > Each remoteproc might have different requirements for coredumps and might > want to choose the type of dumps it wants to collect. This change allows > remoteproc drivers to specify their own custom dump function to be executed > in place of

[PATCHv4 net-next 2/3] octeontx2-af: Add devlink health reporters for NPA

2020-11-20 Thread George Cherian
Add health reporters for RVU NPA block. NPA Health reporters handle following HW event groups - GENERAL events - ERROR events - RAS events - RVU event An event counter per event is maintained in SW. Output: # devlink health pci/0002:01:00.0: reporter npa state healthy error 0

Re: [PATCH v8 2/4] remoteproc: coredump: Add minidump functionality

2020-11-20 Thread Bjorn Andersson
On Thu 19 Nov 15:05 CST 2020, Siddharth Gupta wrote: > This change adds a new kind of core dump mechanism which instead of dumping > entire program segments of the firmware, dumps sections of the remoteproc > memory which are sufficient to allow debugging the firmware. This function > thus uses

[PATCHv4 net-next 3/3] octeontx2-af: Add devlink health reporters for NIX

2020-11-20 Thread George Cherian
Add health reporters for RVU NIX block. NIX Health reporter handle following HW event groups - GENERAL events - RAS events - RVU event An event counter per event is maintained in SW. Output: # ./devlink health pci/0002:01:00.0: reporter npa state healthy error 0 recover 0 reporter

[PATCHv4 net-next 1/3] octeontx2-af: Add devlink suppoort to af driver

2020-11-20 Thread George Cherian
Add devlink support to AF driver. Basic devlink support is added. Currently info_get is the only supported devlink ops. devlink ouptput looks like this # devlink dev pci/0002:01:00.0 # devlink dev info pci/0002:01:00.0: driver octeontx2-af versions: fixed: mbox version: 9

[PATCHv3 net-next 0/3] Add devlink and devlink health reporters to

2020-11-20 Thread George Cherian
Add basic devlink and devlink health reporters. Devlink health reporters are added for NPA and NIX blocks. These reporters report the error count in respective blocks. Address Jakub's comment to add devlink support for error reporting. https://www.spinics.net/lists/netdev/msg670712.html

Re: [PATCH 2/2] hwspinlock: add SUNXI implementation

2020-11-20 Thread Bjorn Andersson
On Thu 19 Nov 00:44 CST 2020, fu...@allwinnertech.com wrote: > From: fuyao > > Add hwspinlock support for the SUNXI Hardware Spinlock device. > > The Hardware Spinlock device on SUNXI provides hardware assistance > for synchronization between the multiple processors in the system > (Cortex-A7,

Re: [PATCH net-next 4/6] net: ipa: support retries on generic GSI commands

2020-11-20 Thread Jakub Kicinski
On Fri, 20 Nov 2020 21:31:09 -0600 Alex Elder wrote: > On 11/20/20 8:49 PM, Jakub Kicinski wrote: > > On Thu, 19 Nov 2020 16:49:27 -0600 Alex Elder wrote: > >> + do > >> + ret = gsi_generic_command(gsi, channel_id, > >> +GSI_GENERIC_HALT_CHANNEL); >

Re: [PATCH v2 2/3] remoteproc: Introduce deny_sysfs_ops flag

2020-11-20 Thread Suman Anna
On 11/20/20 9:38 PM, Bjorn Andersson wrote: > On Fri 20 Nov 21:01 CST 2020, Suman Anna wrote: > >> The remoteproc framework provides sysfs interfaces for changing >> the firmware name and for starting/stopping a remote processor >> through the sysfs files 'state' and 'firmware'. The 'recovery' >>

Re: [PATCH v12 5/5] selftest: mhi: Add support to test MHI LOOPBACK channel

2020-11-20 Thread Hemant Kumar
Hi Shuah, On 11/20/20 7:26 AM, Shuah Khan wrote: On 11/16/20 3:46 PM, Hemant Kumar wrote: Loopback test opens the MHI device file node and writes a data buffer to it. MHI UCI kernel space driver copies the data and sends it to MHI uplink (Tx) LOOPBACK channel. MHI device loops back the same

[PATCH] spi: amd: Use devm_platform_ioremap_resource() in amd_spi_probe

2020-11-20 Thread Qing Zhang
Simplify this function implementation by using a known wrapper function. Signed-off-by: Qing Zhang --- drivers/spi/spi-amd.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/spi/spi-amd.c b/drivers/spi/spi-amd.c index 7f62954..3cf7609 100644 ---

Re: [PATCH v2 3/3] remoteproc: wkup_m3: Set deny_sysfs_ops flag

2020-11-20 Thread Bjorn Andersson
On Fri 20 Nov 21:01 CST 2020, Suman Anna wrote: > The Wakeup M3 remote processor is controlled by the wkup_m3_ipc > client driver, so set the newly introduced 'deny_sysfs_ops' flag > to not allow any overriding of the remoteproc firmware or state > from userspace. > Reviewed-by: Bjorn Andersson

Re: [PATCH v2 2/3] remoteproc: Introduce deny_sysfs_ops flag

2020-11-20 Thread Bjorn Andersson
On Fri 20 Nov 21:01 CST 2020, Suman Anna wrote: > The remoteproc framework provides sysfs interfaces for changing > the firmware name and for starting/stopping a remote processor > through the sysfs files 'state' and 'firmware'. The 'recovery' > sysfs file can also be used similarly to control

Re: [PATCH] remoteproc: Add a rproc_set_firmware() API

2020-11-20 Thread Bjorn Andersson
On Fri 20 Nov 21:20 CST 2020, Suman Anna wrote: > A new API, rproc_set_firmware() is added to allow the remoteproc platform > drivers and remoteproc client drivers to be able to configure a custom > firmware name that is different from the default name used during > remoteproc registration. This

ATN:PLEASE/ I AM Mr Mohammad Z. Raqab

2020-11-20 Thread Mr Mohammad Z. Raqab
ATN:PLEASE/ I AM Mr Mohammad Z. Raqab Before I introduce myself, I wish to inform you that this letter is not a hoax mail and I urge you to treat it serious. This letter must , come to you as a big surprise, but I believe it is only a day that people meet and become great friends and business

Re: [PATCH v3 4/4] Documentation/admin-guide: Change doc for split_lock_detect parameter

2020-11-20 Thread Randy Dunlap
Hi-- On 11/20/20 6:36 PM, Fenghua Yu wrote: > + ratelimit:N - > + Set rate limit to N bus locks per second > + for bus lock detection. 0 < N <= HZ/2 and > + N is approximate. Only applied

Re: [PATCH net-next 4/6] net: ipa: support retries on generic GSI commands

2020-11-20 Thread Alex Elder
On 11/20/20 8:49 PM, Jakub Kicinski wrote: > On Thu, 19 Nov 2020 16:49:27 -0600 Alex Elder wrote: >> +do >> +ret = gsi_generic_command(gsi, channel_id, >> + GSI_GENERIC_HALT_CHANNEL); >> +while (ret == -EAGAIN && retries--); > > This may

Re: [PATCH] RISC-V: fix barrier() use in

2020-11-20 Thread Palmer Dabbelt
On Mon, 16 Nov 2020 17:39:51 PST (-0800), rdun...@infradead.org wrote: riscv's uses barrier() so it should #include to prevent build errors. Fixes this build error: CC [M] drivers/net/ethernet/emulex/benet/be_main.o In file included from ./include/vdso/processor.h:10, from

[PATCH] remoteproc: Add a rproc_set_firmware() API

2020-11-20 Thread Suman Anna
A new API, rproc_set_firmware() is added to allow the remoteproc platform drivers and remoteproc client drivers to be able to configure a custom firmware name that is different from the default name used during remoteproc registration. This function is being introduced to provide a kernel-level

Re: [PATCH v12 5/5] selftest: mhi: Add support to test MHI LOOPBACK channel

2020-11-20 Thread Hemant Kumar
Hi Mani, On 11/19/20 10:10 PM, Manivannan Sadhasivam wrote: On Mon, Nov 16, 2020 at 02:46:22PM -0800, Hemant Kumar wrote: Loopback test opens the MHI device file node and writes a data buffer to it. MHI UCI kernel space driver copies the data and sends it to MHI uplink (Tx) LOOPBACK channel.

Re: [PATCH v7 00/17] Add support for Clang LTO

2020-11-20 Thread Nathan Chancellor
On Fri, Nov 20, 2020 at 11:29:51AM +0100, Ard Biesheuvel wrote: > On Thu, 19 Nov 2020 at 00:42, Nick Desaulniers > wrote: > > > > On Wed, Nov 18, 2020 at 2:07 PM Sami Tolvanen > > wrote: > > > > > > This patch series adds support for building the kernel with Clang's > > > Link Time

Re: [GIT PULL 1/1] bcm2835-dt-next-2020-11-20

2020-11-20 Thread Florian Fainelli
On 11/20/2020 8:52 AM, Nicolas Saenz Julienne wrote: > Hi Florian, > > The following changes since commit 3650b228f83adda7e5ee532e2b90429c03f7b9ec: > > Linux 5.10-rc1 (2020-10-25 15:14:11 -0700) > > are available in the Git repository at: > >

Re: [PATCH v2] mdio_bus: suppress err message for reset gpio EPROBE_DEFER

2020-11-20 Thread Jakub Kicinski
On Thu, 19 Nov 2020 22:34:46 +0200 Grygorii Strashko wrote: > The mdio_bus may have dependencies from GPIO controller and so got > deferred. Now it will print error message every time -EPROBE_DEFER is > returned which from: > __mdiobus_register() > |-devm_gpiod_get_optional() > without actually

[PATCH v3 4/5] perf metric: Add utilities to work on ids map.

2020-11-20 Thread Ian Rogers
Add utilities to new/free an ids hashmap, as well as to union. Add testing of the union. Unioning hashmaps will be used when parsing the metric, if a value is known then the hashmap is unnecessary, otherwise we need to union together all the event ids to compute their values for reporting.

[PATCH v3 5/5] perf metric: Don't compute unused events.

2020-11-20 Thread Ian Rogers
For a metric like: EVENT1 if #smt_on else EVENT2 currently EVENT1 and EVENT2 will be measured and then when the metric is reported EVENT1 or EVENT2 will be printed depending on the value from smt_on() during the expr parsing. Computing both events is unnecessary and can lead to multiplexing as

[PATCH v3 3/5] perf metric: Rename expr__find_other.

2020-11-20 Thread Ian Rogers
A later change will remove the notion of other, rename the function to expr__find_ids as this is what it populates. Signed-off-by: Ian Rogers --- tools/perf/tests/expr.c | 26 +- tools/perf/tests/pmu-events.c | 9 - tools/perf/util/expr.c| 4 ++--

[PATCH v3 2/5] perf metric: Use NAN for missing event IDs.

2020-11-20 Thread Ian Rogers
If during computing a metric an event (id) is missing the parsing aborts. A later patch will make it so that events that aren't used in the output are deliberately omitted, in which case we don't want the abort. Modify the missing ID case to report NAN for these cases. Signed-off-by: Ian Rogers

[PATCH v3 1/5] perf metric: Restructure struct expr_parse_ctx.

2020-11-20 Thread Ian Rogers
A later change to parsing the ids out (in expr__find_other) will potentially drop hashmaps and so it is more convenient to move expr_parse_ctx to have a hashmap pointer rather than a struct value. As this pointer must be freed, rather than just going out of scope, add expr__ctx_new and

[PATCH v3 0/5] Don't compute events that won't be used in a metric.

2020-11-20 Thread Ian Rogers
For a metric like: EVENT1 if #smt_on else EVENT2 currently EVENT1 and EVENT2 will be measured and then when the metric is reported EVENT1 or EVENT2 will be printed depending on the value from smt_on() during the expr parsing. Computing both events is unnecessary and can lead to

[PATCH net-next v2 1/2] lockdep: Introduce in_softirq lockdep assert

2020-11-20 Thread Yunsheng Lin
The current semantic for napi_consume_skb() is that caller need to provide non-zero budget when calling from NAPI context, and breaking this semantic will cause hard to debug problem, because _kfree_skb_defer() need to run in atomic context in order to push the skb to the particular cpu'

[PATCH net-next v2 0/2] Add an assert in napi_consume_skb()

2020-11-20 Thread Yunsheng Lin
This patch introduces a lockdep_assert_in_softirq() interface and uses it to assert the case when napi_consume_skb() is not called in the softirq context. Changelog: V2: Use lockdep instead of one-off Kconfig knob Yunsheng Lin (2): lockdep: Introduce in_softirq lockdep assert net: Use

[PATCH net-next v2 2/2] net: Use lockdep_assert_in_softirq() in napi_consume_skb()

2020-11-20 Thread Yunsheng Lin
Use napi_consume_skb() to assert the case when it is not called in a atomic softirq context. Signed-off-by: Yunsheng Lin --- net/core/skbuff.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/core/skbuff.c b/net/core/skbuff.c index ffe3dcc..effa19d 100644 --- a/net/core/skbuff.c +++

Re: [PATCH v5 1/1] lib/vsprintf: Add support for printing V4L2 and DRM fourccs

2020-11-20 Thread Sergey Senozhatsky
On (20/11/20 16:57), Petr Mladek wrote: > On Fri 2020-11-13 12:54:41, Sakari Ailus wrote: > > Add a printk modifier %p4cc (for pixel format) for printing V4L2 and DRM > > pixel formats denoted by fourccs. The fourcc encoding is the same for both > > so the same implementation can be used. > > > >

[PATCH v2 2/3] remoteproc: Introduce deny_sysfs_ops flag

2020-11-20 Thread Suman Anna
The remoteproc framework provides sysfs interfaces for changing the firmware name and for starting/stopping a remote processor through the sysfs files 'state' and 'firmware'. The 'recovery' sysfs file can also be used similarly to control the error recovery state machine of a remoteproc. These

[PATCH v2 0/3] remoteproc sysfs fixes/improvements

2020-11-20 Thread Suman Anna
Hi All, This is a refresh of the unaccepted patches from an old series [1]. Patches 2 and 3 from that series were merged and these are rebased and revised versions of the same patches. I had forgotten about these patches, and am resurrecting these again. Patches are on top of latest 5.10-rc4.

[PATCH v2 3/3] remoteproc: wkup_m3: Set deny_sysfs_ops flag

2020-11-20 Thread Suman Anna
The Wakeup M3 remote processor is controlled by the wkup_m3_ipc client driver, so set the newly introduced 'deny_sysfs_ops' flag to not allow any overriding of the remoteproc firmware or state from userspace. Signed-off-by: Suman Anna --- v2: rebased version, no code changes, patch title

[PATCH v2 1/3] remoteproc: Fix unbalanced boot with sysfs for no auto-boot rprocs

2020-11-20 Thread Suman Anna
The remoteproc core performs automatic boot and shutdown of a remote processor during rproc_add() and rproc_del() for remote processors supporting 'auto-boot'. The remoteproc devices not using 'auto-boot' require either a remoteproc client driver or a userspace client to use the sysfs 'state'

Re: [GIT PULL] io_uring fixes for 5.10-rc

2020-11-20 Thread Jens Axboe
On 11/20/20 7:41 PM, Jens Axboe wrote: > On 11/20/20 5:23 PM, Linus Torvalds wrote: >> On Fri, Nov 20, 2020 at 1:36 PM Jens Axboe wrote: >>> >>> I don't disagree with you on that. I've been a bit gun shy on touching >>> the VFS side of things, but this one isn't too bad. I hacked up a patch >>>

Re: [PATCH net-next 0/3] net: ipa: platform-specific clock and interconnect rates

2020-11-20 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (refs/heads/master): On Thu, 19 Nov 2020 16:40:38 -0600 you wrote: > This series changes the way the IPA core clock rate and the > bandwidth parameters for interconnects are specified. Previously > these were specified with hard-wired

Re: [PATCH net-next 0/6] net: ipa: add a driver shutdown callback

2020-11-20 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (refs/heads/master): On Thu, 19 Nov 2020 16:49:23 -0600 you wrote: > The final patch in this series adds a driver shutdown callback for > the IPA driver. The patches leading up to that address some issues > encountered while ensuring that

Re: [PATCH bpf-next v7 32/34] bpf: eliminate rlimit-based memory accounting infra for bpf maps

2020-11-20 Thread Roman Gushchin
On Fri, Nov 20, 2020 at 06:52:27PM -0800, Alexei Starovoitov wrote: > On Thu, Nov 19, 2020 at 09:37:52AM -0800, Roman Gushchin wrote: > > static void bpf_map_put_uref(struct bpf_map *map) > > @@ -619,7 +562,7 @@ static void bpf_map_show_fdinfo(struct seq_file *m, > > struct file *filp) > >

Re: [PATCH v2 00/10] Broadcom b53 YAML bindings

2020-11-20 Thread Florian Fainelli
On 11/11/2020 8:50 PM, Florian Fainelli wrote: > Hi, > > This patch series fixes the various Broadcom SoCs DTS files and the > existing YAML binding for missing properties before adding a proper b53 > switch YAML binding from Kurt. > > If this all looks good, given that there are quite a few

Re: [PATCH bpf-next v7 32/34] bpf: eliminate rlimit-based memory accounting infra for bpf maps

2020-11-20 Thread Alexei Starovoitov
On Thu, Nov 19, 2020 at 09:37:52AM -0800, Roman Gushchin wrote: > static void bpf_map_put_uref(struct bpf_map *map) > @@ -619,7 +562,7 @@ static void bpf_map_show_fdinfo(struct seq_file *m, > struct file *filp) > "value_size:\t%u\n" > "max_entries:\t%u\n" >

Re: [linux-sunxi] Re: [PATCH 3/3] arm64: allwinner: dts: a64: add DT for PineTab developer sample

2020-11-20 Thread Samuel Holland
Maxime, On 11/20/20 5:30 PM, Icenowy Zheng wrote: >>> +/ { >>> + model = "PineTab Developer Sample"; >>> + compatible = "pine64,pinetab-dev", "allwinner,sun50i-a64"; >>> +}; >> >> Changing the DT and the compatible half-way through it isn't ok. Please >>

  1   2   3   4   5   6   7   8   9   10   >