[PATCH net-next 0/7] net: hns3: updates for -next

2020-09-29 Thread Huazhong Tan
There are some misc updates for the HNS3 ethernet driver. #1 uses the queried BD number as the limit for TSO. #2 renames trace event hns3_over_8bd since #1. #3 adds UDP segmentation offload support. #4 adds RoCE VF reset support. #5 is a minor cleanup. #6 & #7 add debugfs for device specifications

[PATCH net-next 5/7] net: hns3: remove unused code in hns3_self_test()

2020-09-29 Thread Huazhong Tan
From: Guojia Liao NETIF_F_HW_VLAN_CTAG_FILTER is not set in netdev->hw_feature, but set in netdev->features. So the handler of NETIF_F_HW_VLAN_CTAG_FILTER in hns3_self_test() is always true, remove it. Signed-off-by: Guojia Liao Signed-off-by: Huazhong Tan ---

RE: [PATCH] tty: serial: fsl_lpuart: fix lpuart32_poll_get_char

2020-09-29 Thread Andy Duan
From: Peng Fan Sent: Tuesday, September 29, 2020 5:55 PM > The watermark is set to 1, so we need to input two chars to trigger RDRF using > the original logic. With the new logic, we could always get the char when > there > is data in FIFO. > > Suggested-by: Fugang Duan > Signed-off-by: Peng

Re: [PATCH v1 4/5] mm/page_alloc: place pages to tail in __free_pages_core()

2020-09-29 Thread Wei Yang
On Mon, Sep 28, 2020 at 08:21:09PM +0200, David Hildenbrand wrote: >__free_pages_core() is used when exposing fresh memory to the buddy >during system boot and when onlining memory in generic_online_page(). > >generic_online_page() is used in two cases: > >1. Direct memory onlining in

Re: [PATCH 3/5] PCI/ERR: get device before call device driver to avoid null pointer reference

2020-09-29 Thread Ethan Zhao
Andy, On Tue, Sep 29, 2020 at 4:51 PM Andy Shevchenko wrote: > > On Tue, Sep 29, 2020 at 10:35:14AM +0800, Ethan Zhao wrote: > > Preferred style, there will be cleared comment in v6. > > Avoid top postings. > > > On Sat, Sep 26, 2020 at 12:42 AM Andy Shevchenko > > wrote: > > > > > > On Thu,

Re: [PATCH v1 5/5] mm/memory_hotplug: update comment regarding zone shuffling

2020-09-29 Thread Wei Yang
On Mon, Sep 28, 2020 at 08:21:10PM +0200, David Hildenbrand wrote: >As we no longer shuffle via generic_online_page() and when undoing >isolation, we can simplify the comment. > >We now effectively shuffle only once (properly) when onlining new >memory. > >Cc: Andrew Morton >Cc: Alexander Duyck

Re: [PATCH v4 1/4] dt-bindings: media: imx258: add bindings for IMX258 sensor

2020-09-29 Thread Sakari Ailus
On Tue, Sep 29, 2020 at 11:18:46AM +0200, Krzysztof Kozlowski wrote: > On Tue, 29 Sep 2020 at 11:15, Sakari Ailus > wrote: > > > > Hi Krzysztof, > > > > On Wed, Sep 23, 2020 at 05:21:26PM +0200, Krzysztof Kozlowski wrote: > > > Add bindings for the IMX258 camera sensor. The bindings, just like

Re: [PATCH v4 1/4] dt-bindings: media: imx258: add bindings for IMX258 sensor

2020-09-29 Thread Sakari Ailus
On Tue, Sep 29, 2020 at 11:18:46AM +0200, Krzysztof Kozlowski wrote: > On Tue, 29 Sep 2020 at 11:15, Sakari Ailus > wrote: > > > > Hi Krzysztof, > > > > On Wed, Sep 23, 2020 at 05:21:26PM +0200, Krzysztof Kozlowski wrote: > > > Add bindings for the IMX258 camera sensor. The bindings, just like

Re: [PATCH v2 1/9] lib: string_helpers: provide kfree_strarray()

2020-09-29 Thread Bartosz Golaszewski
On Tue, Sep 29, 2020 at 10:49 AM Andy Shevchenko wrote: > > On Tue, Sep 29, 2020 at 08:10:10AM +, David Laight wrote: > > From: Joe Perches > > > Sent: 28 September 2020 17:07 > > > > > > On Mon, 2020-09-28 at 18:02 +0200, Bartosz Golaszewski wrote: > > > > On Mon, Sep 28, 2020 at 5:59 PM Joe

Re: [PATCH 0/3] Prevent out-of-bounds access for built-in font data buffers

2020-09-29 Thread Peilin Ye
On Tue, Sep 29, 2020 at 11:09:45AM +0200, Daniel Vetter wrote: > If you want to follow along a bit I think would be good to subscribe to > the dri-devel mailing list. At least for all the fbcon/fbdev/gpu stuff. > > I don't think there's a dedicated list for vt/console stuff, aside from > Greg's

Re: [f2fs-dev] [PATCH v2 1/2] f2fs: compress: introduce page array slab cache

2020-09-29 Thread Jaegeuk Kim
On 09/29, Chao Yu wrote: > On 2020/9/29 17:15, Chao Yu wrote: > > On 2020/9/29 16:47, Jaegeuk Kim wrote: > > > On 09/29, Chao Yu wrote: > > > > On 2020/9/29 16:23, Jaegeuk Kim wrote: > > > > > I found a bug related to the number of page pointer allocation > > > > > related to > > > > > nr_cpages.

Re: [RFC PATCH net-next] sfc: replace in_interrupt() usage

