[PATCH v2 2/7] fpga: sec-mgr: enable secure updates

2020-10-02 Thread Russ Weight
Extend the FPGA Intel Security Manager class driver to include an update/filename sysfs node that can be used to initiate a security update. The filename of a secure update file (BMC image, FPGA image, Root Entry Hash image, or Code Signing Key cancellation image) can be written to this sysfs

[PATCH v2 3/7] fpga: sec-mgr: expose sec-mgr update status

2020-10-02 Thread Russ Weight
Extend the Intel Security Manager class driver to include an update/status sysfs node that can be polled and read to monitor the progress of an ongoing secure update. Sysfs_notify() is used to signal transitions between different phases of the update process. Signed-off-by: Russ Weight --- v2:

[PATCH v2 6/7] fpga: sec-mgr: enable cancel of secure update

2020-10-02 Thread Russ Weight
Extend the Intel Security Manager class driver to include an update/cancel sysfs file that can be written to request that an update be canceled. The write may return EBUSY if the update has progressed to the point that it cannot be canceled by software or ENODEV if there is no update in progress.

[PATCH v2 5/7] fpga: sec-mgr: expose sec-mgr update size

2020-10-02 Thread Russ Weight
Extend the Intel Security Manager class driver to include an update/remaining_size sysfs node that can be read to determine how much data remains to be transferred to the secure update engine. This file can be used to monitor progress during the "writing" phase of an update. Signed-off-by: Russ

[PATCH v2 7/7] fpga: sec-mgr: expose hardware error info

2020-10-02 Thread Russ Weight
Extend the Intel Security Manager class driver to include an optional update/hw_errinfo sysfs node that can be used to retrieve 64 bits of device specific error information following a secure update failure. The underlying driver must provide a get_hw_errinfo() callback function to enable this

[PATCH v2 0/7] Intel FPGA Security Manager Class Driver

2020-10-02 Thread Russ Weight
The Intel FPGA Security Manager class driver provides a common API for user-space tools to manage updates for secure Intel FPGA devices. Device drivers that instantiate the Intel Security Manager class driver will interact with a HW secure update engine in order to transfer new FPGA and BMC images

Re: [PATCH bpf-next v4 0/6] bpf: BTF support for ksyms

2020-10-02 Thread Hao Luo
Thanks, Alexei and Andrii and other reviewers for the comments. It's a pleasure to work with you and contribute to bpf. Hao On Fri, Oct 2, 2020 at 3:16 PM Alexei Starovoitov wrote: > > On Tue, Sep 29, 2020 at 11:48 PM Hao Luo wrote: > > > > Ah, this is the bug in pahole described in > >

drivers/block/rbd.c: atomic_inc_return_safe() & atomic_dec_return_safe()

2020-10-02 Thread Shuah Khan
All, I came across these atomic_inc_return_safe() & atomic_dec_return_safe() functions that hold the counters at safe values. atomic_inc_return_safe() If the counter is already 0 it will not be incremented. If the counter is already at its maximum value returns -EINVAL without updating it.

Re: [PATCH V3 1/8] sysfs: Add sysfs_emit and sysfs_emit_at to format sysfs output

2020-10-02 Thread Kees Cook
On Wed, Sep 30, 2020 at 09:22:19PM -0700, Joe Perches wrote: > On Wed, 2020-09-30 at 21:17 -0700, Kees Cook wrote: > > On Wed, Sep 30, 2020 at 01:57:40PM +0200, Greg Kroah-Hartman wrote: > > > Kees, and Rafael, I don't know if you saw this proposal from Joe for > > > sysfs files, questions below:

Re: [PATCH v9 0/7] Introduce sendpage_ok() to detect misused sendpage in network related drivers

2020-10-02 Thread David Miller
From: Coly Li Date: Fri, 2 Oct 2020 16:30:12 +0800 > Obviously my fault and no excuse for leaking this uncompleted version to > you. I just re-post a v10 version which I make sure all patches are the > latest version. > > Sorry for the inconvenience and thank you in advance for taking this set.

Re: [PATCH v10 0/7] Introduce sendpage_ok() to detect misused sendpage in network related drivers

2020-10-02 Thread David Miller
From: Coly Li Date: Fri, 2 Oct 2020 16:27:27 +0800 > As Sagi Grimberg suggested, the original fix is refind to a more common > inline routine: > static inline bool sendpage_ok(struct page *page) > { > return (!PageSlab(page) && page_count(page) >= 1); > } > If sendpage_ok()

Re: [PATCH v4 1/2] dt-bindings: usb: Add binding for discrete onboard USB hubs

2020-10-02 Thread Rob Herring
On Fri, Oct 2, 2020 at 12:08 PM Doug Anderson wrote: > > Hi, > > On Wed, Sep 30, 2020 at 1:20 PM Rob Herring wrote: > > > > > > > Datasheets from different manufacturers refer to these ICs as "USB hub > > > > > controller". Calling the node "usb-hub-controller" would indeed help > > > > > to >

Re: [PATCH V3 1/8] sysfs: Add sysfs_emit and sysfs_emit_at to format sysfs output

2020-10-02 Thread Kees Cook
On Thu, Oct 01, 2020 at 10:50:29PM +0200, Greg Kroah-Hartman wrote: > On Wed, Sep 30, 2020 at 09:17:03PM -0700, Kees Cook wrote: > > On Wed, Sep 30, 2020 at 01:57:40PM +0200, Greg Kroah-Hartman wrote: > > > Kees, and Rafael, I don't know if you saw this proposal from Joe for > > > sysfs files,

