[PATCH 1/3] dt-bindings: riscv: Add DT documentation for SiFive Bus Error Unit

2020-11-12 Thread Yash Shah
Add DT json-schema for SiFive Bus Error unit present in FU740-C000 chip Signed-off-by: Yash Shah --- .../devicetree/bindings/riscv/sifive-beu.yaml | 47 ++ 1 file changed, 47 insertions(+) create mode 100644 Documentation/devicetree/bindings/riscv/sifive-beu.yaml diff

[PATCH v3 0/5] console: Miscellaneous clean-ups, do not use FNTCHARCNT() in fbcon.c

2020-11-12 Thread Peilin Ye
Hi all, This is a collection of some miscellaneous clean-ups for fbcon and some console drivers. Since v2, I rebased them on linux-next, added some Reviewed-by: tags from Daniel and Greg, and rewrote the commit messages as suggested by Jiri. See [1] for v2 links. It does the following: - Garba

Re: [PATCH] MIPS: Loongson64: Add read_persistent_clock64()

2020-11-12 Thread Tiezhu Yang
On 11/12/2020 06:09 PM, Jiaxun Yang wrote: 在 2020/11/12 18:04, Jiaxun Yang 写道: Hi Tiezhu, 在 2020/11/12 16:29, Tiezhu Yang 写道: Add read_persistent_clock64() to read the time from the battery backed persistent clock. With this patch, we can fix the wrong time issue due to the system clock is n

[PATCH 1/5] console: Delete unused con_font_copy() callback implementations

2020-11-12 Thread Peilin Ye
Recently in commit 3c4e0dff2095 ("vt: Disable KD_FONT_OP_COPY") we disabled the KD_FONT_OP_COPY ioctl() option. Delete all the con_font_copy() callbacks, since we no longer use them. Mark KD_FONT_OP_COPY as "obsolete" in include/uapi/linux/kd.h, just like what we have done for PPPIOCDETACH in comm

[PATCH v3 2/5] console: Delete dummy con_font_set() and con_font_default() callback implementations

2020-11-12 Thread Peilin Ye
.con_font_set and .con_font_default callbacks should not pass `struct console_font *` as a parameter, since `struct console_font` is a UAPI structure. We are trying to let them use our new kernel font descriptor, `struct font_desc` instead. To make that work slightly easier, first delete all of th

Re: [PATCH] ARM: tegra: Populate OPP table for Tegra20 Ventana

2020-11-12 Thread Dmitry Osipenko
11.11.2020 13:38, Jon Hunter пишет: > Commit 9ce274630495 ("cpufreq: tegra20: Use generic cpufreq-dt driver > (Tegra30 supported now)") update the Tegra20 CPUFREQ driver to use the > generic CPUFREQ device-tree driver. Since this change CPUFREQ support > on the Tegra20 Ventana platform has been bro

[PATCH net-next 1/2] net: ipa: fix source packet contexts limit

2020-11-12 Thread Alex Elder
I have discovered that the maximum number of source packet contexts configured for SDM845 is incorrect. Fix this error. Signed-off-by: Alex Elder --- drivers/net/ipa/ipa_data-sdm845.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ipa/ipa_data-sdm845.c b/dr

Re: [RFC PATCH v3] sched/fair: select idle cpu from idle cpumask for task wakeup

2020-11-12 Thread Li, Aubrey
On 2020/11/12 18:57, Qais Yousef wrote: > On 10/21/20 23:03, Aubrey Li wrote: >> From: Aubrey Li >> >> Added idle cpumask to track idle cpus in sched domain. When a CPU >> enters idle, its corresponding bit in the idle cpumask will be set, >> and when the CPU exits idle, its bit will be cleared. >

[PATCH net-next 0/2] net: ipa: two fixes

2020-11-12 Thread Alex Elder
This small series makes two fixes to the IPA code: - While reviewing something else I found that one of the resource limits on the SDM845 used the wrong value. The first patch fixes this. The correct value allocates more resources of this type for IPA to use, and otherwise does not

Re: [PATCH 3/5] media: Rename stateful codec control macros

2020-11-12 Thread Hans Verkuil
On 12/11/2020 12:57, Ezequiel Garcia wrote: > For historical reasons, stateful codec controls are named > as {}_MPEG_{}. While we can't at this point sanely > change all control IDs (such as V4L2_CID_MPEG_VIDEO_VP8_FRAME_HEADER), > we can least change the more meaningful macros such as classes > ma

[PATCH v3 3/5] Fonts: Add charcount field to font_desc

2020-11-12 Thread Peilin Ye
Subsystems are hard-coding the number of characters of our built-in fonts as 256. Include that information in our kernel font descriptor, `struct font_desc`. Signed-off-by: Peilin Ye Reviewed-by: Daniel Vetter --- v2: https://lore.kernel.org/lkml/20201028060533.1206307-1-yepeilin...@gmail.com/

[PATCH v3 4/5] parisc/sticore: Avoid hard-coding built-in font charcount

2020-11-12 Thread Peilin Ye
sti_select_fbfont() and sti_cook_fonts() are hard-coding the number of characters of our built-in fonts as 256. Recently, we included that information in our kernel font descriptor `struct font_desc`, so use `fbfont->charcount` instead of hard-coded values. Depends on patch "Fonts: Add charcount f

[PATCH v3 RFC 5/5] fbcon: Avoid using FNTCHARCNT() and hard-coded built-in font charcount

2020-11-12 Thread Peilin Ye
For user-provided fonts, the framebuffer layer is using a magic negative-indexing macro, FNTCHARCNT(), to keep track of their number of characters: #define FNTCHARCNT(fd) (((int *)(fd))[-3]) For built-in fonts, it is using hard-coded values (256). This results in something like the follo

