Re: [PATCH 5/6] ftrace: replace do_for_each_ftrace_rec() with for_ftrace_rec_iter()

2020-10-07 Thread Wei Yang
On Tue, Oct 06, 2020 at 10:42:17AM -0400, Steven Rostedt wrote: >On Mon, 31 Aug 2020 11:11:03 +0800 >Wei Yang wrote: > >> Now we have two similar infrastructure to iterate ftrace_page and >> dyn_ftrace: >> >> * do_for_each_ftrace_rec() >> * for_ftrace_rec_iter() >> >> The 2nd one, for_ftrace

Re: [PATCH 1/6] ftrace: define seq_file only for FMODE_READ

2020-10-07 Thread Wei Yang
On Tue, Oct 06, 2020 at 10:36:38AM -0400, Steven Rostedt wrote: >On Mon, 31 Aug 2020 11:10:59 +0800 >Wei Yang wrote: > >> The purpose of the operation is to get ftrace_iterator, which is embedded >> in file or seq_file for FMODE_WRITE/FMODE_READ respectively. Since we >> don't have a seq_file for

Re: [PATCH V2] kprobes: Correct a typo in function kprobes_module_callback

2020-10-07 Thread Masami Hiramatsu
On Thu, 8 Oct 2020 03:13:57 + Zhouyi Zhou wrote: > There is a tiny typo in comment of function kprobes_module_callback. > > Signed-off-by: Zhouyi Zhou Thanks for reporting! Acked-by: Masami Hiramatsu > --- > kernel/kprobes.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(

[git pull] drm nouveau fixes for 5.9 final

2020-10-07 Thread Dave Airlie
Hi Linus, Karol found two last minute nouveau fixes, they both fix crashes, the TTM one follows what other drivers do already, and the other is for bailing on load on unrecognised chipsets. Thanks, Dave. drm-fixes-2020-10-08: drm nouveau fixes for 5.9 final nouveau: - fix crash in TTM alloc fai

Re: KASAN: use-after-free Read in delete_partition

2020-10-07 Thread syzbot
syzbot suspects this issue was fixed by commit: commit 08fc1ab6d748ab1a690fd483f41e2938984ce353 Author: Christoph Hellwig Date: Tue Sep 1 09:59:41 2020 + block: fix locking in bdev_del_partition bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=1259b1e790 start commit:

Re: [PATCH] block: Remove redundant 'return' statement

2020-10-07 Thread Baolin Wang
Hi, On Mon, Sep 28, 2020 at 08:42:26AM +0800, Baolin Wang wrote: > Remove redundant 'return' statement for 'void' functions. > > Signed-off-by: Baolin Wang Gentle ping? > --- > block/blk-iocost.c| 2 +- > block/blk-iolatency.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) >

[PATCH] powerpc/smp: Use GFP_ATOMIC while allocating tmp mask

2020-10-07 Thread Srikar Dronamraju
+0x70/0xa0 CPU: 88 PID: 0 Comm: swapper/88 Tainted: GW 5.9.0-rc8-next-20201007 #1 Call Trace: [c0002a4bfcf0] [c0649e98] dump_stack+0xec/0x144 (unreliable) [c0002a4bfd30] [c00f6c34] ___might_sleep+0x2f4/0x310 [c0002a4bfdb0] [c0354f94

Re: [PATCH] scsi: sd: Use UNMAP in case the device doesn't support WRITE_SAME

2020-10-07 Thread Martin K. Petersen
Bean, > There exists a storage device that supports READ_CAPACITY, but doesn't > support WRITE_SAME. The problem is that WRITE SAME heuristics doesn't work > for this kind of storage device since its block limits VPD page doesn't > contain the LBP information. Currently we set its provisioning_m

Re: [PATCH 2/2] Arm: dts: aspeed-g6: Add sgpio node and pinctrl setting

2020-10-07 Thread Joel Stanley
On Thu, 8 Oct 2020 at 01:51, Billy Tsai wrote: > > This patch is used to add sgpiom and sgpios nodes and add pinctrl setting > for sgpiom1 The code looks good Billy. Please split the change in two: device tree changes (arch/arm/dts) in one, and pinctrl in the second, as they go through different

[PATCH v2 2/8] blk-throttle: Avoid getting the current time if tg->last_finish_time is 0

2020-10-07 Thread Baolin Wang
We only update the tg->last_finish_time when the low limitaion is enabled, so we can move the tg->last_finish_time validation a little forward to avoid getting the unnecessary current time stamp if the the low limitation is not enabled. Signed-off-by: Baolin Wang --- block/blk-throttle.c | 8 +++

[PATCH v2 6/8] blk-throttle: Move service tree validation out of the throtl_rb_first()

2020-10-07 Thread Baolin Wang
The throtl_schedule_next_dispatch() will validate if the service queue is empty before calling update_min_dispatch_time(), and the update_min_dispatch_time() will call throtl_rb_first(), which will validate service queue again. Thus we can move the service queue validation out of the throtl_rb_fir

[PATCH v2 1/8] blk-throttle: Remove a meaningless parameter for throtl_downgrade_state()

2020-10-07 Thread Baolin Wang
The throtl_downgrade_state() is always used to change to LIMIT_LOW limitation, thus remove the latter meaningless parameter which indicates the limitation index. Signed-off-by: Baolin Wang --- block/blk-throttle.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/block/bl

[PATCH v2 5/8] blk-throttle: Move the list operation after list validation

2020-10-07 Thread Baolin Wang
We should move the list operation after validation. Signed-off-by: Baolin Wang --- block/blk-throttle.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/block/blk-throttle.c b/block/blk-throttle.c index 0649bce..f1bcb5c 100644 --- a/block/blk-throttle.c +++ b/block/blk-t

[PATCH v2 3/8] blk-throttle: Avoid tracking latency if low limit is invalid

