Re: [PATCH 5/5] clk: vc5: optionally configure the output drive mode

2020-07-06 Thread Adam Ford
configured and the drive mode will be the chip default. > > Signed-off-by: Luca Ceresoli This might be duplicating what's been applied to linux-next already. https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/drivers/clk/clk-ver

Re: [PATCH] bpf: lsm: Disable or enable BPF LSM at boot time

2020-07-06 Thread Lorenzo Fontana
On Mon, Jul 06, 2020 at 08:59:13PM +0200, KP Singh wrote: > On Mon, Jul 6, 2020 at 8:51 PM Daniel Borkmann wrote: > > > > On 7/6/20 6:57 PM, Lorenzo Fontana wrote: > > > This option adds a kernel parameter 'bpf_lsm', > > > which allows the BPF LSM to be disabled at boot. > > > The purpose of this

Re: [PATCH] platform/chrome: cros_ec_proto: Convert EC error codes to Linux error codes

2020-07-06 Thread Prashant Malani
On Mon, Jul 6, 2020 at 12:41 PM Guenter Roeck wrote: > > On Mon, Jul 06, 2020 at 11:52:30AM -0700, Prashant Malani wrote: > > Hi Guenter, > > > > On Sat, Jul 04, 2020 at 07:26:07AM -0700, Guenter Roeck wrote: > > > The EC reports a variety of error codes. Most of those, with the exception > > > of

Re: [PATCH] net: sfp: Unique GPIO interrupt names

2020-07-06 Thread Andrew Lunn
On Mon, Jul 06, 2020 at 12:38:37PM -0700, Chris Healy wrote: > Dynamically generate a unique GPIO interrupt name, based on the > device name and the GPIO name. For example: > > 103: 0 sx1503q 12 Edge sff2-los > 104: 0 sx1503q 13 Edge sff3-los > > The sffX indica

Re: [PATCH bpf v2] restore behaviour of CAP_SYS_ADMIN allowing the loading of networking bpf programs

2020-07-06 Thread John Stultz
On Tue, Jun 23, 2020 at 5:54 PM Alexei Starovoitov wrote: > On Mon, Jun 22, 2020 at 12:44 PM John Stultz wrote: > > On Sat, Jun 20, 2020 at 2:26 PM Maciej Żenczykowski > > wrote: > > > From: Maciej Żenczykowski > > > > > > This is a fix for a regression introduced in 5.8-rc1 by: > > > commit

Re: [PATCH v4] selftests: tpm: upgrade TPM2 tests from Python 2 to Python 3

2020-07-06 Thread Shuah Khan
On 7/2/20 7:20 PM, Pengfei Xu wrote: Thanks a lot Jarkko and Shuah! BR. Thanks! On 2020-07-02 at 15:32:49 -0600, Shuah Khan wrote: On 7/2/20 1:44 PM, Jarkko Sakkinen wrote: On Fri, Jun 26, 2020 at 11:40:52AM +0800, Pengfei Xu wrote: Python 2 is no longer supported by the Python upstream proj

Re: [PATCH bpf v2] restore behaviour of CAP_SYS_ADMIN allowing the loading of networking bpf programs

2020-07-06 Thread Daniel Borkmann
On 7/6/20 10:11 PM, John Stultz wrote: On Tue, Jun 23, 2020 at 5:54 PM Alexei Starovoitov wrote: On Mon, Jun 22, 2020 at 12:44 PM John Stultz wrote: On Sat, Jun 20, 2020 at 2:26 PM Maciej Żenczykowski wrote: From: Maciej Żenczykowski This is a fix for a regression introduced in 5.8-rc1 by

[PATCH v6 7/7] selftests/seccomp: Test SECCOMP_IOCTL_NOTIF_ADDFD

2020-07-06 Thread Kees Cook
From: Sargun Dhillon Test whether we can add file descriptors in response to notifications. This injects the file descriptors via notifications, and then uses kcmp to determine whether or not it has been successful. It also includes some basic sanity checking for arguments. Signed-off-by: Sargu

[PATCH v6 6/7] seccomp: Introduce addfd ioctl to seccomp user notifier

2020-07-06 Thread Kees Cook
From: Sargun Dhillon This adds a seccomp notifier ioctl which allows for the listener to "add" file descriptors to a process which originated a seccomp user notification. This allows calls like mount, and mknod to be "implemented", as the return value, and the arguments are data in memory. On the

[PATCH v6 3/7] fs: Add receive_fd() wrapper for __receive_fd()

2020-07-06 Thread Kees Cook
For both pidfd and seccomp, the __user pointer is not used. Update __receive_fd() to make writing to ufd optional via a NULL check. However, for the receive_fd_user() wrapper, ufd is NULL checked so an -EFAULT can be returned to avoid changing the SCM_RIGHTS interface behavior. Add new wrapper rece

[PATCH v6 5/7] fs: Expand __receive_fd() to accept existing fd

2020-07-06 Thread Kees Cook
Expand __receive_fd() with support for replace_fd() for the coming seccomp "addfd" ioctl(). Add new wrapper receive_fd_replace() for the new behavior and update existing wrappers to retain old behavior. Thanks to Colin Ian King for pointing out an uninitialized variable exposure in an earlier ver

[PATCH v6 0/7] Add seccomp notifier ioctl that enables adding fds

2020-07-06 Thread Kees Cook
Hello! v6: - fix missing fput() - API name change: s/fd_install_received/receive_fd/ v5: https://lore.kernel.org/lkml/20200617220327.3731559-1-keesc...@chromium.org/ This continues the thread-merge between [1] and [2]. tl;dr: add a way for a seccomp user_notif process manager to inject files into

[PATCH v6 4/7] pidfd: Replace open-coded partial receive_fd()

