libnvdimm fixes 5.9-rc6

2020-09-20 Thread Dan Williams
Hi Linus, please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm tags/libnvdimm-fixes-5.9-rc6 ...to receive a handful of fixes to address a string of mistakes in the mechanism for device-mapper to determine if its component devices are dax capable. You will notice that

Re: [PATCH v3 06/19] ASoC: sun4i-i2s: Fix sun8i volatile regs

2020-09-20 Thread Samuel Holland
On 9/20/20 1:07 PM, Clément Péron wrote: > The FIFO TX reg is volatile and sun8i i2s register > mapping is different from sun4i. > > Even if in this case it's doesn't create an issue, > Avoid setting some regs that are undefined in sun8i. > > Signed-off-by: Clément Péron > Acked-by: Maxime

Re: [PATCH] mm/shmem.c: Fix the missing unaccount on the failed path

2020-09-20 Thread Hugh Dickins
On Mon, 21 Sep 2020, Tianjia Zhang wrote: > In function __shmem_file_setup(), shmem_unacct_size() is forgotten > on the failed path, so add it. > > Fixes: 93dec2da7b234 ("... and switch shmem_file_setup() to > alloc_file_pseudo()") > Cc: Al Viro > Signed-off-by: Tianjia Zhang > --- >

Re: [PATCH v3 01/19] ASoC: sun4i-i2s: Add support for H6 I2S

2020-09-20 Thread Samuel Holland
On 9/20/20 1:07 PM, Clément Péron wrote: > From: Jernej Skrabec > > H6 I2S is very similar to that in H3, except it supports up to 16 > channels. > > Signed-off-by: Jernej Skrabec > Signed-off-by: Marcus Cooper > Signed-off-by: Clément Péron > --- > sound/soc/sunxi/sun4i-i2s.c | 218

Re: [PATCH v3 05/19] ASoc: sun4i-i2s: Add 20 and 24 bit support

2020-09-20 Thread Samuel Holland
On 9/20/20 1:07 PM, Clément Péron wrote: > From: Marcus Cooper > > Extend the functionality of the driver to include support of 20 and > 24 bits per sample. > > Signed-off-by: Marcus Cooper > Signed-off-by: Clément Péron > Acked-by: Maxime Ripard > --- > sound/soc/sunxi/sun4i-i2s.c | 11

Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-20 Thread Al Viro
On Sun, Sep 20, 2020 at 07:07:42PM +0100, Al Viro wrote: > /proc/bus/input/devices (fucked bitmap-to-text representation) To illustrate the, er, beauty of that stuff: ; cat32 /proc/bus/input/devices >/tmp/a ; cat /proc/bus/input/devices >/tmp/b ; diff -u /tmp/a /tmp/b|grep '^[-+]' --- /tmp/a

[PATCH v2 3/7] crypto: sun4i-ss: IV register does not work on A10 and A13

2020-09-20 Thread Corentin Labbe
Allwinner A10 and A13 SoC have a version of the SS which produce invalid IV in IVx register. Instead of adding a variant for those, let's convert SS to produce IV directly from data. Fixes: 6298e948215f2 ("crypto: sunxi-ss - Add Allwinner Security System crypto accelerator") Cc: Signed-off-by:

[PATCH v2 0/7] crypto: sun4i-ss: prevent always fallback for ciphers

2020-09-20 Thread Corentin Labbe
Hello For help testing on "crypto: sun4i-ss - Fix sparse endianness markers", I have added "stats" support like other allwinner's crypto drivers. Seeing stats showed a clear problem, the ciphers function were not used at all. This is due to the not-inialized need_fallback which is "init" as true

[PATCH v2 4/7] crypto: sun4i-ss: handle BigEndian for cipher

2020-09-20 Thread Corentin Labbe
Ciphers produce invalid results on BE. Key and IV need to be written in LE. Fixes: 6298e948215f2 ("crypto: sunxi-ss - Add Allwinner Security System crypto accelerator") Cc: Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun4i-ss/sun4i-ss-cipher.c | 12 ++-- 1 file changed,

[PATCH v2 5/7] crypto: sun4i-ss: initialize need_fallback

2020-09-20 Thread Corentin Labbe
The need_fallback is never initialized and seem to be always true at runtime. So all hardware operations are always bypassed. Fixes: 0ae1f46c55f87 ("crypto: sun4i-ss - fallback when length is not multiple of blocksize") Cc: Signed-off-by: Corentin Labbe ---

[PATCH v2 7/7] crypto: sun4i-ss: add SPDX header and remove blank lines

2020-09-20 Thread Corentin Labbe
This patchs fixes some remaining style issue. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun4i-ss/sun4i-ss-cipher.c | 3 --- drivers/crypto/allwinner/sun4i-ss/sun4i-ss-prng.c | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git

[PATCH v2 2/7] crypto: sun4i-ss: checking sg length is not sufficient

