[PATCH for-5.7] io_uring: fix zero len do_splice()

2020-05-04 Thread Pavel Begunkov
do_splice() doesn't expect len to be 0. Just always return 0 in this case as splice(2) do. Fixes: 7d67af2c0134 ("io_uring: add splice(2) support") Reported-by: Jann Horn Signed-off-by: Pavel Begunkov --- fs/io_uring.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git

Re: [PATCH 3/3] vfio-pci: Invalidate mmaps and block MMIO access on disabled memory

2020-05-04 Thread Jason Gunthorpe
On Mon, May 04, 2020 at 01:35:52PM -0600, Alex Williamson wrote: > Ok, this all makes a lot more sense with memory_lock still in the > picture. And it looks like you're not insisting on the wait_event, we > can block on memory_lock so long as we don't have an ordering issue. > I'll see what I can

[v3 PATCH 2/2] dt-bindings: display: Document ASUS Z00T TM5P5 NT35596 panel compatible

2020-05-04 Thread Konrad Dybcio
Signed-off-by: Konrad Dybcio --- .../display/panel/asus,z00t-tm5p5-n35596.yaml | 56 +++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/asus,z00t-tm5p5-n35596.yaml diff --git a/Documentation/devicetree/bindings/display/panel

Re: [PATCH v4 2/3] clk: at91: allow setting PCKx parent via DT

2020-05-04 Thread Alexandre Belloni
On 03/05/2020 19:19:25+0200, Michał Mirosław wrote: > This exposes PROGx clocks for use in assigned-clocks DeviceTree property > for selecting PCKx parent clock. > > Signed-off-by: Michał Mirosław Acked-by: Alexandre Belloni > --- > v2: rebase and update to clk/clk-at91 branch > v3: rebase > v4

Re: [PATCH 0/3] RISC-V KVM preparation

2020-05-04 Thread Palmer Dabbelt
On Thu, 23 Apr 2020 21:59:25 PDT (-0700), Anup Patel wrote: This patch series is factored-out from the KVM RISC-V v11 series and is based upon Linux-5.7-rc2. These patches are mostly preparatory changes in Linux RISC-V kernel which we require for KVM RISC-V implementation. Also, most of these pa

[v3 PATCH 1/2] drivers: drm: panel: Add ASUS TM5P5 NT35596 panel driver

2020-05-04 Thread Konrad Dybcio
This adds support for TMP5P5 NT35596 1080x1920 video mode panel that can be found on some Asus Zenfone 2 Laser (Z00T) devices. This panel seems to only be found in this device and we have no straightforward way of actually getting the correct model number, as no schematics are released publicly.

Re: [PATCH v1 0/3] allow ramoops to collect all kmesg_dump events

2020-05-04 Thread Pavel Tatashin
> > pstore /mnt/console-ramoops-0 outputs only messages below the console > > loglevel, and our console loglevel is set to 3 due to slowness of > > serial console. Which means only errors and worse types of messages > > are recorded. AFAIK, there is no way to have different log levels for > > diffe

Re: [PATCH v1 3/3] ramoops: add dump_all optional field to ramoops DT node

2020-05-04 Thread Pavel Tatashin
On Mon, May 4, 2020 at 3:29 PM Kees Cook wrote: > > On Sat, May 02, 2020 at 10:35:55AM -0400, Pavel Tatashin wrote: > > Currently, it is possible to dump kmesges for panic, or oops. > > With dump_all it is possible to dump messages for kmesg_dump events, > > for example reboot, halt, shutdown, kex

[v3 PATCH 0/2] Add support for ASUS Z00T TM5P5 NT35596 panel

2020-05-04 Thread Konrad Dybcio
changes since v2: - fix Kconfig indentation changes since v1: - make `backlight_properties props` constant - a couple of line breaks - change name and compatible to reflect ASUS being the vendor - remove a redundant TODO Konrad Dybcio (2): drivers: drm: panel: Add ASUS TM5P5 NT35596 panel drive

Re: [PATCH] sysctl: Make sure proc handlers can't expose heap memory

2020-05-04 Thread Luis Chamberlain
On Mon, May 04, 2020 at 12:08:55PM -0700, Kees Cook wrote: > Just as a precaution, make sure that proc handlers don't accidentally > grow "count" beyond the allocated kbuf size. > > Signed-off-by: Kees Cook > --- > This applies to hch's sysctl cleanup tree... > --- > fs/proc/proc_sysctl.c | 3 ++

[PATCH v5 3/3] clk: at91: allow setting all PMC clock parents via DT

2020-05-04 Thread Michał Mirosław
We need to have clocks accessible via phandle to select them as peripheral clock parent using assigned-clock-parents in DT. Add support for PLLACK/PLLBCK/AUDIOPLLCK clocks where available. Signed-off-by: Michał Mirosław --- v2: rebase to clk/clk-at91 branch v3: no changes v4: extend to whole fami

[PATCH v5 2/3] clk: at91: allow setting PCKx parent via DT

2020-05-04 Thread Michał Mirosław
This exposes PROGx clocks for use in assigned-clocks DeviceTree property for selecting PCKx parent clock. Signed-off-by: Michał Mirosław --- v2: rebase and update to clk/clk-at91 branch v3: rebase v4: no changes v5: no changes --- drivers/clk/at91/at91rm9200.c| 6 -- drivers/clk/at91/at

[PATCH v5 0/3] clk: at91: support configuring more clocks via DT

2020-05-04 Thread Michał Mirosław
This series extends AT91 clock support with references to PCKx and PLLA/PLLB/AUDIOPLL. This makes the DT be able to fully specify (assign) clock parents when needed. First patch simplifies clock table allocation. Next two update the table with missing clock pointers and IDs. Michał Mirosław (3):