2020-07-06 Thread Kees Cook
The sock counting (sock_update_netprioidx() and sock_update_classid()) was missing from pidfd's implementation of received fd installation. Replace the open-coded version with a call to the new receive_fd() helper. Thanks to Vamshi K Sthambamkadi for catching a missed fput() in an earlier version

[PATCH v6 2/7] fs: Move __scm_install_fd() to __receive_fd()

2020-07-06 Thread Kees Cook
In preparation for users of the "install a received file" logic outside of net/ (pidfd and seccomp), relocate and rename __scm_install_fd() from net/core/scm.c to __receive_fd() in fs/file.c, and provide a wrapper named receive_fd_user(), as future patches will change the interface to __receive_fd(

Re: [PATCH v2 0/8] selftests/harness: Switch to TAP output

2020-07-06 Thread Kees Cook
On Mon, Jul 06, 2020 at 01:57:19PM -0600, Shuah Khan wrote: > I will pull them in today. OSS+ELC set me back with getting ready for Thanks! > the talks and presenting. July 4th holiday didn't help. Heh, yeah, I'm in the same boat. :) -- Kees Cook

[PATCH v6 1/7] net/scm: Regularize compat handling of scm_detach_fds()

2020-07-06 Thread Kees Cook
Duplicate the cleanups from commit 2618d530dd8b ("net/scm: cleanup scm_detach_fds") into the compat code. Move the check added in commit 1f466e1f15cf ("net: cleanly handle kernel vs user buffers for ->msg_control") to before the compat call, even though it should be impossible for an in-kernel cal

Re: [PATCH net-next 0/9] net: qed/qede: W=1 C=1 warnings cleanup

2020-07-06 Thread David Miller
From: Alexander Lobakin Date: Mon, 6 Jul 2020 18:38:12 +0300 > This set cleans qed/qede build log under W=1 C=1 with GCC 8 and > sparse 0.6.2. The only thing left is "context imbalance -- unexpected > unlock" in one of the source files, which will be issued later during > the refactoring cycles.

Re: [PATCH v2 2/3] x86, sched: Bail out of frequency invariance if turbo frequency is unknown

2020-07-06 Thread Ira Weiny
On Mon, Jun 01, 2020 at 04:34:18PM -0700, Ricardo Neri wrote: > On Sun, May 31, 2020 at 08:24:52PM +0200, Giovanni Gherdovich wrote: > > There may be CPUs that support turbo boost but don't declare any turbo > > ratio, i.e. their MSR_TURBO_RATIO_LIMIT is all zeroes. In that condition > > scale-inva

Re: [PATCH] MIPS: CI20: DTS: Correcting IW8103 Wifi binding

2020-07-06 Thread Alexandre GRIVEAUX
Le 06/07/2020 à 13:15, H. Nikolaus Schaller a écrit : > Hi Alexandre, > >> Am 05.07.2020 um 12:32 schrieb agrive...@deutnet.info: >> >> From: Alexandre GRIVEAUX >> >> Use brcm,bcm4329-fmac instead of brcm,bcm4330-fmac. >> >> Signed-off-by: Alexandre GRIVEAUX >> --- >> arch/mips/boot/dts/ingenic/c

Re: [PATCH] Replace HTTP links with HTTPS ones: IPv*

2020-07-06 Thread David Miller
From: "Alexander A. Klimov" Date: Mon, 6 Jul 2020 19:38:50 +0200 > Rationale: > Reduces attack surface on kernel devs opening the links for MITM > as HTTPS traffic is much harder to manipulate. > > Deterministic algorithm: > For each file: > If not .svg: > For each line: > If doesn'

Re: [PATCH v2] pinctrl: qcom: sc7180: Make gpio28 non wakeup capable for google,lazor

2020-07-06 Thread Doug Anderson
Hi, On Fri, Jul 3, 2020 at 12:49 AM Rajendra Nayak wrote: > > The PDC irqchip driver currently does not handle dual-edge interrupts, > and we have google,lazor board with sc7180 designed to configure gpio28 > as a dual-edge interrupt. This interrupt is however not expected to be > wakeup capable

Re: [PATCH] Replace HTTP links with HTTPS ones: QNX4

2020-07-06 Thread Anders Larsen
On Monday, 2020-07-06 19:39 Alexander A. Klimov wrote: > Rationale: > Reduces attack surface on kernel devs opening the links for MITM > as HTTPS traffic is much harder to manipulate. > > Deterministic algorithm: > For each file: > If not .svg: > For each line: > If doesn't contain `\b

[RFC PATCH 1/3] Revert: "hugetlbfs: Use i_mmap_rwsem to address page fault/truncate race"

2020-07-06 Thread Mike Kravetz
This reverts 87bf91d39bb52b688fb411d668fbe7df278b29ae Commit 87bf91d39bb5 depends on i_mmap_rwsem being taken during hugetlb fault processing. Commit c0d0381ade79 added code to take i_mmap_rwsem in read mode during fault processing. However, this was observed to increase fault processing time by

[RFC PATCH 2/3] hugetlbfs: Only take i_mmap_rwsem when sharing is possible

2020-07-06 Thread Mike Kravetz
Commit c0d0381ade79 added code to take i_mmap_rwsem in read mode during fault processing. However, this was observed to increase fault processing time by aprox 33%. Technically, i_mmap_rwsem only needs to be held when pmd sharing is possible. pmd sharing depends on mapping flags, alignment and s

[RFC PATCH 0/3] hugetlbfs: address fault time regression

2020-07-06 Thread Mike Kravetz
Commits c0d0381ade79 and 87bf91d39bb5 changed the way huegtlb locking was performed to address BUGs. One specific change was to always take the i_mmap_rwsem in read mode during fault processing. One result of this change was a 33% regression for anon non-shared page faults [1]. Technically, i_mm