2020-09-29 Thread Martin Habets
On Mon, Sep 28, 2020 at 09:05:52PM +0100, Edward Cree wrote: > efx_ef10_try_update_nic_stats_vf() used in_interrupt() to figure out > whether it is safe to sleep (for MCDI) or not. > The only caller from which it was not is efx_net_stats(), which can be > invoked under dev_base_lock from

Re: [PATCH v4 1/4] dt-bindings: media: imx258: add bindings for IMX258 sensor

2020-09-29 Thread Krzysztof Kozlowski
On Tue, Sep 29, 2020 at 12:40:46PM +0300, Sakari Ailus wrote: > On Tue, Sep 29, 2020 at 11:18:46AM +0200, Krzysztof Kozlowski wrote: > > On Tue, 29 Sep 2020 at 11:15, Sakari Ailus > > wrote: > > > > > > Hi Krzysztof, > > > > > > On Wed, Sep 23, 2020 at 05:21:26PM +0200, Krzysztof Kozlowski

Re: [PATCH v2] dt-bindings: mfd: correct interrupt flags in examples

2020-09-29 Thread Lee Jones
On Thu, 17 Sep 2020, Krzysztof Kozlowski wrote: > GPIO_ACTIVE_x flags are not correct in the context of interrupt flags. > These are simple defines so they could be used in DTS but they will not > have the same meaning: > 1. GPIO_ACTIVE_HIGH = 0 = IRQ_TYPE_NONE > 2. GPIO_ACTIVE_LOW = 1 =

Re: [PATCH v2] dt-bindings: mfd: correct interrupt flags in examples

2020-09-29 Thread Lee Jones
On Thu, 17 Sep 2020, Krzysztof Kozlowski wrote: > GPIO_ACTIVE_x flags are not correct in the context of interrupt flags. > These are simple defines so they could be used in DTS but they will not > have the same meaning: > 1. GPIO_ACTIVE_HIGH = 0 = IRQ_TYPE_NONE > 2. GPIO_ACTIVE_LOW = 1 =

Re: [PATCH 2/6] dt-bindings: can: mcp25xxfd: document device tree bindings

2020-09-29 Thread Geert Uytterhoeven
Hi Manivannan, Oleksij, On Thu, Sep 10, 2020 at 11:37 PM Manivannan Sadhasivam wrote: > From: Oleksij Rempel > > This patch adds the device-tree binding documentation for the Microchip > MCP25xxFD SPI CAN controller family. > > Signed-off-by: Oleksij Rempel > Signed-off-by: Marc Kleine-Budde

Re: [PATCH 2/5 V2] PCI: pciehp: check and wait port status out of DPC before handling DLLSC and PDC

2020-09-29 Thread Ethan Zhao
On Tue, Sep 29, 2020 at 4:29 PM Lukas Wunner wrote: > > On Sun, Sep 27, 2020 at 11:27:46AM -0400, Sinan Kaya wrote: > > On 9/26/2020 11:28 PM, Ethan Zhao wrote: > > > --- a/drivers/pci/hotplug/pciehp_hpc.c > > > +++ b/drivers/pci/hotplug/pciehp_hpc.c > > > @@ -710,8 +710,10 @@ static irqreturn_t

Re: [PATCH mfd] mfd: asic3: build if COMPILE_TEST=y

2020-09-29 Thread Lee Jones
On Thu, 17 Sep 2020, Marek Behún wrote: > Build this driver on another platforms if COMPILE_TEST=y. Another > drivers may depend on this, for example leds-asic3. > > Signed-off-by: Marek Behún > Cc: Lee Jones > Cc: Pavel Machek > Cc: Phil Blundell > Cc: Samuel Ortiz > --- >

[PATCH v2 3/4] drm/qxl: handle shadow in primary destroy

2020-09-29 Thread Gerd Hoffmann
qxl_primary_atomic_disable must check whenever the framebuffer bo has a shadow surface and in case it has check the shadow primary status. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_display.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/qxl/qxl_display.c

Re: [PATCH 1/3] mfd: intel_pmt: Add OOBMSM device ID

2020-09-29 Thread Lee Jones
On Fri, 11 Sep 2020, David E. Box wrote: > Add Out of Band Management Services Module device ID to Intel PMT driver. > > Signed-off-by: Alexander Duyck > Signed-off-by: David E. Box > --- > drivers/mfd/intel_pmt.c | 4 > 1 file changed, 4 insertions(+) > > diff --git

[PATCH v2 4/4] drm/qxl: use qxl pin function

2020-09-29 Thread Gerd Hoffmann
Otherwise ttm throws a WARN because we try to pin without a reservation. Fixes: 9d36d4320462 ("drm/qxl: switch over to the new pin interface") Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 2/4] drm/qxl: release shadow on shutdown

2020-09-29 Thread Gerd Hoffmann
In case we have a shadow surface on shutdown release it so it doesn't leak. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_display.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/qxl_display.c index

[PATCH v2 1/4] drm/qxl: use drmm_mode_config_init

2020-09-29 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann Reviewed-by: Daniel Vetter --- drivers/gpu/drm/qxl/qxl_display.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/qxl_display.c index 65de1f69af58..5bef8f121e54 100644 ---

linux-next: Signed-off-by missing for commit in the arm64 tree

2020-09-29 Thread Stephen Rothwell
Hi all, Commits 9a313c5d65a5 ("arm64: Get rid of arm64_ssbd_state") d48ecc90a0e1 ("KVM: arm64: Convert ARCH_WORKAROUND_2 to arm64_get_spectre_v4_state()") 780bb94b072e ("KVM: arm64: Get rid of kvm_arm_have_ssbd()") 2197c8674ce3 ("KVM: arm64: Simplify handling of ARCH_WORKAROUND_2")