[PATCH v5 1/3] clk: at91: optimize pmc data allocation

2020-05-04 Thread Michał Mirosław
Alloc whole data structure in one block. This makes the code shorter, more efficient and easier to extend in following patch. Signed-off-by: Michał Mirosław Acked-by: Alexandre Belloni --- v2: rebase and update to clk/clk-at91 branch v3: use struct_size() and C99 trailing array as suggested

Re: [PATCH] slub: limit count of partial slabs scanned to gather statistics

2020-05-04 Thread Andrew Morton
On Mon, 04 May 2020 19:07:39 +0300 Konstantin Khlebnikov wrote: > To get exact count of free and used objects slub have to scan list of > partial slabs. This may take at long time. Scanning holds spinlock and > blocks allocations which move partial slabs to per-cpu lists and back. > > Example f

Re: [v2 PATCH 1/2] drivers: drm: panel: Add ASUS TM5P5 NT35596 panel driver

2020-05-04 Thread Randy Dunlap
On 5/4/20 12:38 PM, Konrad Dybcio wrote: > diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig > index a1723c1b5fbf8..3aa57a927c4bd 100644 > --- a/drivers/gpu/drm/panel/Kconfig > +++ b/drivers/gpu/drm/panel/Kconfig > @@ -18,6 +18,16 @@ config DRM_PANEL_ARM_VERSATILE >

Please reply me

2020-05-04 Thread Mrs Bertha Kra
Dearest It is with profound respect for your time, that I plead to state the following few lines for your kind consideration, and I hope you will spare some of your valuable minutes to read the following appeal with sympathetic mind and understanding. I am Mrs Bertha Kra I am 59 years old, I am d

[PATCH] ARM: dts: meson: add the gadget mode properties to the USB0 controller

2020-05-04 Thread Martin Blumenstingl
Testing with a USB RNDIS connection and iperf3 gives the following results: - From the host computer to the device at ~250Mbit/s - From the device to the host computer at ~76Mbit/s Signed-off-by: Martin Blumenstingl --- arch/arm/boot/dts/meson.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff

Re: [PATCH 09/24] rcu/tree: cache specified number of objects

2020-05-04 Thread Uladzislau Rezki
> > > Since we don't care about traversing backwards, isn't it better to use > > > llist > > > for this usecase? > > > > > > I think Vlad is using locking as we're also tracking the size of the > > > llist to > > > know when to free pages. This tracking could suffer from the lost-update > > > pro

Re: [PATCH 2/2] dt-bindings: tsens: qcom: Document MSM8939 compatible

2020-05-04 Thread Rob Herring
On Fri, 1 May 2020 22:33:11 +0200, Konrad Dybcio wrote: > Signed-off-by: Konrad Dybcio > --- > Documentation/devicetree/bindings/thermal/qcom-tsens.yaml | 1 + > 1 file changed, 1 insertion(+) > Acked-by: Rob Herring

[PATCH v3 7/8] power: bq25890: support IBAT compensation

2020-05-04 Thread Michał Mirosław
Add configuration for compensation of IBAT measuring resistor in series with the battery. Signed-off-by: Michał Mirosław --- drivers/power/supply/bq25890_charger.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/drivers/power/supply/bq25890_charger.c b/drive

[PATCH v3 8/8] power: bq25890: document IBAT compensation DT properties

2020-05-04 Thread Michał Mirosław
Document newly introduced IBAT compensation settings. Signed-off-by: Michał Mirosław --- v2: initial version --- Documentation/devicetree/bindings/power/supply/bq25890.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/power/supply/bq25890.txt b/Docume

[PATCH v3 5/8] power: bq25890: implement PRECHARGE_CURRENT property

2020-05-04 Thread Michał Mirosław
Report configured precharge current. Signed-off-by: Michał Mirosław --- drivers/power/supply/bq25890_charger.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/power/supply/bq25890_charger.c b/drivers/power/supply/bq25890_charger.c index 02e62ac76e15..dfd7bf9a3a55 100644 --- a/d

[PATCH v3 2/8] power: bq25890: fix ADC mode configuration

2020-05-04 Thread Michał Mirosław
Datasheet describes two modes for reading ADC measurements: 1. continuous, 1 Hz - enabled and started by CONV_RATE bit 2. one-shot - triggered by CONV_START bit In continuous mode, CONV_START is read-only and signifies an ongoing conversion. Change the code to follow the datasheet and really disa

[PATCH v3 3/8] power: bq25890: update state on property read

2020-05-04 Thread Michał Mirosław
Edge interrupts from the charger may be lost or stuck in fault mode since probe(). Check if something changed everytime userspace wants some data. Signed-off-by: Michał Mirosław --- drivers/power/supply/bq25890_charger.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/power/suppl

[PATCH v3 4/8] power: bq25890: implement CHARGE_TYPE property

2020-05-04 Thread Michał Mirosław
Report charging type based on recently read state. Signed-off-by: Michał Mirosław --- drivers/power/supply/bq25890_charger.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/power/supply/bq25890_charger.c b/drivers/power/supply/bq25890_charger.c index 322d48d28fe5..02e

[PATCH v3 6/8] power: bq25890: implement INPUT_CURRENT_LIMIT property

2020-05-04 Thread Michał Mirosław
Report REG00.IINLIM value as INPUT_CURRENT_LIMIT property. Signed-off-by: Michał Mirosław --- drivers/power/supply/bq25890_charger.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/power/supply/bq25890_charger.c b/drivers/power/supply/bq25890_charger.c index dfd7bf9a3a5

[PATCH v3 0/8] power: supply: bq25890: fix and extend

