[GRUB PATCH RFC 09/18] efi: Make shim_lock GUID and protocol type public

2020-05-04 Thread Daniel Kiper
The GUID will be used to properly detect and report UEFI Secure Boot status to the x86 Linux kernel. The functionality will be added by subsequent patches. The shim_lock protocol type is made public for completeness. Additionally, fix formatting of four preceding GUIDs. Signed-off-by: Daniel

[GRUB PATCH RFC 03/18] i386/msr: Extract and improve MSR support detection code

2020-05-04 Thread Daniel Kiper
Currently rdmsr and wrmsr commands have own MSR support detection code. This code is the same. So, it is duplicated. Additionally, this code cannot be reused by others. Hence, extract this code to a function and make it public. By the way, improve a code a bit. Additionally, use

Re: [PATCH] KVM: Fix a warning in __kvm_gfn_to_hva_cache_init()

2020-05-04 Thread Gavin Shan
On 5/5/20 5:05 AM, Peter Xu wrote: GCC 10.0.1 gives me this warning when building KVM: warning: ‘nr_pages_avail’ may be used uninitialized in this function [-Wmaybe-uninitialized] 2442 | for ( ; start_gfn <= end_gfn; start_gfn += nr_pages_avail) { It should not happen, but silent it.

Re: [PATCH v5 5/6] Optionally flush L1D on context switch

2020-05-04 Thread Singh, Balbir
On Mon, 2020-05-04 at 11:39 -0700, Kees Cook wrote: > > On Mon, May 04, 2020 at 02:13:42PM +1000, Balbir Singh wrote: > > Implement a mechanism to selectively flush the L1D cache. The goal > > is to > > allow tasks that are paranoid due to the recent snoop assisted data > > sampling > >

[RESEND][PATCH] dwc3: Remove check for HWO flag in dwc3_gadget_ep_reclaim_trb_sg()

2020-05-04 Thread John Stultz
The check for the HWO flag in dwc3_gadget_ep_reclaim_trb_sg() causes us to break out of the loop before we call dwc3_gadget_ep_reclaim_completed_trb(), which is what likely should be clearing the HWO flag. This can cause odd behavior where we never reclaim all the trbs in the sg list, so we never

Re: [PATCH v7 01/18] KVM: SVM: Add KVM_SEV SEND_START command

2020-05-04 Thread Venu Busireddy
On 2020-05-04 22:36:37 +, Ashish Kalra wrote: > On Mon, May 04, 2020 at 04:07:17PM -0500, Venu Busireddy wrote: > > On 2020-04-30 08:40:34 +, Ashish Kalra wrote: > > > From: Brijesh Singh > > > > > > The command is used to create an outgoing SEV guest encryption context. > > > > > > Cc:

Re: [PATCH] vfio-pci: Mask cap zero

2020-05-04 Thread Alex Williamson
On Mon, 4 May 2020 15:08:08 -0700 Neo Jia wrote: > On Mon, May 04, 2020 at 12:52:53PM -0600, Alex Williamson wrote: > > External email: Use caution opening links or attachments > > > > > > On Mon, 4 May 2020 18:09:16 +0200 > > Cornelia Huck wrote: > > > > > On Fri, 01 May 2020 15:41:24

[PATCH] x86: support i386 with Clang

2020-05-04 Thread Nick Desaulniers
GCC and Clang are architecturally different, which leads to subtle issues for code that's invalid but clearly dead. This can happen with code that emulates polymorphism with the preprocessor and sizeof. GCC will perform semantic analysis after early inlining and dead code elimination, so it will

[PATCH] ARM: dts: omap3: Migrate AES from hwmods to sysc-omap2

2020-05-04 Thread Adam Ford
Various OMAP3 boards have two AES blocks, but only one is currently available, because the hwmods are only configured for one. This patch migrates the hwmods for the AES engine to sysc-omap2 which allows the second AES crypto engine to become available. omap-aes 480a6000.aes1: OMAP AES hw

Re: [PATCH 1/2] mm, memcg: Avoid stale protection values when cgroup is above protection

2020-05-04 Thread Roman Gushchin
On Mon, May 04, 2020 at 09:23:42AM +0200, Michal Hocko wrote: > On Fri 01-05-20 07:59:57, Yafang Shao wrote: > > On Thu, Apr 30, 2020 at 10:57 PM Michal Hocko wrote: > > > > > > On Wed 29-04-20 12:56:27, Johannes Weiner wrote: > > > [...] > > > > I think to address this, we need a more

Re: [PATCH] perf session: Try to read pipe data from file

2020-05-04 Thread Jiri Olsa
On Fri, May 01, 2020 at 01:34:47PM +0200, Jiri Olsa wrote: > From: Jiri Olsa > > Ian came with the idea of having support to read the pipe > data also from file [1]. Currently pipe mode files fails > like: > > $ perf record -o - sleep 1 > /tmp/perf.pipe.data > $ perf report -i

Re: [PATCH v7 2/4] firmware: raspberrypi: Introduce vl805 init routine

2020-05-04 Thread Bjorn Helgaas
On Mon, May 04, 2020 at 10:59:29AM +0200, Nicolas Saenz Julienne wrote: > On Sat, 2020-05-02 at 11:05 +0200, Stefan Wahren wrote: > > > + pci_read_config_dword(pdev, VL805_PCI_CONFIG_VERSION_OFFSET, ); > > pci_read_config_dword() can fail, we might want to store the return value? > > I planned on

Re: [RFC PATCH] ima: verify mprotect change is consistent with mmap policy

2020-05-04 Thread Lakshmi Ramasubramanian
On 5/4/20 2:17 PM, Mimi Zohar wrote: Hi Mimi, +int ima_file_mprotect(struct vm_area_struct *vma, unsigned long prot) +{ + struct ima_template_desc *template; + struct inode *inode; + int result = 0; + int action; + u32 secid; + int pcr; + + if

Potential Race Condition in tls_hw_hash() and alike

2020-05-04 Thread Navid Emamdoost
Hi, I was wondering if a race condition in net/tls/tls_main.c may lead to a UAF or not? The scenario can be like this: 1) device is initialized and registered via chtls_register_dev() 2) while tls_hw_hash() is executed in one thread, the device gets detached (CPU2), and another thread tries to