Re: [RFC PATCH] ceph: fix cross quota realms renames with new truncated files

2020-11-12 Thread Jeff Layton
On Thu, 2020-11-12 at 10:40 +, Luis Henriques wrote: > Jeff Layton writes: > > > On Wed, 2020-11-11 at 18:28 +, Luis Henriques wrote: > > > Jeff Layton writes: > > > > > > > On Wed, 2020-11-11 at 15:39 +, Luis Henriques wrote: > > > > > When doing a rename across quota realms, there

Re: [PATCH] sched/fair: Fix overutilized update in enqueue_task_fair()

2020-11-12 Thread Vincent Guittot
On Thu, 12 Nov 2020 at 12:12, Quentin Perret wrote: > > enqueue_task_fair() attempts to skip the overutilized update for new > tasks as their util_avg is not accurate yet. However, the flag we check > to do so is overwritten earlier on in the function, which makes the > condition pretty much a nop

[PATCH net-next 2/2] net: ipa: ignore the microcontroller log event

2020-11-12 Thread Alex Elder
The IPA-resident microcontroller has the ability to log various activity in an area of IPA shared memory. When the microcontroller starts it generates an event to the AP to provide information about the log. We don't support reading this log, and we can safely ignore the event. So do that rather

Re: [PATCH v21 17/19] mm/lru: replace pgdat lru_lock with lruvec lock

2020-11-12 Thread Vlastimil Babka
On 11/5/20 9:55 AM, Alex Shi wrote: This patch moves per node lru_lock into lruvec, thus bring a lru_lock for each of memcg per node. So on a large machine, each of memcg don't have to suffer from per node pgdat->lru_lock competition. They could go fast with their self lru_lock. After move memcg

RE: [PATCH 05/15] input: touchscreen: imx6ul_tsc: Remove set but unused variable 'value'

2020-11-12 Thread Bough Chen
> -Original Message- > From: Lee Jones [mailto:lee.jo...@linaro.org] > Sent: 2020年11月12日 19:02 > To: lee.jo...@linaro.org > Cc: linux-kernel@vger.kernel.org; Dmitry Torokhov > ; Shawn Guo ; Sascha > Hauer ; Pengutronix Kernel Team > ; Fabio Estevam ; > dl-linux-imx ; Haibo Chen ; > linux-in

Re: [PATCH] ceph: fix race in concurrent __ceph_remove_cap invocations

2020-11-12 Thread Jeff Layton
On Thu, 2020-11-12 at 10:45 +, Luis Henriques wrote: > A NULL pointer dereference may occur in __ceph_remove_cap with some of the > callbacks used in ceph_iterate_session_caps, namely trim_caps_cb and > remove_session_caps_cb. These aren't protected against the concurrent > execution of __ceph

Re: [PATCH v2 02/17] x86/hyperv: detect if Linux is the root partition

