Re: [PATCH 4/4] pci: export untrusted attribute in sysfs

2020-06-15 Thread Greg Kroah-Hartman
On Mon, Jun 15, 2020 at 06:17:42PM -0700, Rajat Jain wrote: > This is needed to allow the userspace to determine when an untrusted > device has been added, and thus allowing it to bind the driver manually > to it, if it so wishes. This is being done as part of the approach > discussed at

Re: [PATCH v8 4/4] gpio: xilinx: Utilize for_each_set_clump macro

2020-06-15 Thread Syed Nayyar Waris
Syed-Nayyar-Waris/Introduce-the-for_each_set_clump-macro/20200615-205729 > base:444fc5cde64330661bf59944c43844e7d4c2ccd8 > config: sparc64-randconfig-s032-20200615 (attached as .config) > compiler: sparc64-linux-gcc (GCC) 9.3.0 > reproduce: > # apt-get install sparse > #

[PATCH] usb: gadget: u_serial.h: increase MAX_U_SERIAL_PORTS to 8

2020-06-15 Thread Macpaul Lin
Mediatek's LTE modem needs up to 8 ports to connect to PC for logging and debugging under some scenarios. Hence we suggest to increase the definition of MAX_U_SERIAL_PORTS to 8 for some complex embedded systems. Signed-off-by: Macpaul Lin --- drivers/usb/gadget/function/u_serial.h |2 +- 1

[PATCH] clk: Provide future parent in clk notification

2020-06-15 Thread Ikjoon Jang
Current clk notification handlers cannot know its new parent in PRE_RATE_CHANGE event. This patch simply adds parent clk to clk_notifier_data so the child clk is now able to know its future parent prior to reparenting. Change-Id: I099a784d5302a93951bdc6254d85f8df8c770462 Signed-off-by: Ikjoon

Re: [PATCH v4 02/11] fs: Move __scm_install_fd() to __fd_install_received()