2020-10-07 Thread Baolin Wang
The IO latency tracking is only for LOW limit, so we should add a validation to avoid redundant latency tracking if the LOW limit is not valid. Signed-off-by: Baolin Wang --- block/blk-throttle.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/block/blk-throttle.c b/block/

[PATCH v2 0/8] Some improvements for blk throttle

2020-10-07 Thread Baolin Wang
Hi, This patch set did some improvements for blk throttle, please help to review. Thanks. Changes from v1: - Add another 4 new patches in this patch set. Baolin Wang (8): blk-throttle: Remove a meaningless parameter for throtl_downgrade_state() blk-throttle: Avoid getting the current ti

[PATCH v2 7/8] blk-throttle: Open code __throtl_de/enqueue_tg()

2020-10-07 Thread Baolin Wang
The __throtl_de/enqueue_tg() functions are only be called by throtl_de/enqueue_tg(), thus we can just open code them to make code more readable. Signed-off-by: Baolin Wang --- block/blk-throttle.c | 26 +- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/blo

[PATCH v2 4/8] blk-throttle: Fix IO hang for a corner case

2020-10-07 Thread Baolin Wang
It can not scale up in throtl_adjusted_limit() if we set bps or iops is 1, which will cause IO hang when enable low limit. Thus we should treat 1 as a illegal value to avoid this issue. Signed-off-by: Baolin Wang --- block/blk-throttle.c | 8 1 file changed, 4 insertions(+), 4 deletions

[PATCH v2 8/8] blk-throttle: Re-use the throtl_set_slice_end()

2020-10-07 Thread Baolin Wang
Re-use throtl_set_slice_end() to remove duplicate code. Signed-off-by: Baolin Wang --- block/blk-throttle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/blk-throttle.c b/block/blk-throttle.c index fc5c14f..b771c42 100644 --- a/block/blk-throttle.c +++ b/block/blk-thr

Re: [PATCH 2/2] riscv: Fixup static_obj() fail v2

2020-10-07 Thread Palmer Dabbelt
On Wed, 07 Oct 2020 08:08:33 PDT (-0700), guo...@kernel.org wrote: From: Guo Ren v1 is commit: 6184358da0004c8fd940afda6c0a0fa4027dc911 which has been reverted. When enable LOCKDEP, static_obj() will cause error: [0.067192] INFO: trying to register non-static key. [0.067325] the code

RE: [PATCH 2/2] usb: cdns3: Variable ‘length’ set but not used