[rcu:urezki-pcount.2020.09.28c] BUILD SUCCESS 71aa30d791cf3ca748f72dcb22fab9e0f70a246f

2020-09-29 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git urezki-pcount.2020.09.28c branch HEAD: 71aa30d791cf3ca748f72dcb22fab9e0f70a246f fixup! rcu/tree: Allocate a page when caller is preemptable elapsed time: 824m configs tested: 128 configs skipped: 2 The

Re: [PATCH v2] dt-bindings: mfd: correct interrupt flags in examples

2020-09-29 Thread Krzysztof Kozlowski
On Tue, Sep 29, 2020 at 10:46:57AM +0100, Lee Jones wrote: > On Thu, 17 Sep 2020, Krzysztof Kozlowski wrote: > > > GPIO_ACTIVE_x flags are not correct in the context of interrupt flags. > > These are simple defines so they could be used in DTS but they will not > > have the same meaning: > > 1.

Re: [PATCH v2 for v5.9] mm/page_alloc: handle a missing case for memalloc_nocma_{save/restore} APIs

2020-09-29 Thread Michal Hocko
On Tue 29-09-20 17:38:43, Joonsoo Kim wrote: > 2020년 9월 29일 (화) 오후 5:08, Michal Hocko 님이 작성: > > > > On Mon 28-09-20 17:50:46, Joonsoo Kim wrote: > > > From: Joonsoo Kim > > > > > > memalloc_nocma_{save/restore} APIs can be used to skip page allocation > > > on CMA area, but, there is a missing

linux-next: Fixes tag needs some work in the ext4 tree

2020-09-29 Thread Stephen Rothwell
Hi all, In commit 424de74af0d0 ("ext4: implement swap_activate aops using iomap") Fixes tag Fixes: ac58e4fb03f ("ext4: move ext4 bmap to use iomap infrastructure") has these problem(s): - SHA1 should be at least 12 digits long Can be fixed by setting core.abbrev to 12 (or more) or

Re: [PATCH] sched,fair: use list_for_each_entry() in print_cfs_stats()

2020-09-29 Thread Dietmar Eggemann
On 25/09/2020 21:10, Hui Su wrote: > Macro for_each_leaf_cfs_rq_safe() use list_for_each_entry_safe(), > which can against removal of list entry, but we only > print the cfs_rq data and won't remove the list entry in > print_cfs_stats(). > > Thus, add macro for_each_leaf_cfs_rq() based on >

Re: REGRESSION: in intel video driver following introduction of mm_struct.has_pinned

2020-09-29 Thread Joonas Lahtinen
(+ intel-gfx for being i915 related) (+ Chris who has looked into the issue) Hi, Thanks for reporting! Could you open a bug report according to following instructions: https://gitlab.freedesktop.org/drm/intel/-/wikis/How-to-file-i915-bugs A full dmesg of a bad boot and git bisect logs will be

[RFC PATCH 1/3] mtd: spi-nor: Introduce SNOR_F_IO_MODE_EN_VOLATILE

2020-09-29 Thread Tudor Ambarus
We don't want to enter a stateful mode, where a X-X-X I/O mode is entered by setting a non-volatile bit, because in case of a reset or a crash, once in the non-volatile mode, we may not be able to recover in bootloaders and we may break the SPI NOR boot. Forbid by default the I/O modes that are

Re: Keyboard regression by intel-vbtn

2020-09-29 Thread Barnabás Pőcze
Hi, 2020. szeptember 29., kedd 11:29 keltezéssel, Takashi Iwai írta: > On Tue, 29 Sep 2020 11:21:27 +0200, > Hans de Goede wrote: > > > Hi, > > On 9/29/20 10:48 AM, Takashi Iwai wrote: > > > > > Hi Hans, > > > it seems that the recent update of intel-vtn broke the keyboard input > > > on some

[RFC PATCH 3/3] mtd: spi-nor: Parse SFDP SCCR Map

2020-09-29 Thread Tudor Ambarus
Parse just the 22nd dword and look for the 'DTR Octal Mode Enable Volatile bit'. SPI_NOR_IO_MODE_EN_VOLATILE should be set just for the flashes that don't define the optional SFDP SCCR Map. For the others, let the SFDP do its job and fill the SNOR_F_IO_MODE_EN_VOLATILE flag. We avoid this way

[RFC PATCH 0/3] mtd: spi-nor: Tackle stateful modes

2020-09-29 Thread Tudor Ambarus
My biggest concern with Pratyush's patches is that the stateful modes case (X-X-X modes that are entered via a non-volatile bit) is not handled. This is an attempt to tackle this problem. Reasons and explanations in the commit messages. Tudor Ambarus (3): mtd: spi-nor: Introduce

[RFC PATCH 2/3] mtd: spi-nor: Introduce MTD_SPI_NOR_ALLOW_STATEFUL_MODES

2020-09-29 Thread Tudor Ambarus
Some users may teach their bootloaders to discover and recover a flash even when left in a statefull mode (a X-X-X I/O mode that is configured via a non-volatile bit). Provide a way for those users to enter in stateful modes. A reset or a crash will leave the flash in full I/O mode and if the

RE: [PATCH v6] mm/zswap: move to use crypto_acomp API for hardware acceleration

2020-09-29 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Sebastian Andrzej Siewior [mailto:bige...@linutronix.de] > Sent: Tuesday, September 29, 2020 10:31 PM > To: Song Bao Hua (Barry Song) > Cc: a...@linux-foundation.org; herb...@gondor.apana.org.au; > da...@davemloft.net; linux-cry...@vger.kernel.org;

[PATCH v3 0/2] Add device tree support for LX2162AQDS board