2020-06-15 Thread Kees Cook
On Tue, Jun 16, 2020 at 05:29:41AM +, Sargun Dhillon wrote: > On Mon, Jun 15, 2020 at 08:25:15PM -0700, Kees Cook wrote: > > +/** > > + * __fd_install_received() - Install received file into file descriptor > > table > > + * > > + * @fd: fd to install into (if negative, a new fd will be

Re: [PATCH v2 13/24] dyndbg: combine flags & mask into a struct, use that

2020-06-15 Thread jim . cromie
On Mon, Jun 15, 2020 at 9:14 AM Petr Mladek wrote: > > On Sat 2020-06-13 09:57:27, Jim Cromie wrote: > > combine flags & mask into a struct, and replace those 2 parameters in > > 3 functions: ddebug_change, ddebug_parse_flags, ddebug_read_flags, > > altering the derefs in them accordingly. > > >

[PATCH V2 2/2] dt-bindings: input: Convert imx keypad to json-schema

2020-06-15 Thread Anson Huang
Convert the i.MX KEYPAD binding to DT schema format using json-schema Signed-off-by: Anson Huang --- Changes since V1: - include matrix-keymap.yaml and "linux,keymap" is unnecessary now, remove it. --- .../devicetree/bindings/input/imx-keypad.txt | 53 --

[PATCH V2 1/2] dt-bindings: input: Convert matrix-keymap to json-schema

2020-06-15 Thread Anson Huang
Convert the matrix-keymap binding to DT schema format using json-schema Signed-off-by: Anson Huang --- New patch. --- .../devicetree/bindings/input/matrix-keymap.txt| 28 + .../devicetree/bindings/input/matrix-keymap.yaml | 46 ++ 2 files changed, 47

Re: [PATCH] staging: android: ashmem.c: Cleanup

2020-06-15 Thread kernel test robot
Hi Dio, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on staging/staging-testing] [cannot apply to aa5af974127d317071d6225a0f3678c5f520e7ce] url: https://github.com/0day-ci/linux/commits/Dio-Putra/staging-android-ashmem-c-Cleanup/20200614-013821 base:

arch/mips/kvm/mips.c:70:25: error: 'struct kvm_vcpu_stat' has no member named 'vz_cpucfg_exits'; did you mean

2020-06-15 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: df2fbf5bfa0e7fff8b4784507e4d68f200454318 commit: 7f2a83f1c2a941ebfee53f504ed5fdbc61cfb333 KVM: MIPS: Add CPUCFG emulation for Loongson-3 date: 9 days ago :: branch date: 16 hours ago :: commit

[PATCH v2] exfat: call sync_filesystem for read-only remount

2020-06-15 Thread Hyunchul Lee
We need to commit dirty metadata and pages to disk before remounting exfat as read-only. This fixes a failure in xfstests generic/452 generic/452 does the following: cp something / mount -o remount,ro the /something is corrupted. because while exfat is remounted as read-only, exfat doesn't

Re: [PATCH] ovl: inode reference leak in ovl_is_inuse true case.

2020-06-15 Thread Amir Goldstein
Hi youngjun! Thank you for your patch. You asked for guidance about posting patch revisions so let me repeat my comment in a more clear way (see below). On Tue, Jun 16, 2020 at 7:46 AM youngjun wrote: > When posting a revision of a patch already posted, the practice is to use the subject

[PATCH] USB: Serial: cypress_M8: Enable Simply Automated UPB PIM

2020-06-15 Thread James Hilliard
This is UPB(Universal Powerline Bus) PIM(Powerline Interface Module) which allows for controlling multiple UPB comaptible devices from Linux. This device internally uses a Cypress HID->COM interface. Signed-off-by: James Hilliard --- drivers/usb/serial/cypress_m8.c | 2 ++

Re: [PATCH v4 02/11] fs: Move __scm_install_fd() to __fd_install_received()

2020-06-15 Thread Sargun Dhillon
On Mon, Jun 15, 2020 at 08:25:15PM -0700, Kees Cook wrote: > In preparation for users of the "install a received file" logic outside > of net/ (pidfd and seccomp), relocate and rename __scm_install_fd() from > net/core/scm.c to __fd_install_received() in fs/file.c, and provide a > wrapper named

Re: [PATCH] mm/pgtable: Move extern zero_pfn outside __HAVE_COLOR_ZERO_PAGE

2020-06-15 Thread Anshuman Khandual
On 06/16/2020 09:38 AM, Anshuman Khandual wrote: > zero_pfn variable is required whether __HAVE_COLOR_ZERO_PAGE is enabled > or not. Also it should not really be declared individually in all functions > where it gets used. Just move the declaration outside, which also makes it > available for

Re: [PATCH v3] ASoC: fsl_ssi: Fix bclk calculation for mono channel

2020-06-15 Thread Nicolin Chen
On Tue, Jun 16, 2020 at 10:53:48AM +0800, Shengjiu Wang wrote: > For mono channel, SSI will switch to Normal mode. > > In Normal mode and Network mode, the Word Length Control bits > control the word length divider in clock generator, which is > different with I2S Master mode (the word length is

drivers/pci/controller/pci-mvebu.c:368:17: sparse: sparse: restricted __le16 degrades to integer

2020-06-15 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: f82e7b57b5fc48199e2f26ffafe2f96f7338ad3d commit: e0d9d30b73548fbfe5c024ed630169bdc9a08aee PCI: pci-bridge-emul: Fix big-endian support date: 8 months ago :: branch date: 2 hours ago :: commit

Re: [RFC PATCH] seccomp: Add extensibility mechanism to read notifications

2020-06-15 Thread Sargun Dhillon
On Mon, Jun 15, 2020 at 11:36:22AM +0200, Jann Horn wrote: > On Sat, Jun 13, 2020 at 9:26 AM Sargun Dhillon wrote: > > This introduces an extensibility mechanism to receive seccomp > > notifications. It uses read(2), as opposed to using an ioctl. The listener > > must be first configured to write

Re: [PATCH 1/4] proc/bootconfig: Fix to use correct quotes for value

2020-06-15 Thread Joe Perches
On Mon, 2020-06-15 at 16:12 -0700, Randy Dunlap wrote: > On 6/15/20 3:42 PM, Steven Rostedt wrote: > > On Mon, 15 Jun 2020 15:30:41 -0700 > > Randy Dunlap wrote: > > > > > > > Please don't infect kernel sources with that style oddity. > > > > > > > > What do you mean? It's already "infected"

linux-next: removal of the cisco tree

2020-06-15 Thread Stephen Rothwell
Hi, I have removed the cisco tree (https://github.com/daniel-walker/cisco-linux.git#for-next) from linux-next because it has not been updated in more than a year. If you would like it reinstated, please just reply and let me know. -- Cheers, Stephen Rothwell pgpcjFh295WI1.pgp Description:

linux-next: removal of the md tree

2020-06-15 Thread Stephen Rothwell
Hi, I have removed the md tree (git://git.kernel.org/pub/scm/linux/kernel/git/shli/md.gi#for-next) from linux-next because it has not been updated in more than a year. If you would like it reinstated, please just reply and let me know. -- Cheers, Stephen Rothwell pgp5kSl9PQV5r.pgp

linux-next: removal of the sifive tree

2020-06-15 Thread Stephen Rothwell
Hi, I have removed the sifive tree (git://git.kernel.org/pub/scm/linux/kernel/git/pjw/sifive.git#for-next) from linux-next because it has not been updated in more than a year. If you would like it reinstated, please just reply and let me know. -- Cheers, Stephen Rothwell pgpg4ltc_N53R.pgp

[PATCHv3] coresight: tmc: Add shutdown callback for TMC ETR

2020-06-15 Thread Sai Prakash Ranjan
Implement a shutdown callback to ensure ETR hardware is properly shutdown in reboot/shutdown path. This is required for ETR which has SMMU address translation enabled like on SC7180 SoC and few others. If the hardware is still accessing memory after SMMU translation is disabled as part of SMMU

linux-next: removal of the c6x tree

2020-06-15 Thread Stephen Rothwell
Hi, I have removed the c6x tree (git://linux-c6x.org/git/projects/linux-c6x-upstreaming.git#for-linux-next) from linux-next because it has not been updated in more than a year. If you would like it reinstated, please just reply and let me know. -- Cheers, Stephen Rothwell pgpNbJQudE3RW.pgp

[PATCH] coresight: tmc: Fix TMC mode read in tmc_read_unprepare_etb()

2020-06-15 Thread Sai Prakash Ranjan
Reading TMC mode register without proper coresight power management can lead to exceptions like the one in the call trace below in tmc_read_unprepare_etb() when the trace data is read after the sink is disabled. So fix this by having a check for coresight sysfs mode before reading TMC mode

Re: [PATCH v7 2/4] usb: dwc3: qcom: Add interconnect support in dwc3 driver

2020-06-15 Thread Sandeep Maheswaram (Temp)
On 6/16/2020 1:12 AM, Matthias Kaehlcke wrote: On Thu, Jun 04, 2020 at 04:16:31AM -0700, Stephen Boyd wrote: Quoting Sandeep Maheswaram (Temp) (2020-06-04 02:43:09) On 6/3/2020 11:06 PM, Stephen Boyd wrote: Quoting Sandeep Maheswaram (2020-03-31 22:15:43) diff --git

linux-next: removal of the leaks tree

2020-06-15 Thread Stephen Rothwell
Hi, I have removed the leaks tree (https://git.kernel.org/pub/scm/linux/kernel/git/tobin/leaks.git#leaks-next) from linux-next because it has not been updated in more than a year. If you would like it reinstated, please just reply and let me know. -- Cheers, Stephen Rothwell pgpNcys1RS6xP.pgp

Re: mm lock issue while booting Linux on 5.8-rc1 for RISC-V

2020-06-15 Thread Stafford Horne
On Tue, Jun 16, 2020 at 06:57:47AM +0900, Stafford Horne wrote: > On Mon, Jun 15, 2020 at 12:28:11AM -0700, Atish Patra wrote: > > Hi, > > I encountered the following issue while booting 5.8-rc1 on Qemu for RV64. > > I added additional dump_stack and observed that it's happening in bpf free > >

[PATCH 1/2] ALSA: hda: Make codec controlled LED support more generic

2020-06-15 Thread Kai-Heng Feng
Currently, only HDA codec GPIO controlled LED class is supported, and only via platform specific quirk. There are systems that control LED via COEF instead of GPIO, and to support those systems, move the LED class registration to snd_hda_gen_add_micmute_led(), so all systems can facilitate the

[PATCH 2/2] ALSA: hda/realtek: Add mute LED and micmute LED support for HP systems

2020-06-15 Thread Kai-Heng Feng
There are two more HP systems control mute LED from HDA and control micmute LED from SoF. Add IDs to support them. Signed-off-by: Kai-Heng Feng --- sound/pci/hda/patch_realtek.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c

[PATCH] ovl: inode reference leak in ovl_is_inuse true case.

2020-06-15 Thread youngjun
When "ovl_is_inuse" true case, trap inode reference not put. plus adding the comment explaining sequence of ovl_is_inuse after ovl_setup_trap. Signed-off-by: youngjun --- fs/overlayfs/super.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/fs/overlayfs/super.c

[GIT PULL v2] flexible-array member conversion patches for 5.8-rc2

2020-06-15 Thread Gustavo A. R. Silva
Hi Linus, v2 of today's pull request. I considerably reduced the size of the changelog text for all the patches, while at the same time, pointing people to where they can read further details about the changes, in case they want/need to. I also reduced the size and modified the commit message

Re: [PATCH 5/5] fpga manager: xilinx-spi: check INIT_B pin during write_init

2020-06-15 Thread Moritz Fischer
Hi Luca, On Thu, Jun 11, 2020 at 11:11:44PM +0200, Luca Ceresoli wrote: > The INIT_B reports the status during startup and after the end of the > programming process. However the current driver completely ignores it. > > Check the pin status during startup to make sure programming is never >

Re: [PATCH][next] scsi: fnic: Replace vmalloc() + memset() with vzalloc() and use array_size()

2020-06-15 Thread Joe Perches
On Tue, 2020-06-16 at 00:19 +, Satish Kharat (satishkh) wrote: > Reviewed-by: Satish Kharat >  > > On 6/15/20, 3:49 PM, "Gustavo A. R. Silva" wrote: > > Use vzalloc() instead of the vmalloc() and memset. Also, use array_size() > instead of the open-coded version. > > This

Re: [PATCH 1/5] dt-bindings: fpga: xilinx-slave-serial: valid for the 7 Series too

2020-06-15 Thread Moritz Fischer
On Thu, Jun 11, 2020 at 11:11:40PM +0200, Luca Ceresoli wrote: > The Xilinx 7-series uses the same protocol, mention that. > > Signed-off-by: Luca Ceresoli Acked-by: Moritz Fischer > --- > .../devicetree/bindings/fpga/xilinx-slave-serial.txt | 9 ++--- > 1 file changed, 6

[rcu:lkmm-dev] BUILD SUCCESS 29ecbc5a484349975eb1173c79538d4de418f966

2020-06-15 Thread kernel test robot
onfig i386 randconfig-a006-20200615 i386 randconfig-a002-20200615 i386 randconfig-a001-20200615 i386 randconfig-a004-20200615 i386 randconfig-a005-20200615 i386 randconfig-a003-20200615 x86_64 randconfig-a015-20200

[PATCH V3 1/3] dt-bindings: spi: Convert mxs spi to json-schema

2020-06-15 Thread Anson Huang
Convert the MXS SPI binding to DT schema format using json-schema Signed-off-by: Anson Huang Reviewed-by: Rob Herring --- Changes since V2: - drop "clock-frequency" property's type. --- Documentation/devicetree/bindings/spi/mxs-spi.txt | 26 --

[rcu:lkmm] BUILD SUCCESS a08ae995e32ffd5e54b714f941c7cdde4a83eade

2020-06-15 Thread kernel test robot
-20200615 i386 randconfig-a002-20200615 i386 randconfig-a001-20200615 i386 randconfig-a004-20200615 i386 randconfig-a005-20200615 i386 randconfig-a003-20200615 i386 randconfig-a006-20200616 i386

[PATCH V3 2/3] dt-bindings: spi: Convert imx cspi to json-schema

2020-06-15 Thread Anson Huang
Convert the i.MX CSPI binding to DT schema format using json-schema, update compatible, remove obsolete properties "fsl,spi-num-chipselects" and update the example based on latest DT file. Signed-off-by: Anson Huang --- Changes since V2: - remove redundant "maxItems" in "clocks" and

[PATCH V3 0/3] Convert mxs/imx spi/cspi/lpspi binding to json-schema

2020-06-15 Thread Anson Huang
This patch series converts mxs/imx spi/cspi/lpspi binding to json-schema. In fsl-imx-cspi.yaml, also update compatible, remove obsolete properties "fsl,spi-num-chipselects" and update the example based on latest DT file; In spi-fsl-lpspi.yaml, the original maintainer's email address

[PATCH V3 3/3] dt-bindings: spi: Convert imx lpspi to json-schema

2020-06-15 Thread Anson Huang
Convert the i.MX LPSPI binding to DT schema format using json-schema Signed-off-by: Anson Huang --- Changes since V2: - remove redundant "maxItems" in "clocks" and "clock-names". --- .../devicetree/bindings/spi/spi-fsl-lpspi.txt | 29 ---

Re: [PATCH 2/2] cpufreq: Specify default governor on command line

2020-06-15 Thread Viresh Kumar
On 15-06-20, 17:55, Quentin Perret wrote: > +static void cpufreq_get_default_governor(void) > +{ > + default_governor = cpufreq_parse_governor(cpufreq_param_governor); > + if (!default_governor) { > + if (*cpufreq_param_governor) > + pr_warn("Failed to find

Re: [PATCH 1/2] cpufreq: Register governors at core_initcall

2020-06-15 Thread Viresh Kumar
On 15-06-20, 17:55, Quentin Perret wrote: > Currently, most CPUFreq governors are registered at core_initcall time > when used as default, and module_init otherwise. In preparation for > letting users specify the default governor on the kernel command line, > change all of them to use

Re: [PATCH v2 4/6] regulator: Add support for QCOM PMIC VBUS booster

2020-06-15 Thread Wesley Cheng
On 6/15/2020 5:00 AM, Mark Brown wrote: > On Fri, Jun 12, 2020 at 04:19:16PM -0700, Wesley Cheng wrote: > >> +++ b/drivers/regulator/qcom_usb_vbus-regulator.c >> @@ -0,0 +1,147 @@ >> +// SPDX-License-Identifier: GPL-2.0-only >> +/* >> + * Copyright (c) 2020, The Linux Foundation. All rights

Re: [PATCH v2 4/6] regulator: Add support for QCOM PMIC VBUS booster

2020-06-15 Thread Wesley Cheng
On 6/12/2020 8:28 PM, Randy Dunlap wrote: > On 6/12/20 4:19 PM, Wesley Cheng wrote: >> diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig >> index 074a2ef55943..f9165f9f9051 100644 >> --- a/drivers/regulator/Kconfig >> +++ b/drivers/regulator/Kconfig >> @@ -797,6 +797,16 @@

[PATCH v7 5/7] fpga: dfl: fme: add interrupt support for global error reporting

2020-06-15 Thread Xu Yilun
Error reporting interrupt is very useful to notify users that some errors are detected by the hardware. Once users are notified, they could query hardware logged error states, no need to continuously poll on these states. This patch adds interrupt support for fme global error reporting sub

[PATCH v7 7/7] Documentation: fpga: dfl: add descriptions for interrupt related interfaces.

2020-06-15 Thread Xu Yilun
This patch adds introductions of interrupt related interfaces for FME error reporting, port error reporting and AFU user interrupts features. Signed-off-by: Luwei Kang Signed-off-by: Wu Hao Signed-off-by: Xu Yilun Reviewed-by: Marcelo Tosatti Acked-by: Wu Hao --- v2: Update Documents cause

[PATCH v7 1/7] fpga: dfl: parse interrupt info for feature devices on enumeration

2020-06-15 Thread Xu Yilun
DFL based FPGA devices could support interrupts for different purposes, but current DFL framework only supports feature device enumeration with given MMIO resources information via common DFL headers. This patch introduces one new API dfl_fpga_enum_info_add_irq for low level bus drivers (e.g. PCIe

[PATCH v7 3/7] fpga: dfl: introduce interrupt trigger setting API

2020-06-15 Thread Xu Yilun
FPGA user applications may be interested in interrupts generated by DFL features. For example, users can implement their own FPGA logics with interrupts enabled in AFU (Accelerated Function Unit, dynamic region of DFL based FPGA). So user applications need to be notified to handle these

[PATCH v7 4/7] fpga: dfl: afu: add interrupt support for port error reporting

2020-06-15 Thread Xu Yilun
Error reporting interrupt is very useful to notify users that some errors are detected by the hardware. Once users are notified, they could query hardware logged error states, no need to continuously poll on these states. This patch adds interrupt support for port error reporting sub feature. It

[PATCH v7 6/7] fpga: dfl: afu: add AFU interrupt support

2020-06-15 Thread Xu Yilun
AFU (Accelerated Function Unit) is dynamic region of the DFL based FPGA, and always defined by users. Some DFL based FPGA cards allow users to implement their own interrupts in AFU. In order to support this, hardware implements a new UINT (AFU Interrupt) private feature with related capability

[PATCH v7 2/7] fpga: dfl: pci: add irq info for feature devices enumeration

2020-06-15 Thread Xu Yilun
Some DFL FPGA PCIe cards (e.g. Intel FPGA Programmable Acceleration Card) support MSI-X based interrupts. This patch allows PCIe driver to prepare and pass interrupt resources to DFL via enumeration API. These interrupt resources could then be assigned to actual features which use them.

[PATCH v7 0/7] Add interrupt support to FPGA DFL drivers

2020-06-15 Thread Xu Yilun
This patchset add interrupt support to FPGA DFL drivers. With these patches, DFL driver will parse and assign interrupt resources for enumerated feature devices and their sub features. This patchset also introduces a set of APIs for user to monitor DFL interrupts. Three sub features (DFL FME

[PATCH] mm/pgtable: Move extern zero_pfn outside __HAVE_COLOR_ZERO_PAGE

2020-06-15 Thread Anshuman Khandual
zero_pfn variable is required whether __HAVE_COLOR_ZERO_PAGE is enabled or not. Also it should not really be declared individually in all functions where it gets used. Just move the declaration outside, which also makes it available for other potential users. Cc: Arnd Bergmann Cc:

[PATCH][v2] PM / s2idle: Clear _TIF_POLLING_NRFLAG before suspend to idle

2020-06-15 Thread Chen Yu
Suspend to idle was found to not work on Goldmont CPU recently. And the issue was triggered due to: 1. On Goldmont the CPU in idle can only be woken up via IPIs, not POLLING mode: Commit 08e237fa56a1 ("x86/cpu: Add workaround for MONITOR instruction erratum on Goldmont based CPUs") 2.

Re: [PATCH 1/1] scsi: mpt3sas: fix spelling mistake

2020-06-15 Thread Martin K. Petersen
On Tue, 9 Jun 2020 18:13:13 +0200, Flavio Suligoi wrote: > Fix typo: "tigger" --> "trigger" Applied to 5.9/scsi-queue, thanks! [1/1] scsi: mpt3sas: Fix spelling mistake https://git.kernel.org/mkp/scsi/c/896c9b4907c5 -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 00/17] spelling.txt: /decriptors/descriptors/

2020-06-15 Thread Martin K. Petersen
On Tue, 9 Jun 2020 13:45:53 +0100, Kieran Bingham wrote: > I wouldn't normally go through spelling fixes, but I caught sight of > this typo twice, and then foolishly grepped the tree for it, and saw how > pervasive it was. > > so here I am ... fixing a typo globally... but with an addition in >

[PATCH V3 1/2] dt-bindings: i2c: Convert mxs i2c to json-schema

2020-06-15 Thread Anson Huang
Convert the MXS I2C binding to DT schema format using json-schema Signed-off-by: Anson Huang --- Changes since V2: - remove 'clock-frequency' property's typs and use enum for it, as it ONLY support 100KHz/400KHz. --- Documentation/devicetree/bindings/i2c/i2c-mxs.txt | 25 ---

Re: [PATCH v3 0/2] scsi: ufs: Add trace event for UIC commands and cleanup UIC struct

2020-06-15 Thread Martin K. Petersen
On Mon, 15 Jun 2020 15:22:33 +0800, Stanley Chu wrote: > This series adds trace event for UIC commands and do a small cleanup in > struct uic_command. > > v2 -> v3: > - Refactor "complete" event hooks in ufshcd_uic_cmd_compl() (Avri Altman) > > v1 -> v2: > - Rename "uic_send" to "send" and

Re: [PATCH v3 0/5] scsi: ufs-mediatek: Fix clk-gating and introduce low-power mode for vccq2

2020-06-15 Thread Martin K. Petersen
On Mon, 1 Jun 2020 18:46:41 +0800, Stanley Chu wrote: > This series fixes clk-gating issues and introduces low-power mode for vccq2 > in MediaTek platforms. > > v2 -> v3: > - Fix (add back) linkoff support in patch [4] since previous version > incorrectly removed linkoff support > > v1 ->

[PATCH V3 2/2] dt-bindings: i2c: Convert imx i2c to json-schema

2020-06-15 Thread Anson Huang
Convert the i.MX I2C binding to DT schema format using json-schema, some improvements applied, such as update example based on latest DT file, add more compatible for existing SoCs, and remove unnecessary common property "pinctrl". Signed-off-by: Anson Huang --- Changes since V2: -

Re: [PATCH v2 0/2] scsi: ufs: Fix and cleanup device quirks

2020-06-15 Thread Martin K. Petersen
On Fri, 12 Jun 2020 09:26:23 +0800, Stanley Chu wrote: > this series provides some device quirk fixes and cleanups. > > v1 -> v2: > - Sort device quirks in alphabetical order (Alim Akhtar) > > Stanley Chu (2): > scsi: ufs: Add DELAY_BEFORE_LPM quirk for Micron devices > scsi: ufs: Cleanup

Re: [RESENT PATCH v5 0/5] scsi: ufs: cleanup ufs initialization

2020-06-15 Thread Martin K. Petersen
On Wed, 3 Jun 2020 11:19:54 +0200, Bean Huo wrote: > Resent this patchset since linux-s...@vger.kernel.org and > linux-kernel@vger.kernel.org rejected my email > > > Cleanup UFS descriptor length initialization, and delete some unnecessary > code. > > Changelog: > v4 - v5: > 1. Rebased

Re: [RESEND PATCH v10 00/10] exynos-ufs: Add support for UFS HCI

2020-06-15 Thread Martin K. Petersen
On Sat, 13 Jun 2020 08:16:56 +0530, Alim Akhtar wrote: > This patch-set introduces UFS (Universal Flash Storage) host controller > support > for Samsung family SoC. Mostly, it consists of UFS PHY and host specific > driver. > > - Changes since v9 > * fixed the review comments by Rob on ufs dt

Re: [PATCH v5] scsi: ufs: Fix imprecise load calculation in devfreq window

2020-06-15 Thread Martin K. Petersen
On Thu, 11 Jun 2020 18:10:43 +0800, Stanley Chu wrote: > The UFS load calculation is based on "total_time" and "busy_time" in a > devfreq window. However, the source of time is different for both > parameters: "busy_time" is assigned from "jiffies" thus has different > accuracy from "total_time"

Re: [PATCH v3 0/2] scsi: ufs: cleanup UFS driver

2020-06-15 Thread Martin K. Petersen
On Fri, 5 Jun 2020 22:05:18 +0200, Bean Huo wrote: > Cleanup, no functional change > > Changelog: > > v2 -v3: > 1. Change SPDX-License-Identifier: GPL-2.0 to >SPDX-License-Identifier: GPL-2.0-or-later (Eric Biggers) > v1 - v2: > 1. Split patch (Tomas Winkler) > > [...] Applied

RE: [PATCH V2 3/3] dt-bindings: i2c: Convert imx i2c to json-schema

2020-06-15 Thread Anson Huang
Hi, Rob > Subject: Re: [PATCH V2 3/3] dt-bindings: i2c: Convert imx i2c to json-schema > > On Thu, Jun 04, 2020 at 09:49:18AM +0800, Anson Huang wrote: > > Convert the i.MX I2C binding to DT schema format using json-schema, > > some improvements applied, such as update example based on latest

Re: [PATCH bpf 1/2] flow_dissector: reject invalid attach_flags

2020-06-15 Thread Alexei Starovoitov
On Mon, Jun 15, 2020 at 7:43 AM Lorenz Bauer wrote: > > On Fri, 12 Jun 2020 at 23:36, Alexei Starovoitov > wrote: > > > > On Fri, Jun 12, 2020 at 9:02 AM Lorenz Bauer wrote: > > > > > > Using BPF_PROG_ATTACH on a flow dissector program supports neither flags > > > nor target_fd but accepts any

linux-next: Tree for Jun 16

2020-06-15 Thread Stephen Rothwell
Hi all, Changes since 20200615: New tree: safesetid Removed trees: c6x, cisco, leaks, md, sifive (not been updated in over a year) My fixes tree contains: 4cb4bfffe2c1 ("device_cgroup: Fix RCU list debugging warning") The drm-intel-fixes tree gained a build failure for which

Re: [PATCH] scsi: ufs-bsg: Fix runtime PM imbalance on error

2020-06-15 Thread Martin K. Petersen
On Fri, 22 May 2020 12:59:29 +0800, Dinghao Liu wrote: > When ufs_bsg_alloc_desc_buffer() returns an error code, > a pairing runtime PM usage counter decrement is needed > to keep the counter balanced. Applied to 5.8/scsi-fixes, thanks! [1/1] scsi: ufs-bsg: Fix runtime PM imbalance on error

[PATCH V3] dt-bindings: mmc: Convert imx esdhc to json-schema

2020-06-15 Thread Anson Huang
Convert the i.MX ESDHC binding to DT schema format using json-schema Signed-off-by: Anson Huang --- Changes since V2: - fix typo of "dealy" to "delay"; - remove unused "Several ranges could be specified." in voltage-ranges which contradicts the min/max items. ---

Re: linux-next: build failures after merge of the vfs tree

2020-06-15 Thread Al Viro
On Tue, Jun 16, 2020 at 11:05:02AM +1000, Herbert Xu wrote: > On Tue, Jun 16, 2020 at 10:34:40AM +1000, Stephen Rothwell wrote: > > [Just adding Herbert to cc] > > > > On Tue, 16 Jun 2020 10:33:30 +1000 Stephen Rothwell > > wrote: > > > > > > Hi all, > > > > > > After merging the vfs tree,

Re: [PATCH][RFC] PM / s2idle: Clear _TIF_POLLING_NRFLAG before suspend to idle

2020-06-15 Thread Chen Yu
On Mon, Jun 15, 2020 at 09:31:54PM +0200, Peter Zijlstra wrote: > On Mon, Jun 15, 2020 at 08:40:41PM +0200, Peter Zijlstra wrote: > > > > @@ -186,8 +187,10 @@ int cpuidle_enter_s2idle(struct cpuidle_driver *drv, > > > struct cpuidle_device *dev) > > >* be frozen safely. > > >*/ > > >