[RFC PATCH 3/3] huegtlbfs: handle page fault/truncate races

2020-07-06 Thread Mike Kravetz
A huegtlb page fault can race with page truncation. Make the code identifying and handling these races more robust. Page fault handling needs to back out pages added to page cache beyond file size (i_size). When backing out the page, take care to restore reserve map entries and counts as necess

Re: [PATCH tip/core/rcu 03/17] rcu/tree: Skip entry into the page allocator for PREEMPT_RT

2020-07-06 Thread Joel Fernandes
On Mon, Jul 06, 2020 at 09:55:57PM +0200, Uladzislau Rezki wrote: [...] > > > Another way of fixing it is just dropping the lock letting the page > > > allocator to do an allocation without our "upper/local" lock. I did a > > > proposal like that once upon a time, so maybe it is a time to highlight

Re: [PATCH] bpf: lsm: Disable or enable BPF LSM at boot time

2020-07-06 Thread KP Singh
On Mon, Jul 6, 2020 at 10:06 PM Lorenzo Fontana wrote: > > On Mon, Jul 06, 2020 at 08:59:13PM +0200, KP Singh wrote: > > On Mon, Jul 6, 2020 at 8:51 PM Daniel Borkmann wrote: > > > > > > On 7/6/20 6:57 PM, Lorenzo Fontana wrote: > > > > This option adds a kernel parameter 'bpf_lsm', > > > > which

Re: [PATCH 5/5] clk: vc5: optionally configure the output drive mode

2020-07-06 Thread Luca Ceresoli
Hi Adam, On 06/07/20 22:03, Adam Ford wrote: > On Thu, Jul 2, 2020 at 5:40 PM Luca Ceresoli wrote: >> >> The Versaclock chips can drive the output pins in several modes: LVDS, >> CMOS, LVPECL etc. Allow configuring the output mode from device tree. >> >> The configuration is optional. If not spec

Re: [PATCH v2] Security: Documentation: Replace deprecated :c:func: Usage

2020-07-06 Thread Jonathan Corbet
On Tue, 7 Jul 2020 00:19:56 +0530 Puranjay Mohan wrote: > Replace :c:func: with ``func()`` as the previous usage is deprecated. > Remove an extra ')' to fix broken cross reference. > > Signed-off-by: Puranjay Mohan > --- > V2: Remove ``quotes`` around function names > V1: Change the subject li

Re: [PATCH v4] selftests: tpm: upgrade TPM2 tests from Python 2 to Python 3

2020-07-06 Thread Shuah Khan
On 7/6/20 2:12 PM, Shuah Khan wrote: On 7/2/20 7:20 PM, Pengfei Xu wrote: Thanks a lot Jarkko and Shuah! BR. Thanks! On 2020-07-02 at 15:32:49 -0600, Shuah Khan wrote: On 7/2/20 1:44 PM, Jarkko Sakkinen wrote: On Fri, Jun 26, 2020 at 11:40:52AM +0800, Pengfei Xu wrote: Python 2 is no longer

Re: [PATCH bpf v2] restore behaviour of CAP_SYS_ADMIN allowing the loading of networking bpf programs

2020-07-06 Thread John Stultz
On Mon, Jul 6, 2020 at 1:15 PM Daniel Borkmann wrote: > On 7/6/20 10:11 PM, John Stultz wrote: > >Just wanted to follow up on this as I've not seen the regression fix > > land in 5.8-rc4 yet? Is it still pending, or did it fall through a > > gap? > > No, it's in DaveM's -net tree currently, wi

[PATCH V2] clk: vc5: Add memory check to prevent oops

2020-07-06 Thread Adam Ford
When getting the names of the child nodes, kasprintf is used to allocate memory which is used to create the string for the node name. Unfortunately, there is no memory check to determine if this allocation fails, it may cause an error when trying to get child node name. This patch will check if t

Re: [PATCH v2] pinctrl: qcom: sc7180: Make gpio28 non wakeup capable for google,lazor

2020-07-06 Thread Bjorn Andersson
On Mon 06 Jul 13:24 PDT 2020, Doug Anderson wrote: > Hi, > > On Fri, Jul 3, 2020 at 12:49 AM Rajendra Nayak wrote: > > > > The PDC irqchip driver currently does not handle dual-edge interrupts, > > and we have google,lazor board with sc7180 designed to configure gpio28 > > as a dual-edge interru

Re: [PATCH] net: sfp: Unique GPIO interrupt names

2020-07-06 Thread Russell King - ARM Linux admin
On Mon, Jul 06, 2020 at 12:38:37PM -0700, Chris Healy wrote: > Dynamically generate a unique GPIO interrupt name, based on the > device name and the GPIO name. For example: > > 103: 0 sx1503q 12 Edge sff2-los > 104: 0 sx1503q 13 Edge sff3-los > > The sffX indica

[RFC PATCH for 5.8 1/4] sched: Fix unreliable rseq cpu_id for new tasks

2020-07-06 Thread Mathieu Desnoyers
While integrating rseq into glibc and replacing glibc's sched_getcpu implementation with rseq, glibc's tests discovered an issue with incorrect __rseq_abi.cpu_id field value right after the first time a newly created process issues sched_setaffinity. For the records, it triggers after building gli

Re: [PATCH] Replace HTTP links with HTTPS ones: IPv*

2020-07-06 Thread Alexander A. Klimov
Am 06.07.20 um 22:23 schrieb David Miller: From: "Alexander A. Klimov" Date: Mon, 6 Jul 2020 19:38:50 +0200 Rationale: Reduces attack surface on kernel devs opening the links for MITM as HTTPS traffic is much harder to manipulate. Deterministic algorithm: For each file: If not .svg:

