[PATCH 2/5] Input: omap4-keypad - scan keys in two phases and simplify with bitmask

2021-01-10 Thread Tony Lindgren
Because of errata i689 the keyboard can idle with state where no key up interrupts are seen until after the next key press. This means we need to first check for any lost key up events before scanning for new down events. For example, rapidly pressing shift-shift-j can sometimes produce a J inste

[PATCH 4/5] Input: omap4-keypad - use PM runtime autosuspend

2021-01-10 Thread Tony Lindgren
Implement PM runtime autosuspend support to prepare for adding handling to clear stuck last pressed key in the following patches. The hardware has support for autoidle and can wake up to keypress events. Cc: Arthur Demchenkov Cc: Carl Philipp Klemm Cc: Merlijn Wajer Cc: Pavel Machek Cc: ruleh

Re: [PATCH] fpga: dfl: fme: Constify static attribute_group structs

2021-01-10 Thread Moritz Fischer
On Sat, Jan 09, 2021 at 05:40:38PM -0800, Tom Rix wrote: > > On 1/9/21 2:52 PM, Rikard Falkeborn wrote: > > On Sat, Jan 09, 2021 at 01:55:13PM -0800, Tom Rix wrote: > >> On 1/8/21 3:54 PM, Rikard Falkeborn wrote: > >>> The only usage of these is to put their addresses in arrays of pointers > >>> t

Re: [PATCH -next] fpga: Use DEFINE_SPINLOCK() for spinlock

2021-01-10 Thread Moritz Fischer
On Sat, Jan 09, 2021 at 02:08:53PM -0800, Tom Rix wrote: > > On 12/28/20 5:51 AM, Zheng Yongjun wrote: > > spinlock can be initialized automatically with DEFINE_SPINLOCK() > > rather than explicitly calling spin_lock_init(). > > > > Signed-off-by: Zheng Yongjun > > This looks fine. > > Reviewed

[PATCH 5/5] Input: omap4-keypad - implement errata check for lost key-up events

2021-01-10 Thread Tony Lindgren
We are still missing handling for errata i689 related issues for the case where we never see a key up interrupt for the last pressed key. To fix the issue, we must scan the key state again after the keyboard controller has idled to check if a key up event was missed. This is described in the omap4

[PATCH 3/5] Input: omap4-keypad - move rest of key scanning to a separate function

2021-01-10 Thread Tony Lindgren
Let's move rest of the key scanning code to omap4_keypad_scan_keys(). We will use omap4_keypad_scan_keys() also for implementing errata handling to clear the stuck last key in the following patch. Cc: Arthur Demchenkov Cc: Carl Philipp Klemm Cc: Merlijn Wajer Cc: Pavel Machek Cc: ruleh Cc: Se

[PATCH] kbuild: partial revert of "remove cc-option test of -Werror=date-time"

2021-01-10 Thread Paul Gortmaker
In commit 87de84c9140e1ccb221c68bb7e4939e880b3f2bb ("kbuild: remove cc-option test of -Werror=date-time") the check for support of the date-time option was removed. However, by removing it from the top level Makefile, it breaks all the normal compiler version checks, because GCC fails at the comma

Re: [EXT] Re: [PATCH RFC net-next 00/19] net: mvpp2: Add TX Flow Control support

2021-01-10 Thread Andrew Lunn
On Sun, Jan 10, 2021 at 06:55:11PM +, Stefan Chulski wrote: > > > not connected to the GOP flow control generation mechanism. > > > To solve this issue Armada has firmware running on CM3 CPU dedectated > > > for Flow Control support. Firmware monitors Packet Processor resources > > > and assert

RE: [EXT] Re: [PATCH RFC net-next 00/19] net: mvpp2: Add TX Flow Control support

2021-01-10 Thread Stefan Chulski
> > On Sun, Jan 10, 2021 at 06:55:11PM +, Stefan Chulski wrote: > > > > not connected to the GOP flow control generation mechanism. > > > > To solve this issue Armada has firmware running on CM3 CPU > > > > dedectated for Flow Control support. Firmware monitors Packet > > > > Processor resourc

Re: [EXT] Re: [PATCH RFC net-next 00/19] net: mvpp2: Add TX Flow Control support

2021-01-10 Thread Andrew Lunn
On Sun, Jan 10, 2021 at 07:11:53PM +, Stefan Chulski wrote: > > > > On Sun, Jan 10, 2021 at 06:55:11PM +, Stefan Chulski wrote: > > > > > not connected to the GOP flow control generation mechanism. > > > > > To solve this issue Armada has firmware running on CM3 CPU > > > > > dedectated fo

Re: Old platforms: bring out your dead

2021-01-10 Thread Arnd Bergmann
On Sun, Jan 10, 2021 at 7:12 PM Fabian Vogt wrote: > Am Samstag, 9. Januar 2021, 23:20:48 CET schrieb Arnd Bergmann: > > On Sat, Jan 9, 2021 at 1:06 AM Daniel Tang wrote: > > > > > > Hi Arnd, > > > > > > On 9 Jan 2021, at 9:55 am, Arnd Bergmann wrote: > > > > > > * nspire -- added in 2013, no no