[tip:x86/cleanups] BUILD SUCCESS 28b60197b573cd0b2d8f0ded56a5441c6147af14

2020-06-15 Thread kernel test robot
allmodconfig powerpc defconfig powerpc allyesconfig powerpc rhel-kconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a006-20200615 i386

Re: [PATCH v4 1/3] mm/slab: Use memzero_explicit() in kzfree()

2020-06-15 Thread Eric Biggers
On Mon, Jun 15, 2020 at 09:57:16PM -0400, Waiman Long wrote: > The kzfree() function is normally used to clear some sensitive > information, like encryption keys, in the buffer before freeing it back > to the pool. Memset() is currently used for the buffer clearing. However, > it is entirely

[PATCH v4 00/11] Add seccomp notifier ioctl that enables adding fds

2020-06-15 Thread Kees Cook
Hello! This is a bit of thread-merge between [1] and [2]. tl;dr: add a way for a seccomp user_notif process manager to inject files into the managed process in order to handle emulation of various fd-returning syscalls across security boundaries. Containers folks and Chrome are in need of the

[PATCH v4 09/11] selftests/seccomp: Rename user_trap_syscall() to user_notif_syscall()

2020-06-15 Thread Kees Cook
The user_trap_syscall() helper creates a filter with SECCOMP_RET_USER_NOTIF. To avoid confusion with SECCOMP_RET_TRAP, rename the helper to user_notif_syscall(). Additionally fix a redundant "return" after XFAIL. Signed-off-by: Kees Cook --- tools/testing/selftests/seccomp/seccomp_bpf.c | 60