[PATCH 1/2] usb: chipidea: msm: Ensure proper controller reset using role switch API

2020-05-04 Thread Bryan O'Donoghue
Currently we check to make sure there is no error state on the extcon handle for VBUS when writing to the HS_PHY_GENCONFIG_2 register. When using the USB role-switch API we still need to write to this register absent an extcon handle. This patch makes the appropriate update to ensure the write

[PATCH 2/2] usb: chipidea: Enable user-space triggered role-switching

2020-05-04 Thread Bryan O'Donoghue
The flag provided by the USB role-switch logic allow_userspace_control allows user-space to trigger a role-switch. Several other USB controller drivers already enable this feature. Let's switch it on for the chipidea core now also. Cc: Peter Chen Cc: Jun Li Cc: Greg Kroah-Hartman Cc: Liam

[rcu:rcu/test] BUILD SUCCESS 3b32274eac83933867ce206ca2dc2a8edeac9515

2020-05-04 Thread kbuild test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/test branch HEAD: 3b32274eac83933867ce206ca2dc2a8edeac9515 Merge branch 'dev' into HEAD elapsed time: 482m configs tested: 188 configs skipped: 0 The following configs have been built successfully. More

[rcu:kcsan-dev] BUILD SUCCESS 52785b6ae8eded7ac99d65c92d989b702e5b4376

2020-05-04 Thread kbuild test robot
-a001-20200503 sparc64 randconfig-a001-20200503 s390 randconfig-a001-20200504 xtensa randconfig-a001-20200504 sh randconfig-a001-20200504 openrisc randconfig-a001-20200504 csky randconfig-a001-20200504 s390

[PATCH v7 2/3] clk: at91: allow setting PCKx parent via DT

