Re: [PATCH v3 3/5] iommu/uapi: Use named union for user data

2020-06-24 Thread Jacob Pan
On Wed, 24 Jun 2020 14:29:57 +0800 Lu Baolu wrote: > > case IOMMU_CACHE_INV_TYPE_IOTLB: > > /* HW will ignore LSB bits based on > > address mask */ if (inv_info->granularity == IOMMU_INV_GRANU_ADDR && > > size && > > -

Re: [PATCH 13/22] gpio: uapi: define uAPI V2

2020-06-24 Thread Kent Gibson
On Wed, Jun 24, 2020 at 05:33:26PM +0300, Andy Shevchenko wrote: > On Tue, Jun 23, 2020 at 7:04 AM Kent Gibson wrote: > > > > Add a new version of the uAPI to address existing 32/64bit alignment > > I think using - would be nice, like 32/64-bit (or at least space like > 32/64 bit) as a common

Re: [PATCH stable 4.9 00/21] Unbreak 32-bit DVB applications on 64-bit kernels

2020-06-24 Thread Florian Fainelli
On 6/23/2020 12:13 PM, Greg KH wrote: > On Fri, Jun 05, 2020 at 09:24:57AM -0700, Florian Fainelli wrote: >> Hi all, >> >> This long patch series was motivated by backporting Jaedon's changes >> which add a proper ioctl compatibility layer for 32-bit applications >> running on 64-bit kernels.

RE: [RESEND PATCH V13 3/3] Input: new da7280 haptic driver

2020-06-24 Thread Roy Im
On Wed, Jun 24, 2020 at 10:37 PM, Uwe Kleine-König wrote: > On Wed, Jun 24, 2020 at 12:04:24PM +0900, Roy Im wrote: > > Hello Uwe, > > > > On Tue, June 23, 2020 11:41 PM, Uwe Kleine-König wrote: > > > > > > Hello, > > > > > > On Mon, Jun 15, 2020 at 08:40:23PM +0900, Roy Im wrote: > > > > Adds

Re: [PATCH v3 2/9] vmlinux.lds.h: Add .symtab, .strtab, and .shstrtab to STABS_DEBUG

2020-06-24 Thread Arvind Sankar
On Tue, Jun 23, 2020 at 06:49:33PM -0700, Kees Cook wrote: > When linking vmlinux with LLD, the synthetic sections .symtab, .strtab, > and .shstrtab are listed as orphaned. Add them to the STABS_DEBUG section > so there will be no warnings when --orphan-handling=warn is used more > widely. (They

Re: [PATCH 0/2] Some fixes for spi-altera

2020-06-24 Thread Mark Brown
On Wed, 24 Jun 2020 09:31:24 +0800, Xu Yilun wrote: > Two fixes for indirect access support patchset. > > Xu Yilun (2): > spi: altera: fix driver matching failure of the device ID "spi_altera" > spi: altera: fix module autoload > > drivers/spi/spi-altera.c | 4 +++- > 1 file changed, 3

Re: [PATCH 1/2] ASoC: fsl-asoc-card: Add WM8524 support

2020-06-24 Thread Mark Brown
On Tue, 23 Jun 2020 14:52:46 +0800, Shengjiu Wang wrote: > WM8524 only supports playback mode, and only works at > slave mode. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/2] ASoC: fsl-asoc-card: Add WM8524 support commit:

Re: [PATCH v2 0/2] introduce fallback to pio in spi core

2020-06-24 Thread Mark Brown
On Wed, 17 Jun 2020 06:42:07 +0800, Robin Gong wrote: > Introudce fallback pio way at spi core level so that the tx/rx buffer > mapped by spi core for dma could be unmap and fallback pio again. Hence no > need the below patch where 'dma_sync_sg_for_devic' to sync fresh data back > into 'device'

Re: [RFC PATCH v2] xen/privcmd: Convert get_user_pages*() to pin_user_pages*()

2020-06-24 Thread Boris Ostrovsky
On 6/23/20 9:36 PM, Souptick Joarder wrote: > On Tue, Jun 23, 2020 at 11:11 PM Boris Ostrovsky > wrote: >> On 6/23/20 7:58 AM, Souptick Joarder wrote: >>> In 2019, we introduced pin_user_pages*() and now we are converting >>> get_user_pages*() to the new API as appropriate. [1] & [2] could >>> be

Re: [RFC][PATCH v5 01/51] objtool: Factor out reasons to build objtool

2020-06-24 Thread Miroslav Benes
Hi, this is a nice improvement. > diff --git a/tools/objtool/Makefile b/tools/objtool/Makefile > index 7770edcda3a0..aa0c6d3d2d46 100644 > --- a/tools/objtool/Makefile > +++ b/tools/objtool/Makefile > @@ -1,6 +1,7 @@ > # SPDX-License-Identifier: GPL-2.0 > include ../scripts/Makefile.include >

RE: [PATCH v2 2/2] cpufreq: intel_pstate: Allow raw energy performance preference value

2020-06-24 Thread Doug Smythies
Hi Srinivas, I have immediate need for this. I have been using a tool I wrote myself for this which I can now retire. (it wasn't very good anyway). Yours remembers for each governor, and is way better. Thanks. On 2020.06.23 11:27 Srinivas Pandruvada wrote: > Currently using attribute

Re: [PATCH v3 9/9] arm64/build: Warn on orphan section placement

2020-06-24 Thread Kees Cook
On Wed, Jun 24, 2020 at 08:57:12AM +0100, Will Deacon wrote: > On Tue, Jun 23, 2020 at 06:49:40PM -0700, Kees Cook wrote: > > We don't want to depend on the linker's orphan section placement > > heuristics as these can vary between linkers, and may change between > > versions. All sections need to

Re: [PATCH v5 4/7] hwmon: pmbus: adm1266: Add ioctl commands

2020-06-24 Thread Guenter Roeck
On 6/24/20 8:17 AM, alexandru.tach...@analog.com wrote: > From: Alexandru Tachici > > Add two ioctl commands for reading the current state > of the adm1266 sequencer and sending commands. > Please note that I am not going to a accept any ioctls for hwmon drivers, much less unprivileged

Re: [PATCH 05/15] mm: allow read-ahead with IOCB_NOWAIT set

2020-06-24 Thread Jens Axboe
On 6/24/20 9:00 AM, Jens Axboe wrote: > On 6/23/20 7:46 PM, Matthew Wilcox wrote: >> On Wed, Jun 24, 2020 at 11:02:53AM +1000, Dave Chinner wrote: >>> On Thu, Jun 18, 2020 at 08:43:45AM -0600, Jens Axboe wrote: The read-ahead shouldn't block, so allow it to be done even if IOCB_NOWAIT is

Re: [PATCH v2] drm/bridge: dw-mipi-dsi.c: Add VPG runtime config through debugfs

2020-06-24 Thread Yannick FERTRE
Hello Angelo, thanks for the patch. Tested-by: Yannick Fertre Tested OK on STM32MP1-DISCO, DSI v1.31 Best regards On 4/6/20 3:49 PM, Angelo Ribeiro wrote: > Add support for the video pattern generator (VPG) BER pattern mode and > configuration in runtime. > > This enables using the debugfs

Re: [PATCH v2 2/2] cpufreq: Specify default governor on command line

2020-06-24 Thread Quentin Perret
On Wednesday 24 Jun 2020 at 14:51:04 (+0200), Rafael J. Wysocki wrote: > On Wed, Jun 24, 2020 at 7:50 AM Viresh Kumar wrote: > > > @@ -2789,7 +2796,13 @@ static int __init cpufreq_core_init(void) > > > cpufreq_global_kobject = kobject_create_and_add("cpufreq", > > >

Re: [PATCH 0/8] Fix a bunch of W=1 warnings in Backlight

2020-06-24 Thread Sam Ravnborg
Hi Lee. On Wed, Jun 24, 2020 at 03:57:13PM +0100, Lee Jones wrote: > Attempting to clean-up W=1 kernel builds, which are currently > overwhelmingly riddled with niggly little warnings. > > Lee Jones (8): > backlight: lms501kf03: Remove unused const variables > backlight: lcd: Add missing

Re: [PATCH v3 3/9] efi/libstub: Remove .note.gnu.property

2020-06-24 Thread Ard Biesheuvel
On Wed, 24 Jun 2020 at 17:21, Kees Cook wrote: > > On Wed, Jun 24, 2020 at 12:46:32PM +0200, Ard Biesheuvel wrote: > > I'm not sure if there is a point to having PAC and/or BTI in the EFI > > stub, given that it runs under the control of the firmware, with its > > memory mappings and PAC

Re: [RESEND PATCH v5 1/5] driver core: add probe_err log helper

2020-06-24 Thread Mark Brown
On Wed, Jun 24, 2020 at 04:00:34PM +0100, Robin Murphy wrote: > Be thankful... And count me in as one of those miserable users; here's one > of mine being bad enough without even printing any specific messages about > deferring ;) > [robin@weasel-cheese ~]$ dmesg | grep dwmmc > [3.046297]

Re: [PATCH v3 3/9] efi/libstub: Remove .note.gnu.property

2020-06-24 Thread Will Deacon
On Wed, Jun 24, 2020 at 02:48:55PM +0100, Dave Martin wrote: > On Wed, Jun 24, 2020 at 12:26:47PM +0100, Will Deacon wrote: > > On Wed, Jun 24, 2020 at 12:46:32PM +0200, Ard Biesheuvel wrote: > > > On Wed, 24 Jun 2020 at 12:44, Will Deacon wrote: > > > > For the kernel Image, how do we remove

Re: Writing to a const pointer: is this supposed to happen?

2020-06-24 Thread Kars Mulder
On Wednesday, June 24, 2020 15:10 CEST, Greg Kroah-Hartman wrote: > Have you hit any runtime issues with this code doing this? These > strings should be held in writable memory, right? Or do you see a > codepath where that is not the case? I haven't ran into any issues with it; I was just

Re: [PATCH v2] media: venus: core: Fix runtime PM imbalance in venus_probe

2020-06-24 Thread Markus Elfring
I propose to combine two tags in the previous patch subject. > pm_runtime_get_sync() increments the runtime PM usage counter even > when it returns an error code. Thus a pairing decrement is needed on > the error handling path to keep the counter balanced. For other error > paths after this

Re: [PATCH 2/2] watchdog: rti: tweak min_hw_heartbeat_ms to match initial allowed window

2020-06-24 Thread Jan Kiszka
On 24.06.20 13:45, Tero Kristo wrote: If the RTI watchdog has been started by someone (like bootloader) when the driver probes, we must adjust the initial ping timeout to match the currently running watchdog window to avoid generating watchdog reset. Signed-off-by: Tero Kristo ---

Re: [PATCH v2 0/4] Tegra Video Decoder driver power management corrections

2020-06-24 Thread Dmitry Osipenko
24.06.2020 18:16, Hans Verkuil пишет: > On 24/06/2020 17:08, Dmitry Osipenko wrote: >> Hello, >> >> This small series addresses a Runtime PM issue that was discovered during >> of Tegra VI driver reviewing by balancing RPM usage count on RPM resume >> failure. Secondly it fixes reboot on some

Re: [PATCH net v2 0/2] bridge: mrp: Update MRP_PORT_ROLE

2020-06-24 Thread Vladimir Oltean
Hi Horatiu, On Wed, 24 Jun 2020 at 14:34, Horatiu Vultur wrote: > > The 06/23/2020 14:38, David Miller wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > > content is safe > > > > From: Horatiu Vultur > > Date: Tue, 23 Jun 2020 11:05:39 +0200 > > > > > This

[PATCH v3] ARM: imx6plus: enable internal routing of clk_enet_ref where possible

2020-06-24 Thread Sven Van Asbroeck
On imx6, the ethernet reference clock (clk_enet_ref) can be generated by either the imx6, or an external source (e.g. an oscillator or the PHY). When generated by the imx6, the clock source (from ANATOP) must be routed to the input of clk_enet_ref via two pads on the SoC, typically via a dedicated

Re: [PATCH v3 3/9] efi/libstub: Remove .note.gnu.property

2020-06-24 Thread Kees Cook
On Wed, Jun 24, 2020 at 12:46:32PM +0200, Ard Biesheuvel wrote: > I'm not sure if there is a point to having PAC and/or BTI in the EFI > stub, given that it runs under the control of the firmware, with its > memory mappings and PAC configuration etc. Is BTI being ignored when the firmware runs?

Re: [Tee-dev] [PATCHv8 1/3] optee: use uuid for sysfs driver entry

2020-06-24 Thread James Bottomley
On Wed, 2020-06-24 at 16:17 +0530, Sumit Garg wrote: > Apologies for delay in my reply as I was busy with some other stuff. > > On Fri, 19 Jun 2020 at 20:30, James Bottomley > wrote: [...] > > it's about consistency with what the kernel types mean. When some > > checker detects your using

Re: [PATCH] drm/radeon: fix array out-of-bounds read and write issues

2020-06-24 Thread Alex Deucher
Applied. Thanks! Alex On Wed, Jun 24, 2020 at 8:07 AM Colin King wrote: > > From: Colin Ian King > > There is an off-by-one bounds check on the index into arrays > table->mc_reg_address and table->mc_reg_table_entry[k].mc_data[j] that > can lead to reads and writes outside of arrays. Fix the

Re: [PATCH v4 7/8] lockdep: Change hardirq{s_enabled,_context} to per-cpu variables

2020-06-24 Thread Peter Zijlstra
On Wed, Jun 24, 2020 at 01:32:46PM +0200, Marco Elver wrote: > From: Marco Elver > Date: Wed, 24 Jun 2020 11:23:22 +0200 > Subject: [PATCH] kcsan: Make KCSAN compatible with new IRQ state tracking > > The new IRQ state tracking code does not honor lockdep_off(), and as > such we should again

Re: [PATCH v3 09/10] kallsyms: Hide layout

2020-06-24 Thread Kees Cook
On Wed, Jun 24, 2020 at 12:21:16PM +0200, Jann Horn wrote: > On Tue, Jun 23, 2020 at 7:26 PM Kristen Carlson Accardi > wrote: > > This patch makes /proc/kallsyms display alphabetically by symbol > > name rather than sorted by address in order to hide the newly > > randomized address layout. >

Re: [PATCH 2/6] arm64/vdso: Zap vvar pages when switching to a time namespace

2020-06-24 Thread Christian Brauner
On Wed, Jun 24, 2020 at 01:33:17AM -0700, Andrei Vagin wrote: > The order of vvar pages depends on whether a task belongs to the root > time namespace or not. In the root time namespace, a task doesn't have a > per-namespace page. In a non-root namespace, the VVAR page which contains > the

Re: [PATCH][next] drm/amdgpu: ensure 0 is returned for success in jpeg_v2_5_wait_for_idle

2020-06-24 Thread Alex Deucher
On Wed, Jun 24, 2020 at 10:54 AM Colin King wrote: > > From: Colin Ian King > > In the cases where adev->jpeg.num_jpeg_inst is zero or the condition > adev->jpeg.harvest_config & (1 << i) is always non-zero the variable > ret is never set to an error condition and the function returns > an

Re: [RESEND PATCH v5 3/5] drivers core: allow probe_err accept integer and pointer types

2020-06-24 Thread Robin Murphy
On 2020-06-24 16:04, Mark Brown wrote: On Wed, Jun 24, 2020 at 03:25:33PM +0100, Robin Murphy wrote: And yeah, anyone who pipes up suggesting that places where an ERR_PTR value could be passed to probe_err() could simply refactor IS_ERR() checks with more uses of the god-awful

[PATCH v5 4/7] hwmon: pmbus: adm1266: Add ioctl commands

2020-06-24 Thread alexandru.tachici
From: Alexandru Tachici Add two ioctl commands for reading the current state of the adm1266 sequencer and sending commands. Signed-off-by: Alexandru Tachici --- Documentation/hwmon/adm1266.rst | 15 +++ .../userspace-api/ioctl/ioctl-number.rst | 1 +

Re: [PATCH v2 0/4] Tegra Video Decoder driver power management corrections

2020-06-24 Thread Hans Verkuil
On 24/06/2020 17:08, Dmitry Osipenko wrote: > Hello, > > This small series addresses a Runtime PM issue that was discovered during > of Tegra VI driver reviewing by balancing RPM usage count on RPM resume > failure. Secondly it fixes reboot on some Tegra devices due to bootloader > expecting VDE

Re: move block bits out of fs.h

2020-06-24 Thread Jens Axboe
On 6/24/20 9:14 AM, Christoph Hellwig wrote: > On Wed, Jun 24, 2020 at 09:14:11AM -0600, Jens Axboe wrote: >> On 6/24/20 9:12 AM, Christoph Hellwig wrote: >>> On Wed, Jun 24, 2020 at 09:09:42AM -0600, Jens Axboe wrote: Applied for 5.9 - I kept this in a separate topic branch, fwiw. There's

[PATCH v5 1/7] hwmon: pmbus: adm1266: add support

2020-06-24 Thread alexandru.tachici
From: Alexandru Tachici Add pmbus probing driver for the adm1266 Cascadable Super Sequencer with Margin Control and Fault Recording. Driver is using the pmbus_core, creating sysfs files under hwmon for inputs: vh1->vh4 and vp1->vp13. Signed-off-by: Alexandru Tachici ---

[PATCH v5 6/7] hwmon: pmbus: adm1266: debugfs for blackbox info

2020-06-24 Thread alexandru.tachici
From: Alexandru Tachici Add a debugfs file to print information in the BLACKBOX_INFORMATION register. Contains information about the number of stored records, logic index and id of the latest record. Signed-off-by: Alexandru Tachici --- drivers/hwmon/pmbus/adm1266.c | 56

[PATCH v5 0/7] hwmon: pmbus: adm1266: add support

2020-06-24 Thread alexandru.tachici
From: Alexandru Tachici Add PMBus probing driver for the adm1266 Cascadable Super Sequencer with Margin Control and Fault Recording. Driver is using the pmbus_core, creating sysfs files under hwmon for inputs: vh1->vh4 and vp1->vp13. 1. Add PMBus probing driver for inputs vh1->vh4 and

[PATCH v5 2/7] hwmon: pmbus: adm1266: Add Block process call

2020-06-24 Thread alexandru.tachici
From: Alexandru Tachici PmBus devices support Block Write-Block Read Process Call described in SMBus specification v 2.0 with the exception that Block writes and reads are permitted to have up 255 data bytes instead of max 32 bytes (SMBus). This patch adds Block WR process call support for

[PATCH v5 7/7] dt-bindings: hwmon: Add bindings for ADM1266

2020-06-24 Thread alexandru.tachici
From: Alexandru Tachici Add bindings for the Analog Devices ADM1266 sequencer. Signed-off-by: Alexandru Tachici --- .../bindings/hwmon/adi,adm1266.yaml | 56 +++ 1 file changed, 56 insertions(+) create mode 100644

[PATCH v5 3/7] hwmon: pmbus: adm1266: Add support for GPIOs

2020-06-24 Thread alexandru.tachici
From: Alexandru Tachici Adm1266 exposes 9 GPIOs and 16 PDIOs which are currently read-only. They are controlled by the internal sequencing engine. This patch makes adm1266 driver expose GPIOs and PDIOs to user-space using GPIO provider kernel api. Signed-off-by: Alexandru Tachici ---

[PATCH v5 5/7] hwmon: pmbus: adm1266: read blackbox

2020-06-24 Thread alexandru.tachici
From: Alexandru Tachici Use the nvmem kernel api to expose the black box chip functionality to userspace. Signed-off-by: Alexandru Tachici --- drivers/hwmon/pmbus/adm1266.c | 134 ++ 1 file changed, 134 insertions(+) diff --git a/drivers/hwmon/pmbus/adm1266.c

Re: linux-next: build warnings after merge of the imx-mxs tree

2020-06-24 Thread Tim Harvey
On Tue, Jun 23, 2020 at 4:50 PM Stephen Rothwell wrote: > > Hi all, > > After merging the imx-mxs tree, today's linux-next build (arm > multi_v7_defconfig) produced these warnings: > > arch/arm/boot/dts/imx6qdl-gw53xx.dtsi:350.4-27: Warning (reg_format): >

Re: move block bits out of fs.h

2020-06-24 Thread Christoph Hellwig
On Wed, Jun 24, 2020 at 09:14:11AM -0600, Jens Axboe wrote: > On 6/24/20 9:12 AM, Christoph Hellwig wrote: > > On Wed, Jun 24, 2020 at 09:09:42AM -0600, Jens Axboe wrote: > >> Applied for 5.9 - I kept this in a separate topic branch, fwiw. There's the > >> potential for some annoying issues with

Re: [PATCH 5.7 000/474] 5.7.6-rc2 review

2020-06-24 Thread Guenter Roeck
On Wed, Jun 24, 2020 at 08:10:33AM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.7.6 release. > There are 474 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

Re: move block bits out of fs.h

2020-06-24 Thread Jens Axboe
On 6/24/20 9:12 AM, Christoph Hellwig wrote: > On Wed, Jun 24, 2020 at 09:09:42AM -0600, Jens Axboe wrote: >> Applied for 5.9 - I kept this in a separate topic branch, fwiw. There's the >> potential for some annoying issues with this, so would rather have it in >> a branch we can modify easily, if

Re: [PATCH 5.4 000/311] 5.4.49-rc2 review

2020-06-24 Thread Guenter Roeck
On Wed, Jun 24, 2020 at 08:10:19AM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.4.49 release. > There are 311 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

Re: [PATCH 4.19 000/203] 4.19.130-rc2 review

2020-06-24 Thread Guenter Roeck
On Wed, Jun 24, 2020 at 08:10:06AM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.19.130 release. > There are 203 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

Re: [PATCH 4.14 000/135] 4.14.186-rc2 review

2020-06-24 Thread Guenter Roeck
On Wed, Jun 24, 2020 at 08:09:52AM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.186 release. > There are 135 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

Re: move block bits out of fs.h

2020-06-24 Thread Christoph Hellwig
On Wed, Jun 24, 2020 at 09:09:42AM -0600, Jens Axboe wrote: > Applied for 5.9 - I kept this in a separate topic branch, fwiw. There's the > potential for some annoying issues with this, so would rather have it in > a branch we can modify easily, if we need to. Hmm, I have a bunch of things

Re: brocken devfreq simple_ondemand for Odroid XU3/4?

2020-06-24 Thread Sylwester Nawrocki
Hi All, On 24.06.2020 12:32, Lukasz Luba wrote: > I had issues with devfreq governor which wasn't called by devfreq > workqueue. The old DELAYED vs DEFERRED work discussions and my patches > for it [1]. If the CPU which scheduled the next work went idle, the > devfreq workqueue will not be kicked

Re: [PATCH][next] drm: amdgpu: fix premature goto because of missing braces

2020-06-24 Thread Alex Deucher
Applied. Thanks! Alex On Wed, Jun 24, 2020 at 10:32 AM Nirmoy wrote: > > Acked-by: Nirmoy Das > > > Thanks, > > Nirmoy > > On 6/24/20 4:14 PM, Colin King wrote: > > From: Colin Ian King > > > > Currently the goto statement is skipping over a lot of setup code > > because it is outside of an

Re: [PATCH v8 2/3] phy: zynqmp: Add PHY driver for the Xilinx ZynqMP Gigabit Transceiver

2020-06-24 Thread Vinod Koul
Hi Laurent, Mostly this looks fine to me, some minor nitpicks below: On 13-05-20, 20:22, Laurent Pinchart wrote: > +config PHY_XILINX_ZYNQMP > + tristate "Xilinx ZynqMP PHY driver" > + depends on ARCH_ZYNQMP Can we add COMPILE_TEST here so that this driver gets wider compile coverage?

[PATCH v2 2/4] media: staging: tegra-vde: Runtime PM is always available on Tegra

2020-06-24 Thread Dmitry Osipenko
Runtime PM is always available on Tegra nowadays since commit 40b2bb1b132a ("ARM: tegra: enforce PM requirement"), hence the case of unavailable RPM doesn't need to be handled. Signed-off-by: Dmitry Osipenko --- drivers/staging/media/tegra-vde/vde.c | 16 1 file changed, 16

[PATCH v2 3/4] media: staging: tegra-vde: Turn ON power domain on shutdown

2020-06-24 Thread Dmitry Osipenko
On some devices bootloader isn't ready to a clamped VDE power, and thus, machine hangs on a warm reboot (CPU reset). The VDE power partition is turned ON by default on a cold boot, hence VDE driver should keep power partition enabled on system's reboot too. This fixes hang on a warm reboot on a

Re: move block bits out of fs.h

2020-06-24 Thread Jens Axboe
On 6/20/20 1:16 AM, Christoph Hellwig wrote: > Hi Jens, > > this series removes various remaining block bits out of fs.h and cleans > up a few loose ends around that. > > Diffstat: > drivers/tty/sysrq.c |2 > fs/adfs/super.c |1 > fs/affs/file.c |1

Re: [PATCH 1/1] clk: qcom: smd: Add support for MSM8992/4 rpm clocks

2020-06-24 Thread Konrad Dybcio
I should also note that for quite some time a hack [1] has been needed on some platforms for the RPMCC to register. This includes 8992/94, 8956/76 and possibly many more. With that commit, RPMCC registers fine. [1]

[PATCH v2 4/4] media: staging: tegra-vde: Power-cycle hardware on probe

2020-06-24 Thread Dmitry Osipenko
VDE partition is left turned ON after bootloader on most devices, hence let's ensure that it's turned OFF in order to lower power leakage while hardware is idling by turning it ON and OFF during of the driver's probe. Signed-off-by: Dmitry Osipenko --- drivers/staging/media/tegra-vde/vde.c | 8

[PATCH v2 1/4] media: staging: tegra-vde: Balance runtime PM use-count on resume failure

2020-06-24 Thread Dmitry Osipenko
The RPM's use-count is getting incremented regardless of the pm_runtime_get_sync() success or fail. It's up to a driver how to handle the failed RPM. In the case of VDE driver, the RPM's use-count should be restored if runtime-resume fails. Use pm_runtime_put_noidle(), which is the most

[PATCH v2 0/4] Tegra Video Decoder driver power management corrections

2020-06-24 Thread Dmitry Osipenko
Hello, This small series addresses a Runtime PM issue that was discovered during of Tegra VI driver reviewing by balancing RPM usage count on RPM resume failure. Secondly it fixes reboot on some Tegra devices due to bootloader expecting VDE power partition to be ON at the boot time, which wasn't

[PATCH 03/10] mfd: tps6586x: Fix cast to restricted __le32 warning

2020-06-24 Thread Lee Jones
Silences Sparse warning(s): drivers/mfd/tps6586x.c:323:16: warning: cast to restricted __le32 drivers/mfd/tps6586x.c:323:16: warning: cast to restricted __le32 drivers/mfd/tps6586x.c:323:16: warning: cast to restricted __le32 drivers/mfd/tps6586x.c:323:16: warning: cast to restricted __le32

[PATCH 00/10] Fix a bunch of W=1 warnings in MFD

2020-06-24 Thread Lee Jones
Attempting to clean-up W=1 kernel builds, which are currently overwhelmingly riddled with niggly little warnings. Lee Jones (10): mfd: twl4030-irq: Fix incorrect type in assignment warning mfd: twl4030-irq: Fix cast to restricted __le32 warning mfd: tps6586x: Fix cast to restricted __le32

Re: [PATCH] drm/bridge: dw-mipi-dsi.c: remove unused header file

2020-06-24 Thread Yannick FERTRE
Hello Angelo, thank for patch. Reviewed-by: Yannick Fertre On 4/3/20 3:30 PM, Angelo Ribeiro wrote: > dw-mipi-dsi does not use any definition from drm_probe_helper. > > Coverity output: > Event unnecessary_header: > Including .../include/drm/drm_probe_helper.h does not provide any > needed

[PATCH 05/10] mfd: sprd-sc27xx-spi: Fix symbol 'sprd_pmic_detect_charger_type' was not declared warning

2020-06-24 Thread Lee Jones
Sparse reports: drivers/mfd/sprd-sc27xx-spi.c:59:23: warning: symbol 'sprd_pmic_detect_charger_type' was not declared. Should it be static? ... due to a missing header file. Cc: Cc: Orson Zhai Cc: Baolin Wang Cc: Chunyan Zhang Signed-off-by: Lee Jones --- drivers/mfd/sprd-sc27xx-spi.c |

[PATCH 04/10] mfd: altera-sysmgr: Fix physical address storing hacks

2020-06-24 Thread Lee Jones
Sparse reports: drivers/mfd/altera-sysmgr.c:150:30: warning: incorrect type in assignment (different address spaces) drivers/mfd/altera-sysmgr.c:150:30:expected unsigned int [usertype] *base drivers/mfd/altera-sysmgr.c:150:30:got void [noderef] * drivers/mfd/altera-sysmgr.c:156:26:

[PATCH 09/10] mfd: wm8400-core: Supply description for wm8400_reset_codec_reg_cache's arg

2020-06-24 Thread Lee Jones
Kerneldoc syntax is used, but not complete. Descriptions required. Prevents warnings like: drivers/mfd/wm8400-core.c:113: warning: Function parameter or member 'wm8400' not described in 'wm8400_reset_codec_reg_cache' Cc: Cc: Mark Brown Cc: patc...@opensource.cirrus.com Signed-off-by: Lee

[PATCH 02/10] mfd: twl4030-irq: Fix cast to restricted __le32 warning

2020-06-24 Thread Lee Jones
Silences Sparse warning(s): drivers/mfd/twl4030-irq.c:573:40: warning: cast to restricted __le32 drivers/mfd/twl4030-irq.c:573:40: warning: cast to restricted __le32 drivers/mfd/twl4030-irq.c:573:40: warning: cast to restricted __le32 drivers/mfd/twl4030-irq.c:573:40: warning: cast to

[PATCH 08/10] mfd: tc3589x: Remove invalid use of kerneldoc syntax

2020-06-24 Thread Lee Jones
Kerneldoc is for documenting function arguments and return values. Prevents warnings like: drivers/mfd/tc3589x.c:32: warning: Enum value 'TC3589X_TC35890' not described in enum 'tc3589x_version' drivers/mfd/tc3589x.c:32: warning: Enum value 'TC3589X_TC35892' not described in enum

[PATCH 10/10] mfd: wm831x-core: Supply description wm831x_reg_{un}lock args

2020-06-24 Thread Lee Jones
Kerneldoc syntax is used, but not complete. Descriptions required. Prevents warnings like: drivers/mfd/wm831x-core.c:119: warning: Function parameter or member 'wm831x' not described in 'wm831x_reg_lock' drivers/mfd/wm831x-core.c:145: warning: Function parameter or member 'wm831x' not

[PATCH 06/10] mfd: ab3100-core: Fix incompatible types in comparison expression warning

2020-06-24 Thread Lee Jones
Smatch reports: drivers/mfd/ab3100-core.c:501:20: error: incompatible types in comparison expression (different type sizes): drivers/mfd/ab3100-core.c:501:20:unsigned int * drivers/mfd/ab3100-core.c:501:20:unsigned long * drivers/mfd/ab8500-debugfs.c:1804:20: error: incompatible

[PATCH 01/10] mfd: twl4030-irq: Fix incorrect type in assignment warning

2020-06-24 Thread Lee Jones
Silences Sparse warning: drivers/mfd/twl4030-irq.c:485:26: warning: incorrect type in assignment (different base types) drivers/mfd/twl4030-irq.c:485:26:expected unsigned int [usertype] word drivers/mfd/twl4030-irq.c:485:26:got restricted __le32 [usertype] Cc: Cc: Tony Lindgren Cc:

[PATCH 07/10] mfd: ab8500-debugfs: Fix incompatible types in comparison expression issue

2020-06-24 Thread Lee Jones
Smatch reports: drivers/mfd/ab8500-debugfs.c:1804:20: error: incompatible types in comparison expression (different type sizes): drivers/mfd/ab8500-debugfs.c:1804:20:unsigned int * drivers/mfd/ab8500-debugfs.c:1804:20:unsigned long * This is due to mixed types being compared in a

[PATCH v2] ARM: imx6plus: enable internal routing of clk_enet_ref where possible

2020-06-24 Thread Sven Van Asbroeck
On imx6, the ethernet reference clock (clk_enet_ref) can be generated by either the imx6, or an external source (e.g. an oscillator or the PHY). When generated by the imx6, the clock source (from ANATOP) must be routed to the input of clk_enet_ref via two pads on the SoC, typically via a dedicated

[PATCH 4/8] backlight: ili922x: Remove invalid use of kerneldoc syntax

2020-06-24 Thread Lee Jones
Kerneldoc is for documenting function arguments and return values. Prevents warnings like: drivers/video/backlight/ili922x.c:127: warning: cannot understand function prototype: 'int ili922x_id = 1; ' drivers/video/backlight/ili922x.c:136: warning: cannot understand function prototype:

[PATCH 7/8] backlight: lm3630a_bl: Remove invalid checks for unsigned int < 0

2020-06-24 Thread Lee Jones
unsigned ints 'sources' and 'bank' cannot be less than LM3630A_SINK_0 (0) and LM3630A_BANK_0 (0) respecitively, so change the logic to only check for thier two possible valid values. Fixes W=1 warnings: drivers/video/backlight/lm3630a_bl.c: In function ‘lm3630a_parse_led_sources’:

[PATCH 1/8] backlight: lms501kf03: Remove unused const variables

2020-06-24 Thread Lee Jones
W=1 kernel build reports: drivers/video/backlight/lms501kf03.c:96:28: warning: ‘seq_sleep_in’ defined but not used [-Wunused-const-variable=] 96 | static const unsigned char seq_sleep_in[] = { | ^~~~ drivers/video/backlight/lms501kf03.c:92:28: warning: ‘seq_up_dn’ defined but not

[PATCH 3/8] backlight: ili922x: Add missing kerneldoc descriptions for CHECK_FREQ_REG() args

2020-06-24 Thread Lee Jones
Kerneldoc syntax is used, but not complete. Descriptions required. Prevents warnings like: drivers/video/backlight/ili922x.c:116: warning: Function parameter or member 's' not described in 'CHECK_FREQ_REG' drivers/video/backlight/ili922x.c:116: warning: Function parameter or member 'x' not

[PATCH 8/8] backlight: qcom-wled: Remove unused configs for LED3 and LED4

2020-06-24 Thread Lee Jones
Fixes W=1 warnings: drivers/video/backlight/qcom-wled.c:1294:34: warning: ‘wled4_string_cfg’ defined but not used [-Wunused-const-variable=] 1294 | static const struct wled_var_cfg wled4_string_cfg = { | ^~~~ drivers/video/backlight/qcom-wled.c:1290:34: warning:

[PATCH 5/8] backlight: ili922x: Add missing kerneldoc description for ili922x_reg_dump()'s arg

2020-06-24 Thread Lee Jones
Kerneldoc syntax is used, but not complete. Descriptions required. Prevents warnings like: drivers/video/backlight/ili922x.c:298: warning: Function parameter or member 'spi' not described in 'ili922x_reg_dump' Cc: Cc: Bartlomiej Zolnierkiewicz Cc: Software Engineering Signed-off-by: Lee

[PATCH 2/8] backlight: lcd: Add missing kerneldoc entry for 'struct device parent'

2020-06-24 Thread Lee Jones
This has been missing since the conversion to 'struct device' in 2007. Cc: Cc: Bartlomiej Zolnierkiewicz Cc: Jamey Hicks Cc: Andrew Zabolotny Signed-off-by: Lee Jones --- drivers/video/backlight/lcd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/video/backlight/lcd.c

[PATCH 6/8] backlight: backlight: Supply description for function args in existing Kerneldocs

2020-06-24 Thread Lee Jones
Kerneldoc syntax is used, but not complete. Descriptions required. Prevents warnings like: drivers/video/backlight/backlight.c:329: warning: Function parameter or member 'reason' not described in 'backlight_force_update' drivers/video/backlight/backlight.c:354: warning: Function parameter or

[PATCH 0/8] Fix a bunch of W=1 warnings in Backlight

2020-06-24 Thread Lee Jones
Attempting to clean-up W=1 kernel builds, which are currently overwhelmingly riddled with niggly little warnings. Lee Jones (8): backlight: lms501kf03: Remove unused const variables backlight: lcd: Add missing kerneldoc entry for 'struct device parent' backlight: ili922x: Add missing

Re: [RESEND PATCH v5 3/5] drivers core: allow probe_err accept integer and pointer types

2020-06-24 Thread Mark Brown
On Wed, Jun 24, 2020 at 03:25:33PM +0100, Robin Murphy wrote: > And yeah, anyone who pipes up suggesting that places where an ERR_PTR value > could be passed to probe_err() could simply refactor IS_ERR() checks with > more uses of the god-awful PTR_ERR_OR_ZERO() obfuscator gets a long stare of >

Re: [PATCH v2 04/12] arm64: dts: qcom: msm8994: Add support for SMD RPM

2020-06-24 Thread Konrad Dybcio
> Can you please extend qcom-apcs-ipc-mailbox and its binding to add > MSM8994 and use mboxes = < 0>; here instead? I have in fact converted it into a mailbox and sent in the v3, but unfortunately it looks like the SMD RPM driver hasn't been updated for "mboxes =", so I stuck with the "qcom,ipc

[PATCH v3 00/15] HWPOISON: soft offline rework

2020-06-24 Thread nao . horiguchi
I rebased soft-offline rework patchset [1][2] onto the latest mmotm. The rebasing required some non-trivial changes to adjust, but mainly that was straightforward. I confirmed that the reported problem doesn't reproduce on compaction after soft offline. For more precise description of the

[PATCH v3 07/15] mm,hwpoison: Kill put_hwpoison_page

2020-06-24 Thread nao . horiguchi
From: Oscar Salvador After commit 4e41a30c6d50 ("mm: hwpoison: adjust for new thp refcounting"), put_hwpoison_page got reduced to a put_page. Let us just use put_page instead. Signed-off-by: Oscar Salvador Signed-off-by: Naoya Horiguchi --- include/linux/mm.h | 1 - mm/memory-failure.c |

[PATCH v3 5/8] mailbox: qcom: Add msm8994 apcs compatible

2020-06-24 Thread Konrad Dybcio
MSM8994 has an APCS block similar to 8916, but with a different clock driver due to the former one having 2 clusters. Signed-off-by: Konrad Dybcio --- .../devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml | 1 + drivers/mailbox/qcom-apcs-ipc-mailbox.c | 5 + 2

[PATCH v3 6/8] arm64: dts: qcom: msm8994: Add support for SMD RPM

2020-06-24 Thread Konrad Dybcio
Add support for SMD RPM, including pm8994 and pmi8994 regulators. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/msm8994.dtsi | 43 +++ 1 file changed, 43 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8994.dtsi

[PATCH v3 8/8] arm64: dts: qcom: Add support for Sony Xperia Z5 (SoMC Sumire-RoW)

2020-06-24 Thread Konrad Dybcio
Add device tree support for the Sony Xperia Z5 smartphone. It's based on Sony Kitakami platform (msm8994) and hence a Kitakami-common DTSI has been created so as to reduce clutter when remaining devices are added. The board currently supports * Serial * SDHCI * I2C * Regulator configuration *

[PATCH v3 13/15] mm,hwpoison: Refactor soft_offline_huge_page and __soft_offline_page

2020-06-24 Thread nao . horiguchi
From: Oscar Salvador Merging soft_offline_huge_page and __soft_offline_page let us get rid of quite some duplicated code, and makes the code much easier to follow. Now, __soft_offline_page will handle both normal and hugetlb pages. Note that move put_page() block to the beginning of

[PATCH v3 14/15] mm,hwpoison: Return 0 if the page is already poisoned in soft-offline

2020-06-24 Thread nao . horiguchi
From: Oscar Salvador Currently, there is an inconsistency when calling soft-offline from different paths on a page that is already poisoned. 1) madvise: madvise_inject_error skips any poisoned page and continues the loop. If that was the only page to madvise, it returns

[PATCH v3 15/15] mm,hwpoison: introduce MF_MSG_UNSPLIT_THP

2020-06-24 Thread nao . horiguchi
From: Naoya Horiguchi memory_failure() is supposed to call action_result() when it handles a memory error event, but there's one missing case. So let's add it. I find that include/ras/ras_event.h has some other MF_MSG_* undefined, so this patch also adds them. Signed-off-by: Naoya Horiguchi

Re: [PATCH 3/8] arm64: dts: qcom: sdm630: Add tsens node

2020-06-24 Thread Konrad Dybcio
Interesting, the downstream DTS only mentions the 0x010AD one.. Are you sure you're not looking at 636/660? Regards Konrad

[PATCH v3 05/15] mm,hwpoison-inject: don't pin for hwpoison_filter

2020-06-24 Thread nao . horiguchi
From: Naoya Horiguchi Another memory error injection interface debugfs:hwpoison/corrupt-pfn also takes bogus refcount for hwpoison_filter(). It's justified because this does a coarse filter, expecting that memory_failure() redoes the check for sure. Signed-off-by: Naoya Horiguchi

[PATCH v3 10/15] mm,hwpoison: Unify THP handling for hard and soft offline

2020-06-24 Thread nao . horiguchi
From: Oscar Salvador Place the THP's page handling in a helper and use it from both hard and soft-offline machinery, so we get rid of some duplicated code. Signed-off-by: Oscar Salvador Signed-off-by: Naoya Horiguchi --- mm/memory-failure.c | 48 +

[PATCH v3 12/15] mm,hwpoison: Rework soft offline for in-use pages

2020-06-24 Thread nao . horiguchi
From: Oscar Salvador This patch changes the way we set and handle in-use poisoned pages. Until now, poisoned pages were released to the buddy allocator, trusting that the checks that take place prior to hand the page would act as a safe net and would skip that page. This has proved to be wrong,

[PATCH v3 11/15] mm,hwpoison: Rework soft offline for free pages

2020-06-24 Thread nao . horiguchi
From: Oscar Salvador When trying to soft-offline a free page, we need to first take it off the buddy allocator. Once we know is out of reach, we can safely flag it as poisoned. take_page_off_buddy will be used to take a page meant to be poisoned off the buddy allocator. take_page_off_buddy

[PATCH v3 09/15] mm,hwpoison: remove flag argument from soft offline functions

2020-06-24 Thread nao . horiguchi
From: Naoya Horiguchi The argument @flag no longer affects the behavior of soft_offline_page() and its variants, so let's remove them. Signed-off-by: Naoya Horiguchi Signed-off-by: Oscar Salvador --- drivers/base/memory.c | 2 +- include/linux/mm.h| 2 +- mm/madvise.c | 2 +-

<    3   4   5   6   7   8   9   10   11   12   >