2020-05-04 Thread Michał Mirosław
This series consists of a set of fixes and enchancements to bq25890 driver. This is tested on a board using bq25896 as battery controller. Patches 1-3 fix property value reading, 4-6 add more information to be read from the chip, 7-8 add IBAT compensation support. --- v2 removes VBUS and VSYS add

[PATCH v3 1/8] power: bq25890: use proper CURRENT_NOW property for I_BAT

2020-05-04 Thread Michał Mirosław
Charge Current is more apropriately reflected by CURRENT_NOW property (measured current) than CONSTANT_CURRENT_VOLTAGE (configured CC-phase current limit). Fix the reference and make the sign reflect direction of the current. Signed-off-by: Michał Mirosław --- drivers/power/supply/bq25890_charge

Re: [PATCH v6 1/2] x86: fix bitops.h warning with a moved cast

2020-05-04 Thread Nick Desaulniers
On Tue, Mar 10, 2020 at 03:17:46PM -0700, Jesse Brandeburg wrote: > Fix many sparse warnings when building with C=1. These are useless > noise from the bitops.h file and getting rid of them helps devs > make more use of the tools and possibly find real bugs. > > When the kernel is compiled with C=

Re: [PATCH 1/3] leds: add aw2013 driver

2020-05-04 Thread Jacek Anaszewski
Hi Nikita, On 5/4/20 6:29 PM, nikitos...@gmail.com wrote: From: Nikita Travkin This commit adds support for AWINIC AW2013 3-channel LED driver. The chip supports 3 PWM channels and is controlled with I2C. Signed-off-by: Nikita Travkin --- drivers/leds/Kconfig | 10 + drivers/leds/M

Re: [PATCH v3 3/7] ASoC: sun4i-i2s: Add support for H6 I2S

2020-05-04 Thread Clément Péron
Hi Maxime, On Mon, 4 May 2020 at 14:09, Maxime Ripard wrote: > > Hi Clement, > > On Thu, Apr 30, 2020 at 04:00:14PM +0200, Clément Péron wrote: > > On Thu, 30 Apr 2020 at 10:46, Maxime Ripard wrote: > > > On Wed, Apr 29, 2020 at 06:33:00PM +0200, Clément Péron wrote: > > > > On Wed, 29 Apr 2020

Re: [PATCH 5.6 61/73] iommu/vt-d: Use right Kconfig option name

2020-05-04 Thread Joe Perches
On Mon, 2020-05-04 at 19:58 +0200, Greg Kroah-Hartman wrote: > From: Lu Baolu > > commit ba61c3da00f4a5bf8805aeca1ba5ac3c9bd82e96 upstream. > > The CONFIG_ prefix should be added in the code. > > Fixes: 046182525db61 ("iommu/vt-d: Add Kconfig option to enable/disable > scalable mode") > Report

[PATCH for-5.7] splice: move f_mode checks to do_{splice,tee}()

2020-05-04 Thread Pavel Begunkov
do_splice() is used by io_uring, as will be do_tee(). Move f_mode checks from sys_{splice,tee}() to do_{splice,tee}(), so they're enforced for io_uring as well. Fixes: 7d67af2c0134 ("io_uring: add splice(2) support") Reported-by: Jann Horn Signed-off-by: Pavel Begunkov --- fs/splice.c | 45

[v2 PATCH 2/2] dt-bindings: display: Document ASUS Z00T TM5P5 NT35596 panel compatible

2020-05-04 Thread Konrad Dybcio
Signed-off-by: Konrad Dybcio --- .../display/panel/asus,z00t-tm5p5-n35596.yaml | 56 +++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/asus,z00t-tm5p5-n35596.yaml diff --git a/Documentation/devicetree/bindings/display/panel

[v2 PATCH 1/2] drivers: drm: panel: Add ASUS TM5P5 NT35596 panel driver

2020-05-04 Thread Konrad Dybcio
This adds support for TMP5P5 NT35596 1080x1920 video mode panel that can be found on some Asus Zenfone 2 Laser (Z00T) devices. This panel seems to only be found in this device and we have no straightforward way of actually getting the correct model number, as no schematics are released publicly.

[v2 PATCH 0/2] Add support for ASUS Z00T TM5P5 NT35596 panel

2020-05-04 Thread Konrad Dybcio
changes since v1: - make `backlight_properties props` constant - a couple of line breaks - change name and compatible to reflect ASUS being the vendor - remove a redundant TODO Konrad Dybcio (2): drivers: drm: panel: Add ASUS TM5P5 NT35596 panel driver dt-bindings: display: Document ASUS Z00T

Re: [PATCH 09/24] rcu/tree: cache specified number of objects

2020-05-04 Thread Joel Fernandes
Hi Paul, On Mon, May 4, 2020 at 3:01 PM Paul E. McKenney wrote: > > On Mon, May 04, 2020 at 02:08:05PM -0400, Joel Fernandes wrote: > > On Mon, May 04, 2020 at 07:48:22PM +0200, Uladzislau Rezki wrote: > > > On Mon, May 04, 2020 at 08:24:37AM -0700, Paul E. McKenney wrote: > > [..] > > > > > > Pr

Re: [PATCH 3/3] vfio-pci: Invalidate mmaps and block MMIO access on disabled memory

2020-05-04 Thread Alex Williamson
On Mon, 4 May 2020 15:44:36 -0300 Jason Gunthorpe wrote: > On Mon, May 04, 2020 at 12:26:43PM -0600, Alex Williamson wrote: > > On Fri, 1 May 2020 20:48:49 -0300 > > Jason Gunthorpe wrote: > > > > > On Fri, May 01, 2020 at 03:39:30PM -0600, Alex Williamson wrote: > > > > > > > static int

Re: [linux-sunxi] [PATCH v2] arm64: dts: allwinner: h6: Use dummy regulator for Tanix TX6