2020-05-04 Thread Michał Mirosław
This exposes PROGx clocks for use in assigned-clocks DeviceTree property for selecting PCKx parent clock. Signed-off-by: Michał Mirosław --- v2: rebase and update to clk/clk-at91 branch v3: rebase v4: no changes v5: no changes v6: no changes v7: push all pmc_data_free() to first patch (fix a

[PATCH v7 1/3] clk: at91: optimize pmc data allocation

2020-05-04 Thread Michał Mirosław
Alloc whole data structure in one block. This makes the code shorter, more efficient and easier to extend in following patch. Signed-off-by: Michał Mirosław --- v2: rebase and update to clk/clk-at91 branch v3: use struct_size() and C99 trailing array as suggested by Stephen Boyd v4: fixed

[PATCH v7 3/3] clk: at91: allow setting all PMC clock parents via DT

2020-05-04 Thread Michał Mirosław
We need to have clocks accessible via phandle to select them as peripheral clock parent using assigned-clock-parents in DT. Add support for PLLACK/PLLBCK/AUDIOPLLCK clocks where available. Signed-off-by: Michał Mirosław Acked-by: Alexandre Belloni --- v2: rebase to clk/clk-at91 branch v3: no

[PATCH v7 0/3] clk: at91: support configuring more clocks via DT

2020-05-04 Thread Michał Mirosław
This series extends AT91 clock support with references to PCKx and PLLA/PLLB/AUDIOPLL. This makes the DT be able to fully specify (assign) clock parents when needed. First patch simplifies clock table allocation. Next two update the table with missing clock pointers and IDs. Michał Mirosław

Re: [PATCH v7 01/18] KVM: SVM: Add KVM_SEV SEND_START command

2020-05-04 Thread Ashish Kalra
On Mon, May 04, 2020 at 04:07:17PM -0500, Venu Busireddy wrote: > On 2020-04-30 08:40:34 +, Ashish Kalra wrote: > > From: Brijesh Singh > > > > The command is used to create an outgoing SEV guest encryption context. > > > > Cc: Thomas Gleixner > > Cc: Ingo Molnar > > Cc: "H. Peter Anvin"

Re: [PATCH v6 2/3] clk: at91: allow setting PCKx parent via DT

2020-05-04 Thread Michał Mirosław
On Mon, May 04, 2020 at 10:44:47PM +0200, Alexandre Belloni wrote: > On 04/05/2020 22:19:17+0200, Michał Mirosław wrote: > > This exposes PROGx clocks for use in assigned-clocks DeviceTree property > > for selecting PCKx parent clock. > > > > Signed-off-by: Michał Mirosław > > Acked-by:

Re: [PATCH 6/7] mm: parallelize deferred_init_memmap()

2020-05-04 Thread Alexander Duyck
On Thu, Apr 30, 2020 at 1:12 PM Daniel Jordan wrote: > > Deferred struct page init uses one thread per node, which is a > significant bottleneck at boot for big machines--often the largest. > Parallelize to reduce system downtime. > > The maximum number of threads is capped at the number of CPUs

Re: [PATCH v2 1/2] driver core: platform: Clarify that IRQ 0 is invalid

2020-05-04 Thread Bjorn Helgaas
On Mon, May 04, 2020 at 09:07:21PM +0200, Greg Kroah-Hartman wrote: > On Mon, May 04, 2020 at 01:08:22PM -0500, Bjorn Helgaas wrote: > > On Sat, May 02, 2020 at 08:15:37AM +0200, Greg Kroah-Hartman wrote: > > > On Fri, May 01, 2020 at 05:40:41PM -0500, Bjorn Helgaas wrote: > > > > From: Bjorn

[tip:ras/core] BUILD SUCCESS 3b4ff4eb904fef04c36b39052ca8eb31fa41fad0

2020-05-04 Thread kbuild test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git ras/core branch HEAD: 3b4ff4eb904fef04c36b39052ca8eb31fa41fad0 x86/mcelog: Add compat_ioctl for 32-bit mcelog support elapsed time: 481m configs tested: 193 configs skipped: 0 The following configs have been built

[tip:x86/mm] BUILD SUCCESS bd1de2a7aace4d1d312fb1be264b8fafdb706208

2020-05-04 Thread kbuild test robot
-20200505 alpharandconfig-a001-20200505 riscvrandconfig-a001-20200505 h8300randconfig-a001-20200504 nios2randconfig-a001-20200504 microblaze randconfig-a001-20200504 c6x randconfig-a001-20200504 sparc64

[tip:x86/urgent] BUILD SUCCESS fb9cbbc895eb6e986dc90c928a35c793d75f435a

2020-05-04 Thread kbuild test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/urgent branch HEAD: fb9cbbc895eb6e986dc90c928a35c793d75f435a x86/unwind/orc: Move ORC sorting variables under !CONFIG_MODULES elapsed time: 481m configs tested: 156 configs skipped: 139 The following configs have

Re: [PATCH v4 00/11] livepatch,module: Remove .klp.arch and module_disable_ro()

2020-05-04 Thread Jiri Kosina
On Wed, 29 Apr 2020, Josh Poimboeuf wrote: > v4: > - Fixed rebase bisection regression [Miroslav] > - Made module_enable_ro() static [Jessica] > - Added Acked-by's > > v3: > - klp: split klp_write_relocations() into object/section specific > functions [joe] > - s390: fix plt/got writes [joe] >

[GIT PULL] HID subsystem fixes

2020-05-04 Thread Jiri Kosina
Linus, please pull from git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-linus to receive HID subsytem fixes. = - Wacom driver functional and regression fixes from Jason Gerecke - race condition fix in usbhid, found by syzbot and fixed by Alan Stern - a few device-specific

[PATCH 2/3] dt-bindings: power: supply: Document maxim,rcomp-value for max17040

2020-05-04 Thread Jonathan Bakker
The rcomp value is a device-specific value for configuration based on specific chemistries. There is no public documentation on how to tune it. Signed-off-by: Jonathan Bakker --- .../devicetree/bindings/power/supply/max17040_battery.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH 1/3] power: supply: max17040: Correct voltage reading

2020-05-04 Thread Jonathan Bakker
According to the datasheet available at (1), the bottom four bits are always zero and the actual voltage is 1.25x this value in mV. Since the kernel API specifies that voltages should be in uV, it should report 1250x the shifted value. 1)

[PATCH 3/3] power: supply: max17040: Set rcomp value

2020-05-04 Thread Jonathan Bakker
According to the datasheet (1), the rcomp parameter can vary based on the typical operating temperature and the battery chemistry. If provided, make sure we set it after we reset the chip on boot. 1) https://datasheets.maximintegrated.com/en/ds/MAX17040-MAX17041.pdf Signed-off-by: Jonathan

[PATCH 0/3] power: supply: Improve max17040 support

2020-05-04 Thread Jonathan Bakker
This patchset does two things: 1) Corrects the voltage reading from the max17040, which was missing the shift and scaling. 2) Adds the ability to the set the rcomp, which is used to optimize performance for specific battery chemistries and/or workloads. Jonathan Bakker (3): power: supply:

Re: [PATCH v2 2/5] stats_fs API: create, add and remove stats_fs sources and values

2020-05-04 Thread Randy Dunlap
On 5/4/20 4:03 AM, Emanuele Giuseppe Esposito wrote: > diff --git a/fs/Kconfig b/fs/Kconfig > index f08fbbfafd9a..1b0de0f19e96 100644 > --- a/fs/Kconfig > +++ b/fs/Kconfig > @@ -328,4 +328,10 @@ source "fs/unicode/Kconfig" > config IO_WQ > bool > > +config STATS_FS > + bool

Re: [PATCH 5/7] mm: move zone iterator outside of deferred_init_maxorder()

2020-05-04 Thread Alexander Duyck
On Thu, Apr 30, 2020 at 7:45 PM Daniel Jordan wrote: > > Hi Alex, > > On Thu, Apr 30, 2020 at 02:43:28PM -0700, Alexander Duyck wrote: > > On 4/30/2020 1:11 PM, Daniel Jordan wrote: > > > padata will soon divide up pfn ranges between threads when parallelizing > > > deferred init, and

Re: [PATCH v2] riscv: force __cpu_up_ variables to put in data section