2020-09-29 Thread meenakshi . aggarwal
From: Meenakshi Aggarwal LX2162A has same die as of LX2160A with different packaging. Changes: v2: - divided patch into two, binding and dts support v3: - incorporated review comments on voltage regulator node Meenakshi Aggarwal (2): dt-bindings: arm64: add

[PATCH v3 2/2] arm64: dts: lx2160a: add device tree for lx2162aqds board

2020-09-29 Thread meenakshi . aggarwal
From: Meenakshi Aggarwal Add device tree support for LX2162AQDS board. LX2162A has same die as of LX2160A with different packaging. Signed-off-by: Ioana Ciornei Signed-off-by: Kuldeep Singh Signed-off-by: Meenakshi Aggarwal --- arch/arm64/boot/dts/freescale/Makefile| 1 +

[PATCH v3 1/2] dt-bindings: arm64: add compatible for LX2162A QDS Board

2020-09-29 Thread meenakshi . aggarwal
From: Meenakshi Aggarwal Add support for LX2162A, LX2162A is LX2160A based SoC. Signed-off-by: Meenakshi Aggarwal Acked-by: Rob Herring --- Documentation/devicetree/bindings/arm/fsl.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml

[gustavoars-linux:testing/fam1-fddi] BUILD SUCCESS ce71a10ee8f3bc7ead17c4a4333d6a57455bde2b

2020-09-29 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git testing/fam1-fddi branch HEAD: ce71a10ee8f3bc7ead17c4a4333d6a57455bde2b fddi/skfp: Avoid the use of one-element array elapsed time: 723m configs tested: 141 configs skipped: 2 The following configs have been

Re: [PATCH 2/6] dt-bindings: can: mcp25xxfd: document device tree bindings

2020-09-29 Thread Marc Kleine-Budde
On 9/29/20 11:46 AM, Geert Uytterhoeven wrote: > Hi Manivannan, Oleksij, > > On Thu, Sep 10, 2020 at 11:37 PM Manivannan Sadhasivam > wrote: >> From: Oleksij Rempel >> >> This patch adds the device-tree binding documentation for the Microchip >> MCP25xxFD SPI CAN controller family. >> >>

[PATCH v3 01/10] lib: string_helpers: provide kfree_strarray()

2020-09-29 Thread Bartosz Golaszewski
From: Bartosz Golaszewski There's a common pattern of dynamically allocating an array of char pointers and then also dynamically allocating each string in this array. Provide a helper for freeing such a string array with one call. Signed-off-by: Bartosz Golaszewski Reviewed-by: Andy Shevchenko

[PATCH v3 02/10] Documentation: gpio: add documentation for gpio-mockup

2020-09-29 Thread Bartosz Golaszewski
From: Bartosz Golaszewski There's some documentation for gpio-mockup's debugfs interface in the driver's source but it's not much. Add proper documentation for this testing module. Signed-off-by: Bartosz Golaszewski Reviewed-by: Andy Shevchenko --- .../admin-guide/gpio/gpio-mockup.rst

[PATCH v3 06/10] gpio: mockup: remove unneeded return statement

2020-09-29 Thread Bartosz Golaszewski
From: Bartosz Golaszewski There's a return; at the end of a void function. This is not needed so remove it. Signed-off-by: Bartosz Golaszewski Reviewed-by: Andy Shevchenko --- drivers/gpio/gpio-mockup.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpio/gpio-mockup.c

[PATCH v3 09/10] gpio: mockup: use the generic 'gpio-line-names' property

2020-09-29 Thread Bartosz Golaszewski
From: Bartosz Golaszewski GPIO line names are currently created by the driver from the chip label. We'll want to support custom formats for line names (for instance: to name all lines the same) for user-space tests so create them in the module init function and pass them to the driver using the

[PATCH v3 07/10] gpio: mockup: increase the number of supported device properties

2020-09-29 Thread Bartosz Golaszewski
From: Bartosz Golaszewski The driver actually supports 4 properties but we only ever set up up to three. This will change however in upcoming patches so increase the number of really (as in: the number the property array can hold) supported properties to 4. Signed-off-by: Bartosz Golaszewski

[PATCH v3 10/10] gpio: mockup: refactor the module init function

2020-09-29 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Let's move the code preparing the device properties into a separate routine. This has the advantage of simplifying the error handling and makes the indentation less deep. Signed-off-by: Bartosz Golaszewski Reviewed-by: Andy Shevchenko --- drivers/gpio/gpio-mockup.c

[PATCH v3 04/10] gpio: mockup: use KBUILD_MODNAME

2020-09-29 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Drop the definition for the driver name. Let's use KBUILD_MODNAME for the log format and use the "gpio-mockup" value directly in the only place where it's relevant: in the name of the device. Signed-off-by: Bartosz Golaszewski Reviewed-by: Andy Shevchenko ---

[PATCH v3 08/10] gpio: mockup: pass the chip label as device property

2020-09-29 Thread Bartosz Golaszewski
From: Bartosz Golaszewski While we do check the "chip-name" property in probe(), we never actually use it. Let's pass the chip label to the driver using device properties as we'll want to allow users to define their own once dynamically created chips are supported. The property is renamed to

[PATCH v3 05/10] gpio: mockup: use pr_fmt()

2020-09-29 Thread Bartosz Golaszewski
From: Bartosz Golaszewski We don't need a custom logging helper. Let's use the standard pr_fmt() macro which allows us to use all pr_*() routines with custom format. Signed-off-by: Bartosz Golaszewski Reviewed-by: Andy Shevchenko --- drivers/gpio/gpio-mockup.c | 8 1 file changed, 4

