[PATCH v3 3/3] mmc: jz4740: Use pm_ptr() macro

2020-07-16 Thread Paul Cercueil
Use the newly introduced pm_ptr() macro to simplify the code. Signed-off-by: Paul Cercueil Reviewed-by: Ulf Hansson --- Notes: v2: Use pm_ptr() macro instead of pm_sleep_ptr() v3: Rebase on 5.8-rc5 and add Ulf's Reviewed-by drivers/mmc/host/jz4740_mmc.c | 12 +++- 1 file chang

Re: [PATCH] x86/speculation: Add basic IBPB (Indirect Branch Prediction Barrier) support

2020-07-16 Thread osalvador
On 2020-07-16 14:38, Oscar Salvador wrote: From: David Woodhouse Sorry for the noise. This should not be here. I dunno how this patch sneaked in. Please ignore it.

Re: [PATCH V2] powerpc/pseries/svm: Remove unwanted check for shared_lppaca_size

2020-07-16 Thread Michael Ellerman
On Fri, 19 Jun 2020 12:31:13 +0530, Satheesh Rajendran wrote: > Early secure guest boot hits the below crash while booting with > vcpus numbers aligned with page boundary for PAGE size of 64k > and LPPACA size of 1k i.e 64, 128 etc, due to the BUG_ON assert > for shared_lppaca_total_size equal to s

Re: [PATCH V4 0/7] Tegra XUSB charger detect support

2020-07-16 Thread Thierry Reding
On Fri, Jun 26, 2020 at 03:48:55PM +0530, Nagarjuna Kristam wrote: > This patch series adds charger detect support on XUSB hardware used in > Tegra210 and Tegra186 SoCs. > > This patchset is composed with : > - dt bindings of XUSB Pad Controller > - Tegra XUSB device mode driver to add vbus_draw

[PATCH RFC v2 0/3] io_uring: add restrictions to support untrusted applications and guests

2020-07-16 Thread Stefano Garzarella
I fixed some issues that Jens pointed out, and also the TODOs that I left in the previous version. I still have any doubts about patch 3, any advice? RFC v1 -> RFC v2: - added 'restricted' flag in the ctx [Jens] - added IORING_MAX_RESTRICTIONS define - returned EBUSY instead of EINVAL

[PATCH RFC v2 1/3] io_uring: use an enumeration for io_uring_register(2) opcodes

2020-07-16 Thread Stefano Garzarella
The enumeration allows us to keep track of the last io_uring_register(2) opcode available. Behaviour and opcodes names don't change. Signed-off-by: Stefano Garzarella --- include/uapi/linux/io_uring.h | 27 --- 1 file changed, 16 insertions(+), 11 deletions(-) diff --gi

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

2020-07-16 Thread Linus Walleij
Hi Syed, sorry for taking so long. I was on vacation and a bit snowed under by work. On Sat, Jun 27, 2020 at 10:10 AM Syed Nayyar Waris wrote: > Since this patchset primarily affects GPIO drivers, would you like > to pick it up through your GPIO tree? I have applied the patches to an immutable

[PATCH RFC v2 2/3] io_uring: add IOURING_REGISTER_RESTRICTIONS opcode

2020-07-16 Thread Stefano Garzarella
The new io_uring_register(2) IOURING_REGISTER_RESTRICTIONS opcode permanently installs a feature allowlist on an io_ring_ctx. The io_ring_ctx can then be passed to untrusted code with the knowledge that only operations present in the allowlist can be executed. The allowlist approach ensures that n

Re: [PATCH v4 0/4] Add system mmu support for Armada-806

2020-07-16 Thread Marcin Wojtas
czw., 16 lip 2020 o 14:02 Will Deacon napisał(a): > > On Thu, Jul 16, 2020 at 01:00:43PM +0100, Will Deacon wrote: > > On Wed, 15 Jul 2020 09:06:45 +0200, Tomasz Nowicki wrote: > > > The series is meant to support SMMU for AP806 and a workaround > > > for accessing ARM SMMU 64bit registers is the

[PATCH RFC v2 3/3] io_uring: allow disabling rings during the creation

2020-07-16 Thread Stefano Garzarella
This patch adds a new IORING_SETUP_R_DISABLED flag to start the rings disabled, allowing the user to register restrictions, buffers, files, before to start processing SQEs. When IORING_SETUP_R_DISABLED is set, SQE are not processed and SQPOLL kthread is not started. The restrictions registration

[PATCH net-next 0/2] hinic: add some error messages for debug

2020-07-16 Thread Luo bin
patch #1: support to handle hw abnormal event patch #2: improve the error messages when functions return failure and dump relevant registers in some exception handling processes Luo bin (2): hinic: add support to handle hw abnormal event hinic: add log in exception handling processes

[PATCH net-next 2/2] hinic: add log in exception handling processes

2020-07-16 Thread Luo bin
improve the error message when functions return failure and dump relevant registers in some exception handling processes Signed-off-by: Luo bin --- .../ethernet/huawei/hinic/hinic_hw_api_cmd.c | 27 +++- .../ethernet/huawei/hinic/hinic_hw_api_cmd.h | 4 ++ .../net/ethernet/huawei/hinic/hi

[PATCH net-next 1/2] hinic: add support to handle hw abnormal event

2020-07-16 Thread Luo bin
add support to handle hw abnormal event such as hardware failure, cable unplugged,link error Signed-off-by: Luo bin --- .../net/ethernet/huawei/hinic/hinic_hw_dev.c | 249 +- .../net/ethernet/huawei/hinic/hinic_hw_dev.h | 144 +- .../net/ethernet/huawei/hinic/hinic_hw_m

Re: [PATCH v3 0/3] Allow for qcom-pdc to be loadable as a module