2020-05-04 Thread Palmer Dabbelt
On Mon, 04 May 2020 10:37:40 PDT (-0700), ati...@atishpatra.org wrote: On Mon, May 4, 2020 at 12:50 AM Andreas Schwab wrote: On Mai 04 2020, Anup Patel wrote: > Slightly improved text: > > This issue happens on random booting of multiple harts, which means > it will manifest for BBL and

Re: [PATCH 1/2] riscv: defconfig: enable spi nor on Hifive Unleashed A00 board.

2020-05-04 Thread Palmer Dabbelt
On Thu, 30 Apr 2020 02:58:51 PDT (-0700), sagar.ka...@sifive.com wrote: Enable MTD based SPI-NOR framework in order to use spi flash available on HiFive Unleashed A00 board. Signed-off-by: Sagar Shrikant Kadam --- arch/riscv/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff

Re: [PATCH] vfio-pci: Mask cap zero

2020-05-04 Thread Neo Jia
On Mon, May 04, 2020 at 12:52:53PM -0600, Alex Williamson wrote: > External email: Use caution opening links or attachments > > > On Mon, 4 May 2020 18:09:16 +0200 > Cornelia Huck wrote: > > > On Fri, 01 May 2020 15:41:24 -0600 > > Alex Williamson wrote: > > > > > There is no PCI spec defined

[PATCH] KVM: selftests: Fix build for evmcs.h