2020-09-20 Thread Corentin Labbe
The optimized cipher function need length multiple of 4 bytes. But it get sometimes odd length. This is due to SG data could be stored with an offset. So the fix is to check also if the offset is aligned with 4 bytes. Fixes: 6298e948215f2 ("crypto: sunxi-ss - Add Allwinner Security System crypto

[PATCH v2 1/7] crypto: sun4i-ss: linearize buffers content must be kept

2020-09-20 Thread Corentin Labbe
When running the non-optimized cipher function, SS produce partial random output. This is due to linearize buffers being reseted after each loop. Fixes: 8d3bcb9900ca ("crypto: sun4i-ss - reduce stack usage") Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun4i-ss/sun4i-ss-cipher.c |

[PATCH v2 6/7] crypto: sun4i-ss: enabled stats via debugfs

2020-09-20 Thread Corentin Labbe
This patch enable to access usage stats for each algorithm. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/Kconfig | 9 .../allwinner/sun4i-ss/sun4i-ss-cipher.c | 21 .../crypto/allwinner/sun4i-ss/sun4i-ss-core.c | 54 +++

Re: [RFC PATCH] Use feature bit names in clearcpuid=

2020-09-20 Thread Arvind Sankar
On Sun, Sep 20, 2020 at 07:29:54PM +0200, Borislav Petkov wrote: > On Sun, Sep 20, 2020 at 12:16:28PM -0400, Arvind Sankar wrote: > > Allowing 13:24 as input would be icing on the cake :) > > Well, I'm kinda "meh" on that. Why, you ask? > > Well, whether the user multiplies two integers or the

Re: ledtrig-cpu: Limit to 4 CPUs

2020-09-20 Thread Pavel Machek
Hi! > >* > >* It can be bound to any LED just like other triggers using either a > >* board file or via sysfs interface. > >* > >* An API named ledtrig_cpu is exported for any user, who want to add CPU > > - * activity indication in their code > > + * activity indication in

Re: [CRM114spam]: drivers/hwmon/w83627ehf.c:2417 w83627ehf_probe() warn: 'res->start' not released on lines: 2412.

2020-09-20 Thread Dr. David Alan Gilbert
* Dan Carpenter (dan.carpen...@oracle.com) wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > master > head: 5925fa68fe8244651b3f78a88c4af99190a88f0d > commit: 266cd5835947d08b7c963b6d9d9f15d9e481bd0a hwmon: (w83627ehf) convert > to with_info interface >

[PATCH v3] dmaengine: qcom: Add ADM driver

2020-09-20 Thread Jonathan McDowell
Add the DMA engine driver for the QCOM Application Data Mover (ADM) DMA controller found in the MSM8x60 and IPQ/APQ8064 platforms. The ADM supports both memory to memory transactions and memory to/from peripheral device transactions. The controller also provides flow control capabilities for

Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-20 Thread Al Viro
On Sun, Sep 20, 2020 at 09:59:36AM -0700, Andy Lutomirski wrote: > As one example, look at __sys_setsockopt(). It's called for the > native and compat versions, and it contains an in_compat_syscall() > check. (This particularly check looks dubious to me, but that's > another story.) If this

[PATCH v3 07/19] arm64: dts: allwinner: h6: Add HDMI audio node

2020-09-20 Thread Clément Péron
From: Jernej Skrabec Add a simple-soundcard to link audio between HDMI and I2S. Signed-off-by: Jernej Skrabec Signed-off-by: Marcus Cooper Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 33 1 file changed, 33 insertions(+) diff --git

[PATCH v3 09/19] arm: dts: sunxi: h3/h5: Add DAI node for HDMI

2020-09-20 Thread Clément Péron
From: Marcus Cooper Add the new DAI block for I2S2 which is used for HDMI audio. Signed-off-by: Marcus Cooper Signed-off-by: Clément Péron --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/sunxi-h3-h5.dtsi

[PATCH v3 17/19] ARM: dts: sun8i-h3: Enable HDMI audio on Orange Pi PC/One

2020-09-20 Thread Clément Péron
From: Ondrej Jirman The board has HDMI output, enable audio on it. Signed-off-by: Ondrej Jirman Signed-off-by: Clément Péron --- arch/arm/boot/dts/sun8i-h3-orangepi-one.dts | 8 arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts | 8 2 files changed, 16 insertions(+) diff --git

[PATCH v3 13/19] arm: sun8i: h3: Add HDMI audio to Orange Pi 2

2020-09-20 Thread Clément Péron
From: Marcus Cooper Enable HDMI audio on the Orange Pi 2. Signed-off-by: Marcus Cooper Signed-off-by: Clément Péron --- arch/arm/boot/dts/sun8i-h3-orangepi-2.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts

[PATCH v3 15/19] arm64: dts: allwinner: a64: Add HDMI audio to Pine64

2020-09-20 Thread Clément Péron
From: Marcus Cooper Enable HDMI audio on Pine64. Signed-off-by: Marcus Cooper Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts

[PATCH v3 11/19] arm64: dts: allwinner: a64: Add DAI node for HDMI

2020-09-20 Thread Clément Péron
From: Marcus Cooper Add the new DAI block for I2S2 which is used for HDMI audio. Signed-off-by: Marcus Cooper Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git

[PATCH v3 18/19] arm64: dts: sun50i-h6-orangepi-3: Enable HDMI audio

2020-09-20 Thread Clément Péron
From: Ondrej Jirman The board has HDMI output, enable audio on it. Signed-off-by: Ondrej Jirman Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts | 8 1 file changed, 8 insertions(+) diff --git

[PATCH v3 12/19] arm64: dts: allwinner: a64: Add HDMI audio