2020-11-12 Thread Wei Liu
On Thu, Nov 12, 2020 at 11:46:41AM +, Wei Liu wrote: > On Thu, Nov 12, 2020 at 11:42:15AM +, Wei Liu wrote: > > On Fri, Nov 06, 2020 at 03:16:07AM +0800, kernel test robot wrote: > > > Hi Wei, > > > > > > I love your patch! Yet something to improve: > > > > > > [auto build test ERROR on t

Re: [PATCH 06/25] soc: ti: knav_qmss_queue: Remove set but unchecked variable 'ret'

2020-11-12 Thread Tero Kristo
On 12/11/2020 12:31, Lee Jones wrote: Cc:ing a few people I know. On Tue, 03 Nov 2020, Lee Jones wrote: Fixes the following W=1 kernel build warning(s): drivers/soc/ti/knav_qmss_queue.c: In function ‘knav_setup_queue_pools’: drivers/soc/ti/knav_qmss_queue.c:1310:6: warning: variable ‘ret’

Re: [LKP] Re: [mm/memcg] bd0b230fe1: will-it-scale.per_process_ops -22.7% regression

2020-11-12 Thread Feng Tang
Hi Michal, On Wed, Nov 04, 2020 at 09:15:46AM +0100, Michal Hocko wrote: > > > > Hi Michal, > > > > > > > > We used the default configure of cgroups, not sure what configuration > > > > you > > > > want, > > > > could you give me more details? and here is the cgroup info of > > > > will-it-scal

Re: [PATCH] sched/fair: Fix overutilized update in enqueue_task_fair()

2020-11-12 Thread Valentin Schneider
Hi Quentin, On 12/11/20 11:12, Quentin Perret wrote: > enqueue_task_fair() attempts to skip the overutilized update for new > tasks as their util_avg is not accurate yet. However, the flag we check > to do so is overwritten earlier on in the function, which makes the > condition pretty much a no

Re: [PATCH v2] Documentation: ACPI: explain how to use gpio-line-names

2020-11-12 Thread Andy Shevchenko
On Thu, Nov 12, 2020 at 10:02:41AM +0100, Flavio Suligoi wrote: > The "gpio-line-names" declaration is not fully > documented, so can be useful to add some important > information and one more example. > > This commit also fixes a trivial spelling mistake. Thanks! Reviewed-by: Andy Shevchenko

Re: [PATCH v21 18/19] mm/lru: introduce the relock_page_lruvec function

2020-11-12 Thread Vlastimil Babka
On 11/5/20 9:55 AM, Alex Shi wrote: From: Alexander Duyck Use this new function to replace repeated same code, no func change. When testing for relock we can avoid the need for RCU locking if we simply compare the page pgdat and memcg pointers versus those that the lruvec is holding. By doing

Re: [PATCH] sched/fair: ensure tasks spreading in LLC during LB

2020-11-12 Thread Mel Gorman
On Mon, Nov 02, 2020 at 11:24:57AM +0100, Vincent Guittot wrote: > schbench shows latency increase for 95 percentile above since: > commit 0b0695f2b34a ("sched/fair: Rework load_balance()") > > Align the behavior of the load balancer with the wake up path, which tries > to select an idle CPU whi

RE: [PATCH v7 15/18] NTB: Add support for EPF PCI-Express Non-Transparent Bridge

2020-11-12 Thread Sherry Sun
Hi Kishon, > Subject: Re: [PATCH v7 15/18] NTB: Add support for EPF PCI-Express Non- > Transparent Bridge > > Hi Sherry, > > On 11/11/20 8:19 am, Sherry Sun wrote: > > Hi Kishon, > > > >> Subject: Re: [PATCH v7 15/18] NTB: Add support for EPF PCI-Express > >> Non- Transparent Bridge > >> > >> Hi

Re: ac0e958a00: Kernel_panic-not_syncing:stack-protector:Kernel_stack_is_corrupted_in:run_init_process

2020-11-12 Thread Rob Landley
On 11/12/20 1:11 AM, kernel test robot wrote: > > Greeting, > > FYI, we noticed the following commit (built with gcc-9): Blah, switched from strlcpy to sprintf due to the lack of spaces and didn't adjust the size. (And yes, the compiler's lifetime analysis should free the stack space before the

Re: [PATCH 01/13] seqnum_ops: Introduce Sequence Number Ops

2020-11-12 Thread Matthew Wilcox
On Wed, Nov 11, 2020 at 12:23:03PM -0700, Shuah Khan wrote: > > Agreed: this is a clear wrapping sequence counter. It's only abuse would > > be using it in a place where wrapping actually is _not_ safe. (bikeshed: > > can we call it wrap_u32 and wrap_u64?) > > Still like seqnum_ops. > > There is

Re: [PATCH v21 19/19] mm/lru: revise the comments of lru_lock

2020-11-12 Thread Vlastimil Babka
On 11/5/20 9:55 AM, Alex Shi wrote: From: Hugh Dickins Since we changed the pgdat->lru_lock to lruvec->lru_lock, it's time to fix the incorrect comments in code. Also fixed some zone->lru_lock comment error from ancient time. etc. I struggled to understand the comment above move_pages_to_lru()

Re: [PATCH v6 1/2] kunit: Support for Parameterized Testing

2020-11-12 Thread Marco Elver
On Thu, Nov 12, 2020 at 04:18PM +0800, David Gow wrote: > On Thu, Nov 12, 2020 at 12:55 AM Bird, Tim wrote: [...] > > > kunit_tool has a bug when parsing the comments / diagnostic lines, > > > which requires a ": " to be present. This is a bug, which is being > > > fixed[1], so while it's _nice_ t

Re: [ANNOUNCE] v5.10-rc2-rt4

2020-11-12 Thread Daniel Wagner
On Tue, Nov 10, 2020 at 07:05:18PM +0100, Sebastian Andrzej Siewior wrote: > On 2020-11-09 15:37:03 [+0100], Daniel Wagner wrote: > > > I've been staring at the code of signaltest on Friday and I might need > > > to stare longer to figure out what it does. > > > > I hear you. Anyway, I gave the cu

Re: [PATCH] sched/fair: Fix overutilized update in enqueue_task_fair()

2020-11-12 Thread Quentin Perret
On Thursday 12 Nov 2020 at 12:29:59 (+), Valentin Schneider wrote: > Alternatively: how much does not updating the overutilized status here help > us? The next tick will unconditionally update it, which for arm64 is > anywhere in the next ]0, 4]ms. That "fake" fork-time util_avg should already

Re: [PATCH net] net: dsa: lantiq_gswip: add missed clk_disable_unprepare() in gswip_gphy_fw_load()

2020-11-12 Thread Vladimir Oltean
On Thu, Nov 12, 2020 at 07:11:35PM +0800, Zhang Changzhong wrote: > Fix missing clk_disable_unprepare() before return from > gswip_gphy_fw_load() in the error handling case. > > Fixes: 14fceff4771e ("net: dsa: Add Lantiq / Intel DSA driver for vrx200") > Reported-by: Hulk Robot > Signed-off-by: Z

Re: [PATCH] ceph: fix race in concurrent __ceph_remove_cap invocations

2020-11-12 Thread Yan, Zheng
On Thu, Nov 12, 2020 at 6:48 PM Luis Henriques wrote: > > A NULL pointer dereference may occur in __ceph_remove_cap with some of the > callbacks used in ceph_iterate_session_caps, namely trim_caps_cb and > remove_session_caps_cb. These aren't protected against the concurrent > execution of __ceph

Re: [PATCH v3 2/2] usb: typec: Expose Product Type VDOs via sysfs

2020-11-12 Thread Heikki Krogerus
On Wed, Nov 11, 2020 at 06:40:55PM -0800, Prashant Malani wrote: > Hi Heikki, > > On Tue, Nov 10, 2020 at 01:54:53PM +0200, Heikki Krogerus wrote: > > On Fri, Oct 23, 2020 at 02:43:28PM -0700, Prashant Malani wrote: > > > > I've now come to the conclusion that this is not the correct approach. >

Re: [PATCH 5/5] media: uapi: move H264 stateless controls out of staging

2020-11-12 Thread Hans Verkuil
On 12/11/2020 12:57, Ezequiel Garcia wrote: > The H264 stateless control class is ready to be part > of the stable uAPI. > > The control IDs and types are re-numbered and moved > to a newly created stateless control class, and > a new documentation section is created. This patch needs to be split

Re: [PATCH] kfence: Avoid stalling work queue task without allocations