[RFC PATCH for 5.8 4/4] rseq: selftests: Expect reliable cpu_id field

2020-07-06 Thread Mathieu Desnoyers
The rseq selftests should discover whether the kernel implements the RSEQ_FLAG_RELIABLE_CPU_ID flag, which indicates that the __rseq_abi.cpu_id field is reliable. Signed-off-by: Mathieu Desnoyers Cc: Shuah Khan Cc: Peter Zijlstra (Intel) Cc: Thomas Gleixner Cc: Florian Weimer Cc: "Paul E. McK

[RFC PATCH for 5.8 2/4] rseq: Introduce RSEQ_FLAG_REGISTER

2020-07-06 Thread Mathieu Desnoyers
Introduce RSEQ_FLAG_REGISTER with the same behavior as the flag value "0". The main advantage of introducing this flag as a non-zero (1 << 1) value is that it can be combined with other flags to register and check for features with a single system call. Considering that this system call needs to be

[RFC PATCH for 5.8 3/4] rseq: Introduce RSEQ_FLAG_RELIABLE_CPU_ID

2020-07-06 Thread Mathieu Desnoyers
commit 93b585c08d16 ("Fix: sched: unreliable rseq cpu_id for new tasks") addresses an issue with cpu_id field of newly created processes. Expose a flag which can be used by user-space to query whether the kernel implements this fix. Considering that this issue can cause corruption of user-space pe

[RFC PATCH for 5.8 0/4] rseq cpu_id ABI fix

2020-07-06 Thread Mathieu Desnoyers
Hi, Recent integration of rseq into glibc unearthed an issue with inaccurate cpu_id field for newly created tasks. This series includes a fix for the underlying issue (meant to be backported to stable), as well as new rseq flags to let user-space know that the kernel implements this fix, so glibc

[PATCH] Replace HTTP links with HTTPS ones: X.25 network layer

2020-07-06 Thread Alexander A. Klimov
Rationale: Reduces attack surface on kernel devs opening the links for MITM as HTTPS traffic is much harder to manipulate. Deterministic algorithm: For each file: If not .svg: For each line: If doesn't contain `\bxmlns\b`: For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:

[PATCH] Replace HTTP links with HTTPS ones: GRETH 10/100/1G Ethernet MAC device driver

2020-07-06 Thread Alexander A. Klimov
Rationale: Reduces attack surface on kernel devs opening the links for MITM as HTTPS traffic is much harder to manipulate. Deterministic algorithm: For each file: If not .svg: For each line: If doesn't contain `\bxmlns\b`: For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:

Re: [PATCH v3 04/20] lockdep: Add preemption enabled/disabled assertion APIs

2020-07-06 Thread Peter Zijlstra
On Tue, Jun 30, 2020 at 07:44:36AM +0200, Ahmed S. Darwish wrote: > diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug > index d74ac0fd6b2d..e5e2e632b749 100644 > --- a/lib/Kconfig.debug > +++ b/lib/Kconfig.debug > @@ -1118,6 +1118,7 @@ config PROVE_LOCKING > select DEBUG_RWSEMS > selec

[PATCH] Revert commit e918e570415c ("tpm_tis: Remove the HID IFX0102")

2020-07-06 Thread Jarkko Sakkinen
Removing IFX0102 from tpm_tis was not a right move because both tpm_tis and tpm_infineon use the same device ID. Revert the commit and add a remark about a bug caused by commit 93e1b7d42e1e ("[PATCH] tpm: add HID module parameter"). Fixes: e918e570415c ("tpm_tis: Remove the HID IFX0102") Reported-

Re: [PATCH v2 4/6] selftests: pidfd: do not use ksft_exit_skip after ksft_set_plan