Re: [PATCH v4 01/11] mm: add Kernel Electric-Fence infrastructure

2020-10-02 Thread Jann Horn
On Fri, Oct 2, 2020 at 11:28 PM Marco Elver wrote: > On Fri, 2 Oct 2020 at 21:32, Jann Horn wrote: > > > That's another check; we don't want to make this more expensive. > > > > Ah, right, I missed that this is the one piece of KFENCE that is > > actually really hot code until Dmitry pointed

Re: [PATCH 2/3] arm64: dts: qcom: sc7180: Add soc-specific qfprom compat string

2020-10-02 Thread Doug Anderson
Hi, On Tue, Sep 29, 2020 at 1:58 PM Evan Green wrote: > > Add the soc-specific compatible string so that it can be matched > more specifically now that the driver cares which SoC it's on. > > Signed-off-by: Evan Green > --- > > arch/arm64/boot/dts/qcom/sc7180.dtsi | 2 +- > 1 file changed, 1

Re: Why ping latency is smaller with shorter send interval?

2020-10-02 Thread David Miller
Can you please not send the same posting to the mailing list three times, from three different email addresses? Once is enough, thank you.

[PATCH v8 3/3] media: i2c: ov772x: Add test pattern control

2020-10-02 Thread Lad Prabhakar
Add support for test pattern control supported by the sensor. Signed-off-by: Lad Prabhakar Reviewed-by: Biju Das Reviewed-by: Jacopo Mondi --- drivers/media/i2c/ov772x.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/media/i2c/ov772x.c

[PATCH v8 1/3] media: i2c: ov772x: Parse endpoint properties

2020-10-02 Thread Lad Prabhakar
Parse endpoint properties using v4l2_fwnode_endpoint_alloc_parse() to determine the bus type and store it in the driver structure. Set bus_type to V4L2_MBUS_PARALLEL as it's the only supported one Signed-off-by: Lad Prabhakar Reviewed-by: Jacopo Mondi --- drivers/media/i2c/ov772x.c | 34

[PATCH v8 2/3] media: i2c: ov772x: Add support for BT.656 mode

2020-10-02 Thread Lad Prabhakar
Add support to read the bus-type for V4L2_MBUS_BT656 and enable BT.656 mode in the sensor if needed. For backward compatibility with older DTS where the bus-type property was not mandatory, assume V4L2_MBUS_PARALLEL as it was the only supported bus at the time. v4l2_fwnode_endpoint_alloc_parse()

[PATCH v8 0/3] media: i2c: ov772x: Enable BT.656 mode and test pattern support

2020-10-02 Thread Lad Prabhakar
Hi All, This patch series adds support for BT.656 mode in the ov772x sensor and also enables color bar test pattern control. Cheers, Prabhakar V7->v8 * Fixed review comments pointed by Sakari v6->v7 * Fixed review comments pointed by Sakari * Included Ack from Jacopo v5->v6 * Introduced new

Re: [PATCH 1/3] dt-bindings: nvmem: Add qcom,sc7180-qfprom compatible string

2020-10-02 Thread Doug Anderson
Hi, On Tue, Sep 29, 2020 at 1:58 PM Evan Green wrote: > > Add an SoC-specific compatible string so that data can be attached > to it in the driver. > > Signed-off-by: Evan Green > --- > > Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml | 4 +++- > 1 file changed, 3 insertions(+), 1

Re: [PATCH] checkpatch: Emit a warning on embedded filenames

2020-10-02 Thread Andrew Morton
On Thu, 01 Oct 2020 11:28:10 -0700 Joe Perches wrote: > Embedding the complete filename path inside the file > isn't particularly useful as often the path is moved > around and becomes incorrect. > > Emit a warning when the source contains the filename. > > ... > > --- a/scripts/checkpatch.pl

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

2020-10-02 Thread Bjorn Helgaas
On Wed, Sep 30, 2020 at 04:24:54PM +0800, Kai-Heng Feng wrote: > BIOS may not be able to program ASPM for links behind VMD, prevent Intel > SoC from entering deeper power saving state. It's not a question of BIOS not being *able* to configure ASPM. I think BIOS could do it, at least in

Re: [PATCH bpf-next v4 0/6] bpf: BTF support for ksyms

2020-10-02 Thread Alexei Starovoitov
On Tue, Sep 29, 2020 at 11:48 PM Hao Luo wrote: > > Ah, this is the bug in pahole described in > https://lkml.org/lkml/2020/8/20/1862. I proposed a fix [1] but it > hasn't reached pahole's master branch. Let me ask Arnaldo to see if he > is OK merging it. > > [1]

Re: [PATCH 1/6] net: core: document two new elements of struct net_device

2020-10-02 Thread David Miller
From: Mauro Carvalho Chehab Date: Fri, 2 Oct 2020 07:49:45 +0200 > As warned by "make htmldocs", there are two new struct elements > that aren't documented: > > ../include/linux/netdevice.h:2159: warning: Function parameter or > member 'unlink_list' not described in 'net_device' >

[PATCH 1/4] ubsan: Move cc-option tests into Kconfig