2020-11-12 Thread Marco Elver
On Thu, 12 Nov 2020 at 01:11, Paul E. McKenney wrote: > > On Wed, Nov 11, 2020 at 09:21:53PM +0100, Marco Elver wrote: > > On Wed, Nov 11, 2020 at 11:21AM -0800, Paul E. McKenney wrote: > > [...] > > > > > rcu: Don't invoke try_invoke_on_locked_down_task() with irqs > > > > > disabled > > > >

Re: [PATCH] Documentation: scheduler: fix outdated information on arch SD flags and sched_domain

2020-11-12 Thread Valentin Schneider
Hi, On 12/11/20 11:34, Barry Song wrote: > This document seems to be out of date for many, many years. Even it has > misspelled from the first day. > ARCH_HASH_SCHED_TUNE should be ARCH_HAS_SCHED_TUNE > ARCH_HASH_SCHED_DOMAIN should be ARCH_HAS_SCHED_DOMAIN > > But since v2.6.14, kernel complete

Re: [PATCH] sched/fair: Fix overutilized update in enqueue_task_fair()

2020-11-12 Thread Valentin Schneider
On 12/11/20 12:38, Quentin Perret wrote: > On Thursday 12 Nov 2020 at 12:29:59 (+), Valentin Schneider wrote: >> Alternatively: how much does not updating the overutilized status here help >> us? The next tick will unconditionally update it, which for arm64 is >> anywhere in the next ]0, 4]ms

[PATCH v3] Documentation: ACPI: explain how to use gpio-line-names

2020-11-12 Thread Flavio Suligoi
The "gpio-line-names" declaration is not fully documented, so can be useful to add some important information and one more example. This commit also fixes a trivial spelling mistake. Signed-off-by: Flavio Suligoi Reviewed-by: Andy Shevchenko --- v2: - fix commit spelling mistakes - add dou

[PATCH V2] ARM: tegra: Populate OPP table for Tegra20 Ventana

2020-11-12 Thread Jon Hunter
Commit 9ce274630495 ("cpufreq: tegra20: Use generic cpufreq-dt driver (Tegra30 supported now)") update the Tegra20 CPUFREQ driver to use the generic CPUFREQ device-tree driver. Since this change CPUFREQ support on the Tegra20 Ventana platform has been broken because the necessary device-tree nodes

[PATCH] arm64: dts: zynqmp: Wire mailbox with zynqmp-power driver

2020-11-12 Thread Michal Simek
The support to driver was added by commit ffdbae28d9d1 ("drivers: soc: xilinx: Use mailbox IPI callback") that's why also enable it via DT by default. It setups communication with firmware via IPI interface. Signed-off-by: Michal Simek --- arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 25 +++

Re: [PATCH] ARM: tegra: Populate OPP table for Tegra20 Ventana

2020-11-12 Thread Jon Hunter
On 12/11/2020 12:11, Dmitry Osipenko wrote: > 11.11.2020 13:38, Jon Hunter пишет: >> Commit 9ce274630495 ("cpufreq: tegra20: Use generic cpufreq-dt driver >> (Tegra30 supported now)") update the Tegra20 CPUFREQ driver to use the >> generic CPUFREQ device-tree driver. Since this change CPUFREQ sup

Re: [PATCH v2 11/20] kasan: add and integrate kasan boot parameters

2020-11-12 Thread Catalin Marinas
On Thu, Nov 12, 2020 at 12:53:58PM +0100, Marco Elver wrote: > On Thu, 12 Nov 2020 at 12:35, Catalin Marinas wrote: > > > > On Tue, Nov 10, 2020 at 11:20:15PM +0100, Andrey Konovalov wrote: > > > Hardware tag-based KASAN mode is intended to eventually be used in > > > production as a security miti

REGRESSION: Re: [patch V2 00/46] x86, PCI, XEN, genirq ...: Prepare for device MSI

2020-11-12 Thread Jason Gunthorpe
On Wed, Aug 26, 2020 at 01:16:28PM +0200, Thomas Gleixner wrote: > This is the second version of providing a base to support device MSI (non > PCI based) and on top of that support for IMS (Interrupt Message Storm) > based devices in a halfways architecture independent way. Hi Thomas, Our test te

Re: [PATCH] lib: stackdepot: Add support to configure STACK_HASH_SIZE

2020-11-12 Thread Vijayanand Jitta
On 11/4/2020 3:59 PM, Vijayanand Jitta wrote: > > > On 11/4/2020 4:57 AM, Minchan Kim wrote: >> Sorry if this mail corrupts the mail thread or had heavy mangling >> since I lost this mail from my mailbox so I am sending this mail by >> web gmail. >> >> On Thu, Oct 22, 2020 at 10:18 AM wrote:

[PATCH 01/18] crypto/krb5: Implement Kerberos crypto core

2020-11-12 Thread David Howells
Provide core structures, an encoding-type registry and basic module and config bits for a generic Kerberos crypto library. Signed-off-by: David Howells --- crypto/Kconfig |1 + crypto/Makefile|1 + crypto/krb5/Kconfig| 11 ++ crypto/krb5/Makefile |9 +

[RFC][PATCH 00/18] crypto: Add generic Kerberos library

2020-11-12 Thread David Howells
Hi Herbert, Bruce, Here's my first cut at a generic Kerberos crypto library in the kernel so that I can share code between rxrpc and sunrpc (and cifs?). I derived some of the parts from the sunrpc gss library and added more advanced AES and Camellia crypto. I haven't ported across the DES-base

[PATCH 05/18] crypto/krb5: Implement the Kerberos5 rfc3961 encrypt and decrypt functions

2020-11-12 Thread David Howells
Add functions that encrypt and decrypt a piece of an skbuff according to rfc3961 sec 5.3, using Ki to checksum the data to be secured and Ke to encrypt it during the encryption phase, then decrypting with Ke and verifying the checksum with Ki in the decryption phase. Signed-off-by: David Howells

