[PATCH v1 1/7] net: ipa: Add support for IPA v3.1 with GSI v1.0

2021-02-11 Thread AngeloGioacchino Del Regno
In preparation for adding support for the MSM8998 SoC's IPA, add the necessary bits for IPA version 3.1 featuring GSI 1.0, found on at least MSM8998. Signed-off-by: AngeloGioacchino Del Regno --- drivers/net/ipa/gsi.c | 8 drivers/net/ipa/ipa_endpoint.c | 17 +

[PATCH v1 6/7] dt-bindings: net: qcom-ipa: Document qcom,sc7180-ipa compatible

2021-02-11 Thread AngeloGioacchino Del Regno
The driver supports SC7180, but the binding was not documented. Just add it. Signed-off-by: AngeloGioacchino Del Regno --- Documentation/devicetree/bindings/net/qcom,ipa.yaml | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/qcom,ipa.

[PATCH v1 0/7] Add support for IPA v3.1, GSI v1.0, MSM8998 IPA

2021-02-11 Thread AngeloGioacchino Del Regno
Hey all! This time around I thought that it would be nice to get some modem action going on. We have it, it's working (ish), so just.. why not. This series adds support for IPA v3.1 (featuring GSI v1.0) and also takes account for some bits that are shared with other unimplemented IPA v3 variants

Re: [PATCH v13 2/7] kasan: Add KASAN mode kernel parameter

2021-02-11 Thread Andrey Konovalov
On Thu, Feb 11, 2021 at 4:34 PM Vincenzo Frascino wrote: > > Architectures supported by KASAN_HW_TAGS can provide a sync or async mode > of execution. On an MTE enabled arm64 hw for example this can be identified > with the synchronous or asynchronous tagging mode of execution. > In synchronous mo

[PATCH v1 3/7] net: ipa: gsi: Avoid some writes during irq setup for older IPA

2021-02-11 Thread AngeloGioacchino Del Regno
On some IPA versions (v3.1 and older), writing to registers GSI_INTER_EE_SRC_CH_IRQ_OFFSET and GSI_INTER_EE_SRC_EV_CH_IRQ_OFFSET will generate a fault and the SoC will lockup. Avoid clearing CH and EV_CH interrupts on GSI probe to fix this bad behavior: we are anyway not going to get spurious inte

[PATCH v2] gpio: pca953x: add support for open drain pins on PCAL6524

2021-02-11 Thread Alban Bedel
>From a quick glance at various datasheets the PCAL6524 and the PCAL6534 seems to be the only chips in this family that support setting the drive mode of single pins. Other chips either don't support it at all, or can only set the drive mode of whole banks, which doesn't map to the GPIO API. Add a

[PATCH v1 2/7] net: ipa: endpoint: Don't read unexistant register on IPAv3.1

2021-02-11 Thread AngeloGioacchino Del Regno
On IPAv3.1 there is no such FLAVOR_0 register so it is impossible to read tx/rx channel masks and we have to rely on the correctness on the provided configuration. Signed-off-by: AngeloGioacchino Del Regno --- drivers/net/ipa/ipa_endpoint.c | 9 + 1 file changed, 9 insertions(+) diff -

Re: [PATCH] ASoC: wm_adsp: Remove unused control callback structure

2021-02-11 Thread Mark Brown
On Thu, 11 Feb 2021 17:21:06 +, Charles Keepax wrote: > This callback structure has never been used and it is not clear why it > was added in the first place. Remove it to clear up the code a little. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Tha

Re: [PATCH v5 5/6] dm: add 'noexcl' option for dm-linear

2021-02-11 Thread Mike Snitzer
On Tue, Feb 09 2021 at 9:30am -0500, Sergei Shtepa wrote: > The 'noexcl' option allow to open underlying block-device > without FMODE_EXCL. > > Signed-off-by: Sergei Shtepa > --- > drivers/md/dm-linear.c| 14 +- > drivers/md/dm-table.c | 14 -- > driver

Re: [PATCH 3/3] [v3] lib/vsprintf: debug_never_hash_pointers prints all addresses as unhashed

2021-02-11 Thread Petr Mladek
On Wed 2021-02-10 15:34:53, Timur Tabi wrote: > If the debug_never_hash_pointers command line parameter is set, then > printk("%p") will print pointers as unhashed, which is useful for > debugging purposes. This also applies to any function that uses > vsprintf, such as print_hex_dump() and seq_bu

[PATCH v2] enetc: auto select PHYLIB and MDIO_DEVRES