[PATCH net ] net: mvpp2: Remove Pause and Asym_Pause support

2021-01-10 Thread stefanc
From: Stefan Chulski Packet Processor hardware not connected to MAC flow control unit and cannot support TX flow control. This patch disable flow control support. Fixes: 3f518509dedc ("ethernet: Add new driver for Marvell Armada 375 network unit") Signed-off-by: Stefan Chulski --- drivers/net

Re: [PATCH 0/1] mm: restore full accuracy in COW page reuse

2021-01-10 Thread Linus Torvalds
On Sat, Jan 9, 2021 at 7:51 PM Linus Torvalds wrote: > > COW is about "I'm about to write to this page, and that means I need > an _exclusive_ page so that I don't write to a page that somebody else > is using". So this kind of fundamentally explains why I hate the games we used to play wrt page_

Re: [PATCH 1/2] pinctrl: Add driver for Awinic AW9523/B I2C GPIO Expander

2021-01-10 Thread Linus Walleij
On Sun, Jan 10, 2021 at 3:32 PM AngeloGioacchino Del Regno wrote: > So, I've retried some basic usage of the regcache, relevant snippets here: > static bool aw9523_volatile_reg(struct device *dev, unsigned int reg) > { > > return reg == AW9523_REG_IN_STATE(0) || >reg == AW

Re: [PATCH 0/8] FPGA DFL Changes for 5.12

2021-01-10 Thread Tom Rix
On 1/10/21 9:05 AM, Moritz Fischer wrote: > Tom, > > On Sun, Jan 10, 2021 at 07:46:29AM -0800, Tom Rix wrote: >> On 1/7/21 8:09 AM, Tom Rix wrote: >>> On 1/6/21 8:37 PM, Moritz Fischer wrote: This is a resend of the previous (unfortunately late) patchset of changes for FPGA DFL. >>> Is

[PATCH] arm64: dts: rockchip: rename pinctrl nodename to gmac2io for nanopi-r2s board

2021-01-10 Thread Johan Jonker
A test with the command below gives this error: /arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dt.yaml: ethernet-phy: 'reg' is a required property The pinctrl nodename "ethernet-phy" conflicts with the rules in the "ethernet-phy.yaml" document, so rename it to "gmac2io". make ARCH=arm64 dtbs_che

Re: [PATCH 1/2] dt-bindings: arm: Convert nuvoton, npcm750 binding to YAML