[PATCH v4 08/11] selftests/seccomp: Make kcmp() less required

2020-06-15 Thread Kees Cook
The seccomp tests are a bit noisy without CONFIG_CHECKPOINT_RESTORE (due to missing the kcmp() syscall). The seccomp tests are more accurate with kcmp(), but it's not strictly required. Refactor the tests to use alternatives (comparing fd numbers), and provide a central test for kcmp() so there is

[PATCH v4 07/11] selftests/seccomp: Test SECCOMP_IOCTL_NOTIF_ADDFD

2020-06-15 Thread Kees Cook
From: Sargun Dhillon Test whether we can add file descriptors in response to notifications. This injects the file descriptors via notifications, and then uses kcmp to determine whether or not it has been successful. It also includes some basic sanity checking for arguments. Signed-off-by:

[PATCH v4 05/11] fs: Expand __fd_install_received() to accept fd

2020-06-15 Thread Kees Cook
Expand __fd_install_received() with support for replace_fd() for the coming seccomp "addfd" ioctl(). Add new wrapper fd_replace_received() for the new mode and update existing wrappers to retain old mode. Signed-off-by: Kees Cook --- fs/file.c| 22 --

RE: [PATCH] drm/radeon: Fix reference count leaks caused by pm_runtime_get_sync