2020-10-02 Thread Kees Cook
Instead of doing if/endif blocks with cc-option calls in the UBSAN Makefile, move all the tests into Kconfig and use the Makefile to collect the results. Suggested-by: Linus Torvalds Link: https://lore.kernel.org/lkml/CAHk-=wjPasyJrDuwDnpHJS2TuQfExwe=px-szlen8gfmaqj...@mail.gmail.com/

[PATCH 4/4] ubsan: Disable UBSAN_TRAP for all*config

2020-10-02 Thread Kees Cook
Doing all*config builds attempts build as much as possible. UBSAN_TRAP effectively short-circuits lib/usban.c, so it should be disabled for COMPILE_TEST so that the lib/ubsan.c code gets built. Signed-off-by: Kees Cook --- lib/Kconfig.ubsan | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 3/4] ubsan: Force -Wno-maybe-uninitialized only for GCC

2020-10-02 Thread Kees Cook
Clang handles 'maybe-uninitialized' better in the face of using UBSAN, so do not make this universally disabled for UBSAN builds. Signed-off-by: Kees Cook --- lib/Kconfig.ubsan | 6 ++ scripts/Makefile.ubsan | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git

[PATCH 2/4] ubsan: Disable object-size sanitizer under GCC

2020-10-02 Thread Kees Cook
GCC's -fsanitize=object-size (as part of CONFIG_UBSAN_MISC) greatly increases stack utilization. Do not allow this under GCC. Suggested-by: Linus Torvalds Link: https://lore.kernel.org/lkml/CAHk-=wjPasyJrDuwDnpHJS2TuQfExwe=px-szlen8gfmaqj...@mail.gmail.com/ Signed-off-by: Kees Cook ---

[PATCH 0/4] Clean up UBSAN Makefile

2020-10-02 Thread Kees Cook
Hi, This series attempts to address the issues seen with UBSAN's object-size sanitizer causing problems under GCC. In the process, the Kconfig and Makefile are refactored to do all the cc-option calls in the Kconfig. Additionally start to detangle -Wno-maybe-uninitialized, and disable UBSAN_TRAP

Re: [PATCH v2 4/6] arm64: Add set_pud_at() function

2020-10-02 Thread Kalesh Singh
On Fri, Oct 2, 2020 at 12:52 PM Kirill A. Shutemov wrote: > > On Fri, Oct 02, 2020 at 04:20:49PM +, Kalesh Singh wrote: > > set_pud_at() is used in move_normal_pud() for remapping > > pages at the PUD level. > > > > Signed-off-by: Kalesh Singh > > --- > > arch/arm64/include/asm/pgtable.h |

[PATCH] drm/msm/dp: fixes wrong connection state caused by failure of link train

2020-10-02 Thread Kuogee Hsieh
Connection state is set incorrectly happen at either failure of link train or cable plugged in while suspended. This patch fixes these problems. This patch also replace ST_SUSPEND_PENDING with ST_DISPLAY_OFF. Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_display.c | 52

Re: [PATCH v2 3/6] mm: Speedup mremap on 1GB or larger regions

2020-10-02 Thread Kalesh Singh
Hi Kirill, thank you for the feedback. On Fri, Oct 2, 2020 at 12:51 PM Kirill A. Shutemov wrote: > > On Fri, Oct 02, 2020 at 04:20:48PM +, Kalesh Singh wrote: > > Android needs to move large memory regions for garbage collection. > > The GC requires moving physical pages of multi-gigabyte

Re: [PATCH v2 3/3] tracing: Add support for dynamic strings to synthetic events

2020-10-02 Thread Tom Zanussi
Hi Masami, On Fri, 2020-10-02 at 16:17 +0900, Masami Hiramatsu wrote: > Hi Tom, > > On Wed, 30 Sep 2020 13:40:52 -0500 > Tom Zanussi wrote: > > > Currently, sythetic events only support static string fields such > > as: > > > > # echo 'test_latency u64 lat; char somename[32]' > > >

Re: [PATCH v2 2/2] selftests/vm: fix run_vmtest.sh: restore executable bits, and "s" in name

2020-10-02 Thread John Hubbard
On 10/2/20 2:59 PM, Andrew Morton wrote: On Fri, 2 Oct 2020 01:40:49 -0700 John Hubbard wrote: commit cb2ab76685d7 ("selftests/vm: rename run_vmtests --> run_vmtests.sh") changed the name of run_vmtests to run_vmtest.sh, but inadvertently dropped the executable bits. We cannot depend on the

Re: [PATCH v3 1/3] tracing: Change STR_VAR_MAX_LEN

2020-10-02 Thread Tom Zanussi
Hi Steve, On Fri, 2020-10-02 at 15:44 -0400, Steven Rostedt wrote: > On Thu, 1 Oct 2020 16:46:44 -0500 > Tom Zanussi wrote: > > > 32 is too small for this value, and anyway it makes more sense to > > use > > MAX_FILTER_STR_VAL, as this is also the value used for variable- > > length > >

Re: [PATCH 1/1] selftests/vm: 8x compaction_test speedup

2020-10-02 Thread Andrew Morton
On Fri, 2 Oct 2020 01:06:21 -0700 John Hubbard wrote: > This patch reduces the running time for compaction_test from about 27 > sec, to 3.3 sec, which is about an 8x speedup. > > These numbers are for an Intel x86_64 system with 32 GB of DRAM. > > The compaction_test.c program was spending

[ANNOUNCE] 4.19.148-rt64

