Re: [PATCH 1/2] kexec: Add quick kexec support for kernel

2020-08-13 Thread Dave Young
On 08/14/20 at 01:52am, Sang Yan wrote: > In normal kexec, relocating kernel may cost 5 ~ 10 seconds, to > copy all segments from vmalloced memory to kernel boot memory, > because of disabled mmu. It is not the case on all archs, I assume your case is arm64, please describe it in patch log :) Abo

Re: [PATCH] mm: include CMA pages in lowmem_reserve at boot

2020-08-13 Thread Michal Hocko
On Thu 13-08-20 10:55:17, Doug Berger wrote: [...] > One example might be a 1GB arm platform that defines a 256MB default CMA > region. The default zones might map as follows: > [0.00] cma: Reserved 256 MiB at 0x3000 > [0.00] Zone ranges: > [0.00] DMA [mem

Re: [PATCH] MIPS: Loongson: Set CONFIG_FRAME_WARN=2048 in loongson3_defconfig to fix build warning

2020-08-13 Thread Thomas Bogendoerfer
On Fri, Aug 14, 2020 at 10:56:33AM +0800, Tiezhu Yang wrote: > Fixes: 70b838292bef ("MIPS: Update default config file for Loongson-3") I'm not so sure whether this warrants a fixes tag. > arch/mips/configs/loongson3_defconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --gi

RE: [PATCH v5 3/3] fpga: dfl: add support for N3000 Nios private feature

2020-08-13 Thread Wu, Hao
> > > diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig > > > index 7cd5a29..f6252cd 100644 > > > --- a/drivers/fpga/Kconfig > > > +++ b/drivers/fpga/Kconfig > > > @@ -191,6 +191,17 @@ config FPGA_DFL_AFU > > >to the FPGA infrastructure via a Port. There may be more than one > > >Por

[PATCH v2] powerpc: Drop _nmask_and_or_msr()

2020-08-13 Thread Christophe Leroy
_nmask_and_or_msr() is only used at two places to set MSR_IP. The SYNC is unnecessary as the users are not PowerPC 601. Can be easily writen in C. Do it, and drop _nmask_and_or_msr() Signed-off-by: Christophe Leroy --- v2: Removed the prototype in asm/processor.h --- arch/powerpc/include/asm/

[PATCH] rcu: shrink each possible cpu krcp

2020-08-13 Thread qiang.zhang
From: Zqiang Due to cpu hotplug. some cpu may be offline after call "kfree_call_rcu" func, if the shrinker is triggered at this time, we should drain each possible cpu "krcp". Signed-off-by: Zqiang --- kernel/rcu/tree.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/

Re: [PATCH V2] mm, page_alloc: fix core hung in free_pcppages_bulk()

2020-08-13 Thread Michal Hocko
On Thu 13-08-20 22:57:32, Charan Teja Kalla wrote: > Thanks Michal. > > On 8/13/2020 10:00 PM, Michal Hocko wrote: > > On Thu 13-08-20 21:51:29, Charan Teja Kalla wrote: > >> Thanks Michal for comments. > >> > >> On 8/13/2020 5:11 PM, Michal Hocko wrote: > >>> On Tue 11-08-20 18:28:23, Charan Teja

Re: [RFC PATCH] printk: Change timestamp to triplet as mono, boot and real

2020-08-13 Thread Dave Young
On 08/11/20 at 12:40pm, Orson Zhai wrote: > From: Thomas Gleixner > > Timestamps printed in kernel log are retrieved by local_clock which reads > jiffies as a referrence clock source. > But it is diffcult to be synchronized with logs generated out of kernel, > say some remote processors (Modem) i

fs/ocfs2/suballoc.c:2430:2-8: preceding lock on line 2413

2020-08-13 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: e764a1e32337aaf325fc5b14a5bbd06eabba4699 commit: 464170647b5648bb81f3615567485fcb9a685bed jbd2: Make state lock a spinlock date: 10 months ago config: x86_64-randconfig-c002-20200812 (attached as .config)

Re: [PATCH] edac,ghes,cper: Add Row Extension to Memory Error Record

2020-08-13 Thread Ard Biesheuvel
On Mon, 27 Jul 2020 at 20:15, Alex Kluver wrote: > > Memory errors could be printed with incorrect row values since the DIMM > size has outgrown the 16 bit row field in the CPER structure. UEFI > Specification Version 2.8 has increased the size of row by allowing it to > use the first 2 bits from

Re: [PATCH 0/3] Three small fixes to cmdline parsing

2020-08-13 Thread Ard Biesheuvel
On Thu, 13 Aug 2020 at 20:58, Arvind Sankar wrote: > > First 2 are resends: > https://lore.kernel.org/linux-efi/20200725155916.1376773-1-nived...@alum.mit.edu/ > https://lore.kernel.org/linux-efi/20200729193300.598448-1-nived...@alum.mit.edu/ > > Arvind Sankar (3): > efi/libstub: Stop parsing ar

[PATCH 2/2] arm64: Reserve memory for quick kexec

2020-08-13 Thread Sang Yan
Reserve memory for quick kexec on arm64 with cmdline "quickkexec=". Signed-off-by: Sang Yan --- arch/arm64/kernel/setup.c | 6 ++ arch/arm64/mm/init.c | 43 +++ 2 files changed, 49 insertions(+) diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/ke

[PATCH 1/2] kexec: Add quick kexec support for kernel

2020-08-13 Thread Sang Yan
In normal kexec, relocating kernel may cost 5 ~ 10 seconds, to copy all segments from vmalloced memory to kernel boot memory, because of disabled mmu. We introduce quick kexec to save time of copying memory as above, just like kdump(kexec on crash), by using reserved memory "Quick Kexec". Constru

[RFC][PATCH v2 2/2] dma-heap: Add a system-uncached heap

2020-08-13 Thread John Stultz
This adds a heap that allocates non-contiguous buffers that are marked as writecombined, so they are not cached by the CPU. This is useful, as most graphics buffers are usually not touched by the CPU or only written into once by the CPU. So when mapping the buffer over and over between devices, we

[RFC][PATCH v2 1/2] dma-heap: Keep track of the heap device struct

2020-08-13 Thread John Stultz
Keep track of the heap device struct. This will be useful for special DMA allocations and actions. Cc: Sumit Semwal Cc: Andrew F. Davis Cc: Benjamin Gaignard Cc: Liam Mark Cc: Laura Abbott Cc: Brian Starkey Cc: Hridya Valsaraju Cc: Robin Murphy Cc: linux-me...@vger.kernel.org Cc: dri-de..

Re: [PATCH v5 0/6] Support running driver's probe for a device powered off

2020-08-13 Thread Bingbu Cao
On 8/14/20 12:11 PM, Bingbu Cao wrote: > > > On 8/10/20 10:27 PM, Sakari Ailus wrote: >> Hi all, >> > ...snip... >> >> The use case is such that there is a privacy LED next to an integrated >> user-facing laptop camera, and this LED is there to signal the user that >> the camera is recording a

Re: fsl_espi errors on v5.7.15

2020-08-13 Thread Heiner Kallweit
On 14.08.2020 04:48, Chris Packham wrote: > Hi, > > I'm seeing a problem with accessing spi-nor after upgrading a T2081 > based system to linux v5.7.15 > > For this board u-boot and the u-boot environment live on spi-nor. > > When I use fw_setenv from userspace I get the following kernel logs >

Re: [PATCH v5 0/9] Raspberry Pi 4 USB firmware initialization rework

2020-08-13 Thread Greg KH
On Thu, Aug 13, 2020 at 12:17:49PM -0700, Florian Fainelli wrote: > > > On 8/13/2020 3:01 AM, Nicolas Saenz Julienne wrote: > > Hi everyone. > > > > On Mon, 2020-06-29 at 18:18 +0200, Nicolas Saenz Julienne wrote: > > > On the Raspberry Pi 4, after a PCI reset, VL805's firmware may either be > >

Re: [PATCH] rtc: cmos: initialize rtc time when reading alarm

2020-08-13 Thread Victor Ding
Hi Alexandre, On Thu, Aug 13, 2020 at 5:33 PM Alexandre Belloni wrote: > > Hi, > > On 13/08/2020 15:41:34+1000, Victor Ding wrote: > > cmos_read_alarm() may leave certain fields of a struct rtc_time > > untouched; therefore, these fields contain garbage if not properly > > initialized, leading to

Re: [PATCH v8 1/4] power: supply: core: add quick charge type property

2020-08-13 Thread Greg KH
On Fri, Aug 14, 2020 at 11:46:54AM +0800, Qiwu Huang wrote: > From: Qiwu Huang > > Reports the kind of quick charge type based on > different adapter power. > > Signed-off-by: Qiwu Huang > --- > Documentation/ABI/testing/sysfs-class-power | 21 + > drivers/power/supply/power_supply_sys

Re: [PATCH] kexec: Delete an unnecessary comparison

2020-08-13 Thread Joe Perches
On Thu, 2020-08-13 at 20:45 +0800, Youling Tang wrote: > Regardless of whether the ret value is zero or non-zero, the trajectory > of the program execution is the same, so there is no need to compare. > > Signed-off-by: Youling Tang > --- > kernel/kexec_file.c | 2 -- > 1 file changed, 2 deletio

Re: [PATCH v3 2/2] dma-pool: Only allocate from CMA when in same memory zone

2020-08-13 Thread Christoph Hellwig
On Sat, Aug 08, 2020 at 08:33:54AM +0200, Christoph Hellwig wrote: > On Fri, Aug 07, 2020 at 10:50:19AM +0200, Nicolas Saenz Julienne wrote: > > On Fri, 2020-08-07 at 07:21 +0200, Christoph Hellwig wrote: > > > On Thu, Aug 06, 2020 at 08:47:55PM +0200, Nicolas Saenz Julienne wrote: > > > > There is

[PATCH v4 0/4] Add basic node support for Mediatek MT8192 SoC

2020-08-13 Thread Seiya Wang
MT8192 is a SoC based on 64bit ARMv8 architecture. It contains 4 CA55 and 4 CA76 cores. MT8192 share many HW IP with MT65xx series. This patchset was tested on MT8192 evaluation board and use correct clock to she ll. Based on v5.8-rc1 Change in v4: 1. Remove scpsys, spmi and apu nodes 2. Add i2c

[PATCH v4 1/3] arm64: dts: Add Mediatek SoC MT8192 and evaluation board dts and Makefile

2020-08-13 Thread Seiya Wang
Add basic chip support for Mediatek MT8192 Signed-off-by: Seiya Wang --- arch/arm64/boot/dts/mediatek/Makefile | 1 + arch/arm64/boot/dts/mediatek/mt8192-evb.dts | 29 ++ arch/arm64/boot/dts/mediatek/mt8192.dtsi| 693 3 files changed, 723 insertions(+)

[PATCH v4 3/3] dt-bindings: timer: Add compatible for Mediatek MT8192

2020-08-13 Thread Seiya Wang
This commit adds dt-binding documentation of timer for Mediatek MT8192 SoC Platform. Acked-by: Rob Herring Signed-off-by: Seiya Wang --- Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/timer/med

[PATCH v4 2/3] dt-bindings: serial: Add compatible for Mediatek MT8192

2020-08-13 Thread Seiya Wang
This commit adds dt-binding documentation of uart for Mediatek MT8192 SoC Platform. Acked-by: Rob Herring Signed-off-by: Seiya Wang --- Documentation/devicetree/bindings/serial/mtk-uart.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/serial/mtk-uart.txt

Re: [PATCH v2] nvme: Use spin_lock_irq() when taking the ctrl->lock

2020-08-13 Thread Sagi Grimberg
There's an unrelated whitespace change in nvme_init_identify(). Otherwise, looks fine. Oops, sorry. can this be fixed up when it's merged? Fixed and queued.

Re: [PATCH] fs: Eliminate a local variable to make the code more clear

2020-08-13 Thread Hao Lee
Ping On Wed, Jul 29, 2020 at 11:21 PM Hao Lee wrote: > > The dentry local variable is introduced in 'commit 84d17192d2afd ("get > rid of full-hash scan on detaching vfsmounts")' to reduce the length of > some long statements for example > mutex_lock(&path->dentry->d_inode->i_mutex). We have alrea

BUG: corrupted list in hci_chan_del

2020-08-13 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:990f2273 Merge tag 's390-5.9-2' of git://git.kernel.org/pu.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1631149190 kernel config: https://syzkaller.appspot.com/x/.config?x=9c89856ae5fc8b6 dash

Re: [PATCH v5 3/3] fpga: dfl: add support for N3000 Nios private feature

2020-08-13 Thread Xu Yilun
On Thu, Aug 13, 2020 at 04:43:33PM +0800, Wu, Hao wrote: > > Subject: [PATCH v5 3/3] fpga: dfl: add support for N3000 Nios private > > feature > > > > This patch adds support for the Nios handshake private feature on Intel > > PAC (Programmable Acceleration Card) N3000. > > > > The Nios is the emb

[PATCH] regulator: Add support for RT4801 Display Bias regulator driver

2020-08-13 Thread cy_huang
From: ChiYuan Huang Adds support for the RT4801 DSV. It has two regulators (DSVP/DSVN) with an I2C interface. DSVP/DSVN can provide the display panel module for the positive/negative voltage range from (+/-)4V to (+/-)6V. --- .../regulator/richtek,rt4801-regulator.yaml| 80 dr

Re: [RFC][PATCH 2/2] dma-heap: Add a system-uncached heap

2020-08-13 Thread John Stultz
On Mon, Aug 3, 2020 at 4:06 AM Robin Murphy wrote: > > On 2020-07-29 06:16, John Stultz wrote: > > This adds a heap that allocates non-contiguous buffers that are > > marked as writecombined, so they are not cached by the CPU. > > ... > > + ret = sg_alloc_table(new_table, table->nents, GFP_KER

[PATCH v2 3/4] powerpc: Rewrite 4xx flush_cache_instruction() in C

2020-08-13 Thread Christophe Leroy
Nothing prevents flush_cache_instruction() from being writen in C. Do it to improve readability and maintainability. This function is very small and isn't called from assembly, make it static inline in asm/cacheflush.h Signed-off-by: Christophe Leroy --- v2: Written as a static inline instead o

[PATCH v2 1/4] powerpc: Remove flush_instruction_cache for book3s/32

2020-08-13 Thread Christophe Leroy
The only callers of flush_instruction_cache() are: arch/powerpc/kernel/swsusp_booke.S: bl flush_instruction_cache arch/powerpc/mm/nohash/40x.c: flush_instruction_cache(); arch/powerpc/mm/nohash/44x.c: flush_instruction_cache(); arch/powerpc/mm/nohash/fsl_booke.c: flush_instruction_cach

[PATCH v2 2/4] powerpc: Move flush_instruction_cache() prototype in asm/cacheflush.h

2020-08-13 Thread Christophe Leroy
flush_instruction_cache() belongs to the cache flushing function family. Move its prototype in asm/cacheflush.h Signed-off-by: Christophe Leroy --- v2: new --- arch/powerpc/include/asm/cacheflush.h | 2 ++ arch/powerpc/include/asm/processor.h | 1 - arch/powerpc/platforms/44x/machine

[PATCH v2 4/4] powerpc: Rewrite FSL_BOOKE flush_cache_instruction() in C

2020-08-13 Thread Christophe Leroy
Nothing prevents flush_cache_instruction() from being writen in C. Do it to improve readability and maintainability. This function is only use by low level callers, it is not intended to be used by module. Don't export it. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/misc_32.S

[PATCH] usb: gadget: f_tcm: Fix some resource leaks in some error paths

2020-08-13 Thread Christophe JAILLET
If a memory allocation fails within a 'usb_ep_alloc_request()' call, the already allocated memory must be released. Fix a mix-up in the code and free the correct requests. Fixes: c52661d60f63 ("usb-gadget: Initial merge of target module for UASP + BOT") Signed-off-by: Christophe JAILLET --- dr

Re: [PATCH 1/5] powerpc: Remove flush_instruction_cache for book3s/32

2020-08-13 Thread Christophe Leroy
Le 13/08/2020 à 14:14, Christoph Hellwig a écrit : On Thu, Aug 13, 2020 at 01:13:08PM +0100, Christoph Hellwig wrote: On Thu, Aug 13, 2020 at 10:12:00AM +, Christophe Leroy wrote: -#ifndef CONFIG_PPC_8xx +#if !defined(CONFIG_PPC_8xx) && !defined(CONFIG_PPC_BOOK3S_32) _GLOBAL(flush_inst

Re: [PATCH] perf stat: update POWER9 metrics to utilize other metrics

2020-08-13 Thread kajoljain
On 8/14/20 9:13 AM, Ian Rogers wrote: > On Thu, Aug 13, 2020 at 3:21 PM Paul A. Clarke wrote: >> >> These changes take advantage of the new capability added in >> merge commit 00e4db51259a5f936fec1424b884f029479d3981 >> "Allow using computed metrics in calculating other metrics". >> >> The net

Re: [PATCH] kexec: Delete an unnecessary comparison

2020-08-13 Thread Dave Young
On 08/13/20 at 08:45pm, Youling Tang wrote: > Regardless of whether the ret value is zero or non-zero, the trajectory > of the program execution is the same, so there is no need to compare. > > Signed-off-by: Youling Tang > --- > kernel/kexec_file.c | 2 -- > 1 file changed, 2 deletions(-) > >

[PATCH v2] powerpc: Remove flush_instruction_cache() on 8xx

2020-08-13 Thread Christophe Leroy
flush_instruction_cache() is never used on 8xx, remove it. Signed-off-by: Christophe Leroy --- v2: Becomes a standalone patch independant of the series dismantling the ASM flush_instruction_cache() --- arch/powerpc/mm/nohash/8xx.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/arch/p

Re: [PATCH v4 2/2] fcntl: introduce F_SET_DESCRIPTION

2020-08-13 Thread Pascal Bouchareine
On Thu, Aug 13, 2020 at 10:28 PM Christoph Hellwig wrote: > > One intended usage is to allow processes to self-document sockets > > for netstat and friends to report > > NAK. There is no way we're going to bloat a criticial structure like > struct file for some vanity information like this. The

[PATCH v5 2/2] Add Intel LGM soc DMA support.

2020-08-13 Thread Amireddy Mallikarjuna reddy
Add DMA controller driver for Lightning Mountain(LGM) family of SoCs. The main function of the DMA controller is the transfer of data from/to any DPlus compliant peripheral to/from the memory. A memory to memory copy capability can also be configured. This ldma driver is used for configure the de

Re: [PATCH] dma-debug: fix debug_dma_assert_idle(), use rcu_read_lock()

2020-08-13 Thread Christoph Hellwig
On Thu, Aug 13, 2020 at 12:02:41PM -0700, Linus Torvalds wrote: > Yeah, that's ridiculously expensive, and serializes things for no good reason. > > Your patch looks obviously correct to me (Christoph?), It also looks correct to me. > but it also > makes me go "why are we doing this in the first

[PATCH v2] media: v4l2-ctrl: add control for long term reference.

2020-08-13 Thread Dikshita Agarwal
LTR (Long Term Reference) frames are the frames that are encoded sometime in the past and stored in the DPB buffer list to be used as reference to encode future frames. This change adds controls to enable this feature. Signed-off-by: Dikshita Agarwal --- .../userspace-api/media/v4l/ext-ctrls-cod

Re: [PATCH v4 2/2] fcntl: introduce F_SET_DESCRIPTION

2020-08-13 Thread Christoph Hellwig
On Thu, Aug 13, 2020 at 08:54:53PM -0700, Pascal Bouchareine wrote: > This command attaches a description to a file descriptor for > troubleshooting purposes. The free string is displayed in the > process fdinfo file for that fd /proc/pid/fdinfo/fd. > > One intended usage is to allow processes to

[PATCH v5 0/2] Add Intel LGM soc DMA support

2020-08-13 Thread Amireddy Mallikarjuna reddy
Add DMA controller driver for Lightning Mountain(LGM) family of SoCs. The main function of the DMA controller is the transfer of data from/to any DPlus compliant peripheral to/from the memory. A memory to memory copy capability can also be configured. This ldma driver is used for configure the dev

[PATCH v5 1/2] dt-bindings: dma: Add bindings for intel LGM SOC

2020-08-13 Thread Amireddy Mallikarjuna reddy
Add DT bindings YAML schema for DMA controller driver of Lightning Mountain(LGM) SoC. Signed-off-by: Amireddy Mallikarjuna reddy --- v1: - Initial version. v2: - Fix bot errors. v3: - No change. v4: - Address Thomas langer comments - use node name pattern as dma-controller as in common bindi

Re: [RFC PATCH 00/16] Core scheduling v6(Internet mail)

2020-08-13 Thread Li, Aubrey
On 2020/8/14 12:04, benbjiang(蒋彪) wrote: > > >> On Aug 14, 2020, at 9:36 AM, Li, Aubrey wrote: >> >> On 2020/8/14 8:26, benbjiang(蒋彪) wrote: >>> >>> On Aug 13, 2020, at 12:28 PM, Li, Aubrey wrote: On 2020/8/13 7:08, Joel Fernandes wrote: > On Wed, Aug 12, 2020 at 10:01:24AM +

[PATCH] xhci: Do not use GFP_KERNEL in (potentially) atomic context

2020-08-13 Thread Christophe JAILLET
'xhci_urb_enqueue()' is passed a 'mem_flags' argument, because "URBs may be submitted in interrupt context" (see comment related to 'usb_submit_urb()' in 'drivers/usb/core/urb.c') So this flag should be used in all the calling chain. Up to now, 'xhci_check_maxpacket()' which is only called from 'x

Re: [PATCH] soc: qcom: socinfo: add SC7180 entry to soc_id array

2020-08-13 Thread Sai Prakash Ranjan
On 2020-08-13 20:33, Douglas Anderson wrote: Add an entry for SC7180 SoC. Signed-off-by: Douglas Anderson --- drivers/soc/qcom/socinfo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soc/qcom/socinfo.c b/drivers/soc/qcom/socinfo.c index e19102f46302..e56eea29615c 100644 --- a/dr

[PATCH v2] softirq: add irq off checking for __raise_softirq_irqoff

2020-08-13 Thread Jiafei Pan
__raise_softirq_irqoff() will update per-CPU mask of pending softirqs, it need to be called in irq disabled context in order to keep it atomic operation, otherwise it will be interrupted by hardware interrupt, and per-CPU softirqs pending mask will be corrupted, the result is there will be unexpect

[GIT PULL] Kconfig updates for v5.9-rc1

2020-08-13 Thread Masahiro Yamada
Hi Linus, Please pull Kconfig updates for v5.9-rc1 Thanks. The following changes since commit bcf876870b95592b52519ed4aafcf9d95999bc9c: Linux 5.8 (2020-08-02 14:21:45 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git

[PATCH] ALSA: hda/realtek: Add quirk for Samsung Galaxy Flex Book

2020-08-13 Thread Mike Pozulp
The Flex Book uses the same ALC298 codec as other Samsung laptops which have the no headphone sound bug, like my Samsung Notebook. The Flex Book owner used Early Patching to confirm that this quirk fixes the bug. BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=207423 Signed-off-by: Mike Pozul

Re: [PATCH v5 3/6] ov5670: Support probe whilst the device is in a low power state

2020-08-13 Thread Bingbu Cao
On 8/12/20 5:12 PM, Bingbu Cao wrote: > > > On 8/10/20 10:27 PM, Sakari Ailus wrote: >> Tell ACPI device PM code that the driver supports the device being in a >> low power state when the driver's probe function is entered. >> >> Signed-off-by: Sakari Ailus >> --- >> drivers/media/i2c/ov5670

Re: [PATCH] arm64: Add KRYO4XX gold CPU core to spectre-v2 safe list

2020-08-13 Thread Sai Prakash Ranjan
On 2020-08-13 23:29, Marc Zyngier wrote: On 2020-08-13 13:33, Sai Prakash Ranjan wrote: On 2020-08-13 16:09, Marc Zyngier wrote: On 2020-08-13 10:40, Will Deacon wrote: On Thu, Aug 13, 2020 at 02:49:37PM +0530, Sai Prakash Ranjan wrote: On 2020-08-13 14:33, Will Deacon wrote: > On Thu, Aug 13

Re: net/tipc/udp_media.c:743: undefined reference to `ipv6_dev_find'

2020-08-13 Thread Randy Dunlap
On 8/13/20 2:35 AM, Xin Long wrote: > On Wed, Aug 12, 2020 at 7:21 AM kernel test robot wrote: >> >> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git >> master >> head: c636eef2ee3696f261a35f34989842701a107895 >> commit: 5a6f6f579178dbeb33002d93b4f646c31348fac9 tipc: s

RE: [EXT] Re: [PATCH] softirq: add irq off checking for __raise_softirq_irqoff

2020-08-13 Thread Jiafei Pan
> From: Steven Rostedt > Sent: Thursday, August 13, 2020 10:57 PM > > On Thu, 13 Aug 2020 03:03:46 + > Jiafei Pan wrote: > > > Any comments? Thanks. > > > > @Steven Rostedt, I thinks irq off checking is necessary especially > > This is probably more for Thomas Gleixner. > > > for Preempt-

Re: [PATCH v5 0/6] Support running driver's probe for a device powered off

2020-08-13 Thread Bingbu Cao
On 8/10/20 10:27 PM, Sakari Ailus wrote: > Hi all, > ...snip... > > The use case is such that there is a privacy LED next to an integrated > user-facing laptop camera, and this LED is there to signal the user that > the camera is recording a video or capturing images. That LED also happens > t

[PATCH v2] seqlock: Fix build errors

2020-08-13 Thread Xingxing Su
Fix the following build errors: In file included from ./include/linux/time.h:6:0, from ./include/linux/compat.h:10, from arch/mips/kernel/asm-offsets.c:12: ./include/linux/seqlock.h: In function ???write_seqcount_begin_nested???: ./include/linux/seqlock.h:286:2: e

Re: [RFC PATCH 00/16] Core scheduling v6(Internet mail)

2020-08-13 Thread 蒋彪
> On Aug 14, 2020, at 9:36 AM, Li, Aubrey wrote: > > On 2020/8/14 8:26, benbjiang(蒋彪) wrote: >> >> >>> On Aug 13, 2020, at 12:28 PM, Li, Aubrey wrote: >>> >>> On 2020/8/13 7:08, Joel Fernandes wrote: On Wed, Aug 12, 2020 at 10:01:24AM +0800, Li, Aubrey wrote: > Hi Joel, >

[PATCH v4 1/2] mm: add GFP mask param to strndup_user

2020-08-13 Thread Pascal Bouchareine
Let caller specify allocation. Keep the existing calls with GFP_USER, and enforce the existing defense against log spam from userspace with __GFP_NOWARN. Signed-off-by: Pascal Bouchareine --- drivers/dma-buf/dma-buf.c | 2 +- drivers/gpu/drm/i915/i915_debugfs_params.c | 2 +-

[PATCH v4 0/2] proc,fcntl: introduce F_SET_DESCRIPTION

2020-08-13 Thread Pascal Bouchareine
This is a first attempt at taking Alexey's comments into account This goes against v5.8 tl;dr in commit 2/2 but motivation is also described a bit in https://lore.kernel.org/linux-api/CAGbU3_nVvuzMn2wo4_ZKufWcGfmGsopVujzTWw-Bbeky=xs...@mail.gmail.com/

[PATCH v4 2/2] fcntl: introduce F_SET_DESCRIPTION

2020-08-13 Thread Pascal Bouchareine
This command attaches a description to a file descriptor for troubleshooting purposes. The free string is displayed in the process fdinfo file for that fd /proc/pid/fdinfo/fd. One intended usage is to allow processes to self-document sockets for netstat and friends to report Signed-off-by: Pascal

[PATCH v8 2/4] power: supply: core: add wireless charger adapter type property

2020-08-13 Thread Qiwu Huang
From: Qiwu Huang Reports what type of wireless adapter connection is currently active for the supply. for example it can show if ADAPTER_PD capable source is attached. Signed-off-by: Qiwu Huang --- Documentation/ABI/testing/sysfs-class-power | 28 + drivers/power/supply/pow

[PATCH v8 4/4] power: supply: core: property to control reverse charge

2020-08-13 Thread Qiwu Huang
From: Qiwu Huang Interface to control wireless reverse charge. Signed-off-by: Qiwu Huang --- Documentation/ABI/testing/sysfs-class-power | 14 ++ drivers/power/supply/power_supply_sysfs.c | 1 + include/linux/power_supply.h| 1 + 3 files changed, 16 insertions(+

[PATCH v8 3/4] power: supply: core: add wireless signal strength property

2020-08-13 Thread Qiwu Huang
From: Qiwu Huang reports wireless signal strength. The value show degree of coupling between tx and rx. Signed-off-by: Qiwu Huang --- Documentation/ABI/testing/sysfs-class-power | 22 + drivers/power/supply/power_supply_sysfs.c | 1 + include/linux/power_supply.h

[PATCH v8 0/4] add some power supply properties about wireless/wired charging

2020-08-13 Thread Qiwu Huang
From: Qiwu Huang This patchset aims to provide power supply properties about wireless/wired charging. "quick_charge_type" reports different types of quick charge based on the charging power; "tx_adapter" shows" the type of wireless charging adapter; "signal_strength" shows the coupling level be

[PATCH v8 1/4] power: supply: core: add quick charge type property

2020-08-13 Thread Qiwu Huang
From: Qiwu Huang Reports the kind of quick charge type based on different adapter power. Signed-off-by: Qiwu Huang --- Documentation/ABI/testing/sysfs-class-power | 21 + drivers/power/supply/power_supply_sysfs.c | 1 + drivers/power/supply/qcom_smbb.c| 51 ++

Re: [PATCH] perf stat: update POWER9 metrics to utilize other metrics

2020-08-13 Thread Ian Rogers
On Thu, Aug 13, 2020 at 3:21 PM Paul A. Clarke wrote: > > These changes take advantage of the new capability added in > merge commit 00e4db51259a5f936fec1424b884f029479d3981 > "Allow using computed metrics in calculating other metrics". > > The net is a simplification of the expressions for a hand

Re: POC: Alternative solution: Re: [PATCH 0/4] printk: reimplement LOG_CONT handling

2020-08-13 Thread Sergey Senozhatsky
On (20/08/13 12:35), John Ogness wrote: > I believe I failed to recognize the fundamental problem. The fundamental > problem is that the pr_cont() semantics are very poor. The semantics is pretty clear - use it only in UP early bootup, anything else is broken :) /* * Annotation for a "contin

RE: [EXT] Re: [PATCH] softirq: add irq off checking for __raise_softirq_irqoff

2020-08-13 Thread Jiafei Pan
> From: Peter Zijlstra > Sent: Thursday, August 13, 2020 1:58 PM > > On Thu, Aug 06, 2020 at 12:07:29PM +0800, Jiafei Pan wrote: > > __raise_softirq_irqoff will update per-CPU mask of pending softirqs, > > it need to be called in irq disabled context in order to keep it > > atomic operation, othe

Re: [PATCH] mm : update ra->ra_pages if it's NOT equal to bdi->ra_pages

2020-08-13 Thread Matthew Wilcox
On Fri, Aug 14, 2020 at 10:45:37AM +0800, Zhaoyang Huang wrote: > On Fri, Aug 14, 2020 at 10:33 AM Andrew Morton > wrote: > > > > On Fri, 14 Aug 2020 10:20:11 +0800 Zhaoyang Huang > > wrote: > > > > > On Fri, Aug 14, 2020 at 10:07 AM Matthew Wilcox > > > wrote: > > > > > > > > On Fri, Aug 14,

Re: [GIT] Networking

2020-08-13 Thread pr-tracker-bot
The pull request you sent on Thu, 13 Aug 2020 16:10:57 -0700 (PDT): > git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git refs/heads/master has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/a1d21081a60dfb7fddf4a38b66d9cef603b317a9 Thank you! -- Deet-doot-dot,

Re: [PATCH v4 3/7] genirq: Introduce irq_suspend_one() and irq_resume_one() callbacks

2020-08-13 Thread Doug Anderson
Hi, On Thu, Aug 13, 2020 at 7:07 PM Thomas Gleixner wrote: > > Doug, > > On Thu, Aug 13 2020 at 15:58, Doug Anderson wrote: > > On Thu, Aug 13, 2020 at 3:09 PM Thomas Gleixner wrote: > >> > * If this interrupt fires while the system is suspended then please > >> > wake the system up. > >> > >> W

drivers/scsi/smartpqi/smartpqi_init.c:2070 pqi_update_scsi_devices() error: we previously assumed 'physdev_list' could be null (see line 2006)

2020-08-13 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: dddcbc139e96bd18d8c65ef7b7e440f0d32457c2 commit: 5e6a9760f7da4dd86cca43ac6423695d6cb0dff4 scsi: smartpqi: add module param for exposure order date: 12 months ago config: ia64-randconfig-m031-20200811 (atta

linux-next: Tree for Aug 14

2020-08-13 Thread Stephen Rothwell
Hi all, News: The merge window has opened, so please do not add any v5.10 related material to your linux-next included branches until after the merge window closes again. Changes since 20200813: My fixes tree contains: 73c7adb54169 ("device_cgroup: Fix RCU list debugging warning&quo

[PATCH v4 16/20] tools: gpio: rename nlines to num_lines

2020-08-13 Thread Kent Gibson
Rename nlines to num_lines to be consistent with other usage for fields describing the number of entries in an array. Signed-off-by: Kent Gibson --- tools/gpio/gpio-hammer.c | 26 +- tools/gpio/gpio-utils.c | 20 ++-- tools/gpio/gpio-utils.h | 6 +++---

[PATCH v4 19/20] tools: gpio: add multi-line monitoring to gpio-event-mon

2020-08-13 Thread Kent Gibson
Extend gpio-event-mon to support monitoring multiple lines. This would require multiple lineevent requests to implement using uAPI v1, but can be performed with a single line request using uAPI v2. Signed-off-by: Kent Gibson --- tools/gpio/gpio-event-mon.c | 45 --

[PATCH v4 20/20] tools: gpio: add debounce support to gpio-event-mon

2020-08-13 Thread Kent Gibson
Add support for debouncing monitored lines to gpio-event-mon. Signed-off-by: Kent Gibson --- tools/gpio/gpio-event-mon.c | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/tools/gpio/gpio-event-mon.c b/tools/gpio/gpio-event-mon.c index e50bb107ea3a..bd5ea3c

[PATCH v4 18/20] tools: gpio: port gpio-event-mon to v2 uAPI

2020-08-13 Thread Kent Gibson
Port the gpio-event-mon tool to the latest GPIO uAPI. Signed-off-by: Kent Gibson --- tools/gpio/gpio-event-mon.c | 91 +++-- 1 file changed, 47 insertions(+), 44 deletions(-) diff --git a/tools/gpio/gpio-event-mon.c b/tools/gpio/gpio-event-mon.c index 1a303a81aee

[PATCH v4 14/20] tools: gpio: port lsgpio to v2 uAPI

2020-08-13 Thread Kent Gibson
Port the lsgpio tool to the latest GPIO uAPI. Signed-off-by: Kent Gibson --- tools/gpio/lsgpio.c | 60 - 1 file changed, 38 insertions(+), 22 deletions(-) diff --git a/tools/gpio/lsgpio.c b/tools/gpio/lsgpio.c index b08d7a5e779b..deda38244026 100644 -

[PATCH v4 09/20] gpiolib: cdev: support edge detection for uAPI v2

2020-08-13 Thread Kent Gibson
Add support for edge detection to lines requested using GPIO_V2_GET_LINE_IOCTL. Signed-off-by: Kent Gibson --- The edge_detector implementation is based on the v1 lineevent implementation. drivers/gpio/gpiolib-cdev.c | 316 +++- drivers/gpio/gpiolib.c | 2

[PATCH v4 11/20] gpiolib: cdev: support GPIO_V2_LINE_SET_VALUES_IOCTL

2020-08-13 Thread Kent Gibson
Add support for the GPIO_V2_LINE_SET_VALUES_IOCTL. Signed-off-by: Kent Gibson --- drivers/gpio/gpiolib-cdev.c | 67 + 1 file changed, 67 insertions(+) diff --git a/drivers/gpio/gpiolib-cdev.c b/drivers/gpio/gpiolib-cdev.c index 04472c2b6678..de88b7a5ba0f 1006

[PATCH v4 12/20] gpiolib: cdev: support setting debounce

2020-08-13 Thread Kent Gibson
Add support for setting debounce on a line via the GPIO uAPI. Where debounce is not supported by hardware, a software debounce is provided. Signed-off-by: Kent Gibson --- The implementation of the software debouncer waits for the line to be stable for the debounce period before determining if a

[PATCH v4 17/20] tools: gpio: port gpio-hammer to v2 uAPI

2020-08-13 Thread Kent Gibson
Port the gpio-hammer tool to the latest GPIO uAPI. Signed-off-by: Kent Gibson --- tools/gpio/gpio-hammer.c | 32 +++ tools/gpio/gpio-utils.c | 119 ++- tools/gpio/gpio-utils.h | 50 +--- 3 files changed, 128 insertions(+), 73 deletions(

[PATCH v4 15/20] tools: gpio: port gpio-watch to v2 uAPI

2020-08-13 Thread Kent Gibson
Port the gpio-watch tool to the latest GPIO uAPI. Signed-off-by: Kent Gibson --- tools/gpio/gpio-watch.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tools/gpio/gpio-watch.c b/tools/gpio/gpio-watch.c index 5cea24fddfa7..6f048350a27e 100644 --- a/tools/gpio

[PATCH v4 10/20] gpiolib: cdev: support GPIO_V2_LINE_SET_CONFIG_IOCTL

2020-08-13 Thread Kent Gibson
Add support for GPIO_V2_LINE_SET_CONFIG_IOCTL, the uAPI v2 line set config ioctl. Signed-off-by: Kent Gibson --- drivers/gpio/gpiolib-cdev.c | 92 + 1 file changed, 92 insertions(+) diff --git a/drivers/gpio/gpiolib-cdev.c b/drivers/gpio/gpiolib-cdev.c index

[PATCH v4 13/20] gpio: uapi: document uAPI v1 as deprecated

2020-08-13 Thread Kent Gibson
Update uAPI documentation to deprecate v1 structs and ioctls. Signed-off-by: Kent Gibson --- include/uapi/linux/gpio.h | 26 ++ 1 file changed, 26 insertions(+) diff --git a/include/uapi/linux/gpio.h b/include/uapi/linux/gpio.h index 0eb1f53b47e0..4af67415d73e 100644 ---

[PATCH v4 08/20] gpiolib: cdev: support GPIO_V2_GET_LINEINFO_IOCTL and GPIO_V2_GET_LINEINFO_WATCH_IOCTL

2020-08-13 Thread Kent Gibson
Add support for GPIO_V2_GET_LINEINFO_IOCTL and GPIO_V2_GET_LINEINFO_WATCH_IOCTL. Signed-off-by: Kent Gibson --- The core of this change is the event kfifo switching to contain struct gpioline_info_changed_v2, instead of v1 as v2 is richer. The two uAPI versions are mostly independent - other th

[PATCH v4 06/20] gpiolib: add build option for CDEV v1 ABI

2020-08-13 Thread Kent Gibson
Add a build option to allow the removal of the CDEV v1 ABI. Suggested-by: Bartosz Golaszewski Signed-off-by: Kent Gibson --- This patch is before the v2 implementation, and is non-functional until that patch, as some parts of that patch would be written slightly differently if removing v1 was n

[PATCH v4 07/20] gpiolib: cdev: support GPIO_V2_GET_LINE_IOCTL and GPIO_V2_LINE_GET_VALUES_IOCTL

2020-08-13 Thread Kent Gibson
Add support for requesting lines using the GPIO_V2_GET_LINE_IOCTL, and returning their current values using GPIO_V2_LINE_GET_VALUES_IOCTL. Signed-off-by: Kent Gibson --- The struct line implementation is based on the v1 struct linehandle implementation. The line_ioctl() is a simple wrapper arou

Re: [PATCH] bootconfig: Fix off-by-one in xbc_node_compose_key_after()

2020-08-13 Thread Steven Rostedt
On Thu, 13 Aug 2020 19:38:18 -0700 Andrew Morton wrote: > On Thu, 13 Aug 2020 18:30:50 -0400 Steven Rostedt wrote: > > > From: Steven Rostedt (VMware) > > > > While reviewing some patches for bootconfig, I noticed the following > > code in xbc_node_compose_key_after(): > > > > ret = snpr

[PATCH v4 03/20] gpio: uapi: define GPIO_MAX_NAME_SIZE for array sizes

2020-08-13 Thread Kent Gibson
Replace constant array sizes with a macro constant to clarify the source of array sizes, provide a place to document any constraints on the size, and to simplify array sizing in userspace if constructing structs from their composite fields. Signed-off-by: Kent Gibson --- include/uapi/linux/gpio.

[PATCH v4 05/20] gpiolib: make cdev a build option

2020-08-13 Thread Kent Gibson
Make the gpiolib-cdev module a build option. This allows the CDEV interface to be removed from the kernel to reduce kernel size in applications where is it not required, and provides the parent for other other CDEV interface specific build options to follow. Suggested-by: Bartosz Golaszewski Sig

[PATCH v4 04/20] gpio: uapi: define uAPI v2

2020-08-13 Thread Kent Gibson
Add a new version of the uAPI to address existing 32/64-bit alignment issues, add support for debounce and event sequence numbers, allow requested lines with different configurations, and provide some future proofing by adding padding reserved for future use. The alignment issue relates to the gpi

[PATCH v4 02/20] gpiolib: cdev: replace strncpy with strscpy

2020-08-13 Thread Kent Gibson
Replace usage of strncpy with strscpy to remove -Wstringop-truncation warnings. The structs being populated are zeroed, to prevent stack leakage as they are returned to userspace, so strscpy performs the equivalent function without the warnings. Reported-by: kernel test robot Signed-off-by: Kent

[PATCH v3] nvmem: core: add sanity check in nvmem_device_read()

2020-08-13 Thread Bingbu Cao
nvmem device read/write could be called directly once nvmem device registered, the sanity check should be done before each nvmem_reg_read/write(). Signed-off-by: Bingbu Cao --- drivers/nvmem/core.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/nvmem/core.c b/drivers/nvmem/cor

[PATCH v4 01/20] gpiolib: cdev: desc_to_lineinfo should set info offset

2020-08-13 Thread Kent Gibson
Set the value of the line info offset in desc_to_lineinfo, rather than relying on it being passed in the info. This makes the function behave as you would expect from the name - it generates the line info corresponding to a given GPIO desc. Signed-off-by: Kent Gibson --- There are some instance

[PATCH v2] sched: print fields name when do sched_show_task

2020-08-13 Thread Libing Zhou
Current sysrq(t) output task fields name are not aligned with actual task fields value, e.g.: kernel: sysrq: Show State kernel: taskPC stack pid father kernel: systemd S12456 1 0 0x kernel: Call Trace: kern

  1   2   3   4   5   6   7   8   9   10   >