2020-09-20 Thread Clément Péron
From: Marcus Cooper Add a simple-soundcard to link audio between HDMI and I2S. Signed-off-by: Jernej Skrabec Signed-off-by: Marcus Cooper Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 20 +++ 1 file changed, 20 insertions(+) diff --git

[PATCH v3 14/19] arm: sun8i: h3: Add HDMI audio to Beelink X2

2020-09-20 Thread Clément Péron
From: Marcus Cooper Enable HDMI audio on the Beelink X2. Signed-off-by: Marcus Cooper Signed-off-by: Clément Péron --- arch/arm/boot/dts/sun8i-h3-beelink-x2.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3-beelink-x2.dts

[PATCH] mm: Fix typos in page-lock unfairness text

2020-09-20 Thread Sedat Dilek
Fix some small typos I have seen (for details see Link). Cc: Linus Torvalds Fixes: 5ef64cc8987a ("mm: allow a controlled amount of unfairness in the page lock") Link: https://marc.info/?t=15997828843=1=2 Signed-off-by: Sedat Dilek --- mm/filemap.c | 4 ++-- 1 file changed, 2

[PATCH v3 08/19] arm64: dts: allwinner: h6: Enable HDMI sound for Beelink GS1

2020-09-20 Thread Clément Péron
Now that HDMI sound node is available in the SoC dtsi. Enable it for this board. Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts

[PATCH v3 19/19] arm64: defconfig: Enable Allwinner i2s driver

2020-09-20 Thread Clément Péron
Enable Allwinner I2S driver for arm64 defconfig. Signed-off-by: Clément Péron --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 63003ec116ee..9a3c3bbe60e4 100644 ---

[PATCH v3 03/19] dt-bindings: ASoC: sun4i-i2s: Add H6 compatible

2020-09-20 Thread Clément Péron
From: Jernej Skrabec H6 I2S is very similar to H3, except that it supports up to 16 channels and thus few registers have fields on different position. Signed-off-by: Jernej Skrabec Signed-off-by: Marcus Cooper Signed-off-by: Clément Péron Acked-by: Maxime Ripard Acked-by: Rob Herring ---

[PATCH v3 16/19] arm64: dts: allwinner: Enable HDMI audio on Orange Pi PC 2

2020-09-20 Thread Clément Péron
From: Ondrej Jirman The board has HDMI output, enable audio on it. Signed-off-by: Ondrej Jirman Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts | 8 1 file changed, 8 insertions(+) diff --git

[PATCH v3 05/19] ASoc: sun4i-i2s: Add 20 and 24 bit support

2020-09-20 Thread Clément Péron
From: Marcus Cooper Extend the functionality of the driver to include support of 20 and 24 bits per sample. Signed-off-by: Marcus Cooper Signed-off-by: Clément Péron Acked-by: Maxime Ripard --- sound/soc/sunxi/sun4i-i2s.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-)

Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-20 Thread Al Viro
On Sun, Sep 20, 2020 at 04:15:10PM +0100, Matthew Wilcox wrote: > On Fri, Sep 18, 2020 at 02:45:25PM +0200, Christoph Hellwig wrote: > > Add a flag to force processing a syscall as a compat syscall. This is > > required so that in_compat_syscall() works for I/O submitted by io_uring > > helper

[PATCH v3 10/19] arm: dts: sunxi: h3/h5: Add HDMI audio

2020-09-20 Thread Clément Péron
From: Marcus Cooper Add a simple-soundcard to link audio between HDMI and I2S. Signed-off-by: Jernej Skrabec Signed-off-by: Marcus Cooper Signed-off-by: Clément Péron --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 20 1 file changed, 20 insertions(+) diff --git

[PATCH v3 00/19] Add Allwinner H3/H5/H6/A64 HDMI audio

2020-09-20 Thread Clément Péron
Hi, New test done by Maxime using TDM show that's LRCK is indeed inverted so I drop the patch reverted in v2. And HDMI requires an inverted LRCK so let's readd the frame-inversion in the device-tree. I have also added a patch to change set_chan_cfg. Please note that I can't test TDM and only

[PATCH v3 04/19] ASoC: sun4i-i2s: Set sign extend sample

2020-09-20 Thread Clément Péron
From: Marcus Cooper On the newer SoCs such as the H3 and A64 this is set by default to transfer a 0 after each sample in each slot. However the A10 and A20 SoCs that this driver was developed on had a default setting where it padded the audio gain with zeros. This isn't a problem while we have

[PATCH v3 02/19] ASoC: sun4i-i2s: Change set_chan_cfg params

2020-09-20 Thread Clément Péron
As slots and slot_width can be overwritter in case set_tdm() is called. Avoid to have this logic in set_chan_cfg(). Instead pass the required values as params to set_chan_cfg(). This also fix a bug when i2s->slot_width is set for TDM but not properly used in set_chan_cfg(). Suggested-by: Samuel

[PATCH v3 01/19] ASoC: sun4i-i2s: Add support for H6 I2S

2020-09-20 Thread Clément Péron
From: Jernej Skrabec H6 I2S is very similar to that in H3, except it supports up to 16 channels. Signed-off-by: Jernej Skrabec Signed-off-by: Marcus Cooper Signed-off-by: Clément Péron --- sound/soc/sunxi/sun4i-i2s.c | 218 1 file changed, 218