2020-10-02 Thread Tom Zanussi
Hello RT Folks! I'm pleased to announce the 4.19.148-rt64 stable release. This release is just an update to the new stable 4.19.148 version and no RT specific changes have been made. You can get this release via the git tree at:

Re: [PATCH v2 2/2] selftests/vm: fix run_vmtest.sh: restore executable bits, and "s" in name

2020-10-02 Thread Andrew Morton
On Fri, 2 Oct 2020 01:40:49 -0700 John Hubbard wrote: > commit cb2ab76685d7 ("selftests/vm: rename run_vmtests --> > run_vmtests.sh") changed the name of run_vmtests to run_vmtest.sh, but > inadvertently dropped the executable bits. We cannot depend on the x bit. Because downloading

Re: [PATCH v7 3/3] media: i2c: ov772x: Add test pattern control

2020-10-02 Thread Sakari Ailus
On Fri, Oct 02, 2020 at 10:32:05PM +0100, Lad, Prabhakar wrote: > Hi Sakari, > > Thank you for the review. > > On Fri, Oct 2, 2020 at 10:13 PM Sakari Ailus > wrote: > > > > On Fri, Oct 02, 2020 at 05:56:56PM +0100, Lad Prabhakar wrote: > > > Add support for test pattern control supported by the

Re: [GIT PULL] PCI fixes for v5.9

2020-10-02 Thread pr-tracker-bot
The pull request you sent on Fri, 2 Oct 2020 14:23:40 -0500: > git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git > tags/pci-v5.9-fixes-2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/4d9c3a688a01e7dd0a33cf3ddb7b206cf867b615 Thank you! --

Re: [GIT PULL] io_uring fixes for 5.9-rc

2020-10-02 Thread pr-tracker-bot
The pull request you sent on Fri, 2 Oct 2020 11:48:48 -0600: > git://git.kernel.dk/linux-block.git tags/io_uring-5.9-2020-10-02 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/702bfc891db162b99e880da78cc256dac14cfc7f Thank you! -- Deet-doot-dot, I am a bot.

Re: [GIT PULL] pin control fixes for v5.9

2020-10-02 Thread pr-tracker-bot
The pull request you sent on Fri, 2 Oct 2020 23:45:39 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git > tags/pinctrl-v5.9-2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/d3d45f8220d60a0b2cf8fb2be4e6ffd9008e Thank you! --

Re: [GIT PULL] SCSI fixes for 5.9-rc7

2020-10-02 Thread pr-tracker-bot
The pull request you sent on Fri, 02 Oct 2020 12:28:04 -0700: > git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git scsi-fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/cb6f55af1fb28655c9f3843bc12c0a48856c1d09 Thank you! -- Deet-doot-dot, I am a bot.

Re: [PATCH v2 2/3] media: i2c: Add support for the OV8865 image sensor

2020-10-02 Thread Sakari Ailus
Hi Kévin, Thanks for the patchset. It's a nice driver; please see my comments below. Please do cc me in future versions. On Fri, Aug 28, 2020 at 03:11:33PM +0200, Kévin L'hôpital wrote: > The ov8865 sensor from the Omnivision supports up to 3264x2448, > a 10 bits output format and MIPI CSI2

Re: [PATCH V5 1/3] soc: qcom: geni: Remove "iova" check

2020-10-02 Thread Stephen Boyd
Quoting Roja Rani Yarubandi (2020-10-01 01:44:23) > Remove "iova" check from geni_se_tx_dma_unprep and geni_se_rx_dma_unprep > fucntions as invalidating with dma_mapping_error() is enough. s/fucntions/functions/ also s/invalidating/checking/ > > Signed-off-by: Roja Rani Yarubandi > ---

[tip:master] BUILD SUCCESS WITH WARNING d57a69be0c6af3327771a772d6b895bd665f3f25

2020-10-02 Thread kernel test robot
) is being placed in '__timer_of_table' Warning ids grouped by kconfigs: clang_recent_errors `-- arm-randconfig-r031-20201002 `-- ld.lld:warning:drivers-built-in.a(clocksource-timer-ti-dm-systimer.o):(__timer_of_table)-is-being-placed-in-__timer_of_table elapsed time: 721m configs tested: 117

[GIT PULL] pin control fixes for v5.9

2020-10-02 Thread Linus Walleij
Hi Linus, some pin control fixes here, some four of them since -rc2. All of them are driver fixes, the Intel Cherryview being the most interesting one. Please pull them in! Yours, Linus Walleij The following changes since commit d012a7190fc1fd72ed48911e77ca97ba4521bccd: Linux 5.9-rc2

Re: [PATCH V3 1/2] mfd: qcom-spmi-pmic: Convert bindings to .yaml format

2020-10-02 Thread Stephen Boyd
Quoting kgu...@codeaurora.org (2020-02-06 21:57:49) > On 2020-02-07 00:36, Stephen Boyd wrote: > > Quoting Kiran Gunda (2020-02-06 05:55:26) > >> Convert the bindings from .txt to .yaml format. > >> > >> Signed-off-by: Kiran Gunda > >> --- > > > > Did something change? Is there a cover letter?

Re: [PATCH v2 3/5] vfio-pci/zdev: define the vfio_zdev header

2020-10-02 Thread Alex Williamson
On Fri, 2 Oct 2020 16:00:42 -0400 Matthew Rosato wrote: > We define a new device region in vfio.h to be able to get the ZPCI CLP > information by reading this region from userspace. > > We create a new file, vfio_zdev.h to define the structure of the new > region defined in vfio.h > >