2020-06-15 Thread Quan, Evan
[AMD Official Use Only - Internal Distribution Only] Acked-by: Evan Quan -Original Message- From: amd-gfx On Behalf Of Aditya Pakki Sent: Sunday, June 14, 2020 10:21 AM To: pakki...@umn.edu Cc: wu000...@umn.edu; David Airlie ; k...@umn.edu; linux-kernel@vger.kernel.org;

[PATCH v4 03/11] fs: Add fd_install_received() wrapper for __fd_install_received()

2020-06-15 Thread Kees Cook
For both pidfd and seccomp, the __user pointer is not used. Update __fd_install_received() to make writing to ufd optional. (ufd itself cannot checked for NULL because this changes the SCM_RIGHTS interface behavior.) In these cases, the new fd needs to be returned on success. Update the existing

[PATCH v4 11/11] seccomp: Fix ioctl number for SECCOMP_IOCTL_NOTIF_ID_VALID

2020-06-15 Thread Kees Cook
When SECCOMP_IOCTL_NOTIF_ID_VALID was first introduced it had the wrong direction flag set. While this isn't a big deal as nothing currently enforces these bits in the kernel, it should be defined correctly. Fix the define and provide support for the old command until it is no longer needed for

[PATCH v4 01/11] net/scm: Regularize compat handling of scm_detach_fds()