2020-07-16 Thread Linus Walleij
On Sat, Jul 11, 2020 at 1:18 AM John Stultz wrote: > This patch series provides exports and config tweaks to allow > the qcom-pdc driver to be able to be configured as a permement > modules (particularlly useful for the Android Generic Kernel > Image efforts). > > This was part of a larger patch

Re: [PATCH 2/3] arm: Use the new generic copy_oldmem_page()

2020-07-16 Thread Linus Walleij
On Sat, Jul 11, 2020 at 5:59 AM Palmer Dabbelt wrote: > From: Palmer Dabbelt > > This is exactly the same as the arm64 code, which I just into lib/ to > avoid copying it into the RISC-V port. This builds with defconfig and with > CRASH_DUMP=y. > > Signed-off-by: Palmer Dabbelt Looks good to m

Re: linux-next: failing to fetch the dmi tree

2020-07-16 Thread Stephen Rothwell
Hi Jean, On Thu, 16 Jul 2020 13:21:34 +0200 Jean Delvare wrote: > > On Wed, 15 Jul 2020 11:37:43 +0200, Jean Delvare wrote: > > On Mon, 13 Jul 2020 09:11:02 +1000, Stephen Rothwell wrote: > > > Jean, I don't suppose you would like to produce a git tree for me to > > > fetch instead, as yours is

Re: [PATCH 1/2] Revert "powerpc/kasan: Fix shadow pages allocation failure"

2020-07-16 Thread Michael Ellerman
On Thu, 2 Jul 2020 11:52:02 + (UTC), Christophe Leroy wrote: > This reverts commit d2a91cef9bbdeb87b7449fdab1a6be6000930210. > > This commit moved too much work in kasan_init(). The allocation > of shadow pages has to be moved for the reason explained in that > patch, but the allocation of pag

Re: [PATCH v8 0/8] powerpc: switch VDSO to C implementation

2020-07-16 Thread Michael Ellerman
On Tue, 28 Apr 2020 13:16:46 + (UTC), Christophe Leroy wrote: > This is the seventh version of a series to switch powerpc VDSO to > generic C implementation. > > Main changes since v7 are: > - Added gettime64 on PPC32 > > This series applies on today's powerpc/merge branch. > > [...] Patch

Re: [PATCH] powerpc/spufs: add CONFIG_COREDUMP dependency

2020-07-16 Thread Michael Ellerman
On Mon, 6 Jul 2020 15:22:46 +0200, Arnd Bergmann wrote: > The kernel test robot pointed out a slightly different error message > after recent commit 5456ffdee666 ("powerpc/spufs: simplify spufs core > dumping") to spufs for a configuration that never worked: > >powerpc64-linux-ld: arch/powerpc

Re: [PATCH] docs: powerpc: Clarify book3s/32 MMU families

2020-07-16 Thread Michael Ellerman
On Thu, 2 Jul 2020 14:09:21 + (UTC), Christophe Leroy wrote: > Documentation wrongly tells that book3s/32 CPU have hash MMU. > > 603 and e300 core only have software loaded TLB. > > 755, 7450 family and e600 core have both hash MMU and software loaded > TLB. This can be selected by setting a

Re: [PATCH] powerpc/signal64: Don't opencode page prefaulting

2020-07-16 Thread Michael Ellerman
On Tue, 7 Jul 2020 18:32:25 + (UTC), Christophe Leroy wrote: > Instead of doing a __get_user() from the first and last location > into a tmp var which won't be used, use fault_in_pages_readable() Applied to powerpc/next. [1/1] powerpc/signal64: Don't opencode page prefaulting https://gi

Re: [PATCH] powerpc/Kconfig: Replace HTTP links with HTTPS ones

2020-07-16 Thread Michael Ellerman
On Mon, 13 Jul 2020 21:26:56 +0200, Alexander A. Klimov wrote: > Rationale: > Reduces attack surface on kernel devs opening the links for MITM > as HTTPS traffic is much harder to manipulate. > > Deterministic algorithm: > For each file: > If not .svg: > For each line: > If doesn't con

Re: [PATCH] ocxl: Replace HTTP links with HTTPS ones

2020-07-16 Thread Michael Ellerman
On Mon, 13 Jul 2020 19:55:06 +0200, Alexander A. Klimov wrote: > Rationale: > Reduces attack surface on kernel devs opening the links for MITM > as HTTPS traffic is much harder to manipulate. > > Deterministic algorithm: > For each file: > If not .svg: > For each line: > If doesn't con

Re: [PATCH] powerpc/boot: Use address-of operator on section symbols