Re: [PATCH] mm: optionally disable brk()

2020-10-02 Thread Topi Miettinen
On 2.10.2020 20.52, David Hildenbrand wrote: On 02.10.20 19:19, Topi Miettinen wrote: The brk() system call allows to change data segment size (heap). This is mainly used by glibc for memory allocation, but it can use mmap() and that results in more randomized memory mappings since the heap is

Re: [PATCH] mm: memcg/slab: fix slab statistics in !SMP configuration

2020-10-02 Thread kernel test robot
Hi Roman, Thank you for the patch! Yet something to improve: [auto build test ERROR on mmotm/master] url: https://github.com/0day-ci/linux/commits/Roman-Gushchin/mm-memcg-slab-fix-slab-statistics-in-SMP-configuration/20201002-044114 base: git://git.cmpxchg.org/linux-mmotm.git master

Re: [RESEND PATCH] spmi: prefix spmi bus device names with "spmi"

2020-10-02 Thread Stephen Boyd
Quoting Mark Brown (2020-10-02 11:04:30) > On Fri, Oct 02, 2020 at 10:48:32AM -0700, Stephen Boyd wrote: > > Quoting Mark Brown (2020-10-02 09:03:24) > > > > ...and doing this in the dev_name() should help other diagnostic users > > > (like dev_printk() for example). > > > Don't thinks like

Re: [PATCH v8 0/7] Add UEFI support for RISC-V

2020-10-02 Thread Palmer Dabbelt
On Thu, 17 Sep 2020 15:37:09 PDT (-0700), Atish Patra wrote: This series adds UEFI support for RISC-V. Thanks, this is on for-next.

Re: [PATCH v7 1/3] media: i2c: ov772x: Parse endpoint properties

2020-10-02 Thread Lad, Prabhakar
Hi Sakari, Thank you for the review. On Fri, Oct 2, 2020 at 10:12 PM Sakari Ailus wrote: > > Hi Prabhakar, > > On Fri, Oct 02, 2020 at 05:56:54PM +0100, Lad Prabhakar wrote: > > Parse endpoint properties using v4l2_fwnode_endpoint_alloc_parse() > > to determine the bus type and store it in the

Re: [PATCH v7 3/3] media: i2c: ov772x: Add test pattern control

2020-10-02 Thread Lad, Prabhakar
Hi Sakari, Thank you for the review. On Fri, Oct 2, 2020 at 10:13 PM Sakari Ailus wrote: > > On Fri, Oct 02, 2020 at 05:56:56PM +0100, Lad Prabhakar wrote: > > Add support for test pattern control supported by the sensor. > > > > Signed-off-by: Lad Prabhakar > > Reviewed-by: Biju Das > >

[PATCH] f2fs: f2fs_get_meta_page_nofail should not be failed

2020-10-02 Thread Jaegeuk Kim
Otherwise, f2fs can break the the consistency. (e.g., BUG_ON in f2fs_get_sum_page) Signed-off-by: Jaegeuk Kim --- fs/f2fs/checkpoint.c | 9 +++-- fs/f2fs/f2fs.h | 2 -- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index

Re: [PATCH v4 01/11] mm: add Kernel Electric-Fence infrastructure

2020-10-02 Thread Marco Elver
On Fri, 2 Oct 2020 at 21:32, Jann Horn wrote: > > That's another check; we don't want to make this more expensive. > > Ah, right, I missed that this is the one piece of KFENCE that is > actually really hot code until Dmitry pointed that out. > > But actually, can't you reduce how hot this is for

[PATCH v6 12/14] misc: bcm-vk: add mmap function for exposing BAR2

2020-10-02 Thread Scott Branden
Add mmap function that allows host application to open up BAR2 memory for remote spooling out messages from the VK logger. Co-developed-by: Desmond Yan Signed-off-by: Desmond Yan Signed-off-by: Scott Branden --- drivers/misc/bcm-vk/bcm_vk_dev.c | 24 1 file changed,

[PATCH v6 14/14] misc: bcm-vk: add ttyVK support

2020-10-02 Thread Scott Branden
Add ttyVK support to driver to allow console access to VK card from host. Device node will be in the follow form /dev/bcm-vk.x_ttyVKy where: x is the instance of the VK card y is the tty device number on the VK card Signed-off-by: Scott Branden --- drivers/misc/bcm-vk/Makefile | 3 +-

[PATCH v6 11/14] misc: bcm-vk: add BCM_VK_QSTATS

2020-10-02 Thread Scott Branden
Add BCM_VK_QSTATS Kconfig option to allow for enabling debug VK queue statistics. These statistics keep track of max, abs_max, and average for the messages queues. Co-developed-by: Desmond Yan Signed-off-by: Desmond Yan Signed-off-by: Scott Branden --- drivers/misc/bcm-vk/Kconfig | 14

[PATCH v6 13/14] MAINTAINERS: bcm-vk: add maintainer for Broadcom VK Driver

2020-10-02 Thread Scott Branden
Add maintainer entry for new Broadcom VK Driver Signed-off-by: Scott Branden --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 190c7fa2ea01..ce88e423547f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3714,6 +3714,13 @@ L:

[PATCH v6 10/14] misc: bcm-vk: reset_pid support

