[PATCH 2/2] mmc: core: Drop reference counting of the bus_ops

2021-02-12 Thread Ulf Hansson
When the mmc_rescan work is enabled for execution (host->rescan_disable), it's the only instance per mmc host that is allowed to set/clear the host->bus_ops pointer. Besides the mmc_rescan work, there are a couple of scenarios when the host->bus_ops pointer may be accessed. Typically, those can be

Re: [PATCH v5 1/1] mm: refactor initialization of struct page for holes in memory layout

2021-02-12 Thread Michal Hocko
On Fri 12-02-21 11:42:15, David Hildenbrand wrote: > On 12.02.21 11:33, Michal Hocko wrote: [...] > > I have to digest this but my first impression is that this is more heavy > > weight than it needs to. Pfn walkers should normally obey node range at > > least. The first pfn is usually excluded but

[PATCH v2 1/3] gpiolib: Introduce the for_each_set_clump macro

2021-02-12 Thread Syed Nayyar Waris
This macro iterates for each group of bits (clump) with set bits, within a bitmap memory region. For each iteration, "start" is set to the bit offset of the found clump, while the respective clump value is stored to the location pointed by "clump". Additionally, the bitmap_get_value() and bitmap_se

Re: [PATCH v13 6/7] arm64: mte: Report async tag faults before suspend