2020-05-04 Thread Clément Péron
Hi Ondrej, On Mon, 4 May 2020 at 14:27, Ondřej Jirman wrote: > > Hi Clément, > > > So I guess ignoring the voltage and not disabling this OPP may or may not work > based on SoC bin. > > On Orange Pi One, there's a regulator that supports two voltages (that can't > support all the listed OPPs f

Re: [PATCH] loop: Call loop_config_discard() only after new config is applied.

2020-05-04 Thread Martijn Coenen
Hi Jens, Are you ok with this one? One of my later series depends on it, but so far I've kept it separate because it's a bug fix. Thanks, Martijn On Sat, Apr 18, 2020 at 5:46 PM Bart Van Assche wrote: > > On 2020-03-31 04:41, Martijn Coenen wrote: > > loop_set_status() calls loop_config_discard

Re: [PATCH v1 0/3] allow ramoops to collect all kmesg_dump events

2020-05-04 Thread Kees Cook
On Mon, May 04, 2020 at 03:17:40PM -0400, Pavel Tatashin wrote: > On Mon, May 4, 2020 at 3:12 PM Kees Cook wrote: > > > > On Mon, May 04, 2020 at 02:47:45PM -0400, Pavel Tatashin wrote: > > > > > # reboot -f > > > > > > > > > > After VM is back: > > > > > > > > > > # mount -t pstore pstore /mnt >

Re: [PATCH v1 3/3] ramoops: add dump_all optional field to ramoops DT node

2020-05-04 Thread Kees Cook
On Sat, May 02, 2020 at 10:35:55AM -0400, Pavel Tatashin wrote: > Currently, it is possible to dump kmesges for panic, or oops. > With dump_all it is possible to dump messages for kmesg_dump events, > for example reboot, halt, shutdown, kexec. Please just collapse this into patch #2. Thanks! -Ke

Re: [PATCH v1 2/3] pstore/ram: allow to dump kmesg during regular reboot

2020-05-04 Thread Kees Cook
On Sat, May 02, 2020 at 10:35:54AM -0400, Pavel Tatashin wrote: > Currently, ramoops is capable to collect dmesg buffer only during > panic and oops events. However, it is desirable to optionally allow > collecting dmesg buffers during other events as well: reboot, kexec, > emergency reboot etc. >

Re: [PATCH v2 2/2] mfd: ene-kb3930: Add driver for ENE KB3930 Embedded Controller

2020-05-04 Thread Lubomir Rintel
Hi, thanks for your review. There are some inline responses below. Where I'm not responding it means that I'll be just fixing what you've pointed out. On Wed, Apr 29, 2020 at 07:00:37AM +0100, Lee Jones wrote: > On Sat, 25 Apr 2020, Lubomir Rintel wrote: > > > This driver provides access to the

Re: [PATCH] memcg: oom: ignore oom warnings from memory.max

2020-05-04 Thread Shakeel Butt
On Mon, May 4, 2020 at 9:06 AM Michal Hocko wrote: > > On Mon 04-05-20 08:35:57, Shakeel Butt wrote: > > On Mon, May 4, 2020 at 8:00 AM Michal Hocko wrote: > > > > > > On Mon 04-05-20 07:53:01, Shakeel Butt wrote: > [...] > > > > I am trying to see if "no eligible task" is really an issue and sho

perf build error with gcc 10 on arm and aarch64

2020-05-04 Thread Thomas Backlund
This is building perf from kernel-5.6.10 on armv7hl and aarch64: Compiler is gcc 10.1.0-RC LD perf-in.o ld: arch/perf-in.o: in function `.LANCHOR0': /home/iurt/rpmbuild/BUILD/kernel-arm/linux-5.6/tools/perf/util/include/../../util/cs-etm.h:118: multiple definition of `traceid_list'; u

Re: [PATCH v24 01/16] dt: bindings: Add multicolor class dt bindings documention

2020-05-04 Thread Jacek Anaszewski
Dan, On 5/3/20 2:32 PM, Dan Murphy wrote: Add DT bindings for the LEDs multicolor class framework. Add multicolor ID to the color ID list for device tree bindings. CC: Rob Herring Acked-by: Pavel Machek Acked-by: Jacek Anaszewski Signed-off-by: Dan Murphy --- .../bindings/leds/leds-class-

Re: [PATCH 0/3] KVM: x86: cleanup and fixes for debug register accesses

2020-05-04 Thread Paolo Bonzini
On 04/05/20 20:55, Peter Xu wrote: > On Mon, May 04, 2020 at 11:55:55AM -0400, Paolo Bonzini wrote: >> The purpose of this series is to get rid of the get_dr6 accessor >> and, on Intel, of set_dr6 as well. This is done mostly in patch 2, >> since patch 3 is only the resulting cleanup. Patch 1 is

Re: [PATCH v1 0/3] allow ramoops to collect all kmesg_dump events

2020-05-04 Thread Pavel Tatashin
On Mon, May 4, 2020 at 3:12 PM Kees Cook wrote: > > On Mon, May 04, 2020 at 02:47:45PM -0400, Pavel Tatashin wrote: > > > > # reboot -f > > > > > > > > After VM is back: > > > > > > > > # mount -t pstore pstore /mnt > > > > # head /mnt/dmesg-ramoops-0 > > > > Restart#1 Part1 > > > > > > Is there a

Re: [PATCH 2/2] scripts/dtc: compile separate dtc-yaml

2020-05-04 Thread Rob Herring
On Sun, May 3, 2020 at 9:07 PM Masahiro Yamada wrote: > > Marek Behún reported a case where pkg-config fails to detect the > libyaml-dev package, which is presumably a bug of the distro. > > Irrespective of that, I am not a big fan of pkg-config in the Makefile > parse stage. The cost of pkg-confi

