[PATCH v7 5/7] mtd: spi-nor: intel: remove global protection flag

2020-12-02 Thread Michael Walle
For the Atmel and SST parts this flag was already moved to individual flash parts because it is considered bad esp. because newer flash chips will automatically inherit the "has locking" support. While this won't likely be the case for the Intel parts, we do it for consistency reasons.

[PATCH v7 6/7] mtd: spi-nor: atmel: fix unlock_all() for AT25FS010/040

2020-12-02 Thread Michael Walle
These flashes have some weird BP bits mapping which aren't supported in the current locking code. Just add a simple unlock op to unprotect the entire flash array which is needed for legacy behavior. Signed-off-by: Michael Walle --- changes since v6: - use spi_nor_write_sr_and_check() and log a

[PATCH v7 2/7] mtd: spi-nor: ignore errors in spi_nor_unlock_all()

2020-12-02 Thread Michael Walle
Just try to unlock the whole SPI-NOR flash array. Don't abort the probing in case of an error. Justifications: (1) For some boards, this just works because spi_nor_write_16bit_sr_and_check() is broken and just checks the second half of the 16bit. Once that will be fixed, SPI probe will

[PATCH v7 0/7] mtd: spi-nor: keep lock bits if they are non-volatile

2020-12-02 Thread Michael Walle
I bundled this as a series, because otherwise there will be conflicts because the "remove global protection flag" patches modify the same lines as the main patch. There are now two more patches: mtd: spi-nor: sst: fix BPn bits for the SST25VF064C mtd: spi-nor: ignore errors in

Re: [PATCH v9 2/2] fs: ext4: Modify inode-test.c to use KUnit parameterized testing feature

2020-12-02 Thread Shuah Khan
On 12/2/20 9:07 AM, Theodore Y. Ts'o wrote: On Mon, Nov 16, 2020 at 11:11:50AM +0530, Arpitha Raghunandan wrote: Modify fs/ext4/inode-test.c to use the parameterized testing feature of KUnit. Signed-off-by: Arpitha Raghunandan <98.a...@gmail.com> Signed-off-by: Marco Elver Acked-by:

Re: [PATCH v9 1/2] kunit: Support for Parameterized Testing

2020-12-02 Thread Shuah Khan
On 12/1/20 4:31 PM, Marco Elver wrote: On Tue, 1 Dec 2020 at 23:28, Shuah Khan wrote: On 11/30/20 3:22 PM, Brendan Higgins wrote: On Mon, Nov 23, 2020 at 11:25 PM David Gow wrote: On Mon, Nov 23, 2020 at 9:08 PM Marco Elver wrote: On Tue, 17 Nov 2020 at 08:21, David Gow wrote: On

Re: [PATCH v2 3/6] remoteproc/pru: Add support for PRU specific interrupt configuration

2020-12-02 Thread Mathieu Poirier
On Thu, Nov 19, 2020 at 03:08:47PM +0100, Grzegorz Jaszczyk wrote: > The firmware blob can contain optional ELF sections: .resource_table > section and .pru_irq_map one. The second one contains the PRUSS > interrupt mapping description, which needs to be setup before powering > on the PRU core. To

Re: [PATCH v0] ASoC: rsnd: core: Check convert rate in rsnd_hw_params