[PATCH 03/18] crypto/krb5: Provide infrastructure and key derivation

2020-11-12 Thread David Howells
Provide key derivation interface functions and a helper to implement the PRF+ function from rfc4402. Signed-off-by: David Howells --- crypto/krb5/Makefile |1 crypto/krb5/kdf.c | 223 + include/crypto/krb5.h | 29 ++ 3 files chang

[PATCH 02/18] crypto/krb5: Add some constants out of sunrpc headers

2020-11-12 Thread David Howells
Add some constants from the sunrpc headers. Signed-off-by: David Howells --- include/crypto/krb5.h | 39 +++ 1 file changed, 39 insertions(+) diff --git a/include/crypto/krb5.h b/include/crypto/krb5.h index 2bd6cfe50b85..a7e4ab4e1348 100644 --- a/include/c

[PATCH 04/18] crypto/krb5: Implement the Kerberos5 rfc3961 key derivation

2020-11-12 Thread David Howells
Implement the simplified crypto profile for Kerberos 5 rfc3961 with the pseudo-random function, PRF(), from section 5.3 and the key derivation function, DK() from section 5.1. Signed-off-by: David Howells --- crypto/krb5/Makefile |3 crypto/krb5/internal.h |6 + c

[PATCH 08/18] crypto/krb5: Implement crypto self-testing

2020-11-12 Thread David Howells
Implement self-testing infrastructure to test the pseudo-random function, key derivation, encryption and checksumming. Signed-off-by: David Howells --- crypto/krb5/Kconfig |4 crypto/krb5/Makefile|4 crypto/krb5/internal.h | 48 crypto/krb5/main.c

[PATCH 06/18] crypto/krb5: Implement the Kerberos5 rfc3961 get_mic and verify_mic

2020-11-12 Thread David Howells
Add functions that sign and verify a piece of an skbuff according to rfc3961 sec 5.4, using Kc to generate a checksum and insert it into the MIC field in the skbuff in the sign phase then checksum the data and compare it to the MIC in the verify phase. Signed-off-by: David Howells --- crypto/kr

[PATCH 10/18] crypto/krb5: Implement the AES encrypt/decrypt from rfc8009

2020-11-12 Thread David Howells
Implement encryption and decryption functions for AES + HMAC-SHA2 as described in rfc8009 sec 5. Signed-off-by: David Howells --- crypto/krb5/rfc8009_aes2.c | 205 1 file changed, 203 insertions(+), 2 deletions(-) diff --git a/crypto/krb5/rfc8009_a

[PATCH 11/18] crypto/krb5: Add the AES self-testing data from rfc8009

2020-11-12 Thread David Howells
Add the self-testing data from rfc8009 to test AES + HMAC-SHA2. Signed-off-by: David Howells --- crypto/krb5/selftest_data.c | 116 +++ 1 file changed, 116 insertions(+) diff --git a/crypto/krb5/selftest_data.c b/crypto/krb5/selftest_data.c index 908572

[PATCH 12/18] crypto/krb5: Implement the Camellia enctypes from rfc6803

2020-11-12 Thread David Howells
Implement the camellia128-cts-cmac and camellia256-cts-cmac enctypes from rfc6803. Note that the test vectors in rfc6803 for encryption are incomplete, lacking the key usage number needed to derive Ke and Ki, and there are errata for this: https://www.rfc-editor.org/errata_search.php?rfc=

[PATCH 13/18] rxrpc: Add the security index for yfs-rxgk

2020-11-12 Thread David Howells
Add the security index for the YFS variant of rxgk. Signed-off-by: David Howells --- fs/afs/misc.c | 13 + include/uapi/linux/rxrpc.h | 17 + 2 files changed, 30 insertions(+) diff --git a/fs/afs/misc.c b/fs/afs/misc.c index 1d1a8debe472..796783774e

[PATCH 15/18] rxrpc: rxgk: Provide infrastructure and key derivation

2020-11-12 Thread David Howells
Provide some infrastructure for implementing the RxGK transport security class: (1) A definition of an encoding type, including: - Relevant crypto-layer names - Lengths of the crypto keys and checksums involved - Crypto functions specific to the encoding type - Cr

[PATCH 16/18] rxrpc: rxgk: Implement the yfs-rxgk security class (GSSAPI)

2020-11-12 Thread David Howells
Implement the basic parts of the yfs-rxgk security class (security index 6) to support GSSAPI-negotiated security. Signed-off-by: David Howells --- include/trace/events/rxrpc.h |4 net/rxrpc/Makefile |2 net/rxrpc/ar-internal.h | 12 net/rxrpc/rxgk.c | 10

[PATCH 14/18] rxrpc: Add YFS RxGK (GSSAPI) security class