Re: [PATCH v2 2/3] media: uapi: Add VP9 stateless decoder controls

2020-05-04 Thread Boris Brezillon
On Mon, 04 May 2020 14:38:23 -0400 Nicolas Dufresne wrote: > Le lundi 04 mai 2020 à 14:01 -0400, Nicolas Dufresne a écrit : > > Le samedi 02 mai 2020 à 19:55 -0300, Ezequiel Garcia a écrit : > > > +Nicolas > > > > > > On Sat, 2020-05-02 at 20:37 +0200, Boris Brezillon wrote: > > > > On Fri,

Re: [PATCH v3 2/2] sched: Add a check for cpu unbound deferrable timers

2020-05-04 Thread kbuild test robot
Hi Prasad, Thank you for the patch! Yet something to improve: [auto build test ERROR on tip/timers/core] [also build test ERROR on tip/auto-latest tip/timers/nohz v5.7-rc4 next-20200501] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we al

Re: [PATCH v1 0/3] allow ramoops to collect all kmesg_dump events

2020-05-04 Thread Kees Cook
On Mon, May 04, 2020 at 02:47:45PM -0400, Pavel Tatashin wrote: > > > # reboot -f > > > > > > After VM is back: > > > > > > # mount -t pstore pstore /mnt > > > # head /mnt/dmesg-ramoops-0 > > > Restart#1 Part1 > > > > Is there a reason that using ramoops.console_size isn't sufficient for > > this?

splice() rcu_sched self-detected stall on CPU

2020-05-04 Thread Qian Cai
264889][ C118] softirqs last enabled at (0): [] copy_process+0x10ff/0x30a0 [18310.273908][ C118] softirqs last disabled at (0): [<>] 0x0 [18310.280958][ C118] CPU: 118 PID: 129976 Comm: trinity-c93 Tainted: G O L5.7.0-rc4-next-20200504+ #1 [18310.291463][ C118] H

RE: [EXT] [PATCH v6 6/8] scsi: ufs: add LU Dedicated buffer mode support for WriteBooster

2020-05-04 Thread Bean Huo (beanhuo)
> From: Stanley Chu > Sent: Monday, May 4, 2020 4:56 PM > To: linux-s...@vger.kernel.org; martin.peter...@oracle.com; > avri.alt...@wdc.com; alim.akh...@samsung.com; j...@linux.ibm.com; > asuto...@codeaurora.org > Cc: Bean Huo (beanhuo) ; c...@codeaurora.org; > matthias@gmail.com; bvanass...@a

Re: [PATCH] percpu: Sync vmalloc mappings in pcpu_alloc() and free_percpu()

2020-05-04 Thread Steven Rostedt
On Mon, 4 May 2020 20:38:32 +0200 Joerg Roedel wrote: > Fair point, but this just shows how problematic it is to call something > like vmalloc_sync_mappings() from a lower-level kernel API function. > The obvious fix for this would be to make pgd_lock irq-safe, but this is > getting more and more

[PATCH] sysctl: Make sure proc handlers can't expose heap memory

2020-05-04 Thread Kees Cook
Just as a precaution, make sure that proc handlers don't accidentally grow "count" beyond the allocated kbuf size. Signed-off-by: Kees Cook --- This applies to hch's sysctl cleanup tree... --- fs/proc/proc_sysctl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/proc/proc_sysctl.c b/fs

Re: [GIT PULL] perf/core improvements and fixes

2020-05-04 Thread Daniel Díaz
the outliers, there, everything else is > > using /bin/bash, so I'll switch to that, ok Andreas? > > Sure, no problem. Thanks! Just a gentle reminder that this can still be fixed in today's linux-next tree (next-20200504). Greetings! Daniel Díaz daniel.d...@linaro.org

Re: [PATCH v2 1/2] driver core: platform: Clarify that IRQ 0 is invalid

2020-05-04 Thread Greg Kroah-Hartman
On Mon, May 04, 2020 at 01:08:22PM -0500, Bjorn Helgaas wrote: > On Sat, May 02, 2020 at 08:15:37AM +0200, Greg Kroah-Hartman wrote: > > On Fri, May 01, 2020 at 05:40:41PM -0500, Bjorn Helgaas wrote: > > > From: Bjorn Helgaas > > > > > > These interfaces return a negative error number or an IRQ:

Re: [PATCH v2 2/3] media: uapi: Add VP9 stateless decoder controls

2020-05-04 Thread Boris Brezillon
On Mon, 04 May 2020 14:01:32 -0400 Nicolas Dufresne wrote: > Le samedi 02 mai 2020 à 19:55 -0300, Ezequiel Garcia a écrit : > > +Nicolas > > > > On Sat, 2020-05-02 at 20:37 +0200, Boris Brezillon wrote: > > > On Fri, 01 May 2020 13:57:49 -0300 > > > Ezequiel Garcia wrote: > > > > > > > > >

Re: [PATCH v7 2/4] firmware: raspberrypi: Introduce vl805 init routine

2020-05-04 Thread Stefan Wahren
Hi Nicolas, Am 04.05.20 um 10:59 schrieb Nicolas Saenz Julienne: > Hi Stefan, thanks for the review! > > On Sat, 2020-05-02 at 11:05 +0200, Stefan Wahren wrote: >>> + if (version) >>> + goto exit; >>> + >>> + dev_addr = pdev->bus->number << 20 | PCI_SLOT(pdev->devfn) << 15 | >>> +

[PATCH 5.6 61/73] iommu/vt-d: Use right Kconfig option name