2020-07-06 Thread Shuah Khan
On 6/24/20 12:21 AM, Paolo Bonzini wrote: On 23/06/20 22:44, Christian Brauner wrote: ret = sys_pidfd_send_signal(pidfd, 0, NULL, 0); if (ret < 0) { - if (errno == ENOSYS) - ksft_exit_skip( + if (errno == ENOSYS) { +

Re: [PATCH v3 5/7] iommu/vt-d: Fix devTLB flush for vSVA

2020-07-06 Thread Jacob Pan
On Thu, 2 Jul 2020 10:39:26 +0200 Auger Eric wrote: > Hi Jacob, Yi, > On 7/1/20 5:33 PM, Jacob Pan wrote: > > From: Liu Yi L > > > > For guest SVA usage, in order to optimize for less VMEXIT, guest > > request of IOTLB flush also includes device TLB. > > > > On the host side, IOMMU driver perf

Re: [PATCH v3 01/20] Documentation: locking: Describe seqlock design and usage

2020-07-06 Thread Peter Zijlstra
On Tue, Jun 30, 2020 at 07:44:33AM +0200, Ahmed S. Darwish wrote: > +Sequence counters (:c:type:`seqcount_t`) > + > +.. code-block:: c I so hate RST, of course it's C. Also, ISTR Jon saying you can leave that all out without issue.

Re: [PATCH v1] Bluetooth: Fix kernel oops triggered by hci_adv_monitors_clear()

2020-07-06 Thread Miao-chen Chou
Hi Marcel, In case you missed this thread, my suggestion is to revert the previous patch and apply this patch. Please see my earlier email for the reason. Thanks. Regards, Miao On Tue, Jun 30, 2020 at 2:55 PM Miao-chen Chou wrote: > > Hi Marcel, > > hci_unregister_dev() is invoked when the cont

Re: [PATCH tip/core/rcu 03/17] rcu/tree: Skip entry into the page allocator for PREEMPT_RT

2020-07-06 Thread Paul E. McKenney
On Thu, Jul 02, 2020 at 10:19:08PM +0200, Sebastian Andrzej Siewior wrote: > On 2020-07-02 09:48:26 [-0700], Paul E. McKenney wrote: > > On Thu, Jul 02, 2020 at 04:12:16PM +0200, Sebastian Andrzej Siewior wrote: > > > On 2020-06-30 11:35:34 [-0700], Paul E. McKenney wrote: > > > > > This is not goi

[PATCH v2 0/1] power: Emit change uevent when updating sysfs

2020-07-06 Thread Abhishek Pandit-Subedi
Hi linux-pm, ChromeOS has a udev rule to chown the `power/wakeup` attribute so that the power manager can modify it during runtime. (https://source.chromium.org/chromiumos/chromiumos/codesearch/+/master:src/platform2/power_manager/udev/99-powerd-permissions.rules) In our automated tests, we fo

[PATCH v2 1/1] power: Emit changed uevent on wakeup_sysfs_add/remove

2020-07-06 Thread Abhishek Pandit-Subedi
Udev rules that depend on the power/wakeup attribute don't get triggered correctly if device_set_wakeup_capable is called after the device is created. This can happen for several reasons (driver sets wakeup after device is created, wakeup is changed on parent device, etc) and it seems reasonable to

Re: [PATCH 2/3] Linux: Use rseq in sched_getcpu if available (v9)

2020-07-06 Thread Mathieu Desnoyers
- On Jul 6, 2020, at 2:11 PM, Florian Weimer fwei...@redhat.com wrote: > * Mathieu Desnoyers: > >> - On Jul 6, 2020, at 1:50 PM, Florian Weimer fwei...@redhat.com wrote: >> >>> * Mathieu Desnoyers: >>> Now we need to discuss how we introduce that fix in a way that will allow us

Re: [PATCH v3 01/20] Documentation: locking: Describe seqlock design and usage

2020-07-06 Thread Jonathan Corbet
On Mon, 6 Jul 2020 23:04:39 +0200 Peter Zijlstra wrote: > On Tue, Jun 30, 2020 at 07:44:33AM +0200, Ahmed S. Darwish wrote: > > +Sequence counters (:c:type:`seqcount_t`) > > + > > > +.. code-block:: c > > I so hate RST, of course it's C. Also, ISTR Jo

[RESEND v2] arm64: dts: imx8m: Add NOC nodes

2020-07-06 Thread Abel Vesa
From: Leonard Crestez Add nodes for the main interconnect of the imx8m series chips. These nodes are bound to by devfreq and interconnect drivers. Signed-off-by: Leonard Crestez Signed-off-by: Abel Vesa Tested-by: Martin Kepplinger Acked-by: Georgi Djakov --- Changes since v1: - picked up

Re: [PATCH v3 01/20] Documentation: locking: Describe seqlock design and usage

2020-07-06 Thread Peter Zijlstra
On Mon, Jul 06, 2020 at 11:04:39PM +0200, Peter Zijlstra wrote: > On Tue, Jun 30, 2020 at 07:44:33AM +0200, Ahmed S. Darwish wrote: > > +Sequence counters (:c:type:`seqcount_t`) > > + > > > +.. code-block:: c > > I so hate RST, of course it's C. Also, ISTR

Re: weird loadavg on idle machine post 5.7

2020-07-06 Thread Dave Jones
On Mon, Jul 06, 2020 at 04:59:52PM +0200, Peter Zijlstra wrote: > On Fri, Jul 03, 2020 at 04:51:53PM -0400, Dave Jones wrote: > > On Fri, Jul 03, 2020 at 12:40:33PM +0200, Peter Zijlstra wrote: > > > > looked promising the first few hours, but as soon as it hit four hours > > of uptime, load

Re: [PATCH v3 06/20] seqlock: Extend seqcount API with associated locks

2020-07-06 Thread Peter Zijlstra
On Tue, Jun 30, 2020 at 07:44:38AM +0200, Ahmed S. Darwish wrote: > +#include Why? why not include those lines directly here? Having it in a separate file actually makes it harder to read.

[PATCH net-next] net: systemport: Add support for VLAN transmit acceleration

2020-07-06 Thread Florian Fainelli
SYSTEMPORT is capable of performing VLAN transmit acceleration, support that by configuring it appropriately, providing the VLAN ID and PCP/DEI where necessary. Signed-off-by: Florian Fainelli --- drivers/net/ethernet/broadcom/bcmsysport.c | 37 -- 1 file changed, 34 insertio

Re: [PATCH] CodingStyle: Inclusive Terminology

2020-07-06 Thread Pavel Begunkov
On 04/07/2020 23:02, Dan Williams wrote: > Recent events have prompted a Linux position statement on inclusive > terminology. Given that Linux maintains a coding-style and its own > idiomatic set of terminology here is a proposal to answer the call to > replace non-inclusive terminology. > > Cc: J

Hello, Please

2020-07-06 Thread Mr. Scott Donald
-- Dear Friend, I'm Mr. Scott Donald a Successful business Man dealing with Exportation, I got your mail contact through search to let you know my Ugly Situation Am a dying Man here in Los Angeles California Hospital Bed in (USA), I Lost my Wife and my only Daughter for Covid-19 I'm dying with sa

Re: [PATCH 2/2] x86: Expose TSX Suspend Load Address Tracking

2020-07-06 Thread kernel test robot
Hi Cathy, Thank you for the patch! Yet something to improve: [auto build test ERROR on kvm/linux-next] [also build test ERROR on tip/auto-latest linux/master linus/master v5.8-rc4 next-20200706] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch

Re: [PATCH] Replace HTTP links with HTTPS ones: LKMM

2020-07-06 Thread Paul E. McKenney
On Mon, Jul 06, 2020 at 09:03:24PM +0200, Alexander A. Klimov wrote: > Rationale: > Reduces attack surface on kernel devs opening the links for MITM > as HTTPS traffic is much harder to manipulate. > > Deterministic algorithm: > For each file: > If not .svg: > For each line: > If doesn

Re: [PATCH 0/4] arm64: kgdb/kdb: Fix single-step debugging issues

2020-07-06 Thread Doug Anderson
Hi, On Tue, Jun 30, 2020 at 12:22 AM Will Deacon wrote: > > On Mon, Jun 29, 2020 at 02:20:11PM -0700, Doug Anderson wrote: > > On Sat, May 16, 2020 at 1:20 AM liwei (GF) wrote: > > > On 2020/5/14 8:34, Doug Anderson wrote: > > > > On Sat, May 9, 2020 at 6:49 AM Wei Li wrote: > > > >> > > > >> T

Re: [PATCH] platform/chrome: cros_ec_proto: Convert EC error codes to Linux error codes

2020-07-06 Thread Guenter Roeck
On 7/6/20 1:07 PM, Prashant Malani wrote: > On Mon, Jul 6, 2020 at 12:41 PM Guenter Roeck wrote: >> >> On Mon, Jul 06, 2020 at 11:52:30AM -0700, Prashant Malani wrote: >>> Hi Guenter, >>> >>> On Sat, Jul 04, 2020 at 07:26:07AM -0700, Guenter Roeck wrote: The EC reports a variety of error code

Re: [RFC PROPOSAL] memcg: per-memcg user space reclaim interface

2020-07-06 Thread Roman Gushchin
On Fri, Jul 03, 2020 at 09:27:19AM -0700, Shakeel Butt wrote: > On Fri, Jul 3, 2020 at 8:50 AM Roman Gushchin wrote: > > > > On Fri, Jul 03, 2020 at 07:23:14AM -0700, Shakeel Butt wrote: > > > On Thu, Jul 2, 2020 at 11:35 PM Michal Hocko wrote: > > > > > > > > On Thu 02-07-20 08:22:22, Shakeel Bu

Re: ptrace: seccomp: Return value when the call was already invalid

2020-07-06 Thread Kees Cook
On Mon, Jul 06, 2020 at 09:15:51AM +0100, Will Deacon wrote: > On Sat, Jul 04, 2020 at 09:56:50PM -0700, Kees Cook wrote: > > different per-architecture expectations). If I read this thread > > correctly, we need to test: > > > > syscall(-1), direct, returns ENOSYS > > syscall(-10), direc

Re: [GIT PULL] KVM changes for Linux 5.8-rc5

2020-07-06 Thread pr-tracker-bot
The pull request you sent on Mon, 6 Jul 2020 13:15:23 -0400: > https://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/bfe91da29bfad9941d5d703d45e29f0812a20724 Thank you! -- Deet-doot-dot, I am a bot. https://ko

Re: [PATCH] Revert commit e918e570415c ("tpm_tis: Remove the HID IFX0102")

2020-07-06 Thread Jerry Snitselaar
Jarkko Sakkinen @ 2020-07-06 13:53 MST: > Removing IFX0102 from tpm_tis was not a right move because both tpm_tis > and tpm_infineon use the same device ID. Revert the commit and add a > remark about a bug caused by commit 93e1b7d42e1e ("[PATCH] tpm: add HID > module parameter"). > > Fixes: e918

Re: [PATCH] mm/hugetlb: avoid hardcoding while checking if cma is reserved

2020-07-06 Thread Roman Gushchin
On Mon, Jul 06, 2020 at 08:44:05PM +1200, Barry Song wrote: Hello, Barry! > hugetlb_cma[0] can be NULL due to various reasons, for example, node0 has > no memory. Thus, NULL hugetlb_cma[0] doesn't necessarily mean cma is not > enabled. gigantic pages might have been reserved on other nodes. Just

[PATCH v2 09/12] media: rkvdec: Extract rkvdec_fill_decoded_pixfmt helper method

2020-07-06 Thread Jonas Karlman
This extract setting decoded pixfmt into a helper method, current code is replaced with a call to the new helper method. The helper method is also called from a new function in next patch. Signed-off-by: Jonas Karlman --- Changes in v2: - New patch --- drivers/staging/media/rkvdec/rkvdec.c | 29

[PATCH v2 10/12] media: rkvdec: Lock capture pixel format in s_ctrl and s_fmt

2020-07-06 Thread Jonas Karlman
Add an optional valid_fmt operation that should return the valid pixelformat of CAPTURE buffers. This is used in next patch to ensure correct pixelformat is used for 10-bit and 4:2:2 content. Signed-off-by: Jonas Karlman --- Changes in v2: - Reworked validation of pixelformat Limitations: - Onl

[PATCH v2 08/12] media: rkvdec: h264: Use bytesperline and buffer height to calculate stride

2020-07-06 Thread Jonas Karlman
Use bytesperline and buffer height to calculate the strides configured. This does not really change anything other than ensuring the bytesperline that is signaled to userspace matches what is configured in HW. Signed-off-by: Jonas Karlman --- Changes in v2: - Drop code refactoring --- drivers/s

[PATCH v2 07/12] media: v4l2: Add NV15 and NV20 pixel formats

2020-07-06 Thread Jonas Karlman
Add NV15 and NV20 pixel formats used by the Rockchip Video Decoder for 10-bit buffers. NV15 and NV20 is a packed 10-bit 4:2:0/4:2:2 semi-planar Y/CbCr format similar to P010 and P210 but has no padding between components. Instead, luminance and chrominance samples are grouped into 4s so that each

[PATCH v2 06/12] media: v4l2-common: Add helpers to calculate bytesperline and sizeimage

2020-07-06 Thread Jonas Karlman
Add helper functions to calculate plane bytesperline and sizeimage, these new helpers consider block width and height when calculating plane bytesperline and sizeimage. This prepare support for new pixel formats added in next patch that make use of block width and height. Signed-off-by: Jonas Kar

[PATCH v2 12/12] media: rkvdec: h264: Support profile and level controls

2020-07-06 Thread Jonas Karlman
The Rockchip Video Decoder used in RK3399 supports H.264 profiles from Baseline to High 4:2:2 up to Level 5.1, except for the Extended profile. Expose the V4L2_CID_MPEG_VIDEO_H264_PROFILE and the V4L2_CID_MPEG_VIDEO_H264_LEVEL control, so that userspace can query the driver for the list of support

[PATCH v2 11/12] media: rkvdec: h264: Support High 10 and 4:2:2 profiles

2020-07-06 Thread Jonas Karlman
Add support and enable decoding of H264 High 10 and 4:2:2 profiles. Decoded CAPTURE buffer width is aligned to 64 pixels to accommodate HW requirement on 10-bit format buffers. The new valid_fmt operation is implemented and return a valid pixelformat for the provided SPS control. Signed-off-by:

[PATCH v2 03/12] media: rkvdec: h264: Validate and use pic width and height in mbs

2020-07-06 Thread Jonas Karlman
The width and height in mbs is currently configured based on OUTPUT buffer resolution, this works for frame pictures but can cause issues for field pictures. When frame_mbs_only_flag is 0 the height in mbs should be height of the field instead of height of frame. Validate pic_width_in_mbs_minus1

[PATCH v2 05/12] media: rkvdec: h264: Do not override output buffer sizeimage

2020-07-06 Thread Jonas Karlman
The output buffer sizeimage is currently forced to 2 bytes per pixel, this can lead to high memory usage for 4K content when multiple output buffers is created by userspace. Do not override output buffer sizeimage and let userspace have control of output buffer sizeimage by only setting sizeimage

[PATCH v2 01/12] media: rkvdec: h264: Fix reference frame_num wrap for second field

2020-07-06 Thread Jonas Karlman
When decoding the second field in a complementary field pair the second field is sharing the same frame_num with the first field. Currently the frame_num for the first field is wrapped when it matches the field being decoded, this cause issues to decode the second field in a complementary field pa

[PATCH v2 04/12] media: rkvdec: h264: Fix bit depth wrap in pps packet

2020-07-06 Thread Jonas Karlman
The luma and chroma bit depth fields in the pps packet is 3 bits wide. 8 is wrongly added to the bit depth value written to these 3-bit fields. Because only the 3 LSB is written the hardware is configured correctly. Correct this by not adding 8 to the luma and chroma bit depth value. Signed-off-b

[PATCH v2 00/12] media: rkvdec: Add H.264 High 10 and 4:2:2 profile support

2020-07-06 Thread Jonas Karlman
This series contains minor fixes and adds H.264 High 10 and 4:2:2 profile support to the Rockchip Video Decoder driver. Patch 1 and 3 fixes two issues when decoding field encoded content. Patch 2 ensures CAPTURE buffer is same resolution or larger than OUTPUT buffer. Patch 5 allows userspace to s

[PATCH v2 02/12] media: rkvdec: Ensure decoded resolution fit coded resolution

2020-07-06 Thread Jonas Karlman
Ensure decoded CAPTURE buffer resolution is larger or equal to the coded OPTUPT buffer resolution. Signed-off-by: Jonas Karlman --- Changes in v2: - New patch --- drivers/staging/media/rkvdec/rkvdec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/media/rkvdec/rkvdec.c b/

linux-next: Signed-off-by missing for commits in the spi tree

2020-07-06 Thread Stephen Rothwell
Hi all, Commits 878d4d57a6e5 ("spi: spi-sun6i: sun6i_spi_transfer_one(): enable RF_RDY interrupt only if needed") 1e9ca016b623 ("spi: spi-sun6i: sun6i_spi_transfer_one(): collate write to Interrupt Control Register") 15254b028dd6 ("spi: spi-sun6i: sun6i_spi_fill_fifo(): remove not needed

Re: [PATCH v9 1/2] acpi: Extend TPM2 ACPI table with missing log fields

2020-07-06 Thread Jerry Snitselaar
Stefan Berger @ 2020-07-06 11:19 MST: > From: Stefan Berger > > Recent extensions of the TPM2 ACPI table added 3 more fields > including 12 bytes of start method specific parameters and Log Area > Minimum Length (u32) and Log Area Start Address (u64). So, we define > a new structure acpi_tpm2_p

[PATCH net-next v4 2/3] net: enetc: Initialize SerDes for SGMII and USXGMII protocols

2020-07-06 Thread Michael Walle
ENETC has ethernet MACs capable of SGMII, 2500BaseX and USXGMII. But in order to use these protocols some SerDes configurations need to be performed. The SerDes is configurable via an internal PCS PHY which is connected to an internal MDIO bus at address 0. This patch basically removes the depende

[PATCH net-next v4 1/3] net: dsa: felix: move USXGMII defines to common place

2020-07-06 Thread Michael Walle
The ENETC has the same PCS PHY and thus needs the same definitions. Move them into the common enetc_mdio.h header which has already the macros for the SGMII PCS. Signed-off-by: Michael Walle --- drivers/net/dsa/ocelot/felix_vsc9959.c | 21 - include/linux/fsl/enetc_mdio.h

[PATCH net-next v4 0/3] net: enetc: remove bootloader dependency

2020-07-06 Thread Michael Walle
This is a resend [now a new v4] of the series because the conversion to the phylink interface will likely take longer: https://lore.kernel.org/netdev/CA+h21hpBodyY8CtNH2ktRdc2FqPi=Fjp94=vvzvzsvbnvnf...@mail.gmail.com/ Also the discussion in the v3 resend doesn't look like it will be resolved soon :

[PATCH net-next v4 3/3] net: enetc: Use DT protocol information to set up the ports

2020-07-06 Thread Michael Walle
From: Alex Marginean Use DT information rather than in-band information from bootloader to set up MAC for XGMII. For RGMII use the DT indication in addition to RGMII defaults in hardware. However, this implies that PHY connection information needs to be extracted before netdevice creation, when t

Re: [PATCH v9 2/2] tpm: Add support for event log pointer found in TPM2 ACPI table

2020-07-06 Thread Jerry Snitselaar
Stefan Berger @ 2020-07-06 11:19 MST: > From: Stefan Berger > > In case a TPM2 is attached, search for a TPM2 ACPI table when trying > to get the event log from ACPI. If one is found, use it to get the > start and length of the log area. This allows non-UEFI systems, such > as SeaBIOS, to pass

Re: [RESEND Patch v2 0/4] mm/mremap: cleanup move_page_tables() a little

2020-07-06 Thread Wei Yang
On Mon, Jul 06, 2020 at 01:08:19PM +0300, Kirill A. Shutemov wrote: >On Fri, Jun 26, 2020 at 09:52:12PM +0800, Wei Yang wrote: >> move_page_tables() tries to move page table by PMD or PTE. >> >> The root reason is if it tries to move PMD, both old and new range should be >> PMD aligned. But curren

Re: [PATCH v3] rtc: rtc-ds1374: wdt: Use watchdog core for watchdog part

2020-07-06 Thread Guenter Roeck
On Mon, Jul 06, 2020 at 07:24:25AM +, Johnson CH Chen (���L��) wrote: > Let ds1374 watchdog use watchdog core functions. It also includes > improving watchdog timer setting and nowayout, and just uses ioctl() > of watchdog core. > > Signed-off-by: Johnson Chen > Reported-by: kernel test robot

[PATCH v2 1/1] hwmon:max6697: Allow max6581 to create tempX_offset

2020-07-06 Thread Chu Lin
--- drivers/hwmon/max6697.c | 100 ++-- 1 file changed, 96 insertions(+), 4 deletions(-) diff --git a/drivers/hwmon/max6697.c b/drivers/hwmon/max6697.c index 64122eb38060..8c814c544116 100644 --- a/drivers/hwmon/max6697.c +++ b/drivers/hwmon/max6697.c @@ -57,6

[PATCH v2 0/1] hwmon:max6697: Allow max6581 to create tempX_offset

2020-07-06 Thread Chu Lin
Per max6581, reg 4d and reg 4e is used for temperature read offset. This patch will let the user specify the temperature read offset for max6581. This patch is tested on max6581 and only applies to max6581. Testing: echo 16250 > temp2_offset cat temp2_offset 16250 echo 17500 > temp3_offset cat te

Re: [Tech-board-discuss] [PATCH] CodingStyle: Inclusive Terminology

2020-07-06 Thread Steven Rostedt
On Tue, 7 Jul 2020 00:31:49 +0300 Pavel Begunkov wrote: > > diff --git a/Documentation/process/coding-style.rst > > b/Documentation/process/coding-style.rst > > index 2657a55c6f12..4b15ab671089 100644 > > --- a/Documentation/process/coding-style.rst > > +++ b/Documentation/process/coding-style.rs

Re: [PATCH 0/2][RFC] Makes sd->flags sysctl writable

2020-07-06 Thread Valentin Schneider
On 06/07/20 21:00, Peter Zijlstra wrote: > On Tue, Jul 07, 2020 at 03:36:13AM +0800, Chen Yu wrote: >> It was found that recently the flags of sched domain could >> not be customized via sysctl, which might make it a little >> inconenient for performance tuning/debugging. > > What specific goals

RE: [PATCH] mm/hugetlb: avoid hardcoding while checking if cma is reserved

2020-07-06 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Roman Gushchin [mailto:g...@fb.com] > Sent: Tuesday, July 7, 2020 9:48 AM > To: Song Bao Hua (Barry Song) > Cc: a...@linux-foundation.org; linux...@kvack.org; > linux-kernel@vger.kernel.org; Linuxarm ; Mike > Kravetz ; Jonathan Cameron > > Subject: Re: [PAT

Re: [PATCH] platform/chrome: cros_ec_typec: USB4 support

2020-07-06 Thread Prashant Malani
Hi Heikki, On Fri, Jul 03, 2020 at 11:17:03AM +0300, Heikki Krogerus wrote: > With USB4 mode the mux driver needs the Enter_USB Data > Object (EUDO) that was used when the USB mode was entered. > Though the object is not available in the driver, it is > possible to construct it from the informatio

Re: [PATCH v2 1/7] PCI: Keep the ACS capability offset in device

2020-07-06 Thread Rajat Jain
Hi Bjorn, Thanks for taking a look. On Mon, Jul 6, 2020 at 8:58 AM Bjorn Helgaas wrote: > > On Mon, Jun 29, 2020 at 09:49:37PM -0700, Rajat Jain wrote: > > Currently this is being looked up at a number of places. Read and store it > > once at bootup so that it can be used by all later. > > Write

Re: [PATCH bpf-next V2 2/2] selftests/bpf: test_progs avoid minus shell exit codes

2020-07-06 Thread Andrii Nakryiko
On Mon, Jul 6, 2020 at 10:00 AM Jesper Dangaard Brouer wrote: > > There are a number of places in test_progs that use minus-1 as the argument > to exit(). This improper use as a process exit status is masked to be a > number between 0 and 255 as defined in man exit(3). nit: I wouldn't call it imp

<    4   5   6   7   8   9   10   11   12   13   >