2021-02-12 Thread Catalin Marinas
On Fri, Feb 12, 2021 at 12:00:15PM +, Lorenzo Pieralisi wrote: > On Thu, Feb 11, 2021 at 03:33:52PM +, Vincenzo Frascino wrote: > > +void mte_suspend_enter(void) > > +{ > > + if (!system_supports_mte()) > > + return; > > + > > + /* > > +* The barriers are required to guara

[PATCH v2 0/3] Introduce the for_each_set_clump macro

2021-02-12 Thread Syed Nayyar Waris
Hello Bartosz, Since this patchset primarily affects GPIO drivers, would you like to pick it up through your GPIO tree? This patchset introduces a new generic version of for_each_set_clump. The previous version of for_each_set_clump8 used a fixed size 8-bit clump, but the new generic version can

[PATCH v2 1/2] dt-bindings: pwm: Add bindings for Toshiba Visconti PWM Controller

2021-02-12 Thread Nobuhiro Iwamatsu
Add bindings for the Toshiba Visconti PWM Controller. Signed-off-by: Nobuhiro Iwamatsu --- .../bindings/pwm/toshiba,pwm-visconti.yaml| 43 +++ 1 file changed, 43 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/toshiba,pwm-visconti.yaml diff --git a/D

[PATCH v2 0/2] pwm: visconti: Add Toshiba Visconti SoC PWM support

2021-02-12 Thread Nobuhiro Iwamatsu
This series is the PWM driver for Toshiba's ARM SoC, Visconti[0]. This provides DT binding documentation and device driver. [0]: https://toshiba.semicon-storage.com/ap-en/semiconductor/product/image-recognition-processors-visconti.html Updates: dt-bindings: pwm: Add bindings for Toshiba Visco

[PATCH v2 2/3] gpio: thunderx: Utilize for_each_set_clump macro

2021-02-12 Thread Syed Nayyar Waris
This patch reimplements the thunderx_gpio_set_multiple function in drivers/gpio/gpio-thunderx.c to use the new for_each_set_clump macro. Instead of looping for each bank in thunderx_gpio_set_multiple function, now we can skip bank which is not set and save cycles. Cc: William Breathitt Gray Cc: R

[PATCH v2 2/2] pwm: visconti: Add Toshiba Visconti SoC PWM support

2021-02-12 Thread Nobuhiro Iwamatsu
Add driver for the PWM controller on Toshiba Visconti ARM SoC. Signed-off-by: Nobuhiro Iwamatsu --- drivers/pwm/Kconfig| 9 ++ drivers/pwm/Makefile | 1 + drivers/pwm/pwm-visconti.c | 173 + 3 files changed, 183 insertions(+) create mode 100

[PATCH v2 3/3] gpio: xilinx: Utilize generic bitmap_get_value and _set_value

2021-02-12 Thread Syed Nayyar Waris
This patch reimplements the xgpio_set_multiple() function in drivers/gpio/gpio-xilinx.c to use the new generic functions: bitmap_get_value() and bitmap_set_value(). The code is now simpler to read and understand. Moreover, instead of looping for each bit in xgpio_set_multiple() function, now we can

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

2021-02-12 Thread Jonathan Cameron
On Thu, 11 Feb 2021 10:27:41 -0800 Ben Widawsky wrote: > 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 We

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

2021-02-12 Thread Jonathan Cameron
On Thu, 11 Feb 2021 07:55:29 -0800 Ben Widawsky wrote: > 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 We

Re: [RESEND RFC PATCH v2] arm64: Exposes support for 32-bit syscalls

2021-02-12 Thread Catalin Marinas
On Fri, Feb 12, 2021 at 12:35:15PM +, Mark Brown wrote: > On Fri, Feb 12, 2021 at 11:30:41AM +, Steven Price wrote: > > On 11/02/2021 20:21, sonicadvan...@gmail.com wrote: > > > Why do we need compatibility layers? > > > There are ARMv8 CPUs that only support AArch64 but still need to run >

Re: BUG: KASAN: use-after-free in __list_add_valid+0x81/0xa0 (5.11-rc4)

2021-02-12 Thread Mikhail Gavrilov
On Tue, 26 Jan 2021 at 13:28, Hillf Danton wrote: > > > BTW better run the reproducer again with KASAN enabled. > It happened today again with kernel 5.11 rc7 (e0756cfc7d7c) Why not try your patch? list_del corruption, def70143e848->next is LIST_POISON1 (dead0100) [ cut h

[PATCH 0/7 v2] move update blocked load outside newidle_balance

2021-02-12 Thread Vincent Guittot
Joel reported long preempt and irq off sequence in newidle_balance because of a large number of CPU cgroups in use and having to be updated. This patchset moves the update outside newidle_imblance. This enables to early abort during the updates in case of pending irq as an example. Instead of kick

Re: [PATCH 4.19 00/27] 4.19.176-rc2 review

2021-02-12 Thread Naresh Kamboju
On Fri, 12 Feb 2021 at 13:25, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.19.176 release. > There are 27 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Re

[PATCH 1/7 v2] sched/fair: remove update of blocked load from newidle_balance

2021-02-12 Thread Vincent Guittot
newidle_balance runs with both preempt and irq disabled which prevent local irq to run during this period. The duration for updating the blocked load of CPUs varies according to the number of CPU cgroups with non-decayed load and extends this critical period to an uncontrolled level. Remove the up

[PATCH 3/7 v2] sched/fair: remove unused parameter of update_nohz_stats

2021-02-12 Thread Vincent Guittot
idle load balance is the only user of update_nohz_stats and doesn't use force parameter. Remove it Signed-off-by: Vincent Guittot --- kernel/sched/fair.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index f3f0f8cca061..4573a0

[PATCH 2/7 v2] sched/fair: remove unused return of _nohz_idle_balance

2021-02-12 Thread Vincent Guittot
The return of _nohz_idle_balance() is not used anymore so we can remove it Signed-off-by: Vincent Guittot --- kernel/sched/fair.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index bfe1e235fe01..f3f0f8cca061 100644 --- a/

[PATCH 7/7 v2] sched/fair: reduce the window for duplicated update

2021-02-12 Thread Vincent Guittot
Start to update last_blocked_load_update_tick to reduce the possibility of another cpu starting the update one more time Signed-off-by: Vincent Guittot --- kernel/sched/fair.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.

[PATCH 4/7 v2] sched/fair: merge for each idle cpu loop of ILB

2021-02-12 Thread Vincent Guittot
Remove the specific case for handling this_cpu outside for_each_cpu() loop when running ILB. Instead we use for_each_cpu_wrap() and start with the next cpu after this_cpu so we will continue to finish with this_cpu. update_nohz_stats() is now used for this_cpu too and will prevents unnecessary upd

[PATCH 5/7 v2] sched/fair: reorder newidle_balance pulled_task tests

2021-02-12 Thread Vincent Guittot
Reorder the tests and skip useless ones when no load balance has been performed and rq lock has not been released. Signed-off-by: Vincent Guittot --- kernel/sched/fair.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index

[PATCH 6/7 v2] sched/fair: trigger the update of blocked load on newly idle cpu

2021-02-12 Thread Vincent Guittot
Instead of waking up a random and already idle CPU, we can take advantage of this_cpu being about to enter idle to run the ILB and update the blocked load. Signed-off-by: Vincent Guittot --- kernel/sched/fair.c | 20 +--- kernel/sched/idle.c | 6 ++ kernel/sched/sched.h |

Re: [PATCH 1/1] iscsi_ibft: KASAN false positive failure occurs in ibft_init()

2021-02-12 Thread George Kennedy
On 2/10/2021 4:51 PM, George Kennedy wrote: On 2/3/2021 2:35 PM, Dmitry Vyukov wrote: On Wed, Feb 3, 2021 at 8:29 PM Konrad Rzeszutek Wilk wrote: Hey Dmitry, Rafael, George, please see below.. On Wed, Jan 27, 2021 at 10:10:07PM +0100, Dmitry Vyukov wrote: On Wed, Jan 27, 2021 at 9:01 PM

Re: drivers/leds/flash/leds-rt8515.c:216: undefined reference to `v4l2_flash_release'

2021-02-12 Thread Pavel Machek
On Fri 2021-02-12 13:38:58, Linus Walleij wrote: > I need Arnds help with this... > > On Fri, Feb 12, 2021 at 12:05 AM kernel test robot wrote: > > >ld: drivers/leds/flash/leds-rt8515.o: in function > > `rt8515_v4l2_flash_release': > > >> drivers/leds/flash/leds-rt8515.c:216: undefined refe

Re: [PATCH v2 3/8] cxl/mem: Register CXL memX devices

2021-02-12 Thread Jonathan Cameron
On Thu, 11 Feb 2021 12:40:45 -0800 Dan Williams wrote: > On Thu, Feb 11, 2021 at 2:19 AM Jonathan Cameron > wrote: > > > > On Wed, 10 Feb 2021 18:17:25 + > > Jonathan Cameron wrote: > > > > > On Tue, 9 Feb 2021 16:02:54 -0800 > > > Ben Widawsky wrote: > > > > > > > From: Dan Williams

Re: possible deadlock in start_this_handle (2)

2021-02-12 Thread Tetsuo Handa
On 2021/02/12 22:12, Michal Hocko wrote: > On Fri 12-02-21 21:58:15, Tetsuo Handa wrote: >> On 2021/02/12 21:30, Michal Hocko wrote: >>> On Fri 12-02-21 12:22:07, Matthew Wilcox wrote: On Fri, Feb 12, 2021 at 08:18:11PM +0900, Tetsuo Handa wrote: > On 2021/02/12 1:41, Michal Hocko wrote: >

Sv: [PATCH] hrtimer: Interrupt storm on clock_settime

2021-02-12 Thread Beckius, Mikael
Thanks for the update and sorry for the late reply. After long-term testing of the patch, storm detection improved, it turns out that a similar problem can occur if hrtimer_interrupt runs during clock_settime. In this case it seems the offset can get updated and later read using hrtimer_update_b

Re: [PATCH v2 5/8] cxl/mem: Add a "RAW" send command

2021-02-12 Thread Jonathan Cameron
On Thu, 11 Feb 2021 08:01:48 -0800 Ben Widawsky wrote: > On 21-02-11 11:19:24, Jonathan Cameron wrote: > > On Tue, 9 Feb 2021 16:02:56 -0800 > > Ben Widawsky wrote: > > > > > The CXL memory device send interface will have a number of supported > > > commands. The raw command is not such a com

Re: [PATCH] [v13] wireless: Initial driver submission for pureLiFi STA devices

2021-02-12 Thread Johannes Berg
Hi, Thanks for your patience, and thanks for sticking around! I'm sorry I haven't reviewed this again in a long time, but I was able to today. > +PUREILIFI USB DRIVER Did you mistype "PURELIFI" here, or was that intentional? > +PUREILIFI USB DRIVER > +M: Srinivasan Raju Probably would be

[PATCH v12 1/1] Add the latency-collector to tools

2021-02-12 Thread Viktor Rosendahl
This is a tool that is intended to work around the fact that the preemptoff, irqsoff, and preemptirqsoff tracers only work in overwrite mode. The idea is to act randomly in such a way that we do not systematically lose any latencies, so that if enough testing is done, all latencies will be captured

Re: [RFC PATCH net v2] net: introduce CAN specific pointer in the struct net_device

2021-02-12 Thread Oliver Hartkopp
Hello Oleksij, nice cleanup - and I like the removal of the notifier in af_can.c :-) Two questions/hints from my side: On 12.02.21 13:52, Oleksij Rempel wrote: diff --git a/drivers/net/can/dev/dev.c b/drivers/net/can/dev/dev.c index d9281ae853f8..912401788d93 100644 --- a/drivers/net/can/dev/

[PATCH v12 0/1] Add the latency-collector to tools

2021-02-12 Thread Viktor Rosendahl
Changes since v11 * I added a .gitignore in the tools/tracing/latency directory. Changes since v10 * Using libtracefs to control ftrace and find /sys/kernel/tracing * New options to list available tracers, select the tracer and other ftrace parameters * A signal handler to restore the ftrac

Re: [PATCH 1/1] iscsi_ibft: KASAN false positive failure occurs in ibft_init()

2021-02-12 Thread Dmitry Vyukov
On Fri, Feb 12, 2021 at 2:31 PM George Kennedy wrote: > On 2/10/2021 4:51 PM, George Kennedy wrote: > > On 2/3/2021 2:35 PM, Dmitry Vyukov wrote: > >> On Wed, Feb 3, 2021 at 8:29 PM Konrad Rzeszutek Wilk > >> wrote: > >>> Hey Dmitry, Rafael, George, please see below.. > >>> > >>> On Wed, Jan 27,

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

2021-02-12 Thread Andrew Lunn
> > Or we have also found out, that pushing back on parameters like this, > > the developers goes back and looks at the code, and sometimes figures > > out a way to automatically do the right thing, removing the > > configuration knob, and just making it all simpler for the user to > > use. > > I

Re: [RFC PATCH 3/7] regulator: IRQ based event/error notification helpers

2021-02-12 Thread Mark Brown
On Fri, Feb 12, 2021 at 09:33:44AM +, Vaittinen, Matti wrote: > There seems to be few drivers which need delayed wq and which implement > .remove() just to call the cancel_delayed_work_sync(). > I think this might help cleaning up those(?) Or am I completely off > here? I can see it being us

Re: [RESEND RFC PATCH v2] arm64: Exposes support for 32-bit syscalls

2021-02-12 Thread Arnd Bergmann
On Fri, Feb 12, 2021 at 12:33 PM Steven Price wrote: > On 11/02/2021 20:21, sonicadvan...@gmail.com wrote: > > The problem: > > We need to support 32-bit processes running under a userspace > > compatibility layer. The compatibility layer is a AArch64 process. > > This means exposing the 32bit co

Re: [PATCH 2/3] net:ethernet:rmnet:Support for downlink MAPv5 csum offload

2021-02-12 Thread Alex Elder
On 2/11/21 8:04 PM, Jakub Kicinski wrote: On Fri, 12 Feb 2021 03:05:23 +0530 Sharath Chandra Vurukala wrote: +/* MAP CSUM headers */ +struct rmnet_map_v5_csum_header { + u8 next_hdr:1; + u8 header_type:7; + u8 hw_reserved:5; + u8 priority:1; + u8 hw_reserved_bi

Re: [patch 2/3] nohz: change signal tick dependency to wakeup CPUs of member tasks

2021-02-12 Thread Marcelo Tosatti
On Fri, Feb 12, 2021 at 01:25:21PM +0100, Frederic Weisbecker wrote: > On Thu, Jan 28, 2021 at 05:21:36PM -0300, Marcelo Tosatti wrote: > > Rather than waking up all nohz_full CPUs on the system, only wakeup > > the target CPUs of member threads of the signal. > > > > Reduces interruptions to noh

Re: [PATCH v3] kcmp: Support selection of SYS_kcmp without CHECKPOINT_RESTORE

2021-02-12 Thread Michel Dänzer
On 2021-02-12 1:57 p.m., Emil Velikov wrote: On Fri, 5 Feb 2021 at 22:01, Chris Wilson wrote: Userspace has discovered the functionality offered by SYS_kcmp and has started to depend upon it. In particular, Mesa uses SYS_kcmp for os_same_file_description() in order to identify when two fd (e.g

Re: [PATCH RESEND] regulator: bd718x7, bd71828, Fix dvs voltage levels

2021-02-12 Thread Mark Brown
On Fri, 12 Feb 2021 10:00:23 +0200, Matti Vaittinen wrote: > The ROHM BD718x7 and BD71828 drivers support setting HW state > specific voltages from device-tree. This is used also by various > in-tree DTS files. > > These drivers do incorrectly try to compose bit-map using enum > values. By a chanc

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

2021-02-12 Thread Mark Brown
On Thu, 11 Feb 2021 19:08:20 +0100, Nicolas Saenz Julienne wrote: > 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

Re: [PATCH] spi: dw: Avoid stack content exposure

2021-02-12 Thread Mark Brown
On Thu, 11 Feb 2021 12:37:14 -0800, Kees Cook wrote: > Since "data" is u32, &data is a "u32 *" type, which means pointer math > will move in u32-sized steps. This was meant to be a byte offset, so > cast &data to "char *" to aim the copy into the correct location. > > Seen with -Warray-bounds (and

Re: phy_attach_direct()'s use of device_bind_driver()

2021-02-12 Thread Andrew Lunn
> So the plan to fix this warning is, when device_bind_driver() is called: > 1. Delete all device links from the device (in this case, the PHY) to > suppliers that haven't probed yet because there's no probe function > that can defer at this point. Just because it currently does not happen, does n

[PATCH net v1 1/3] net: phy: mscc: adding LCPLL reset to VSC8514

2021-02-12 Thread Bjarni Jonasson
At Power-On Reset, transients may cause the LCPLL to lock onto a clock that is momentarily unstable. This is normally seen in QSGMII setups where the higher speed 6G SerDes is being used. This patch adds an initial LCPLL Reset to the PHY (first instance) to avoid this issue. Signed-off-by: Steen H

[PATCH net v1 2/3] net: phy: mscc: improved serdes calibration applied to VSC8514

2021-02-12 Thread Bjarni Jonasson
The current IB serdes calibration algorithm (performed by the onboard 8051) has proven to be unstable for the VSC8514 QSGMII phy. A new algorithm has been developed based on 'Frequency-offset Jittered-Injection' or 'FoJi' method which solves all known issues. This patch disables the 8051 algorithm

[PATCH net v1 3/3] net: phy: mscc: coma mode disabled for VSC8514

2021-02-12 Thread Bjarni Jonasson
The 'coma mode' (configurable through sw or hw) provides an optional feature that may be used to control when the PHYs become active. The typical usage is to synchronize the link-up time across all PHY instances. This patch releases coma mode if not done by hardware, otherwise the phys will not lin

Re: [PATCH v3] kcmp: Support selection of SYS_kcmp without CHECKPOINT_RESTORE

2021-02-12 Thread Emil Velikov
On Fri, 12 Feb 2021 at 13:14, Simon Ser wrote: > > On Friday, February 12th, 2021 at 1:57 PM, Emil Velikov > wrote: > > > On Fri, 5 Feb 2021 at 22:01, Chris Wilson wrote: > > > > > > Userspace has discovered the functionality offered by SYS_kcmp and has > > > started to depend upon it. In parti

Re: [PATCH v3] kcmp: Support selection of SYS_kcmp without CHECKPOINT_RESTORE

2021-02-12 Thread Emil Velikov
On Fri, 12 Feb 2021 at 14:01, Michel Dänzer wrote: > > On 2021-02-12 1:57 p.m., Emil Velikov wrote: > > On Fri, 5 Feb 2021 at 22:01, Chris Wilson wrote: > >> > >> Userspace has discovered the functionality offered by SYS_kcmp and has > >> started to depend upon it. In particular, Mesa uses SYS_kc

Re: [Linuxarm] 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-12 Thread Grygorii Strashko
On 12/02/2021 15:12, Song Bao Hua (Barry Song) wrote: -Original Message- From: Grygorii Strashko [mailto:grygorii.stras...@ti.com] Sent: Saturday, February 13, 2021 12:53 AM To: Song Bao Hua (Barry Song) ; Andy Shevchenko Cc: Arnd Bergmann ; luojiaxing ; Linus Walleij ; Santosh Shi

Re: [PATCH 1/6] fs: Add flag to file_system_type to indicate content is generated

2021-02-12 Thread Greg KH
On Fri, Feb 12, 2021 at 12:41:48PM +, Luis Henriques wrote: > Greg KH writes: > > > On Fri, Feb 12, 2021 at 12:05:14PM +, Luis Henriques wrote: > >> Greg KH writes: > >> > >> > On Fri, Feb 12, 2021 at 10:22:16AM +0200, Amir Goldstein wrote: > >> >> On Fri, Feb 12, 2021 at 9:49 AM Greg K

Re: [PATCH] drivers: firmware: xilinx: Fix dereferencing freed memory

2021-02-12 Thread Michal Simek
On 2/8/21 7:31 AM, Rajan Vaja wrote: > From: Tejas Patel > > Fix smatch warning: > drivers/firmware/xilinx/zynqmp.c:1288 zynqmp_firmware_remove() > error: dereferencing freed memory 'feature_data' > > Use hash_for_each_safe for safe removal of hash entry. > > Fixes: acfdd18591ea ("firmware:

Re: [PATCH] mtd: physmap: physmap-bt1-rom: Fix unintentional stack access

2021-02-12 Thread Miquel Raynal
Hi Gustavo, "Gustavo A. R. Silva" wrote on Fri, 12 Feb 2021 04:40:22 -0600: > Cast &data to (char *) in order to avoid unintentionally accessing > the stack. > > Notice that data is of type u32, so any increment to &data > will be in the order of 4-byte chunks, and this piece of code > is actua

[PATCH v2 4/5] ACPI: property: Satisfy kernel doc validator (part 2)

2021-02-12 Thread Andy Shevchenko
CHECK drivers/acpi/property.c warning: Function parameter or member '__fwnode' not described in 'acpi_graph_get_remote_endpoint' warning: Excess function parameter 'fwnode' description in 'acpi_graph_get_remote_endpoint' warning: Excess function parameter 'endpoint' description in 'acpi_gra

RE: [RESEND RFC PATCH v2] arm64: Exposes support for 32-bit syscalls

2021-02-12 Thread David Laight
From: Catalin Marinas > Sent: 12 February 2021 13:28 > > On Fri, Feb 12, 2021 at 12:35:15PM +, Mark Brown wrote: > > On Fri, Feb 12, 2021 at 11:30:41AM +, Steven Price wrote: > > > On 11/02/2021 20:21, sonicadvan...@gmail.com wrote: > > > > Why do we need compatibility layers? > > > > Ther

[PATCH v2 5/5] ACPI: property: Refactor acpi_data_prop_read_single()

2021-02-12 Thread Andy Shevchenko
Refactor acpi_data_prop_read_single() for less LOCs and better maintenance. Signed-off-by: Andy Shevchenko --- drivers/acpi/property.c | 80 ++--- 1 file changed, 34 insertions(+), 46 deletions(-) diff --git a/drivers/acpi/property.c b/drivers/acpi/property.c

[PATCH v2 1/5] ACPI: property: Remove dead code

2021-02-12 Thread Andy Shevchenko
After the commit 3a7a2ab839ad couple of functions became a dead code. Moreover, for all these years nobody used them. Remove. Fixes: 3a7a2ab839ad ("ACPI / property: Extend fwnode_property_* to data-only subnodes") Signed-off-by: Andy Shevchenko --- drivers/acpi/property.c | 20 -

[PATCH v2 2/5] ACPI: property: Make acpi_node_prop_read() static

2021-02-12 Thread Andy Shevchenko
There is no users outside of property.c. No need to export acpi_node_prop_read(), hence make it static. Fixes: 3708184afc77 ("device property: Move FW type specific functionality to FW specific files") Signed-off-by: Andy Shevchenko --- drivers/acpi/property.c | 6 +++--- include/linux/acpi.h

Re: [RESEND RFC PATCH v2] arm64: Exposes support for 32-bit syscalls

2021-02-12 Thread Mark Rutland
On Thu, Feb 11, 2021 at 12:21:54PM -0800, sonicadvan...@gmail.com wrote: > From: Ryan Houdek > > Sorry about the noise. I obviously don't work in this ecosystem. > Didn't get any comments previously so I'm resending > > The problem: > We need to support 32-bit processes running under a userspace

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

2021-02-12 Thread David Hildenbrand
On 11.02.21 19:05, Mike Kravetz wrote: 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 refu

Re: [PATCH] scripts/dtc: Update to upstream version v1.6.0-51-g183df9e9c2b9

2021-02-12 Thread Rob Herring
On Thu, Feb 11, 2021 at 9:31 PM Guenter Roeck wrote: > > Hi Rob, > > On Wed, Feb 03, 2021 at 03:26:03PM -0600, Rob Herring wrote: > > This adds the following commits from upstream: > > > > 183df9e9c2b9 gitignore: Ignore the swp files > > 0db6d09584e1 gitignore: Add cscope files > > 307afa1a7be8 Up

[PATCH v2 3/5] ACPI: property: Satisfy kernel doc validator (part 1)

2021-02-12 Thread Andy Shevchenko
CHECK drivers/acpi/property.c warning: Function parameter or member 'data' not described in 'acpi_data_get_property_array' warning: Excess function parameter 'adev' description in 'acpi_data_get_property_array' Fixes: 3a7a2ab839ad ("ACPI / property: Extend fwnode_property_* to data-only sub

[PATCH 0/7 v3] move update blocked load outside newidle_balance

2021-02-12 Thread Vincent Guittot
Joel reported long preempt and irq off sequence in newidle_balance because of a large number of CPU cgroups in use and having to be updated. This patchset moves the update outside newidle_imblance. This enables to early abort during the updates in case of pending irq as an example. Instead of kick

[PATCH 2/7 v3] sched/fair: remove unused return of _nohz_idle_balance

2021-02-12 Thread Vincent Guittot
The return of _nohz_idle_balance() is not used anymore so we can remove it Signed-off-by: Vincent Guittot --- kernel/sched/fair.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index bfe1e235fe01..f3f0f8cca061 100644 --- a/

[PATCH 3/7 v3] sched/fair: remove unused parameter of update_nohz_stats

2021-02-12 Thread Vincent Guittot
idle load balance is the only user of update_nohz_stats and doesn't use force parameter. Remove it Signed-off-by: Vincent Guittot --- kernel/sched/fair.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index f3f0f8cca061..4573a0

Re: [PATCH v4 net-next 0/9] Cleanup in brport flags switchdev offload for DSA

2021-02-12 Thread Grygorii Strashko
On 12/02/2021 03:05, Vladimir Oltean wrote: From: Vladimir Oltean The initial goal of this series was to have better support for standalone ports mode on the DSA drivers like ocelot/felix and sja1105. This turned out to require some API adjustments in both directions: to the information pres

[PATCH 6/7 v3] sched/fair: trigger the update of blocked load on newly idle cpu

2021-02-12 Thread Vincent Guittot
Instead of waking up a random and already idle CPU, we can take advantage of this_cpu being about to enter idle to run the ILB and update the blocked load. Signed-off-by: Vincent Guittot --- kernel/sched/fair.c | 24 +--- kernel/sched/idle.c | 6 ++ kernel/sched/sched.

[PATCH 5/7 v3] sched/fair: reorder newidle_balance pulled_task tests

2021-02-12 Thread Vincent Guittot
Reorder the tests and skip useless ones when no load balance has been performed and rq lock has not been released. Signed-off-by: Vincent Guittot --- kernel/sched/fair.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index

Re: [patch 2/3] nohz: change signal tick dependency to wakeup CPUs of member tasks

2021-02-12 Thread Frederic Weisbecker
On Fri, Feb 12, 2021 at 11:00:41AM -0300, Marcelo Tosatti wrote: > On Fri, Feb 12, 2021 at 01:25:21PM +0100, Frederic Weisbecker wrote: > > On Thu, Jan 28, 2021 at 05:21:36PM -0300, Marcelo Tosatti wrote: > > > Rather than waking up all nohz_full CPUs on the system, only wakeup > > > the target CP

[PATCH 1/7 v3] sched/fair: remove update of blocked load from newidle_balance

2021-02-12 Thread Vincent Guittot
newidle_balance runs with both preempt and irq disabled which prevent local irq to run during this period. The duration for updating the blocked load of CPUs varies according to the number of CPU cgroups with non-decayed load and extends this critical period to an uncontrolled level. Remove the up

[PATCH 7/7 v3] sched/fair: reduce the window for duplicated update

2021-02-12 Thread Vincent Guittot
Start to update last_blocked_load_update_tick to reduce the possibility of another cpu starting the update one more time Signed-off-by: Vincent Guittot --- kernel/sched/fair.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.

[PATCH 4/7 v3] sched/fair: merge for each idle cpu loop of ILB

2021-02-12 Thread Vincent Guittot
Remove the specific case for handling this_cpu outside for_each_cpu() loop when running ILB. Instead we use for_each_cpu_wrap() and start with the next cpu after this_cpu so we will continue to finish with this_cpu. update_nohz_stats() is now used for this_cpu too and will prevents unnecessary upd

Re: [patch 0/3] nohz_full: only wakeup target CPUs when notifying new tick dependency (v5)

2021-02-12 Thread Frederic Weisbecker
On Thu, Jan 28, 2021 at 05:21:34PM -0300, Marcelo Tosatti wrote: > When enabling per-CPU posix timers, an IPI to nohz_full CPUs might be > performed (to re-read the dependencies and possibly not re-enter > nohz_full on a given CPU). > > A common case is for applications that run on nohz_full= CPUs

[PATCH] clk: sunxi-ng: v3s: add support for variable rate audio pll output

2021-02-12 Thread Tobias Schramm
Previously the variable rate audio pll output was fixed to a divider of four. This is unfortunately incompatible with generating commonly used I2S core clock rates like 24.576MHz from the 24MHz parent clock. This commit adds support for arbitrary audio pll output dividers to fix that. Signed-off-b

Re: [PATCH][next] bcache: Use 64-bit arithmetic instead of 32-bit

2021-02-12 Thread Coly Li
On 2/12/21 8:50 PM, Gustavo A. R. Silva wrote: > Cast multiple variables to (int64_t) in order to give the compiler > complete information about the proper arithmetic to use. Notice that > these variables are being used in contexts that expect expressions of > type int64_t (64 bit, signed). And cu

Re: [PATCH] staging: wimax/i2400m: fix some byte order issues found by sparse

2021-02-12 Thread Anirudh Rayabharam
On Thu, Feb 11, 2021 at 09:35:27PM +0100, Greg KH wrote: > On Fri, Feb 12, 2021 at 01:59:08AM +0530, Anirudh Rayabharam wrote: > > Fix sparse byte-order warnings in the i2400m_bm_cmd_prepare() > > function: > > > > wimax/i2400m/fw.c:194:36: warning: restricted __le32 degrades to integer > > wimax/

[PATCHv2 2/2] clk: socfpga: agilex: add clock driver for eASIC N5X platform

2021-02-12 Thread Dinh Nguyen
Add support for Intel's eASIC N5X platform. The clock manager driver for the N5X is very similar to the Agilex platform, we can re-use most of the Agilex clock driver. This patch makes the necessary changes for the driver to differentiate between the Agilex and the N5X platforms. Signed-off-by: D

Re: [PATCH v2 5/5] ACPI: property: Refactor acpi_data_prop_read_single()

2021-02-12 Thread Rafael J. Wysocki
On Fri, Feb 12, 2021 at 3:14 PM Andy Shevchenko wrote: > > Refactor acpi_data_prop_read_single() for less LOCs and better maintenance. > > Signed-off-by: Andy Shevchenko > --- > drivers/acpi/property.c | 80 ++--- > 1 file changed, 34 insertions(+), 46 deleti

[PATCHv1 1/2] dt-bindings: documentation: add clock bindings information for eASIC N5X

2021-02-12 Thread Dinh Nguyen
Document the Agilex clock bindings, and add the clock header file. The clock header is an enumeration of all the different clocks on the eASIC N5X platform. Signed-off-by: Dinh Nguyen --- .../bindings/clock/intel,easic-n5x.yaml | 46 +++ 1 file changed, 46 insertions(+) cr

Re: [PATCH] clk: socfpga: agilex: add clock driver for eASIC N5X platform

2021-02-12 Thread Dinh Nguyen
On 2/10/21 9:05 PM, Stephen Boyd wrote: Quoting Dinh Nguyen (2021-01-05 11:29:56) Add support for Intel's eASIC N5X platform. The clock manager driver for the N5X is very similar to the Agilex platform, we can re-use most of the Agilex clock driver. This patch makes the necessary changes for

Re: [PATCH v4 net-next 0/9] Cleanup in brport flags switchdev offload for DSA

2021-02-12 Thread Vignesh Raghavendra
Hi Vladimir, On 2/12/21 7:47 PM, Grygorii Strashko wrote: > > > On 12/02/2021 03:05, Vladimir Oltean wrote: >> From: Vladimir Oltean [...] > > Sorry, but we seems just added more work for you. > https://lore.kernel.org/patchwork/cover/1379380/ > Could you squash these when you post new versi

[PATCH v3 net-next 0/5] net: ipa: some more cleanup

2021-02-12 Thread Alex Elder
Version 3 of this series uses dev_err_probe() in the second patch, as suggested by Heiner Kallweit. Version 2 was sent to ensure the series was based on current net-next/master, and added copyright updates to files touched. The original introduction is below.

[PATCH v3 net-next 1/5] net: ipa: use a separate pointer for adjusted GSI memory

2021-02-12 Thread Alex Elder
This patch actually fixes a bug, though it doesn't affect the two platforms supported currently. The fix implements GSI memory pointers a bit differently. For IPA version 4.5 and above, the address space for almost all GSI registers is adjusted downward by a fixed amount. This is currently handl

[PATCH v3 net-next 2/5] net: ipa: use dev_err_probe() in ipa_clock.c

2021-02-12 Thread Alex Elder
When initializing the IPA core clock and interconnects, it's possible we'll get an EPROBE_DEFER error. This isn't really an error, it's just means we need to be re-probed later. Use dev_err_probe() to report the error rather than dev_err(). This avoids polluting the log with these "error" message

[PATCH v3 net-next 5/5] net: ipa: introduce gsi_channel_initialized()

2021-02-12 Thread Alex Elder
Create a simple helper function that indicates whether a channel has been initialized. This abstacts/hides the details of how this is determined. Signed-off-by: Alex Elder --- drivers/net/ipa/gsi.c | 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/drive

[PATCH v3 net-next 3/5] net: ipa: fix register write command validation

2021-02-12 Thread Alex Elder
In ipa_cmd_register_write_valid() we verify that values we will supply to a REGISTER_WRITE IPA immediate command will fit in the fields that need to hold them. This patch fixes some issues in that function and ipa_cmd_register_write_offset_valid(). The dev_err() call in ipa_cmd_register_write_off

Re: [PATCH v2 1/5] ACPI: property: Remove dead code

2021-02-12 Thread Rafael J. Wysocki
On Fri, Feb 12, 2021 at 3:16 PM Andy Shevchenko wrote: > > After the commit 3a7a2ab839ad couple of functions became a dead code. > Moreover, for all these years nobody used them. Remove. > > Fixes: 3a7a2ab839ad ("ACPI / property: Extend fwnode_property_* to data-only > subnodes") > Signed-off-by:

[PATCH v3 net-next 4/5] net: ipa: introduce ipa_table_hash_support()

2021-02-12 Thread Alex Elder
Introduce a new function to abstract the knowledge of whether hashed routing and filter tables are supported for a given IPA instance. IPA v4.2 is the only one that doesn't support hashed tables (now and for the foreseeable future), but the name of the helper function is better for explaining what

Re: [PATCH v17 02/10] of: Add a common kexec FDT setup function

2021-02-12 Thread Rob Herring
On Thu, Feb 11, 2021 at 7:17 PM Lakshmi Ramasubramanian wrote: > > On 2/11/21 5:09 PM, Thiago Jung Bauermann wrote: > > > > There's actually a complication that I just noticed and needs to be > > addressed. More below. > > > > <...> > > >> + > >> +/* > >> + * of_kexec_alloc_and_setup_fdt - Alloc a

Re: [PATCH next v3 03/16] dt-bindings: phy: mediatek: dsi-phy: modify compatible dependence

2021-02-12 Thread Chun-Kuang Hu
Hi, Chunfeng: Chunfeng Yun 於 2021年2月1日 週一 下午3:00寫道: > > mt7623-mipi-tx is compatible to mt2701-mipi-tx, and use > "mediatek,mt2701-mipi-tx" instead on MT7623, so modify > the compatible items to make dependence clear. Acked-by: Chun-Kuang Hu > > Cc: Chun-Kuang Hu > Cc: Philipp Zabel > Signed

Re: [PATCH v4 net-next 0/9] Cleanup in brport flags switchdev offload for DSA

2021-02-12 Thread Vladimir Oltean
On Fri, Feb 12, 2021 at 08:01:33PM +0530, Vignesh Raghavendra wrote: > Hi Vladimir, > > On 2/12/21 7:47 PM, Grygorii Strashko wrote: > > > > > > On 12/02/2021 03:05, Vladimir Oltean wrote: > >> From: Vladimir Oltean > [...] > > > > Sorry, but we seems just added more work for you. > > https://

Re: [PATCH next v3 04/16] dt-bindings: phy: mediatek: hdmi-phy: modify compatible items

2021-02-12 Thread Chun-Kuang Hu
Hi, Chunfeng: Chunfeng Yun 於 2021年2月1日 週一 下午3:00寫道: > > mt7623-hdmi-tx is compatible to mt2701-hdmi-tx, and the compatible > "mediatek,mt7623-hdmi-tx" is not supported in driver, in fact uses > "mediatek,mt2701-hdmi-tx" instead on MT7623, so changes the > compatible items to make dependence clear

Re: [PATCH] RFC: x86/jump_label: Mark arguments as const to satisfy asm constraints

2021-02-12 Thread Steven Rostedt
On Thu, 11 Feb 2021 13:48:48 -0800 Jason Gerecke wrote: > When compiling an external kernel module with `-O0` or `-O1`, the following > compile error may be reported: > > ./arch/x86/include/asm/jump_label.h:25:2: error: impossible constraint in > ‘asm’ >25 | asm_volatile_goto("1:"

[PATCH][RFC] perf annotate: show full line locations with 'k' in UI

2021-02-12 Thread Martin Liška
Hello. Sometimes it's handy to display also a filename of a source location, mainly because source lines can come from different files. I extended 'k' hotkey and one can now see: 1) no source lines: 1.31 │ ↓ je 130

Re: [PATCH] staging: wimax/i2400m: fix some byte order issues found by sparse

2021-02-12 Thread Greg KH
On Fri, Feb 12, 2021 at 08:00:25PM +0530, Anirudh Rayabharam wrote: > On Thu, Feb 11, 2021 at 09:35:27PM +0100, Greg KH wrote: > > On Fri, Feb 12, 2021 at 01:59:08AM +0530, Anirudh Rayabharam wrote: > > > Fix sparse byte-order warnings in the i2400m_bm_cmd_prepare() > > > function: > > > > > > wim

Re: [RESEND RFC PATCH v2] arm64: Exposes support for 32-bit syscalls

2021-02-12 Thread Catalin Marinas
On Fri, Feb 12, 2021 at 02:12:02PM +, David Laight wrote: > From: Catalin Marinas > > Sent: 12 February 2021 13:28 > > On Fri, Feb 12, 2021 at 12:35:15PM +, Mark Brown wrote: > > > On Fri, Feb 12, 2021 at 11:30:41AM +, Steven Price wrote: > > > > On 11/02/2021 20:21, sonicadvan...@gmail

[GIT PULL] tracing: Check length before giving out the filter buffer

2021-02-12 Thread Steven Rostedt
Steven Rostedt (VMware) Linus, tracing: Fix buffer overflow in trace event filter It was reported that if a trace event was larger than a page and was filtered, that it caused memory corruption. The reason is that filtered events first go into a buffer to test the filter before being written in

[PATCH 0/7] Split Coresight decode by aux records

2021-02-12 Thread James Clark
Hi All, Since my previous RFC, I've fixed --per-thread mode and solved most of the open questions. I've also changed --dump-raw-trace to use the same code path so it's also working now. I think the only open questions are: * General approach * If aux records need to be saved, or if they can b

[PATCH 1/7] perf cs-etm: Split up etm queue setup function

2021-02-12 Thread James Clark
Refactor the function into separate allocation and timestamp search parts. Later the timestamp search will be done multiple times. Signed-off-by: James Clark --- tools/perf/util/cs-etm.c | 60 +--- 1 file changed, 31 insertions(+), 29 deletions(-) diff --git

[PATCH 4/7] perf cs-etm: don't process queues until cs_etm__flush_events

2021-02-12 Thread James Clark
To make sure processing happens in the correct order, queue processing shouldn't start until every aux queue has had its first timestamp found. Now that we're only searching for timestamps within each aux record, we need to wait until all aux records are delivered before starting the processing.

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