[PATCH v3 06/19] ASoC: sun4i-i2s: Fix sun8i volatile regs

2020-09-20 Thread Clément Péron
The FIFO TX reg is volatile and sun8i i2s register mapping is different from sun4i. Even if in this case it's doesn't create an issue, Avoid setting some regs that are undefined in sun8i. Signed-off-by: Clément Péron Acked-by: Maxime Ripard --- sound/soc/sunxi/sun4i-i2s.c | 15 +++

Re: [GIT PULL] RISC-V Fixes for 5.9-rc6 (or shortly after)

2020-09-20 Thread pr-tracker-bot
The pull request you sent on Sun, 20 Sep 2020 10:26:34 -0700 (PDT): > git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git > tags/riscv-for-linus-5.9-rc6 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/bdcf11de8f776152c82d2197b255c2d04603f976 Thank you! --

Re: [GIT PULL] TTY/Serial driver fixes for 5.9-rc6

2020-09-20 Thread pr-tracker-bot
The pull request you sent on Sun, 20 Sep 2020 15:28:11 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tags/tty-5.9-rc6 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/f44f3f83d895b830a85f62790cedd5605a399ac4 Thank you! -- Deet-doot-dot, I am a

Re: [GIT PULL] USB/Thunderbolt fixes for 5.9-rc6

2020-09-20 Thread pr-tracker-bot
The pull request you sent on Sun, 20 Sep 2020 15:28:30 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git tags/usb-5.9-rc6 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/d0373c1463ef0cdbf05176eed2fc8f554dc2bd73 Thank you! -- Deet-doot-dot, I am a

Re: [GIT PULL] EDAC urgent for v5.9-rc6

2020-09-20 Thread pr-tracker-bot
The pull request you sent on Sun, 20 Sep 2020 11:24:56 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras.git > tags/edac_urgent_for_v5.9_rc6 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/aac5925b49956f7bf0f5d0ef3477e419f3ee2f78 Thank you! --

Re: [git pull] Input updates for v5.9-rc5

2020-09-20 Thread pr-tracker-bot
The pull request you sent on Sat, 19 Sep 2020 21:09:59 -0700: > git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/376566ca87257b9116ac5205f0efaa3c0f29103b Thank you! -- Deet-doot-dot, I am a bot.

Re: [GIT PULL] Kbuild fixes for v5.9-rc6

2020-09-20 Thread pr-tracker-bot
The pull request you sent on Sun, 20 Sep 2020 13:01:27 +0900: > git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git > tags/kbuild-fixes-v5.9-3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/c7948fe9bada1b335de1cbe8a1fd02e2ccecaa6b Thank you! --

Re: [patch RFC 00/15] mm/highmem: Provide a preemptible variant of kmap_atomic & friends