[PATCH v3 03/10] gpio: mockup: drop unneeded includes

2020-09-29 Thread Bartosz Golaszewski
From: Bartosz Golaszewski This module doesn't need gpio/consumer.h - it's a provider. It also doesn't use any symbols from init.h so let's remove both includes. Signed-off-by: Bartosz Golaszewski Reviewed-by: Andy Shevchenko --- drivers/gpio/gpio-mockup.c | 2 -- 1 file changed, 2

[PATCH v3 00/10] gpio: mockup: refactoring + documentation

2020-09-29 Thread Bartosz Golaszewski
From: Bartosz Golaszewski These patches were part of the bigger overhaul of gpio-mockup but since the initial idea was dropped in favor of using configfs + sysfs in the future I thought I'd resent just the refactoring of the existing code + documentation patches. I think it's good to apply them

Re: [PATCH v1 3/5] mm/page_alloc: always move pages to the tail of the freelist in unset_migratetype_isolate()

2020-09-29 Thread David Hildenbrand
On 29.09.20 11:18, Wei Yang wrote: > On Mon, Sep 28, 2020 at 08:21:08PM +0200, David Hildenbrand wrote: >> Page isolation doesn't actually touch the pages, it simply isolates >> pageblocks and moves all free pages to the MIGRATE_ISOLATE freelist. >> >> We already place pages to the tail of the

Re: [PATCH v1 4/5] mm/page_alloc: place pages to tail in __free_pages_core()

2020-09-29 Thread David Hildenbrand
On 29.09.20 11:36, Wei Yang wrote: > On Mon, Sep 28, 2020 at 08:21:09PM +0200, David Hildenbrand wrote: >> __free_pages_core() is used when exposing fresh memory to the buddy >> during system boot and when onlining memory in generic_online_page(). >> >> generic_online_page() is used in two cases:

Re: [PATCH 2/5 V2] PCI: pciehp: check and wait port status out of DPC before handling DLLSC and PDC

2020-09-29 Thread Lukas Wunner
On Tue, Sep 29, 2020 at 05:46:41PM +0800, Ethan Zhao wrote: > On Tue, Sep 29, 2020 at 4:29 PM Lukas Wunner wrote: > > On Sun, Sep 27, 2020 at 11:27:46AM -0400, Sinan Kaya wrote: > > > On 9/26/2020 11:28 PM, Ethan Zhao wrote: > > > > --- a/drivers/pci/hotplug/pciehp_hpc.c > > > > +++

Re: [RFC-PATCH 2/4] mm: Add __rcu_alloc_page_lockless() func.

2020-09-29 Thread Vlastimil Babka
On 9/18/20 9:48 PM, Uladzislau Rezki (Sony) wrote: > Some background and kfree_rcu() > === > The pointers to be freed are stored in the per-cpu array to improve > performance, to enable an easier-to-use API, to accommodate vmalloc > memmory and to support a single

Re: Keyboard regression by intel-vbtn

2020-09-29 Thread Hans de Goede
Hi, On 9/29/20 11:59 AM, Barnabás Pőcze wrote: Oohoo, what a wonderful world :) Splendid world, indeed. I'm wondering, however, why the incorrect state is reported? Is it similar to the linked issue on the Manjaro forum, where a different bit is seemingly used to report the tablet mode

build failure (BTFIDS) with CONFIG_NET && !CONFIG_INET

2020-09-29 Thread Michal Kubecek
Hello, our builds of s390x for zfcpdump fail since 5.9-rc1 with BTFIDS vmlinux FAILED unresolved symbol tcp_timewait_sock make[1]: *** [/home/abuild/rpmbuild/BUILD/kernel-zfcpdump-5.9.rc7/linux-5.9-rc7/Makefile:1176: vmlinux] Error 255 I believe this is caused by commit fce557bcef11

RE: [PATCH] hwmon: add support for SMSC EMC2305/03/02/01 fan controller

2020-09-29 Thread Biwen Li (OSS)
> > + > > + hwmon_dev = devm_hwmon_device_register_with_groups(>dev, > > + client->name, data, > > + data->groups); > > New drivers must use "[devm_]hwmon_device_register_with_info" to

[PATCH v2] net/mlx5e: Fix use of freed pointer

2020-09-29 Thread Alex Dewar
If the call to mlx5_fc_create() fails, then shared_counter will be freed before its member, shared_counter->counter, is accessed to retrieve the error code. Fix by using an intermediate variable. Addresses-Coverity: CID 1497153: Memory - illegal accesses (USE_AFTER_FREE) Fixes: 1edae2335adf

Re: [PATCH blk-next 1/2] blk-mq-rdma: Delete not-used multi-queue RDMA map queue code

2020-09-29 Thread Christoph Hellwig
On Tue, Sep 29, 2020 at 12:13:57PM +0300, Leon Romanovsky wrote: > From: Leon Romanovsky > > The RDMA vector affinity code is not backed up by any driver and always > returns NULL to every ib_get_vector_affinity() call. > > This means that blk_mq_rdma_map_queues() always takes fallback path. >

Re: WARNING in __kernel_read (2)

2020-09-29 Thread Christoph Hellwig
On Tue, Sep 29, 2020 at 10:21:19AM +0200, Dmitry Vyukov wrote: > On Tue, Sep 29, 2020 at 10:06 AM David Laight wrote: > > > > From: Christoph Hellwig > > > Sent: 29 September 2020 07:56 > > > > > > On Mon, Sep 28, 2020 at 11:46:48PM -0700, Eric Biggers wrote: > > > > > Linus asked for it. What

Re: [PATCH V2 1/4] misc: vop: change the way of allocating vring