2020-11-12 Thread David Howells
Add support for the YFS-variant RxGK security class to support GSSAPI-derived authentication. This also allows the use of better crypto over the rxkad security class. The key payload is XDR encoded of the form: typedef int64_t opr_time; const AFSTOKEN_RK_TIX_MAX = 12000; /* Matches ent

[PATCH 07/18] crypto/krb5: Implement the AES enctypes from rfc3962

2020-11-12 Thread David Howells
Implement the aes128-cts-hmac-sha1-96 and aes256-cts-hmac-sha1-96 enctypes from rfc3962, using the rfc3961 kerberos 5 simplified crypto scheme. Signed-off-by: David Howells --- crypto/krb5/Makefile |3 + crypto/krb5/internal.h|6 ++ crypto/krb5/main.c|2 + crypto/kr

[PATCH 18/18] rxgk: Support OpenAFS's rxgk implementation

2020-11-12 Thread David Howells
--- net/rxrpc/ar-internal.h |1 net/rxrpc/key.c | 136 +++ net/rxrpc/rxgk.c| 25 + net/rxrpc/rxgk_app.c| 135 +++ net/rxrpc/rxgk_common.h |2 + net/rxrpc/security.c

[PATCH 09/18] crypto/krb5: Implement the AES enctypes from rfc8009

2020-11-12 Thread David Howells
Implement the aes128-cts-hmac-sha256-128 and aes256-cts-hmac-sha384-192 enctypes from rfc8009, overriding the rfc3961 kerberos 5 simplified crypto scheme. Signed-off-by: David Howells --- crypto/krb5/Kconfig|2 crypto/krb5/Makefile |3 - crypto/krb5/internal.h |6

Re: [PATCH V2 4/5] arm64: dts: ti: k3-am654-base-board: Fix up un-necessary status set to "okay" for USB

2020-11-12 Thread Roger Quadros
On 12/11/2020 03:49, Nishanth Menon wrote: The default state of a device tree node is "okay". There is no specific use of explicitly adding status = "okay" in the board dts. Fixes: 7e7e7dd51d06 ("arm64: dts: ti: k3-am654-base-board: enable USB1") Signed-off-by: Nishanth Menon Cc: Roger Quadros

[PATCH 17/18] rxrpc: rxgk: Implement connection rekeying

2020-11-12 Thread David Howells
Implement rekeying of connections with the RxGK security class. This involves regenerating the keys with a different key number as part of the input data after a certain amount of time or a certain amount of bytes encrypted. Rekeying may be triggered by either end. The LSW of the key number is i

Re: [PATCH v13 4/8] x86: kdump: move reserve_crashkernel[_low]() into crash_core.c

2020-11-12 Thread chenzhou
On 2020/11/12 16:11, Mike Rapoport wrote: > On Sat, Oct 31, 2020 at 03:44:33PM +0800, Chen Zhou wrote: >> Make the functions reserve_crashkernel[_low]() as generic. >> Arm64 will use these to reimplement crashkernel=X. >> >> Signed-off-by: Chen Zhou >> Tested-by: John Donnelly >> --- >> arch/

Re: [PATCH v5 1/1] sched/uclamp: add SCHED_FLAG_UTIL_CLAMP_RESET flag to reset uclamp

2020-11-12 Thread Dietmar Eggemann
On 11/11/2020 19:04, Peter Zijlstra wrote: > On Wed, Nov 11, 2020 at 06:41:07PM +0100, Dietmar Eggemann wrote: >> diff --git a/include/uapi/linux/sched/types.h >> b/include/uapi/linux/sched/types.h >> index c852153ddb0d..b9165f17dddc 100644 >> --- a/include/uapi/linux/sched/types.h >> +++ b/includ

Re: [PATCH v2] Make iwmmxt.S support Clang's integrated assembler

2020-11-12 Thread Arnd Bergmann
On Thu, Nov 12, 2020 at 9:42 AM Ard Biesheuvel wrote: > Although I must admit I am still on the fence when it comes to the > policy around rewriting perfectly valid code like this to accommodate > a toolchain that nobody is likely to use to build the code in > question. > > Perhaps we should at l

[PATCH v2 2/3] rtc: rx6110: add ACPI bindings to I2C

2020-11-12 Thread Claudius Heine
From: Johannes Hahn This allows the RX6110 driver to be automatically assigned to the right device on the I2C bus. Signed-off-by: Johannes Hahn Signed-off-by: Claudius Heine Signed-off-by: Henning Schild --- drivers/rtc/rtc-rx6110.c | 12 1 file changed, 12 insertions(+) diff -

[PATCH v2 3/3] rtc: Kconfig: Fix typo in help message of rx 6110

2020-11-12 Thread Claudius Heine
The help message in the Kconfig for the RX-6110 erronously stated RX-6610. Signed-off-by: Claudius Heine --- drivers/rtc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index 1fe411ffb19c..c7fb749c1c2f 100644 --- a/drivers/rtc

[PATCH v2 0/3] Adding I2C support to RX6110 RTC

2020-11-12 Thread Claudius Heine
Hi, here is the 2nd version of the patchset that adds I2C support to the RX6110 RTC. Changes from v1: - moved common probing code into its own function `rx6110_probe` - added a small patch to fix a type in the Kconfig Claudius Heine (2): rtc: rx6110: add i2c support rtc: Kconfig: Fix typo i

[PATCH v2 1/3] rtc: rx6110: add i2c support

2020-11-12 Thread Claudius Heine
The RX6110 also supports I2C, so this patch adds support for it to the driver. This also renames the SPI specific functions and variables to include `_spi_` in their names. Signed-off-by: Claudius Heine Signed-off-by: Henning Schild --- drivers/rtc/Kconfig | 20 ++--- drivers/rtc/rtc-rx6

Re: [PATCH v3] Documentation: ACPI: explain how to use gpio-line-names

2020-11-12 Thread Mika Westerberg
On Thu, Nov 12, 2020 at 01:52:34PM +0100, Flavio Suligoi wrote: > The "gpio-line-names" declaration is not fully > documented, so can be useful to add some important > information and one more example. > > This commit also fixes a trivial spelling mistake. > > Signed-off-by: Flavio Suligoi > Rev

Re: [RFC PATCH v2] coresight: etm4x: Modify core-commit of cpu to avoid the overflow of HiSilicon ETM

2020-11-12 Thread Qi Liu
On 2020/11/12 1:03, Mathieu Poirier wrote: > On Wed, Nov 11, 2020 at 04:58:23PM +0800, Qi Liu wrote: >> Hi Mathieu, >> >> On 2020/9/10 0:26, Mathieu Poirier wrote: >>> On Wed, Sep 09, 2020 at 12:30:02PM +0100, Mike Leach wrote: Hi, On Wed, 2 Sep 2020 at 11:36, Suzuki K Poulose >

Re: [PATCH v4 06/17] PCI: add SIOV and IMS capability detection

2020-11-12 Thread Jason Gunthorpe
On Wed, Nov 11, 2020 at 03:03:21PM -0800, Raj, Ashok wrote: > By default the DVSEC is not presented to guest even when the full PF is > presented to guest. I believe VFIO only builds and presents known standard > capabilities and specific extended capabilities. I'm a bit weak but maybe > @AlexWill

Re: [PATCH v13 6/8] arm64: kdump: reimplement crashkernel=X

2020-11-12 Thread chenzhou
On 2020/11/12 16:36, Baoquan He wrote: > On 11/12/20 at 10:25am, Mike Rapoport wrote: >> On Wed, Nov 11, 2020 at 09:54:48PM +0800, Baoquan He wrote: >>> On 11/11/20 at 09:27pm, chenzhou wrote: Hi Baoquan, >>> ... >> #ifdef CONFIG_CRASH_DUMP >> static int __init early_init_dt_scan_

Re: [PATCH] reset: Add reset controller API

2020-11-12 Thread Amjad Ouled-Ameur
On 03/10/2020 01:00, Kevin Hilman wrote: Amjad Ouled-Ameur writes: The current reset framework API does not allow to release what is done by reset_control_reset(), IOW decrement triggered_count. Add the new reset_control_resettable() call to do so. When reset_control_reset() has been called o

[PATCH v4] Documentation: ACPI: explain how to use gpio-line-names

2020-11-12 Thread Flavio Suligoi
The "gpio-line-names" declaration is not fully documented, so can be useful to add some important information and one more example. This commit also fixes a trivial spelling mistake. Signed-off-by: Flavio Suligoi Reviewed-by: Andy Shevchenko Reviewed-by: Mika Westerberg --- v2: - fix commit s

Re: [PATCH] arm64: Change the location of DISCARDS

2020-11-12 Thread Catalin Marinas
On Fri, Nov 06, 2020 at 09:07:38AM +, Will Deacon wrote: > On Fri, Nov 06, 2020 at 09:06:42AM +0800, tangyouling wrote: > > In the include/asm-generic/vmlinux.lds.h:978, the description is as follows: > > DISCARDS must be the last of output section definitions so that such archs > > put those i

Re: [PATCH v2 1/3] rtc: rx6110: add i2c support

2020-11-12 Thread Claudius Heine
Hi, Sorry, I forgot to remove some unused variables (both `err` variables in the spi and i2c probe functions). Will fix that in the next patch version. Cheers, Claudius On 2020-11-12 14:07, Claudius Heine wrote: The RX6110 also supports I2C, so this patch adds support for it to the driver.

[PATCH 1/6] staging: net: wimax: i2400m: control: Fix some misspellings in i2400m_set_init_config()'s docs

2020-11-12 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/net/wimax/i2400m/control.c:1195: warning: Function parameter or member 'arg' not described in 'i2400m_set_init_config' drivers/net/wimax/i2400m/control.c:1195: warning: Excess function parameter 'arg_size' description in 'i2400m_set_init

[PATCH 3/6] staging: net: wimax: i2400m: fw: Fix some function header misdemeanours

2020-11-12 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/net/wimax/i2400m/fw.c:584: warning: Function parameter or member 'i2400m' not described in 'i2400m_bm_cmd' drivers/net/wimax/i2400m/fw.c:584: warning: Excess function parameter 'returns' description in 'i2400m_bm_cmd' drivers/net/wimax/

[PATCH 4/6] staging: net: wimax: i2400m: netdev: Demote non-conformant function header

2020-11-12 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/net/wimax/i2400m/netdev.c:583: warning: Function parameter or member 'net_dev' not described in 'i2400m_netdev_setup' Cc: Greg Kroah-Hartman Cc: Inaky Perez-Gonzalez Cc: linux-wi...@intel.com Cc: "David S. Miller" Cc: Jakub Kicinski C

[PATCH 2/6] staging: net: wimax: i2400m: driver: Demote some non-conformant kernel-docs, fix others

2020-11-12 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/net/wimax/i2400m/driver.c:681: warning: Function parameter or member 'i2400m' not described in 'i2400m_dev_reset_handle' drivers/net/wimax/i2400m/driver.c:681: warning: Function parameter or member 'reason' not described in 'i2400m_dev_r

[PATCH 0/6] Rid i2400m driver set of W=1 issues

2020-11-12 Thread Lee Jones
This set is part of a larger effort attempting to clean-up W=1 kernel builds, which are currently overwhelmingly riddled with niggly little warnings. This is a rebased set that went to Net before the move to Staging. Lee Jones (6): staging: net: wimax: i2400m: control: Fix some misspellings in

[PATCH 6/6] staging: net: wimax: i2400m: fw: Fix incorrectly spelt function parameter in documentation

2020-11-12 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/net/wimax/i2400m/fw.c:647: warning: Function parameter or member '__chunk_len' not described in 'i2400m_download_chunk' drivers/net/wimax/i2400m/fw.c:647: warning: Excess function parameter 'chunk_len' description in 'i2400m_download_chu

[PATCH 5/6] staging: net: wimax: i2400m: tx: Fix a few kernel-doc misdemeanours

2020-11-12 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/net/wimax/i2400m/tx.c:715: warning: Function parameter or member 'i2400m' not described in 'i2400m_tx' drivers/net/wimax/i2400m/tx.c:964: warning: Function parameter or member 'i2400m' not described in 'i2400m_tx_setup' drivers/net/wima

Re: [PATCH 06/25] soc: ti: knav_qmss_queue: Remove set but unchecked variable 'ret'

2020-11-12 Thread Lee Jones
On Thu, 12 Nov 2020, Tero Kristo wrote: > On 12/11/2020 12:31, Lee Jones wrote: > > Cc:ing a few people I know. > > > > On Tue, 03 Nov 2020, Lee Jones wrote: > > > > > Fixes the following W=1 kernel build warning(s): > > > > > > drivers/soc/ti/knav_qmss_queue.c: In function ‘knav_setup_queue_

Re: [PATCH 05/25] soc: rockchip: io-domain: Remove incorrect and incomplete comment header

2020-11-12 Thread Lee Jones
On Thu, 12 Nov 2020, Heiko Stübner wrote: > Am Donnerstag, 12. November 2020, 11:33:44 CET schrieb Lee Jones: > > On Tue, 03 Nov 2020, Lee Jones wrote: > > > > > Fixes the following W=1 kernel build warning(s): > > > > > > drivers/soc/rockchip/io-domain.c:57: warning: Cannot understand * > >

Re: [PATCH] ceph: fix race in concurrent __ceph_remove_cap invocations

2020-11-12 Thread Jeff Layton
On Thu, 2020-11-12 at 20:43 +0800, Yan, Zheng wrote: > On Thu, Nov 12, 2020 at 6:48 PM Luis Henriques wrote: > > > > A NULL pointer dereference may occur in __ceph_remove_cap with some of the > > callbacks used in ceph_iterate_session_caps, namely trim_caps_cb and > > remove_session_caps_cb. The

Re: [PATCH] usb: gadget: mass_storage: fix error return code in msg_bind()

2020-11-12 Thread chenzhou
On 2020/11/12 16:53, Chen Zhou wrote: > Fix to return a negative error code from the error handling case > instead of 0 in function msg_bind(), as done elsewhere in this > function. > > Fixes: d86788979761 ("usb: gadget: mass_storage: allocate and init otg > descriptor by otg capabilities") > R

[PATCH] drm/sun4i: dw-hdmi: fix error return code in sun8i_dw_hdmi_bind()

2020-11-12 Thread Xiongfeng Wang
Fix to return a negative error code from the error handling case instead of 0 in function sun8i_dw_hdmi_bind(). Fixes: b7c7436a5ff0 ("drm/sun4i: Implement A83T HDMI driver") Reported-by: Hulk Robot Signed-off-by: Xiongfeng Wang --- drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c | 1 + 1 file changed, 1

Re: [PATCH 05/25] soc: rockchip: io-domain: Remove incorrect and incomplete comment header

2020-11-12 Thread Heiko Stübner
Am Donnerstag, 12. November 2020, 14:22:24 CET schrieb Lee Jones: > On Thu, 12 Nov 2020, Heiko Stübner wrote: > > > Am Donnerstag, 12. November 2020, 11:33:44 CET schrieb Lee Jones: > > > On Tue, 03 Nov 2020, Lee Jones wrote: > > > > > > > Fixes the following W=1 kernel build warning(s): > > > >

Re: [PATCH] selinux: Fix error return code in sel_ib_pkey_sid_slow()

2020-11-12 Thread chenzhou
On 2020/11/12 16:55, Chen Zhou wrote: > Fix to return a negative error code from the error handling case > instead of 0 in function sel_ib_pkey_sid_slow(), as done elsewhere > in this function. > > Fixes: 409dcf31538a ("selinux: Add a cache for quicker retreival of PKey > SIDs") > Reported-by:

Re: [PATCH v7 15/18] NTB: Add support for EPF PCI-Express Non-Transparent Bridge

2020-11-12 Thread Arnd Bergmann
On Tue, Nov 10, 2020 at 4:42 PM Kishon Vijay Abraham I wrote: > On 10/11/20 8:29 pm, Arnd Bergmann wrote: > > On Tue, Nov 10, 2020 at 3:20 PM Kishon Vijay Abraham I > > wrote: > >> On 10/11/20 7:55 am, Sherry Sun wrote: > > > >>> But for VOP, only two boards are needed(one board as host and one

Re: [PATCH 05/25] soc: rockchip: io-domain: Remove incorrect and incomplete comment header

2020-11-12 Thread Lee Jones
On Thu, 12 Nov 2020, Heiko Stübner wrote: > Am Donnerstag, 12. November 2020, 14:22:24 CET schrieb Lee Jones: > > On Thu, 12 Nov 2020, Heiko Stübner wrote: > > > > > Am Donnerstag, 12. November 2020, 11:33:44 CET schrieb Lee Jones: > > > > On Tue, 03 Nov 2020, Lee Jones wrote: > > > > > > > > >

Re: [PATCH v5 8/8] rpmsg: Turn name service into a stand alone driver

2020-11-12 Thread Arnaud POULIQUEN
On 11/12/20 12:51 PM, Guennadi Liakhovetski wrote: > Hi Arnaud, > > On Thu, Nov 12, 2020 at 11:17:54AM +0100, Arnaud POULIQUEN wrote: >> Hi Guennadi, >> >> On 11/11/20 3:49 PM, Guennadi Liakhovetski wrote: >>> Hi Arnaud, > > [snip] > >>> From: Guennadi Liakhovetski >>> Subject: [PATCH] fixup

Re: [PATCH 01/13] seqnum_ops: Introduce Sequence Number Ops

2020-11-12 Thread Greg KH
On Wed, Nov 11, 2020 at 09:15:55PM +0100, Peter Zijlstra wrote: > On Wed, Nov 11, 2020 at 11:28:13AM -0700, Shuah Khan wrote: > > On 11/11/20 10:50 AM, Peter Zijlstra wrote: > > > On Wed, Nov 11, 2020 at 10:34:05AM -0700, Shuah Khan wrote: > > > > > > > Not sure what to make of the 6080 atomic_rea

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