2020-05-04 Thread Peter Xu
I got this error when building kvm selftests: /usr/bin/ld: /home/xz/git/linux/tools/testing/selftests/kvm/libkvm.a(vmx.o):/home/xz/git/linux/tools/testing/selftests/kvm/include/evmcs.h:222: multiple definition of `current_evmcs';

Re: [PATCH v4 07/12] OPP: Add and export helper to get icc path count

2020-05-04 Thread Saravana Kannan
On Mon, May 4, 2020 at 1:24 PM Sibi Sankar wrote: > > Add and export 'dev_pm_opp_get_path_count' to get the icc path count > associated with the device. This is not related to OPP. You should add this helper function to ICC framework? -Saravana

[RFC][PATCH] kexec: Teach indirect pages how to live in high memory

2020-05-04 Thread Eric W. Biederman
Recently a patch was proposed to kimage_alloc_page to slightly alter the logic of how pages allocated with incompatible flags were detected. The logic was being altered because the semantics of the page alloctor were changing yet again. Looking at that case I realized that there is no reason

Re: [PATCH] sysctl: Make sure proc handlers can't expose heap memory

2020-05-04 Thread Luis Chamberlain
On Mon, May 04, 2020 at 01:32:07PM -0700, Kees Cook wrote: > On Mon, May 04, 2020 at 07:59:37PM +, Luis Chamberlain wrote: > > On Mon, May 04, 2020 at 12:08:55PM -0700, Kees Cook wrote: > > > Just as a precaution, make sure that proc handlers don't accidentally > > > grow "count" beyond the

[PATCH v4 2/2] rpmsg: core: Add support to retrieve name extension

2020-05-04 Thread Mathieu Poirier
After adding support for rpmsg device name extension, this patch provides a function that returns the extension portion of an rpmsg device name. That way users of the name extension functionality don't have to write the same boiler plate code to extract the information. Suggested-by: Suman Anna

[PATCH v4 1/2] rpmsg: core: Add wildcard match for name service

2020-05-04 Thread Mathieu Poirier
Adding the capability to supplement the base definition published by an rpmsg_driver with a postfix description so that it is possible for several entity to use the same service. Signed-off-by: Mathieu Poirier Acked-by: Arnaud Pouliquen --- drivers/rpmsg/rpmsg_core.c | 20 +++-

[PATCH v4 0/2] pmsg: core: Add support for name extension

2020-05-04 Thread Mathieu Poirier
This patchset adds the capability to supplement the base definition published by an rpmsg_driver with a postfix description so that it is easy to differentiate entities that use the same name service. Offers the same functionality as v3[1] but was tweaked to keep the robot happy[2]. Applies

Re: [PATCH v7 09/18] KVM: x86: Introduce KVM_GET_PAGE_ENC_BITMAP ioctl

2020-05-04 Thread Venu Busireddy
On 2020-04-30 08:43:40 +, Ashish Kalra wrote: > From: Brijesh Singh > > The ioctl can be used to retrieve page encryption bitmap for a given > gfn range. > > Return the correct bitmap as per the number of pages being requested > by the user. Ensure that we only copy bmap->num_pages bytes in

Re: [PATCH v6 3/3] clk: at91: allow setting all PMC clock parents via DT

2020-05-04 Thread Alexandre Belloni
On 04/05/2020 22:19:18+0200, Michał Mirosław wrote: > We need to have clocks accessible via phandle to select them > as peripheral clock parent using assigned-clock-parents in DT. > Add support for PLLACK/PLLBCK/AUDIOPLLCK clocks where available. > > Signed-off-by: Michał Mirosław Acked-by:

Re: [PATCH] nand: brcmnand: correctly verify erased pages

2020-05-04 Thread Florian Fainelli
On 5/4/2020 2:29 AM, Álvaro Fernández Rojas wrote: > The current code checks that the whole OOB area is erased. > This is a problem when JFFS2 cleanmarkers are added to the OOB, since it will > fail due to the usable OOB bytes not being 0xff. > Correct this by only checking that the ECC aren't

Re: [PATCH v7 06/18] KVM: SVM: Add KVM_SEV_RECEIVE_FINISH command

2020-05-04 Thread Venu Busireddy
On 2020-04-30 08:42:37 +, Ashish Kalra wrote: > From: Brijesh Singh > > The command finalize the guest receiving process and make the SEV guest > ready for the execution. > > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: "H. Peter Anvin" > Cc: Paolo Bonzini > Cc: "Radim Krčmář" > Cc:

Re: [PATCH 1/3] ASoC: fsl_esai: introduce SoC specific data

2020-05-04 Thread Nicolin Chen
On Fri, May 01, 2020 at 04:12:04PM +0800, Shengjiu Wang wrote: > Introduce a SoC specific data structure which contains the > differences between the different SoCs. > This makes it easier to support more differences without having > to introduce a new if/else each time. > > Signed-off-by:

Re: [PATCH v7 04/18] KVM: SVM: Add support for KVM_SEV_RECEIVE_START command

2020-05-04 Thread Venu Busireddy
On 2020-04-30 08:42:02 +, Ashish Kalra wrote: > From: Brijesh Singh > > The command is used to create the encryption context for an incoming > SEV guest. The encryption context can be later used by the hypervisor > to import the incoming data into the SEV guest memory space. > > Cc: Thomas

Re: [PATCH v2 0/5] Statsfs: a new ram-based file sytem for Linux kernel statistics

2020-05-04 Thread David Rientjes
On Mon, 4 May 2020, Emanuele Giuseppe Esposito wrote: > There is currently no common way for Linux kernel subsystems to expose > statistics to userspace shared throughout the Linux kernel; subsystems > have to take care of gathering and displaying statistics by themselves, > for example in the

[PATCH net-next v2 3/3] net: phy: mscc: use phy_package_shared

2020-05-04 Thread Michael Walle
Use the new phy_package_shared common storage to ease the package initialization and to access the global registers. Signed-off-by: Michael Walle Tested-by: Vladimir Oltean --- drivers/net/phy/mscc/mscc.h | 1 - drivers/net/phy/mscc/mscc_main.c | 101 ++- 2

[PATCH net-next v2 1/3] net: phy: add concept of shared storage for PHYs

2020-05-04 Thread Michael Walle
There are packages which contain multiple PHY devices, eg. a quad PHY transceiver. Provide functions to allocate and free shared storage. Usually, a quad PHY contains global registers, which don't belong to any PHY. Provide convenience functions to access these registers. Signed-off-by: Michael

[PATCH net-next v2 0/3] add phy shared storage

2020-05-04 Thread Michael Walle
Introduce the concept of a shared PHY storage which can be used by some QSGMII PHYs to ease initialization and access to global per-package registers. Changes since v1: - fix typos and add a comment, thanks Florian. - check for "addr < 0" in phy_package_join() - remove multiple blank lines and

[PATCH net-next v2 2/3] net: phy: bcm54140: use phy_package_shared

2020-05-04 Thread Michael Walle
Use the new phy_package_shared common storage to ease the package initialization and to access the global registers. Signed-off-by: Michael Walle --- drivers/net/phy/bcm54140.c | 57 -- 1 file changed, 11 insertions(+), 46 deletions(-) diff --git

Re: [PATCH v2 0/2] Replace and improve "mcsafe" with copy_safe()

2020-05-04 Thread Dan Williams
On Mon, May 4, 2020 at 1:26 PM Andy Lutomirski wrote: > > On Mon, May 4, 2020 at 1:05 PM Luck, Tony wrote: > > > > > When a copy function hits a bad page and the page is not yet known to > > > be bad, what does it do? (I.e. the page was believed to be fine but > > > the copy function gets #MC.)

Re: [PATCH v5.6-rt] mm: slub: Always flush the delayed empty slubs in flush_all()

2020-05-04 Thread David Rientjes
On Mon, 4 May 2020, Kevin Hao wrote: > After commit f0b231101c94 ("mm/SLUB: delay giving back empty slubs to > IRQ enabled regions"), when the free_slab() is invoked with the IRQ > disabled, the empty slubs are moved to a per-CPU list and will be > freed after IRQ enabled later. But in the

Re: [PATCH] fs: xfs: fix a possible data race in xfs_inode_set_reclaim_tag()

2020-05-04 Thread Dave Chinner
On Tue, May 05, 2020 at 12:15:30AM +0800, Jia-Ju Bai wrote: > We find that xfs_inode_set_reclaim_tag() and xfs_reclaim_inode() are > concurrently executed at runtime in the following call contexts: > > Thread1: > xfs_fs_put_super() > xfs_unmountfs() > xfs_rtunmount_inodes() >

[PATCH v25 05/16] dt: bindings: lp55xx: Be consistent in the document with LED acronym

2020-05-04 Thread Dan Murphy
Update the document to be consistent in case when using "LED". This acronym should be capital throughout the document. Acked-by: Pavel Machek Acked-by: Jacek Anaszewski Signed-off-by: Dan Murphy --- Documentation/devicetree/bindings/leds/leds-lp55xx.txt | 6 +++--- 1 file changed, 3

Re: [PATCH v7 03/18] KVM: SVM: Add KVM_SEV_SEND_FINISH command

2020-05-04 Thread Venu Busireddy
On 2020-04-30 08:41:08 +, Ashish Kalra wrote: > From: Brijesh Singh > > The command is used to finailize the encryption context created with > KVM_SEV_SEND_START command. > > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: "H. Peter Anvin" > Cc: Paolo Bonzini > Cc: "Radim Krčmář" > Cc:

[PATCH v25 11/16] leds: lp55xx: Add multicolor framework support to lp55xx

2020-05-04 Thread Dan Murphy
Add multicolor framework support for the lp55xx family. Acked-by: Pavel Machek Acked-by: Jacek Anaszewski Signed-off-by: Dan Murphy --- drivers/leds/Kconfig | 1 + drivers/leds/leds-lp5521.c| 14 +- drivers/leds/leds-lp5523.c| 14 +-

[PATCH v25 01/16] dt: bindings: Add multicolor class dt bindings documention

2020-05-04 Thread Dan Murphy
Add DT bindings for the LEDs multicolor class framework. Add multicolor ID to the color ID list for device tree bindings. CC: Rob Herring Acked-by: Pavel Machek Acked-by: Jacek Anaszewski Signed-off-by: Dan Murphy --- .../bindings/leds/leds-class-multicolor.yaml | 71 +++

[PATCH v25 04/16] leds: lp50xx: Add the LP50XX family of the RGB LED driver

2020-05-04 Thread Dan Murphy
Introduce the LP5036/30/24/18/12/9 RGB LED driver. The difference in these parts are the number of LED outputs where the: LP5036 can control 36 LEDs LP5030 can control 30 LEDs LP5024 can control 24 LEDs LP5018 can control 18 LEDs LP5012 can control 12 LEDs LP5009 can control 9 LEDs The device

[PATCH v25 14/16] leds: lp55xx: Fix checkpatch file permissions issues

2020-05-04 Thread Dan Murphy
Fix the checkpatch warnings for the use of the file permission macros. In converting the file permissions to the DEVICE_ATTR_XX macros the call back function names needed to be updated within the code. This means that the lp55xx_ needed to be dropped in the name to keep in harmony with the ABI

[PATCH v25 00/16] Multicolor Framework v25

2020-05-04 Thread Dan Murphy
Hello This is the multi color LED framework. This framework presents clustered colored LEDs into an array and allows the user space to adjust the brightness of the cluster using a single file write. The individual colored LEDs intensities are controlled via a single file that is an array of

[PATCH v25 09/16] ARM: dts: ste-href: Add reg property to the LP5521 channel nodes

2020-05-04 Thread Dan Murphy
Add the reg property to each channel node. This update is to accomodate the multicolor framework. In addition to the accommodation this allows the LEDs to be placed on any channel and allow designs to skip channels as opposed to requiring sequential order. Signed-off-by: Dan Murphy CC: Linus

[PATCH v25 03/16] dt: bindings: lp50xx: Introduce the lp50xx family of RGB drivers

2020-05-04 Thread Dan Murphy
Introduce the bindings for the Texas Instruments LP5036, LP5030, LP5024, LP5018, LP5012 and LP5009 RGB LED device driver. The LP5036/30/24/18/12/9 can control RGB LEDs individually or as part of a control bank group. These devices have the ability to adjust the mixing control for the RGB LEDs to

[PATCH v25 16/16] dt: bindings: Update lp55xx binding to recommended LED naming

2020-05-04 Thread Dan Murphy
Update the LP55xx DT binding examples to the recommended node naming convention. There are no changes to the DT properties. Acked-by: Pavel Machek Acked-by: Jacek Anaszewski Signed-off-by: Dan Murphy CC: Rob Herring CC: Tony Lindgren CC: "Benoît Cousson" CC: Linus Walleij CC: Shawn Guo

[PATCH v25 06/16] dt: bindings: lp55xx: Update binding for Multicolor Framework

2020-05-04 Thread Dan Murphy
Update the DT binding to include the properties to use the multicolor framework for the devices that use the LP55xx framework. Acked-by: Jacek Anaszewski Reviewed-by: Linus Walleij Signed-off-by: Dan Murphy CC: Tony Lindgren CC: "Benoît Cousson" CC: Linus Walleij CC: Shawn Guo CC: Sascha

[PATCH v25 07/16] ARM: dts: n900: Add reg property to the LP5523 channel node

2020-05-04 Thread Dan Murphy
Add the reg property to each channel node. This update is to accomodate the multicolor framework. In addition to the accommodation this allows the LEDs to be placed on any channel and allow designs to skip channels as opposed to requiring sequential order. Signed-off-by: Dan Murphy Acked-by:

[PATCH v25 12/16] leds: lp5523: Update the lp5523 code to add multicolor brightness function

2020-05-04 Thread Dan Murphy
Add the multicolor brightness call back to support the multicolor framework. This call back allows setting brightness on grouped channels in a single function. Acked-by: Pavel Machek Acked-by: Jacek Anaszewski Signed-off-by: Dan Murphy --- drivers/leds/Kconfig | 1 +

[PATCH v25 08/16] ARM: dts: imx6dl-yapp4: Add reg property to the lp5562 channel node

2020-05-04 Thread Dan Murphy
Add the reg property to each channel node. This update is to accomodate the multicolor framework. In addition to the accommodation this allows the LEDs to be placed on any channel and allow designs to skip channels as opposed to requiring sequential order. Acked-by: Pavel Machek Signed-off-by:

[PATCH v25 15/16] leds: lp5523: Fix checkpatch issues in the code

2020-05-04 Thread Dan Murphy
Fix checkpatch errors and warnings for the LP5523.c device driver. Acked-by: Pavel Machek Acked-by: Jacek Anaszewski Signed-off-by: Dan Murphy --- drivers/leds/leds-lp5523.c | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/drivers/leds/leds-lp5523.c

[PATCH v25 10/16] leds: lp55xx: Convert LED class registration to devm_*

2020-05-04 Thread Dan Murphy
Convert the LED class registration calls to the LED devm_* registration calls. Acked-by: Jacek Anaszewski Acked-by: Pavel Machek Signed-off-by: Dan Murphy --- drivers/leds/leds-lp5521.c| 9 +++-- drivers/leds/leds-lp5523.c| 9 +++-- drivers/leds/leds-lp5562.c

[PATCH v25 13/16] leds: lp5521: Add multicolor framework multicolor brightness support

2020-05-04 Thread Dan Murphy
Add the multicolor brightness call back to support the multicolor framework. This function allows setting the brightness across grouped LED channels in a single call. Acked-by: Pavel Machek Acked-by: Jacek Anaszewski Signed-off-by: Dan Murphy --- drivers/leds/Kconfig | 1 +

[PATCH v25 02/16] leds: multicolor: Introduce a multicolor class definition

2020-05-04 Thread Dan Murphy
Introduce a multicolor class that groups colored LEDs within a LED node. The multi color class groups monochrome LEDs and allows controlling two aspects of the final combined color: hue and lightness. The former is controlled via the intensity file and the latter is controlled via brightness

Re: [PATCH] slub: limit count of partial slabs scanned to gather statistics

2020-05-04 Thread David Rientjes
On Mon, 4 May 2020, Konstantin Khlebnikov wrote: > To get exact count of free and used objects slub have to scan list of > partial slabs. This may take at long time. Scanning holds spinlock and > blocks allocations which move partial slabs to per-cpu lists and back. > > Example found in the

[RFC PATCH] ima: verify mprotect change is consistent with mmap policy

2020-05-04 Thread Mimi Zohar
Files can be mmap'ed read/write and later changed to execute to circumvent IMA's mmap appraise policy rules. Due to locking issues (mmap semaphore would be taken prior to i_mutex), files can not be measured or appraised at this point. Eliminate this integrity gap, by denying the mprotect

Re: [PATCH v24 02/16] leds: multicolor: Introduce a multicolor class definition

2020-05-04 Thread kbuild test robot
Hi Dan, I love your patch! Yet something to improve: [auto build test ERROR on pavel-linux-leds/for-next] [also build test ERROR on robh/for-next linus/master j.anaszewski-leds/for-next v5.7-rc4 next-20200504] [if your patch is applied to the wrong git tree, please drop us a note to help

Re: [PATCH v7 02/18] KVM: SVM: Add KVM_SEND_UPDATE_DATA command

2020-05-04 Thread Venu Busireddy
On 2020-04-30 08:40:50 +, Ashish Kalra wrote: > From: Brijesh Singh > > The command is used for encrypting the guest memory region using the > encryption > context created with KVM_SEV_SEND_START. > > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: "H. Peter Anvin" > Cc: Paolo Bonzini >

Re: [PATCH v7 01/18] KVM: SVM: Add KVM_SEV SEND_START command

2020-05-04 Thread Venu Busireddy
On 2020-04-30 08:40:34 +, Ashish Kalra wrote: > From: Brijesh Singh > > The command is used to create an outgoing SEV guest encryption context. > > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: "H. Peter Anvin" > Cc: Paolo Bonzini > Cc: "Radim Krčmář" > Cc: Joerg Roedel > Cc: Borislav

Re: linux-next: Tree for May 4 --> mm: free_area_init: allow defining max_zone_pfn in descending order does increase memory use

2020-05-04 Thread Stephen Rothwell
Hi Mike, On Mon, 4 May 2020 18:44:10 +0300 Mike Rapoport wrote: > > Ho Christian, > > On Mon, May 04, 2020 at 04:50:06PM +0200, Christian Borntraeger wrote: > > Mike, > > commit 51a2f644fd020d5f090044825c388444d11029d ("mm: free_area_init: allow > > defining max_zone_pfn in descending order")

Re: [PATCH 05/15] bpf: avoid gcc-10 stringop-overflow warning

2020-05-04 Thread Daniel Borkmann
On 4/30/20 11:30 PM, Arnd Bergmann wrote: gcc-10 warns about accesses to zero-length arrays: kernel/bpf/core.c: In function 'bpf_patch_insn_single': cc1: warning: writing 8 bytes into a region of size 0 [-Wstringop-overflow=] In file included from kernel/bpf/core.c:21:

Re: [PATCH] firmware: arm_sdei: Drop check for /firmware/ node and always register driver

2020-05-04 Thread Will Deacon
On Wed, 22 Apr 2020 13:28:23 +0100, Sudeep Holla wrote: > As with most of the drivers, let us register this driver unconditionally > by dropping the checks for presence of firmware nodes(DT) or entries(ACPI). > > Further, as mentioned in the commit acafce48b07b ("firmware: arm_sdei: > Fix DT

Re: [PATCH] arm64/cpuinfo: Move device_initcall() near cpuinfo_regs_init()

2020-05-04 Thread Will Deacon
On Mon, 4 May 2020 17:59:37 +0530, Anshuman Khandual wrote: > This moves device_initcall() near cpuinfo_regs_init() making the calling > sequence clear. Besides it is a standard practice to have device_initcall() > (any __initcall for that matter) just after the function it actually calls. > >

Re: [PATCH net] net: dsa: Do not leave DSA master with NULL netdev_ops

2020-05-04 Thread Florian Fainelli
On 5/4/2020 1:49 PM, Vladimir Oltean wrote: > On Mon, 4 May 2020 at 23:40, Florian Fainelli wrote: >> >> >> >> On 5/4/2020 1:34 PM, Vladimir Oltean wrote: >>> Hi Florian, >>> >>> On Mon, 4 May 2020 at 23:19, Florian Fainelli wrote: When ndo_get_phys_port_name() for the CPU port was

Re: [PATCH v7 4/7] OPP: Add support for parsing interconnect bandwidth

2020-05-04 Thread Sibi Sankar
Hey Georgi, Apart from the Matthias's comments ran into a few issues during testing. On 2020-04-24 21:24, Georgi Djakov wrote: The OPP bindings now support bandwidth values, so add support to parse it from device tree and store it into the new dev_pm_opp_icc_bw struct, which is part of the

Re: [PATCH V2 00/11] Subject: Remove duplicated kmap code

2020-05-04 Thread Al Viro
On Mon, May 04, 2020 at 01:17:41PM -0700, Ira Weiny wrote: > > || * arm: much, much worse. We have several files that pull > > linux/highmem.h: > > || arch/arm/mm/cache-feroceon-l2.c, arch/arm/mm/cache-xsc3l2.c, > > || arch/arm/mm/copypage-*.c, arch/arm/mm/dma-mapping.c, arch/arm/mm/flush.c, >

Re: [PATCH v7 6/7] OPP: Update the bandwidth on OPP frequency changes

2020-05-04 Thread Saravana Kannan
On Sun, May 3, 2020 at 10:00 PM Viresh Kumar wrote: > > On 30-04-20, 09:32, Saravana Kannan wrote: > > You are missing the point. This is not about aggregation. This is > > about OPP voting for bandwidth on a path when the vote can/should be > > 0. > > > > I'll give another example. Say one of

Re: [PATCH] platform/chrome: cros_usbpd_logger: Add __printf annotation to append_str()

2020-05-04 Thread Benson Leung
Hi Enric, On Tue, Apr 14, 2020 at 10:12:39PM +0200, Enric Balletbo i Serra wrote: > This allows the compiler to verify the format strings vs the types of > the arguments. Also, silence the warning (triggered by W=1): > > cros_usbpd_logger.c:55:2: warning: function ‘append_str’ might be a >

Re: [PATCH] platform/chrome: cros_ec_i2c: Appease the kernel-doc deity

2020-05-04 Thread Benson Leung
Hi Enric, On Tue, Apr 14, 2020 at 10:13:13PM +0200, Enric Balletbo i Serra wrote: > Replace a comment starting with /** by simply /* to avoid having > it interpreted as a kernel-doc comment. > > Signed-off-by: Enric Balletbo i Serra Applied for chrome-platform-5.8. You'll find it in the

Re: [PATCH v7 3/7] interconnect: Add of_icc_get_by_index() helper function

2020-05-04 Thread Sibi Sankar
On 2020-04-24 21:24, Georgi Djakov wrote: This is the same as the traditional of_icc_get() function, but the difference is that it takes index as an argument, instead of name. Reviewed-by: Sibi Sankar Signed-off-by: Georgi Djakov --- v7: * Addressed review comments from Sibi. * Re-based

Re: [PATCH v2] of: Documentation: change overlay example to use current syntax

2020-05-04 Thread Rob Herring
On Mon, Jan 27, 2020 at 06:37:18PM -0600, frowand.l...@gmail.com wrote: > From: Frank Rowand > > The overlay implementation details in the compiled (DTB) file are > now properly implemented by the dtc compiler and should no longer > be hard coded in the source file. > > Signed-off-by: Frank

Re: [PATCH] drm/amd/display: remove unused variable 'ret' in dm_suspend()

2020-05-04 Thread Alex Deucher
Applied. Thanks! Alex On Mon, May 4, 2020 at 9:20 AM Jason Yan wrote: > > Fix the following coccicheck warning: > > drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c:1574:5-8: Unneeded > variable: "ret". Return "0" on line 1586 > > Signed-off-by: Jason Yan > --- >

Re: [PATCH v2 1/2] i2c: tegra: Better handle case where CPU0 is busy for a long time

2020-05-04 Thread Dmitry Osipenko
04.05.2020 18:42, Thierry Reding пишет: > On Sat, May 02, 2020 at 05:40:35PM +0300, Dmitry Osipenko wrote: >> 27.04.2020 18:31, Wolfram Sang пишет: >>> Yes, that bug should be fixed anyway. But that doesn't justify breaking suspend/resume completely, which *is* a regression.

Re: [PATCH v7 6/7] OPP: Update the bandwidth on OPP frequency changes

2020-05-04 Thread Sibi Sankar
On 2020-04-24 21:24, Georgi Djakov wrote: If the OPP bandwidth values are populated, we want to switch also the interconnect bandwidth in addition to frequency and voltage. https://patchwork.kernel.org/patch/11527571/ Scaling from set_rate or using ^^ to set bw levels, I'm fine with both.

Re: [PATCH v1 2/3] pstore/ram: allow to dump kmesg during regular reboot

2020-05-04 Thread Kees Cook
On Mon, May 04, 2020 at 04:30:52PM -0400, Pavel Tatashin wrote: > > > -static void pstore_register_kmsg(void) > > > +static void pstore_register_kmsg(int dmesg_all) > > > { > > > + if (dmesg_all) > > > + pstore_dumper.max_reason = KMSG_DUMP_MAX; > > > > So, I'd like to avoid any

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