2020-10-07 Thread Pawel Laszczak
Siergei, > >On 10/7/20 11:15 AM, Roger Quadros wrote: > >[...] >>> Patch removes not used variable 'length' from >>> cdns3_wa2_descmiss_copy_data function. >>> >>> Signed-off-by: Pawel Laszczak >> >> Fixes: commit 141e70fef4ee ("usb: cdns3: gadget: need to handle sg case for >> workaround 2 case

Re: [PATCH v4 0/2] Control over userfaultfd kernel-fault handling

2020-10-07 Thread Andrea Arcangeli
Hello Lokesh, On Wed, Oct 07, 2020 at 01:26:55PM -0700, Lokesh Gidra wrote: > On Wed, Sep 23, 2020 at 11:56 PM Lokesh Gidra wrote: > > > > This patch series is split from [1]. The other series enables SELinux > > support for userfaultfd file descriptors so that its creation and > > movement can b

[tip:ras/core] BUILD SUCCESS 300638101329e8f1569115f3d7197ef5ef754a3a

2020-10-07 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git ras/core branch HEAD: 300638101329e8f1569115f3d7197ef5ef754a3a x86/mce: Decode a kernel instruction to determine if it is copying from user elapsed time: 723m configs tested: 115 configs skipped: 2 The following configs

Re: [RFC V2] dt-bindings: mailbox : arm,mhuv2: Add bindings

2020-10-07 Thread Viresh Kumar
Updated Morten's email id as he is no longer with ARM. On Wed, 7 Oct 2020 at 20:58, Viresh Kumar wrote: > > This patch adds device tree binding for ARM Message Handling Unit (MHU) > controller version 2. > > Based on earlier work by Morten Borup Petersen. > > Co-developed-by: Morten Borup Peterse

[PATCH] misc: rtsx: rts522a support L1 substate

2020-10-07 Thread ricky_wu
From: Ricky Wu add rts522a L1 substate functions for kernel 5.4 Signed-off-by: Ricky Wu --- drivers/misc/cardreader/rts5227.c | 111 - drivers/misc/cardreader/rtsx_pcr.c | 30 drivers/misc/cardreader/rtsx_pcr.h | 2 + include/linux/rtsx_pci.h

RE: [PATCH 1/2] usb: cdns3: Rids of duplicate error message

2020-10-07 Thread Pawel Laszczak
Hi Roger, > >On 07/10/2020 06:35, Pawel Laszczak wrote: >> On failure, the platform_get_irq_byname prints an error message >> so, patch removes error message related to this function from >> core.c file. >> >> A change was suggested during reviewing CDNSP driver by Chunfeng Yun. >> >> Signed-off-b

Investment!

2020-10-07 Thread Petrus Vermeulen
Greetings, I want to inform you that my principal's family wishes to make huge financial investment in your home Country on areas of oil and gas, real estate, tourism and hotel,manufacturing and production company,agriculture,fishing, Mining & Trading of natural resources such as crude oil, coal

Re: [PATCH 2/2] PCI: vmd: Enable ASPM for mobile platforms

2020-10-07 Thread Kai-Heng Feng
> On Oct 7, 2020, at 21:30, Bjorn Helgaas wrote: > > On Wed, Oct 07, 2020 at 12:26:19PM +0800, Kai-Heng Feng wrote: >>> On Oct 6, 2020, at 03:19, Bjorn Helgaas wrote: >>> On Tue, Oct 06, 2020 at 02:40:32AM +0800, Kai-Heng Feng wrote: > On Oct 3, 2020, at 06:18, Bjorn Helgaas wrote: >

linux-next: build warning after merge of the tip tree

2020-10-07 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (x86_64 allmodconfig) produced this warning: WARNING: modpost: EXPORT symbol "copy_mc_fragile" [vmlinux] version generation failed, symbol will not be versioned. Probably introduced by commit ec6347bb4339 ("x86, powerpc: Rename mem

Re: linux-next: build failure after merge of the drm-misc tree

2020-10-07 Thread Stephen Rothwell
Hi all, On Thu, 8 Oct 2020 14:09:03 +1100 Stephen Rothwell wrote: > > After merging the drm-misc tree, today's linux-next build (x86_64 > allmodconfig) failed like this: In file included from include/linux/clk.h:13, from drivers/gpu/drm/ingenic/ingenic-drm-drv.c:10: drivers/gpu

Re: [v5 01/12] struct device: Add function callback durable_name

2020-10-07 Thread Greg Kroah-Hartman
On Wed, Oct 07, 2020 at 03:10:17PM -0500, Tony Asleson wrote: > On 10/1/20 6:48 AM, Greg Kroah-Hartman wrote: > > On Wed, Sep 30, 2020 at 09:35:52AM -0500, Tony Asleson wrote: > >> On 9/30/20 2:38 AM, Greg Kroah-Hartman wrote: > >>> On Tue, Sep 29, 2020 at 05:04:32PM -0500, Tony Asleson wrote: > >>

Re: [PATCH] misc: Kconfig: add a new dependency for HISI_HIKEY_USB

2020-10-07 Thread Greg Kroah-Hartman
On Wed, Oct 07, 2020 at 07:18:02PM -0700, Nathan Chancellor wrote: > On Wed, Oct 07, 2020 at 07:09:54AM +0200, Mauro Carvalho Chehab wrote: > > As warned by Randy: > > > > on x86_64: > > CONFIG_USB_ROLE_SWITCH=m > > and HISI_HIKEY_USB=y. > > > > ld: drivers/misc/hisi_hikey_usb.o:

Re: [PATCH v3 7/7] dma-buf: system_heap: Add a system-uncached heap re-using the system heap

2020-10-07 Thread John Stultz
On Mon, Oct 5, 2020 at 6:45 AM Christoph Hellwig wrote: > > How is this going to deal with VIVT caches? Hrm. That's a good question. I'm not sure I totally have my head around it but, I guess we could make sure to call invalidate_kernel_vmap_range() in begin_cpu_access() and flush_kernel_vmap_

Re: [PATCH v3 0/3] Support NVIDIA Tegra-based Ouya game console

2020-10-07 Thread Dmitry Osipenko
07.10.2020 19:08, Stephen Warren пишет: ... > The facts[1] that Ouya published the code and that it used GPL-only > symbols certainly does imply that they *should* have published under GPL > or a compatible license, but doesn't mean that they definitely did. The > only way to know that for sure is

Re: [PATCH] mmc: meson-gx: remove IRQF_ONESHOT

2020-10-07 Thread Brad Harper
On 7/10/2020 10:32 pm, Jerome Brunet wrote: With arm64 defconfig on Khadas vim3, no obvious regression. Looks good. Tested-by: Jerome Brunet I did not test with RT. Brad, Could you let us know is Thomas's patch works for you ? Thx There was a merge conflict in applying against v5.9-rc8-rt12 w

[PATCH v11 4/7] Asoc: qcom: lpass:Update lpaif_dmactl members order

2020-10-07 Thread Srinivasa Rao Mandadapu
From: V Sujith Kumar Reddy Update the lpaif_dmactl struct members order to match HDMI reg map members sequence. Separate Interface reg map as it is used for I2S control but not for HDMI control, to make use of bulk API, which makes code more readable. Signed-off-by: V Sujith Kumar Reddy Reviewe

Re: [RFC PATCH v3 2/2] mm: remove extra ZONE_DEVICE struct page refcount

2020-10-07 Thread Ram Pai
On Thu, Oct 01, 2020 at 11:17:15AM -0700, Ralph Campbell wrote: > ZONE_DEVICE struct pages have an extra reference count that complicates the > code for put_page() and several places in the kernel that need to check the > reference count to see that a page is not being used (gup, compaction, > migr

[PATCH v11 2/7] ASoC: dt-bindings: Add dt binding for lpass hdmi

2020-10-07 Thread Srinivasa Rao Mandadapu
From: V Sujith Kumar Reddy Adds bindings for lpass hdmi interface which can support audio path over dp. Signed-off-by: V Sujith Kumar Reddy Reviewed-by: Rob Herring Signed-off-by: Srinivasa Rao --- .../devicetree/bindings/sound/qcom,lpass-cpu.yaml | 74 +++--- 1 file changed

[PATCH v11 7/7] ASoC: qcom: sc7180: Add support for audio over DP

2020-10-07 Thread Srinivasa Rao Mandadapu
From: V Sujith Kumar Reddy Add support for audio playback over DP in lpass sc7180 platform driver. Update lpass_variant structure for hdmi data configuaration. Signed-off-by: V Sujith Kumar Reddy Signed-off-by: Srinivasa Rao --- sound/soc/qcom/lpass-sc7180.c | 116

[PATCH v11 3/7] Asoc:qcom:lpass-cpu:Update dts property read API

2020-10-07 Thread Srinivasa Rao Mandadapu
From: V Sujith Kumar Reddy Update dts property read API call with platform get property by name, as it make code more readable and avoid conflicts when array of properties to be used. Signed-off-by: V Sujith Kumar Reddy Reviewed-by: Srinivas Kandagatla Signed-off-by: Srinivasa Rao --- sound/

[PATCH v11 5/7] ASoC: qcom: Add support for lpass hdmi driver

2020-10-07 Thread Srinivasa Rao Mandadapu
From: V Sujith Kumar Reddy Upadate lpass cpu and platform driver to support audio over dp. Also add lpass-hdmi.c and lpass-hdmi.h. Signed-off-by: V Sujith Kumar Reddy Signed-off-by: Srinivasa Rao --- sound/soc/qcom/Kconfig | 5 + sound/soc/qcom/Makefile | 2 + sound/soc

[PATCH v11 1/7] ASoC: Add sc7180-lpass binding header hdmi define

2020-10-07 Thread Srinivasa Rao Mandadapu
From: V Sujith Kumar Reddy Add header defining hdmi dai-id for SC7180 lpass soc in dt bindings. Signed-off-by: V Sujith Kumar Reddy Acked-by: Rob Herring Signed-off-by: Srinivasa Rao --- include/dt-bindings/sound/sc7180-lpass.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-b

[PATCH v11 0/7] Qualcomm's lpass-hdmi ASoC driver to support audio over dp port

2020-10-07 Thread Srinivasa Rao Mandadapu
These patches are to support audio over DP port on Qualcomm's SC7180 LPASS Asoc. It includes machine driver, cpu driver, platform driver updates for HDMI path support, device tree documention, lpass variant structure optimization and configuration changes. These patches depends on the DP patch se

[PATCH v11 6/7] Asoc: qcom: lpass-platform : Increase buffer size

2020-10-07 Thread Srinivasa Rao Mandadapu
From: V Sujith Kumar Reddy Increase buffer size to support audio over DP. Signed-off-by: V Sujith Kumar Reddy Signed-off-by: Srinivasa Rao Mandadapu --- sound/soc/qcom/lpass-platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/qcom/lpass-platform.c b/sound/

Re: [PATCH] docs: Make automarkup ready for Sphinx 3.1+

2020-10-07 Thread Mauro Carvalho Chehab
Hi Nícolas, Em Wed, 07 Oct 2020 23:12:25 + Nícolas F. R. A. Prado escreveu: > While Sphinx 2 used a single c:type role for struct, union, enum and > typedef, Sphinx 3 uses a specific role for each one. > To keep backward compatibility, detect the Sphinx version and use the > correct roles fo

[PATCH v2] misc: Kconfig: add a new dependency for HISI_HIKEY_USB

2020-10-07 Thread Mauro Carvalho Chehab
As warned by Randy: on x86_64: CONFIG_USB_ROLE_SWITCH=m and HISI_HIKEY_USB=y. ld: drivers/misc/hisi_hikey_usb.o: in function `hisi_hikey_usb_remove': hisi_hikey_usb.c:(.text+0x61): undefined reference to `usb_role_switch_unregister' ld: hisi_hikey_

Re: [PATCH v2 0/5] PCI: dwc: improve msi handling

2020-10-07 Thread Vidya Sagar
On 10/6/2020 12:06 PM, Jisheng Zhang wrote: External email: Use caution opening links or attachments On Tue, 6 Oct 2020 11:56:34 +0530 Vidya Sagar wrote: Hi, Hi, I would like to verify this series along with the other series "PCI: dwc: fix two MSI issues" on Tegra194. I tried to appl

Re: [PATCH] misc: Kconfig: add a new dependency for HISI_HIKEY_USB

2020-10-07 Thread Mauro Carvalho Chehab
Em Wed, 7 Oct 2020 19:52:56 -0700 Randy Dunlap escreveu: > On 10/7/20 7:18 PM, Nathan Chancellor wrote: > > On Wed, Oct 07, 2020 at 07:09:54AM +0200, Mauro Carvalho Chehab wrote: > >> As warned by Randy: > >> > >>on x86_64: > >>CONFIG_USB_ROLE_SWITCH=m > >>and HISI_HIKEY_USB=y. > >>

Re: [PATCH v11 5/7] ASoC: qcom: Add support for lpass hdmi driver

2020-10-07 Thread Srinivas Kandagatla
On 08/10/2020 06:17, Srinivasa Rao Mandadapu wrote: From: V Sujith Kumar Reddy Upadate lpass cpu and platform driver to support audio over dp. Also add lpass-hdmi.c and lpass-hdmi.h. Signed-off-by: V Sujith Kumar Reddy Signed-off-by: Srinivasa Rao --- sound/soc/qcom/Kconfig |

Re: [PATCH v11 0/7] Qualcomm's lpass-hdmi ASoC driver to support audio over dp port

2020-10-07 Thread Srinivas Kandagatla
On 08/10/2020 06:16, Srinivasa Rao Mandadapu wrote: These patches are to support audio over DP port on Qualcomm's SC7180 LPASS Asoc. It includes machine driver, cpu driver, platform driver updates for HDMI path support, device tree documention, lpass variant structure optimization and configur

Re: [PATCH v3 7/7] dma-buf: system_heap: Add a system-uncached heap re-using the system heap

2020-10-07 Thread John Stultz
On Wed, Oct 7, 2020 at 12:44 AM Dan Carpenter wrote: > > Hi John, > > url: > https://github.com/0day-ci/linux/commits/John-Stultz/dma-buf-Performance-improvements-for-system-heap-a-system-uncached-implementation/20201003-120520 > base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds

Re: [PATCH v8 1/6] PCI/ERR: get device before call device driver to avoid NULL pointer dereference

2020-10-07 Thread Ethan Zhao
On Thu, Oct 8, 2020 at 1:24 AM Kuppuswamy, Sathyanarayanan wrote: > > > On 10/7/20 4:31 AM, Ethan Zhao wrote: > > During DPC error injection test we found there is race condition between > > pciehp and DPC driver, NULL pointer dereference caused panic as following > > > > # setpci -s 64:02.0 0x1

[PATCH v2 3/4] fs/proc: apply timens offset for start_boottime of processes

2020-10-07 Thread Michael Weiß
Since start_boottime of processes are seconds since boottime and the boottime stamp is now shifted according to the timens offset, the offset of the time namespace also needs to be applied before the process stats are given to userspace. This avoids that processes shown, e.g., by 'ps' appear as ti

[PATCH v2 1/4] timens: additional helper function to add boottime in nsec

2020-10-07 Thread Michael Weiß
Provide a helper function to apply the boottime offset to u64 types in nanoseconds. Signed-off-by: Michael Weiß --- include/linux/time_namespace.h | 13 + 1 file changed, 13 insertions(+) diff --git a/include/linux/time_namespace.h b/include/linux/time_namespace.h index 5b6031385db0

[PATCH v2 0/4] time namespace aware system boot time

2020-10-07 Thread Michael Weiß
Time namespaces make it possible to virtualize time inside of containers, e.g., it is feasible to reset the uptime of a container to zero by setting the time namespace offset for boottime to the negated current value of the CLOCK_BOOTTIME. However, the boot time stamp provided by getboottime64() d

[PATCH v2 4/4] selftests/timens: added selftest for /proc/stat btime

2020-10-07 Thread Michael Weiß
Test that btime value of /proc/stat is as expected in the time namespace using a simple parser to get btime from /proc/stat. Signed-off-by: Michael Weiß --- tools/testing/selftests/timens/procfs.c | 58 - 1 file changed, 57 insertions(+), 1 deletion(-) diff --git a/tools

[PATCH v2 2/4] time: make getboottime64 aware of time namespace

2020-10-07 Thread Michael Weiß
getboottime64() provides the time stamp of system boot. In case of time namespaces, the offset to the boot time stamp was not applied earlier. However, getboottime64 is used e.g., in /proc/stat to print the system boot time to userspace. In container runtimes which utilize time namespaces to virtua

Re: [PATCH-next 0/4] RDMA: sprintf to sysfs_emit conversions

2020-10-07 Thread Leon Romanovsky
On Wed, Oct 07, 2020 at 07:36:23PM -0700, Joe Perches wrote: > A recent commit added a sysfs_emit and sysfs_emit_at to allow various > sysfs show functions to ensure that the PAGE_SIZE buffer argument is > never overrun and always NUL terminated. Unfortunately but the sysfs_emit commit is not in r

Re: [PATCH v2 5/5] PCI: dwc: Move dw_pcie_msi_init() from each users to designware host

2020-10-07 Thread Vidya Sagar
On 9/24/2020 4:37 PM, Jisheng Zhang wrote: External email: Use caution opening links or attachments Currently, dw_pcie_msi_init() allocates and maps page for msi, then program the PCIE_MSI_ADDR_LO and PCIE_MSI_ADDR_HI. The Root Complex may lose power during suspend-to-RAM, so when we resume,

Re: [PATCH] crypto: xor - Remove unused variable count in do_xor_speed

2020-10-07 Thread Herbert Xu
On Tue, Oct 06, 2020 at 12:58:48PM -0700, Nathan Chancellor wrote: > Clang warns: > > crypto/xor.c:101:4: warning: variable 'count' is uninitialized when used > here [-Wuninitialized] > count++; > ^ > crypto/xor.c:86:17: note: initialize the vari

[PATCH] docs: w1: w1_therm: Fix broken xref, mistakes, clarify text

2020-10-07 Thread Ivan Zaentsev
sysfs attribute names are mixed with the same normal text terms. Use ReST to distinguish. Fix typos and mistakes. Signed-off-by: Ivan Zaentsev --- .../ABI/testing/sysfs-driver-w1_therm | 6 +- Documentation/w1/slaves/w1_therm.rst | 83 +-- 2 files changed, 43 i

Re: [PATCH] X.509: fix error return value on the failed path

2020-10-07 Thread Herbert Xu
On Mon, Oct 05, 2020 at 10:46:28PM +0800, Tianjia Zhang wrote: > When memory allocation fails, an appropriate return value > should be set. > > Fixes: 215525639631 ("X.509: support OSCCA SM2-with-SM3 certificate > verification") > Signed-off-by: Tianjia Zhang > --- > crypto/asymmetric_keys/publ

Re: [PATCH 1/5] mm: Introduce mm_struct.has_pinned

2020-10-07 Thread Leon Romanovsky
On Mon, Sep 28, 2020 at 12:50:03PM -0700, Linus Torvalds wrote: > On Mon, Sep 28, 2020 at 12:36 PM Linus Torvalds > wrote: > > > > So I'll do the pte wrprotect/restore removal. Anybody willing to do > > and test the sequence count approach? > > So the wrprotect removal is trivial, with most of it

Re: [PATCH v8 2/6] PCI/DPC: define a function to check and wait till port finish DPC handling

2020-10-07 Thread Ethan Zhao
On Thu, Oct 8, 2020 at 2:16 AM Kuppuswamy, Sathyanarayanan wrote: > > > On 10/7/20 4:31 AM, Ethan Zhao wrote: > > Once root port DPC capability is enabled and triggered, at the beginning > > of DPC is triggered, the DPC status bits are set by hardware and then > > sends DPC/DLLSC/PDC interrupts to

Re: [PATCH-next 0/4] RDMA: sprintf to sysfs_emit conversions

2020-10-07 Thread Joe Perches
On Thu, 2020-10-08 at 08:41 +0300, Leon Romanovsky wrote: > On Wed, Oct 07, 2020 at 07:36:23PM -0700, Joe Perches wrote: > > A recent commit added a sysfs_emit and sysfs_emit_at to allow various > > sysfs show functions to ensure that the PAGE_SIZE buffer argument is > > never overrun and always NU

Re: [PATCH] KVM: SVM: Use a separate vmcb for the nested L2 guest

2020-10-07 Thread Paolo Bonzini
On 08/10/20 00:14, Maxim Levitsky wrote: >> >> +if (svm->vmcb01->control.asid == 0) >> +svm->vmcb01->control.asid = svm->nested.vmcb02->control.asid; > > I think that the above should be done always. The asid field is currently host > controlled only (that is L2 value is ignored, s

Re: [PATCH] printk: handle blank console arguments passed in.

2020-10-07 Thread Sergey Senozhatsky
On (20/10/08 01:29), Sergey Senozhatsky wrote: > On (20/10/07 08:57), Guenter Roeck wrote: > > On 10/7/20 5:30 AM, Sergey Senozhatsky wrote: > > [..] > > > I can see to options: Link /dev/console to /dev/null if there is no console, > > or do something like > > > > if (IS_ERR(file)) { > >

Re: [v2 PATCH] crypto: sun4i-ss - Fix sparse endianness markers

2020-10-07 Thread Herbert Xu
On Thu, Sep 24, 2020 at 03:27:38PM +0200, Corentin Labbe wrote: > > This is an example on next-20200923+BigEndian > alg: ahash: sha1 test failed (wrong result) on test vector \"random: > psize=194 ksize=0\", cfg=\"random: inplace may_sleep use_finup > src_divs=[98.25%@+1124, 1.75%@+5] iv_offset=1

Re: [v5 01/12] struct device: Add function callback durable_name

2020-10-07 Thread Hannes Reinecke
On 10/7/20 10:10 PM, Tony Asleson wrote: On 10/1/20 6:48 AM, Greg Kroah-Hartman wrote: On Wed, Sep 30, 2020 at 09:35:52AM -0500, Tony Asleson wrote: On 9/30/20 2:38 AM, Greg Kroah-Hartman wrote: On Tue, Sep 29, 2020 at 05:04:32PM -0500, Tony Asleson wrote: I'm trying to figure out a way to po

[PATCH] lib/mpi: Remove unused scalar_copied

2020-10-07 Thread Herbert Xu
On Mon, Sep 28, 2020 at 01:24:38PM -0500, Gustavo A. R. Silva wrote: > > I'm reporting the following bug detected by Coverity: > > The _scalar_copied_ variable is set to 0 at > > lib/mpi/ec.c:1255: > 1255 int scalar_copied = 0; > > and it is never updated before reaching the cod

Re: [PATCH] docs: Make automarkup ready for Sphinx 3.1+

2020-10-07 Thread Mauro Carvalho Chehab
Em Thu, 8 Oct 2020 03:47:06 +0100 Matthew Wilcox escreveu: > On Thu, Oct 08, 2020 at 02:15:24AM +, Nícolas F. R. A. Prado wrote: > > > I have a feature request ... could you automarkup NULL as being > > > :c:macro? > > > Or maybe just anything matching \<[[:upper:]_[:digit:]]*\> > > > (i may

Re: [PATCH v2] misc: Kconfig: add a new dependency for HISI_HIKEY_USB

2020-10-07 Thread Greg Kroah-Hartman
On Thu, Oct 08, 2020 at 07:30:27AM +0200, Mauro Carvalho Chehab wrote: > As warned by Randy: > > on x86_64: > CONFIG_USB_ROLE_SWITCH=m > and HISI_HIKEY_USB=y. > > ld: drivers/misc/hisi_hikey_usb.o: in function `hisi_hikey_usb_remove': > hisi_hikey_usb.c:(.text+0x61):

[PATCH v10 05/15] dt-bindings: connector: Add property to set initial current cap for FRS

2020-10-07 Thread Badhri Jagan Sridharan
This change adds frs-typec-current which allows setting the initial current capability of the new source when vSafe5V is applied during PD3.0 sink Fast Role Swap. Signed-off-by: Badhri Jagan Sridharan --- Changes since v1: - Changing patch version to v6 to fix version number confusion. Changes s

[PATCH v10 01/15] usb: typec: tcpci: Add a getter method to retrieve tcpm_port reference

2020-10-07 Thread Badhri Jagan Sridharan
Allow chip level drivers to retrieve reference to tcpm_port. Signed-off-by: Badhri Jagan Sridharan Reviewed-by: Heikki Krogerus --- Change since v1: - Changing patch version to v6 to fix version number confusion. Change since v6: - Rebase on usb-next - Added Reviewed-by from Heikki. Change sin

[PATCH v10 00/15] TCPM support for FRS and AutoDischarge Disconnect

2020-10-07 Thread Badhri Jagan Sridharan
Hi, Made two changes: 1. Added "additionalProperties: false" as suggested by Rob Herring in https://lore.kernel.org/linux-usb/20201005144618.GA154206@bogus/ 2. Removed FRS dts binding constants to address Rob Herring's comment in https://lore.kernel.org/linux-usb/20201006182940.GA2574941@bogus/

[PATCH v10 11/15] usb: typec: tcpci_max77759: Fix vbus stuck on upon diconnecting sink

2020-10-07 Thread Badhri Jagan Sridharan
Occasionally, POWER_STATUS.sourcing_vbus takes a while to clear after writing to MAX_BUCK_BOOST_OP register. This causes vbus to turn back on while disconnecting the sink. Overcome this issue by writing into MAX_BUCK_BOOST_OP during frs while sourcing vbu, instead of always into the register whene

[PATCH v10 12/15] usb: typec: tcpm: Parse frs type-c current from device tree

2020-10-07 Thread Badhri Jagan Sridharan
New source's current capability is now defined as string based device tree property through new-source-frs-typec-current. Refactor tcpm code to parse new-source-frs-typec-current and infer local port's new source current capability during frs. Signed-off-by: Badhri Jagan Sridharan --- v9 is the f

[PATCH v10 10/15] usb: typec: tcpci: frs sourcing vbus callback

2020-10-07 Thread Badhri Jagan Sridharan
During FRS hardware autonomously starts to source vbus. Provide callback to perform chip specific operations. Signed-off-by: Badhri Jagan Sridharan --- v9 is the first version of this patch in the series. Added to fix occasional bug of vbus turning back on when disconnecting the FRS accessory aft

[PATCH v10 09/15] usb: typec: tcpm: frs sourcing vbus callback

2020-10-07 Thread Badhri Jagan Sridharan
During FRS hardware autonomously starts to source vbus. Provide callback to perform chip specific operations. Signed-off-by: Badhri Jagan Sridharan --- Introduced in v9. No chages since then. --- drivers/usb/typec/tcpm/tcpm.c | 9 + include/linux/usb/tcpm.h | 4 2 files changed

[PATCH v10 15/15] usb: typec: tcpci_maxim: Enable auto discharge disconnect

2020-10-07 Thread Badhri Jagan Sridharan
Enable auto discharge disconnect for Maxim TCPC. Signed-off-by: Badhri Jagan Sridharan --- Changes since v1: - Changing patch version to v6 to fix version number confusion. Changes since v6: - Rebase on usb-next. Changes since v7: - Heikki's suggestion: Moved the actual write of TCPC_VBUS_SINK_

[PATCH v10 08/15] usb: typec: tcpci_maxim: Add support for Sink FRS

2020-10-07 Thread Badhri Jagan Sridharan
Upon receiving ALERT_EXTENDED.TCPC_SINK_FAST_ROLE_SWAP signal tcpm to start Sink fast role swap signal. Inform when TCPM is sourcing vbus. Signed-off-by: Badhri Jagan Sridharan Reviewed-by: Heikki Krogerus --- Changes since v1: - Changing patch version to v6 to fix version number confusion. Ch

[PATCH v10 14/15] usb: typec: tcpci: Implement Auto discharge disconnect callbacks

2020-10-07 Thread Badhri Jagan Sridharan
vImplement callbacks for enabling/disabling POWER_CONTROL.AutoDischargeDisconnect. Programs VBUS_SINK_DISCONNECT_THRESHOLD based on the voltage requested as sink, mode of operation. The programmed threshold is based on vSinkDisconnect and vSinkDisconnectPD values. Add auto_discharge_disconnect t

[PATCH v10 04/15] usb: typec: tcpci_maxim: Chip level TCPC driver

2020-10-07 Thread Badhri Jagan Sridharan
Chip level TCPC driver for Maxim's TCPCI implementation. This TCPC implementation does not support the following commands: COMMAND.SinkVbus, COMMAND.SourceVbusDefaultVoltage, COMMAND.SourceVbusHighVoltage. Instead the sinking and sourcing from vbus is supported by writes to custom registers. Signe

[PATCH v10 07/15] usb: typec: tcpci: Implement callbacks for FRS

2020-10-07 Thread Badhri Jagan Sridharan
Implement tcpc.enable_frs to enable TCPC to receive Fast role swap signal. Additionally set the sink disconnect threshold to 4v to prevent disconnect during Fast Role swap. Signed-off-by: Badhri Jagan Sridharan Reviewed-by: Heikki Krogerus --- Changes since v1: - Changing patch version to v6 to

[PATCH v10 02/15] usb: typec: tcpci: Add set_vbus tcpci callback

2020-10-07 Thread Badhri Jagan Sridharan
set_vbus callback allows TCPC which are TCPCI based, however, does not support turning on sink and source mode through Command.SinkVbus and Command.SourceVbusDefaultVoltage. Signed-off-by: Badhri Jagan Sridharan Reviewed-by: Heikki Krogerus --- Changes since v1: - Changing patch version to v6 to

[PATCH v10 03/15] dt-bindings: usb: Maxim type-c controller device tree binding document

2020-10-07 Thread Badhri Jagan Sridharan
Add device tree binding document for Maxim TCPCI based Type-C chip driver Signed-off-by: Badhri Jagan Sridharan --- Changes since v1: - Changing patch version to v6 to fix version number confusion. Changes since v6: - Migrated to yaml format. Changes since v7: - Rebase on usb-next Changes sinc

[PATCH v10 13/15] usb: typec: tcpm: Implement enabling Auto Discharge disconnect support

2020-10-07 Thread Badhri Jagan Sridharan
TCPCI spec allows TCPC hardware to autonomously discharge the vbus capacitance upon disconnect. The expectation is that the TCPM enables AutoDischargeDisconnect while entering SNK/SRC_ATTACHED states. Hardware then automously discharges vbus when the vbus falls below a certain threshold i.e. VBUS_S

[PATCH v10 06/15] usb: typec: tcpm: Add support for Sink Fast Role SWAP(FRS)

2020-10-07 Thread Badhri Jagan Sridharan
PD 3.0 spec defines a new mechanism for power role swap called Fast role swap. This change enables TCPM to support FRS when acting as sink. Once the explicit contract is negotiated, sink port is expected to query the source port for sink caps to determine whether the source is FRS capable. Bits 23

arceb-elf-ld: include/linux/leds.h:193: undefined reference to `devm_led_classdev_register_ext'

2020-10-07 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: c85fb28b6f999db9928b841f63f1beeb3074eeca commit: 92a81562e695628086acb92f95090ab09d9b9ec0 leds: lp55xx: Add multicolor framework support to lp55xx date: 3 months ago config: arc-randconfig-r035-20201008 (a

Re: [PATCH 1/2] mm/mprotect: Call arch_validate_prot under mmap_lock and with length

2020-10-07 Thread Christoph Hellwig
On Wed, Oct 07, 2020 at 04:42:55PM +0200, Jann Horn wrote: > > > @@ -43,7 +43,7 @@ static inline long do_mmap2(unsigned long addr, size_t > > > len, > > > { > > > long ret = -EINVAL; > > > > > > - if (!arch_validate_prot(prot, addr)) > > > + if (!arch_validate_prot(prot, addr, len))

Re: [v5 01/12] struct device: Add function callback durable_name

2020-10-07 Thread Finn Thain
On Wed, 7 Oct 2020, Tony Asleson wrote: > The log information is not helpful without the information to correlate > to the actual device. Log messages that associate one entity with another can be generated whenever such an association comes into existence, which is probably when devices get p

RE: [PATCH v2 2/2] media: dt-bindings: media: i2c: Add bindings for ADDI9036

2020-10-07 Thread Togorean, Bogdan
Thank you Rob for review > On Fri, Oct 02, 2020 at 04:35:17PM +0300, Bogdan Togorean wrote: > > Add YAML device tree bindings for Analog Devices Inc. ADDI9036 CCD TOF > > front-end. > > > > Signed-off-by: Bogdan Togorean > > --- > > v2: added reg property description > > --- > > .../bindings/medi

[PATCH] misc: Kconfig: fix a HISI_HIKEY_USB dependency

2020-10-07 Thread Mauro Carvalho Chehab
The dependency should be just USB_ROLE_SWITCH, instead of CONFIG_USB_ROLE_SWITCH. Fixes: 2827d98bc5d6 ("misc: Kconfig: add a new dependency for HISI_HIKEY_USB") Reported-by: Nathan Chancellor Signed-off-by: Mauro Carvalho Chehab --- drivers/misc/Kconfig | 2 +- 1 file changed, 1 insertion(+),

Re: [PATCH] misc: Kconfig: fix a HISI_HIKEY_USB dependency

2020-10-07 Thread Nathan Chancellor
On Thu, Oct 08, 2020 at 08:24:53AM +0200, Mauro Carvalho Chehab wrote: > The dependency should be just USB_ROLE_SWITCH, instead > of CONFIG_USB_ROLE_SWITCH. > > Fixes: 2827d98bc5d6 ("misc: Kconfig: add a new dependency for HISI_HIKEY_USB") > > Reported-by: Nathan Chancellor > Signed-off-by: Maur

Re: [PATCH v2] misc: Kconfig: add a new dependency for HISI_HIKEY_USB

2020-10-07 Thread Mauro Carvalho Chehab
Em Thu, 8 Oct 2020 08:14:43 +0200 Greg Kroah-Hartman escreveu: > On Thu, Oct 08, 2020 at 07:30:27AM +0200, Mauro Carvalho Chehab wrote: > > As warned by Randy: > > > > on x86_64: > > CONFIG_USB_ROLE_SWITCH=m > > and HISI_HIKEY_USB=y. > > > > ld: drivers/misc/hisi_hikey_usb.o: in

Re: [PATCH v9 02/15] usb: typec: tcpci: Add set_vbus tcpci callback

2020-10-07 Thread Badhri Jagan Sridharan
On Sat, Oct 3, 2020 at 8:56 AM Greg Kroah-Hartman wrote: > > On Fri, Oct 02, 2020 at 09:08:00AM -0700, Badhri Jagan Sridharan wrote: > > Hi Greg, > > > > Yes I tested it on usb-next before sending it out. > > > > 630 | tcpci->tcpc.enable_frs = tcpci_enable_frs; > > > > In https://patchwork.kern

Re: [PATCH v2 2/2] media: dt-bindings: media: i2c: Add bindings for ADDI9036

2020-10-07 Thread Sakari Ailus
Hi Bogdan, On Thu, Oct 08, 2020 at 06:23:33AM +, Togorean, Bogdan wrote: > Thank you Rob for review > > On Fri, Oct 02, 2020 at 04:35:17PM +0300, Bogdan Togorean wrote: > > > Add YAML device tree bindings for Analog Devices Inc. ADDI9036 CCD TOF > > > front-end. > > > > > > Signed-off-by: Bogd

[PATCH v2] selftests/tls: Add {} to avoid static checker warning

2020-10-07 Thread Kees Cook
This silences a static checker warning due to the unusual macro construction of EXPECT_*() by adding explicit {}s around the enclosing while loop. Reported-by: Dan Carpenter Fixes: 7f657d5bf507 ("selftests: tls: add selftests for TLS sockets") Signed-off-by: Kees Cook --- v2: rebase to v5.9-rc2;

Re: [v2 PATCH] crypto: sun4i-ss - Fix sparse endianness markers

2020-10-07 Thread Corentin Labbe
On Thu, Oct 08, 2020 at 04:52:38PM +1100, Herbert Xu wrote: > On Thu, Sep 24, 2020 at 03:27:38PM +0200, Corentin Labbe wrote: > > > > This is an example on next-20200923+BigEndian > > alg: ahash: sha1 test failed (wrong result) on test vector \"random: > > psize=194 ksize=0\", cfg=\"random: inplac

Re: [PATCH 01/18] dmaengine: of-dma: Add support for optional router configuration callback

2020-10-07 Thread Peter Ujfalusi
On 07/10/2020 18.55, Vinod Koul wrote: > On 07-10-20, 11:08, Peter Ujfalusi wrote: > >> Not really. In DT an event triggered channel can be requested via router >> (when this is used) for example: >> >> dmas = <&inta_l2g a b c>; >> a - the input number of the DMA request in l2g >> b - edge or l

RE: [PATCH v2 2/2] media: dt-bindings: media: i2c: Add bindings for ADDI9036

2020-10-07 Thread Togorean, Bogdan
Hi Sakari, > Hi Bogdan, > > On Thu, Oct 08, 2020 at 06:23:33AM +, Togorean, Bogdan wrote: > > Thank you Rob for review > > > On Fri, Oct 02, 2020 at 04:35:17PM +0300, Bogdan Togorean wrote: > > > > Add YAML device tree bindings for Analog Devices Inc. ADDI9036 CCD TOF > > > > front-end. > > >

<    6   7   8   9   10   11   12   >