2020-10-02 Thread Scott Branden
Add reset support via ioctl. Kill user processes that are open when VK card is reset. If a particular PID has issued the reset request do not kill that process as it issued the ioctl. Co-developed-by: Desmond Yan Signed-off-by: Desmond Yan Signed-off-by: Scott Branden ---

[PATCH v6 09/14] misc: bcm-vk: add VK messaging support

2020-10-02 Thread Scott Branden
Add message support in order to be able to communicate to VK card via message queues. This info is used for debug purposes via collection of logs via direct read of BAR space and by sysfs access (in a follow on commit). Co-developed-by: Desmond Yan Signed-off-by: Desmond Yan Signed-off-by:

[PATCH v6 08/14] misc: bcm-vk: add get_card_info, peerlog_info, and proc_mon_info

2020-10-02 Thread Scott Branden
Add support to get card_info (details about card), peerlog_info (to get details of peerlog on card), and proc_mon_info (process monitoring on card). This info is used for collection of logs via direct read of BAR space and by sysfs access (in a follow on commit). Co-developed-by: Desmond Yan

[PATCH v6 01/14] bcm-vk: add bcm_vk UAPI

2020-10-02 Thread Scott Branden
Add user space api for bcm-vk driver. Provide ioctl api to load images and issue reset command to card. FW status registers in PCI BAR space also defined as part of API so that user space is able to interpret these memory locations as needed via direct PCIe access. Signed-off-by: Scott Branden

[PATCH v6 05/14] misc: bcm-vk: add triggers when host panic or reboots to notify card

2020-10-02 Thread Scott Branden
Pass down an interrupt to card in case of panic or reboot so that card can take appropriate action to perform a clean reset. Uses kernel notifier block either directly (register on panic list), or implicitly (add shutdown method for PCI device). Co-developed-by: Desmond Yan Signed-off-by:

[PATCH v6 06/14] misc: bcm-vk: add open/release

2020-10-02 Thread Scott Branden
Add open/release to replace private data with context for other methods to use. Reason for the context is because it is allowed for multiple sessions to open sysfs. For each file open, when upper layer queries the response, only those that are tied to a specified open should be returned.

[PATCH v6 02/14] misc: bcm-vk: add Broadcom VK driver

2020-10-02 Thread Scott Branden
Add initial version of Broadcom VK driver to enumerate PCI device IDs of Valkyrie and Viper device IDs. VK based cards provide real-time high performance, high throughput, low latency offload compute engine operations. They are used for multiple parallel offload tasks as: audio, video and image

[PATCH v6 00/14] *Add Broadcom VK driver