2020-07-16 Thread Michael Ellerman
On Tue, 23 Jun 2020 20:59:20 -0700, Nathan Chancellor wrote: > Clang warns: > > arch/powerpc/boot/main.c:107:18: warning: array comparison always > evaluates to a constant [-Wtautological-compare] > if (_initrd_end > _initrd_start) { > ^ > arch/powerpc/boot/main.c:1

Re: [PATCH v3] powerpc/pseries: detect secure and trusted boot state of the system.

2020-07-16 Thread Michael Ellerman
On Wed, 15 Jul 2020 07:52:01 -0400, Nayna Jain wrote: > The device-tree property to check secure and trusted boot state is > different for guests(pseries) compared to baremetal(powernv). > > This patch updates the existing is_ppc_secureboot_enabled() and > is_ppc_trustedboot_enabled() functions to

Re: [PATCH v6] powerpc/fadump: fix race between pstore write and fadump crash trigger

2020-07-16 Thread Michael Ellerman
On Mon, 13 Jul 2020 10:54:35 +0530, Sourabh Jain wrote: > When we enter into fadump crash path via system reset we fail to update > the pstore. > > On the system reset path we first update the pstore then we go for fadump > crash. But the problem here is when all the CPUs try to get the pstore > l

Re: [PATCH v2] powerpc: Drop CONFIG_MTD_M25P80 in 85xx-hw.config

2020-07-16 Thread Michael Ellerman
On Fri, 1 May 2020 21:44:54 -0700, Bin Meng wrote: > Drop CONFIG_MTD_M25P80 that was removed in > commit b35b9a10362d ("mtd: spi-nor: Move m25p80 code in spi-nor.c") Applied to powerpc/next. [1/1] powerpc: Drop CONFIG_MTD_M25P80 in 85xx-hw.config https://git.kernel.org/powerpc/c/76f09371bc0

Re: [PATCH -next] powerpc/xive: Remove unused inline function xive_kexec_teardown_cpu()

2020-07-16 Thread Michael Ellerman
On Wed, 15 Jul 2020 10:50:40 +0800, YueHaibing wrote: > commit e27e0a94651e ("powerpc/xive: Remove xive_kexec_teardown_cpu()") > left behind this, remove it. Applied to powerpc/next. [1/1] powerpc/xive: Remove unused inline function xive_kexec_teardown_cpu() https://git.kernel.org/powerpc/c

Re: [PATCH 1/2] powerpc/signal_32: Remove !FULL_REGS() special handling in PPC64 save_general_regs()

2020-07-16 Thread Michael Ellerman
On Tue, 7 Jul 2020 12:33:35 + (UTC), Christophe Leroy wrote: > Since commit ("1bd79336a426 powerpc: Fix various > syscall/signal/swapcontext bugs"), getting save_general_regs() called > without FULL_REGS() is very unlikely and generates a warning. > > The 32-bit version of save_general_regs()

Re: KCSAN: data-race in generic_file_buffered_read / generic_file_buffered_read

2020-07-16 Thread Marco Elver
On Thu, 16 Jul 2020 at 09:52, Nicholas Piggin wrote: > > Excerpts from Eric Biggers's message of July 16, 2020 4:54 pm: > > On Thu, Jul 16, 2020 at 04:24:01PM +1000, Nicholas Piggin wrote: > >> Excerpts from Eric Biggers's message of July 16, 2020 1:03 pm: > >> > On Thu, Jul 16, 2020 at 09:42:03AM

[PATCH v2 1/2] drm/panel-simple: Fix inverted V/H SYNC for Frida FRD350H54004 panel

2020-07-16 Thread Paul Cercueil
The FRD350H54004 panel was marked as having active-high VSYNC and HSYNC signals, which sorts-of worked, but resulted in the picture fading out under certain circumstances. Fix this issue by marking VSYNC and HSYNC signals active-low. v2: Rebase on drm-misc-next Fixes: 7b6bd8433609 ("drm/panel: s

Re: [PATCH] cpuidle/powernv : Remove dead code block

2020-07-16 Thread Michael Ellerman
On Mon, 6 Jul 2020 00:32:58 -0500, Abhishek Goel wrote: > Commit 1961acad2f88559c2cdd2ef67c58c3627f1f6e54 removes usage of > function "validate_dt_prop_sizes". This patch removes this unused > function. Applied to powerpc/next. [1/1] cpuidle/powernv : Remove dead code block https://git.kern

[PATCH v2 2/2] drm/panel-simple: Add 50 Hz mode to the Frida FRD350H54004 panel

2020-07-16 Thread Paul Cercueil
By changing the pixel clock and the length of the back porch, it is possible to obtain a perfect 50 Hz refresh rate. v2: Rebase on drm-misc-next Signed-off-by: Paul Cercueil --- drivers/gpu/drm/panel/panel-simple.c | 40 +++- 1 file changed, 27 insertions(+), 13 deletion

Re: [PATCH] opp: Increase parsed_static_opps on _of_add_opp_table_v1

2020-07-16 Thread Walter Lozano
Hi Viresh, On 16/7/20 00:22, Viresh Kumar wrote: On 15-07-20, 23:54, Walter Lozano wrote: Currently, when using _of_add_opp_table_v2 parsed_static_opps is increased and this value is used on _opp_remove_all_static to check if there are static opps entries that need to be freed. Unfortunately th

[RESEND PATCH v2 0/2] Adding USB dual-role switching support for colibri-imx6/7 with extcon

2020-07-16 Thread Philippe Schenker
Hi Shawn, This is a friendly reminder as I think the two patches in this patchset got forgotten to pull back in. Ahmad pointed out that extcon is legacy and I should better use the new gpio-usb-b-connector compatible for that purpose. You removed those two patches upon this recommendation. In th

[RESEND PATCH v2 1/2] ARM: dts: colibri-imx6: add usb dual-role switch capability

2020-07-16 Thread Philippe Schenker
Since the runtime-pm wakeup bug was fixed in drivers/usb/chipidea/core.c usb dual-role host/device switching is working. So make use of it. Signed-off-by: Philippe Schenker --- arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts | 8 arch/arm/boot/dts/imx6qdl-colibri.dtsi | 2 +- 2 file

[RESEND PATCH v2 2/2] ARM: dts: colibri-imx7: add usb dual-role switch capability

2020-07-16 Thread Philippe Schenker
Since the runtime-pm wakeup bug was fixed in drivers/usb/chipidea/core.c usb dual-role host/device switching is working. So make use of it. Signed-off-by: Philippe Schenker --- arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi | 9 + arch/arm/boot/dts/imx7-colibri.dtsi | 4 ++-- 2 fi

Re: [RFC PATCH 1/3] MIPS: Retire kvm paravirt

2020-07-16 Thread Thomas Bogendoerfer
On Fri, Jul 10, 2020 at 02:30:16PM +0800, Jiaxun Yang wrote: > paravirt machine was introduced for Cavium's partial virtualization > technology, however, it's host side support and QEMU support never > landed in upstream. > > As Cavium was acquired by Marvel and they have no intention to maintain

Re: [PATCH -next] scsi: hisi_sas: Convert to DEFINE_SHOW_ATTRIBUTE

2020-07-16 Thread miaoqinglang
在 2020/7/16 17:25, John Garry 写道: On 16/07/2020 09:47, Qinglang Miao wrote: Not sure why you cc Greg, but SCSI maintainers should have been - James and Martin From: Yongqiang Liu Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yongqiang Liu The sender is not the

[PATCH v2 1/2] riscv: Fix build warning for mm/init

2020-07-16 Thread Zong Li
Add static keyword for resource_init, this function is only used in this object file. The warning message as follow (with W=1 build): arch/riscv/mm/init.c:520:13: warning: no previous prototype for 'resource_init' [-Wmissing-prototypes] Signed-off-by: Zong Li --- arch/riscv/mm/init.c | 2 +- 1

Re: [PATCH 2/2] crypto: caam - support tagged keys for skcipher algorithms

2020-07-16 Thread Herbert Xu
On Thu, Jul 16, 2020 at 12:24:49PM +, Van Leeuwen, Pascal wrote: > > That would make no sense though, as sha512 does not involve any keys ... > It's the HMAC part that needs the keys. So phmac(sha512) then? You're right, that would be phmac(...). But the point is we don't want each driver to

[PATCH v2 0/2] Fix some build warnings when W=1

2020-07-16 Thread Zong Li
These patches fix some build warnings when W=1, the most of warnings are missing prototype as follows: arch/riscv/mm/init.c:520:13: warning: no previous prototype for 'resource_init' [-Wmissing-prototypes] arch/riscv/mm/pageattr.c:130:5: warning: no previous prototype for 'set_memory_ro' [-Wmiss

Re: [PATCH 00/25] Rid W=1 warnings in Pinctrl

2020-07-16 Thread Linus Walleij
On Mon, Jul 13, 2020 at 4:49 PM Lee Jones wrote: > pinctrl: pinctrl-single: Fix struct/function documentation blocks This patch didn't apply to v5.8-rc1 so I applied that one separately after merging in all the other patches from a branch. Seems to work! So all applied. Also THANKS for doing

[PATCH v2 2/2] riscv: Fix build warning for mm/pageattr

2020-07-16 Thread Zong Li
Add header for missing prototype. Also, static keyword should be at beginning of declaration. The warning messages as follows (with W=1 build): arch/riscv/mm/pageattr.c:130:5: warning: no previous prototype for 'set_memory_ro' [-Wmissing-prototypes] arch/riscv/mm/pageattr.c:136:5: warning: no pr

Re: Linux kernel in-tree Rust support

2020-07-16 Thread Arnd Bergmann
On Sun, Jul 12, 2020 at 9:39 PM Josh Triplett wrote: > On Sun, Jul 12, 2020 at 03:31:51PM +0300, Adrian Bunk wrote: > > > > As an example: > > Ubuntu LTS releases upgrade to a new Rust version every 1-2 months. > > Ubuntu 16.04 started with Rust 1.7.0 and is now at Rust 1.41.0. > > > > It would no

Re: [PATCH v2 1/2] riscv: Fix build warning for mm/init

2020-07-16 Thread Pekka Enberg
On Thu, Jul 16, 2020 at 4:06 PM Zong Li wrote: > > Add static keyword for resource_init, this function is only used in this > object file. > > The warning message as follow (with W=1 build): > > arch/riscv/mm/init.c:520:13: > warning: no previous prototype for 'resource_init' [-Wmissing-prototypes

Re: [PATCH] riscv: Add SiFive drivers to rv32_defconfig

2020-07-16 Thread Anup Patel
On Thu, Jul 16, 2020 at 10:10 AM Bin Meng wrote: > > From: Bin Meng > > This adds SiFive drivers to rv32_defconfig, to keep in sync with the > 64-bit config. This is useful when testing 32-bit kernel with QEMU > 'sifive_u' 32-bit machine. > > Signed-off-by: Bin Meng > --- > > arch/riscv/configs

Re: [PATCH 16/25] arch: arm: mach-at91: pm: Move prototypes to mutually included header

2020-07-16 Thread Linus Walleij
On Mon, Jul 13, 2020 at 10:02 PM Alexandre Belloni wrote: > On 13/07/2020 15:49:21+0100, Lee Jones wrote: > > diff --git a/include/linux/platform_data/atmel.h > > b/include/linux/platform_data/atmel.h > > index 99e6069c5fd89..666ef482ea8c0 100644 > > --- a/include/linux/platform_data/atmel.h > >

Re: strace of io_uring events?

2020-07-16 Thread Stefano Garzarella
+Cc Stefan Hajnoczi On Wed, Jul 15, 2020 at 04:07:00PM -0700, Kees Cook wrote: > Earlier Andy Lutomirski wrote: > > Let’s add some seccomp folks. We probably also want to be able to run > > seccomp-like filters on io_uring requests. So maybe io_uring should call > > into > > seccomp-and-tracing c

Re: [PATCHv2] mm: Fix warning in move_normal_pmd()

2020-07-16 Thread Kirill A. Shutemov
On Wed, Jul 15, 2020 at 04:18:44PM -0700, Linus Torvalds wrote: > On Wed, Jul 15, 2020 at 4:04 PM Linus Torvalds > wrote: > > > > It *might* be as simple as this incremental thing on top > > No, it needs to be > > + if (*old_addr + *len < old->vm_end) > + return; > > in try_

Re: [PATCH v16 05/22] mm/thp: move lru_add_page_tail func to huge_memory.c

2020-07-16 Thread Kirill A. Shutemov
On Thu, Jul 16, 2020 at 04:59:48PM +0800, Alex Shi wrote: > Hi Kirill & Matthew, > > Is there any concern from for the THP involved patches? It is mechanical move. I don't see a problem. -- Kirill A. Shutemov

Re: strace of io_uring events?

2020-07-16 Thread Aleksa Sarai
On 2020-07-15, Kees Cook wrote: > Earlier Andy Lutomirski wrote: > > Let’s add some seccomp folks. We probably also want to be able to run > > seccomp-like filters on io_uring requests. So maybe io_uring should call > > into > > seccomp-and-tracing code for each action. > > Okay, I'm finally abl

Re: [PATCH v3 3/5] pinctrl: qcom: Use return value from irq_set_wake call

2020-07-16 Thread Linus Walleij
On Mon, Jun 22, 2020 at 11:32 AM Maulik Shah wrote: > msmgpio irqchip is not using return value of irq_set_wake call. > Start using it. > > Fixes: e35a6ae0eb3a ("pinctrl/msm: Setup GPIO chip in hierarchy") > Signed-off-by: Maulik Shah Is this something that's causing regressions so I should app

Re: [PATCH v2 22/22] device-dax: Introduce 'mapping' devices

2020-07-16 Thread Joao Martins
On 7/12/20 5:28 PM, Dan Williams wrote: > In support of interrogating the physical address layout of a device with > dis-contiguous ranges, introduce a sysfs directory with 'start', 'end', > and 'page_offset' attributes. The alternative is trying to parse > /proc/iomem, and that file will not refle

Re: KCSAN: data-race in generic_file_buffered_read / generic_file_buffered_read

2020-07-16 Thread Matthew Wilcox
On Wed, Jul 15, 2020 at 11:54:54PM -0700, Eric Biggers wrote: > > >> > Concurrent reads on the same file descriptor are allowed. Not with > > >> > sys_read(), > > >> > as that implicitly uses the file position. But it's allowed with > > >> > sys_pread(), > > >> > and also with sys_sendfile() wh

Re: [PATCH v2 1/2] riscv: Fix build warning for mm/init

2020-07-16 Thread Anup Patel
On Thu, Jul 16, 2020 at 6:35 PM Zong Li wrote: > > Add static keyword for resource_init, this function is only used in this > object file. > > The warning message as follow (with W=1 build): > > arch/riscv/mm/init.c:520:13: > warning: no previous prototype for 'resource_init' [-Wmissing-prototypes

Re: [PATCH v2 2/2] riscv: Fix build warning for mm/pageattr

2020-07-16 Thread Anup Patel
On Thu, Jul 16, 2020 at 6:36 PM Zong Li wrote: > > Add header for missing prototype. Also, static keyword should be at > beginning of declaration. > > The warning messages as follows (with W=1 build): > > arch/riscv/mm/pageattr.c:130:5: > warning: no previous prototype for 'set_memory_ro' [-Wmissi

[GIT PULL] thermal fixes for v5.8-rc6

2020-07-16 Thread Daniel Lezcano
The following changes since commit 9ebcfadb0610322ac537dd7aa5d9cbc2b2894c68: Linux 5.8-rc3 (2020-06-28 15:00:24 -0700) are available in the Git repository at: ssh://g...@gitolite.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git tags/thermal-v5.8-rc6 for you to fetch changes up to a8f62f

[PATCH] ASoC: meson: add the missed kfree() for axg_card_add_tdm_loopback

2020-07-16 Thread Jing Xiangfeng
axg_card_add_tdm_loopback() misses to call kfree() in an error path. Add the missed function call to fix it. Fixes: c84836d7f650 ("ASoC: meson: axg-card: use modern dai_link style") Signed-off-by: Jing Xiangfeng --- sound/soc/meson/axg-card.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion

Re: [RFC PATCH v3 01/18] dt-bindings: i2c: tegra: Document Tegra210 VI I2C clocks and power-domains

2020-07-16 Thread Thierry Reding
On Tue, Jul 14, 2020 at 09:20:38PM -0700, Sowjanya Komatineni wrote: > This patch documents missing clocks and power-domains of Tegra210 VI I2C. > > Reviewed-by: Rob Herring > Signed-off-by: Sowjanya Komatineni > --- > .../devicetree/bindings/i2c/nvidia,tegra20-i2c.txt| 19 > +-

Re: [PATCH 7/7] arm64: defconfig: Enable AM654x SDHCI controller

2020-07-16 Thread Sekhar Nori
On 7/16/20 5:49 PM, Faiz Abbas wrote: > Hi, > > On 19/06/20 6:28 pm, Faiz Abbas wrote: >> Enable CONFIG_SDHCI_AM654 to Support AM65x sdhci controller. >> >> Signed-off-by: Faiz Abbas >> --- >> arch/arm64/configs/defconfig | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/arch/arm64/con

Re: [RFC PATCH v3 02/18] arm64: tegra: Add missing clocks and power-domains to Tegra210 VI I2C

2020-07-16 Thread Thierry Reding
On Tue, Jul 14, 2020 at 09:20:39PM -0700, Sowjanya Komatineni wrote: > Tegra210 VI I2C is in VE power domain and i2c-vi node should have > power-domains property. > > Current Tegra210 i2c-vi device node is missing both VI I2C clocks > and power-domains property. > > This patch adds them. > > Sig

Re: [PATCH 2/7] dt-bindings: pinctrl: add bindings for MediaTek MT6779 SoC

2020-07-16 Thread Linus Walleij
On Tue, Jul 14, 2020 at 11:04 AM Hanks Chen wrote: > From: Andy Teng > > Add devicetree bindings for MediaTek MT6779 pinctrl driver. > > Signed-off-by: Andy Teng (...) Please make an attempt to reuse the generic schemas in Documentation/devicetree/bindings/pinctrl/pincfg-node.yaml Documentatio

Re: [PATCH] ASoC: meson: add the missed kfree() for axg_card_add_tdm_loopback

2020-07-16 Thread Jerome Brunet
On Thu 16 Jul 2020 at 15:25, Jing Xiangfeng wrote: > axg_card_add_tdm_loopback() misses to call kfree() in an error path. Add > the missed function call to fix it. > > Fixes: c84836d7f650 ("ASoC: meson: axg-card: use modern dai_link style") > Signed-off-by: Jing Xiangfeng Thanks for fixing th

Re: [PATCH 0/4] iommu/arm-smmu-v3: Improve cmdq lock efficiency

2020-07-16 Thread John Garry
On 16/07/2020 11:28, Will Deacon wrote: On Thu, Jul 16, 2020 at 11:22:33AM +0100, Will Deacon wrote: On Thu, Jul 16, 2020 at 11:19:41AM +0100, Will Deacon wrote: On Tue, Jun 23, 2020 at 01:28:36AM +0800, John Garry wrote: As mentioned in [0], the CPU may consume many cycles processing arm_smmu

Re: [RFC PATCH v1 1/2] dt-bindings: arm: rockchip: add A95X Z2 description

2020-07-16 Thread Robin Murphy
On 2020-07-16 13:05, Johan Jonker wrote: Hi Rob, The A95X Z2 boxes are sold by various vendors/manufacturers/web shops. The box it self only shows a label with a model name. Determining the true vendor is a kind of tricky for a outsider of the business. Could you advise what would be a save choi

Re: [PATCH -next] gpu: host1x: Convert to DEFINE_SHOW_ATTRIBUTE

2020-07-16 Thread Thierry Reding
On Thu, Jul 16, 2020 at 05:03:23PM +0800, Qinglang Miao wrote: > From: Yongqiang Liu > > Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. > > Signed-off-by: Yongqiang Liu > --- > drivers/gpu/host1x/debug.c | 28 > 1 file changed, 4 insertions(+), 24 deletions(

Re: [PATCH 1/1] rcu/tree: Drop the lock before entering to page allocator

2020-07-16 Thread Joel Fernandes
On Thu, Jul 16, 2020 at 11:19:13AM +0200, Uladzislau Rezki wrote: > On Wed, Jul 15, 2020 at 07:13:33PM -0400, Joel Fernandes wrote: > > On Wed, Jul 15, 2020 at 2:56 PM Sebastian Andrzej Siewior > > wrote: > > > > > > On 2020-07-15 20:35:37 [+0200], Uladzislau Rezki (Sony) wrote: > > > > @@ -3306,6

Re: [PATCH 09/23] md: rewrite md_setup_drive to avoid ioctls

2020-07-16 Thread Christoph Hellwig
On Thu, Jul 16, 2020 at 09:50:49AM +1000, NeilBrown wrote: > I'd be more comfortable if you added something like > if (WARN(bdev->bd_disk->fops != md_fops, > "Opening block device %x resulted in non-md device\")) > return; > here. However even without that >

Re: [RFC PATCH 0/4] rseq: Introduce extensible struct rseq

2020-07-16 Thread Carlos O'Donell
On 7/15/20 9:02 AM, Mathieu Desnoyers wrote: > At this point, the main question I would like answered is whether > it would be acceptable to increase the size and alignment of > the __rseq_abi symbol (which will be exposed by glibc) between > e.g. glibc 2.32 and 2.33. If it's not possible, then we

Re: [PATCH RESEND v2] dt-bindings: pinctrl: Convert ingenic,pinctrl.txt to YAML

2020-07-16 Thread Linus Walleij
On Tue, Jul 14, 2020 at 4:05 PM Rob Herring wrote: > On Mon, Jul 13, 2020 at 9:36 AM Paul Cercueil wrote: > > >> Notes: > > >> v2: - Use 'pinctrl' instead of 'pin-controller' as the node name > > >> - remove 'additionalProperties: false' since we will have > > >> pin conf nodes >

Re: [PATCH] binder: Don't use mmput() from shrinker function.

2020-07-16 Thread Tetsuo Handa
On 2020/07/16 17:35, Michal Hocko wrote: > On Thu 16-07-20 08:36:52, Tetsuo Handa wrote: >> syzbot is reporting that mmput() from shrinker function has a risk of >> deadlock [1]. Don't start synchronous teardown of mm when called from >> shrinker function. > > Please add the actual lock dependency

[PATCH] ebpf: fix parameter naming confusing

2020-07-16 Thread YangYuxi
Signed-off-by: YangYuxi --- kernel/bpf/syscall.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/bpf/syscall.c b/kernel/bpf/syscall.c index 0fd80ac81f70..42406f7275b7 100644 --- a/kernel/bpf/syscall.c +++ b/kernel/bpf/syscall.c @@ -1881,13 +1881,13 @@ struct bpf

Re: [PATCH 16/25] arch: arm: mach-at91: pm: Move prototypes to mutually included header

2020-07-16 Thread Lee Jones
On Mon, 13 Jul 2020, Alexandre Belloni wrote: > Hi, > > On 13/07/2020 15:49:21+0100, Lee Jones wrote: > > Both the caller and the supplier's source file should have access to > > the include file containing the prototypes. > > > > Fixes the following W=1 kernel build warning(s): > > > > driver

Re: [PATCH 2/3] remoteproc: qcom_q6v5_mss: Add MBA log extraction support

2020-07-16 Thread Manivannan Sadhasivam
Hi Sibi, On Thu, Jul 16, 2020 at 06:06:29PM +0530, Sibi Sankar wrote: > On SC7180 the MBA firmware stores the bootup text logs in a 4K segment > at the beginning of the MBA region. Add support to extract the logs > which will be useful to debug mba boot/authentication issues. > > Signed-off-by: S

Re: [PATCH v3] pinctrl: qcom: Handle broken/missing PDC dual edge IRQs on sc7180

2020-07-16 Thread Linus Walleij
On Tue, Jul 14, 2020 at 5:04 PM Douglas Anderson wrote: > Depending on how you look at it, you can either say that: > a) There is a PDC hardware issue (with the specific IP rev that exists >on sc7180) that causes the PDC not to work properly when configured >to handle dual edges. > b) The

Re: [PATCH 1/4] mfd: mt6360: Refactor and fix code style

2020-07-16 Thread Lee Jones
On Thu, 16 Jul 2020, Gene Chen wrote: > Lee Jones 於 2020年7月13日 週一 下午6:48寫道: > > > > On Mon, 13 Jul 2020, Gene Chen wrote: > > > > > Lee Jones 於 2020年7月13日 週一 下午2:51寫道: > > > > > > > > On Fri, 10 Jul 2020, Matthias Brugger wrote: > > > > > > > > > > > > > > > > > > > On 07/07/2020 12:30, Gene Che

Re: [PATCH -next] mfd: Convert to DEFINE_SHOW_ATTRIBUTE

2020-07-16 Thread Lee Jones
On Thu, 16 Jul 2020, Qinglang Miao wrote: > From: Yongqiang Liu > > Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. > > Signed-off-by: Yongqiang Liu > --- > drivers/mfd/ab3100-core.c | 15 ++- > drivers/mfd/ab3100-otp.c | 16 +++- > drivers/mfd/tps65010.c| 1

[PATCH -next v2] usb: usbtest: reduce stack usage in test_queue

2020-07-16 Thread Bixuan Cui
Fix the warning: [-Werror=-Wframe-larger-than=] drivers/usb/misc/usbtest.c: In function 'test_queue': drivers/usb/misc/usbtest.c:2148:1: warning: the frame size of 1232 bytes is larger than 1024 bytes Reported-by: kbuild test robot Signed-off-by: Bixuan Cui --- drivers/usb/misc/usbtest.c | 10

[PATCH -next v2] media: tuners: reduce stack usage in mxl5005s_reconfigure

2020-07-16 Thread Bixuan Cui
Fix the warning: [-Werror=-Wframe-larger-than=] drivers/media/tuners/mxl5005s.c: In function 'mxl5005s_reconfigure': drivers/media/tuners/mxl5005s.c:3953:1: warning: the frame size of 1152 bytes is larger than 1024 bytes Signed-off-by: Bixuan Cui --- drivers/media/tuners/mxl5005s.c | 20 +++

Re: [PATCH] reiserfs : fix improper free in reiserfs_get_block

2020-07-16 Thread Tom Rix
On 7/15/20 1:04 AM, Jan Kara wrote: > On Tue 14-07-20 06:12:47, Tom Rix wrote: >> On 7/14/20 6:10 AM, Matthew Wilcox wrote: >>> On Tue, Jul 14, 2020 at 06:05:09AM -0700, t...@redhat.com wrote: From: Tom Rix clang static analysis flags this error inode.c:1083:5: warning:

Re: [PATCH v8 1/7] pinctrl: mediatek: update pinmux definitions for mt6779

2020-07-16 Thread Linus Walleij
On Tue, Jul 14, 2020 at 11:20 AM Hanks Chen wrote: > Add devicetree bindings for Mediatek mt6779 SoC Pin Controller. > > Acked-by: Sean Wang > Signed-off-by: Mars Cheng > Signed-off-by: Andy Teng > Signed-off-by: Hanks Chen Sorry for responding to old patches :/ This and the rest of the pin

[RESEND PATCH v5] mm/zswap: move to use crypto_acomp API for hardware acceleration

2020-07-16 Thread Barry Song
Right now, all new ZIP drivers are adapted to crypto_acomp APIs rather than legacy crypto_comp APIs. Tradiontal ZIP drivers like lz4,lzo etc have been also wrapped into acomp via scomp backend. But zswap.c is still using the old APIs. That means zswap won't be able to work on any new ZIP drivers in

[PATCH v36 01/24] x86/cpufeatures: x86/msr: Add Intel SGX hardware bits

2020-07-16 Thread Jarkko Sakkinen
From: Sean Christopherson Add X86_FEATURE_SGX from CPUID.(EAX=7, ECX=1), which informs whether the CPU has SGX. Add X86_FEATURE_SGX1 and X86_FEATURE_SGX2 from CPUID.(EAX=12H, ECX=0), which describe the level of SGX support available [1]. Add IA32_FEATURE_CONTROL.SGX_ENABLE. BIOS can use this bi

[PATCH v36 02/24] x86/cpufeatures: x86/msr: Add Intel SGX Launch Control hardware bits

2020-07-16 Thread Jarkko Sakkinen
From: Sean Christopherson Add X86_FEATURE_SGX_LC, which informs whether or not the CPU supports SGX Launch Control. Add MSR_IA32_SGXLEPUBKEYHASH{0, 1, 2, 3}, which when combined contain a SHA256 hash of a 3072-bit RSA public key. SGX backed software packages, so called enclaves, are always signe

[PATCH v36 03/24] x86/mm: x86/sgx: Signal SIGSEGV with PF_SGX

2020-07-16 Thread Jarkko Sakkinen
From: Sean Christopherson Include SGX bit to the PF error codes and throw SIGSEGV with PF_SGX when a #PF with SGX set happens. CPU throws a #PF with the SGX set in the event of Enclave Page Cache Map (EPCM) conflict. The EPCM is a CPU-internal table, which describes the properties for a enclave

Re: [PATCH] binder: Don't use mmput() from shrinker function.

2020-07-16 Thread Michal Hocko
On Thu 16-07-20 22:41:14, Tetsuo Handa wrote: > On 2020/07/16 17:35, Michal Hocko wrote: [...] > > But in order for this to happen the shrinker would have to do the last > > put on the mm. But mm cannot go away from under uprobe_mmap so those two > > paths cannot race with each other. > > and mm1

[PATCH v36 06/24] x86/cpu/intel: Detect SGX support

2020-07-16 Thread Jarkko Sakkinen
From: Sean Christopherson Configure SGX as part of feature control MSR initialization and update the associated X86_FEATURE flags accordingly. Because the kernel will require the LE hash MSRs to be writable when running native enclaves, disable X86_FEATURE_SGX (and all derivatives) if SGX Launch

[PATCH v36 04/24] x86/sgx: Add SGX microarchitectural data structures

2020-07-16 Thread Jarkko Sakkinen
Define the SGX microarchitectural data structures used by various SGX opcodes. This is not an exhaustive representation of all SGX data structures but only those needed by the kernel. The data structures are described in: Intel SDM: 37.6 INTEL® SGX DATA STRUCTURES OVERVIEW Acked-by: Jethro Bee

[PATCH v36 07/24] x86/cpu/intel: Add nosgx kernel parameter

2020-07-16 Thread Jarkko Sakkinen
Add kernel parameter to disable Intel SGX kernel support. Tested-by: Sean Christopherson Reviewed-by: Sean Christopherson Signed-off-by: Jarkko Sakkinen --- Documentation/admin-guide/kernel-parameters.txt | 2 ++ arch/x86/kernel/cpu/feat_ctl.c | 9 + 2 files changed, 1

[PATCH v36 08/24] x86/sgx: Initialize metadata for Enclave Page Cache (EPC) sections

2020-07-16 Thread Jarkko Sakkinen
From: Sean Christopherson Enumerate Enclave Page Cache (EPC) sections via CPUID and add the data structures necessary to track EPC pages so that they can be easily borrowed for different uses. Embed section index to the first eight bits of the EPC page descriptor. Existing client hardware suppor

[PATCH v36 05/24] x86/sgx: Add wrappers for ENCLS leaf functions

2020-07-16 Thread Jarkko Sakkinen
ENCLS is a ring 0 instruction, which contains a set of leaf functions for managing an enclave. Enclaves are measured and signed software entities, which are protected by asserting the outside memory accesses and memory encryption. Add a two-layer macro system along with an encoding scheme to allow

Re: [PATCH 1/3] gpio: mxc: Support module build

2020-07-16 Thread Linus Walleij
On Wed, Jul 15, 2020 at 4:44 AM Anson Huang wrote: > > Subject: RE: [PATCH 1/3] gpio: mxc: Support module build > > > > Hi, Linus > > > > > Subject: Re: [PATCH 1/3] gpio: mxc: Support module build > > > > > > On Wed, Jul 8, 2020 at 1:28 AM Anson Huang > > > wrote: > > > > > > > subsys_initcall(

[PATCH v36 10/24] mm: Add vm_ops->mprotect()

2020-07-16 Thread Jarkko Sakkinen
From: Sean Christopherson Add vm_ops()->mprotect() for additional constraints for a VMA. Intel Software Guard eXtensions (SGX) will use this callback to add two constraints: 1. Verify that the address range does not have holes: each page address must be filled with an enclave page. 2. Verify

[PATCH v36 09/24] x86/sgx: Add __sgx_alloc_epc_page() and sgx_free_epc_page()

2020-07-16 Thread Jarkko Sakkinen
Add __sgx_alloc_epc_page(), which iterates through EPC sections and borrows a page structure that is not used by anyone else. When a page is no longer needed it must be released with sgx_free_epc_page(). This function implicitly calls ENCLS[EREMOVE], which will return the page to the uninitialized

Re: [PATCH] MIPS: Replace HTTP links with HTTPS ones

2020-07-16 Thread Thomas Bogendoerfer
On Wed, Jul 15, 2020 at 12:07:55PM +0200, Aleksandar Markovic wrote: > On Tuesday, July 14, 2020, Jiaxun Yang wrote: > > 在 2020/7/13 16:52, Alexander A. Klimov 写道: > >> virtual processors which supports SMP. This is equivalent to the > >> Intel Hyperthreading feature. For furth

[PATCH v36 12/24] x86/sgx: Add SGX_IOC_ENCLAVE_CREATE

2020-07-16 Thread Jarkko Sakkinen
Add an ioctl that performs ENCLS[ECREATE], which creates SGX Enclave Control Structure for the enclave. SECS contains attributes about the enclave that are used by the hardware and cannot be directly accessed by software, as SECS resides in the EPC. One essential field in SECS is a field that stor

[PATCH v36 15/24] x86/sgx: Allow a limited use of ATTRIBUTE.PROVISIONKEY for attestation

2020-07-16 Thread Jarkko Sakkinen
Provisioning Certification Enclave (PCE), the root of trust for other enclaves, generates a signing key from a fused key called Provisioning Certification Key. PCE can then use this key to certify an attestation key of a Quoting Enclave (QE), e.g. we get the chain of trust down to the hardware if t

[PATCH v36 14/24] x86/sgx: Add SGX_IOC_ENCLAVE_INIT

2020-07-16 Thread Jarkko Sakkinen
Add an ioctl that performs ENCLS[EINIT], which locks down the measurement and initializes the enclave for entrance. After this, new pages can no longer be added. Acked-by: Jethro Beekman Tested-by: Jethro Beekman Tested-by: Haitao Huang Tested-by: Chunyang Hui Tested-by: Jordan Hand Tested-by

[PATCH v36 13/24] x86/sgx: Add SGX_IOC_ENCLAVE_ADD_PAGES

2020-07-16 Thread Jarkko Sakkinen
Add an ioctl, which performs ENCLS[EADD] that adds new visible page to an enclave, and optionally ENCLS[EEXTEND] operations that hash the page to the enclave measurement. By visible we mean a page that can be mapped to the address range of an enclave. Acked-by: Jethro Beekman Tested-by: Jethro Be

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