2020-06-15 Thread Kees Cook
Duplicate the cleanups from commit 2618d530dd8b ("net/scm: cleanup scm_detach_fds") into the compat code. Move the check added in commit 1f466e1f15cf ("net: cleanly handle kernel vs user buffers for ->msg_control") to before the compat call, even though it should be impossible for an in-kernel

[PATCH v4 04/11] pidfd: Replace open-coded partial fd_install_received()

2020-06-15 Thread Kees Cook
The sock counting (sock_update_netprioidx() and sock_update_classid()) was missing from pidfd's implementation of received fd installation. Replace the open-coded version with a call to the new fd_install_received() helper. Fixes: 8649c322f75c ("pid: Implement pidfd_getfd syscall")

[PATCH v4 10/11] seccomp: Switch addfd to Extensible Argument ioctl

2020-06-15 Thread Kees Cook
This patch is based on discussions[1] with Sargun Dhillon, Christian Brauner, and David Laight. Instead of building size into the addfd structure, make it a function of the ioctl command (which is how sizes are normally passed to ioctls). To support forward and backward compatibility, just mask

[PATCH v4 02/11] fs: Move __scm_install_fd() to __fd_install_received()

2020-06-15 Thread Kees Cook
In preparation for users of the "install a received file" logic outside of net/ (pidfd and seccomp), relocate and rename __scm_install_fd() from net/core/scm.c to __fd_install_received() in fs/file.c, and provide a wrapper named fd_install_received_user(), as future patches will change the

