Re: [RFC][PATCH v2 00/21] x86/pti: Defer CR3 switch to C code

2020-11-17 Thread Borislav Petkov
On Tue, Nov 17, 2020 at 08:02:51PM +0100, Alexandre Chartre wrote: > No. This prevents the guest VM from gathering data from the host > kernel on the same cpu-thread. But there's no mitigation for a guest > VM running on a cpu-thread attacking another cpu-thread (which can be > running another gues

Re: [PATCH 2/8] Revert "rtc: sc27xx: Always read normal alarm when registering RTC device"

2020-11-17 Thread Alexandre Belloni
On 09/11/2020 17:34:03+0100, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > This reverts commit 3822d1bb0df18aa28930f19bc46e0704aea1be0f. > > The registered field in struct rtc_device is not supposed to be used by > drivers and is going to be removed soon. In this function it will be

Re: [PATCH 2/2] kernel-doc: Handle function typedefs without asterisks

2020-11-17 Thread Eduardo Habkost
On Fri, Nov 13, 2020 at 10:39:12PM +, Matthew Wilcox wrote: > On Fri, Nov 13, 2020 at 03:21:06PM -0700, Jonathan Corbet wrote: > > On Fri, 30 Oct 2020 15:47:13 +0100 > > Paolo Bonzini wrote: > > > > > From: Eduardo Habkost > > > > > > Example of typedef that was not parsed by kernel-doc: >

Re: [RFC][PATCH v2 00/21] x86/pti: Defer CR3 switch to C code

2020-11-17 Thread Borislav Petkov
On Tue, Nov 17, 2020 at 07:12:07PM +0100, Alexandre Chartre wrote: > Some benchmarks are available, in particular from phoronix: What I was expecting was benchmarks *you* have run which show that perf penalty, not something one can find quickly on the internet and something one cannot always repro

Re: [RFC PATCH 3/6] mm: page_owner: add support for splitting to any order in split page_owner.

2020-11-17 Thread Zi Yan
On 17 Nov 2020, at 16:22, Matthew Wilcox wrote: > On Tue, Nov 17, 2020 at 04:12:03PM -0500, Zi Yan wrote: >> On 17 Nov 2020, at 16:05, Matthew Wilcox wrote: >> >>> On Fri, Nov 13, 2020 at 05:38:01PM -0800, Roman Gushchin wrote: On Fri, Nov 13, 2020 at 08:08:58PM -0500, Zi Yan wrote: > Mat

Re: [PATCH v2 1/3] genirq/affinity: Add irq_update_affinity_desc()

2020-11-17 Thread Thomas Gleixner
On Mon, Nov 02 2020 at 21:35, Thomas Gleixner wrote: > On Mon, Nov 02 2020 at 17:32, John Garry wrote: > Correct. I have a halfways working solution for that, but I need to fix > some other thing first. Sorry for the delay. Supporting this truly on x86 needs some more thought and surgery, but for

Re: [PATCH 04/24] x86/resctrl: Add a separate schema list for resctrl

2020-11-17 Thread Reinette Chatre
Hi James, On 10/30/2020 9:11 AM, James Morse wrote: To support multiple architectures, the resctrl code needs to be split into a 'fs' specific part in core code, and an arch-specific backend. It should be difficult for the arch-specific backends to diverge, supporting slightly different ABIs fo

Re: [PATCH v41 20/24] selftests/x86: Add a selftest for SGX