2020-09-20 Thread Linus Torvalds
On Sun, Sep 20, 2020 at 10:42 AM Linus Torvalds wrote: > > Yeah, that looks much easier to explain. Ack. Btw, one thing that might be a good idea at least initially is to add a check for p->kmap_ctrl.idx being zero at fork, exit and maybe syscall return time (but that last one may be too

Re: [PATCH -next v2] crypto: caam: Convert to DEFINE_SHOW_ATTRIBUTE

2020-09-20 Thread Horia Geantă
On 9/18/2020 4:30 AM, Qinglang Miao wrote: > Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. > > Signed-off-by: Qinglang Miao Reviewed-by: Horia Geantă Thanks, Horia

Re: ledtrig-cpu: Limit to 4 CPUs

2020-09-20 Thread Jacek Anaszewski
On 9/20/20 7:33 PM, Marek Behun wrote: On Sun, 20 Sep 2020 18:55:28 +0200 Jacek Anaszewski wrote: On 9/20/20 5:39 PM, Marek Behun wrote: On Sun, 20 Sep 2020 16:15:09 +0200 Jacek Anaszewski wrote: Hi Pavel, On 9/19/20 11:38 AM, Pavel Machek wrote: commit

Re: [patch RFC 00/15] mm/highmem: Provide a preemptible variant of kmap_atomic & friends

2020-09-20 Thread Linus Torvalds
On Sun, Sep 20, 2020 at 10:40 AM Thomas Gleixner wrote: > > I think the more obvious solution is to split the whole exercise: > > schedule() > prepare_switch() > unmap() > > switch_to() > > finish_switch() > map() Yeah, that looks much easier to explain. Ack.

Re: [patch RFC 00/15] mm/highmem: Provide a preemptible variant of kmap_atomic & friends

2020-09-20 Thread Thomas Gleixner
On Sun, Sep 20 2020 at 09:57, Linus Torvalds wrote: > On Sun, Sep 20, 2020 at 1:49 AM Thomas Gleixner wrote: > Btw, looking at the stack code, Ithink your new implementation of it > is a bit scary: > >static inline int kmap_atomic_idx_push(void) >{ > - int idx =

Re: [PATCH v2] checkpatch: extend author Signed-off-by check for split From: header

2020-09-20 Thread Joe Perches
On Sun, 2020-09-20 at 14:47 +0530, Dwaipayan Ray wrote: > Checkpatch did not handle cases where the author From: header > was split into multiple lines. The author identity could not > be resolved and checkpatch generated a false NO_AUTHOR_SIGN_OFF > warning. > > A typical example is Commit

Re: ledtrig-cpu: Limit to 4 CPUs

2020-09-20 Thread Marek Behun
On Sun, 20 Sep 2020 18:55:28 +0200 Jacek Anaszewski wrote: > On 9/20/20 5:39 PM, Marek Behun wrote: > > On Sun, 20 Sep 2020 16:15:09 +0200 > > Jacek Anaszewski wrote: > > > >> Hi Pavel, > >> > >> On 9/19/20 11:38 AM, Pavel Machek wrote: > >>> commit 318681d3e019e39354cc6c2155a7fd1bb8e8084d

Re: [RFC PATCH] Use feature bit names in clearcpuid=

2020-09-20 Thread Borislav Petkov
On Sun, Sep 20, 2020 at 12:16:28PM -0400, Arvind Sankar wrote: > Allowing 13:24 as input would be icing on the cake :) Well, I'm kinda "meh" on that. Why, you ask? Well, whether the user multiplies two integers or the kernel does it for her/him, I'd prefer the user. But that's not even the

[GIT PULL] RISC-V Fixes for 5.9-rc6 (or shortly after)

2020-09-20 Thread Palmer Dabbelt
The following changes since commit d012a7190fc1fd72ed48911e77ca97ba4521bccd: Linux 5.9-rc2 (2020-08-23 14:08:43 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git tags/riscv-for-linus-5.9-rc6 for you to fetch changes up to

Re: [patch RFC 00/15] mm/highmem: Provide a preemptible variant of kmap_atomic & friends

2020-09-20 Thread Thomas Gleixner
On Sun, Sep 20 2020 at 10:23, Daniel Vetter wrote: > On Sun, Sep 20, 2020 at 08:23:26AM +0200, Thomas Gleixner wrote: >> On Sat, Sep 19 2020 at 12:37, Daniel Vetter wrote: >> > On Sat, Sep 19, 2020 at 12:35 PM Daniel Vetter wrote: >> >> I think it should be the case, but I want to double check:

Re: [patch RFC 00/15] mm/highmem: Provide a preemptible variant of kmap_atomic & friends

2020-09-20 Thread Linus Torvalds
On Sun, Sep 20, 2020 at 1:49 AM Thomas Gleixner wrote: > > Actually most usage sites of kmap atomic do not need page faults to be > disabled at all. Right. I think the pagefault disabling has (almost) nothing at all to do with the kmap() itself - it comes from the "atomic" part, not the "kmap"

Re: [PATCH] Staging list.h: Modified comment

2020-09-20 Thread Asif Rasheed
Everything looks good. Thank you! Regards, Asif Rasheed > On 20 Sep 2020, at 7:18 PM, Paul E. McKenney wrote: > > On Sun, Sep 20, 2020 at 05:31:54PM +0400, Asif Rasheed wrote: >> We (everyone from my Operating System Lecture Section) were confused on >> whether the list is circular or not

Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-20 Thread Andy Lutomirski
On Sat, Sep 19, 2020 at 7:57 PM Al Viro wrote: > > On Sat, Sep 19, 2020 at 05:14:41PM -0700, Andy Lutomirski wrote: > > > > 2) have you counted the syscalls that do and do not need that? > > > > No. > > Might be illuminating... > > > > 3) how many of those realistically *can* be unified with

Re: [PATCH -next v2] memory: emif: Convert to DEFINE_SHOW_ATTRIBUTE

2020-09-20 Thread Krzysztof Kozlowski
On Thu, Sep 17, 2020 at 08:51:13PM +0800, Qinglang Miao wrote: > Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. > > Along with this change, we get additionally: > .owner = THIS_MODULE, > .llseek = seq_lseek, > > 1. The llseek method is used to change the

Re: [PATCH -next v2] memory: tegra: Convert to DEFINE_SHOW_ATTRIBUTE

2020-09-20 Thread Krzysztof Kozlowski
On Thu, Sep 17, 2020 at 08:51:14PM +0800, Qinglang Miao wrote: > Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. > > Signed-off-by: Qinglang Miao > --- > v2: based on linux-next(20200917), and can be applied to > mainline cleanly now. > > drivers/memory/tegra/tegra124-emc.c | 14

Re: [PATCH v2] memory: dfl-emif: add the DFL EMIF private feature driver

2020-09-20 Thread Krzysztof Kozlowski
On Sun, Sep 20, 2020 at 06:35:38PM +0200, Krzysztof Kozlowski wrote: > On Wed, Sep 16, 2020 at 01:37:02PM +0800, Xu Yilun wrote: > > This driver is for the EMIF private feature implemented under FPGA > > Device Feature List (DFL) framework. It is used to expose memory > > interface status

Re: ledtrig-cpu: Limit to 4 CPUs

2020-09-20 Thread Jacek Anaszewski
On 9/20/20 5:39 PM, Marek Behun wrote: On Sun, 20 Sep 2020 16:15:09 +0200 Jacek Anaszewski wrote: Hi Pavel, On 9/19/20 11:38 AM, Pavel Machek wrote: commit 318681d3e019e39354cc6c2155a7fd1bb8e8084d Author: Pavel Machek Date: Sat Sep 19 11:34:58 2020 +0200 ledtrig-cpu: Limit to 4

Re: [PATCH v2] checkpatch: extend author Signed-off-by check for split From: header