2021-01-10 Thread Jonathan Neuschäfer
On Sun, Jan 10, 2021 at 11:18:46AM -0600, Rob Herring wrote: [...] > My bot found errors running 'make dt_binding_check' on your patch: > > yamllint warnings/errors: > ./Documentation/devicetree/bindings/arm/npcm/npcm.yaml:20:13: [warning] wrong > indentation: expected 14 but found 12 (indentatio

Re: Old platforms: bring out your dead

2021-01-10 Thread Andrew Lunn
On Sun, Jan 10, 2021 at 06:27:12PM +0100, Arnd Bergmann wrote: > On Sun, Jan 10, 2021 at 5:48 PM Andrew Lunn wrote: > > > > > For this platform, I'm most interested in whether there are still users > > > that rely on board files instead of DT. AFAIU we could just fold > > > the DT variant into arc

[PATCH 0/2] arm64: small Kontron K-Box A-230-LS fixes

2021-01-10 Thread Michael Walle
This will enable the driver for the PHY found on this board as well as add SATA support. Michael Walle (2): arm64: defconfig: Enable Broadcom BCM54140 PHY arm64: dts: freescale: sl28: enable SATA support .../boot/dts/freescale/fsl-ls1028a-kontron-kbox-a-230-ls.dts | 4 arch/arm64/confi

[PATCH 2/2] arm64: dts: freescale: sl28: enable SATA support

2021-01-10 Thread Michael Walle
With a newer bootloader SATA might be used in a mPCI slot using a mSATA card. Enable the SATA controller on the Kontron K-Box LS-230-A which comes with such a slot. Signed-off-by: Michael Walle --- .../boot/dts/freescale/fsl-ls1028a-kontron-kbox-a-230-ls.dts | 4 1 file changed, 4 insertio

[PATCH 1/2] arm64: defconfig: Enable Broadcom BCM54140 PHY

2021-01-10 Thread Michael Walle
Enable support for the QuadPHY on the Kontron K-Box A-230-LS. Enable the driver as a module. Signed-off-by: Michael Walle --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 3ca9d03d5cb3..feb3e8bfd

Re: [PATCH v5 0/2] UIO support for dfl devices

2021-01-10 Thread Moritz Fischer
Hi Xu, On Sat, Jan 02, 2021 at 11:13:00AM +0800, Xu Yilun wrote: > This patchset supports some dfl device drivers written in userspace. > > In the patchset v1, the "driver_override" interface should be used to bind > the DFL UIO driver to DFL devices. But there is concern that the > "driver_overr

Re: [PATCH 3/3] arm64: dts: rockchip: rk3328: Add Radxa ROCK Pi E

2021-01-10 Thread Heiko Stübner
Hi, Am Sonntag, 10. Januar 2021, 16:37:15 CET schrieb Chen-Yu Tsai: > > > + vcc_sd: sdmmc-regulator { > > > + compatible = "regulator-fixed"; > > > + gpio = <&gpio0 RK_PD6 GPIO_ACTIVE_LOW>; > > > + pinctrl-names = "default"; > > > + pinctrl-0 = <

Re: [PATCH v1] drm/panel: simple: add SGD GKTW70SDAD1SD

2021-01-10 Thread Oliver Graute
On 10/01/21, Fabio Estevam wrote: > Hi Oliver, > > On Sun, Jan 10, 2021 at 12:35 PM Oliver Graute > wrote: > > > the first two errors are gone. But I still get this: > > > > [ 42.387107] mxsfb 21c8000.lcdif: Cannot connect bridge: -517 > > > > The panel is still off perhaps I miss something e

Re: [GIT PULL] x86/urgent for v5.11-rc3

2021-01-10 Thread pr-tracker-bot
The pull request you sent on Sun, 10 Jan 2021 11:34:36 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > tags/x86_urgent_for_v5.11_rc3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/a440e4d7618cbe232e4f96dea805bcb89f79b18c Thank you! -- Deet-doot

Re: [GIT PULL] Please pull powerpc/linux.git powerpc-5.11-3 tag

2021-01-10 Thread pr-tracker-bot
The pull request you sent on Sun, 10 Jan 2021 23:54:30 +1100: > https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git > tags/powerpc-5.11-3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/b3cd1a16cc8829776523fcd114299373be4e5187 Thank you! -- Deet-doot-d

Re: [GIT PULL] ARC fixes for 5.11-rc3

2021-01-10 Thread pr-tracker-bot
The pull request you sent on Sun, 10 Jan 2021 18:49:21 +: > git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc.git/ > tags/arc-5.11-rc3-fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/0653161f0faca68b77b3f36fb4b4b9b8b07050e5 Thank you! -- Deet-doot-d

Re: [PATCH v5 1/2] fpga: dfl: add the userspace I/O device support for DFL devices

2021-01-10 Thread Moritz Fischer
On Sat, Jan 02, 2021 at 11:13:01AM +0800, Xu Yilun wrote: > This patch supports the DFL drivers be written in userspace. This is > realized by exposing the userspace I/O device interfaces. > > The driver leverages the uio_pdrv_genirq, it adds the uio_pdrv_genirq > platform device with the DFL devi

Re: [PATCH v2 -next] media: zoran: convert comma to semicolon

2021-01-10 Thread LABBE Corentin
Le Fri, Jan 08, 2021 at 05:21:19PM +0800, Zheng Yongjun a écrit : > Replace a comma between expression statements by a semicolon. > > Signed-off-by: Zheng Yongjun > --- > drivers/staging/media/zoran/zoran_driver.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/

Re: [kbuild] drivers/crypto/allwinner/sun8i-ss/sun8i-ss-hash.c:443 sun8i_ss_hash_run() warn: possible memory leak of 'result'

2021-01-10 Thread LABBE Corentin
Le Thu, Jan 07, 2021 at 04:12:36PM +0300, Dan Carpenter a écrit : > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > master > head: e71ba9452f0b5b2e8dc8aa5445198cd9214a6a62 > commit: d9b45418a91773b7672e4c60037a28074b495c6d crypto: sun8i-ss - support > hash algorith

Re: [PATCH 3/3] arm64: dts: rockchip: rk3328: Add Radxa ROCK Pi E

2021-01-10 Thread Johan Jonker
Hi Chen-Yu, Most is already answered by Heiko. On 1/10/21 4:37 PM, Chen-Yu Tsai wrote: > Hi, > > On Sun, Jan 10, 2021 at 10:45 PM Johan Jonker wrote: >> >> Hi Chen-Yu, >> >> Some comments, have a look if it is useful... >> >> On 1/10/21 4:58 AM, Chen-Yu Tsai wrote: >>> From: Chen-Yu Tsai >>> >

Re: [PATCH] Documentation: kbuild: Fix section reference

2021-01-10 Thread Masahiro Yamada
On Thu, Jan 7, 2021 at 8:42 PM Viresh Kumar wrote: > > Section 3.11 was incorrectly called 3.9, fix it. > > Signed-off-by: Viresh Kumar > --- > Documentation/kbuild/makefiles.rst | 2 +- Applied to linux-kbuild. Thanks. > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documen

[PATCH 0/3] drm/sun4i: de2/de3: CSC improvements

2021-01-10 Thread Jernej Skrabec
This short series reworks CSC handling to remove duplicated constants (patch 1 and 2) and adds BT2020 encoding to DE3 (patch 3). Please take a look. Best regards, Jernej Jernej Skrabec (3): drm/sun4i: csc: Rework DE3 CSC macros drm/sun4i: de2/de3: Remove redundant CSC matrices drm/sun4i: A

[PATCH 1/3] drm/sun4i: csc: Rework DE3 CSC macros

2021-01-10 Thread Jernej Skrabec
Rework DE3 CSC macros to take just one coordinate instead of two. This will make its usage easier in subsequent commit. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun8i_csc.c | 2 +- drivers/gpu/drm/sun4i/sun8i_mixer.h | 6 ++ 2 files changed, 3 insertions(+), 5 deletions(-)

[PATCH 2/3] drm/sun4i: de2/de3: Remove redundant CSC matrices

2021-01-10 Thread Jernej Skrabec
YUV to RGB matrices are almost identical to YVU to RGB matrices. They only have second and third column reversed. Do that reversion in code in order to lower amount of static data and redundancy. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun8i_csc.c | 99 +++

[PATCH 3/3] drm/sun4i: Add support for BT2020 to DE3

2021-01-10 Thread Jernej Skrabec
DE3 supports 10-bit formats, so it's only naturally to also support BT2020 encoding. Add support for it. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun8i_csc.c | 12 +++- drivers/gpu/drm/sun4i/sun8i_vi_layer.c | 2 ++ 2 files changed, 13 insertions(+), 1 deletion(-)

[GIT PULL] Kbuild fixes for v5.11-rc3

2021-01-10 Thread Masahiro Yamada
Hi Linus, Please pull some Kbuild fixes for v5.11-rc3 Thanks. The following changes since commit e71ba9452f0b5b2e8dc8aa5445198cd9214a6a62: Linux 5.11-rc2 (2021-01-03 15:55:30 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbui

Re: [PATCH] scripts: mod: fix checkpatch.pl warnings

2021-01-10 Thread Randy Dunlap
Hi, On 1/10/21 10:57 AM, Dwaipayan Ray wrote: > Fix the following warnings in file2alias reported by > checkpatch: > > CHECK: spaces preferred around that '*' (ctx:WxV) > CHECK: spaces preferred around that '+' (ctx:VxV) > CHECK: spaces preferred around that '-' (ctx:VxV) > CHECK: spaces preferre

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

2021-01-10 Thread Stephen Rothwell
Hi Chao, On Thu, 7 Jan 2021 19:28:19 +0800 Chao Yu wrote: > > On 2021/1/7 11:11, Stephen Rothwell wrote: > > > > After merging the f2fs tree, today's linux-next build (htmldocs) produced > > this warning: > > > > Documentation/ABI/testing/sysfs-fs-f2fs:382: WARNING: Inline emphasis > > start-s

[PATCH] Documentation: Replace lkml.org links with lore

2021-01-10 Thread Joe Perches
Replace the lkml.org links with lore to better use a single source that's more likely to stay available long-term. Done by bash script: cvt_lkml_to_lore () { tmpfile=$(mktemp ./.cvt_links.XXX) header=$(echo $1 | sed 's@/lkml/@/lkml/headers/@') wget -qO - $header > $tmpfile i

Re: [RFC v2] nvfs: a filesystem for persistent memory

2021-01-10 Thread Mikulas Patocka
On Sun, 10 Jan 2021, Al Viro wrote: > On Thu, Jan 07, 2021 at 08:15:41AM -0500, Mikulas Patocka wrote: > > Hi > > > > I announce a new version of NVFS - a filesystem for persistent memory. > > http://people.redhat.com/~mpatocka/nvfs/ > Utilities, AFAICS > > > git://leontynka.twibright

Re: Expense of read_iter

2021-01-10 Thread Mikulas Patocka
On Sun, 10 Jan 2021, Matthew Wilcox wrote: > > That is the reason for that 10% degradation with read_iter. > > You seem to be focusing on your argument for "let's just permit > filesystems to implement both ->read and ->read_iter". My suggestion > is that we need to optimise the ->read_iter p

[PATCH] arm64: dts: allwinner: h6: PineH64 model B: Add bluetooth

2021-01-10 Thread Jernej Skrabec
PineH64 model B has wifi+bt combo module. Wifi is already supported, so lets add also bluetooth node. Signed-off-by: Jernej Skrabec --- .../dts/allwinner/sun50i-h6-pine-h64-model-b.dts | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-p

Re: [GIT PULL] Staging driver fixes for 5.11-rc3

2021-01-10 Thread pr-tracker-bot
The pull request you sent on Sun, 10 Jan 2021 15:10:02 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git > tags/staging-5.11-rc3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/4ad9a28f56d70b950b1232151b2354636853727a Thank you! -- Deet-doot-

Re: [GIT PULL] USB driver fixes for 5.11-rc3

2021-01-10 Thread pr-tracker-bot
The pull request you sent on Sun, 10 Jan 2021 15:10:56 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git tags/usb-5.11-rc3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/28318f53503090fcd8fd27c49445396ea2ace44b Thank you! -- Deet-doot-dot, I am a

Re: [GIT PULL] SCSI fixes for 5.11-rc2

2021-01-10 Thread pr-tracker-bot
The pull request you sent on Sun, 10 Jan 2021 11:05:27 -0800: > git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git scsi-fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/688daed2e5daf0a1513effdc05ce3c56ade836f9 Thank you! -- Deet-doot-dot, I am a bot. ht

Re: [GIT PULL] Char/Misc driver fixes for 5.11-rc3

2021-01-10 Thread pr-tracker-bot
The pull request you sent on Sun, 10 Jan 2021 15:09:30 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git > tags/char-misc-5.11-rc3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/e07cd2f3e7e525fa8df334d11beceb4c1bdcc74e Thank you! -- Deet-d

Re: [GIT PULL] Kbuild fixes for v5.11-rc3

2021-01-10 Thread pr-tracker-bot
The pull request you sent on Mon, 11 Jan 2021 05:29:30 +0900: > git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git > tags/kbuild-fixes-v5.11 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/20210a98463e2abac31676ee141459fc23252927 Thank you! --

linux-next: build warning after merge of the scsi-fixes tree

2021-01-10 Thread Stephen Rothwell
Hi all, After merging the scsi-fixes tree, today's linux-next build (KCONFIG_NAME) produced this warning: Documentation/ABI/testing/sysfs-driver-ufs:915: WARNING: Malformed table. Text in column margin in table line 15. == 0 UFS device will

Re: kernel BUG at mm/vmalloc.c:LINE! (2)

2021-01-10 Thread syzbot
syzbot suspects this issue was fixed by commit: commit 537cf4e3cc2f6cc9088dcd6162de573f603adc29 Author: Magnus Karlsson Date: Fri Nov 20 11:53:39 2020 + xsk: Fix umem cleanup bug at socket destruct bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=139f3dfb50 start commi

Re: Old platforms: bring out your dead

2021-01-10 Thread Linus Walleij
On Sun, Jan 10, 2021 at 7:16 PM Fabian Vogt wrote: > Am Samstag, 9. Januar 2021, 23:20:48 CET schrieb Arnd Bergmann: > > On Sat, Jan 9, 2021 at 1:06 AM Daniel Tang wrote: > > > * nspire -- added in 2013, no notable changes after 2015 > > Most of the platform is just the DT sources and some small

Re: INFO: trying to register non-static key in l2cap_sock_teardown_cb

2021-01-10 Thread syzbot
syzbot has found a reproducer for the following issue on: HEAD commit:73b7a604 net: dsa: bcm_sf2: support BCM4908's integrated s.. git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=12ec4a48d0 kernel config: https://syzkaller.appspot.com/x/.config?x=9ce3412

Re: Old platforms: bring out your dead

2021-01-10 Thread Sam Ravnborg
Hi all, > Hi Arnd! > > (Please let's have this cross-posted for more visibility. I only learned > about this > while reading Phoronix news) > > > I also looked at non-ARM platforms while preparing for my article. Some of > > these look like they are no longer actively maintained or used, but I'

[PATCH] block/rnbd-clt: improve find_or_create_sess() return check

2021-01-10 Thread trix
From: Tom Rix clang static analysis reports this problem rnbd-clt.c:1212:11: warning: Branch condition evaluates to a garbage value else if (!first) ^~ This is triggered in the find_and_get_or_create_sess() call because the variable first is not initialized and th

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

2021-01-10 Thread Stephen Rothwell
Hi all, [Just cc'ing James] On Mon, 11 Jan 2021 08:31:45 +1100 Stephen Rothwell wrote: > > Hi all, > > After merging the scsi-fixes tree, today's linux-next build (KCONFIG_NAME) > produced this warning: > > Documentation/ABI/testing/sysfs-driver-ufs:915: WARNING: Malformed table. > Text in co

arch/powerpc/kernel/head_44x.S:601: Error: invalid operands and sections) for `|'

2021-01-10 Thread kernel test robot
Hi Christophe, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0653161f0faca68b77b3f36fb4b4b9b8b07050e5 commit: 03fd42d458fb9cb69e712600bd69ff77ff3a45a8 powerpc/fixmap: Fix FIX_EARLY_DEBUG_BASE when page size is 2

[drm:dm_plane_helper_prepare_fb [amdgpu]] *ERROR* Failed to pin framebuffer with error -12

2021-01-10 Thread Mikhail Gavrilov
Hi folks, today I joined to testing Kernel 5.11 and saw that the kernel log was flooded with BUG messages: BUG: sleeping function called from invalid context at mm/vmalloc.c:1756 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 266, name: kswapd0 INFO: lockdep is turned off. CPU: 15 PID: 266

linux-next: manual merge of the btrfs tree with the btrfs-fixes tree

2021-01-10 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the btrfs tree got conflicts in: fs/btrfs/inode.c fs/btrfs/space-info.c between commits: 3d45f221ce62 ("btrfs: fix deadlock when cloning inline extent and low on free metadata space") e076ab2a2ca7 ("btrfs: shrink delalloc pages instead of full inodes

ERROR: modpost: ".printk" undefined!

2021-01-10 Thread kernel test robot
Hi Marc, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 2ff90100ace886895e4fbb2850b8d5e49d931ed6 commit: 35556bed836f8dc07ac55f69c8d17dce3e7f0e25 HID: core: Sanitize event code and type when mapping input date:

[PATCH] rtc: opal: set range

2021-01-10 Thread Alexandre Belloni
It is a BCD RTC with 4 digits for the year. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-opal.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/rtc/rtc-opal.c b/drivers/rtc/rtc-opal.c index 7b9f8bcf86fe..c586f695bdc9 100644 --- a/drivers/rtc/rtc

[PATCH v7 04/28] coresight: tpiu: Prepare for using coresight device access abstraction

2021-01-10 Thread Suzuki K Poulose
Prepare the TPIU driver to make use of the CoreSight device access abstraction layer. The driver touches the device even before the coresight device is registered. Thus we could be accessing the devices without a csdev. As we are about to use the abstraction layer for accessing the device, pass in

[PATCH v7 01/28] coresight: etm4x: Handle access to TRCSSPCICRn

2021-01-10 Thread Suzuki K Poulose
TRCSSPCICR is present only if all of the following are true: TRCIDR4.NUMSSCC > n. TRCIDR4.NUMPC > 0b . TRCSSCSR.PC == 0b1 Add a helper function to check all the conditions. Cc: Mike Leach Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- Changes since

Linux 5.11-rc3

2021-01-10 Thread Linus Torvalds
So in the rc2 announcement notes I thought we might have a slow week for rc3 as well due to people just coming back from vacations and it taking some time for bug reports etc to start tricking in. That turned out to be the incoherent ramblings of a crazy old man. Because while the week started ou

[PATCH v7 12/28] coresight: etm4x: Hide sysfs attributes for unavailable registers

2021-01-10 Thread Suzuki K Poulose
Some of the management registers in ETMv4.x are not accessible via system register instructions. Thus we must hide the sysfs files exposing them to the userspace, to prevent system crashes. This patch adds an is_visible() routine to control the visibility at runtime for the registers that may not

[PATCH v7 08/28] coresight: etm4x: Convert all register accesses

2021-01-10 Thread Suzuki K Poulose
Convert all register accesses from etm4x driver to use a wrapper to allow switching the access at runtime with little overhead. co-developed by sed tool ;-), mostly equivalent to : s/readl\(_relaxed\)\?(drvdata->base + \(.*\))/etm4x_\1_read32(csdev, \2) s/writel\(_relaxed\)\?(\(.*\), drvdata->bas

[PATCH v7 11/28] coresight: etm4x: Add sysreg access helpers

2021-01-10 Thread Suzuki K Poulose
ETM architecture defines the system instructions for accessing via register accesses. Add basic support for accessing a given register via system instructions. We split the list of registers as : 1) Accessible only from memory mapped interface 2) Accessible from system register instructions. Al

[PATCH v7 00/28] coresight: etm4x: Support for system instructions

2021-01-10 Thread Suzuki K Poulose
CoreSight ETMv4.4 obsoletes memory mapped access to ETM and mandates the system instructions for registers. This also implies that they may not be on the amba bus. Right now all the CoreSight components are accessed via memory map. Also, we have some common routines in coresight generic code driver

[PATCH v7 03/28] coresight: Introduce device access abstraction

2021-01-10 Thread Suzuki K Poulose
We are about to introduce support for sysreg access to ETMv4.4+ component. Since there are generic routines that access the registers (e.g, CS_LOCK/UNLOCK , claim/disclaim operations, timeout) and in order to preserve the logic of these operations at a single place we introduce an abstraction layer

[PATCH v7 09/28] coresight: etm4x: Make offset available for sysfs attributes

2021-01-10 Thread Suzuki K Poulose
Some of the ETM management registers are not accessible via system instructions. Thus we need to filter accesses to these registers depending on the access mechanism for the ETM at runtime. The driver can cope with this for normal operation, by regular checks. But the driver also exposes them via s

[PATCH v7 14/28] coresight: etm4x: Check for Software Lock

2021-01-10 Thread Suzuki K Poulose
The Software lock is not implemented for system instructions based accesses. So, skip the lock register access in such cases. Cc: Mike Leach Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- Change since v6: - Fixed indentation --- .../coresight/coresight-etm4x-core.c

[PATCH v7 02/28] coresight: etm4x: Skip accessing TRCPDCR in save/restore

2021-01-10 Thread Suzuki K Poulose
When the ETM is affected by Qualcomm errata, modifying the TRCPDCR could cause the system hang. Even though this is taken care of during enable/disable ETM, the ETM state save/restore could still access the TRCPDCR. Make sure we skip the access during the save/restore. Found by code inspection. F

[PATCH v7 19/28] coresight: etm4x: Use TRCDEVARCH for component discovery

2021-01-10 Thread Suzuki K Poulose
We have been using TRCIDR1 for detecting the ETM version. This is in preparation for the future IP support. Cc: Mike Leach Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- .../coresight/coresight-etm4x-core.c | 46 +-- 1 file changed, 23 insertions(+),

[PATCH v7 15/28] coresight: etm4x: Cleanup secure exception level masks

2021-01-10 Thread Suzuki K Poulose
We rely on the ETM architecture version to decide whether Secure EL2 is available on the CPU for excluding the level for address comparators and viewinst main control register. We must instead use the TRCDIDR3.EXLEVEL_S field to detect the supported levels. Reviewed-by: Mathieu Poirier Signed-off

[PATCH v7 22/28] coresight: etm4x: Detect system instructions support

2021-01-10 Thread Suzuki K Poulose
ETM v4.4 onwards adds support for system instruction access to the ETM. Detect the support on an ETM and switch to using the mode when available. Cc: Mike Leach Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- .../coresight/coresight-etm4x-core.c | 39 +

[PATCH v7 13/28] coresight: etm4x: Define DEVARCH register fields

2021-01-10 Thread Suzuki K Poulose
Define the fields of the DEVARCH register for identifying a component as an ETMv4.x unit. Going forward, we use the DEVARCH register for the component identification, rather than the TRCIDR3. Cc: Mike Leach Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- .../coresight/coresigh

[PATCH v7 17/28] coresight: etm4x: Handle ETM architecture version

2021-01-10 Thread Suzuki K Poulose
We are about to rely on TRCDEVARCH for detecting the ETM and its architecture version, falling back to TRCIDR1 if the former is not implemented (in older broken implementations). Also, we use the architecture version information to make some decisions. Streamline the architecture version handling

[PATCH v7 26/28] dts: bindings: coresight: ETM system register access only units

2021-01-10 Thread Suzuki K Poulose
Document the bindings for ETMs with system register accesses. Cc: devicet...@vger.kernel.org Cc: Mathieu Poirier Cc: Mike Leach Acked-by: Rob Herring Signed-off-by: Suzuki K Poulose --- Documentation/devicetree/bindings/arm/coresight.txt | 5 - 1 file changed, 4 insertions(+), 1 deletion(

[PATCH v7 28/28] coresight: Add support for v8.4 SelfHosted tracing

2021-01-10 Thread Suzuki K Poulose
From: Jonathan Zhou v8.4 tracing extensions added support for trace filtering controlled by TRFCR_ELx. This must be programmed to allow tracing at EL1/EL2 and EL0. The timestamp used is the virtual time. Also enable CONTEXIDR_EL2 tracing if we are running the kernel at EL2. Cc: Catalin Marinas

[PATCH v7 05/28] coresight: Convert coresight_timeout to use access abstraction

2021-01-10 Thread Suzuki K Poulose
Convert the generic routines to use the new access abstraction layer gradually, starting with coresigth_timeout. Cc: Mike Leach Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- Changes since v4: - Remove stacking of parameters in coresight.h Changes since v3: - Fix style : sta

[PATCH v7 07/28] coresight: etm4x: Always read the registers on the host CPU

2021-01-10 Thread Suzuki K Poulose
As we are about to add support for sysreg access to ETM4.4+ components, make sure that we read the registers only on the host CPU. Cc: Mike Leach Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- .../coresight/coresight-etm4x-sysfs.c | 23 --- 1 file chan

[PATCH v7 16/28] coresight: etm4x: Clean up exception level masks

2021-01-10 Thread Suzuki K Poulose
etm4_get_access_type() calculates the exception level bits for use in address comparator registers. This is also used by the TRCVICTLR register by shifting to the required position. This patch cleans up the logic to make etm4_get_access_type() calcualte a generic mask which can be used by all user

[PATCH v7 24/28] coresight: etm4x: Run arch feature detection on the CPU

2021-01-10 Thread Suzuki K Poulose
As we are about to add support for system register based devices, we don't get an AMBA pid. So, the detection code could check the system registers running on the CPU to check for the architecture specific features. Thus we move the arch feature detection to run on the CPU. We cannot always read th

[PATCH v7 18/28] coresight: etm4x: Detect access early on the target CPU

2021-01-10 Thread Suzuki K Poulose
In preparation to detect the support for system instruction support, move the detection of the device access to the target CPU. Cc: Mike Leach Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- Changes since v3 - Name constructs etm4_xx instead of etm_** (Mathieu) --- .../coresi

[PATCH v7 25/28] coresight: etm4x: Add support for sysreg only devices

2021-01-10 Thread Suzuki K Poulose
Add support for devices with system instruction access only. They don't have a memory mapped interface and thus are not AMBA devices. System register access is not permitted to TRCPDCR and thus skip access to them. Cc: Mike Leach Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose ---

[PATCH v7 27/28] arm64: Add TRFCR_ELx definitions

2021-01-10 Thread Suzuki K Poulose
From: Jonathan Zhou Add definitions for the Arm v8.4 SelfHosted trace extensions registers. Acked-by: Catalin Marinas Cc: Will Deacon Acked-by: Mathieu Poirier Signed-off-by: Jonathan Zhou [ split the register definitions to separate patch rename some of the symbols ] Signed-off-by: Suzuki

[PATCH v7 10/28] coresight: etm4x: Add commentary on the registers

2021-01-10 Thread Suzuki K Poulose
As we are about define a switch..case table for individual register access by offset for implementing the system instruction support, document the possible set of registers for each group to make it easier to correlate. Cc: Mike Leach Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose

[PATCH v7 06/28] coresight: Convert claim/disclaim operations to use access wrappers

2021-01-10 Thread Suzuki K Poulose
Convert the generic CLAIM tag management APIs to use the device access layer abstraction. Cc: Mike Leach Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- Changes since V3: - Removed WARN_ON(!csdev) check. (Mathieu) - Fixed indentation (Mathieu) --- drivers/hwtracing/coresight

[PATCH v7 21/28] coresight: etm4x: Add necessary synchronization for sysreg access

2021-01-10 Thread Suzuki K Poulose
As per the specification any update to the TRCPRGCTLR must be synchronized by a context synchronization event (in our case an explicist ISB) before the TRCSTATR is checked. Cc: Mike Leach Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- drivers/hwtracing/coresight/coresight-etm

[PATCH v7 23/28] coresight: etm4x: Refactor probing routine

2021-01-10 Thread Suzuki K Poulose
CoreSight ETM with system register access may not have a memory mapped i/o access. Refactor the ETM specific probing into a common routine to allow reusing the code for such ETMs. Cc: Mike Leach Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- Changes since v4: - Refactor the "

[PATCH v7 20/28] coresight: etm4x: Expose trcdevarch via sysfs

2021-01-10 Thread Suzuki K Poulose
Expose the TRCDEVARCH register via the sysfs for component detection. Given that the TRCIDR1 may not completely identify the ETM component and instead need to use TRCDEVARCH, expose this via sysfs for tools to use it for identification. Cc: Mike Leach Reviewed-by: Mathieu Poirier Signed-off-by:

[PATCH 02/17] rtc: pl031: use RTC_FEATURE_ALARM

2021-01-10 Thread Alexandre Belloni
Clear RTC_FEATURE_ALARM instead of setting set_alarm, read_alarm and alarm_irq_enable to NULL. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-pl031.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/rtc/rtc-pl031.c b/drivers/rtc/rtc-pl031.c index 224bbf09

[PATCH 05/17] rtc: mv: remove mv_rtc_alarm_ops

2021-01-10 Thread Alexandre Belloni
Move the alarm callbacks in mv_rtc_ops and clear RTC_FEATURE_ALARM to signal that alarms are not available instead of having a supplementary struct rtc_class_ops. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-mv.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff

[PATCH 04/17] rtc: cmos: remove cmos_rtc_ops_no_alarm

2021-01-10 Thread Alexandre Belloni
Clear RTC_FEATURE_ALARM to signal that alarms are not available instead of having a supplementary struct rtc_class_ops with a NULL .set_alarm. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-cmos.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/rtc/

[PATCH 00/17] rtc: constify all rtc_class_ops

2021-01-10 Thread Alexandre Belloni
Hello, This first introduces a features bitfield that is used to handle the presence or absence of alarms instead of relying only on the presence of the alarm callbacks. The drivers modifying a struct rtc_class_ops or using two different structures are then converted. Alexandre Belloni (17): r

[PATCH 06/17] rtc: m48t59: remove m48t02_rtc_ops

2021-01-10 Thread Alexandre Belloni
Clear RTC_FEATURE_ALARM to signal that alarms are not available instead of having a supplementary struct rtc_class_ops without alarm callbacks. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-m48t59.c | 22 -- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git

[PATCH 07/17] rtc: pcf2127: remove pcf2127_rtc_alrm_ops

2021-01-10 Thread Alexandre Belloni
Move the alarm callbacks in pcf2127_rtc_ops and use RTC_FEATURE_ALARM to signal to the core whether alarms are available instead of having a supplementary struct rtc_class_ops without alarm callbacks. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-pcf2127.c | 11 +++ 1 file changed

[PATCH 11/17] rtc: m41t80: constify m41t80_rtc_ops

2021-01-10 Thread Alexandre Belloni
Use RTC_FEATURE_ALARM to signal to the core whether alarms are available instead of changing the global struct rtc_class_ops, allowing to make it const. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-m41t80.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git

[PATCH 03/17] rtc: armada38x: remove armada38x_rtc_ops_noirq

2021-01-10 Thread Alexandre Belloni
Clear RTC_FEATURE_ALARM to signal that alarms are not available instead of having a supplementary struct rtc_class_ops with a NULL .set_alarm. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-armada38x.c | 21 - 1 file changed, 4 insertions(+), 17 deletions(-) diff --git

[PATCH 09/17] rtc: rx8010: drop a struct rtc_class_ops

2021-01-10 Thread Alexandre Belloni
Merge both struct rtc_class_ops in a single one and use RTC_FEATURE_ALARM to signal to the core whether alarms are available. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-rx8010.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/rtc/rtc-rx8010.c

[PATCH 08/17] rtc: pcf85063: remove pcf85063_rtc_ops_alarm

2021-01-10 Thread Alexandre Belloni
Move the alarm callbacks in pcf85063_rtc_ops and use RTC_FEATURE_ALARM to signal to the core whether alarms are available instead of having a supplementary struct rtc_class_ops without alarm callbacks. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-pcf85063.c | 11 ++- 1 file chang

<    1   2   3   4   5   6   >