2020-05-04 Thread Greg Kroah-Hartman
From: Lu Baolu commit ba61c3da00f4a5bf8805aeca1ba5ac3c9bd82e96 upstream. The CONFIG_ prefix should be added in the code. Fixes: 046182525db61 ("iommu/vt-d: Add Kconfig option to enable/disable scalable mode") Reported-and-tested-by: Kumar, Sanjay K Signed-off-by: Lu Baolu Cc: Ashok Raj Link

[PATCH] KVM: Fix a warning in __kvm_gfn_to_hva_cache_init()

2020-05-04 Thread Peter Xu
GCC 10.0.1 gives me this warning when building KVM: warning: ‘nr_pages_avail’ may be used uninitialized in this function [-Wmaybe-uninitialized] 2442 | for ( ; start_gfn <= end_gfn; start_gfn += nr_pages_avail) { It should not happen, but silent it. Signed-off-by: Peter Xu --- virt/kvm/k

Re: [PATCH] nfp: abm: fix a memory leak bug

2020-05-04 Thread David Miller
From: wu000...@umn.edu Date: Sat, 2 May 2020 17:42:59 -0500 > From: Qiushi Wu > > In function nfp_abm_vnic_set_mac, pointer nsp is allocated by nfp_nsp_open. > But when nfp_nsp_has_hwinfo_lookup fail, the pointer is not released, > which can lead to a memory leak bug. Fix this issue by adding >

Re: [PATCH] docs: dt: fix broken links due to txt->yaml renames

2020-05-04 Thread Joe Perches
On Mon, 2020-05-04 at 19:55 +0200, Uwe Kleine-König wrote: > Hi Sam, > > On Mon, May 04, 2020 at 07:45:22PM +0200, Sam Ravnborg wrote: > > On Mon, May 04, 2020 at 11:30:20AM +0200, Mauro Carvalho Chehab wrote: > > > There are some new broken doc links due to yaml renames > > > at DT. Developers sh

Re: BUG: stack guard page was hit in unwind_next_frame

2020-05-04 Thread Josh Poimboeuf
On Sat, May 02, 2020 at 11:36:11PM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:8999dc89 net/x25: Fix null-ptr-deref in x25_disconnect > git tree: net > console output: https://syzkaller.appspot.com/x/log.txt?x=1600444010 > kernel config: h

[PATCH v3 3/3] device-dax: Add memory via add_memory_driver_managed()

2020-05-04 Thread David Hildenbrand
Currently, when adding memory, we create entries in /sys/firmware/memmap/ as "System RAM". This will lead to kexec-tools to add that memory to the fixed-up initial memmap for a kexec kernel (loaded via kexec_load()). The memory will be considered initial System RAM by the kexec'd kernel and can no

[PATCH v3 2/3] kexec_file: Don't place kexec images on IORESOURCE_MEM_DRIVER_MANAGED

2020-05-04 Thread David Hildenbrand
Memory flagged with IORESOURCE_MEM_DRIVER_MANAGED is special - it won't be part of the initial memmap of the kexec kernel and not all memory might be accessible. Don't place any kexec images onto it. Cc: Andrew Morton Cc: Michal Hocko Cc: Pankaj Gupta Cc: Wei Yang Cc: Baoquan He Cc: Dave Hans

[PATCH v3 1/3] mm/memory_hotplug: Introduce add_memory_device_managed()

2020-05-04 Thread David Hildenbrand
Some device drivers rely on memory they managed to not get added to the initial (firmware) memmap as system RAM - so it's not used as initial system RAM by the kernel and the driver is under control. While this is the case during cold boot and after a reboot, kexec is not aware of that and might ad

[PATCH v3 0/3] mm/memory_hotplug: Interface to add driver-managed system ram

2020-05-04 Thread David Hildenbrand
Third time is the charm? Let's see ... :) This is the follow up of [1]: [PATCH v1 0/3] mm/memory_hotplug: Make virtio-mem play nicely with kexec-tools and [2]: [PATCH v2 0/3] mm/memory_hotplug: Allow to not create firmware memmap entries kexec (via kexec_load()) can currently not properly han

Re: [PATCH net-next 0/7] net: ethernet: ti: k3: introduce common platform time sync driver - cpts

2020-05-04 Thread David Miller
From: Grygorii Strashko Date: Fri, 1 May 2020 23:50:04 +0300 > This series introduced support for significantly upgraded TI A65x/J721E Common > platform time sync (CPTS) modules which are part of AM65xx Time > Synchronization > Architecture [1]. ... Series applied, thank you.

Re: [PATCH 09/24] rcu/tree: cache specified number of objects

2020-05-04 Thread Paul E. McKenney
On Mon, May 04, 2020 at 02:08:05PM -0400, Joel Fernandes wrote: > On Mon, May 04, 2020 at 07:48:22PM +0200, Uladzislau Rezki wrote: > > On Mon, May 04, 2020 at 08:24:37AM -0700, Paul E. McKenney wrote: > [..] > > > > > Presumably the list can also be accessed without holding this lock, > > > > > b

Re: [PATCH 5/5] sysctl: pass kernel pointers to ->proc_handler

2020-05-04 Thread Kees Cook
On Fri, Apr 24, 2020 at 08:43:38AM +0200, Christoph Hellwig wrote: > Instead of having all the sysctl handlers deal with user pointers, which > is rather hairy in terms of the BPF interaction, copy the input to and > from userspace in common code. This also means that the strings are > always NUL

[PATCH v2 2/2] nand: brcmnand: fix hamming oob layout

2020-05-04 Thread Álvaro Fernández Rojas
First 2 bytes are used in large-page nand. Signed-off-by: Álvaro Fernández Rojas --- v2: extend original comment drivers/mtd/nand/raw/brcmnand/brcmnand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/raw/brc

[PATCH v2 1/2] nand: brcmnand: improve hamming oob layout

2020-05-04 Thread Álvaro Fernández Rojas
The current code generates 8 oob sections: S1 1-5 ECC 6-8 S2 9-15 S3 16-21 ECC 22-24 S4 25-31 S5 32-37 ECC 38-40 S6 41-47 S7 48-53 ECC 54-56 S8 57-63 Change it by merging continuous sections: S1 1-5 ECC 6-8 S2 9-21 ECC 22-24

Re: [PATCH] net: stmmac: gmac5+: fix potential integer overflow on 32 bit multiply

2020-05-04 Thread David Miller
From: Colin King Date: Fri, 1 May 2020 15:10:16 +0100 > From: Colin Ian King > > The multiplication of cfg->ctr[1] by 10 is performed using a > 32 bit multiplication (since cfg->ctr[1] is a u32) and this can lead > to a potential overflow. Fix this by making the constant a ULL to > ens

Re: [PATCH 0/3] KVM: x86: cleanup and fixes for debug register accesses

2020-05-04 Thread Peter Xu
On Mon, May 04, 2020 at 11:55:55AM -0400, Paolo Bonzini wrote: > The purpose of this series is to get rid of the get_dr6 accessor > and, on Intel, of set_dr6 as well. This is done mostly in patch 2, > since patch 3 is only the resulting cleanup. Patch 1 is a related > bug fix that I found while i

Re: [PATCH net-next v2 1/4] dt-bindings: net: add IPA iommus property

2020-05-04 Thread Rob Herring
On Mon, May 4, 2020 at 12:59 PM Alex Elder wrote: > > The IPA accesses "IMEM" and main system memory through an SMMU, so > its DT node requires an iommus property to define range of stream IDs > it uses. > > Signed-off-by: Alex Elder > --- > Documentation/devicetree/bindings/net/qcom,ipa.yaml |

Re: [PATCH] vfio-pci: Mask cap zero

2020-05-04 Thread Alex Williamson
On Mon, 4 May 2020 18:09:16 +0200 Cornelia Huck wrote: > On Fri, 01 May 2020 15:41:24 -0600 > Alex Williamson wrote: > > > There is no PCI spec defined capability with ID 0, therefore we don't > > expect to find it in a capability chain and we use this index in an > > internal array for trackin

Re: [PATCH 1/1] i40iw: remove bogus call to netdev_master_upper_dev_get

2020-05-04 Thread Jason Gunthorpe
On Tue, Apr 28, 2020 at 04:15:11PM +0300, Denis V. Lunev wrote: > Local variable netdev is not used in these calls. > > It should be noted, that this change is required to work in bonded mode. > In the other case we would get the following assert: > "RTNL: assertion failed at net/core/dev.c (5665

[RESEND PATCH v14 02/11] hwmon: pwm-fan: Use 64-bit division macro

2020-05-04 Thread Guru Das Srinagesh
Since the PWM framework is switching struct pwm_args.period's datatype to u64, prepare for this transition by using DIV_ROUND_UP_ULL to handle a 64-bit dividend. Signed-off-by: Guru Das Srinagesh Acked-by: Guenter Roeck --- drivers/hwmon/pwm-fan.c | 2 +- 1 file changed, 1 insertion(+), 1 delet

[RESEND PATCH v14 07/11] pwm: sifive: Use 64-bit division macro

2020-05-04 Thread Guru Das Srinagesh
Since the PWM framework is switching struct pwm_args.period's datatype to u64, prepare for this transition by using DIV64_U64_ROUND_CLOSEST to handle a 64-bit divisor. Signed-off-by: Guru Das Srinagesh Acked-by: Palmer Dabbelt --- drivers/pwm/pwm-sifive.c | 2 +- 1 file changed, 1 insertion(+),

[RESEND PATCH v14 05/11] pwm: pwm-imx-tpm: Use 64-bit division macro

2020-05-04 Thread Guru Das Srinagesh
Since the PWM framework is switching struct pwm_state.period's datatype to u64, prepare for this transition by using DIV64_U64_ROUND_CLOSEST to handle a 64-bit divisor. Signed-off-by: Guru Das Srinagesh --- drivers/pwm/pwm-imx-tpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

[RESEND PATCH v14 11/11] pwm: core: Convert period and duty cycle to u64

2020-05-04 Thread Guru Das Srinagesh
Because period and duty cycle are defined as ints with units of nanoseconds, the maximum time duration that can be set is limited to ~2.147 seconds. Change their definitions to u64 in the structs of the PWM framework so that higher durations may be set. Also use the right format specifiers in debu

[RESEND PATCH v14 06/11] pwm: imx27: Use 64-bit division macro and function

2020-05-04 Thread Guru Das Srinagesh
Since the PWM framework is switching struct pwm_state.period's datatype to u64, prepare for this transition by using DIV_ROUND_UP_ULL to handle a 64-bit dividend, and div64_u64 to handle a 64-bit divisor. Also handle a possible overflow in the calculation of period_cycles when both clk_rate and pe

[RESEND PATCH v14 10/11] clk: pwm: Use 64-bit division function

2020-05-04 Thread Guru Das Srinagesh
Since the PWM framework is switching struct pwm_args.period's datatype to u64, prepare for this transition by using div64_u64() to handle a 64-bit divisor. Also ensure that divide-by-zero (with fixed_rate as denominator) does not happen with an explicit check with probe failure as a consequence.

[RESEND PATCH v14 03/11] ir-rx51: Use 64-bit division macro

2020-05-04 Thread Guru Das Srinagesh
Since the PWM framework is switching struct pwm_state.period's datatype to u64, prepare for this transition by using DIV_ROUND_CLOSEST_ULL to handle a 64-bit dividend. Signed-off-by: Guru Das Srinagesh Acked-by: Sean Young --- drivers/media/rc/ir-rx51.c | 3 ++- 1 file changed, 2 insertions(+),

[RESEND PATCH v14 08/11] pwm: sun4i: Use nsecs_to_jiffies to avoid a division

2020-05-04 Thread Guru Das Srinagesh
Since the PWM framework is switching struct pwm_state.period's datatype to u64, prepare for this transition by using nsecs_to_jiffies() which does away with the need for a division operation. Signed-off-by: Guru Das Srinagesh Acked-by: Chen-Yu Tsai --- drivers/pwm/pwm-sun4i.c | 2 +- 1 file cha

[RESEND PATCH v14 09/11] backlight: pwm_bl: Use 64-bit division function

2020-05-04 Thread Guru Das Srinagesh
Since the PWM framework is switching struct pwm_state.period's datatype to u64, prepare for this transition by using div_u64 to handle a 64-bit dividend instead of a straight division operation. Signed-off-by: Guru Das Srinagesh Reviewed-by: Daniel Thompson Acked-by: Lee Jones --- drivers/vide

[RESEND PATCH v14 00/11] Convert PWM period and duty cycle to u64

2020-05-04 Thread Guru Das Srinagesh
Because period and duty cycle are defined in the PWM framework structs as ints with units of nanoseconds, the maximum time duration that can be set is limited to ~2.147 seconds. Consequently, applications desiring to set greater time periods via the PWM framework are not be able to do so - like, fo

[RESEND PATCH v14 01/11] drm/i915: Use 64-bit division macro

2020-05-04 Thread Guru Das Srinagesh
Since the PWM framework is switching struct pwm_state.duty_cycle's datatype to u64, prepare for this transition by using DIV_ROUND_UP_ULL to handle a 64-bit dividend. Signed-off-by: Guru Das Srinagesh Reviewed-by: Jani Nikula Acked-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_panel.c

[RESEND PATCH v14 04/11] pwm: clps711x: Cast period to u32 before use as divisor

2020-05-04 Thread Guru Das Srinagesh
Since the PWM framework is switching struct pwm_args.period's datatype to u64, prepare for this transition by typecasting it to u32. Also, since the dividend is still a 32-bit number, any divisor greater than the numerator will cause the quotient to be zero, so return 0 in that case to efficiently

Re: [PATCH v1 0/3] allow ramoops to collect all kmesg_dump events

2020-05-04 Thread Pavel Tatashin
> > # reboot -f > > > > After VM is back: > > > > # mount -t pstore pstore /mnt > > # head /mnt/dmesg-ramoops-0 > > Restart#1 Part1 > > Is there a reason that using ramoops.console_size isn't sufficient for > this? Unfortunately, the console option is not working for us (Microsoft), we have an emb

Re: [PATCH] cxgb4/chcr: avoid -Wreturn-local-addr warning

2020-05-04 Thread David Miller
From: Arnd Bergmann Date: Thu, 30 Apr 2020 12:39:02 +0200 > gcc-10 warns about functions that return a pointer to a stack > variable. In chcr_write_cpl_set_tcb_ulp(), this does not actually > happen, but it's too hard to see for the compiler: > > drivers/crypto/chelsio/chcr_ktls.c: In function

Re: [Intel-wired-lan] [PATCH] igb: Report speed and duplex as unknown when device is runtime suspended

2020-05-04 Thread Alexander Duyck
On Mon, May 4, 2020 at 10:32 AM Kai-Heng Feng wrote: > > igb device gets runtime suspended when there's no link partner. We can't > get correct speed under that state: > $ cat /sys/class/net/enp3s0/speed > 1000 > > In addition to that, an error can also be spotted in dmesg: > [ 385.991957] igb 00

Re: [PATCH 4/5] sysctl: avoid forward declarations

2020-05-04 Thread Kees Cook
On Fri, Apr 24, 2020 at 08:43:37AM +0200, Christoph Hellwig wrote: > Move the sysctl tables to the end of the file to avoid lots of pointless > forward declarations. > > Signed-off-by: Christoph Hellwig Reviewed-by: Kees Cook -Kees > --- > kernel/sysctl.c | 3565 +++--

Re: [PATCH 3/3] vfio-pci: Invalidate mmaps and block MMIO access on disabled memory

2020-05-04 Thread Jason Gunthorpe
On Mon, May 04, 2020 at 12:26:43PM -0600, Alex Williamson wrote: > On Fri, 1 May 2020 20:48:49 -0300 > Jason Gunthorpe wrote: > > > On Fri, May 01, 2020 at 03:39:30PM -0600, Alex Williamson wrote: > > > > > static int vfio_pci_add_vma(struct vfio_pci_device *vdev, > > > st

Re: [RFC PATCH 2/2] drm: xlnx: driver for Xilinx DSI TX Subsystem

2020-05-04 Thread Hyun Kwon
Hi GVRao, Thanks for the patch. Sorry for late reply. On Mon, 2020-04-20 at 14:20:56 -0700, Venkateshwar Rao Gannavarapu wrote: > The Xilinx MIPI DSI Tx Subsystem soft IP is used to display video > data from AXI-4 stream interface. > > It supports upto 4 lanes, optional register interface for th

Re: [PATCH v6] checkpatch: add support to check 'Fixes:' tag format

2020-05-04 Thread Joe Perches
On Mon, 2020-05-04 at 16:20 +0800, Wang YanQing wrote: > According to submitting-patches.rst, 'Fixes:' tag has a little > stricter condition about the one line summary than normal git > commit description: > “... > Do not split the tag across multiple lines, tags are exempt from > the "wrap at 75 c

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