2020-09-20 Thread Joe Perches
On Sun, 2020-09-20 at 21:52 +0530, Dwaipayan Ray wrote: > On Sun, Sep 20, 2020 at 8:39 PM Joe Perches wrote: > > On Sun, 2020-09-20 at 14:47 +0530, Dwaipayan Ray wrote: > > > Checkpatch did not handle cases where the author From: header > > > was split into multiple lines. The author identity

Re: [PATCH v35 01/13] Linux Random Number Generator

2020-09-20 Thread Stephan Mueller
Am Freitag, 18. September 2020, 15:02:17 CEST schrieb kernel test robot: Hi, > All errors (new ones prefixed by >>): > >> drivers/char/lrng/lrng_chacha20.c:33:8: error: structure variable > >> 'chacha20' with 'latent_entropy' attribute has a non-integer field > >> 'block' > 33 | struct

Re: [PATCH] watchdog: fix memory leak in error path

2020-09-20 Thread Christophe Leroy
Pavel Machek a écrit : Fix memory leak in error path. Signed-off-by: Pavel Machek (CIP) diff --git a/drivers/watchdog/watchdog_dev.c b/drivers/watchdog/watchdog_dev.c index 6798addabd5a..785270ee337c 100644 --- a/drivers/watchdog/watchdog_dev.c +++ b/drivers/watchdog/watchdog_dev.c @@

Re: [PATCH v3 00/14] Adding GAUDI NIC code to habanalabs driver

2020-09-20 Thread Daniel Vetter
On Wed, Sep 16, 2020 at 02:00:54PM +0200, Greg Kroah-Hartman wrote: > On Wed, Sep 16, 2020 at 11:47:58AM +0300, Oded Gabbay wrote: > > On Wed, Sep 16, 2020 at 11:21 AM Greg Kroah-Hartman > > wrote: > > > > > > On Wed, Sep 16, 2020 at 11:02:39AM +0300, Oded Gabbay wrote: > > > > On Wed, Sep 16,

Re: [PATCH v4 2/2] KVM: nSVM: implement ondemand allocation of the nested state

2020-09-20 Thread Paolo Bonzini
On 20/09/20 18:16, Sean Christopherson wrote: >> Maxim, your previous version was adding some error handling to >> kvm_x86_ops.set_efer. I don't remember what was the issue; did you have >> any problems propagating all the errors up to KVM_SET_SREGS (easy), >> kvm_set_msr (harder) etc.? > I

Re: [PATCH v2] memory: dfl-emif: add the DFL EMIF private feature driver

2020-09-20 Thread Krzysztof Kozlowski
On Wed, Sep 16, 2020 at 01:37:02PM +0800, Xu Yilun wrote: > This driver is for the EMIF private feature implemented under FPGA > Device Feature List (DFL) framework. It is used to expose memory > interface status information as well as memory clearing control. > > The purpose of memory clearing

[PATCH] mm/shmem.c: Fix the missing unaccount on the failed path

2020-09-20 Thread Tianjia Zhang
In function __shmem_file_setup(), shmem_unacct_size() is forgotten on the failed path, so add it. Fixes: 93dec2da7b234 ("... and switch shmem_file_setup() to alloc_file_pseudo()") Cc: Al Viro Signed-off-by: Tianjia Zhang --- mm/shmem.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)

[PATCH v7 06/10] crypto: testmgr - Fix potential memory leak in test_akcipher_one()

2020-09-20 Thread Tianjia Zhang
When the 'key' allocation fails, the 'req' will not be released, which will cause memory leakage on this path. This patch adds a 'free_req' tag used to solve this problem, and two new err values are added to reflect the real reason of the error. Signed-off-by: Tianjia Zhang --- crypto/testmgr.c

Re: [PATCH v2] checkpatch: extend author Signed-off-by check for split From: header

2020-09-20 Thread Dwaipayan Ray
On Sun, Sep 20, 2020 at 8:39 PM Joe Perches wrote: > > On Sun, 2020-09-20 at 14:47 +0530, Dwaipayan Ray wrote: > > Checkpatch did not handle cases where the author From: header > > was split into multiple lines. The author identity could not > > be resolved and checkpatch generated a false

[PATCH v7 09/10] X.509: support OSCCA SM2-with-SM3 certificate verification

2020-09-20 Thread Tianjia Zhang
The digital certificate format based on SM2 crypto algorithm as specified in GM/T 0015-2012. It was published by State Encryption Management Bureau, China. The method of generating Other User Information is defined as ZA=H256(ENTLA || IDA || a || b || xG || yG || xA || yA), it also specified in

Re: [PATCH v2] add the FPGA Device Feature List (DFL) EMIF support

2020-09-20 Thread Krzysztof Kozlowski
On Wed, Sep 16, 2020 at 01:37:01PM +0800, Xu Yilun wrote: > The patchsets "Modularization of DFL private feature drivers" & "add dfl > bus support to MODULE_DEVICE_TABLE()" are all queued to linux-next. So > there is no dependency now. What do you mean there is no dependency? The DFL is required

[PATCH v7 05/10] crypto: testmgr - support test with different ciphertext per encryption

2020-09-20 Thread Tianjia Zhang
Some asymmetric algorithms will get different ciphertext after each encryption, such as SM2, and let testmgr support the testing of such algorithms. In struct akcipher_testvec, set c and c_size to be empty, skip the comparison of the ciphertext, and compare the decrypted plaintext with m to