2021-02-11 Thread Tong Zhang
FSL_ENETC_MDIO use symbols from PHYLIB (MDIO_BUS) and MDIO_DEVRES, however there are no dependency specified in Kconfig ERROR: modpost: "__mdiobus_register" [drivers/net/ethernet/freescale/enetc/fsl-enetc-mdio.ko] undefined! ERROR: modpost: "mdiobus_unregister" [drivers/net/ethernet/freescale/en

Re: [PATCH] enetc: auto select PHYLIB and MDIO_DEVRES

2021-02-11 Thread Tong Zhang
Thanks for the comments! I have sent a revised patch. - Tong On Thu, Feb 11, 2021 at 12:38 PM Florian Fainelli wrote: > > On 2/11/21 8:09 AM, Tong Zhang wrote: > > FSL_ENETC_MDIO use symbols from PHYLIB and MDIO_DEVRES, however they are > > not auto selected. > > > > ERROR: modpost: "__mdiobus_re

Re: [PATCH 4/4] microblaze: Remove support for gcc < 4

2021-02-11 Thread Michal Simek
On 2/10/21 3:11 PM, Geert Uytterhoeven wrote: > Since commit cafa0010cd51fb71 ("Raise the minimum required gcc version > to 4.6") , the kernel can no longer be compiled using gcc-3. > Hence drop support code for gcc-3. > > Signed-off-by: Geert Uytterhoeven > --- > arch/microblaze/kernel/modul

[PATCH] Staging: mm: util.c: checkpatch.pl coding style warning fix

2021-02-11 Thread Adithya Chandrakasan
FILE: mm/util.c:930: checkpatch.pl scripts basic coding style issues as below WARNING: Missing a blank line after declarations Signed-off-by: Adithya Chandrakasan --- mm/util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/util.c b/mm/util.c index 8c9b7d1e7c49..60286876636d 100644 --- a

Re: [PATCH v4] driver core: auxiliary bus: Fix calling stage for auxiliary bus init

2021-02-11 Thread Greg KH
On Thu, Feb 11, 2021 at 10:42:49AM -0700, Dave Jiang wrote: > When the auxiliary device code is built into the kernel, it can be executed > before the auxiliary bus is registered. This causes bus->p to be not > allocated and triggers a NULL pointer dereference when the auxiliary bus > device gets a

[PATCH v1 5/7] net: ipa: Add support for IPA on MSM8998

2021-02-11 Thread AngeloGioacchino Del Regno
MSM8998 features IPA v3.1 (GSI v1.0): add the required configuration data for it. Signed-off-by: AngeloGioacchino Del Regno --- drivers/net/ipa/Makefile | 3 +- drivers/net/ipa/ipa_data-msm8998.c | 407 + drivers/net/ipa/ipa_data.h | 5 + driver

Re: [PATCH v5 2/4] USB: misc: Add onboard_usb_hub driver

2021-02-11 Thread Matthias Kaehlcke
Hi Greg, On Thu, Feb 11, 2021 at 08:03:01AM +0100, Greg Kroah-Hartman wrote: > On Wed, Feb 10, 2021 at 09:10:37AM -0800, Matthias Kaehlcke wrote: > > +static int onboard_hub_add_usbdev(struct onboard_hub *hub, struct > > usb_device *udev) > > +{ > > + struct udev_node *node; > > + char link_n

Re: [PATCH 4.19 07/24] regulator: core: avoid regulator_resolve_supply() race condition

2021-02-11 Thread Sasha Levin
On Thu, Feb 11, 2021 at 03:40:21PM +, Mark Brown wrote: On Thu, Feb 11, 2021 at 04:38:08PM +0100, Greg Kroah-Hartman wrote: On Thu, Feb 11, 2021 at 03:26:56PM +, Mark Brown wrote: > > The final step in regulator_register() is to call > > regulator_resolve_supply() for each registered

Re: [PATCH v1 2/4] usb: typec: tps6598x: Add trace event for status register

2021-02-11 Thread kernel test robot
Hi "Guido, I love your patch! Yet something to improve: [auto build test ERROR on usb/usb-testing] [also build test ERROR on v5.11-rc7 next-20210211] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' a

Re: [PATCH] kbuild: fix CONFIG_TRIM_UNUSED_KSYMS build for ppc64

2021-02-11 Thread Masahiro Yamada
On Thu, Feb 11, 2021 at 7:43 PM Jessica Yu wrote: > > +++ Masahiro Yamada [11/02/21 15:14 +0900]: > >Stephen Rothwell reported a build error on ppc64 when > >CONFIG_TRIM_UNUSED_KSYMS is enabled. > > > >Jessica Yu pointed out the cause of the error with the reference to the > >ppc64 elf ABI: > > "

Re: [PATCH v15 4/8] mm: hugetlb: alloc the vmemmap pages associated with each HugeTLB page

2021-02-11 Thread Mike Kravetz
On 2/8/21 12:50 AM, Muchun Song wrote: > When we free a HugeTLB page to the buddy allocator, we should allocate the > vmemmap pages associated with it. But we may cannot allocate vmemmap pages > when the system is under memory pressure, in this case, we just refuse to > free the HugeTLB page instea

[PATCH] spi: Skip zero-length transfers in spi_transfer_one_message()

2021-02-11 Thread Nicolas Saenz Julienne
With the introduction of 26751de25d25 ("spi: bcm2835: Micro-optimise FIFO loops") it has become apparent that some users might initiate zero-length SPI transfers. A fact the micro-optimization omitted, and which turned out to cause crashes[1]. Instead of changing the micro-optimization itself, use

[PATCH v3 1/1] kernel/crash_core: Add crashkernel=auto for vmcore creation

2021-02-11 Thread Saeed Mirzamohammadi
This adds crashkernel=auto feature to configure reserved memory for vmcore creation. CONFIG_CRASH_AUTO_STR is defined to be set for different kernel distributions and different archs based on their needs. Signed-off-by: Saeed Mirzamohammadi Signed-off-by: John Donnelly Tested-by: John Donnelly

Re: [PATCH 0/8] MUSE: Userspace backed MTD v3

2021-02-11 Thread Miklos Szeredi
On Wed, Feb 10, 2021 at 12:16 PM Miklos Szeredi wrote: > > On Wed, Feb 10, 2021 at 11:12 AM Miklos Szeredi wrote: > > > But this is just a start. From the big structures still left in > > CUSE only uses the following fields: > > > > fc: .minor, max_read, max_write, rcu, release, initialized, nu

[RFC PATCH] docs: Warn when auto xref to document fails

2021-02-11 Thread Nícolas F . R . A . Prado
Print warning when automarkup fails to cross-reference to another document, so that it doesn't fail silently. Signed-off-by: Nícolas F. R. A. Prado --- This patch is marked as RFC because it causes a lot of new warnings currently. So the patch should only be applied after we reduce this to zero.

[PATCH 0/2] arm64: dts: qcom: sm8250: fix display nodes

2021-02-11 Thread Jonathan Marek
Add sm8150/sm8250 compatibles to drm/msm and fix the sm8250 display nodes. Jonathan Marek (2): drm/msm: add compatibles for sm8150/sm8250 display arm64: dts: qcom: sm8250: fix display nodes .../devicetree/bindings/display/msm/dpu.txt | 4 +-- arch/arm64/boot/dts/qcom/sm8250.dtsi

[PATCH 2/2] arm64: dts: qcom: sm8250: fix display nodes

2021-02-11 Thread Jonathan Marek
Apply these fixes to the newly added sm8250 display ndoes - Use sm8250 compatibles instead of sdm845 compatibles - Remove "notused" interconnect (which apparently was blindly copied from my old patches) - Use dispcc node example from dt-bindings, removing clocks which aren't documented or

[PATCH 1/2] drm/msm: add compatibles for sm8150/sm8250 display

2021-02-11 Thread Jonathan Marek
The driver already has support for sm8150/sm8250, but the compatibles were never added. Also inverse the non-mdp4 condition in add_display_components() to avoid having to check every new compatible in the condition. Signed-off-by: Jonathan Marek --- Documentation/devicetree/bindings/display/msm

Re: [PATCH v4] driver core: auxiliary bus: Fix calling stage for auxiliary bus init

2021-02-11 Thread Dave Jiang
On 2/11/2021 10:59 AM, Greg KH wrote: On Thu, Feb 11, 2021 at 10:42:49AM -0700, Dave Jiang wrote: When the auxiliary device code is built into the kernel, it can be executed before the auxiliary bus is registered. This causes bus->p to be not allocated and triggers a NULL pointer dereference w

Re: [PATCH 3/3] [v3] lib/vsprintf: debug_never_hash_pointers prints all addresses as unhashed

2021-02-11 Thread Timur Tabi
On 2/11/21 11:53 AM, Petr Mladek wrote: I would really like to make it clear here that it is not only about consoles. Most people will see only this message. Only few people read documentation. Many people will learn the parameter name from another context by googling. I know that it is not e

Re: [PATCH for next v1 1/2] gpio: omap: Replace raw_spin_lock_irqsave with raw_spin_lock in omap_gpio_irq_handler()

2021-02-11 Thread Grygorii Strashko
On 08/02/2021 10:56, Luo Jiaxing wrote: There is no need to use API with _irqsave in omap_gpio_irq_handler(), because it already be in a irq-disabled context. Signed-off-by: Luo Jiaxing --- drivers/gpio/gpio-omap.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) dif

Re: [PATCH 3/3] [v3] lib/vsprintf: debug_never_hash_pointers prints all addresses as unhashed

2021-02-11 Thread Timur Tabi
On 2/11/21 11:23 AM, Petr Mladek wrote: There was some pushback against this feature in general. It should be used deliberately and people must be aware of the consequences. This is why it is only boot option and why it prints such a huge warning. The long clear name helps as well. This is my t

Re: [PATCH v7 3/4] x509: Add support for parsing x509 certs with ECDSA keys

2021-02-11 Thread Stefan Berger
On 2/11/21 12:30 PM, Stefan Berger wrote: On 2/11/21 3:03 AM, kernel test robot wrote: Hi Stefan, Thank you for the patch! Yet something to improve: crypto/asymmetric_keys/public_key.c:97: undefined reference to `parse_OID' So the issue is that  only ASYMMETRIC_PUBLIC_KEY_SUBTYPE is select

Re: This reply comments on the patch to fixes the missing a blank line warning

2021-02-11 Thread Adithya Chandrakasan
On 2/11/21 2:36 AM, David Hildenbrand wrote: > ^ > > Please create proper patch subjects. Nobody has a glue what you are doing > when looking at the subject. > > "mm/util: fix ??? warning" > > Which raises the question, what is ??? > > Compiler? static code checker? ... ? > > > Thanks > > On 11.02

Re: [RESEND PATCH ] KVM: VMX: Enable/disable PML when dirty logging gets enabled/disabled

2021-02-11 Thread Sean Christopherson
On Thu, Feb 11, 2021, Paolo Bonzini wrote: > On 11/02/21 01:55, Sean Christopherson wrote: > > > diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c > > > index ee4ac2618ec59..c6e5b026bbfe8 100644 > > > --- a/virt/kvm/kvm_main.c > > > +++ b/virt/kvm/kvm_main.c > > > @@ -307,6 +307,7 @@ bool kvm_

Re: linux-next: Tree for Feb 11 (drivers/gpu/drm/i915/display/intel_panel.o)

2021-02-11 Thread Randy Dunlap
On 2/11/21 3:26 AM, Stephen Rothwell wrote: > Hi all, > > Changes since 20210210: > > The powerpc tree still had its build failure in the allyesconfig for > which I applied a supplied patch. > > The v4l-dvb tree lost its build failure. > > The drm-misc tree lost its build failure. > > The modu

[gustavoars-linux:testing/fusion/mptlan] BUILD SUCCESS b0cb7eb24d3d6963e9f9021bb1d6eff3da1cfdf7

2021-02-11 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git testing/fusion/mptlan branch HEAD: b0cb7eb24d3d6963e9f9021bb1d6eff3da1cfdf7 scsi: mptlan: Replace one-element array with flexible-array member elapsed time: 2746m configs tested: 95 configs skipped: 2 The follo

[PATCH] powerpc/pseries: extract host bridge from pci_bus prior to bus removal

2021-02-11 Thread Tyrel Datwyler
The pci_bus->bridge reference may no longer be valid after pci_bus_remove() resulting in passing a bad value to device_unregister() for the associated bridge device. Store the host_bridge reference in a separate variable prior to pci_bus_remove(). Fixes: 7340056567e3 ("powerpc/pci: Reorder pci bu

Re: [RFC 1/9] mm, arm64: Update PR_SET/GET_TAGGED_ADDR_CTRL interface

2021-02-11 Thread Catalin Marinas
Hi Dave, On Thu, Feb 11, 2021 at 09:06:12AM -0800, Dave Hansen wrote: > I noticed there are some ELF bits for ARM's BTI feature: > > GNU_PROPERTY_AARCH64_FEATURE_1_BTI > > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/uapi/linux/elf.h#n453 > > There's b

Re: [PATCH v2] ath10k: hold RCU lock when calling ieee80211_find_sta_by_ifaddr()

2021-02-11 Thread Kalle Valo
Shuah Khan wrote: > ieee80211_find_sta_by_ifaddr() must be called under the RCU lock and > the resulting pointer is only valid under RCU lock as well. > > Fix ath10k_wmi_tlv_op_pull_peer_stats_info() to hold RCU lock before it > calls ieee80211_find_sta_by_ifaddr() and release it when the result

Re: [PATCH v2 2/8] cxl/mem: Find device capabilities

2021-02-11 Thread Ben Widawsky
On 21-02-11 09:55:48, Jonathan Cameron wrote: > On Wed, 10 Feb 2021 10:16:05 -0800 > Ben Widawsky wrote: > > > On 21-02-10 08:55:57, Ben Widawsky wrote: > > > On 21-02-10 15:07:59, Jonathan Cameron wrote: > > > > On Wed, 10 Feb 2021 13:32:52 + > > > > Jonathan Cameron wrote: > > > > > >

Re: [PATCH V7 1/3] kbuild: Add generic rule to apply fdtoverlay

2021-02-11 Thread Masahiro Yamada
On Wed, Feb 10, 2021 at 8:13 PM Viresh Kumar wrote: > > From: Rob Herring > > Add a generic rule to apply fdtoverlay in Makefile.lib, so every > platform doesn't need to carry the complex rule. > > The platform's Makefile only needs to have this now: > > DTC_FLAGS_foo_base += -@ > foo-dtbs := f

[PATCH] ACPI: property: Fix fwnode string properties matching

2021-02-11 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Property matching does not work for ACPI fwnodes if the value of the given property is not represented as a package in the _DSD package containing it. For example, the "compatible" property in the _DSD below Name (_DSD, Package () { ToUUID("daffd814-6eba-4d8c-8a91-

Re: [RFC][PATCH v2 0/7] objtool x86 decoder fixes

2021-02-11 Thread Nick Desaulniers
On Thu, Feb 11, 2021 at 9:40 AM Peter Zijlstra wrote: > > Hi, > > Since I had to look at instruction decoding for the stack swizzle thing, I > ended up with a few more changes to the objtool x86 decoder. > > These patches are lightly tested (they build defconfig and allmodconfig using > GCC10), bu

Re: [PATCH v3 1/2] thermal: armada: ap806: use firmware SiP services for thermal operations

2021-02-11 Thread kernel test robot
'--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/kostap-marvell-com/Enable-usage-of-Marvell-FW-SIP-services/20210211-220917 base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next config: parisc-al

Re: [Intel-gfx] [RFC v4 10/11] drm/dp: Extract i915's eDP backlight code into DRM helpers

2021-02-11 Thread Lyude Paul
On Wed, 2021-02-10 at 23:15 -0500, Rodrigo Vivi wrote: > On Mon, Feb 08, 2021 at 06:39:00PM -0500, Lyude Paul wrote: > > Since we're about to implement eDP backlight support in nouveau using the > > standard protocol from VESA, we might as well just take the code that's > > already written for this

[PATCH] perf env: Remove unneeded internal/cpumap inclusions

2021-02-11 Thread Ian Rogers
Minor cleanup. Signed-off-by: Ian Rogers --- tools/perf/bench/epoll-ctl.c | 1 - tools/perf/bench/epoll-wait.c | 1 - tools/perf/bench/futex-hash.c | 1 - tools/perf/bench/futex-lock-pi.c | 1 - tools/perf/bench/futex-requeue.c | 1 - t

Re: [PATCH v5 3/4] usb: host: xhci-plat: Create platform device for onboard hubs in probe()

2021-02-11 Thread Matthias Kaehlcke
Hi Greg, On Thu, Feb 11, 2021 at 07:58:23AM +0100, Greg Kroah-Hartman wrote: > On Wed, Feb 10, 2021 at 09:10:38AM -0800, Matthias Kaehlcke wrote: > > Check during probe() if a hub supported by the onboard_usb_hub > > driver is connected to the controller. If such a hub is found > > create the corr

Re: [tip: objtool/urgent] objtool: Fix seg fault with Clang non-section symbols

2021-02-11 Thread Nick Desaulniers
On Thu, Feb 11, 2021 at 5:55 AM Greg Kroah-Hartman wrote: > > On Thu, Feb 11, 2021 at 09:32:03PM +0800, Xi Ruoyao wrote: > > Hi all, > > > > The latest GNU assembler (binutils-2.36.1) is removing unused section > > symbols > > like Clang [1]. So linux-5.10.15 can't be built with binutils-2.36.1

Re: [v7 PATCH 12/12] mm: vmscan: shrink deferred objects proportional to priority

2021-02-11 Thread Vlastimil Babka
On 2/11/21 6:29 PM, Yang Shi wrote: > On Thu, Feb 11, 2021 at 5:10 AM Vlastimil Babka wrote: >> > trace_mm_shrink_slab_start(shrinker, shrinkctl, nr, >> > freeable, delta, total_scan, priority); >> > @@ -737,10 +708,9 @@ static unsigned long do_shrink_slab(st

Re: [PATCH 1/2] dt-bindings: remoteproc: qcom: pas: Add SM8350 remoteprocs

2021-02-11 Thread Bjorn Andersson
On Wed 10 Feb 04:45 CST 2021, Vinod Koul wrote: > Add the SM8350 audio, compute, modem and sensor remoteprocs to the PAS > DT binding. > > Signed-off-by: Vinod Koul > --- > .../devicetree/bindings/remoteproc/qcom,adsp.txt | 12 > 1 file changed, 12 insertions(+) > > diff --git

[PATCH v5 net-next 00/11] skbuff: introduce skbuff_heads bulking and reusing

2021-02-11 Thread Alexander Lobakin
Currently, all sorts of skb allocation always do allocate skbuff_heads one by one via kmem_cache_alloc(). On the other hand, we have percpu napi_alloc_cache to store skbuff_heads queued up for freeing and flush them by bulks. We can use this cache not only for bulk-wiping, but also to obtain heads

[PATCH v5 net-next 01/11] skbuff: move __alloc_skb() next to the other skb allocation functions

2021-02-11 Thread Alexander Lobakin
In preparation before reusing several functions in all three skb allocation variants, move __alloc_skb() next to the __netdev_alloc_skb() and __napi_alloc_skb(). No functional changes. Signed-off-by: Alexander Lobakin --- net/core/skbuff.c | 284 +++--- 1

Re: [PATCH] lkdtm: don't move ctors to .rodata

2021-02-11 Thread Stephen Boyd
Quoting Greg Kroah-Hartman (2021-02-11 06:23:10) > On Wed, Feb 10, 2021 at 04:36:08PM -0800, Stephen Boyd wrote: > > Quoting Greg Kroah-Hartman (2020-12-09 06:51:33) > > > On Tue, Dec 08, 2020 at 01:20:56PM -0800, Kees Cook wrote: > > > > On Mon, Dec 07, 2020 at 05:05:33PM +, Mark Rutland wrote

[PATCH v5 net-next 02/11] skbuff: simplify kmalloc_reserve()

2021-02-11 Thread Alexander Lobakin
Eversince the introduction of __kmalloc_reserve(), "ip" argument hasn't been used. _RET_IP_ is embedded inside kmalloc_node_track_caller(). Remove the redundant macro and rename the function after it. Signed-off-by: Alexander Lobakin --- net/core/skbuff.c | 7 ++- 1 file changed, 2 insertion

[PATCH v5 net-next 05/11] skbuff: use __build_skb_around() in __alloc_skb()

2021-02-11 Thread Alexander Lobakin
Just call __build_skb_around() instead of open-coding it. Signed-off-by: Alexander Lobakin --- net/core/skbuff.c | 18 +- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/net/core/skbuff.c b/net/core/skbuff.c index 88566de26cd1..1c6f6ef70339 100644 --- a/net/core/skb

[PATCH v5 net-next 03/11] skbuff: make __build_skb_around() return void

2021-02-11 Thread Alexander Lobakin
__build_skb_around() can never fail and always returns passed skb. Make it return void to simplify and optimize the code. Signed-off-by: Alexander Lobakin --- net/core/skbuff.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/net/core/skbuff.c b/net/core/skbuff.c

[PATCH v5 net-next 06/11] skbuff: remove __kfree_skb_flush()

2021-02-11 Thread Alexander Lobakin
This function isn't much needed as NAPI skb queue gets bulk-freed anyway when there's no more room, and even may reduce the efficiency of bulk operations. It will be even less needed after reusing skb cache on allocation path, so remove it and this way lighten network softirqs a bit. Suggested-by:

[PATCH v5 net-next 04/11] skbuff: simplify __alloc_skb() a bit

2021-02-11 Thread Alexander Lobakin
Use unlikely() annotations for skbuff_head and data similarly to the two other allocation functions and remove totally redundant goto. Signed-off-by: Alexander Lobakin --- net/core/skbuff.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/net/core/skbuff.c b/net/co

Re: [PATCH V2 4/8] mm/highmem: Add VM_BUG_ON() to mem*_page() calls

2021-02-11 Thread David Sterba
On Wed, Feb 10, 2021 at 01:22:28PM -0800, Ira Weiny wrote: > On Wed, Feb 10, 2021 at 06:56:06PM +, Matthew Wilcox wrote: > > On Wed, Feb 10, 2021 at 08:29:01AM -0800, Ira Weiny wrote: > > > And I thought it was a good idea. Any file system development should have > > > tests with DEBUG_VM whic

[PATCH v5 net-next 07/11] skbuff: move NAPI cache declarations upper in the file

2021-02-11 Thread Alexander Lobakin
NAPI cache structures will be used for allocating skbuff_heads, so move their declarations a bit upper. Signed-off-by: Alexander Lobakin --- net/core/skbuff.c | 90 +++ 1 file changed, 45 insertions(+), 45 deletions(-) diff --git a/net/core/skbuff.c b

[PATCH v5 net-next 08/11] skbuff: introduce {,__}napi_build_skb() which reuses NAPI cache heads

2021-02-11 Thread Alexander Lobakin
Instead of just bulk-flushing skbuff_heads queued up through napi_consume_skb() or __kfree_skb_defer(), try to reuse them on allocation path. If the cache is empty on allocation, bulk-allocate the first 16 elements, which is more efficient than per-skb allocation. If the cache is full on freeing, b

[PATCH v5 net-next 09/11] skbuff: allow to optionally use NAPI cache from __alloc_skb()

2021-02-11 Thread Alexander Lobakin
Reuse the old and forgotten SKB_ALLOC_NAPI to add an option to get an skbuff_head from the NAPI cache instead of inplace allocation inside __alloc_skb(). This implies that the function is called from softirq or BH-off context, not for allocating a clone or from a distant node. Signed-off-by: Alexa

[PATCH v5 net-next 10/11] skbuff: allow to use NAPI cache from __napi_alloc_skb()

2021-02-11 Thread Alexander Lobakin
{,__}napi_alloc_skb() is mostly used either for optional non-linear receive methods (usually controlled via Ethtool private flags and off by default) and/or for Rx copybreaks. Use __napi_build_skb() here for obtaining skbuff_heads from NAPI cache instead of inplace allocations. This includes both k

[PATCH v5 net-next 11/11] skbuff: queue NAPI_MERGED_FREE skbs into NAPI cache instead of freeing

2021-02-11 Thread Alexander Lobakin
napi_frags_finish() and napi_skb_finish() can only be called inside NAPI Rx context, so we can feed NAPI cache with skbuff_heads that got NAPI_MERGED_FREE verdict instead of immediate freeing. Replace __kfree_skb() with __kfree_skb_defer() in napi_skb_finish() and move napi_skb_free_stolen_head() t

[PATCH 3/4] ibmvfc: treat H_CLOSED as success during sub-CRQ registration

2021-02-11 Thread Tyrel Datwyler
A non-zero return code for H_REG_SUB_CRQ is currently treated as a failure resulting in failing sub-CRQ setup. The case of H_CLOSED should not be treated as a failure. This return code translates to a successful sub-CRQ registration by the hypervisor, and is meant to communicate back that there is

[PATCH 4/4] ibmvfc: store return code of H_FREE_SUB_CRQ during cleanup

2021-02-11 Thread Tyrel Datwyler
The H_FREE_SUB_CRQ hypercall can return a retry delay return code that indicates the call needs to be retried after a specific amount of time delay. The error path to free a sub-CRQ in case of a failure during channel registration fails to capture the return code of H_FREE_SUB_CRQ which will result

[PATCH 2/4] ibmvfc: fix invalid sub-CRQ handles after hard reset

2021-02-11 Thread Tyrel Datwyler
A hard reset results in a complete transport disconnect such that the CRQ connection with the partner VIOS is broken. This has the side effect of also invalidating the associated sub-CRQs. The current code assumes that the sub-CRQs are perserved resulting in a protocol violation after trying to rec

[PATCH 0/4] ibmvfc: hard reset fixes

2021-02-11 Thread Tyrel Datwyler
This series contains a minor simplification of ibmvfc_init_sub_crqs() followed by a couple fixes for sub-CRQ handling which effect hard reset of the client/host adapter CRQ pair.

[PATCH 1/4] ibmvfc: simplify handling of sub-CRQ initialization

2021-02-11 Thread Tyrel Datwyler
If ibmvfc_init_sub_crqs() fails ibmvfc_probe() simply parrots registration failure reported elsewhere, and futher vhost->scsi_scrq.scrq == NULL is indication enough to the driver that it has no sub-CRQs available. The mq_enabled check can also be moved into ibmvfc_init_sub_crqs() such that each cal

Re: [PATCH V3 11/14] coresight: sink: Add TRBE driver

2021-02-11 Thread Mathieu Poirier
On Wed, Jan 27, 2021 at 02:25:35PM +0530, Anshuman Khandual wrote: > Trace Buffer Extension (TRBE) implements a trace buffer per CPU which is > accessible via the system registers. The TRBE supports different addressing > modes including CPU virtual address and buffer modes including the circular >

Re: [PATCH v5 3/4] usb: host: xhci-plat: Create platform device for onboard hubs in probe()

2021-02-11 Thread Matthias Kaehlcke
On Thu, Feb 11, 2021 at 10:45:48AM -0800, Matthias Kaehlcke wrote: > Hi Greg, > > On Thu, Feb 11, 2021 at 07:58:23AM +0100, Greg Kroah-Hartman wrote: > > On Wed, Feb 10, 2021 at 09:10:38AM -0800, Matthias Kaehlcke wrote: > > > Check during probe() if a hub supported by the onboard_usb_hub > > > dr

Re: [PATCH 1/2] uio: Add late_release callback to uio_info

2021-02-11 Thread Bodo Stroesser
On 11.02.21 07:51, Greg Kroah-Hartman wrote: On Wed, Feb 10, 2021 at 08:57:11PM +0100, Bodo Stroesser wrote: On 10.02.21 20:47, Greg Kroah-Hartman wrote: On Wed, Feb 10, 2021 at 08:40:30PM +0100, Bodo Stroesser wrote: If uio_unregister_device() is called while userspace daemon still holds the

Re: [PATCH][next] soc: xilinx: vcu: remove deadcode on null divider check

2021-02-11 Thread Stephen Boyd
Quoting Michael Tretter (2021-02-10 23:39:06) > On Wed, 10 Feb 2021 19:28:18 -0800, Stephen Boyd wrote: > > Quoting Colin King (2021-02-10 10:49:38) > > > From: Colin Ian King > > > > > > The pointer 'divider' has previously been null checked followed by > > > a return, hence the subsequent null

Re: [PATCH v5 1/2] ARM: kprobes: fix UNPREDICTABLE warnings

2021-02-11 Thread Nick Desaulniers
On Thu, Feb 11, 2021 at 12:15 AM Ard Biesheuvel wrote: > > On Thu, 11 Feb 2021 at 03:52, Nick Desaulniers > wrote: > > > > GNU as warns twice for this file: > > Warning: using r15 results in unpredictable behaviour > > > > via the Arm ARM: > > K1.1.1 Overview of the constraints on Armv7 UNPREDIC

Re: [PATCH v11 1/7] ACPI: scan: Obtain device's desired enumeration power state

2021-02-11 Thread Rafael J. Wysocki
On Thu, Feb 11, 2021 at 12:08 AM Sakari Ailus wrote: > > Store a device's desired enumeration power state in struct > acpi_device_power during acpi_device object's initialisation. > > Signed-off-by: Sakari Ailus > --- > drivers/acpi/scan.c | 4 > include/acpi/acpi_bus.h | 1 + > 2 files

Re: [net-next v6 14/14] octeontx2-af: cn10k: MAC internal loopback support

2021-02-11 Thread kernel test robot
Hi Geetha, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on net-next/master] url: https://github.com/0day-ci/linux/commits/Geetha-sowjanya/Add-Marvell-CN10K-support/20210212-001410 base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git e

Re: [EXT] Re: [PATCH v12 net-next 12/15] net: mvpp2: add BM protection underrun feature support

2021-02-11 Thread Marcin Wojtas
Hi, czw., 11 lut 2021 o 15:19 Andrew Lunn napisał(a): > > On Thu, Feb 11, 2021 at 08:22:19AM +, Stefan Chulski wrote: > > > > > > > > -- > > > From: > > > Date: Wed, 10 Feb 2021 11:48:17 +0200 > > > > > > > > > > > +static i

Re: [v7 PATCH 12/12] mm: vmscan: shrink deferred objects proportional to priority

2021-02-11 Thread Yang Shi
On Thu, Feb 11, 2021 at 10:52 AM Vlastimil Babka wrote: > > On 2/11/21 6:29 PM, Yang Shi wrote: > > On Thu, Feb 11, 2021 at 5:10 AM Vlastimil Babka wrote: > >> > trace_mm_shrink_slab_start(shrinker, shrinkctl, nr, > >> > freeable, delta, total_scan, priority

Re: [PATCH v5 3/4] usb: host: xhci-plat: Create platform device for onboard hubs in probe()

2021-02-11 Thread Stephen Boyd
Quoting Matthias Kaehlcke (2021-02-10 14:20:18) > > On Wed, Feb 10, 2021 at 10:06:45PM +0100, Krzysztof Kozlowski wrote: > > > > This looks hackish... what if later we have something else than hub? > > Another if()? > > > > What if hub could be connected to something else than XHCI controller? >

Re: [PATCH V2] opp: Don't ignore clk_get() errors other than -ENOENT

2021-02-11 Thread Stephen Boyd
Quoting Viresh Kumar (2021-01-31 20:22:58) > Not all devices that need to use OPP core need to have clocks, a missing > clock is fine in which case -ENOENT shall be returned by clk_get(). > > Anything else is an error and must be handled properly. > > Reported-by: Dmitry Osipenko > Signed-off-by

Re: [PATCH 1/1] s390/vfio-ap: fix circular lockdep when setting/clearing crypto masks

2021-02-11 Thread Tony Krowiak
On 2/11/21 11:47 AM, Halil Pasic wrote: On Thu, 11 Feb 2021 09:21:26 -0500 Tony Krowiak wrote: Yes, it makes sense. I guess I didn't look closely at your suggestion when I said it was exactly what I implemented after agreeing with Connie. I had a slight difference in my implementation: sta

[RFC PATCH v3 1/1] scsi: ufs: Enable power management for wlun

2021-02-11 Thread Asutosh Das
During runtime-suspend of ufs host, the scsi devices are already suspended and so are the queues associated with them. But the ufs host sends SSU to wlun during its runtime-suspend. During the process blk_queue_enter checks if the queue is not in suspended state. If so, it waits for the queue to re

Re: [PATCH 08/21] clk: clkdev: Ignore suggestion to use gnu_printf() as it's not appropriate here

2021-02-11 Thread Stephen Boyd
Quoting Lee Jones (2021-01-26 04:45:27) > Fixes the following W=1 kernel build warning(s): > > drivers/clk/clkdev.c: In function ‘vclkdev_alloc’: > drivers/clk/clkdev.c:173:3: warning: function ‘vclkdev_alloc’ might be a > candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format]

Re: [PATCH V2 mtd/next 3/3] mtd: parsers: ofpart: support BCM4908 fixed partitions

2021-02-11 Thread kernel test robot
Hi "Rafał, I love your patch! Perhaps something to improve: [auto build test WARNING on mtd/mtd/next] [also build test WARNING on mtd/mtd/fixes robh/for-next v5.11-rc7 next-20210211] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we sugge

Re: [EXT] Re: [PATCH v13 net-next 05/15] net: mvpp2: add PPv23 version definition

2021-02-11 Thread Marcin Wojtas
czw., 11 lut 2021 o 12:49 Stefan Chulski napisał(a): > > > -- > > On Thu, Feb 11, 2021 at 12:48:52PM +0200, stef...@marvell.com wrote: > > > From: Stefan Chulski > > > > > > This patch add PPv23 version definition. > > > PPv23 is

Re: [PATCH v5 05/10] userfaultfd: add minor fault registration mode

2021-02-11 Thread Axel Rasmussen
On Wed, Feb 10, 2021 at 1:22 PM Axel Rasmussen wrote: > > This feature allows userspace to intercept "minor" faults. By "minor" > faults, I mean the following situation: > > Let there exist two mappings (i.e., VMAs) to the same page(s). One of > the mappings is registered with userfaultfd (in mino

[PATCH] staging: qlge: Remove duplicate word in comment

2021-02-11 Thread Tom Seewald
Fix this typo by simply removing the duplicate 'and'. Signed-off-by: Tom Seewald --- drivers/staging/qlge/qlge_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/qlge/qlge_main.c b/drivers/staging/qlge/qlge_main.c index dfe8cdf38ce0..5516be3af898 100644 --

[PATCH] platform/chrome: cros_ec_typec: Flush pending work

2021-02-11 Thread Prashant Malani
When a PD notifier event arrives, a new work event won't be enqueued if the current one hasn't completed. This could lead to dropped events. So, flush any pending work before scheduling the new instance. Signed-off-by: Prashant Malani --- drivers/platform/chrome/cros_ec_typec.c | 1 + 1 file ch

Re: [PATCH V4] mtd: rawnand: qcom: update last code word register

2021-02-11 Thread mdalam
On 2021-02-11 19:37, Miquel Raynal wrote: Hello, Manivannan Sadhasivam wrote on Wed, 10 Feb 2021 14:31:44 +0530: On Fri, Jan 29, 2021 at 03:09:19AM +0530, Md Sadre Alam wrote: > From QPIC version 2.0 onwards new register got added to > read last codeword. This change will add the READ_LOCATIO

[PATCH v2 4/4] arm64: dts: ti: k3-am65-main: Add device_type to pcie*_rc nodes

2021-02-11 Thread Jan Kiszka
From: Jan Kiszka This is demanded by the parent binding of ti,am654-pcie-rc, see Documentation/devicetree/bindings/pci/designware-pcie.txt. Signed-off-by: Jan Kiszka --- arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am6

[PATCH v2 2/4] dt-bindings: arm: ti: Add bindings for Siemens IOT2050 boards

2021-02-11 Thread Jan Kiszka
From: Jan Kiszka These boards are based on AM6528 GP and AM6548 HS SOCs. Signed-off-by: Jan Kiszka --- Documentation/devicetree/bindings/arm/ti/k3.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/ti/k3.yaml b/Documentation/devicetree/bindings/ar

[PATCH v2 0/4] arm64: Add TI AM65x-based IOT2050 boards

2021-02-11 Thread Jan Kiszka
Changes in v2: - address board-specific issues found by kernel_verify_patch - remove dead l2-cache node from iot2050-basic DT - add binding for Siemens vendor prefix - factor out board bindings into separate patch - add missing device_type to common ti,am654-pcie-rc nodes Jan Jan Kiszka (4):

Re: [RFC PATCH 1/6] tracing: introduce sleepable tracepoints

2021-02-11 Thread Mathieu Desnoyers
- On Oct 28, 2020, at 5:23 PM, Alexei Starovoitov alexei.starovoi...@gmail.com wrote: > On Tue, Oct 27, 2020 at 09:37:08AM -0400, Mathieu Desnoyers wrote: >> >> - On Oct 26, 2020, at 6:43 PM, Alexei Starovoitov >> alexei.starovoi...@gmail.com wrote: >> >> > On Fri, Oct 23, 2020 at 03:53

[PATCH v2 1/4] dt-bindings: Add Siemens vendor prefix

2021-02-11 Thread Jan Kiszka
From: Jan Kiszka Add prefix for Siemens AG. Signed-off-by: Jan Kiszka --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yam

[PATCH] arm64: dts: qcom: sm8250: Fix epss_l3 unit address

2021-02-11 Thread Georgi Djakov
The unit address of the epss_l3 node is incorrect and does not match the address of its "reg" property. Let's fix it. Signed-off-by: Georgi Djakov --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/

include/linux/unaligned/be_byteshift.h:51:19: error: redefinition of 'get_unaligned_be64'

2021-02-11 Thread kernel test robot
Hi Gene, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 291009f656e8eaebbdfd3a8d99f6b190a9ce9deb commit: 1f4877218f7e2c2b914aeb69a8a0f47d59c74717 iio: adc: mt6360: Add ADC driver for MT6360 date: 3 months ago con

Re: [PATCH v2] [RFC] mm: fs: Invalidate BH LRU during page migration

2021-02-11 Thread Chris Goldsworthy
On 2021-02-11 06:09, Matthew Wilcox wrote: On Wed, Feb 10, 2021 at 09:35:40PM -0800, Chris Goldsworthy wrote: +/* These are used to control the BH LRU invalidation during page migration */ +static struct cpumask lru_needs_invalidation; +static bool bh_lru_disabled = false; As I asked before,

Re: [PATCH V2 0/8] btrfs: convert kmaps to core page calls

2021-02-11 Thread David Sterba
On Tue, Feb 09, 2021 at 10:22:13PM -0800, ira.we...@intel.com wrote: > From: Ira Weiny > > Changes from V1: > Rework commit messages because they were very weak > Change 'fs/btrfs: X' to 'btrfs: x' > https://lore.kernel.org/lkml/20210209151442.gu1...@suse.cz/ > Per

Re: [PATCH for next v1 1/2] gpio: omap: Replace raw_spin_lock_irqsave with raw_spin_lock in omap_gpio_irq_handler()

2021-02-11 Thread Arnd Bergmann
On Thu, Feb 11, 2021 at 7:25 PM Grygorii Strashko wrote: > On 08/02/2021 10:56, Luo Jiaxing wrote: > > There is no need to use API with _irqsave in omap_gpio_irq_handler(), > > because it already be in a irq-disabled context. > > NACK. > Who said that this is always hard IRQ handler? > What about

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