2020-11-17 Thread Jarkko Sakkinen
On Tue, Nov 17, 2020 at 06:26:50PM +0100, Borislav Petkov wrote: > On Fri, Nov 13, 2020 at 12:01:31AM +0200, Jarkko Sakkinen wrote: > > +bool encl_load(const char *path, struct encl *encl) > > +{ > > + Elf64_Phdr *phdr_tbl; > > + off_t src_offset; > > + Elf64_Ehdr *ehdr; > > + int i, j; > >

Re: [PATCH 2/2] kernel-doc: Handle function typedefs without asterisks

2020-11-17 Thread Matthew Wilcox
On Tue, Nov 17, 2020 at 04:24:52PM -0500, Eduardo Habkost wrote: > On Fri, Nov 13, 2020 at 10:39:12PM +, Matthew Wilcox wrote: > > Better ... can we have a test suite for the regexes and make patches to > > them include updates to the test suite? They have clearly passed the > > point of human

Re: [PATCH v4] Add power/gpu_frequency tracepoint.

2020-11-17 Thread Peiyong Lin
On Thu, Oct 22, 2020 at 10:34 AM Peiyong Lin wrote: > > Historically there is no common trace event for GPU frequency, in > downstream Android each different hardware vendor implements their own > way to expose GPU frequency, for example as a debugfs node. This patch > standardize it as a common

Re: [RFC PATCH 3/6] mm: page_owner: add support for splitting to any order in split page_owner.

2020-11-17 Thread Roman Gushchin
On Tue, Nov 17, 2020 at 09:22:55PM +, Matthew Wilcox wrote: > On Tue, Nov 17, 2020 at 04:12:03PM -0500, Zi Yan wrote: > > On 17 Nov 2020, at 16:05, Matthew Wilcox wrote: > > > > > On Fri, Nov 13, 2020 at 05:38:01PM -0800, Roman Gushchin wrote: > > >> On Fri, Nov 13, 2020 at 08:08:58PM -0500, Z

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

2020-11-17 Thread Scott Branden
Hi Florian, On 2020-10-02 6:39 p.m., Florian Fainelli wrote: > > > On 10/2/2020 2:23 PM, Scott Branden wrote: >> Add BCM_VK_QSTATS Kconfig option to allow for enabling debug VK >> queue statistics. >> >> These statistics keep track of max, abs_max, and average for the >> messages queues. >> >> Co-

Re: [PATCH] tracepoint: Do not fail unregistering a probe due to memory allocation

2020-11-17 Thread Kees Cook
On Mon, Nov 16, 2020 at 05:51:07PM -0500, Steven Rostedt wrote: > [ Kees, I added you because you tend to know about these things. > Is it OK to assign a void func(void) that doesn't do anything and returns > nothing to a function pointer that could be call with parameters? We need > to add s

Re: [PATCH] selftests/seccomp: sh: Fix register names

2020-11-17 Thread Kees Cook
On Tue, Nov 17, 2020 at 10:08:13PM +0100, John Paul Adrian Glaubitz wrote: > Hi Kees! > > On 11/17/20 9:56 PM, Kees Cook wrote: > > It looks like the seccomp selftests were never actually built for sh. > > This fixes it, though I don't have an environment to do a runtime test > > of it yet. > > W

Re: [PATCH 7/8] rtc: rework rtc_register_device() resource management

2020-11-17 Thread Alexandre Belloni
On 09/11/2020 17:34:08+0100, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > rtc_register_device() is a managed interface but it doesn't use devres > by itself - instead it marks an rtc_device as "registered" and the devres > callback for devm_rtc_allocate_device() takes care of resour

Re: [PATCH v41 20/24] selftests/x86: Add a selftest for SGX

2020-11-17 Thread Jarkko Sakkinen
On Tue, Nov 17, 2020 at 06:26:50PM +0100, Borislav Petkov wrote: > On Fri, Nov 13, 2020 at 12:01:31AM +0200, Jarkko Sakkinen wrote: > > +bool encl_load(const char *path, struct encl *encl) > > +{ > > + Elf64_Phdr *phdr_tbl; > > + off_t src_offset; > > + Elf64_Ehdr *ehdr; > > + int i, j; > >

Re: [PATCH net-next RFC] net: wan: Delete the DLCI / SDLA drivers

2020-11-17 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Sat, 14 Nov 2020 07:09:21 -0800 you wrote: > The DLCI driver (dlci.c) implements the Frame Relay protocol. However, > we already have another newer and better implementation of Frame Relay > provided by the HDLC_FR drive

[PATCH net-next v1] ptp: document struct ptp_clock_request members

2020-11-17 Thread Ahmad Fatoum
It's arguable most people interested in configuring a PPS signal want it as external output, not as kernel input. PTP_CLK_REQ_PPS is for input though. Add documentation to nudge readers into the correct direction. Signed-off-by: Ahmad Fatoum --- Prompted by Richard's comment here: https://lore.ke

Re: [RFC PATCH 3/6] mm: page_owner: add support for splitting to any order in split page_owner.

2020-11-17 Thread Matthew Wilcox
On Tue, Nov 17, 2020 at 01:35:37PM -0800, Roman Gushchin wrote: > On Tue, Nov 17, 2020 at 09:22:55PM +, Matthew Wilcox wrote: > > On Tue, Nov 17, 2020 at 04:12:03PM -0500, Zi Yan wrote: > > > On 17 Nov 2020, at 16:05, Matthew Wilcox wrote: > > > > > > > On Fri, Nov 13, 2020 at 05:38:01PM -0800

Re: [PATCH] selftests/seccomp: sh: Fix register names

2020-11-17 Thread John Paul Adrian Glaubitz
On 11/17/20 10:35 PM, Kees Cook wrote: >> We were testing libsecomp itself but I think we might have forgotten the >> self-test. Not sure how these are run. > > If you're building natively, you can just build and run: > > cd tools/testing/selftests/seccomp > make > ./seccomp_bpf Thanks, I'll giv

Re: [PATCH net] cfg80211: fix callback type mismatches in wext-compat

2020-11-17 Thread Kees Cook
On Tue, Nov 17, 2020 at 12:59:02PM -0800, Sami Tolvanen wrote: > Instead of casting callback functions to type iw_handler, which trips > indirect call checking with Clang's Control-Flow Integrity (CFI), add > stub functions with the correct function type for the callbacks. Oh, wow. iw_handler with

Re: [RFC PATCH 1/9] cxl/acpi: Add an acpi_cxl module for the CXL interconnect

2020-11-17 Thread Dan Williams
On Tue, Nov 17, 2020 at 6:33 AM Rafael J. Wysocki wrote: [..] > > +static struct acpi_driver acpi_cxl_driver = { > > First of all, no new acpi_driver instances, pretty please! > > acpi_default_enumeration() should create a platform device with the > ACPI0017 ID for you. Can't you provide a driver

Re: [PATCH 05/24] x86/resctrl: Pass the schema in resdir's private pointer

2020-11-17 Thread Reinette Chatre
Hi James, It is not clear what "resdir" mentioned in subject line refers to. Could it be changed to "info dir"? On 10/30/2020 9:11 AM, James Morse wrote: Moving properties that resctrl exposes to user-space into the core 'fs' code, (e.g. the name of the schema), means some of the functions t

[tip:x86/urgent] BUILD SUCCESS 1a371e67dc77125736cc56d3a0893f06b75855b6

2020-11-17 Thread kernel test robot
randconfig-a006-20201117 i386 randconfig-a005-20201117 i386 randconfig-a001-20201117 i386 randconfig-a002-20201117 i386 randconfig-a004-20201117 i386 randconfig-a003-20201117 i386

Re: [PATCH 2/2] kbuild: Disable CONFIG_LD_ORPHAN_WARN for ld.lld 10.0.1

2020-11-17 Thread Kees Cook
On Fri, Nov 13, 2020 at 12:55:53PM -0700, Nathan Chancellor wrote: > config LD_ORPHAN_WARN > - def_bool ARCH_WANT_LD_ORPHAN_WARN && $(ld-option,--orphan-handling=warn) > + def_bool ARCH_WANT_LD_ORPHAN_WARN && > $(ld-option,--orphan-handling=warn) && (!LD_IS_LLD || LLD_VERSION >= 11)

Re: [PATCH 1/2] kbuild: Hoist '--orphan-handling' into Kconfig

2020-11-17 Thread Kees Cook
On Fri, Nov 13, 2020 at 12:55:52PM -0700, Nathan Chancellor wrote: > Currently, '--orphan-handling=warn' is spread out across four different > architectures in their respective Makefiles, which makes it a little > unruly to deal with in case it needs to be disabled for a specific > linker version (

Re: [PATCH v11 08/16] PCI/ERR: Use "bridge" for clarity in pcie_do_recovery()

2020-11-17 Thread Kuppuswamy, Sathyanarayanan
On 11/17/20 11:19 AM, Sean V Kelley wrote: pcie_do_recovery() may be called with "dev" being either a bridge (Root Port or Switch Downstream Port) or an Endpoint. The bulk of the function deals with the bridge, so if we start with an Endpoint, we reset "dev" to be the bridge leading to it. F

Re: [PATCH v11 07/16] PCI/ERR: Simplify by computing pci_pcie_type() once

2020-11-17 Thread Kuppuswamy, Sathyanarayanan
Hi, On 11/17/20 11:19 AM, Sean V Kelley wrote: Instead of calling pci_pcie_type(dev) twice, call it once and save the result. No functional change intended. Same optimization can be applied to drivers/pci/pcie/portdrv_pci.c and drivers/pci/pcie/aer.c. Can you fix them together ? [bhelgaas

Re: [PATCH v4 net-next 00/13] Add ethtool ntuple filters support

2020-11-17 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (refs/heads/master): On Sun, 15 Nov 2020 01:22:50 +0530 you wrote: > This patch series adds support for ethtool ntuple filters, unicast > address filtering, VLAN offload and SR-IOV ndo handlers. All of the > above features are based on the Adm

Re: [PATCH v11 09/16] PCI/ERR: Avoid negated conditional for clarity

2020-11-17 Thread Kuppuswamy, Sathyanarayanan
On 11/17/20 11:19 AM, Sean V Kelley wrote: Reverse the sense of the Root Port/Downstream Port conditional for clarity. No functional change intended. [bhelgaas: split to separate patch] Link: https://lore.kernel.org/r/20201002184735.1229220-6-seanvk@oregontracks.org Signed-off-by: Sean V

Re: [PATCH v9 01/17] memory: tegra30: Support interconnect framework

2020-11-17 Thread Dmitry Osipenko
17.11.2020 23:24, Georgi Djakov пишет: > Hi Dmitry, > > Thank you working on this! > > On 15.11.20 23:29, Dmitry Osipenko wrote: >> Now Internal and External memory controllers are memory interconnection >> providers. This allows us to use interconnect API for tuning of memory >> configuration. E

Re: [PATCH 5.9 000/255] 5.9.9-rc1 review

2020-11-17 Thread Shuah Khan
On 11/17/20 6:02 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.9.9 release. There are 255 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made

Re: [PATCH 06/24] x86/resctrl: Store the effective num_closid in the schema

2020-11-17 Thread Reinette Chatre
Hi James, On 10/30/2020 9:11 AM, James Morse wrote: resctrl_schema holds properties that vary with the style of configuration that resctrl applies to a resource. Once the arch code has a single resource per cache that can be configured, resctrl will need to keep track of the num_closid itself.

Re: [PATCH 5.4 000/151] 5.4.78-rc1 review

2020-11-17 Thread Shuah Khan
On 11/17/20 6:03 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.4.78 release. There are 151 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made

Re: [PATCH 4.19 000/101] 4.19.158-rc1 review

2020-11-17 Thread Shuah Khan
On 11/17/20 6:04 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.19.158 release. There are 101 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be ma

Re: [PATCH 3/4] s5p-mfc: Use display delay and display enable std controls

2020-11-17 Thread Marek Szyprowski
On 09.11.2020 18:35, Stanimir Varbanov wrote: > Use the standard display_delay and display_delay_enable controls, > the legacy private MFC controls are kept for backward compatibility. > > Signed-off-by: Stanimir Varbanov Acked-by: Marek Szyprowski > --- > drivers/media/platform/s5p-mfc/s5p_mfc

Re: [PATCH 4.9 00/78] 4.9.244-rc1 review

2020-11-17 Thread Shuah Khan
On 11/17/20 6:04 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.9.244 release. There are 78 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made

Re: [PATCH 3/6] ibmvfc: add new fields for version 2 of several MADs

2020-11-17 Thread Brian King
On 11/11/20 7:04 PM, Tyrel Datwyler wrote: > @@ -211,7 +214,9 @@ struct ibmvfc_npiv_login_resp { > __be64 capabilities; > #define IBMVFC_CAN_FLUSH_ON_HALT 0x08 > #define IBMVFC_CAN_SUPPRESS_ABTS 0x10 > -#define IBMVFC_CAN_SUPPORT_CHANNELS 0x20 > +#define IBMVFC_MAD_VERSION_CAP

Re: [PATCH net] cfg80211: fix callback type mismatches in wext-compat

2020-11-17 Thread Sami Tolvanen
On Tue, Nov 17, 2020 at 1:45 PM Kees Cook wrote: > > On Tue, Nov 17, 2020 at 12:59:02PM -0800, Sami Tolvanen wrote: > > Instead of casting callback functions to type iw_handler, which trips > > indirect call checking with Clang's Control-Flow Integrity (CFI), add > > stub functions with the correc

[PATCH 1/4] dt-bindings: hwmon: convert TI INA2xx bindings to dt-schema

2020-11-17 Thread Krzysztof Kozlowski
Convert the TI INA2xx bindings to dt-schema. Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/hwmon/ina2xx.txt | 24 .../devicetree/bindings/hwmon/ti,ina2xx.yaml | 55 +++ MAINTAINERS | 2 +- 3 files changed, 56 inse

[PATCH] net: ipv4: fixed a brace coding style issue

2020-11-17 Thread Armin Gholampoor
Fixed bracing style issue. Signed-off-by: Armin Gholampoor --- net/ipv4/tcp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index b2bc3d7fe..37bc91e4a 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -3170,8 +3170,7 @@ static int do_tcp_

[PATCH 3/4] dt-bindings: hwmon: convert TI ADS7828 bindings to dt-schema

2020-11-17 Thread Krzysztof Kozlowski
Convert the TI ADS7828 bindings to dt-schema. Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/hwmon/ads7828.txt | 25 .../devicetree/bindings/hwmon/ti,ads7828.yaml | 57 +++ .../devicetree/bindings/trivial-devices.yaml | 4 -- 3 files changed, 57 ins

[PATCH 4/4] dt-bindings: hwmon: convert AD ADM1275 bindings to dt-schema

2020-11-17 Thread Krzysztof Kozlowski
Convert the Analog Devices ADM1275 bindings to dt-schema. Signed-off-by: Krzysztof Kozlowski --- .../bindings/hwmon/adi,adm1275.yaml | 58 +++ .../devicetree/bindings/hwmon/adm1275.txt | 25 Documentation/hwmon/adm1275.rst | 2 +- 3 files cha

[PATCH 2/4] dt-bindings: hwmon: convert AD AD741x bindings to dt-schema

2020-11-17 Thread Krzysztof Kozlowski
Convert the Analog Devices AD741x bindings to dt-schema. Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/hwmon/ad741x.txt | 15 --- .../devicetree/bindings/hwmon/adi,ad741x.yaml | 39 +++ 2 files changed, 39 insertions(+), 15 deletions(-) delete mode 1006

Re: [PATCH rfc] workqueue: honour cond_resched() more effectively.

2020-11-17 Thread NeilBrown
On Mon, Nov 09 2020, t...@kernel.org wrote: > Hello, > > On Mon, Nov 09, 2020 at 02:11:42PM +, Trond Myklebust wrote: >> That means changing all filesystem code to use cpu-intensive queues. As >> far as I can tell, they all use workqueues (most of them using the >> standard system queue) for f

Re: [PATCH 2/3] Revert "lib: Revert use of fallthrough pseudo-keyword in lib/"

2020-11-17 Thread Gustavo A. R. Silva
On Tue, Nov 17, 2020 at 11:10:26AM -0800, Nick Desaulniers wrote: > On Mon, Nov 16, 2020 at 7:02 PM Nathan Chancellor > wrote: > > > > On Sun, Nov 15, 2020 at 08:35:31PM -0800, Nick Desaulniers wrote: > > > This reverts commit 6a9dc5fd6170 ("lib: Revert use of fallthrough > > > pseudo-keyword in l

Re: [PATCH] tracepoint: Do not fail unregistering a probe due to memory allocation

2020-11-17 Thread Steven Rostedt
On Tue, 17 Nov 2020 16:22:23 -0500 (EST) Mathieu Desnoyers wrote: > If we don't call the stub, then there is no point in having the stub at > all, and we should just compare to a constant value, e.g. 0x1UL. As far > as I can recall, comparing with a small immediate constant is more efficient > th

Re: [PATCH] tracepoint: Do not fail unregistering a probe due to memory allocation

2020-11-17 Thread Steven Rostedt
On Tue, 17 Nov 2020 13:33:42 -0800 Kees Cook wrote: > As I think got discussed in the thread, what you had here wouldn't work > in a CFI build if the function prototype of the call site and the > function don't match. (Though I can't tell if .func() is ever called?) > > i.e. .func's prototype mu

Re: [PATCH v4 00/27]Fix several bad kernel-doc markups

2020-11-17 Thread Jakub Kicinski
On Mon, 16 Nov 2020 11:17:56 +0100 Mauro Carvalho Chehab wrote: > Kernel-doc has always be limited to a probably bad documented > rule: > > The kernel-doc markups should appear *imediatelly before* the > function or data structure that it documents. Applied 1-3 to net-next, thanks!

Re: [PATCH 4/6] ibmvfc: add FC payload retrieval routines for versioned vfcFrames

2020-11-17 Thread Brian King
On 11/17/20 4:14 PM, Brian King wrote: > On 11/11/20 7:04 PM, Tyrel Datwyler wrote: >> The FC iu and response payloads are located at different offsets >> depending on the ibmvfc_cmd version. This is a result of the version 2 >> vfcFrame definition adding an extra 64bytes of reserved space to the >

Re: [PATCH v1] Bluetooth: btqca: Add support to read FW build version for WCN3991 BTSoC

2020-11-17 Thread kernel test robot
Hi Venkata, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on bluetooth-next/master] [also build test WARNING on linux/master linus/master bluetooth/master v5.10-rc4 next-20201117] [If your patch is applied to the wrong git tree, kindly drop us a note. And when

Re: IOMMU Maintainership

2020-11-17 Thread Will Deacon
On Tue, Nov 17, 2020 at 11:09:53AM +0100, Joerg Roedel wrote: > Luckily Will Deacon volunteered to handle incoming IOMMU patches and > send them upstream. So please Cc him on any patches that you want to > have merged upstream for the next release and on important fixes for > v5.10. The patches wil

Ping(3): [PATCH v4] : Add nitems()

2020-11-17 Thread Alejandro Colomar
Hi, Do you think the patch is ready, or is there anything else I should do before merging it? Thanks, Alex On 9/28/20 9:12 PM, Alejandro Colomar wrote: > 'nitems()' calculates the length of an array in number of items. > It is safe: if a pointer is passed to the macro (or function, in C++), > t

Re: [PATCH 6/6] ibmvfc: advertise client support for targetWWPN using v2 commands

2020-11-17 Thread Brian King
Everything else in this series looks OK to me. Thanks, Brian -- Brian King Power Linux I/O IBM Linux Technology Center

Re: [GIT PULL] iommu/arm-smmu: First batch of updates for 5.11

2020-11-17 Thread Will Deacon
On Tue, Nov 10, 2020 at 01:56:57PM +, Will Deacon wrote: > Please can you pull these Arm SMMU updates for 5.11 so that they can get > into -next? I think Bjorn is keen to get a bunch of DT updates moving, so > the sooner we can get this lot out there, the better. Summary in the tag. > > There

Re: [PATCH v6 1/2] dt-bindings: leds: Add bindings for MT6360 LED

2020-11-17 Thread Jacek Anaszewski
Hi Gene, Thank you for the patch. On 11/17/20 11:55 AM, Gene Chen wrote: From: Gene Chen Add bindings document for LED support on MT6360 PMIC Signed-off-by: Gene Chen --- .../devicetree/bindings/leds/leds-mt6360.yaml | 114 + 1 file changed, 114 insertions(+) c

Re: [PATCH v6 2/2] leds: mt6360: Add LED driver for MT6360

2020-11-17 Thread Jacek Anaszewski
Hi Gene, On 11/17/20 11:55 AM, Gene Chen wrote: From: Gene Chen Add MT6360 LED driver include 2-channel Flash LED with torch/strobe mode, 3-channel RGB LED support Register/Flash/Breath Mode, and 1-channel for moonlight LED. Signed-off-by: Gene Chen --- drivers/leds/Kconfig | 13 +

Re: [PATCH 1/3] x86/quirks: Scan all busses for early PCI quirks

2020-11-17 Thread Eric W. Biederman
Thomas Gleixner writes: > On Tue, Nov 17 2020 at 12:19, David Woodhouse wrote: >> On Tue, 2020-11-17 at 10:53 +0100, Thomas Gleixner wrote: >>> But that does not solve the problem either simply because then the IOMMU >>> will catch the rogue MSIs and you get an interrupt storm on the IOMMU >>> er

Re: [PATCH] cxbgb4: Fix build failure when CHELSIO_TLS_DEVICE=n

2020-11-17 Thread Jakub Kicinski
On Sun, 15 Nov 2020 20:31:40 -0600 Tom Seewald wrote: > After commit 9d2e5e9eeb59 ("cxgb4/ch_ktls: decrypted bit is not enough") > building the kernel with CHELSIO_T4=y and CHELSIO_TLS_DEVICE=n results > in the following error: > > ld: drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.o: in function >

Re: [PATCH 07/24] x86/resctrl: Label the resources with their configuration type

2020-11-17 Thread Reinette Chatre
Hi James, On 10/30/2020 9:11 AM, James Morse wrote: Before the name for the schema can be generated, the type of the configuration being applied to the resource needs to be known. Label all the entries in rdt_resources_all[], and copy that value in to struct s/in to/into/ or s/in to/to/ ? re

Re: [PATCH 2/3] Revert "lib: Revert use of fallthrough pseudo-keyword in lib/"

2020-11-17 Thread Nick Desaulniers
On Tue, Nov 17, 2020 at 2:16 PM Gustavo A. R. Silva wrote: > > I'm happy to take this series in my tree. I'm planing to send a > pull-request for -rc5 with more related changes. So, I can include > this in the same PR. > > In the meantime I'll add this to my testing tree, so it can be > build-tes

Re: [PATCH 1/3] powerpc: boot: include compiler_attributes.h

2020-11-17 Thread Arvind Sankar
On Sun, Nov 15, 2020 at 08:35:30PM -0800, Nick Desaulniers wrote: > The kernel uses `-include` to include include/linux/compiler_types.h > into all translation units (see scripts/Makefile.lib), which #includes > compiler_attributes.h. > > arch/powerpc/boot/ uses different compiler flags from the r

Re: [PATCH 4/6] ibmvfc: add FC payload retrieval routines for versioned vfcFrames

2020-11-17 Thread Brian King
On 11/11/20 7:04 PM, Tyrel Datwyler wrote: > The FC iu and response payloads are located at different offsets > depending on the ibmvfc_cmd version. This is a result of the version 2 > vfcFrame definition adding an extra 64bytes of reserved space to the > structure prior to the payloads. > > Add h

[RFC PATCH] treewide: remove bzip2 compression support

2020-11-17 Thread Alex Xu (Hello71)
bzip2 is either slower or larger than every other supported algorithm, according to benchmarks at [0]. It is far slower to decompress than any other algorithm, and still larger than lzma, xz, and zstd. [0] https://lore.kernel.org/lkml/1588791882.08g1378g67.none@localhost/ Signed-off-by: Alex Xu (

[RFC] Add kernel-doc test script

2020-11-17 Thread Eduardo Habkost
Add a kernel-doc test script to tools/testing/kernel-doc. radix_tree_lookup_slot test case provided by Matthew Wilcox. Signed-off-by: Eduardo Habkost --- tools/testing/kernel-doc/test-case.h | 111 ++ .../testing/kernel-doc/test-case.man.expected | 150 ++ .../kerne

Re: [PATCH net-next v1] lan743x: replace devicetree phy parse code with library function

2020-11-17 Thread Sven Van Asbroeck
On Tue, Nov 17, 2020 at 1:47 PM Jakub Kicinski wrote: > > On Tue, 17 Nov 2020 03:09:56 +0100 Andrew Lunn wrote: > > Reviewed-by: Andrew Lunn > Applied, thanks! Thank you Andrew and Jakub !

RE: [PATCH v2 7/8] usb: typec: intel_pmc_mux: Configure active cable properties for USB4

2020-11-17 Thread Patel, Utkarsh H
Hi Heikki, > -Original Message- > From: Heikki Krogerus > Sent: Tuesday, November 17, 2020 4:22 AM > To: Patel, Utkarsh H > Cc: linux-kernel@vger.kernel.org; linux-...@vger.kernel.org; > pmal...@chromium.org; enric.balle...@collabora.com; Mani, Rajmohan > ; Shaikh, Azhar > Subject: Re:

Re: [PATCH] ASoC: fsl: SND_SOC_FSL_AUD2HTX should depend on ARCH_MXC

2020-11-17 Thread Mark Brown
On Tue, 10 Nov 2020 15:51:20 +0100, Geert Uytterhoeven wrote: > The Freescale/NXP AUDIO TO HDMI TX module is only present on NXP i.MX 8 > Series SoCs. Hence add a dependency on ARCH_MXC, to prevent asking the > user about this driver when configuring a kernel without i.MX 8 platform > support. Ap

Re: [PATCH] ASoC: Fix 7/8 spaces indentation in Kconfig

2020-11-17 Thread Mark Brown
On Tue, 10 Nov 2020 18:49:04 +0100, Geert Uytterhoeven wrote: > Some entries used 7 or 8 spaces instead if a single TAB. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: Fix 7/8 spaces indentation in Kconfig commit: 5268e0bf7123c

Re: [PATCH v2] dt-bindings: adau1977: convert text binding to yaml format

2020-11-17 Thread Mark Brown
On Tue, 10 Nov 2020 10:47:54 +0200, Alexandru Ardelean wrote: > This change converts the old device-tree binding for ADAU1977 from text > format to the new yaml format. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: adau1977: convert

Re: [PATCH] ASoC: intel: SND_SOC_INTEL_KEEMBAY should depend on ARCH_KEEMBAY

2020-11-17 Thread Mark Brown
On Tue, 10 Nov 2020 15:50:01 +0100, Geert Uytterhoeven wrote: > The Intel Keem Bay audio module is only present on Intel Keem Bay SoCs. > Hence add a dependency on ARCH_KEEMBAY, to prevent asking the user about > this driver when configuring a kernel without Intel Keem Bay platform > support. Appl

Re: [PATCH] ASoc: adi: Kconfig: Remove depends on for ADI reference designs

2020-11-17 Thread Mark Brown
On Tue, 10 Nov 2020 17:22:13 +0200, Alexandru Ardelean wrote: > Audio ADI reference designs are also used on some ZynqMP boards, and can > also be used on Intel FPGA boards and also on some more complex FPGA > combinations (FPGA cards connected through PCIe). > > This change removes the dependency

Re: [PATCH] spi: dw: Set transfer handler before unmasking the IRQs

2020-11-17 Thread Mark Brown
On Tue, 17 Nov 2020 12:40:54 +0300, Serge Semin wrote: > It turns out the IRQs most like can be unmasked before the controller is > enabled with no problematic consequences. The manual doesn't explicitly > state that, but the examples perform the controller initialization > procedure in that order.

Re: [PATCH v11 02/16] PCI/RCEC: Add RCEC class code and extended capability

2020-11-17 Thread Kelley, Sean V
Hi Sathya, Thanks for reviewing > On Nov 17, 2020, at 12:07 PM, Kuppuswamy, Sathyanarayanan > wrote: > > Hi, > > On 11/17/20 11:19 AM, Sean V Kelley wrote: >> From: Qiuxu Zhuo >> A PCIe Root Complex Event Collector (RCEC) has base class 0x08, sub-class >> 0x07, and programming interface 0x00

Re: [PATCH bpf-next v3 1/2] bpf: Add bpf_lsm_set_bprm_opts helper

2020-11-17 Thread Daniel Borkmann
On 11/17/20 3:13 AM, KP Singh wrote: From: KP Singh The helper allows modification of certain bits on the linux_binprm struct starting with the secureexec bit which can be updated using the BPF_LSM_F_BPRM_SECUREEXEC flag. secureexec can be set by the LSM for privilege gaining executions to set

Re: [PATCH] iommu: fix return error code in iommu_probe_device()

2020-11-17 Thread Will Deacon
On Tue, Nov 17, 2020 at 07:11:28PM +0800, Yang Yingliang wrote: > On 2020/11/17 17:40, Lu Baolu wrote: > > On 2020/11/17 10:52, Yang Yingliang wrote: > > > If iommu_group_get() failed, it need return error code > > > in iommu_probe_device(). > > > > > > Fixes: cf193888bfbd ("iommu: Move new probe_

Re: [PATCH v3 00/14] iommu/amd: Add Generic IO Page Table Framework Support

2020-11-17 Thread Will Deacon
Hey Suravee (it's been a while!), On Fri, Nov 13, 2020 at 12:57:18PM +0700, Suravee Suthikulpanit wrote: > Please ignore to include the V3. I am working on V4 to resubmit. Please can you put me on CC for that? Thanks, Will

Re: [PATCH v11 07/16] PCI/ERR: Simplify by computing pci_pcie_type() once

2020-11-17 Thread Kelley, Sean V
Hi Sathya, > On Nov 17, 2020, at 1:58 PM, Kuppuswamy, Sathyanarayanan > wrote: > > Hi, > > On 11/17/20 11:19 AM, Sean V Kelley wrote: >> Instead of calling pci_pcie_type(dev) twice, call it once and save the >> result. No functional change intended. > > Same optimization can be applied to dr

Re: [PATCH bpf-next v3 2/2] bpf: Add tests for bpf_lsm_set_bprm_opts

2020-11-17 Thread Daniel Borkmann
On 11/17/20 3:13 AM, KP Singh wrote: [...] + +static int run_set_secureexec(int map_fd, int secureexec) +{ + ^ same here + int child_pid, child_status, ret, null_fd; + + child_pid = fork(); + if (child_pid == 0) { + null_fd = open("/dev/null", O_WRONLY); +

Re: Ping(3): [PATCH v4] : Add nitems()

2020-11-17 Thread Joseph Myers
I've asked the WG14 reflector why N2529 (and N2530, though that one's not relevant to this feature) doesn't seem to have made it onto a meeting agenda yet, when there have been two WG14 meetings since that proposal was made and a third one coming up. -- Joseph S. Myers jos...@codesourcery.com

Re: [PATCH RFC v2 3/5] net: stmmac: dwmac-meson8b: use picoseconds for the RGMII RX delay

2020-11-17 Thread Martin Blumenstingl
Hi Florian, On Tue, Nov 17, 2020 at 7:36 PM Florian Fainelli wrote: > > On 11/15/20 10:52 AM, Martin Blumenstingl wrote: > > Amlogic Meson G12A, G12B and SM1 SoCs have a more advanced RGMII RX > > delay register which allows picoseconds precision. Parse the new > > "amlogic,rgmii-rx-delay-ps" pro

Re: [PATCH] phy: amlogic: Replace devm_reset_control_array_get()

2020-11-17 Thread Martin Blumenstingl
Hi Yejune, On Tue, Nov 17, 2020 at 6:58 AM Yejune Deng wrote: > > devm_reset_control_array_get_exclusive() looks more readable > > Signed-off-by: Yejune Deng > --- > drivers/phy/amlogic/phy-meson-axg-pcie.c | 2 +- > drivers/phy/amlogic/phy-meson-g12a-usb3-pcie.c | 2 +- > drivers/soc/aml

Re: [Freedreno] [PATCH] drm/msm/dpu: Remove chatty vbif debug print

2020-11-17 Thread Stephen Boyd
Quoting abhin...@codeaurora.org (2020-11-17 12:34:56) > On 2020-11-17 09:26, Stephen Boyd wrote: > > I don't know what this debug print is for but it is super chatty, > > throwing 8 lines of debug prints in the logs every time we update a > > plane. It looks like it has no value. Let's nuke it so w

Re: [PATCH 08/24] x86/resctrl: Walk the resctrl schema list instead of an arch list

2020-11-17 Thread Reinette Chatre
Hi James, On 10/30/2020 9:11 AM, James Morse wrote: Now that resctrl has its own list of resources it is using, walk that list instead of the architectures list. This means resctrl has somewhere to keep schema properties with the resource that is using them. Most users of for_each_alloc_enabled

Re: [PATCH RFC v2 0/5] dwmac-meson8b: picosecond precision RX delay support

2020-11-17 Thread Martin Blumenstingl
Hi Kevin, On Sun, Nov 15, 2020 at 7:52 PM Martin Blumenstingl wrote: [...] > I have tested this on an X96 Air 4GB board (not upstream yet). [...] > Also I have tested this on a X96 Max board without any .dts changes can you please add this series to your testing branch? I am interested in feedba

Re: [PATCH 0/8] rtc: rework resource management

2020-11-17 Thread Alexandre Belloni
On Mon, 9 Nov 2020 17:34:01 +0100, Bartosz Golaszewski wrote: > As discussed: this is my take on RTC devres. The series does a couple things: > it adds missing documentation of managed RTC functions, adds the 'devm_' > prefix > to managed APIs, makes the rtc_device struct unaware of being managed

Re: [PATCH] iommu/amd: Enforce 4k mapping for certain IOMMU data structures

2020-11-17 Thread Will Deacon
On Wed, Oct 28, 2020 at 11:18:24PM +, Suravee Suthikulpanit wrote: > AMD IOMMU requires 4k-aligned pages for the event log, the PPR log, > and the completion wait write-back regions. However, when allocating > the pages, they could be part of large mapping (e.g. 2M) page. > This causes #PF due

Re: [PATCH] selftests/seccomp: sh: Fix register names

2020-11-17 Thread John Paul Adrian Glaubitz
On 11/17/20 9:56 PM, Kees Cook wrote: > It looks like the seccomp selftests were never actually built for sh. > This fixes it, though I don't have an environment to do a runtime test > of it yet. > > Fixes: 0bb605c2c7f2b4b3 ("sh: Add SECCOMP_FILTER") > Signed-off-by: Kees Cook > --- > tools/test

[GIT PULL] Kunit fixes update for Linux 5.10-rc5

2020-11-17 Thread Shuah Khan
Hi Linus, Please pull the following Kunit fixes update for Linux 5.10-rc5. This Kunit update for Linux 5.10-rc5 consists of several fixes Kunit documentation, tool, compile time fixes not pollute source directory, and fix to remove tools/testing/kunit/.gitattributes file. diff is attached. Bre

Re: [RFC PATCH v3 9/9] ipu3-cio2: Add functionality allowing software_node connections to sensors on platforms designed for Windows

2020-11-17 Thread Dan Scally
On 17/11/2020 16:42, Andy Shevchenko wrote: > On Tue, Nov 17, 2020 at 2:02 PM Dan Scally wrote: >> On 16/11/2020 16:16, Andy Shevchenko wrote: >>> On Mon, Nov 16, 2020 at 02:15:01PM +, Dan Scally wrote: On 16/11/2020 14:10, Laurent Pinchart wrote: > I thought we were looking for ACPI

Re: Ping(3): [PATCH v4] : Add nitems()

2020-11-17 Thread Alejandro Colomar
Hi Joseph, On 11/17/20 11:44 PM, Joseph Myers wrote: > I've asked the WG14 reflector why N2529 (and N2530, though that one's not > relevant to this feature) doesn't seem to have made it onto a meeting > agenda yet, when there have been two WG14 meetings since that proposal was > made and a third o

Re: [PATCH] rtc: destroy mutex when releasing the device

2020-11-17 Thread Alexandre Belloni
On Tue, 10 Nov 2020 10:42:05 +0100, Bartosz Golaszewski wrote: > Not destroying mutexes doesn't lead to resource leak but it's the correct > thing to do for mutex debugging accounting. Applied, thanks! [1/1] rtc: destroy mutex when releasing the device commit: b3527837a60a5dcd0c16c28804b6ec

Re: [PATCH] bpf: don't fail kmalloc while releasing raw_tp

2020-11-17 Thread Mathieu Desnoyers
- On Nov 16, 2020, at 5:10 PM, rostedt rost...@goodmis.org wrote: > On Mon, 16 Nov 2020 16:34:41 -0500 (EST) > Mathieu Desnoyers wrote: [...] >> I think you'll want a WRITE_ONCE(old[i].func, tp_stub_func) here, matched >> with a READ_ONCE() in __DO_TRACE. This introduces a new situation whe

Re: [PATCH] tracepoint: Do not fail unregistering a probe due to memory allocation

2020-11-17 Thread Mathieu Desnoyers
- On Nov 17, 2020, at 5:16 PM, rostedt rost...@goodmis.org wrote: > On Tue, 17 Nov 2020 16:22:23 -0500 (EST) > Mathieu Desnoyers wrote: > >> If we don't call the stub, then there is no point in having the stub at >> all, and we should just compare to a constant value, e.g. 0x1UL. As far >> a

Re: [PATCH 2/2] fpga: dfl: look for vendor specific capability

2020-11-17 Thread matthew . gerlach
On Tue, 17 Nov 2020, Tom Rix wrote: On 11/16/20 5:25 PM, matthew.gerl...@linux.intel.com wrote: From: Matthew Gerlach A DFL may not begin at offset 0 of BAR 0. A PCIe vendor specific capability can be used to specify the start of a number of DFLs. Signed-off-by: Matthew Gerlach --- Do

Re: [PATCH 10/24] x86/resctrl: Move the schema names into struct resctrl_schema

2020-11-17 Thread Reinette Chatre
Hi James, On 10/30/2020 9:11 AM, James Morse wrote: Move the names used for the schemata file out of the resource and into struct resctrl_schema. This allows one resource to have two different names, based on the other schema properties. This patch copies the names, eventually resctrl will gene

Re: [PATCH] tracepoint: Do not fail unregistering a probe due to memory allocation

2020-11-17 Thread Mathieu Desnoyers
- On Nov 17, 2020, at 5:19 PM, rostedt rost...@goodmis.org wrote: > On Tue, 17 Nov 2020 13:33:42 -0800 > Kees Cook wrote: > >> As I think got discussed in the thread, what you had here wouldn't work >> in a CFI build if the function prototype of the call site and the >> function don't match.

[PATCH v12 1/5] locking/qspinlock: Rename mcs lock/unlock macros and make them more generic

2020-11-17 Thread Alex Kogan
The mcs unlock macro (arch_mcs_lock_handoff) should accept the value to be stored into the lock argument as another argument. This allows using the same macro in cases where the value to be stored when passing the lock is different from 1. Signed-off-by: Alex Kogan Reviewed-by: Steve Sistare Rev

[PATCH v12 4/5] locking/qspinlock: Introduce starvation avoidance into CNA

2020-11-17 Thread Alex Kogan
Keep track of the time the thread at the head of the secondary queue has been waiting, and force inter-node handoff once this time passes a preset threshold. The default value for the threshold (10ms) can be overridden with the new kernel boot command-line option "numa_spinlock_threshold". The ms v

Re: [PATCH] powerpc: Drop -me200 addition to build flags

2020-11-17 Thread Michael Ellerman
On Mon, 16 Nov 2020 23:09:13 +1100, Michael Ellerman wrote: > Currently a build with CONFIG_E200=y will fail with: > > Error: invalid switch -me200 > Error: unrecognized option -me200 > > Upstream binutils has never supported an -me200 option. Presumably it > was supported at some point by ei

<    3   4   5   6   7   8   9   10   11   12   >