[tip:ras/core] BUILD SUCCESS 7bb39313cd6239e7eb95198950a02b4ad2a08316

2021-01-09 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git ras/core branch HEAD: 7bb39313cd6239e7eb95198950a02b4ad2a08316 x86/mce: Make mce_timed_out() identify holdout CPUs elapsed time: 892m configs tested: 122 configs skipped: 59 The following configs have been built

[PATCH] mm: Fix potential pte_unmap_unlock pte error

2021-01-09 Thread Miaohe Lin
Since commit 42e4089c7890 ("x86/speculation/l1tf: Disallow non privileged high MMIO PROT_NONE mappings"), when the first pfn modify is not allowed, we would break the loop with pte unchanged. Then the wrong pte - 1 would be passed to pte_unmap_unlock. Fixes: 42e4089c789 ("x86/speculation/l1tf:

[PATCH] mm/swap_slots.c: Remove unnecessary NULL pointer check

2021-01-09 Thread Miaohe Lin
The cache->slots and cache->slots_ret is already checked before we try to drain it. And kvfree can handle the NULL pointer itself. So remove the NULL pointer check here. Signed-off-by: Miaohe Lin --- mm/swap_slots.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git

[PATCH] MAINTAINERS: mark all linux-arm-kernel@infradead as moderated

2021-01-09 Thread Randy Dunlap
Consistently annotate all linux-arm-ker...@lists.infradead.org as moderated for non-subscribers. 132 entries are already annotated as moderated. Do the same for the other 28 entries. Signed-off-by: Randy Dunlap Cc: Russell King Cc: Andrew Morton Cc: linux-arm-ker...@lists.infradead.org ---

[PATCH] mm/compaction: Remove duplicated VM_BUG_ON_PAGE !PageLocked

2021-01-09 Thread Miaohe Lin
The VM_BUG_ON_PAGE(!PageLocked(page), page) is also done in PageMovable. Remove this explicitly one. Signed-off-by: Miaohe Lin --- mm/compaction.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/compaction.c b/mm/compaction.c index 02af220fb992..6d316eb99913 100644 --- a/mm/compaction.c

Re: [PATCH v2] ACPI: scan: Fix a Hyper-V Linux VM panic caused by buffer overflow

2021-01-09 Thread Jethro Beekman
On 2021-01-08 08:23, Dexuan Cui wrote: > Linux VM on Hyper-V crashes with the latest mainline: > > [4.069624] detected buffer overflow in strcpy > [4.077733] kernel BUG at lib/string.c:1149! > .. > [4.085819] RIP: 0010:fortify_panic+0xf/0x11 > ... > [4.085819] Call Trace: > [

general protection fault in io_sqe_files_unregister

2021-01-09 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:71c061d2 Merge tag 'for-5.11-rc2-tag' of git://git.kernel... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=17ec3f6750 kernel config: https://syzkaller.appspot.com/x/.config?x=8aa30b9da402d224

[RESEND, V2] i2c: mediatek: Move suspend and resume handling to NOIRQ phase

2021-01-09 Thread qii.wang
From: Qii Wang Some i2c device driver indirectly uses I2C driver when it is now being suspended. The i2c devices driver is suspended during the NOIRQ phase and this cannot be changed due to other dependencies. Therefore, we also need to move the suspend handling for the I2C controller driver to

[PULL REQUEST] i2c for 5.11

2021-01-09 Thread Wolfram Sang
Linus, here are three driver bugfixes for I2C. Buisness as usual. Please pull. Thanks, Wolfram The following changes since commit e71ba9452f0b5b2e8dc8aa5445198cd9214a6a62: Linux 5.11-rc2 (2021-01-03 15:55:30 -0800) are available in the Git repository at:

Re: [PATCH v8 04/20] dlb: add device ioctl layer and first three ioctls

2021-01-09 Thread Greg KH
On Sat, Jan 09, 2021 at 07:49:24AM +, Chen, Mike Ximing wrote: > > > +static int dlb_ioctl_arg_size[NUM_DLB_CMD] = { > > > + sizeof(struct dlb_get_device_version_args), > > > + sizeof(struct dlb_create_sched_domain_args), > > > + sizeof(struct dlb_get_num_resources_args) > > > > That list. >

Same symbol with EXPORT_SYMBOL and EXPORT_SYMBOL_GPL

2021-01-09 Thread Thomas Meyer
Hi, I have a question regarding EXPORT_SYMBOL vs. EXPORT_SYMBOL_GPL: I did stumble upon different export declarations between different architectures, e.g.: $ grep -r -e "EXPORT_SYMBOL[^(]*(" * | tr ":()" " " | sort -s -k 3 -k 2 | grep __virt_addr_valid arch/mips/mm/mmap.c EXPORT_SYMBOL_GPL

Re: [PATCH] arm/kasan:fix the arry size of kasan_early_shadow_pte

2021-01-09 Thread Ard Biesheuvel
(+ Linus) On Sat, 9 Jan 2021 at 05:50, Hailong liu wrote: > > From: Hailong Liu > > The size of kasan_early_shadow_pte[] now is PTRS_PER_PTE which defined to > 512 for arm architecture. This means that it only covers the prev Linux pte > entries, but not the HWTABLE pte entries for arm. > > The

[GIT PULL]: Generic phy fixes for v5.11

2021-01-09 Thread Vinod Koul
Hi Greg, Please pull to receive couple of driver fixes for generic phy subsystem. All these are in linux-next The following changes since commit 5c8fe583cce542aa0b84adc939ce85293de36e5e: Linux 5.11-rc1 (2020-12-27 15:30:22 -0800) are available in the Git repository at:

Re: [RFC PATCH 1/8] rcu: Remove superfluous rdp fetch

2021-01-09 Thread Greg KH
On Sat, Jan 09, 2021 at 03:05:29AM +0100, Frederic Weisbecker wrote: > Signed-off-by: Frederic Weisbecker > Cc: Paul E. McKenney > Cc: Rafael J. Wysocki > Cc: Peter Zijlstra > Cc: Thomas Gleixner > Cc: Ingo Molnar > --- > kernel/rcu/tree.c | 1 - > 1 file changed, 1 deletion(-) I know I

[GIT PULL]: dmaengine fixes for v5.11

2021-01-09 Thread Vinod Koul
Hello Linus, Please pull to receive fixes for dmaengine drivers. Odd fixes for few drivers. The following changes since commit 5c8fe583cce542aa0b84adc939ce85293de36e5e: Linux 5.11-rc1 (2020-12-27 15:30:22 -0800) are available in the Git repository at:

Re: [PATCH v2 6/6] iommu: Delete iommu_dev_has_feature()

2021-01-09 Thread Christoph Hellwig
On Thu, Jan 07, 2021 at 09:18:06AM +0800, Lu Baolu wrote: > The typical use case is > > if (iommu_dev_has_feature(dev, IOMMU_DEV_FEAT_AUX)) { > rc = iommu_dev_enable_feature(dev, IOMMU_DEV_FEAT_AUX); > if (rc < 0) { > dev_warn(dev,

[tip:x86/cleanups] BUILD SUCCESS 4af0e6e39b7ed77796a41537db91d717fedd0ac3

2021-01-09 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/cleanups branch HEAD: 4af0e6e39b7ed77796a41537db91d717fedd0ac3 x86/mm: Remove duplicate definition of _PAGE_PAT_LARGE elapsed time: 721m configs tested: 126 configs skipped: 61 The following configs have been built

Re: [PATCH 2/2] arm64: dts: renesas: Add usb2_clksel to RZ/G2 M/N/H

2021-01-09 Thread Geert Uytterhoeven
On Sat, Jan 9, 2021 at 10:29 AM Geert Uytterhoeven wrote: > On Fri, Jan 8, 2021 at 3:10 PM Geert Uytterhoeven > wrote: > > On Mon, Dec 28, 2020 at 9:22 PM Adam Ford wrote: > > > Per the reference manal for the RZ/G Series, 2nd Generation, > > > > manual > > > > > the RZ/G2M, RZ/G2N, and RZ/G2H

Re: [PATCH 2/2] arm64: dts: renesas: Add usb2_clksel to RZ/G2 M/N/H

2021-01-09 Thread Geert Uytterhoeven
On Fri, Jan 8, 2021 at 3:10 PM Geert Uytterhoeven wrote: > On Mon, Dec 28, 2020 at 9:22 PM Adam Ford wrote: > > Per the reference manal for the RZ/G Series, 2nd Generation, > > manual > > > the RZ/G2M, RZ/G2N, and RZ/G2H have a bit that can be set to > > choose between a crystal oscillator and

RE: [PATCH] ACPI: scan: Fix a Hyper-V Linux VM panic caused by buffer overflow

2021-01-09 Thread Dexuan Cui
> From: Andy Shevchenko > Sent: Saturday, January 9, 2021 12:52 AM >> >> Hi Rafael, Len, and all, >> Can you please take a look at the v2 patch? >> >> The Linux mainline has been broken for several weeks when it >> runs as a guest on Hyper-V, so we'd like this to be fixed ASAP, >> as more

ERROR: modpost: ".__gcov_init" undefined!

2021-01-09 Thread kernel test robot
Hi Madhavan, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: f5e6c330254ae691f6d7befe61c786eb5056007e commit: 3c9450c053f88e525b2db1e6990cdf34d14e7696 powerpc/perf: Fix missing is_sier_aviable() during build

[PATCH] PCI: decline to resize resources if boot config must be preserved

2021-01-09 Thread Ard Biesheuvel
The _DSM #5 method in the ACPI host bridge object tells us whether the OS is permitted to deviate from the resource assignment configured by the firmware. If this is not the case, we should not permit drivers to resize BARs on the fly. So make pci_resize_resource() take this into account. Cc: #

Re: [PATCH 18/18] ipu3: Add driver for dummy INT3472 ACPI device

2021-01-09 Thread Daniel Scally
On 09/01/2021 09:17, Andy Shevchenko wrote: > On Saturday, January 9, 2021, Daniel Scally wrote: > >> Hi Andy >> >> On 08/01/2021 12:17, Andy Shevchenko wrote: >>> On Fri, Jan 8, 2021 at 1:56 AM Daniel Scally >> wrote: On 30/11/2020 20:07, Andy Shevchenko wrote: > On Mon, Nov 30, 2020

Re: [PATCH 0/3] arm64: kasan: support CONFIG_KASAN_VMALLOC

2021-01-09 Thread Lecopzer Chen
Hi Ard, > On Fri, 8 Jan 2021 at 19:31, Andrey Konovalov wrote: > > > > On Sun, Jan 3, 2021 at 6:12 PM Lecopzer Chen wrote: > > > > > > Linux supports KAsan for VMALLOC since commit 3c5c3cfb9ef4da9 > > > ("kasan: support backing vmalloc space with real shadow memory") > > > > > > Acroding to how

[PATCH v2 2/4] arm64: kasan: abstract _text and _end to KERNEL_START/END

2021-01-09 Thread Lecopzer Chen
Arm64 provide defined macro for KERNEL_START and KERNEL_END, thus replace them by the abstration instead of using _text and _end. Signed-off-by: Lecopzer Chen --- arch/arm64/mm/kasan_init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/mm/kasan_init.c

[PATCH v2 0/4] arm64: kasan: support CONFIG_KASAN_VMALLOC

2021-01-09 Thread Lecopzer Chen
Linux supports KAsan for VMALLOC since commit 3c5c3cfb9ef4da9 ("kasan: support backing vmalloc space with real shadow memory") Acroding to how x86 ported it [1], they early allocated p4d and pgd, but in arm64 I just simulate how KAsan supports MODULES_VADDR in arm64 by not to populate the vmalloc

[PATCH v2 4/4] arm64: kaslr: support randomized module area with KASAN_VMALLOC

2021-01-09 Thread Lecopzer Chen
After KASAN_VMALLOC works in arm64, we can randomize module region into vmalloc area now. Test: VMALLOC area ffc01000 fffdf000 before the patch: module_alloc_base/end ffc008b8 ffc01000 after the patch:

[PATCH v2 3/4] arm64: Kconfig: support CONFIG_KASAN_VMALLOC

2021-01-09 Thread Lecopzer Chen
now we can backed shadow memory in vmalloc area, thus support KASAN_VMALLOC in KASAN_GENERIC mode. Signed-off-by: Lecopzer Chen --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 05e17351e4f3..ba03820402ee 100644 ---

[PATCH v2 1/4] arm64: kasan: don't populate vmalloc area for CONFIG_KASAN_VMALLOC

2021-01-09 Thread Lecopzer Chen
Linux support KAsan for VMALLOC since commit 3c5c3cfb9ef4da9 ("kasan: support backing vmalloc space with real shadow memory") Like how the MODULES_VADDR does now, just not to early populate the VMALLOC_START between VMALLOC_END. similarly, the kernel code mapping is now in the VMALLOC area and

[rcu:rcu/next] BUILD SUCCESS WITH WARNING cffdc9c7c24c0bcdd0c9735a8eaca2a39d5c1291

2021-01-09 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/next branch HEAD: cffdc9c7c24c0bcdd0c9735a8eaca2a39d5c1291 EXP sched: Print list of runnable tasks in the current rq Warning ids grouped by kconfigs: gcc_recent_errors `-- xtensa-randconfig-c004-20210108

Re: [PATCH 1/3] regulator: mt6360: Add OF match table

2021-01-09 Thread kernel test robot
in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/matthias-bgg-kernel-org/regulator-mt6360-Add-OF-match-table/20210109-101451 base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next config: x86_64-randconfig-a013-20210108

possible deadlock in input_event

2021-01-09 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:36bbbd0e Merge branch 'rcu/urgent' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=150148f750 kernel config: https://syzkaller.appspot.com/x/.config?x=8aa30b9da402d224

drivers/net/wan/fsl_ucc_hdlc.c:305:57: sparse: sparse: incorrect type in argument 2 (different address spaces)

2021-01-09 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 996e435fd401de35df62ac943ab9402cfe85c430 commit: 894fa235eb4ca0bfa692dbe4932c2f940cdc8c1e powerpc: inline iomap accessors date: 5 weeks ago config: powerpc-randconfig-s032-20210109 (attached as .config

Re: [PATCH] mmc: sdhci-iproc: Add ACPI bindings for the rpi4

2021-01-09 Thread Stefan Wahren
Hi Jeremy, +add Nicolas Am 08.01.21 um 22:13 schrieb Jeremy Linton: > The rpi4 has a Arasan controller it carries over > from the rpi3, and a newer eMMC2 controller. > Because of a couple "quirks" it seems wiser to bind > these controllers to the same driver that DT is using > on this platform

[PATCH v2 2/3] regulator: mt6358: Add OF match table

2021-01-09 Thread matthias . bgg
From: Matthias Brugger The binding documentation mentions that a compatible is required for the MT6358 device node. But the driver does not provide a OF match table. This way auto-loading is broken as the MFD driver that registers the device has a .of_compatible set which makes the platform

[PATCH v2 1/3] regulator: mt6360: Add OF match table

2021-01-09 Thread matthias . bgg
From: Matthias Brugger Binding documentation mentions that a compatible is required for the MT6360 device node, but the driver doesn't provide a OF match table. Fixes: d321571d5e4c ("regulator: mt6360: Add support for MT6360 regulator") Signed-off-by: Matthias Brugger --- Changes in v2: -

[PATCH v2 3/3] regulator: mt6323: Add OF match table

2021-01-09 Thread matthias . bgg
From: Matthias Brugger The binding documentation mentions that a compatible is required for the MT6323 device node. But the driver does not provide a OF match table. This way auto-loading is broken as the MFD driver that registers the device has a .of_compatible set which makes the platform

Re: [PATCH v3 2/2] misc: pvpanic: introduce module parameter 'events'

2021-01-09 Thread Greg KH
On Fri, Jan 08, 2021 at 04:26:17PM +0100, Paolo Bonzini wrote: > On 08/01/21 16:15, Greg KH wrote: > > On Fri, Jan 08, 2021 at 04:04:24PM +0100, Paolo Bonzini wrote: > > > On 08/01/21 15:07, Greg KH wrote: > > > > >static void __iomem *base; > > > > > +static unsigned int events =

[PATCH] evm: Fix memleak in init_desc

2021-01-09 Thread Dinghao Liu
When kmalloc() fails, tmp_tfm allocated by crypto_alloc_shash() has not been freed, which leads to memleak. Fixes: d46eb3699502b ("evm: crypto hash replaced by shash") Signed-off-by: Dinghao Liu --- security/integrity/evm/evm_crypto.c | 9 +++-- 1 file changed, 7 insertions(+), 2

possible deadlock in evdev_pass_values

2021-01-09 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:6207214a Merge tag 'afs-fixes-04012021' of git://git.kerne.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=16558750d0 kernel config: https://syzkaller.appspot.com/x/.config?x=8aa30b9da402d224

[PATCH] netfilter: Fix memleak in nf_nat_init

2021-01-09 Thread Dinghao Liu
When register_pernet_subsys() fails, nf_nat_bysource should be freed just like when nf_ct_extend_register() fails. Fixes: 1cd472bf036ca ("netfilter: nf_nat: add nat hook register functions to nf_nat") Signed-off-by: Dinghao Liu --- net/netfilter/nf_nat_core.c | 1 + 1 file changed, 1

Re: [PATCH] netfilter: Fix memleak in nf_nat_init

2021-01-09 Thread Florian Westphal
Dinghao Liu wrote: > When register_pernet_subsys() fails, nf_nat_bysource > should be freed just like when nf_ct_extend_register() > fails. Acked-by: Florian Westphal

[PATCH v3] staging: media: rkvdec: rkvdec.c: Use semicolon in place of comma

2021-01-09 Thread Sri Laasya Nutheti
Line 146 had a comma in place of a semicolon. Fix it. Signed-off-by: Sri Laasya Nutheti --- v3: Corrected email recipients drivers/staging/media/rkvdec/rkvdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/rkvdec/rkvdec.c

Re: [PATCH v4 mips-next 0/7] MIPS: vmlinux.lds.S sections fixes & cleanup

2021-01-09 Thread Thomas Bogendoerfer
On Thu, Jan 07, 2021 at 12:33:38PM +, Alexander Lobakin wrote: > This series hunts the problems discovered after manual enabling of > ARCH_WANT_LD_ORPHAN_WARN. Notably: > - adds the missing PAGE_ALIGNED_DATA() section affecting VDSO >placement (marked for stable); > - properly stops

Is Trump dead?

2021-01-09 Thread nipponmail
Is Trump dead? He never made it to the Capitol, was he killed? There's radio silence now. As a linux Kernel dev how does this make you feel?

Grsecurity GPL Violations: Linus/FSF/SFConservancy won't defend. Claw back your copyrights. BSD-in-Practice was not the deal.

2021-01-09 Thread nipponmail
Silence is consent. Are there FOSS developers making decent money via Patreon, GoFundMe, whatever? Yes, Grsecurity is making good money. They simply added a no-redistribution agreement to their patch of the Linux Kernel. (

Re: [PATCH v2 4.9 00/10] fix a race in release_task when flushing the dentry

2021-01-09 Thread Greg Kroah-Hartman
On Fri, Jan 08, 2021 at 10:42:47AM +0800, Wen Yang wrote: > > > 在 2021/1/8 上午2:28, Greg Kroah-Hartman 写道: > > On Fri, Jan 08, 2021 at 12:21:38AM +0800, Wen Yang wrote: > > > > > > > > > 在 2021/1/7 下午8:17, Greg Kroah-Hartman 写道: > > > > On Thu, Jan 07, 2021 at 03:52:12PM +0800, Wen Yang wrote:

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

2021-01-09 Thread Ezequiel Garcia
On Fri, 2021-01-08 at 17:22 +0800, Zheng Yongjun wrote: > Replace a comma between expression statements by a semicolon. > > Signed-off-by: Zheng Yongjun > --- >  drivers/staging/media/rkvdec/rkvdec.c | 2 +- >  1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [PATCH v3] staging: media: rkvdec: rkvdec.c: Use semicolon in place of comma

2021-01-09 Thread Ezequiel Garcia
On Sat, 2021-01-09 at 17:43 +0530, Sri Laasya Nutheti wrote: > Line 146 had a comma in place of a semicolon. Fix it. > > Signed-off-by: Sri Laasya Nutheti > --- > v3: Corrected email recipients >  drivers/staging/media/rkvdec/rkvdec.c | 2 +- >  1 file changed, 1 insertion(+), 1 deletion(-) > >

BUG: key ffff8b521bda9148 has not been registered!

2021-01-09 Thread Mikhail Gavrilov
Hi folks! I started to see this message every boot after replacing Radeon VII to 6900XT. $ journalctl | grep "BUG: key" Dec 31 05:19:42 localhost.localdomain kernel: BUG: key 98b59ab01148 has not been registered! Dec 31 05:25:44 localhost.localdomain kernel: BUG: key 8d425ba01148 has not

[PATCH 3/8] i2c: remove licence boilerplate from i2c-dev UAPI header

2021-01-09 Thread Wolfram Sang
Remove boilerplate because we now have the SPDX header. Signed-off-by: Wolfram Sang --- include/uapi/linux/i2c-dev.h | 25 + 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/include/uapi/linux/i2c-dev.h b/include/uapi/linux/i2c-dev.h index

[PATCH 0/8] i2c: improve RECV_LEN documentation & usage

2021-01-09 Thread Wolfram Sang
Because I want to clarify I2C_M_RECV len usage, this series updates the documentation and some of its users. Patch 1 refactors the whole documentation of 'i2c_msg', so all usage of I2C_M_* flags and their conditions hopefully become clearer. Patch 2+3 remove some obvious boilerplate in the UAPI

[PATCH 4/8] i2c: octeon: check correct size of maximum RECV_LEN packet

2021-01-09 Thread Wolfram Sang
I2C_SMBUS_BLOCK_MAX defines already the maximum number as defined in the SMBus 2.0 specs. No reason to add one to it. Fixes: 886f6f8337dd ("i2c: octeon: Support I2C_M_RECV_LEN") Signed-off-by: Wolfram Sang --- drivers/i2c/busses/i2c-octeon-core.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 5/8] i2c: uapi: add macro to describe support for all SMBus transfers

2021-01-09 Thread Wolfram Sang
Some I2C bus master drivers which support I2C_M_RECV_LEN do not set the functionality bits of the now supported SMBus transfers. Add a convenience macro to make this very simple. Signed-off-by: Wolfram Sang --- include/uapi/linux/i2c.h | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH 2/8] i2c: remove licence boilerplate from main UAPI header

2021-01-09 Thread Wolfram Sang
Remove boilerplate because we now have the SPDX header. Signed-off-by: Wolfram Sang --- include/uapi/linux/i2c.h | 32 +++- 1 file changed, 7 insertions(+), 25 deletions(-) diff --git a/include/uapi/linux/i2c.h b/include/uapi/linux/i2c.h index

Re: [PATCH 4.19 0/8] 4.19.166-rc1 review

2021-01-09 Thread Greg Kroah-Hartman
On Thu, Jan 07, 2021 at 06:58:01PM +0100, Pavel Machek wrote: > Hi! > > > This is the start of the stable review cycle for the 4.19.166 release. > > There are 8 patches in this series, all will be posted as a response > > to this one. If anyone has any issues with these being applied, please > >

[PATCH 1/8] i2c: refactor documentation of struct i2c_msg

2021-01-09 Thread Wolfram Sang
The information about 'i2c_msg' was spread between kdoc and comments. Move all the explanations to kdoc and duplicate only the requirements for the flags in the comments. Also, add some redundancy and fix some typos while here. Signed-off-by: Wolfram Sang --- include/uapi/linux/i2c.h | 91

[PATCH 6/8] i2c: algo: bit: use new macro to specifiy capabilities

2021-01-09 Thread Wolfram Sang
Let's use the new macro for emulating SMBus with RECV_LEN support. Signed-off-by: Wolfram Sang --- drivers/i2c/algos/i2c-algo-bit.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/i2c/algos/i2c-algo-bit.c b/drivers/i2c/algos/i2c-algo-bit.c index

[PATCH 8/8] i2c: s3c2410: advertise SMBus transfers using RECV_LEN

2021-01-09 Thread Wolfram Sang
This driver implements I2C_M_RECV_LEN, so it can advertise the SMBus transfers needing it. This also enables client devices to check for the RECV_LEN capability. Signed-off-by: Wolfram Sang --- drivers/i2c/busses/i2c-s3c2410.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 7/8] i2c: qup: advertise SMBus transfers using RECV_LEN

2021-01-09 Thread Wolfram Sang
This driver implements I2C_M_RECV_LEN, so it can advertise the SMBus transfers needing it. This also enables client devices to check for the RECV_LEN capability. Signed-off-by: Wolfram Sang --- drivers/i2c/busses/i2c-qup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

KMSAN: uninit-value in __crypto_memneq (2)

2021-01-09 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:73d62e81 kmsan: random: prevent boot-time reports in _mix_.. git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=142ab9c0d0 kernel config:

possible deadlock in fasync_remove_entry

2021-01-09 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:f5e6c330 Merge tag 'spi-fix-v5.11-rc2' of git://git.kernel.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1639f3a8d0 kernel config: https://syzkaller.appspot.com/x/.config?x=8aa30b9da402d224

[PATCH] drm/panel: panel-simple: add bus-format and connector-type to Innolux n116bge

2021-01-09 Thread Heiko Stuebner
From: Heiko Stuebner The Innolux n116bge panel has an eDP connector and 3*6 bits bus format. Signed-off-by: Heiko Stuebner --- drivers/gpu/drm/panel/panel-simple.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c

fs/f2fs/gc.c:622:12: warning: stack frame size of 3056 bytes in function 'get_victim_by_default'

2021-01-09 Thread kernel test robot
months ago config: powerpc-randconfig-r033-20210109 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project bc556e5685c0f97e79fb7b3c6f15cc5062db8e36) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin

[PATCH] staging: greybus: audio_helper.c: Replace strlcpy() with strscpy()

2021-01-09 Thread B K Karthik
In gbaudio_remove_controls() , replace the usage of strlcpy() with strscpy() because strlcpy() only limits the *destination* size, and the source is always read fully. https://lore.kernel.org/r/CAHk-=wgfRnXz0W3D37d01q3JFkr_i_uTL=v6a6g1ouzcprm...@mail.gmail.com/ was quoted by checkpatch while

[PATCH 5/7] regulator: qcom-labibb: Implement short-circuit and over-current IRQs

2021-01-09 Thread AngeloGioacchino Del Regno
Short-Circuit Protection (SCP) and Over-Current Protection (OCP) are very important for regulators like LAB and IBB, which are designed to provide from very small to relatively big amounts of current to the device (normally, a display). Now that this regulator supports both voltage setting and

[PATCH 0/7] Really implement Qualcomm LAB/IBB regulators

2021-01-09 Thread AngeloGioacchino Del Regno
Okay, the title may be a little "aggressive"? However, the qcom-labibb driver wasn't really .. doing much. The current form of this driver is only taking care of enabling or disabling the regulators, which is pretty useless if they were not pre-set from the bootloader, which sets them only if

[PATCH 1/7] regulator: qcom-labibb: Implement voltage selector ops

2021-01-09 Thread AngeloGioacchino Del Regno
Implement {get,set}_voltage_sel, list_voltage, map_voltage with the useful regulator regmap helpers in order to be able to manage the voltage of LAB (positive) and IBB (negative) regulators. In particular, the supported ranges are the following: - LAB (pos): 4600mV to 6100mV with 100mV

[PATCH 7/7] arm64: dts: pmi8998: Add the right interrupts for LAB/IBB SCP and OCP

2021-01-09 Thread AngeloGioacchino Del Regno
In commit 208921bae696 ("arm64: dts: qcom: pmi8998: Add nodes for LAB and IBB regulators") bindings for the lab/ibb regulators were added to the pmi8998 dt, but the original committer has never specified what the interrupts were for. LAB and IBB regulators provide two interrupts, SC-ERR (short

[PATCH 4/7] dt-bindings: regulator: qcom-labibb: Document soft start properties

2021-01-09 Thread AngeloGioacchino Del Regno
Document properties to configure soft start and discharge resistor for LAB and IBB respectively. Signed-off-by: AngeloGioacchino Del Regno --- .../bindings/regulator/qcom-labibb-regulator.yaml | 8 1 file changed, 8 insertions(+) diff --git

[PATCH 2/7] regulator: qcom-labibb: Implement current limiting

2021-01-09 Thread AngeloGioacchino Del Regno
LAB and IBB regulators can be current-limited by setting the appropriate registers, but this operation is granted only after sending an unlock code for secure access. Besides the secure access, it would be possible to use the regmap helper for get_current_limit, as there is no security blocking

[PATCH 6/7] dt-bindings: regulator: qcom-labibb: Document SCP/OCP interrupts

2021-01-09 Thread AngeloGioacchino Del Regno
Short-Circuit Protection (SCP) and Over-Current Protection (OCP) are now implemented in the driver: document the interrupts. This also fixes wrong documentation about the SCP interrupt for LAB. Signed-off-by: AngeloGioacchino Del Regno --- .../regulator/qcom-labibb-regulator.yaml | 20

[PATCH 3/7] regulator: qcom-labibb: Implement pull-down, softstart, active discharge

2021-01-09 Thread AngeloGioacchino Del Regno
Soft start is required to avoid inrush current during LAB ramp-up and IBB ramp-down, protecting connected hardware to which we supply voltage. Since soft start is configurable on both LAB and IBB regulators, it was necessary to add two DT properties, respectively "qcom,soft-start-us" to control

[PATCH 1/9] drm/msm/dpu: Fix VBIF_XINL_QOS_LVL_REMAP_000 register offset

2021-01-09 Thread AngeloGioacchino Del Regno
On DPUs prior to version 4 the VBIF_XINL_QOS_LVL_REMAP_000 register is at 0x570 offset from vbif base instead of 0x590, due to the VBIF_XINL_QOS_RP_REMAP_000 having less instances (less possible XINs). Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_vbif.c |

[PATCH 8/9] drm/msm/dpu: Add a function to retrieve the current CTL status

2021-01-09 Thread AngeloGioacchino Del Regno
Add a function that returns whether the requested CTL is active or not: this will be used in a later commit to fix command mode panel issues. Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c | 6 ++ drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.h | 7

[PATCH 4/9] drm/msm/dpu1: Allow specifying features and sblk in DSPP_BLK macro

2021-01-09 Thread AngeloGioacchino Del Regno
The DSPP_BLK macro was ad-hoc made for SC7180, but this is wrong because not all of the DPU DSPP versions can use the same DSPP block configuration, and not all of them have got the same features. For this reason, add two more params to the DSPP_BLK macro, so that it is possible to specify the

[PATCH 2/9] drm/msm/dpu1: Move DPU_SSPP_QOS_8LVL bit to SDM845 and SC7180 masks

2021-01-09 Thread AngeloGioacchino Del Regno
Not all DPU versions that are supported in this driver are supposed to have a 8-Levels VIG QoS setting. Move this flag to SDM845 and SC7180 specific masks. Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 6 +++--- 1 file changed, 3 insertions(+),

[PATCH 0/9] Qualcomm DRM DPU fixes

2021-01-09 Thread AngeloGioacchino Del Regno
This patch series brings some fixes to the Qualcomm DPU driver, aim is to get it prepared for "legacy" SoCs (like MSM8998, SDM630/660) and to finally get command-mode displays working on this driver. The series was tested against MSM8998 (the commit that introduces it to the hw-catalog is not

[PATCH 5/9] drm/msm/dpu: Disable autorefresh in command mode

2021-01-09 Thread AngeloGioacchino Del Regno
When a command mode display is used, it may be retaining the bootloader configuration which, in most of the cases, enables the autorefresh feature in order to keep the splash up. Since there is no autorefresh management in this driver, wire up the autorefresh ops in the dpu_hw_pingpong and

[PATCH 6/9] drm/msm/dpu: Correctly configure vsync tearcheck for command mode

2021-01-09 Thread AngeloGioacchino Del Regno
When configuring the tearcheck, the parameters for the engine were being set mostly as they should've been, but then it wasn't getting configured to get the vsync indication from the TE GPIO input because it was assumed that autorefresh could be enabled: since a previous commit makes sure to

[PATCH 3/9] drm/msm/dpu1: Add prog_fetch_lines_worst_case to INTF_BLK macro

2021-01-09 Thread AngeloGioacchino Del Regno
Not all DPU interface sub-block versions need the same value for prog_fetch_lines_worst_case: add this to the INTF_BLK macro, so that it becomes possible to vary it for other INTF versions. For example, this is needed to implement support for older SoCs, like MSM8998 and SDM630/660 and most

[PATCH 7/9] drm/msm/dpu: Remove unused call in wait_for_commit_done

2021-01-09 Thread AngeloGioacchino Del Regno
The call to dpu_encoder_phys_cmd_prepare_for_kickoff is useless as it's unused because the serialize_wait4pp variable is never set to true by .. anything, literally: remove the call. While at it, also reduce indentation by inverting the check for dpu_encoder_phys_cmd_is_master. Signed-off-by:

[PATCH 9/9] drm/msm/dpu: Fix timeout issues on command mode panels

2021-01-09 Thread AngeloGioacchino Del Regno
In function dpu_encoder_phys_cmd_wait_for_commit_done we are always checking if the relative CTL is started by waiting for an interrupt to fire: it is fine to do that, but then sometimes we call this function while the CTL is up and has never been put down, but that interrupt gets raised only when

Re: [PATCH 2/2] ARM: dts: rockchip: add extra cpu opp points to rk3288-miqi

2021-01-09 Thread Heiko Stübner
Hi Demetris, Am Freitag, 8. Januar 2021, 16:10:36 CET schrieb Demetris Ierokipides: > Add extra 1.7GHz and 1.8GHz opp points to the MiQi device-tree to improve > performance. > > Signed-off-by: Demetris Ierokipides > --- > arch/arm/boot/dts/rk3288-miqi.dts | 12 > 1 file changed,

[PATCH] drm/msm/a5xx: Allow all patchid for A540 chip

2021-01-09 Thread AngeloGioacchino Del Regno
On at least MSM8998 it's possible to find Adreno 540.0 and 540.1 but I have never found any 540.2. In any case, the patchids 0-1 for A540 are completely supported by this driver and there is no reason to disallow probing them (as they also share the same firmware names). Besides that, the patchid

[PATCH 0/9] Clock fixes for MSM8998 GCC, MMCC, GPUCC

2021-01-09 Thread AngeloGioacchino Del Regno
This patch series fixes some issues with the MSM8998 clocks and, in particular, brings a very important fix to the GCC PLLs. These fixes are enhancing this SoC's stability and also makes it possible to eventually enable the Adreno GPU (with proper clock scaling) and other components. This patch

[PATCH 1/9] clk: qcom: gcc-msm8998: Wire up gcc_mmss_gpll0 clock

2021-01-09 Thread AngeloGioacchino Del Regno
This clock enables the GPLL0 output to the multimedia subsystem clock controller. Signed-off-by: AngeloGioacchino Del Regno --- drivers/clk/qcom/gcc-msm8998.c | 17 + include/dt-bindings/clock/qcom,gcc-msm8998.h | 1 + 2 files changed, 18 insertions(+) diff

[PATCH 2/9] clk: qcom: gcc-msm8998: Add missing hmss_gpll0_clk_src clock

2021-01-09 Thread AngeloGioacchino Del Regno
To achieve CPR-Hardened functionality this clock must be on: add it in order to be able to get it managed by the CPR3 driver. Signed-off-by: AngeloGioacchino Del Regno --- drivers/clk/qcom/gcc-msm8998.c | 20 include/dt-bindings/clock/qcom,gcc-msm8998.h | 1

[PATCH 4/9] clk: qcom: gcc-msm8998: Fix Alpha PLL type for all GPLLs

2021-01-09 Thread AngeloGioacchino Del Regno
All of the GPLLs in the MSM8998 Global Clock Controller are Fabia PLLs and not generic alphas: this was producing bad effects over the entire clock tree of MSM8998, where any GPLL child clock was declaring a false clock rate, due to their parent also showing the same. The issue resides in the

[PATCH 7/9] clk: qcom: mmcc-msm8998: Set bimc_smmu_gdsc always on

2021-01-09 Thread AngeloGioacchino Del Regno
This GDSC enables (or cuts!) power to the Multimedia Subsystem IOMMU (mmss smmu), which has bootloader pre-set secure contexts. In the event of a complete power loss, the secure contexts will be reset and the hypervisor will crash the SoC. To prevent this, and get a working multimedia subsystem,

[PATCH 9/9] clk: qcom: gpucc-msm8998: Allow fabia gpupll0 rate setting

2021-01-09 Thread AngeloGioacchino Del Regno
The GPU PLL0 is not a fixed PLL and the rate can be set on it: this is necessary especially on boards which bootloader is setting a very low rate on this PLL before booting Linux, which would be unsuitable for postdividing to reach the maximum allowed Adreno GPU frequency of 710MHz (or, actually,

[PATCH 5/9] clk: qcom: mmcc-msm8998: Set CLK_GET_RATE_NOCACHE to pixel/byte clks

2021-01-09 Thread AngeloGioacchino Del Regno
The pixel and byte clocks rate should not be cached, as a VCO shutdown may clear the frequency setup and this may not be set again due to the cached rate being present. This will also be useful when shadow clocks will be implemented in the DSI PLL for seamless timing/resolution switch.

[PATCH 8/9] clk: qcom: gpucc-msm8998: Add resets, cxc, fix flags on gpu_gx_gdsc

2021-01-09 Thread AngeloGioacchino Del Regno
The GPU GX GDSC has GPU_GX_BCR reset and gfx3d_clk CXC, as stated on downstream kernels (and as verified upstream, because otherwise random lockups happen). Also, add PWRSTS_RET and NO_RET_PERIPH: also as found downstream, and also as verified here, to avoid GPU related lockups it is necessary to

[PATCH 3/9] clk: qcom: gcc-msm8998: Mark gpu_cfg_ahb_clk as critical

2021-01-09 Thread AngeloGioacchino Del Regno
The GPU IOMMU depends on this clock and the hypervisor will crash the SoC if this clock gets disabled because the secure contexts that have been set on this IOMMU by the bootloader will become unaccessible (or they get reset). Mark this clock as critical to avoid this issue when the Adreno GPU is

[PATCH 6/9] clk: qcom: mmcc-msm8998: Add hardware clockgating registers to some clks

2021-01-09 Thread AngeloGioacchino Del Regno
Hardware clock gating is supported on some of the clocks declared in there: ignoring that it does exist may lead to unstabilities on some firmwares. Add the HWCG registers where applicable to stop potential crashes. This was verified on a smartphone shipped with a recent MSM8998 firmware, which

Re: [RFC PATCH v1 1/4] media: dt-bindings: rockchip-rga: add more rga compatible properties

2021-01-09 Thread Heiko Stübner
Am Samstag, 19. Dezember 2020, 12:26:50 CET schrieb Johan Jonker: > Add more rga compatible properties. > > "rockchip,px30-rga", "rockchip,rk3288-rga" > "rockchip,rk3328-rga", "rockchip,rk3288-rga" > "rockchip,rk3368-rga", "rockchip,rk3288-rga" > > make ARCH=arm64 dt_binding_check >

[PATCH 1/5] drm/msm/dsi_pll_10nm: Fix dividing the same numbers twice

2021-01-09 Thread AngeloGioacchino Del Regno
In function dsi_pll_calc_dec_frac we are calculating the decimal div start parameter by dividing the decimal multiple by the fractional multiplier: the remainder of that operation is stored to then get programmed to the fractional divider registers of the PLL. It's useless to call div_u64_rem to

[PATCH 0/5] Clock fixes for DSI 10nm PLL

2021-01-09 Thread AngeloGioacchino Del Regno
The DSI 10nm PLL driver was apparently ported from downstream, but some of its "features" were not ported over, for a good reason. Pity is that the removal of the downstream dependencies broke the clock calculation logic for this driver and that made it impossible to use any DSI display on at

[PATCH 5/5] drm/msm/dsi_pll_10nm: Convert pr_err prints to DRM_DEV_ERROR

2021-01-09 Thread AngeloGioacchino Del Regno
DRM_DEV_ERROR should be used across this entire source: convert the pr_err prints to the first as a cleanup. Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git

[PATCH 2/5] drm/msm/dsi_pll_10nm: Solve TODO for multiplier frac_bits assignment

2021-01-09 Thread AngeloGioacchino Del Regno
The number of fractional registers bits is known and already set in the frac_bits variable of the dsi_pll_config struct here in 10nm: remove the TODO by simply using that variable. Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c | 4 ++-- 1 file

  1   2   3   4   >