[PATCH v4 06/11] seccomp: Introduce addfd ioctl to seccomp user notifier

2020-06-15 Thread Kees Cook
From: Sargun Dhillon This adds a seccomp notifier ioctl which allows for the listener to "add" file descriptors to a process which originated a seccomp user notification. This allows calls like mount, and mknod to be "implemented", as the return value, and the arguments are data in memory. On

arch/s390/kvm/../../../virt/kvm/kvm_main.c:4326:17: sparse: struct kvm_vcpu Documentation Kbuild Makefile crypto include sound usr kvm_get_running_vcpus( ... )

2020-06-15 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: a5dc8300df75e8b8384b4c82225f1e4a0b4d9b55 commit: 7495e22bb165e7030bae4d9c6e84addb5ea17b29 KVM: Move running VCPU from ARM to common code date: 5 months ago config: s390-randconfig-s032-20200615 (attached

Re: [LKP] [sched/fair] 070f5e860e: reaim.jobs_per_min -10.5% regression

2020-06-15 Thread Xing Zhengjun
On 6/15/2020 11:10 PM, Hillf Danton wrote: On Mon, 15 Jun 2020 10:10:41 +0200 Vincent Guittot wrote: Le lundi 15 juin 2020 15:26:59 (+0800), Xing Zhengjun a crit : On 6/12/2020 7:06 PM, Hillf Danton wrote: On Fri, 12 Jun 2020 14:36:49 +0800 Xing Zhengjun wrote: ... I apply the patch

Re: [PATCH] kbuild: reuse vmlinux.o in vmlinux_link

2020-06-15 Thread Masahiro Yamada
On Tue, Jun 16, 2020 at 6:47 AM Sami Tolvanen wrote: > > On Sat, May 23, 2020 at 8:13 AM Masahiro Yamada wrote: > > > > Hi Nicholas, > > (+CC: Sam Ravnborg) > > > > > > On Sat, May 23, 2020 at 7:06 PM Nicholas Piggin wrote: > > > > > > Excerpts from Masahiro Yamada's message of May 23, 2020

[PATCH] arm/mm: Drop [PTE|PMD]_TYPE_FAULT

2020-06-15 Thread Anshuman Khandual
Drop these unused symbols i.e PTE_TYPE_FAULT and PMD_TYPE_FAULT. Cc: Russell King Cc: Thomas Gleixner Cc: Allison Randal Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Anshuman Khandual --- Applies on 5.8-rc1. Just found by code inspection and built

Re: [LKP] [sched/fair] 070f5e860e: reaim.jobs_per_min -10.5% regression

2020-06-15 Thread Xing Zhengjun
On 6/15/2020 4:10 PM, Vincent Guittot wrote: Hi Xing, Le lundi 15 juin 2020 à 15:26:59 (+0800), Xing Zhengjun a écrit : On 6/12/2020 7:06 PM, Hillf Danton wrote: On Fri, 12 Jun 2020 14:36:49 +0800 Xing Zhengjun wrote: ... --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@

[PATCH] arm64/panic: Unify all three existing notifier blocks

2020-06-15 Thread Anshuman Khandual
Currently there are three different registered panic notifier blocks. This unifies all of them into a single one i.e arm64_panic_block, hence reducing code duplication and required calling sequence during panic. This preserves the existing dump sequence. Cc: Catalin Marinas Cc: Will Deacon Cc:

Re: [PATCH 4/5] spi: bcm-qspi: Make multiple data blocks interrupt-driven

2020-06-15 Thread Mark Tomlinson
On Mon, 2020-06-15 at 15:32 +0100, Mark Brown wrote: > On Mon, Jun 15, 2020 at 04:05:56PM +1200, Mark Tomlinson wrote: > > > When needing to send/receive data in small chunks, make this interrupt > > driven rather than waiting for a completion event for each small section > > of data. > > Again

RE: [PATCH v1 RFC 1/2] spi: introduce fallback to pio

2020-06-15 Thread Robin Gong
On 2020/06/15 Vinod Koul wrote: > Hi Robin, > > On 15-06-20, 08:59, Robin Gong wrote: > > Hi Vinod, > > Is there any way to let the device driver to know dma controller is > > ready (in sdma case is sdma firmware loaded or not)before prep_call? > > Hence, spi core could map dma buffer or

[PATCH v3] ASoC: fsl_ssi: Fix bclk calculation for mono channel

2020-06-15 Thread Shengjiu Wang
For mono channel, SSI will switch to Normal mode. In Normal mode and Network mode, the Word Length Control bits control the word length divider in clock generator, which is different with I2S Master mode (the word length is fixed to 32bit), it should be the value of params_width(hw_params). The

Re: [btrfs] e678934cbe: reaim.jobs_per_min -30.7% regression

2020-06-15 Thread Rong Chen
On 6/12/20 7:50 PM, Filipe Manana wrote: On 11/06/20 10:02, kernel test robot wrote: Greeting, FYI, we noticed a -30.7% regression of reaim.jobs_per_min due to commit: Hello, In the future, can you please always CC linux-bt...@vger.kernel.org for btrfs related reports? Thanks for the

Re: [PATCH] [v2] media: vsp1: Fix runtime PM imbalance on error

2020-06-15 Thread Laurent Pinchart
Hello Dinghao, Thank you for the patch. On Mon, Jun 08, 2020 at 01:29:19PM +0800, Dinghao Liu wrote: > pm_runtime_get_sync() increments the runtime PM usage counter even > when it returns an error code. Thus a pairing decrement is needed on > the error handling path to keep the counter balanced.

Re: [RFC PATCH v2 2/5] scsi: ufs: Add UFS-feature layer

2020-06-15 Thread Daejun Park
Hi, Bean > > On Mon, 2020-06-15 at 16:23 +0900, Daejun Park wrote: > > +void ufsf_scan_features(struct ufs_hba *hba) > > +{ > > + int ret; > > + > > + init_waitqueue_head(>ufsf.sdev_wait); > > + atomic_set(>ufsf.slave_conf_cnt, 0); > > + > > + if

  1   2   3   4   5   6   7   8   9   10   >