2020-12-02 Thread Kuninori Morimoto
Hi Mikhail Thank you for your patch > + switch (rsnd_mod_id(src_mod)) { > + /* > + * SRC0 can downsample 4, 6 and 8 channel audio up to 4 > times. > + * SRC1, SRC3 and SRC4 can downsample 4 channel audio > +

Re: [PATCH v12 10/15] PCI/ERR: Limit AER resets in pcie_do_recovery()

2020-12-02 Thread Kelley, Sean V
Hi Bjorn, > On Dec 2, 2020, at 1:27 PM, Bjorn Helgaas wrote: > > On Wed, Dec 02, 2020 at 08:53:54PM +, Kelley, Sean V wrote: >>> On Nov 30, 2020, at 4:25 PM, Bjorn Helgaas wrote: >>> On Mon, Nov 30, 2020 at 07:54:37PM +, Kelley, Sean V wrote: > - if (pcie_aer_is_native(bridge))

Re: [PATCH v7 1/8] block: ensure bios are not split in middle of crypto data unit

2020-12-02 Thread Satya Tangirala
On Wed, Nov 25, 2020 at 02:12:35PM -0800, Eric Biggers wrote: > On Wed, Nov 18, 2020 at 12:38:15AM +, Satya Tangirala wrote: > > > > +/** > > > > + * update_aligned_sectors_and_segs() - Ensures that *@aligned_sectors > > > > is aligned > > > > + *to

[no subject]

2020-12-02 Thread Yun Levi
On Thu, Dec 3, 2020 at 6:26 AM Yury Norov wrote: > > On Wed, Dec 2, 2020 at 10:22 AM Yun Levi wrote: > > > > On Thu, Dec 3, 2020 at 2:26 AM Yury Norov wrote: > > > > > Also look at lib/find_bit_benchmark.c > > Thanks. I'll see. > > > > > We need find_next_*_bit() because find_first_*_bit() can

Re: [PATCH v2] mm: Don't fault around userfaultfd-registered regions on reads

2020-12-02 Thread Hugh Dickins
On Tue, 1 Dec 2020, Andrea Arcangeli wrote: > > Any suggestions on how to have the per-vaddr per-mm _PAGE_UFFD_WP bit > survive the pte invalidates in a way that remains associated to a > certain vaddr in a single mm (so it can shoot itself in the foot if it > wants, but it can't interfere with

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

2020-12-02 Thread Dan Scally
On 02/12/2020 12:02, Andy Shevchenko wrote: > On Wed, Dec 02, 2020 at 10:53:05AM +, Dan Scally wrote: >> On 02/12/2020 10:38, Sakari Ailus wrote: > > ... > > Argh, thanks, this is the curse of using VS code on multiple machines... I recommend vim ;-) >>> What is VS code? Very

Re: [PATCH 15/18] i2c: i2c-core-acpi: Add i2c_acpi_dev_name()

2020-12-02 Thread Dan Scally
On 30/11/2020 17:11, Laurent Pinchart wrote: > Hi Daniel, > > Thank you for the patch. > > On Mon, Nov 30, 2020 at 01:31:26PM +, Daniel Scally wrote: >> Some places in the kernel allow users to map resources to a device >> using device name (for example, gpiod_lookup_table). Currently >>

Re: mapcount corruption regression

2020-12-02 Thread Yi Zhang
Hi Dan diff --git a/arch/x86/mm/pgtable.c b/arch/x86/mm/pgtable.c index dfd82f51ba66..7ed99314dcdf 100644 --- a/arch/x86/mm/pgtable.c +++ b/arch/x86/mm/pgtable.c @@ -829,6 +829,7 @@ int pud_free_pmd_page(pud_t *pud, unsigned long addr) } free_page((unsigned long)pmd_sv); +

Re: [RFC 1/2] perf core: Add PERF_COUNT_SW_CGROUP_SWITCHES event

2020-12-02 Thread Andi Kleen
On Wed, Dec 02, 2020 at 11:47:25AM -0800, Stephane Eranian wrote: > On Wed, Dec 2, 2020 at 11:28 AM Andi Kleen wrote: > > > > > + prev_cgrp = task_css_check(prev, perf_event_cgrp_id, 1)->cgroup; > > > + next_cgrp = task_css_check(next, perf_event_cgrp_id, 1)->cgroup; > > > + > > > +

Re: [PATCH v6 2/2] pinctrl: qcom: Add sm8250 lpass lpi pinctrl driver

2020-12-02 Thread Bjorn Andersson
On Wed 02 Dec 10:29 CST 2020, Srinivas Kandagatla wrote: > Add initial pinctrl driver to support pin configuration for > LPASS (Low Power Audio SubSystem) LPI (Low Power Island) pinctrl > on SM8250. > > This IP is an additional pin control block for Audio Pins on top the > existing SoC Top level

Re: [PATCH 2/2] platform/x86/drivers/acerhdf: Check the interval value when it is set

2020-12-02 Thread Peter Kästle
2. Dezember 2020 23:22, "Daniel Lezcano" schrieb: > Currently the code checks the interval value when the temperature is > read which is bad for two reasons: > > - checking and setting the interval in the get_temp callback is > inaccurate and awful, that can be done when changing the value. >

Re: [PATCH] tmpfs: fix Documentation nits

2020-12-02 Thread Hugh Dickins
On Tue, 1 Dec 2020, Randy Dunlap wrote: > Fix a typo, punctuation, use uppercase for CPUs, and limit > tmpfs to keeping only its files in virtual memory (phrasing). > > Signed-off-by: Randy Dunlap > Cc: Andrew Morton > Cc: linux...@kvack.org > Cc: Hugh Dickins Acked-by: Hugh Dickins Thanks

Re: [PATCH] pstore: Move kmsg_bytes default into Kconfig

2020-12-02 Thread Konstantin Ryabitsev
On Wed, Dec 02, 2020 at 02:30:08PM -0800, Kees Cook wrote: > > Did you use the sendemail-validate hook for this? > > In my scripts right now, I'm doing this before "git send-email": > > # Construct header-based attestations > b4 attest outgoing/* > > I haven't yet converted to using the git

Re: [PATCH] netfilter: conntrack: fix -Wformat

2020-12-02 Thread Nick Desaulniers
On Tue, Nov 10, 2020 at 2:04 PM Joe Perches wrote: > > On Tue, 2020-11-10 at 14:00 -0800, Nick Desaulniers wrote: > > > Yeah, we could go through and remove %h and %hh to solve this, too, right? > > Yup. > > I think one of the checkpatch improvement mentees is adding > some suggestion and I hope

Re: [PATCH] x86/cpu/amd: Remove dead code for TSEG region remapping

2020-12-02 Thread Arvind Sankar
On Wed, Dec 02, 2020 at 11:58:15AM -0600, Tom Lendacky wrote: > On 11/27/20 11:27 AM, Borislav Petkov wrote: > > On Fri, Nov 27, 2020 at 12:13:24PM -0500, Arvind Sankar wrote: > >> Commit > >>26bfa5f89486 ("x86, amd: Cleanup init_amd") > >> moved the code that remaps the TSEG region using 4k

[PATCH net-next v4] net/nfc/nci: Support NCI 2.x initial sequence

2020-12-02 Thread Bongsu Jeon
From: Bongsu Jeon implement the NCI 2.x initial sequence to support NCI 2.x NFCC. Since NCI 2.0, CORE_RESET and CORE_INIT sequence have been changed. If NFCEE supports NCI 2.x, then NCI 2.x initial sequence will work. In NCI 1.0, Initial sequence and payloads are as below: (DH)

[tip:x86/apic] BUILD SUCCESS 26ab12bb9d96133b7880141d68b5e01a8783de9d

2020-12-02 Thread kernel test robot
allmodconfig powerpc allnoconfig x86_64 randconfig-a004-20201202 x86_64 randconfig-a006-20201202 x86_64 randconfig-a001-20201202 x86_64 randconfig-a002-20201202 x86_64 randconfig-a005

Re: [PATCH] pstore: Move kmsg_bytes default into Kconfig

2020-12-02 Thread Kees Cook
On Wed, Dec 02, 2020 at 04:42:57PM -0500, Konstantin Ryabitsev wrote: > On Tue, Dec 01, 2020 at 12:12:34PM -0800, Kees Cook wrote: > > --- > > This was sent off-list, so I'm resending it to lkml (with the commit log > > cleaned up sligthly) before I push it into for-next/pstore. > > Also, nice: >

Re: [PATCH v2 06/17] ibmvfc: add handlers to drain and complete Sub-CRQ responses

2020-12-02 Thread Tyrel Datwyler
On 12/2/20 7:46 AM, Brian King wrote: > On 12/1/20 6:53 PM, Tyrel Datwyler wrote: >> The logic for iterating over the Sub-CRQ responses is similiar to that >> of the primary CRQ. Add the necessary handlers for processing those >> responses. >> >> Signed-off-by: Tyrel Datwyler >> --- >>

Re: [PATCH v2 04/17] ibmvfc: add alloc/dealloc routines for SCSI Sub-CRQ Channels

2020-12-02 Thread Tyrel Datwyler
On 12/2/20 7:25 AM, Brian King wrote: > On 12/1/20 6:53 PM, Tyrel Datwyler wrote: >> +static int ibmvfc_register_scsi_channel(struct ibmvfc_host *vhost, >> + int index) >> +{ >> +struct device *dev = vhost->dev; >> +struct vio_dev *vdev = to_vio_dev(dev); >> +

[PATCH 1/2] platform/x86/drivers/acerhdf: Use module_param_cb to set/get polling interval

2020-12-02 Thread Daniel Lezcano
The module parameter can be set by using ops to get and set the values. The change will allow to check the correctness of the interval value everytime it is changed instead of checking in the get_temp function. Signed-off-by: Daniel Lezcano --- drivers/platform/x86/acerhdf.c | 10 -- 1

[PATCH 2/2] platform/x86/drivers/acerhdf: Check the interval value when it is set

2020-12-02 Thread Daniel Lezcano
Currently the code checks the interval value when the temperature is read which is bad for two reasons: - checking and setting the interval in the get_temp callback is inaccurate and awful, that can be done when changing the value. - Changing the thermal zone structure internals is an abuse

Re: [PATCH 1/4] clk: JZ4780: Add function for disable the second core.

2020-12-02 Thread Paul Cercueil
Hi, Le jeu. 26 nov. 2020 à 1:26, 周琰杰 (Zhou Yanjie) a écrit : Add "jz4780_core1_disable()" for disable the second core of JZ4780, prepare for later commits. Signed-off-by: 周琰杰 (Zhou Yanjie) Reviewed-by: Paul Cercueil Stephen: this patch can be merged independently of the others. Cheers,

Re: [PATCH v7 0/4] Adding the Sparx5 Serdes driver

2020-12-02 Thread Vladimir Oltean
Hi Steen, On Wed, Dec 02, 2020 at 02:04:34PM +0100, Steen Hegelund wrote: > Adding the Sparx5 Serdes driver > > This series of patches provides the serdes driver for the Microchip Sparx5 > ethernet switch. > > The serdes driver supports the 10G and 25G serdes instances available in the > Sparx5.

Re: [PATCH net-next v3] net/nfc/nci: Support NCI 2.x initial sequence

2020-12-02 Thread Bongsu Jeon
On Tue, Dec 1, 2020 at 11:48 AM Jakub Kicinski wrote: > > On Fri, 27 Nov 2020 22:36:31 +0900 bongsu.je...@gmail.com wrote: > > From: Bongsu Jeon > > > > implement the NCI 2.x initial sequence to support NCI 2.x NFCC. > > Since NCI 2.0, CORE_RESET and CORE_INIT sequence have been changed. > > If

Re: [PATCH] spi: spi-geni-qcom: Use the new method of gpio CS control

2020-12-02 Thread Alexandru M Stan
On Wed, Dec 2, 2020 at 1:49 PM Stephen Boyd wrote: > > Let's set the 'use_gpio_descriptors' field so that we use the new way of > requesting the CS GPIOs in the core. This allows us to avoid having to > configure the CS pins in "output" mode with an 'output-enable' pinctrl > setting. > > Cc:

Re: [PATCH 2/4] dt-bindings: clock: Add missing clocks for Ingenic SoCs.

2020-12-02 Thread Paul Cercueil
Hi, Le jeu. 26 nov. 2020 à 1:26, 周琰杰 (Zhou Yanjie) a écrit : Add CIM, AIC, DMIC clocks bindings for the X1000 SoC, and CIM, AIC, DMIC, I2S clocks for the X1830 SoC from Ingenic. Signed-off-by: 周琰杰 (Zhou Yanjie) Reviewed-by: Paul Cercueil Cheers, -Paul ---

Re: [PATCH v2 17/17] ibmvfc: provide modules parameters for MQ settings

2020-12-02 Thread Tyrel Datwyler
On 12/2/20 10:40 AM, Brian King wrote: > On 12/1/20 6:53 PM, Tyrel Datwyler wrote: >> +module_param_named(mig_channels_only, mig_channels_only, uint, S_IRUGO | >> S_IWUSR); >> +MODULE_PARM_DESC(mig_channels_only, "Prevent migration to non-channelized >> system. " >> + "[Default="

Re: [PATCH 3/4] clk: Ingenic: Add missing clocks for Ingenic SoCs.

2020-12-02 Thread Paul Cercueil
Hi Zhou, Le jeu. 26 nov. 2020 à 1:26, 周琰杰 (Zhou Yanjie) a écrit : Add CIM, AIC, DMIC clocks for the X1000 SoC, and CIM, AIC, DMIC, I2S clocks for the X1830 SoC from Ingenic. Signed-off-by: 周琰杰 (Zhou Yanjie) --- drivers/clk/ingenic/x1000-cgu.c | 19 drivers/clk/ingenic/x1830-cgu.c |

Re: [PATCH v5 net-next 1/4] dt-bindings: net: nfc: s3fwrn5: Support a UART interface

2020-12-02 Thread Bongsu Jeon
On Thu, Dec 3, 2020 at 2:16 AM Krzysztof Kozlowski wrote: > > On Wed, Dec 02, 2020 at 08:47:38PM +0900, Bongsu Jeon wrote: > > From: Bongsu Jeon > > > > Since S3FWRN82 NFC Chip, The UART interface can be used. > > S3FWRN82 supports I2C and UART interface. > > > > Signed-off-by: Bongsu Jeon > >

[PATCH] sched/fair: trivial correction of the comment of newidle_balance

2020-12-02 Thread Barry Song
idle_balance() has been renamed to newidle_balance(). To differentiate with nohz_idle_balance, it seems refining the comment will be helpful for the readers of the code. Signed-off-by: Barry Song --- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 4/4] clk: Ingenic: Fill unused bits in parents and reformat code.

2020-12-02 Thread Paul Cercueil
Hi Zhou, Le jeu. 26 nov. 2020 à 1:26, 周琰杰 (Zhou Yanjie) a écrit : 1.Fill unused bits in parents in jz4780-cgu.c, x1000-cgu.c, and x1830-cgu.c, these bits should be filled with -1. 2.Reformat code, add missing blank lines, remove unnecessary tabs, and align code. Signed-off-by: 周琰杰 (Zhou

Re: [PATCH v2 15/17] ibmvfc: send Cancel MAD down each hw scsi channel

2020-12-02 Thread Tyrel Datwyler
On 12/2/20 10:27 AM, Brian King wrote: > On 12/1/20 6:53 PM, Tyrel Datwyler wrote: >> In general the client needs to send Cancel MADs and task management >> commands down the same channel as the command(s) intended to cancel or >> abort. The client assigns cancel keys per LUN and thus must send a

Re: [PATCH] rtc: adapt allowed RTC update error

2020-12-02 Thread Thomas Gleixner
On Wed, Dec 02 2020 at 16:54, Jason Gunthorpe wrote: > On Wed, Dec 02, 2020 at 08:21:00PM +0100, Thomas Gleixner wrote: >> So it will not write immediately. It will run through at least one >> retry. > > Right, bascially this is scheduling a WQ to do sched_sync_hw_clock() > which will only call

Re: scheduling while atomic in z3fold

2020-12-02 Thread Sebastian Andrzej Siewior
On 2020-12-02 03:30:27 [+0100], Mike Galbraith wrote: > > > In an LTP install, ./runltp -f mm. Shortly after box starts swapping > > > insanely, it explodes quite reliably here with either z3fold or > > > zsmalloc.. but not with zbud. > > What I'm seeing is the below. rt_mutex_has_waiters()

Re: [PATCH 3/3] ARM: dts: exynos: Fix charging regulator voltage and current for i9100

2020-12-02 Thread Krzysztof Kozlowski
On Wed, Dec 02, 2020 at 09:07:28PM +, Timon Baetz wrote: > Set CHARGER current and CHARGER_CV voltage according to Galaxy S2 kernel > fork. > > Signed-off-by: Timon Baetz > --- > arch/arm/boot/dts/exynos4210-i9100.dts | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff

Re: [PATCH v4 11/19] sched/core: Make migrate disable and CPU hotplug cooperative

2020-12-02 Thread Qian Cai
On Mon, 2020-11-23 at 19:13 +0100, Sebastian Andrzej Siewior wrote: > On 2020-11-18 09:44:34 [-0500], Qian Cai wrote: > > On Tue, 2020-11-17 at 19:28 +, Valentin Schneider wrote: > > > We did have some breakage in that area, but all the holes I was aware of > > > have been plugged. What would

Re: [PATCH] vdpa/mlx5: Use random MAC for the vdpa net instance

2020-12-02 Thread Michael S. Tsirkin
On Wed, Dec 02, 2020 at 09:48:25PM +0800, Jason Wang wrote: > > On 2020/12/2 下午5:23, Michael S. Tsirkin wrote: > > On Wed, Dec 02, 2020 at 07:57:14AM +0200, Eli Cohen wrote: > > > On Wed, Dec 02, 2020 at 12:18:36PM +0800, Jason Wang wrote: > > > > On 2020/12/1 下午5:23, Cindy Lu wrote: > > > > > On

Re: [PATCH v2 1/2] x86: make VMware support optional

2020-12-02 Thread Randy Dunlap
On 12/2/20 1:19 PM, Enrico Weigelt, metux IT consult wrote: > Make it possible to opt-out from VMware support, for minimized kernels > that never will be run under Vmware (eg. high-density virtualization > or embedded systems). > > Average distro kernel will leave it on, therefore default to y. >

Re: [PATCH v2 2/2] x86: make Hyper-V support optional

2020-12-02 Thread Randy Dunlap
On 12/2/20 1:19 PM, Enrico Weigelt, metux IT consult wrote: > Make it possible to opt-out from Hyper-V support, for minimized kernels > that never will by run under Hyper-V. (eg. high-density virtualization > or embedded systems) > > Average distro kernel will leave it on, therefore default to y.

[PATCH] staging/vc04_services/bcm2835-audio: Parenthesize alsa2chip macro

2020-12-02 Thread Dennis Skovborg Jørgensen
Add parenthesis around the alsa2chip macro to remove a checkpatch error. Signed-off-by: Dennis Skovborg Jørgensen --- drivers/staging/vc04_services/bcm2835-audio/bcm2835.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/vc04_services/bcm2835-audio/bcm2835.h

Re: [PATCH 2/3] power: supply: max8997_charger: Set CHARGER current limit

2020-12-02 Thread Krzysztof Kozlowski
On Wed, Dec 02, 2020 at 09:07:19PM +, Timon Baetz wrote: > Register for extcon notification and set charging current depending on > the detected cable type. Current values are taken from i9100 kernel > fork. > > Enable and disable the CHARGER regulator based on extcon events and > remove

[PATCH] spi: spi-geni-qcom: Use the new method of gpio CS control

2020-12-02 Thread Stephen Boyd
Let's set the 'use_gpio_descriptors' field so that we use the new way of requesting the CS GPIOs in the core. This allows us to avoid having to configure the CS pins in "output" mode with an 'output-enable' pinctrl setting. Cc: Akash Asthana Cc: Bjorn Andersson Reviewed-by: Douglas Anderson

Re: [PATCH v3 1/1] vfio/type1: Add vfio_group_domain()

2020-12-02 Thread Alex Williamson
On Tue, 1 Dec 2020 09:23:28 +0800 Lu Baolu wrote: > Add the API for getting the domain from a vfio group. This could be used > by the physical device drivers which rely on the vfio/mdev framework for > mediated device user level access. The typical use case like below: > > unsigned int

Re: [PATCH -tip 23/32] sched: Add a per-thread core scheduling interface

2020-12-02 Thread Chris Hyser
On Tue, Nov 17, 2020 at 06:19:53PM -0500, Joel Fernandes (Google) wrote: > Add a per-thread core scheduling interface which allows a thread to share a > core with another thread, or have a core exclusively for itself. > > ChromeOS uses core-scheduling to securely enable hyperthreading. This cuts

[PATCH v8 3/3] net: ax88796c: ASIX AX88796C SPI Ethernet Adapter Driver

2020-12-02 Thread Łukasz Stelmach
ASIX AX88796[1] is a versatile ethernet adapter chip, that can be connected to a CPU with a 8/16-bit bus or with an SPI. This driver supports SPI connection. The driver has been ported from the vendor kernel for ARTIK5[2] boards. Several changes were made to adapt it to the current kernel which

[PATCH v8 1/3] dt-bindings: vendor-prefixes: Add asix prefix

2020-12-02 Thread Łukasz Stelmach
Add the prefix for ASIX Electronics Corporation. Signed-off-by: Łukasz Stelmach Reviewed-by: Krzysztof Kozlowski Acked-by: Rob Herring --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v8 2/3] dt-bindings: net: Add bindings for AX88796C SPI Ethernet Adapter

2020-12-02 Thread Łukasz Stelmach
Add bindings for AX88796C SPI Ethernet Adapter. Signed-off-by: Łukasz Stelmach Reviewed-by: Rob Herring Acked-by: Krzysztof Kozlowski --- .../bindings/net/asix,ax88796c.yaml | 73 +++ 1 file changed, 73 insertions(+) create mode 100644

[PATCH v8 0/3] AX88796C SPI Ethernet Adapter

2020-12-02 Thread Łukasz Stelmach
This is a driver for AX88796C Ethernet Adapter connected in SPI mode as found on ARTIK5 evaluation board. The driver has been ported from a v3.10.9 vendor kernel for ARTIK5 board. Changes in v8: - fixed the entry in MAINTAINERS - removed unnecessary netif_err() - changed netif_rx() to

[PATCH V2] common/rc: Fix _check_s_dax()

2020-12-02 Thread ira . weiny
From: Ira Weiny There is a conflict with the user visible statx bits 'mount root' and 'dax'. The kernel is changing the dax bit to correct this conflict.[1] Adjust _check_s_dax() to use the new bit. Because DAX tests do not run on root mounts, STATX_ATTR_MOUNT_ROOT should always be 0,

Re: [PATCH v3 3/3] media: uapi: mpeg2: Split sequence and picture parameters

2020-12-02 Thread Ezequiel Garcia
On Wed, 2020-12-02 at 16:11 +0100, Hans Verkuil wrote: > Hi Ezequiel, > > Some small comments: > > On 30/11/2020 19:52, Ezequiel Garcia wrote: > > Typically, bitstreams are composed of one sequence header NAL unit, > > followed by a number of picture header and picture coding extension > > NAL

[PATCH] common/rc: Fix _check_s_dax()

2020-12-02 Thread ira . weiny
From: Ira Weiny There is a conflict with the user visible statx bits 'mount root' and 'dax'. The kernel is changing the dax bit to correct this conflict.[1] Adjust _check_s_dax() to use the new bit. Because DAX tests do not run on root mounts, STATX_ATTR_MOUNT_ROOT should always be 0,

Re: [PATCH] pstore: Move kmsg_bytes default into Kconfig

2020-12-02 Thread Konstantin Ryabitsev
On Tue, Dec 01, 2020 at 12:12:34PM -0800, Kees Cook wrote: > --- > This was sent off-list, so I'm resending it to lkml (with the commit log > cleaned up sligthly) before I push it into for-next/pstore. Also, nice: Writing /tmp/20201201_keescook_pstore_move_kmsg_bytes_default_into_kconfig.mbx ✔

Re: [PATCH v5 01/16] HSI: fix a kernel-doc markup

2020-12-02 Thread Sebastian Reichel
Hi, On Tue, Dec 01, 2020 at 01:08:54PM +0100, Mauro Carvalho Chehab wrote: > A function has a different name between their prototype > and its kernel-doc markup. > > Signed-off-by: Mauro Carvalho Chehab > --- Thanks, queued to HSI tree. -- Sebastian > [...] > /** > - * hsi_unregister_port -

WARNING in create_io_worker

2020-12-02 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:c84e1efa Merge tag 'asm-generic-fixes-5.10-2' of git://git.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=14a4339550 kernel config: https://syzkaller.appspot.com/x/.config?x=6d1e98d0b97781e4

[PATCH v2] bpf: remove trailing semicolon in macro definition

2020-12-02 Thread trix
From: Tom Rix The macro use will already have a semicolon. Clean up escaped newlines Signed-off-by: Tom Rix --- v2: more macros fixed, escaped newlines cleaned --- include/trace/events/xdp.h | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git

Re: [PATCH] mm/vmalloc: randomize vmalloc() allocations

2020-12-02 Thread Topi Miettinen
On 2.12.2020 20.53, Matthew Wilcox wrote: On Tue, Dec 01, 2020 at 11:45:47PM +0200, Topi Miettinen wrote: + /* Randomize allocation */ + if (randomize_vmalloc) { + voffset = get_random_long() & (roundup_pow_of_two(vend - vstart) - 1); + voffset =

Re: [PATCH v12 10/15] PCI/ERR: Limit AER resets in pcie_do_recovery()

2020-12-02 Thread Bjorn Helgaas
On Wed, Dec 02, 2020 at 08:53:54PM +, Kelley, Sean V wrote: > > On Nov 30, 2020, at 4:25 PM, Bjorn Helgaas wrote: > > On Mon, Nov 30, 2020 at 07:54:37PM +, Kelley, Sean V wrote: > >> - if (pcie_aer_is_native(bridge)) > >> - pcie_clear_device_status(bridge); > >> -

Re:

2020-12-02 Thread Yury Norov
On Wed, Dec 2, 2020 at 10:22 AM Yun Levi wrote: > > On Thu, Dec 3, 2020 at 2:26 AM Yury Norov wrote: > > > Also look at lib/find_bit_benchmark.c > Thanks. I'll see. > > > We need find_next_*_bit() because find_first_*_bit() can start searching > > only at word-aligned > > bits. In the case of

Re: [PATCH v7 3/4] phy: Add Sparx5 ethernet serdes PHY driver

2020-12-02 Thread kernel test robot
submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Steen-Hegelund/Adding-the-Sparx5-Serdes-driver/20201202-26 base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next config

RE: [PATCH Xilinx Alveo 1/8] Documentation: fpga: Add a document describing Alveo XRT drivers

2020-12-02 Thread Max Zhen
Hi Moritz, Thanks for your feedback. Please see my reply inline. Thanks, -Max > -Original Message- > From: Moritz Fischer > Sent: Monday, November 30, 2020 20:55 > To: Sonal Santan > Cc: linux-kernel@vger.kernel.org; linux-f...@vger.kernel.org; Max Zhen > ; Lizhi Hou ; Michal Simek >

[PATCH v2 2/2] x86: make Hyper-V support optional

2020-12-02 Thread Enrico Weigelt, metux IT consult
Make it possible to opt-out from Hyper-V support, for minimized kernels that never will by run under Hyper-V. (eg. high-density virtualization or embedded systems) Average distro kernel will leave it on, therefore default to y. Signed-off-by: Enrico Weigelt --- arch/x86/Kconfig

Re: [PATCH v2 2/9] KVM: X86: Introduce KVM_HC_PAGE_ENC_STATUS hypercall

2020-12-02 Thread Ashish Kalra
Hello Dave, On Wed, Dec 02, 2020 at 04:54:20PM +, Dr. David Alan Gilbert wrote: > * Ashish Kalra (ashish.ka...@amd.com) wrote: > > From: Brijesh Singh > > > > This hypercall is used by the SEV guest to notify a change in the page > > encryption status to the hypervisor. The hypercall should

[PATCH v2 1/2] x86: make VMware support optional

2020-12-02 Thread Enrico Weigelt, metux IT consult
Make it possible to opt-out from VMware support, for minimized kernels that never will be run under Vmware (eg. high-density virtualization or embedded systems). Average distro kernel will leave it on, therefore default to y. Signed-off-by: Enrico Weigelt --- arch/x86/Kconfig |

Re: [v2 0/4] Porting ASPEED FMC/SPI memory controller driver

2020-12-02 Thread Joel Stanley
On Tue, 1 Dec 2020 at 13:58, Mark Brown wrote: > > On Tue, 3 Nov 2020 15:21:58 +0800, Chin-Ting Kuo wrote: > > This patch series aims to porting ASPEED FMC/SPI memory controller > > driver with spi-mem interface. Adjust device tree setting of SPI NOR > > flash in order to fit real AST2600 EVB and

Re: WARNING in port100_send_frame_async/usb_submit_urb

2020-12-02 Thread Alan Stern
On Tue, Dec 01, 2020 at 01:21:27AM -0800, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit:c84e1efa Merge tag 'asm-generic-fixes-5.10-2' of git://git.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=14a9856550 >

Re: [PATCH bpf-next 1/2] bpf: Add a bpf_kallsyms_lookup helper

2020-12-02 Thread Alexei Starovoitov
On Wed, Dec 2, 2020 at 12:32 PM Florent Revest wrote: > > On Tue, 2020-12-01 at 16:55 -0800, Andrii Nakryiko wrote: > > On Fri, Nov 27, 2020 at 8:09 AM Yonghong Song wrote: > > > > > > > > > On 11/27/20 3:20 AM, KP Singh wrote: > > > > On Fri, Nov 27, 2020 at 8:35 AM Yonghong Song wrote: > > >

Re: [PATCH] mm/memcontrol: make the slab calculation consistent

2020-12-02 Thread Roman Gushchin
On Wed, Dec 02, 2020 at 08:14:34PM +0800, Muchun Song wrote: > Although the ratio of the slab is one, we also should read the ratio > from the related memory_stats instead of hard-coding. And the local > variable of size is already the value of slab_unreclaimable. So we > do not need to read

[PATCH] userfaultfd: selftests: make __{s,u}64 format specifiers portable

2020-12-02 Thread Axel Rasmussen
On certain platforms (powerpcle is the one on which I ran into this), "%Ld" and "%Lu" are unsuitable for printing __s64 and __u64, respectively, resulting in a build warning. Cast to {u,}int64_t, and use the PRI{d,u}64 macros defined in inttypes.h to print them. This ought to be portable to all

Re: [PATCH v2 2/6] remoteproc/pru: Add a PRU remoteproc driver

2020-12-02 Thread Mathieu Poirier
On Wed, Dec 02, 2020 at 01:53:36PM -0700, Mathieu Poirier wrote: > On Tue, Dec 01, 2020 at 03:54:36PM -0700, Mathieu Poirier wrote: > > Hi Grzeg, > > > > I have started to review this set - comments will come over the next few > > days. > > > > See below for a start. > > > > On Thu, Nov 19,

Re: [PATCH v3 03/11] evm: Refuse EVM_ALLOW_METADATA_WRITES only if an HMAC key is loaded

2020-12-02 Thread Mimi Zohar
On Wed, 2020-11-11 at 10:22 +0100, Roberto Sassu wrote: > EVM_ALLOW_METADATA_WRITES is an EVM initialization flag that can be set to > temporarily disable metadata verification until all xattrs/attrs necessary > to verify an EVM portable signature are copied to the file. This flag is > cleared

[PATCH 2/3] power: supply: max8997_charger: Set CHARGER current limit

2020-12-02 Thread Timon Baetz
Register for extcon notification and set charging current depending on the detected cable type. Current values are taken from i9100 kernel fork. Enable and disable the CHARGER regulator based on extcon events and remove regulator-always-on from the device tree. Signed-off-by: Timon Baetz ---

[PATCH 3/3] ARM: dts: exynos: Fix charging regulator voltage and current for i9100

2020-12-02 Thread Timon Baetz
Set CHARGER current and CHARGER_CV voltage according to Galaxy S2 kernel fork. Signed-off-by: Timon Baetz --- arch/arm/boot/dts/exynos4210-i9100.dts | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/exynos4210-i9100.dts

[PATCH 1/3] extcon: max8997: Add CHGINS and CHGRM interrupt handling

2020-12-02 Thread Timon Baetz
Allows the MAX8997 charger to set the current limit depending on the detected extcon charger type. Signed-off-by: Timon Baetz --- drivers/extcon/extcon-max8997.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/extcon/extcon-max8997.c b/drivers/extcon/extcon-max8997.c index

Re: [PATCH V2] uapi: fix statx attribute value overlap for DAX & MOUNT_ROOT

2020-12-02 Thread Greg Kroah-Hartman
On Thu, Dec 03, 2020 at 07:40:45AM +1100, Dave Chinner wrote: > On Wed, Dec 02, 2020 at 08:06:01PM +0100, Greg Kroah-Hartman wrote: > > On Wed, Dec 02, 2020 at 06:41:43PM +0100, Miklos Szeredi wrote: > > > On Wed, Dec 2, 2020 at 5:24 PM David Howells wrote: > > > > > > > > Miklos Szeredi wrote:

[PATCH] selftests: kvm/set_memory_region_test: Fix race in move region test

2020-12-02 Thread Maciej S. Szmigiero
From: "Maciej S. Szmigiero" The current memory region move test correctly handles the situation that the second (realigning) memslot move operation would temporarily trigger MMIO until it completes, however it does not handle the case in which the first (misaligning) move operation does this,

Re: [PATCH v3] checkpatch: add warning for lines starting with a '#' in commit log

2020-12-02 Thread Joe Perches
On Thu, 2020-12-03 at 02:27 +0530, Dwaipayan Ray wrote: > Commit log lines starting with '#' are dropped by git as comments. > Add a check to emit a warning for these lines. > > Also add a --fix option to insert a space before the leading '#' in > such lines. > > Suggested-by: Joe Perches >

[GIT PULL] gfs2 fixes for 5.10-rc5

2020-12-02 Thread Andreas Gruenbacher
Hi Linus, please consider pulling the following additional gfs2 fixes. Thanks, Andreas The following changes since commit 418baf2c28f3473039f2f7377760bd8f6897ae18: Linux 5.10-rc5 (2020-11-22 15:36:08 -0800) are available in the Git repository at:

Re: crypto: sun4i-ss: error with kmap

2020-12-02 Thread Thomas Gleixner
On Wed, Dec 02 2020 at 20:55, Corentin Labbe wrote: > On Tue, Dec 01, 2020 at 04:15:08PM +0100, Thomas Gleixner wrote: > > The result could be seen at http://kernel.montjoie.ovh/129768.log > The log is 9Mb, but the ftrace dump seems not terminated, tell me if you need > more. Correct, the

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

2020-12-02 Thread Stephen Rothwell
Hi all, Commits 440ec82ebed2 ("selftests: openat2: add RESOLVE_ conflict test") 295983402a1a ("openat2: reject RESOLVE_BENEATH|RESOLVE_IN_ROOT") are missing a Signed-off-by from their committers. -- Cheers, Stephen Rothwell pgpd_zigkoCku.pgp Description: OpenPGP digital signature

RE: [RFC PATCH v2 2/2] scheduler: add scheduler level for clusters

2020-12-02 Thread Song Bao Hua (Barry Song)
> > Sorry. Please ignore this. I added some printk here while testing > one numa. Will update you the data in another email. Re-tested in one NUMA node(cpu0-cpu23): g=1 Running in threaded mode with 1 groups using 40 file descriptors Each sender will pass 10 messages of 100 bytes w/o: 7.689

[PATCH v3] checkpatch: add warning for lines starting with a '#' in commit log

2020-12-02 Thread Dwaipayan Ray
Commit log lines starting with '#' are dropped by git as comments. Add a check to emit a warning for these lines. Also add a --fix option to insert a space before the leading '#' in such lines. Suggested-by: Joe Perches Suggested-by: Peilin Ye Tested-by: Peilin Ye Signed-off-by: Dwaipayan Ray

[PATCH bpf-next v4 2/6] bpf: Add a bpf_sock_from_file helper

2020-12-02 Thread Florent Revest
While eBPF programs can check whether a file is a socket by file->f_op == _file_ops, they cannot convert the void private_data pointer to a struct socket BTF pointer. In order to do this a new helper wrapping sock_from_file is added. This is useful to tracing programs but also other program types

[PATCH bpf-next v4 1/6] net: Remove the err argument from sock_from_file

2020-12-02 Thread Florent Revest
Currently, the sock_from_file prototype takes an "err" pointer that is either not set or set to -ENOTSOCK IFF the returned socket is NULL. This makes the error redundant and it is ignored by a few callers. This patch simplifies the API by letting callers deduce the error based on whether the

Re: [PATCH net v2] bonding: fix feature flag setting at init time

2020-12-02 Thread Jarod Wilson
On Wed, Dec 2, 2020 at 3:17 PM Jay Vosburgh wrote: > > Jarod Wilson wrote: > > >On Wed, Dec 2, 2020 at 12:55 PM Jay Vosburgh > >wrote: > >> > >> Jarod Wilson wrote: > >> > >> >Don't try to adjust XFRM support flags if the bond device isn't yet > >> >registered. Bad things can currently happen

Re: [PATCH 5/8] clk: sunxi-ng: Add support for the Allwinner H616 CCU

2020-12-02 Thread Jernej Škrabec
Dne sreda, 02. december 2020 ob 14:54:06 CET je Andre Przywara napisal(a): > While the clocks are fairly similar to the H6, many differ in tiny > details, so a separate clock driver seems indicated. > > Derived from the H6 clock driver, and adjusted according to the manual. > > Signed-off-by:

[PATCH bpf-next v4 6/6] bpf: Test bpf_sk_storage_get in tcp iterators

2020-12-02 Thread Florent Revest
This extends the existing bpf_sk_storage_get test where a socket is created and tagged with its creator's pid by a task_file iterator. A TCP iterator is now also used at the end of the test to negate the values already stored in the local storage. The test therefore expects -getpid() to be stored

[PATCH bpf-next v4 5/6] bpf: Add an iterator selftest for bpf_sk_storage_get

2020-12-02 Thread Florent Revest
The eBPF program iterates over all files and tasks. For all socket files, it stores the tgid of the last task it encountered with a handle to that socket. This is a heuristic for finding the "owner" of a socket similar to what's done by lsof, ss, netstat or fuser. Potentially, this information

[PATCH bpf-next v4 4/6] bpf: Add an iterator selftest for bpf_sk_storage_delete

2020-12-02 Thread Florent Revest
The eBPF program iterates over all entries (well, only one) of a socket local storage map and deletes them all. The test makes sure that the entry is indeed deleted. Signed-off-by: Florent Revest Acked-by: Martin KaFai Lau --- .../selftests/bpf/prog_tests/bpf_iter.c | 64

[PATCH bpf-next v4 3/6] bpf: Expose bpf_sk_storage_* to iterator programs

2020-12-02 Thread Florent Revest
Iterators are currently used to expose kernel information to userspace over fast procfs-like files but iterators could also be used to manipulate local storage. For example, the task_file iterator could be used to initialize a socket local storage with associations between processes and sockets or

[PATCH net-next] bonding: correct rr balancing during link failure

2020-12-02 Thread Lars Everbrand
This patch updates the sending algorithm for roundrobin to avoid over-subscribing interface(s) when one or more interfaces in the bond is not able to send packets. This happened when order was not random and more than 2 interfaces were used. Previously the algorithm would find the next available

Re: [PATCH] rtc: adapt allowed RTC update error

2020-12-02 Thread Jason Gunthorpe
On Wed, Dec 02, 2020 at 08:21:00PM +0100, Thomas Gleixner wrote: > On Wed, Dec 02 2020 at 12:27, Jason Gunthorpe wrote: > > On Wed, Dec 02, 2020 at 02:44:53PM +0100, Thomas Gleixner wrote: > >>if (IS_ENABLED(CONFIG_GENERIC_CMOS_UPDATE) || > >>IS_ENABLED(CONFIG_RTC_SYSTOHC)) > >> -

Re: [PATCH v2 2/6] remoteproc/pru: Add a PRU remoteproc driver

2020-12-02 Thread Mathieu Poirier
On Tue, Dec 01, 2020 at 03:54:36PM -0700, Mathieu Poirier wrote: > Hi Grzeg, > > I have started to review this set - comments will come over the next few days. > > See below for a start. > > On Thu, Nov 19, 2020 at 03:08:46PM +0100, Grzegorz Jaszczyk wrote: > > From: Suman Anna > > > > The

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