2020-10-02 Thread Scott Branden
This patch series drops previous patches in [1] that were incorporated by Kees Cook into patch series "Introduce partial kernel_read_file() support" [2]. Remaining patches are contained in this series to add Broadcom VK driver. (which depends on request_firmware_into_buf API addition in other

[PATCH v6 04/14] misc: bcm-vk: add misc device to Broadcom VK driver

2020-10-02 Thread Scott Branden
Add misc device base support to create and remove devnode. Additional misc functions for open/read/write/release/ioctl/sysfs, etc will be added in follow on commits to allow for individual review. Co-developed-by: Desmond Yan Signed-off-by: Desmond Yan Signed-off-by: Scott Branden ---

[PATCH v6 03/14] misc: bcm-vk: add autoload support

2020-10-02 Thread Scott Branden
Add support to load and boot images on card automatically. The kernel module parameter auto_load can be passed in as false to disable such support on probe. As well, nr_scratch_pages can be specified to allocate more or less scratch memory on init as needed for desired card operation.

[PATCH v6 07/14] misc: bcm-vk: add ioctl load_image

2020-10-02 Thread Scott Branden
Add ioctl support to issue load_image operation to VK card. Co-developed-by: Desmond Yan Signed-off-by: Desmond Yan Co-developed-by: James Hu Signed-off-by: James Hu Signed-off-by: Scott Branden --- drivers/misc/bcm-vk/bcm_vk.h | 3 + drivers/misc/bcm-vk/bcm_vk_dev.c | 95

Re: [RESEND PATCH v1 1/2] bindings: pm8941-misc: Add support for VBUS detection

2020-10-02 Thread Stephen Boyd
Quoting Guru Das Srinagesh (2020-09-28 15:49:08) > From: Anirudh Ghayal > > VBUS can be detected via a dedicated PMIC pin. Enable compatible string > that adds support for reporting the VBUS status. > > Signed-off-by: Anirudh Ghayal > Signed-off-by: Guru Das Srinagesh > --- >

Re: [PATCH v2 0/2] Some small cleanup/fixes for SPMI driver

2020-10-02 Thread Stephen Boyd
Quoting Mauro Carvalho Chehab (2020-09-28 23:22:11) > Hi Stephen, > > While double-checking against yesterday's linux-next, I noticed > that those two patches weren't merge yet. > > As you replied to both with your Reviewed-by:, are you expecting > them to be merged via someone's tree, or are

ANNOUNCE: pahole v1.18 (raw data pretty printer, BTF global vars)

2020-10-02 Thread Arnaldo Carvalho de Melo
Hi, The v1.18 release of pahole and its friends is out, available at the usual places: Main git repo: git://git.kernel.org/pub/scm/devel/pahole/pahole.git Mirror git repo: https://github.com/acmel/dwarves.git tarball + gpg signature:

RE: [PATCH] mm: optionally disable brk()

2020-10-02 Thread David Laight
From: David Hildenbrand > Sent: 02 October 2020 18:52 > > On 02.10.20 19:19, Topi Miettinen wrote: > > The brk() system call allows to change data segment size (heap). This > > is mainly used by glibc for memory allocation, but it can use mmap() > > and that results in more randomized memory

[PATCH] MAINTAINERS: Add maintainer of DW APB SSI driver

2020-10-02 Thread Serge Semin
Add myself as a maintainer of the Synopsis DesignWare APB SSI driver. Suggested-by: Andy Shevchenko Signed-off-by: Serge Semin Link: https://lore.kernel.org/linux-spi/20201001222829.15977-1-sergey.se...@baikalelectronics.ru/ --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff

Re: [PATCH v4] kvm,x86: Exit to user space in case page fault error

2020-10-02 Thread Sean Christopherson
On Fri, Oct 02, 2020 at 04:02:14PM -0400, Vivek Goyal wrote: > On Fri, Oct 02, 2020 at 12:45:18PM -0700, Sean Christopherson wrote: > > On Fri, Oct 02, 2020 at 03:27:34PM -0400, Vivek Goyal wrote: > > > On Fri, Oct 02, 2020 at 11:30:37AM -0700, Sean Christopherson wrote: > > > > On Fri, Oct 02,

Re: [PATCH v7 2/3] media: i2c: ov772x: Add support for BT.656 mode

2020-10-02 Thread Sakari Ailus
On Fri, Oct 02, 2020 at 05:56:55PM +0100, Lad Prabhakar wrote: > Add support to read the bus-type for V4L2_MBUS_BT656 and enable BT.656 > mode in the sensor if needed. > > For backward compatibility with older DTS where the bus-type property was > not mandatory, assume V4L2_MBUS_PARALLEL as it

Re: [PATCH v7 3/3] media: i2c: ov772x: Add test pattern control

2020-10-02 Thread Sakari Ailus
On Fri, Oct 02, 2020 at 05:56:56PM +0100, Lad Prabhakar wrote: > Add support for test pattern control supported by the sensor. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Biju Das > Reviewed-by: Jacopo Mondi > --- > drivers/media/i2c/ov772x.c | 17 - > 1 file changed, 16

Re: [PATCH v4 01/11] mm: add Kernel Electric-Fence infrastructure

2020-10-02 Thread Marco Elver
On Fri, Oct 02, 2020 at 09:31PM +0200, Jann Horn wrote: [...] > > > > > > If !CONFIG_HAVE_ARCH_KFENCE_STATIC_POOL, this should probably always > > > return false if __kfence_pool is NULL, right? > > > > That's another check; we don't want to make this more expensive. > > Ah, right, I missed that

Re: [PATCH v7 1/3] media: i2c: ov772x: Parse endpoint properties

2020-10-02 Thread Sakari Ailus
Hi Prabhakar, On Fri, Oct 02, 2020 at 05:56:54PM +0100, Lad Prabhakar wrote: > Parse endpoint properties using v4l2_fwnode_endpoint_alloc_parse() > to determine the bus type and store it in the driver structure. > > Set bus_type to V4L2_MBUS_PARALLEL as it's the only supported one > >

Re: [PATCH] perf/x86/intel: Fix n_metric for the canceled group

2020-10-02 Thread Kim Phillips
On 10/2/20 8:16 AM, Liang, Kan wrote: > On 10/2/2020 7:02 AM, Peter Zijlstra wrote: >> On Wed, Sep 30, 2020 at 07:29:35AM -0700, kan.li...@linux.intel.com wrote: >>> From: Kan Liang >>> >>> When a group that has TopDown members is failed to be scheduled, any >>> later TopDown groups will not

Re: [PATCH] ASoC: hdac_hdmi: remove cancel_work_sync in runtime suspend

2020-10-02 Thread Mark Brown
On Wed, 15 Jul 2020 21:01:50 +0800, Brent Lu wrote: > A deadlock is identified when there are three contexts running at the > same time: > - a HDMI jack work which is calling snd_soc_dapm_sync(). > - user space is calling snd_pcm_release() to close pcm device. > - pm is calling runtime suspend

[PATCH] drm/bridge: ti-sn65dsi86: Add retries for link training

2020-10-02 Thread Douglas Anderson
On some panels hooked up to the ti-sn65dsi86 bridge chip we found that link training was failing. Specifically, we'd see: ti_sn65dsi86 2-002d: [drm:ti_sn_bridge_enable] *ERROR* Link training failed, link is off (-5) The panel was hooked up to a logic analyzer and it was found that, as part

Re: [PATCH 2/3] x86/cpu: Describe hybrid CPUs in cpuinfo_x86

2020-10-02 Thread Borislav Petkov
On Fri, Oct 02, 2020 at 02:02:31PM -0700, Ricardo Neri wrote: > What about patches 1 and 3? Should I resubmit the series with only > those? Why would you need to resubmit? They're good to go as is, AFAICT. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette

drivers/char/ppdev -

2020-10-02 Thread Shuah Khan
Hi Sudip, While looking at atomic_t usages and noticed a few potential problem the way struct pp_struct: atomic_t irqc field - There is inconsistencies the lock hold in this driver. pp_do_mutex is help before pp_do_ioctl() is called. static int pp_do_ioctl() pp_do_mutex case

Re: [PATCH 2/3] x86/cpu: Describe hybrid CPUs in cpuinfo_x86

2020-10-02 Thread Ricardo Neri
On Fri, Oct 02, 2020 at 10:34:52PM +0200, Borislav Petkov wrote: > On Fri, Oct 02, 2020 at 01:19:30PM -0700, Ricardo Neri wrote: > > diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c > > index 35ad8480c464..0778b3ad26b3 100644 > > --- a/arch/x86/kernel/cpu/common.c > > +++

Re: [PATCH v9 0/4] Introduce the for_each_set_clump macro

2020-10-02 Thread Syed Nayyar Waris
On Wed, Sep 30, 2020 at 2:59 PM Linus Walleij wrote: > > On Tue, Sep 29, 2020 at 3:14 PM Andy Shevchenko > wrote: > > > Linus, are you referencing to [3]? It was fixed in GENMASK() > > implementation some time ago. > > [3]: https://lore.kernel.org/lkml/202006171559.jsbgjxnw%25...@intel.com/ > >

Re: [PATCH -next] ASoC: qcom: fix SDM845 & QDSP6 dependencies more

2020-10-02 Thread Mark Brown
On Thu, 1 Oct 2020 11:35:37 -0700, Randy Dunlap wrote: > Fix a build error and Kconfig warning in sound/soc/qcom/. > > ld: sound/soc/qcom/qdsp6/q6afe-clocks.o: in function `q6afe_clock_dev_probe': > q6afe-clocks.c:(.text+0x182): undefined reference to `devm_clk_hw_register' > ld:

Re: [PATCH 0/2] Add driver for Microchip S/PDIF RX

2020-10-02 Thread Mark Brown
On Fri, 2 Oct 2020 19:03:03 +0300, Codrin Ciubotariu wrote: > The Sony/Philips Digital Interface Receiver (SPDIFRX) is a serial port > compliant with the IEC-60958 standard. Among its caracteristics, we > mention the following: > - SPDIF/AES-EBU Compatible Serial Port > - 32 Samples FIFO > -

Re: [PATCH] ASoC: wm8523: Fix a typo in a comment

2020-10-02 Thread Mark Brown
On Fri, 2 Oct 2020 18:59:08 +0200, Christophe JAILLET wrote: > It is likely that this header file is about the WM8523. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: wm8523: Fix a typo in a comment commit:

[tip: x86/urgent] Documentation/x86: Fix incorrect references to zero-page.txt

2020-10-02 Thread tip-bot2 for Heinrich Schuchardt
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: 0c7689830e907668288a1a1da84dca66dbdb4728 Gitweb: https://git.kernel.org/tip/0c7689830e907668288a1a1da84dca66dbdb4728 Author:Heinrich Schuchardt AuthorDate:Fri, 02 Oct 2020 21:06:23 +02:00

Re: [PATCHv2 1/9] perf tools: Add build id shell test

2020-10-02 Thread Arnaldo Carvalho de Melo
Em Fri, Oct 02, 2020 at 10:34:51AM -0700, Ian Rogers escreveu: > On Fri, Oct 2, 2020 at 6:07 AM Namhyung Kim wrote: > > > > Hi Jiri, > > > > On Fri, Oct 2, 2020 at 4:05 AM Jiri Olsa wrote: > > > > > > Adding test for build id cache that adds binary > > > with sha1 and md5 build ids and verifies

Re: [PATCH] ahci: qoriq: enable acpi support in qoriq ahci driver

2020-10-02 Thread Jens Axboe
On 8/17/20 2:22 AM, andy.t...@nxp.com wrote: > From: Yuantian Tang > > This patch enables ACPI support in qoriq ahci driver. Applied, thanks. -- Jens Axboe

Loan Offer

2020-10-02 Thread Robert Fast Capital
Do you need a loan? We offer loan at 2% interest rate, our services include the following: * Business Loan [secure and unsecured] * Personal Loan [secure and unsecured] * Car Loan * Truck Loans * Home Loan * Mortgage Loan For more info; Contact us today (robertfastcapi...@gmail.com)Text/Call

Re: [PATCH -next] sata, highbank: simplify the return expression of ahci_highbank_suspend

2020-10-02 Thread Jens Axboe
On 9/21/20 2:24 AM, Liu Shixin wrote: > Simplify the return expression. Applied, thanks. -- Jens Axboe

Re: [PATCH v5 09/10] vfio/fsl-mc: Add read/write support for fsl-mc devices

2020-10-02 Thread Alex Williamson
On Tue, 29 Sep 2020 12:03:38 +0300 Diana Craciun wrote: > The software uses a memory-mapped I/O command interface (MC portals) to > communicate with the MC hardware. This command interface is used to > discover, enumerate, configure and remove DPAA2 objects. The DPAA2 > objects use MSIs, so the

Re: [PATCH v2] srcu: avoid escaped section names

2020-10-02 Thread Paul E. McKenney
On Wed, Sep 30, 2020 at 01:55:48PM -0700, Nick Desaulniers wrote: > On Wed, Sep 30, 2020 at 1:40 PM Paul E. McKenney wrote: > > > > On Tue, Sep 29, 2020 at 12:25:49PM -0700, Nick Desaulniers wrote: > > > The stringification operator, `#`, in the preprocessor escapes strings. > > > For example, `#

<    1   2   3   4   5   6   7   8   9   10   >