[PATCH v7 04/10] crypto: sm2 - introduce OSCCA SM2 asymmetric cipher algorithm

2020-09-20 Thread Tianjia Zhang
This new module implement the SM2 public key algorithm. It was published by State Encryption Management Bureau, China. List of specifications for SM2 elliptic curve public key cryptography: * GM/T 0003.1-2012 * GM/T 0003.2-2012 * GM/T 0003.3-2012 * GM/T 0003.4-2012 * GM/T 0003.5-2012 IETF:

[PATCH v7 02/10] lib/mpi: Extend the MPI library

2020-09-20 Thread Tianjia Zhang
Expand the mpi library based on libgcrypt, and the ECC algorithm of mpi based on libgcrypt requires these functions. Some other algorithms will be developed based on mpi ecc, such as SM2. Signed-off-by: Tianjia Zhang Tested-by: Xufeng Zhang --- include/linux/mpi.h| 87 +++

[PATCH v7 07/10] crypto: sm2 - add SM2 test vectors to testmgr

2020-09-20 Thread Tianjia Zhang
Add testmgr test vectors for SM2 algorithm. These vectors come from `openssl pkeyutl -sign` and libgcrypt. Signed-off-by: Tianjia Zhang Tested-by: Xufeng Zhang --- crypto/testmgr.c | 6 + crypto/testmgr.h | 59 2 files changed, 65

[PATCH v7 08/10] X.509: support OSCCA certificate parse

2020-09-20 Thread Tianjia Zhang
The digital certificate format based on SM2 crypto algorithm as specified in GM/T 0015-2012. It was published by State Encryption Management Bureau, China. This patch adds the OID object identifier defined by OSCCA. The x509 certificate supports SM2-with-SM3 type certificate parsing. It uses the

[PATCH v7 01/10] crypto: sm3 - export crypto_sm3_final function

2020-09-20 Thread Tianjia Zhang
Both crypto_sm3_update and crypto_sm3_finup have been exported, exporting crypto_sm3_final, to avoid having to use crypto_sm3_finup(desc, NULL, 0, dgst) to calculate the hash in some cases. Signed-off-by: Tianjia Zhang Tested-by: Xufeng Zhang --- crypto/sm3_generic.c | 7 ---

[PATCH v7 10/10] integrity: Asymmetric digsig supports SM2-with-SM3 algorithm

2020-09-20 Thread Tianjia Zhang
Asymmetric digsig supports SM2-with-SM3 algorithm combination, so that IMA can also verify SM2's signature data. Signed-off-by: Tianjia Zhang Tested-by: Xufeng Zhang Reviewed-by: Mimi Zohar Reviewed-by: Vitaly Chikunov --- security/integrity/digsig_asymmetric.c | 14 +++--- 1 file

[PATCH v7 00/10] crpyto: introduce OSCCA certificate and SM2 asymmetric algorithm

2020-09-20 Thread Tianjia Zhang
Hello all, This new module implement the OSCCA certificate and SM2 public key algorithm. It was published by State Encryption Management Bureau, China. List of specifications for OSCCA certificate and SM2 elliptic curve public key cryptography: * GM/T 0003.1-2012 * GM/T 0003.2-2012 * GM/T

[PATCH v7 03/10] lib/mpi: Introduce ec implementation to MPI library

2020-09-20 Thread Tianjia Zhang
The implementation of EC is introduced from libgcrypt as the basic algorithm of elliptic curve, which can be more perfectly integrated with MPI implementation. Some other algorithms will be developed based on mpi ecc, such as SM2. Signed-off-by: Tianjia Zhang Tested-by: Xufeng Zhang ---

[PATCH -next] checkpatch: Fix git "fatal" warning if file argument outside kernel tree

2020-09-20 Thread Joe Perches
commit bcf4271d4bc3 ("checkpatch: allow not using -f with files that are in git") in linux-next causes checkpatch to emit a fatal message: fatal: : '' is outside repository at '' Fix that by sending git's error output to /dev/null instead. Signed-off-by: Joe Perches Reported-by: Julia Lawall

Re: [RFC PATCH] Use feature bit names in clearcpuid=

2020-09-20 Thread Arvind Sankar
On Sun, Sep 20, 2020 at 05:42:28PM +0200, Borislav Petkov wrote: > Hi, > > so tglx hates this clearcpuid= interface where you have to give the > X86_FEATURE array indices in order to disable a feature bit for testing. > Below is a first attempt (lightly tested in a VM only) to accept the bit >

Re: [PATCH v4 2/2] KVM: nSVM: implement ondemand allocation of the nested state

2020-09-20 Thread Sean Christopherson
On Sat, Sep 19, 2020 at 05:09:09PM +0200, Paolo Bonzini wrote: > On 17/09/20 18:29, Sean Christopherson wrote: > >> + vcpu->arch.efer = old_efer; > >> + kvm_make_request(KVM_REQ_OUT_OF_MEMORY, vcpu); > > I really dislike KVM_REQ_OUT_OF_MEMORY.

Re: outside repository fatal error