2020-09-29 Thread Christoph Hellwig
> + vr->va = dma_alloc_coherent(vop_dev(vdev), vr_size, _addr, > GFP_KERNEL); Please stick to 80 character lines unless you have a really good reason not to.

Re: [PATCH V2 2/4] misc: vop: do not allocate and reassign the used ring

2020-09-29 Thread Christoph Hellwig
> diff --git a/include/uapi/linux/mic_common.h b/include/uapi/linux/mic_common.h > index 504e523f702c..e680fe27af69 100644 > --- a/include/uapi/linux/mic_common.h > +++ b/include/uapi/linux/mic_common.h > @@ -56,8 +56,6 @@ struct mic_device_desc { > * @vdev_reset: Set to 1 by guest to indicate

Re: [PATCH v9 1/2] x86, powerpc: Rename memcpy_mcsafe() to copy_mc_to_{user, kernel}()

2020-09-29 Thread Borislav Petkov
On Wed, Sep 23, 2020 at 09:41:33AM -0700, Dan Williams wrote: > The rename replaces a single top-level memcpy_mcsafe() with either > copy_mc_to_user(), or copy_mc_to_kernel(). What is "copy_mc" supposed to mean? Especially if it is called that on two arches... > diff --git a/arch/x86/Kconfig

Re: [PATCH v3 2/3] misc: bcm-vk: add Broadcom VK driver

2020-09-29 Thread Greg Kroah-Hartman
On Mon, Sep 28, 2020 at 05:22:12PM -0700, Scott Branden wrote: > > > On 2020-09-24 2:40 p.m., Scott Branden wrote: > > Hi Greg, > > > > Responses below.  I'll send out the split up patches hopefully > > today/tomorrow > > which may make it a bit easier to understand/comment on. > > > > > I have

Re: [PATCH v4 01/16] bcm-vk: add bcm_vk UAPI

2020-09-29 Thread Greg Kroah-Hartman
On Mon, Sep 28, 2020 at 05:11:54PM -0700, Scott Branden wrote: > Add user space api for bcm-vk driver. > > Provide ioctl api to load images and issue reset command to card. > FW status registers in PCI BAR space also defined as part > of API so that user space is able to interpret these memory

Re: [PATCH V2 3/4] misc: vop: simply return the saved dma address instead of virt_to_phys

2020-09-29 Thread Christoph Hellwig
On Tue, Sep 29, 2020 at 04:44:24PM +0800, Sherry Sun wrote: > The device page and vring should use consistent memory which are > allocated by dma_alloc_coherent api, when user space wants to get its > physical address, virt_to_phys cannot be used, should simply return the > saved device page dma

Re: [PATCH v4 02/16] misc: bcm-vk: add Broadcom VK driver

2020-09-29 Thread Greg Kroah-Hartman
On Mon, Sep 28, 2020 at 05:11:55PM -0700, Scott Branden wrote: > Add initial version of Broadcom VK driver to enumerate PCI device IDs > of Valkyrie and Viper device IDs. > > VK based cards provide real-time high performance, high throughput, > low latency offload compute engine operations. >

Re: [PATCH V2 4/4] misc: vop: mapping kernel memory to user space as noncached

2020-09-29 Thread Christoph Hellwig
On Tue, Sep 29, 2020 at 04:44:25PM +0800, Sherry Sun wrote: > Mapping kernel space memory to user space as noncached, since user space > need check the updates of avail_idx and device page flags timely. > > Signed-off-by: Joakim Zhang > Signed-off-by: Sherry Sun > --- >

Re: [PATCH] misc: vop: set VIRTIO_F_ACCESS_PLATFORM for vop driver

2020-09-29 Thread Christoph Hellwig
On Tue, Sep 29, 2020 at 04:49:44PM +0800, Sherry Sun wrote: > Set VIRTIO_F_ACCESS_PLATFORM feature for vop driver, as the DMA mapping > details shouldn't decide on the virtio implementation, but the host PCIe > implementatio > > > Signed-off-by: Sherry Sun > Signed-off-by: Joakim Zhang Looks

Re: [PATCH v6] mm/zswap: move to use crypto_acomp API for hardware acceleration

2020-09-29 Thread Sebastian Andrzej Siewior
On 2020-09-29 10:02:15 [+], Song Bao Hua (Barry Song) wrote: > > My point was that there will be a warning at run-time and you don't want > > that. There are raw_ accessors if you know what you are doing. But… > > I have only seen get_cpu_ptr/var() things will disable preemption. I don't >

Re: [PATCH v5] Introduce support for Systems Management Driver over WMI for Dell Systems

2020-09-29 Thread Hans de Goede
Hi, On 9/29/20 4:55 AM, Divya Bharathi wrote: The Dell WMI Systems Management Driver provides a sysfs interface for systems management to enable BIOS configuration capability on certain Dell Systems. This driver allows user to configure Dell systems with a uniform common interface. To

Re: [PATCH v4 06/16] misc: bcm-vk: add ttyVK support

2020-09-29 Thread Greg Kroah-Hartman
On Mon, Sep 28, 2020 at 05:11:59PM -0700, Scott Branden wrote: > Add ttyVK support to driver to allow console access to VK card from host. > > Device node will be in the follow form /dev/bcm-vk.x_ttyVKy where: > x is the instance of the VK card > y is the tty device number on the VK card > >

Re: [PATCH v2 0/5] usb: dwc-meson-g12a: Add support for USB on S400 board

2020-09-29 Thread Felipe Balbi
Neil Armstrong writes: > Hi Felipe, > > Is there anything to change in this serie ? I've been waiting for Kishon's review of drivers/phy parts. I can take the rest, but without Kishon's ack, drivers/phy will be left out. -- balbi signature.asc Description: PGP signature

[PATCH v4 0/2] PCI: dwc: fix two MSI issues

2020-09-29 Thread Jisheng Zhang
Fix two MSI issues. One to skip PCIE_MSI_INTR0* programming if MSI is disabled, another to use an address in the driver data for MSI address, to fix the MSI page leakage during suspend/resume. Since v3: - add Acked-by tag - change patch2 commit msg to make it more clear - map the MSI msg

Re: [PATCH blk-next 1/2] blk-mq-rdma: Delete not-used multi-queue RDMA map queue code

2020-09-29 Thread Leon Romanovsky
On Tue, Sep 29, 2020 at 12:20:46PM +0200, Christoph Hellwig wrote: > On Tue, Sep 29, 2020 at 12:13:57PM +0300, Leon Romanovsky wrote: > > From: Leon Romanovsky > > > > The RDMA vector affinity code is not backed up by any driver and always > > returns NULL to every ib_get_vector_affinity() call.

[PATCH v4 1/2] PCI: dwc: Skip PCIE_MSI_INTR0* programming if MSI is disabled

2020-09-29 Thread Jisheng Zhang
If MSI is disabled, there's no need to program PCIE_MSI_INTR0_MASK and PCIE_MSI_INTR0_ENABLE registers. Signed-off-by: Jisheng Zhang Reviewed-by: Rob Herring Acked-by: Gustavo Pimentel --- drivers/pci/controller/dwc/pcie-designware-host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH v4 2/2] PCI: dwc: Fix MSI page leakage in suspend/resume

2020-09-29 Thread Jisheng Zhang
Currently, dw_pcie_msi_init() allocates and maps page for msi, then program the PCIE_MSI_ADDR_LO and PCIE_MSI_ADDR_HI. The Root Complex may lose power during suspend-to-RAM, so when we resume, we want to redo the latter but not the former. If designware based driver (for example, pcie-tegra194.c)

Re: [PATCH v2 4/7] KVM: x86: hyper-v: always advertise HV_STIMER_DIRECT_MODE_AVAILABLE

2020-09-29 Thread Vitaly Kuznetsov
Paolo Bonzini writes: > On 24/09/20 16:57, Vitaly Kuznetsov wrote: >> HV_STIMER_DIRECT_MODE_AVAILABLE is the last conditionally set feature bit >> in KVM_GET_SUPPORTED_HV_CPUID but it doesn't have to be conditional: first, >> this bit is only an indication to userspace VMM that direct mode

[rcu:urezki-pcount.2020.09.28e] BUILD SUCCESS c33a83102cc2b9e4d6affc888e4f744d4beefe9a

2020-09-29 Thread kernel test robot
sts x86_64 defconfig x86_64 rhel-8.3 x86_64 kexec clang tested configs: x86_64 randconfig-a005-20200929 x86_64 randconfig-a003-20200929 x86_64 randconfig-a004-20200

[PATCH v3 3/5] usb: dwc3: qcom: Configure wakeup interrupts and set genpd active wakeup flag

2020-09-29 Thread Sandeep Maheswaram
Configure interrupts based on hs_phy_flag to avoid triggering of interrupts during system suspend and suspends successfully. Set genpd active wakeup flag for usb gdsc if wakeup capable devices are connected so that wake up happens without reenumeration. Signed-off-by: Sandeep Maheswaram ---

[PATCH v3 0/5] USB DWC3 host wake up support from system suspend

2020-09-29 Thread Sandeep Maheswaram
Avoiding phy powerdown in host mode so that it can be wake up by devices. Set GENPD_FLAG_ACTIVE_WAKEUP flag to keep usb30_prim gdsc active when wakeup capable devices are connected to the host. Using PDC interrupts instead of GIC interrupst to support wakeup in xo shutdown case. Changes in v3:

[PATCH v3 5/5] arm64: dts: qcom: sc7180: Add wakeup-source property for USB controller node

2020-09-29 Thread Sandeep Maheswaram
Adding wakeup-source property for USB controller for SC7180 boards. Signed-off-by: Sandeep Maheswaram --- arch/arm64/boot/dts/qcom/sc7180-idp.dts | 1 + arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 1 + 2 files changed, 2 insertions(+) diff --git

[PATCH v3 2/5] usb: dwc3: host: Add suspend_quirk for dwc3 host

2020-09-29 Thread Sandeep Maheswaram
Adding suspend quirk function for dwc3 host which will be called during xhci suspend. Setting hs_phy_flags, ss_phy_flags and phy mode during host suspend. Signed-off-by: Sandeep Maheswaram --- drivers/usb/dwc3/host.c | 49 + 1 file changed, 49

[PATCH v3 1/5] usb: dwc3: core: Host wake up support from system suspend

2020-09-29 Thread Sandeep Maheswaram
Avoiding phy powerdown in host mode so that it can be wake up by devices. Added hs_phy_flags and ss_phy_flags to check connection status and set phy mode and configure interrupts. Signed-off-by: Sandeep Maheswaram --- drivers/usb/dwc3/core.c | 14 +++--- drivers/usb/dwc3/core.h | 3 +++

Re: [PATCH 3/5] PCI/ERR: get device before call device driver to avoid null pointer reference

2020-09-29 Thread Andy Shevchenko
On Tue, Sep 29, 2020 at 05:38:00PM +0800, Ethan Zhao wrote: > On Tue, Sep 29, 2020 at 4:51 PM Andy Shevchenko > wrote: > > On Tue, Sep 29, 2020 at 10:35:14AM +0800, Ethan Zhao wrote: > > > Preferred style, there will be cleared comment in v6. > > > > Avoid top postings. > > > > > On Sat, Sep 26,

[PATCH v3 4/5] arm64: dts: qcom: sc7180: Use pdc interrupts for USB instead of GIC interrupts

2020-09-29 Thread Sandeep Maheswaram
Using pdc interrupts for USB instead of GIC interrupts to support wake up in case xo shutdown. Signed-off-by: Sandeep Maheswaram Reviewed-by: Stephen Boyd --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

Re: [PATCH v2 0/5] PCI: dwc: improve msi handling

2020-09-29 Thread Jisheng Zhang
Hi Jon, On Fri, 25 Sep 2020 09:53:45 +0100 Jon Hunter wrote: > > On 24/09/2020 12:05, Jisheng Zhang wrote: > > Improve the msi code: > > 1. Add proper error handling. > > 2. Move dw_pcie_msi_init() from each users to designware host to solve > > msi page leakage in resume path. > > Apologies

Re: [PATCH v3 01/10] lib: string_helpers: provide kfree_strarray()

2020-09-29 Thread Andy Shevchenko
On Tue, Sep 29, 2020 at 12:09:55PM +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > There's a common pattern of dynamically allocating an array of char > pointers and then also dynamically allocating each string in this > array. Provide a helper for freeing such a string array

Re: [PATCH] USB: serial: pl2303: add device-id for HP GC device

2020-09-29 Thread Johan Hovold
On Thu, Sep 24, 2020 at 02:27:45PM +0800, Scott Chen wrote: > This is adds a device id for HP LD381 which is a pl2303GC-base device. > > Signed-off-by: Scott Chen Applied, thanks. Johan

Re: [PATCH v2 0/5] usb: dwc-meson-g12a: Add support for USB on S400 board

2020-09-29 Thread Neil Armstrong
On 29/09/2020 12:33, Felipe Balbi wrote: > Neil Armstrong writes: > >> Hi Felipe, >> >> Is there anything to change in this serie ? > > I've been waiting for Kishon's review of drivers/phy parts. I can take > the rest, but without Kishon's ack, drivers/phy will be left out. > No problem,

Re: [PATCH] vt_ioctl: make VT_RESIZEX behave like VT_RESIZE

2020-09-29 Thread Martin Hostettler
On Tue, Sep 29, 2020 at 10:12:46AM +0900, Tetsuo Handa wrote: > On 2020/09/29 2:59, Martin Hostettler wrote: > > On Sun, Sep 27, 2020 at 08:46:30PM +0900, Tetsuo Handa wrote: > >> VT_RESIZEX was introduced in Linux 1.3.3, but it is unclear that what > >> comes to the "+ more" part, and I couldn't

Re: [PATCH v3 07/10] gpio: mockup: increase the number of supported device properties

2020-09-29 Thread Andy Shevchenko
On Tue, Sep 29, 2020 at 12:10:01PM +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > The driver actually supports 4 properties but we only ever set up up to > three. This will change however in upcoming patches so increase the > number of really (as in: the number the property

Re: [PATCH v2 4/4] drm/qxl: use qxl pin function

2020-09-29 Thread Daniel Vetter
On Tue, Sep 29, 2020 at 11:51:15AM +0200, Gerd Hoffmann wrote: > Otherwise ttm throws a WARN because we try to pin without a reservation. > > Fixes: 9d36d4320462 ("drm/qxl: switch over to the new pin interface") > Signed-off-by: Gerd Hoffmann > --- > drivers/gpu/drm/qxl/qxl_object.c | 2 +- > 1

Re: [PATCH v3 07/15] arm64: dts: xilinx: align GPIO hog names with dtschema

2020-09-29 Thread Michal Simek
On 16. 09. 20 17:57, Krzysztof Kozlowski wrote: > The convention for node names is to use hyphens, not underscores. > dtschema for pca95xx expects GPIO hogs to end with 'hog' prefix. > > Signed-off-by: Krzysztof Kozlowski > --- > arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts | 8

Re: [PATCH v3 08/10] gpio: mockup: pass the chip label as device property

2020-09-29 Thread Andy Shevchenko
On Tue, Sep 29, 2020 at 12:10:02PM +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > While we do check the "chip-name" property in probe(), we never actually > use it. Let's pass the chip label to the driver using device properties > as we'll want to allow users to define their

Re: [PATCH 0/2] Enable support IPI_CPU_CRASH_STOP to be pseudo-NMI

2020-09-29 Thread Marc Zyngier
On 2020-09-29 06:50, ito-yui...@fujitsu.com wrote: Hi Marc [...] >> The patch has been tested on ThunderX. Which ThunderX? TX2 (at least the incarnation I used in the past) wasn't able to correctly deal with priorities. I tried it with ThunderX CN8890. If you tell me steps to reproduce

Re: [PATCH] arm64: dts: zynqmp: Remove undocumented u-boot properties

2020-09-29 Thread Michal Simek
po 24. 8. 2020 v 10:28 odesílatel Michal Simek napsal: > > u-boot, DT properties are not documented anywhere in Linux DT binding > that's why remove them. > > Signed-off-by: Michal Simek > --- > > arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi | 5 - > arch/arm64/boot/dts/xilinx/zynqmp.dtsi

Re: [PATCH] arm64: dts: zynqmp: Rename buses to be align with simple-bus yaml

2020-09-29 Thread Michal Simek
po 24. 8. 2020 v 12:05 odesílatel Michal Simek napsal: > > Rename amba-apu and amba to AXI. Based on Xilinx ZynqMP TRM (Chapter 15) > chip is "using the advanced eXtensible interface (AXI) point-to-point > channels for communicating addresses, data, and response transactions > between master and

  1   2   3   4   5   6   7   8   9   10   >