2020-09-20 Thread Julia Lawall
On Sun, 20 Sep 2020, Joe Perches wrote: > On Sun, 2020-09-20 at 13:53 +0200, Julia Lawall wrote: > > The commit bcf4271d4bc3 ("checkpatch: allow not using -f with files that > > are in git") in linux-next seems to cause checkpatch to fail on a file > > containing a patch if that file is not in

Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-20 Thread Arnd Bergmann
On Sun, Sep 20, 2020 at 5:15 PM Matthew Wilcox wrote: > > On Fri, Sep 18, 2020 at 02:45:25PM +0200, Christoph Hellwig wrote: > > Add a flag to force processing a syscall as a compat syscall. This is > > required so that in_compat_syscall() works for I/O submitted by io_uring > > helper threads

Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-20 Thread William Kucharski
I really like that as it’s self-documenting and anyone debugging it can see what is actually being used at a glance. > On Sep 20, 2020, at 09:15, Matthew Wilcox wrote: > > On Fri, Sep 18, 2020 at 02:45:25PM +0200, Christoph Hellwig wrote: >> Add a flag to force processing a syscall as a

Re: [PATCH v2 2/2] Input: atmel_mxt_ts - wake mXT1386 from deep-sleep mode

2020-09-20 Thread Dmitry Osipenko
20.09.2020 17:36, Wang, Jiada пишет: > Hi Dmitry > > On 2020/09/20 23:21, Dmitry Osipenko wrote: >> 20.09.2020 16:13, Wang, Jiada пишет: >>> Hi Dmitry >>> >>> On 2020/09/20 15:02, Dmitry Torokhov wrote: On Sat, Sep 19, 2020 at 10:28 PM Wang, Jiada wrote: > > Hi Dmitry >

[RFC PATCH] Use feature bit names in clearcpuid=

2020-09-20 Thread Borislav Petkov
Hi, so tglx hates this clearcpuid= interface where you have to give the X86_FEATURE array indices in order to disable a feature bit for testing. Below is a first attempt (lightly tested in a VM only) to accept the bit names from /proc/cpuinfo too. I say "too" because not all feature bits have

Re: ledtrig-cpu: Limit to 4 CPUs

2020-09-20 Thread Marek Behun
On Sun, 20 Sep 2020 16:15:09 +0200 Jacek Anaszewski wrote: > Hi Pavel, > > On 9/19/20 11:38 AM, Pavel Machek wrote: > > commit 318681d3e019e39354cc6c2155a7fd1bb8e8084d > > Author: Pavel Machek > > Date: Sat Sep 19 11:34:58 2020 +0200 > > > > ledtrig-cpu: Limit to 4 CPUs > > > >

Re: [PATCH 08/14] xprtrdma: drop double zeroing

2020-09-20 Thread Chuck Lever
Thanks, Julia! > On Sep 20, 2020, at 7:26 AM, Julia Lawall wrote: > > sg_init_table zeroes its first argument, so the allocation of that argument > doesn't have to. > > the semantic patch that makes this change is as follows: > (http://coccinelle.lip6.fr/) > > // > @@ > expression x,n,flags;

Re: outside repository fatal error

2020-09-20 Thread Joe Perches
On Sun, 2020-09-20 at 13:53 +0200, Julia Lawall wrote: > The commit bcf4271d4bc3 ("checkpatch: allow not using -f with files that > are in git") in linux-next seems to cause checkpatch to fail on a file > containing a patch if that file is not in the directory containing the > Linux kernel.

Re: [PATCH] sgl_alloc_order: memory leak

2020-09-20 Thread Bart Van Assche
On 2020-09-19 22:36, Douglas Gilbert wrote: > Noticed that when sgl_alloc_order() failed with order > 0 that > free memory on my machine shrank. That function shouldn't call > sgl_free() on its error path since that is only correct when > order==0 . > > Signed-off-by: Douglas Gilbert > --- >

Re: [PATCH v1 05/12] fpga: enable secure updates

2020-09-20 Thread Tom Rix
On 9/18/20 6:10 PM, Russ Weight wrote: > > On 9/5/20 3:04 PM, Tom Rix wrote: >> On 9/4/20 4:52 PM, Russ Weight wrote: >>> Extend the FPGA Intel Security Manager class driver to >>> include an update/filename sysfs node that can be used >>> to initiate a security update. The filename of a secure

Re: [PATCH] Staging list.h: Modified comment

2020-09-20 Thread Paul E. McKenney
On Sun, Sep 20, 2020 at 05:31:54PM +0400, Asif Rasheed wrote: > We (everyone from my Operating System Lecture Section) were confused on > whether the list is circular or not (because no one bothered to look at the > implementation). Modified the comment on top for clarification. > >

Re: [PATCH 1/9] kernel: add a PF_FORCE_COMPAT flag

2020-09-20 Thread Matthew Wilcox
On Fri, Sep 18, 2020 at 02:45:25PM +0200, Christoph Hellwig wrote: > Add a flag to force processing a syscall as a compat syscall. This is > required so that in_compat_syscall() works for I/O submitted by io_uring > helper threads on behalf of compat syscalls. Al doesn't like this much, but my

KASAN: use-after-free Read in tcf_action_destroy

2020-09-20 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:0f9ad4e7 Merge branch 's390-qeth-next' git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=15fc675590 kernel config: https://syzkaller.appspot.com/x/.config?x=d29a102d22f784ea dashboard link:

<    1   2   3   4   5   >