Re: [PATCH v2 06/12] iio: buffer: re-route scan_elements via it's kobj_type

2021-01-22 Thread Alexandru Ardelean
On Fri, Jan 22, 2021 at 5:57 PM Alexandru Ardelean wrote: > > The scan_elements attributes are solely located inside > 'industrialio-buffer-sysfs.c'. In order to support more than one buffer per > IIO device, we need to expand scan_elements attributes directly to IIO > buffer object, and not the I

[PATCH v5 13/18] mm/filemap: Add filemap_range_uptodate

2021-01-22 Thread Matthew Wilcox (Oracle)
Move the complicated condition and the calculations out of filemap_update_page() into its own function. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Kent Overstreet Reviewed-by: Christoph Hellwig --- mm/filemap.c | 68 ++-- 1 file changed,

[PATCH v5 15/18] mm/filemap: Restructure filemap_get_pages

2021-01-22 Thread Matthew Wilcox (Oracle)
Remove the got_pages label, remove indentation, rename find_page to retry, simplify error handling. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Kent Overstreet Reviewed-by: Christoph Hellwig --- mm/filemap.c | 71 +--- 1 file changed, 28

Re: [PATCH v5 0/3] GENPD API improvements

2021-01-22 Thread Rafael J. Wysocki
On Thu, Jan 21, 2021 at 12:45 AM Dmitry Osipenko wrote: > > Hi, > > This series is a prerequisite for the power domain driver of NVIDIA Tegra > SoCs [1]. It extends the GENPD core with a better support of performance > states and eases linking of child/parent PDs for the PD drivers. > > [1] https:

[PATCH v5 18/18] mm/filemap: Simplify generic_file_read_iter

2021-01-22 Thread Matthew Wilcox (Oracle)
From: Christoph Hellwig Avoid the pointless goto out just for returning retval. Signed-off-by: Christoph Hellwig Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Kent Overstreet --- mm/filemap.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/mm/filemap.c b/

Re: [PATCH v2 1/2] dt-bindings: drm/bridge: anx7625: add DPI flag and swing setting

2021-01-22 Thread Rob Herring
On Tue, Jan 12, 2021 at 2:57 AM Xin Ji wrote: > > Hi Rob Herring, thanks for the comments. > > On Mon, Jan 11, 2021 at 04:14:35PM -0600, Rob Herring wrote: > > On Thu, Dec 31, 2020 at 10:21:12AM +0800, Xin Ji wrote: > > > Add DPI flag for distinguish MIPI input signal type, DSI or DPI. Add > > > s

Re: [GIT PULL] ARM: at91: soc for 5.12

2021-01-22 Thread Nicolas Ferre
On 22/01/2021 at 16:25, Arnd Bergmann wrote: On Fri, Jan 22, 2021 at 3:35 PM wrote: From: Nicolas Ferre Arnd, Olof, I'm taking back the lead on sending the pull-requests for AT91 and hope that I didn't loose the knowledge in the meantime. Tell me if there's something I'm missing. Thanks a l

[PATCH v5 17/18] mm/filemap: Rename generic_file_buffered_read to filemap_read

2021-01-22 Thread Matthew Wilcox (Oracle)
From: Christoph Hellwig Rename generic_file_buffered_read to match the naming of filemap_fault, also update the written parameter to a more descriptive name and improve the kerneldoc comment. Signed-off-by: Christoph Hellwig Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Kent Overstreet

Re: [PATCH v4 11/13] task_isolation: net: don't flush backlog on CPUs running isolated tasks

2021-01-22 Thread Paolo Abeni
On Fri, 2021-01-22 at 11:13 -0300, Marcelo Tosatti wrote: > On Thu, Oct 01, 2020 at 04:47:31PM +0200, Frederic Weisbecker wrote: > > On Wed, Jul 22, 2020 at 02:58:24PM +, Alex Belits wrote: > > > From: Yuri Norov > > > > > > so we don't need to flush it. > > > > What guarantees that we have

[PATCH 3/4] perf tools: enable dwarf_callchain_users on arm64

2021-01-22 Thread Alexandre Truong
On arm64, enable dwarf_callchain_users which will be needed to do a dwarf unwind in order to get the caller of the leaf frame. Signed-off-by: Alexandre Truong Cc: John Garry Cc: Will Deacon Cc: Mathieu Poirier Cc: Leo Yan Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc:

Re: [printk] b031a684bf: INFO:rcu_tasks_detected_stalls_on_tasks

2021-01-22 Thread Petr Mladek
On Fri 2021-01-22 16:13:11, kernel test robot wrote: > > Greeting, > > FYI, we noticed the following commit (built with gcc-9): > > commit: b031a684bfd01d633c79d281bd0cf11c2f834ada ("printk: remove logbuf_lock > writer-protection of ringbuffer") > https://git.kernel.org/cgit/linux/kernel/git/to

[PATCH v2 00/12][RESEND] iio: core,buffer: add support for multiple IIO buffers per IIO device

2021-01-22 Thread Alexandru Ardelean
Continuing from: https://lore.kernel.org/linux-iio/20201117162340.43924-1-alexandru.ardel...@analog.com/ Changelog v1 -> v2: * 'iio: buffer: rework buffer & scan_elements dir creation' add more doc-strings detailing the reasoning for this change * 'iio: buffer: re-route scan_elements via it's

[PATCH v2 01/12][RESEND] iio: core: register chardev only if needed

2021-01-22 Thread Alexandru Ardelean
We only need a chardev if we need to support buffers and/or events. With this change, a chardev will be created only if an IIO buffer is attached OR an event_interface is configured. Otherwise, no chardev will be created, and the IIO device will get registered with the 'device_add()' call. Quite

[PATCH v2 05/12][RESEND] iio: core: split __iio_device_attr_init() to init only the attr object

2021-01-22 Thread Alexandru Ardelean
The __iio_device_attr_init() function initializes a device_attribute object, but mostly it just does a lot of name creation logic. We will want to re-use this logic for name-creation, so this change re-purposes the __iio_device_attr_init() to be a __iio_attr_init() function which just handles the

[PATCH v2 04/12][RESEND] iio: buffer: add index to the first IIO buffer dir and symlink it back

2021-01-22 Thread Alexandru Ardelean
This change makes it so that the first buffer directory is named 'buffer0' and moves the 'scan_elements' under it. For backwards compatibility these folders are symlinked back to the original folders. Signed-off-by: Alexandru Ardelean --- drivers/iio/industrialio-buffer.c | 66 +

[PATCH v2 03/12][RESEND] iio: buffer: rework buffer & scan_elements dir creation

2021-01-22 Thread Alexandru Ardelean
When adding more than one IIO buffer per IIO device, we will need to create a buffer & scan_elements directory for each buffer. We also want to move the 'scan_elements' to be a sub-directory of the 'buffer' folder. The format we want to reach is, for a iio:device0 folder, for 2 buffers [for exampl

[PATCH v2 06/12][RESEND] iio: buffer: re-route scan_elements via it's kobj_type

2021-01-22 Thread Alexandru Ardelean
The scan_elements attributes are solely located inside 'industrialio-buffer-sysfs.c'. In order to support more than one buffer per IIO device, we need to expand scan_elements attributes directly to IIO buffer object, and not the IIO device. This also requires that a new 'iio_buffer_attr' type be a

Re: [net-next PATCH v4 09/15] device property: Introduce fwnode_get_id()

2021-01-22 Thread Andy Shevchenko
On Fri, Jan 22, 2021 at 09:12:54PM +0530, Calvin Johnson wrote: > Using fwnode_get_id(), get the reg property value for DT node > or get the _ADR object value for ACPI node. ... > +/** > + * fwnode_get_id - Get the id of a fwnode. > + * @fwnode: firmware node > + * @id: id of the fwnode > + * > +

[PATCH v2 12/12][RESEND] iio: buffer: add ioctl() to support opening extra buffers for IIO device

2021-01-22 Thread Alexandru Ardelean
With this change, an ioctl() call is added to open a character device for a buffer. The ioctl() will return a 0 FD for the first buffer, as that FD for buffer0 is the same FD as the one used for this ioctl(). For any other extra buffer, this ioctl() will return an anon inode FD that would access a

Re: [PATCH bpf-next v3 3/3] xsk: build skb by page

2021-01-22 Thread Alexander Lobakin
From: Xuan Zhuo Date: Fri, 22 Jan 2021 23:36:29 +0800 > On Fri, 22 Jan 2021 12:08:00 +, Alexander Lobakin wrote: > > From: Alexander Lobakin > > Date: Fri, 22 Jan 2021 11:55:35 + > > > > > From: Alexander Lobakin > > > Date: Fri, 22 Jan 2021 11:47:45 + > > > > > > > From: Eric Duma

[PATCH 1/2] arm64: dts: ti: k3-j7200-main: Add support for HS200 and HS400 modes in MMCSD0 subsystem

2021-01-22 Thread Aswath Govindraju
HS200 and HS400 modes at 1.8 V card voltage, are now supported in MMCSD0 subsystem of J7200 SoC[1]. Set respective tags to indicate it. [1] - https://www.ti.com/lit/ug/spruiu1a/spruiu1a.pdf Signed-off-by: Aswath Govindraju --- arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 2 ++ 1 file changed, 2

Re: [PATCH v6 1/4] usb: gadget: udc: core: Introduce check_config to verify USB configuration

2021-01-22 Thread Alan Stern
On Thu, Jan 21, 2021 at 08:01:37PM -0800, Wesley Cheng wrote: > Some UDCs may have constraints on how many high bandwidth endpoints it can > support in a certain configuration. This API allows for the composite > driver to pass down the total number of endpoints to the UDC so it can verify > it ha

Re: [PATCH v3 0/2] Make it possible to reserve memory on 64bit platform

2021-01-22 Thread Andy Shevchenko
On Fri, Jan 22, 2021 at 07:55:35AM -0800, Wesley Zhao wrote: > I was trying to reserve some memory to save logs incase that Android panic or > hang and then > I can read the logs from QNX side from the memory reserved before on the > Qualcomm 8155 hypervisor platform, > and I find the "reserve="

Re: [PATCH v3 1/2] lib/cmdline: add new function get_option_ull()

2021-01-22 Thread Andy Shevchenko
On Fri, Jan 22, 2021 at 07:55:36AM -0800, Wesley Zhao wrote: > In the future we would pass the unsigned long long parameter > like(0x123456781234) in cmdline on the 64bit platform, so add a new > option parse function get_option_ull() You missed period at the end of phrase. Overall this patch is

Re: [PATCH v3 2/2] resource: Make it possible to reserve memory on 64bit platform

2021-01-22 Thread Andy Shevchenko
On Fri, Jan 22, 2021 at 07:55:37AM -0800, Wesley Zhao wrote: > For now "reserve=" is limitied to 32bit,not available on 64bit > platform,so we change the get_option() to get_option_ull(added in > patch: commit 4b6bfe96265e ("lib/cmdline: add new function > get_option_ull()")) Do better grammar and

[PATCH v2 02/12][RESEND] iio: buffer: add back-ref from iio_buffer to iio_dev

2021-01-22 Thread Alexandru Ardelean
An IIO device will have multiple buffers, but it shouldn't be allowed that an IIO buffer should belong to more than 1 IIO device. Once things get moved more from IIO device to the IIO buffer, and an IIO device will be able to have more than 1 buffer attached, there will be a need for a back-ref to

[PATCH 2/2] arm64: dts: ti: k3-j7200-main: Add support for UHS-I modes in MMCSD1 subsystem

2021-01-22 Thread Aswath Govindraju
Remove no-1-8-v tag in sdhci1 device tree node as UHS-I speed modes are now supported in MMCSD1 subsystem of J7200 SoC[1]. [1] - https://www.ti.com/lit/ug/spruiu1a/spruiu1a.pdf Signed-off-by: Aswath Govindraju --- arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 1 - 1 file changed, 1 deletion(-) d

Re: [PATCH v2 14/22] dt-bindings: media: camss: Add qcom,msm8996-camss binding

2021-01-22 Thread Rob Herring
On Wed, Jan 20, 2021 at 02:43:49PM +0100, Robert Foss wrote: > Add bindings for qcom,msm8996-camss in order to support the camera > subsystem on MSM8996. > > Signed-off-by: Robert Foss > --- > > Changes since v1: > - Laurent: Reworked driver to use dtschema > > > .../bindings/media/qcom,msm8

Re: [net-next PATCH v3 09/15] device property: Introduce fwnode_get_id()

2021-01-22 Thread Rafael J. Wysocki
On Wed, Jan 20, 2021 at 9:01 PM Saravana Kannan wrote: > > On Wed, Jan 20, 2021 at 11:15 AM Rafael J. Wysocki wrote: > > > > On Wed, Jan 20, 2021 at 7:51 PM Andy Shevchenko > > wrote: > > > > > > On Wed, Jan 20, 2021 at 8:18 PM Rafael J. Wysocki > > > wrote: > > > > On Tue, Jan 12, 2021 at 7:0

Re: [PATCH v2 15/22] dt-bindings: media: camss: Add qcom,sdm660-camss binding

2021-01-22 Thread Rob Herring
On Wed, Jan 20, 2021 at 02:43:50PM +0100, Robert Foss wrote: > Add bindings for qcom,sdm660-camss in order to support the camera > subsystem on SDM630/660 and SDA variants. > > Signed-off-by: Robert Foss > --- > > Changes since v1: > - Laurent: Reworked driver to use dtschema Same comments on

[PATCH v3 07/13] ASoC: arizona-jack: Move jack-detect variables to struct arizona_priv

2021-01-22 Thread Hans de Goede
Move all the jack-detect variables from struct arizona_extcon_info to struct arizona_priv. This is part of a patch series converting the arizona extcon driver into a helper library for letting the arizona codec-drivers directly report jack state through the standard sound/soc/soc-jack.c functions.

[PATCH v3 13/13] ASoC: Intel: bytcr_wm5102: Add jack detect support

2021-01-22 Thread Hans de Goede
Add jack detect support by creating a jack and calling snd_soc_component_set_jack to register the created jack with the codec. Reviewed-by: Andy Shevchenko Signed-off-by: Hans de Goede --- sound/soc/intel/boards/bytcr_wm5102.c | 28 ++- 1 file changed, 27 insertions(+),

[PATCH v3 11/13] ASoC: arizona-jack: Cleanup logging

2021-01-22 Thread Hans de Goede
Cleanup the use of dev_foo functions used for logging: 1. Many of these are unnecessarily split over multiple lines 2. Use dev_err_probe() in cases where we might get a -EPROBE_DEFERRED return value Suggested-by: Andy Shevchenko Signed-off-by: Hans de Goede --- Changes in v3: - This is a new

[PATCH v3 08/13] ASoC: arizona-jack: Use arizona->dev for runtime-pm

2021-01-22 Thread Hans de Goede
Drivers for MFD child-devices such as the arizona codec drivers and the arizona-extcon driver can choose to either make runtime_pm_get/_put calls on their own child-device, which will then be propagated to their parent; or they can make them directly on their MFD parent-device. The arizona-extcon

[PATCH v3 12/13] ASoC: arizona: Make the wm5102, wm5110, wm8997 and wm8998 drivers use the new jack library

2021-01-22 Thread Hans de Goede
Make all arizona codec drivers for which drivers/mfd/arizona-core.c used to instantiate a "arizona-extcon" child-device use the new arizona-jack.c library for jack-detection. This has been tested on a Lenovo Yoga Tablet 2 1051L with a WM5102 codec. Signed-off-by: Hans de Goede --- sound/soc/cod

[PATCH v3 09/13] ASoC: arizona-jack: convert into a helper library for codec drivers

2021-01-22 Thread Hans de Goede
Convert the arizona extcon driver into a helper library for direct use from the arizona codec-drivers, rather then being bound to a separate MFD cell. Note the probe (and remove) sequence is split into 2 parts: 1. The arizona_jack_codec_dev_probe() function inits a bunch of jack-detect specific v

[PATCH v3 05/13] extcon: arizona: Always use pm_runtime_get_sync() when we need the device to be awake

2021-01-22 Thread Hans de Goede
Before this commit the extcon-arizona code was mixing pm_runtime_get() and pm_runtime_get_sync() in different places. In all places where pm_runtime_get[_sync]() is called, the code makes use of the device immediately after the call. This means that we should always use pm_runtime_get_sync(). Sig

[PATCH v3 00/13] MFD/extcon/ASoC: Rework arizona codec jack-detect support

2021-01-22 Thread Hans de Goede
Hi all, Here is v3 om my series to rework the arizona codec jack-detect support to use the snd_soc_jack helpers instead of direct extcon reporting. This is done by reworking the extcon driver into an arizona-jackdet library and then modifying the codec drivers to use that directly, replacing the

[PATCH v3 06/13] ASoC/extcon: arizona: Move arizona jack code to sound/soc/codecs/arizona-jack.c

2021-01-22 Thread Hans de Goede
The jack handling for arizona codecs is being refactored so that it is done directly by the codec drivers, instead of having an extcon-driver bind to a separate "arizona-extcon" child-device for this. drivers/mfd/arizona-core.c has already been updated to no longer instantiate an "arizona-extcon"

[PATCH v3 02/13] extcon: arizona: Fix some issues when HPDET IRQ fires after the jack has been unplugged

2021-01-22 Thread Hans de Goede
When the jack is partially inserted and then removed again it may be removed while the hpdet code is running. In this case the following may happen: 1. The "JACKDET rise" or ""JACKDET fall" IRQ triggers 2. arizona_jackdet runs and takes info->lock 3. The "HPDET" IRQ triggers 4. arizona_hpdet_irq r

[PATCH v3 03/13] extcon: arizona: Fix various races on driver unbind

2021-01-22 Thread Hans de Goede
We must free/disable all interrupts and cancel all pending works before doing further cleanup. Before this commit arizona_extcon_remove() was doing several register writes to shut things down before disabling the IRQs and it was cancelling only 1 of the 3 different works used. Move all the regist

[PATCH v3 04/13] extcon: arizona: Fix flags parameter to the gpiod_get("wlf,micd-pol") call

2021-01-22 Thread Hans de Goede
The initial value of the GPIO should match the info->micd_modes[0].gpio value. arizona_extcon_probe() already stores the necessary flag in a mode variable, but instead of passing mode as flags to the gpiod_get() it was using a hardcoded GPIOD_OUT_LOW. Reviewed-by: Andy Shevchenko Acked-by: Charle

Re: [RFC PATCH 1/2] soundwire: add support for static port mapping

2021-01-22 Thread Pierre-Louis Bossart
No, what I was saying is that you need to define multiple streams e.g. - headset capture (configured with or without click suppression) - mic capture (configured with AMICs or DMICs) - playback (or possibly different endpoint specific streams depending on whether concurrency between endpoint i

Re: [net-next PATCH v4 09/15] device property: Introduce fwnode_get_id()

2021-01-22 Thread Rafael J. Wysocki
On Fri, Jan 22, 2021 at 4:46 PM Calvin Johnson wrote: > > Using fwnode_get_id(), get the reg property value for DT node > or get the _ADR object value for ACPI node. So I'm not really sure if this is going to be generically useful. First of all, the meaning of the _ADR return value is specific t

Re: [PATCH] ACPI: thermal: Do not call acpi_thermal_check() directly

2021-01-22 Thread Stephen Berman
On Fri, 22 Jan 2021 17:23:36 +0100 "Rafael J. Wysocki" wrote: > On Thu, Jan 14, 2021 at 7:35 PM Rafael J. Wysocki wrote: >> >> From: Rafael J. Wysocki >> >> Calling acpi_thermal_check() from acpi_thermal_notify() directly >> is problematic if _TMP triggers Notify () on the thermal zone for >>

Re: [PATCH v5 1/2] dt-bindings: pinctrl: qcom: Add SM8350 pinctrl bindings

2021-01-22 Thread Rob Herring
On Thu, Jan 21, 2021 at 10:47:46PM +0530, Vinod Koul wrote: > Add device tree binding Documentation details for Qualcomm SM8350 > pinctrl driver. > > Signed-off-by: Vinod Koul > --- > .../bindings/pinctrl/qcom,sm8350-pinctrl.yaml | 146 ++ > 1 file changed, 146 insertions(+) > c

Re: [PATCH V2 1/4] dt-bindings: mmc: fsl-imx-esdhc: add pinctrl bindings

2021-01-22 Thread Rob Herring
On Thu, Jan 21, 2021 at 11:09:50AM +0800, peng@nxp.com wrote: > From: Peng Fan > > Add pinctrl bindings for fsl-imx-esdhc yaml > > Signed-off-by: Peng Fan > --- > .../bindings/mmc/fsl-imx-esdhc.yaml | 25 +++ > 1 file changed, 25 insertions(+) > > diff --git a/Do

Re: [PATCH v4 1/2] media: dt-bindings: Convert video-interfaces.txt properties to schemas

2021-01-22 Thread Rob Herring
On Mon, Jan 4, 2021 at 10:58 AM Rob Herring wrote: > > Convert video-interfaces.txt to DT schema. As it contains a mixture of > device level and endpoint properties, split it up into 2 schemas. Ping! Can this please be applied to the media tree so I can tell folks to use it in reviews of media b

[PATCH 0/2] mmc: J7200: Add support for higher speed modes in MMCSD subsystems

2021-01-22 Thread Aswath Govindraju
The following series of patches - adds support for HS200 and HS400 speed modes in MMCSD0 subsystem - adds support for UHS-I speed modes in MMCSD1 subsystem Aswath Govindraju (2): arm64: dts: ti: k3-j7200-main: Add support for HS200 and HS400 modes in MMCSD0 subsystem arm64: dts: ti: k3-j7

Re: [PATCH] ACPI: thermal: Do not call acpi_thermal_check() directly

2021-01-22 Thread Rafael J. Wysocki
On Thu, Jan 14, 2021 at 7:35 PM Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > Calling acpi_thermal_check() from acpi_thermal_notify() directly > is problematic if _TMP triggers Notify () on the thermal zone for > which it has been evaluated (which happens on some systems), because > it

[PATCH v2 10/12][RESEND] iio: core: wrap iio device & buffer into struct for character devices

2021-01-22 Thread Alexandru Ardelean
In order to keep backwards compatibility with the current chardev mechanism, and in order to add support for multiple buffers per IIO device, we need to pass both the IIO device & IIO buffer to the chardev. This is particularly needed for the iio_buffer_read_outer() function, where we need to pass

[PATCH v2 08/12][RESEND] iio: buffer: add helper to get the IIO device to which a buffer belongs

2021-01-22 Thread Alexandru Ardelean
This is useful for drivers that may have a reference to an IIO buffer, to be able to get a reference back to the IIO device. Signed-off-by: Alexandru Ardelean --- drivers/iio/industrialio-buffer.c | 14 ++ include/linux/iio/buffer.h| 2 ++ 2 files changed, 16 insertions(+)

[PATCH v2 07/12][RESEND] iio: buffer: re-route core buffer attributes via it's new kobj_type

2021-01-22 Thread Alexandru Ardelean
For the buffer attributes that are present inside the IIO core buffer logic we can re-route them to expand the attribute into iio_buffer objects. The rest, will still expand to device_attributes. Signed-off-by: Alexandru Ardelean --- drivers/iio/industrialio-buffer.c | 113 +

[PATCH v2 11/12][RESEND] iio: buffer: introduce support for attaching more IIO buffers

2021-01-22 Thread Alexandru Ardelean
With this change, calling iio_device_attach_buffer() will actually attach more buffers. Right now this doesn't do any validation of whether a buffer is attached twice; maybe that can be added later (if needed). Attaching a buffer more than once should yield noticeably bad results. The first buffer

[PATCH 4/4] perf tools: determine if LR is the return address

2021-01-22 Thread Alexandre Truong
On arm64 and frame pointer mode (e.g: perf record --callgraph fp), use dwarf unwind info to check if the link register is the return address in order to inject it to the frame pointer stack. Write the following application: int a = 10; void f2(void) { for

[PATCH v2 09/12][RESEND] iio: re-route all buffer attributes through new buffer kobj_type

2021-01-22 Thread Alexandru Ardelean
Now that the iio_buffer_set_attrs() has been removed, we can be sure that no accidents can happen with drivers that try to provide extra buffer attributes that expand to iio_dev objects. So, we can convert all remaining buffer attributes to expand to iio_buffer objects. These will look a bit weird

[PATCH 1/4] perf tools: record aarch64 registers automatically

2021-01-22 Thread Alexandre Truong
On arm64, automatically record all the registers if the frame pointer mode is on. They will be used to do a dwarf unwind to find the caller of the leaf frame if the frame pointer was omitted. Signed-off-by: Alexandre Truong Cc: John Garry Cc: Will Deacon Cc: Mathieu Poirier Cc: Leo Yan Cc: Pe

[PATCH 2/4] perf tools: add a mechanism to inject stack frames

2021-01-22 Thread Alexandre Truong
Add a mechanism for platforms to inject stack frames for the leaf frame caller if there is enough information to determine a frame is missing from dwarf or other post processing mechanisms. Signed-off-by: Alexandre Truong Cc: John Garry Cc: Will Deacon Cc: Mathieu Poirier Cc: Leo Yan Cc: Pete

Re: [PATCH v2 0/6] Add Wacom I2C support to rM2

2021-01-22 Thread Marco Felsch
Hi Alistair, thanks for the patches. Before getting into the series please check all your commit subjects. Also please check that you do only one logical change per patch: e.g. adding DT-Support means: Add the dt-table and not more. I looking forward to your v2 :) Regards, Marco On 21-01-20 2

Re: [RFC PATCH 6/8] preempt/dynamic: Provide preempt_schedule[_notrace]() static calls

2021-01-22 Thread Ard Biesheuvel
On Fri, 22 Jan 2021 at 17:53, Peter Zijlstra wrote: > > On Mon, Jan 18, 2021 at 03:12:21PM +0100, Frederic Weisbecker wrote: > > +#ifdef CONFIG_PREEMPT_DYNAMIC > > +DEFINE_STATIC_CALL(preempt_schedule, __preempt_schedule_func()); > > +EXPORT_STATIC_CALL(preempt_schedule); > > +#endif > > > +#ifdef

[PATCH v5 16/18] mm/filemap: Don't relock the page after calling readpage

2021-01-22 Thread Matthew Wilcox (Oracle)
We don't need to get the page lock again; we just need to wait for the I/O to finish, so use wait_on_page_locked_killable() like the other callers of ->readpage. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Kent Overstreet Reviewed-by: Christoph Hellwig --- mm/filemap.c | 21 +++

[PATCH] staging: rtl8188eu: fix rtw_xmit_entry's return value

2021-01-22 Thread Martin Kaiser
A netdev xmit function should return NETDEV_TX_OK or NETDEV_TX_BUSY. Signed-off-by: Martin Kaiser --- drivers/staging/rtl8188eu/os_dep/xmit_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/os_dep/xmit_linux.c b/drivers/staging/rtl8188eu/os_de

Re: [PATCH v4 4/7] dt-bindings: regulator: qcom-labibb: Document soft start properties

2021-01-22 Thread Rob Herring
On Tue, Jan 19, 2021 at 06:44:18PM +0100, AngeloGioacchino Del Regno wrote: > Document properties to configure soft start and discharge resistor > for LAB and IBB respectively. > > Signed-off-by: AngeloGioacchino Del Regno > > Reviewed-by: Bjorn Andersson > --- > .../bindings/regulator/qcom-la

Re: [RFC,v2,1/1] audit: speed up syscall rule match while exiting syscall

2021-01-22 Thread Paul Moore
On Thu, Jan 21, 2021 at 8:54 AM wrote: > > From 72f3ecde58edb03d76cb359607fef98c1663d481 Mon Sep 17 00:00:00 2001 > From: Yang Yang > Date: Thu, 21 Jan 2021 21:05:04 +0800 > Subject: [PATCH] [RFC,v2,1/1] speed up syscall rule match while exiting > syscall > audit_filter_syscall() traverses stru

Re: [RFC PATCH v3 10/16] cxl/mem: Add send command

2021-01-22 Thread Ben Widawsky
On 21-01-22 11:43:57, Jonathan Cameron wrote: > On Thu, 21 Jan 2021 10:15:46 -0800 > Ben Widawsky wrote: > > > On 21-01-14 17:10:38, Jonathan Cameron wrote: > > > On Mon, 11 Jan 2021 14:51:14 -0800 > > > Ben Widawsky wrote: > > > > > > > The send command allows userspace to issue mailbox comm

Re: [PATCH 5.4 29/33] net, sctp, filter: remap copy_from_user failure error

2021-01-22 Thread Marcelo Ricardo Leitner
On Fri, Jan 22, 2021 at 03:12:45PM +0100, Greg Kroah-Hartman wrote: > From: Daniel Borkmann > > [ no upstream commit ] > > Fix a potential kernel address leakage for the prerequisite where there is > a BPF program attached to the cgroup/setsockopt hook. The latter can only > be attached under ro

Re: [PATCH v4 6/7] dt-bindings: regulator: qcom-labibb: Document SCP/OCP interrupts

2021-01-22 Thread Rob Herring
On Tue, Jan 19, 2021 at 06:44:20PM +0100, AngeloGioacchino Del Regno wrote: > Short-Circuit Protection (SCP) and Over-Current Protection (OCP) are > now implemented in the driver: document the interrupts. > This also fixes wrong documentation about the SCP interrupt for LAB. > > Signed-off-by: Ang

Re: [RFC PATCH 6/8] preempt/dynamic: Provide preempt_schedule[_notrace]() static calls

2021-01-22 Thread Peter Zijlstra
On Fri, Jan 22, 2021 at 05:57:53PM +0100, Ard Biesheuvel wrote: > On Fri, 22 Jan 2021 at 17:53, Peter Zijlstra wrote: > > > > On Mon, Jan 18, 2021 at 03:12:21PM +0100, Frederic Weisbecker wrote: > > > +#ifdef CONFIG_PREEMPT_DYNAMIC > > > +DEFINE_STATIC_CALL(preempt_schedule, __preempt_schedule_fun

[net-next PATCH v4 10/15] net: mdio: Add ACPI support code for mdio

2021-01-22 Thread Calvin Johnson
Define acpi_mdiobus_register() to Register mii_bus and create PHYs for each ACPI child node. Signed-off-by: Calvin Johnson --- Changes in v4: None Changes in v3: None Changes in v2: None MAINTAINERS | 1 + drivers/net/mdio/Kconfig | 7 ++ drivers/net/mdio/Makefile

Re: [PATCH v4 2/3] kasan: Add explicit preconditions to kasan_report()

2021-01-22 Thread Andrey Konovalov
On Fri, Jan 22, 2021 at 4:57 PM Vincenzo Frascino wrote: > > With the introduction of KASAN_HW_TAGS, kasan_report() accesses the > metadata only when addr_has_metadata() succeeds. > > Add a comment to make sure that the preconditions to the function are > explicitly clarified. > > Cc: Andrey Ryabi

[PATCH v3 01/13] mfd: arizona: Drop arizona-extcon cells

2021-01-22 Thread Hans de Goede
The arizona jack-dection handling is being reworked so that the codec-child-device drivers directly handle jack-detect themselves, so it is no longer necessary to instantiate "arizona-extcon" child-devices. Signed-off-by: Hans de Goede --- drivers/mfd/arizona-core.c | 20 1

[PATCH v3 10/13] ASoC: arizona-jack: Use snd_soc_jack to report jack events

2021-01-22 Thread Hans de Goede
Use the snd_soc_jack code to report jack events, instead of using extcon for reporting the cable-type + an input_dev for reporting the button presses. The snd_soc_jack code will report the cable-type through both input_dev events and through ALSA controls and the button-presses through input_dev e

Re: [PATCH] ACPI: thermal: Do not call acpi_thermal_check() directly

2021-01-22 Thread Rafael J. Wysocki
On Fri, Jan 22, 2021 at 5:39 PM Stephen Berman wrote: > > On Fri, 22 Jan 2021 17:23:36 +0100 "Rafael J. Wysocki" > wrote: > > > On Thu, Jan 14, 2021 at 7:35 PM Rafael J. Wysocki > > wrote: > >> > >> From: Rafael J. Wysocki > >> > >> Calling acpi_thermal_check() from acpi_thermal_notify() dire

Re: [PATCH] pci: remove tango host controller driver

2021-01-22 Thread Lorenzo Pieralisi
On Wed, 20 Jan 2021 16:07:29 +0100, Arnd Bergmann wrote: > The tango platform is getting removed, so the driver is no > longer needed. Applied to pci/tango, thanks! [1/1] PCI: Remove tango host controller driver https://git.kernel.org/lpieralisi/pci/c/de9427ca87 Thanks, Lorenzo

Re: [PATCH] ACPI: thermal: Do not call acpi_thermal_check() directly

2021-01-22 Thread Sebastian Andrzej Siewior
On 2021-01-22 17:23:36 [+0100], Rafael J. Wysocki wrote: > > Well, it's been over a week since this was posted. Thank you for this ;) > Does anyone have any comments? I looked over it and it makes sense, so Reviewed-by: Sebastian Andrzej Siewior I didn't comment on it since a testing-by wou

Re: [net-next PATCH v4 09/15] device property: Introduce fwnode_get_id()

2021-01-22 Thread Andy Shevchenko
On Fri, Jan 22, 2021 at 05:40:41PM +0100, Rafael J. Wysocki wrote: > On Fri, Jan 22, 2021 at 4:46 PM Calvin Johnson > wrote: > > > > Using fwnode_get_id(), get the reg property value for DT node > > or get the _ADR object value for ACPI node. > > So I'm not really sure if this is going to be gene

Re: [PATCH v4 1/2] media: dt-bindings: Convert video-interfaces.txt properties to schemas

2021-01-22 Thread Sakari Ailus
Hi Rob, On Fri, Jan 22, 2021 at 10:23:44AM -0600, Rob Herring wrote: > On Mon, Jan 4, 2021 at 10:58 AM Rob Herring wrote: > > > > Convert video-interfaces.txt to DT schema. As it contains a mixture of > > device level and endpoint properties, split it up into 2 schemas. > > Ping! > > Can this p

Re: [RFC PATCH 6/8] preempt/dynamic: Provide preempt_schedule[_notrace]() static calls

2021-01-22 Thread Peter Zijlstra
On Mon, Jan 18, 2021 at 03:12:21PM +0100, Frederic Weisbecker wrote: > +#ifdef CONFIG_PREEMPT_DYNAMIC > +DEFINE_STATIC_CALL(preempt_schedule, __preempt_schedule_func()); > +EXPORT_STATIC_CALL(preempt_schedule); > +#endif > +#ifdef CONFIG_PREEMPT_DYNAMIC > +DEFINE_STATIC_CALL(preempt_schedule_notra

[GIT PULL] mm/memblock: typo fix in a comment

2021-01-22 Thread Mike Rapoport
Hi Linus, The following changes since commit 9791581c049c10929e97098374dd1716a81fefcc: Merge tag 'for-5.11-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux (2021-01-20 14:15:33 -0800) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/

Re: [PATCH] diffconfig: use python3 instead of python in Shebang line

2021-01-22 Thread Scott Branden
On 2021-01-21 6:18 p.m., Joe Perches wrote: > On Fri, 2021-01-22 at 05:25 +0900, Masahiro Yamada wrote: >> On Fri, Jan 22, 2021 at 2:17 AM Scott Branden >> wrote: >>> Use python3 instead of python in diffconfig Shebang line. >>> python2 was sunset January 1, 2000 and environments do not need >>

Re: [GIT PULL] ARM: at91: soc for 5.12

2021-01-22 Thread Alexandre Belloni
On 22/01/2021 16:25:47+0100, Arnd Bergmann wrote: > On Fri, Jan 22, 2021 at 3:35 PM wrote: > > > > From: Nicolas Ferre > > > > Arnd, Olof, > > > > I'm taking back the lead on sending the pull-requests for AT91 and hope > > that I > > didn't loose the knowledge in the meantime. Tell me if there's

[PATCH v5 14/18] mm/filemap: Split filemap_readahead out of filemap_get_pages

2021-01-22 Thread Matthew Wilcox (Oracle)
This simplifies the error handling. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Kent Overstreet Reviewed-by: Christoph Hellwig --- mm/filemap.c | 19 ++- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/mm/filemap.c b/mm/filemap.c index a3ebc6082022e..ba20

[PATCH v5 09/18] mm/filemap: Change filemap_read_page calling conventions

2021-01-22 Thread Matthew Wilcox (Oracle)
Make this function more generic by passing the file instead of the iocb. Check in the callers whether we should call readpage or not. Also make it return an errno / 0 / AOP_TRUNCATED_PAGE, and make calling put_page() the caller's responsibility. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by

[PATCH v4 2/3] kasan: Add explicit preconditions to kasan_report()

2021-01-22 Thread Vincenzo Frascino
With the introduction of KASAN_HW_TAGS, kasan_report() accesses the metadata only when addr_has_metadata() succeeds. Add a comment to make sure that the preconditions to the function are explicitly clarified. Cc: Andrey Ryabinin Cc: Alexander Potapenko Cc: Dmitry Vyukov Cc: Leon Romanovsky Cc

[PATCH v4 1/3] arm64: Improve kernel address detection of __is_lm_address()

2021-01-22 Thread Vincenzo Frascino
Currently, the __is_lm_address() check just masks out the top 12 bits of the address, but if they are 0, it still yields a true result. This has as a side effect that virt_addr_valid() returns true even for invalid virtual addresses (e.g. 0x0). Improve the detection checking that it's actually a k

[PATCH v5 03/18] mm/filemap: Convert filemap_get_pages to take a pagevec

2021-01-22 Thread Matthew Wilcox (Oracle)
Using a pagevec lets us keep the pages and the number of pages together which simplifies a lot of the calling conventions. Signed-off-by: Matthew Wilcox (Oracle) Reviewed-by: Christoph Hellwig --- mm/filemap.c | 82 1 file changed, 38 inserti

Re: [PATCH] arm64: kprobes: Fix Uexpected kernel BRK exception at EL1

2021-01-22 Thread Will Deacon
On Fri, Jan 22, 2021 at 11:09:09AM +, Qais Yousef wrote: > I was hitting the below panic continuously when attaching kprobes to > scheduler functions [...] > diff --git a/arch/arm64/kernel/probes/kprobes.c > b/arch/arm64/kernel/probes/kprobes.c > index 89c64ada8732..66aac2881ba8 100644 > ---

[PATCH v4 3/3] kasan: Make addr_has_metadata() return true for valid addresses

2021-01-22 Thread Vincenzo Frascino
Currently, addr_has_metadata() returns true for every address. An invalid address (e.g. NULL) passed to the function when, KASAN_HW_TAGS is enabled, leads to a kernel panic. Make addr_has_metadata() return true for valid addresses only. Note: KASAN_HW_TAGS support for vmalloc will be added with a

[PATCH v3 1/2] lib/cmdline: add new function get_option_ull()

2021-01-22 Thread Wesley Zhao
In the future we would pass the unsigned long long parameter like(0x123456781234) in cmdline on the 64bit platform, so add a new option parse function get_option_ull() Signed-off-by: Wesley Zhao --- include/linux/kernel.h | 2 ++ lib/cmdline.c | 94 +

[PATCH v2 02/12] iio: buffer: add back-ref from iio_buffer to iio_dev

2021-01-22 Thread Alexandru Ardelean
An IIO device will have multiple buffers, but it shouldn't be allowed that an IIO buffer should belong to more than 1 IIO device. Once things get moved more from IIO device to the IIO buffer, and an IIO device will be able to have more than 1 buffer attached, there will be a need for a back-ref to

[PATCH v2 01/12] iio: core: register chardev only if needed

2021-01-22 Thread Alexandru Ardelean
We only need a chardev if we need to support buffers and/or events. With this change, a chardev will be created only if an IIO buffer is attached OR an event_interface is configured. Otherwise, no chardev will be created, and the IIO device will get registered with the 'device_add()' call. Quite

[PATCH v2 00/12] iio: core,buffer: add support for multiple IIO buffers per IIO device

2021-01-22 Thread Alexandru Ardelean
Continuing from: https://lore.kernel.org/linux-iio/20201117162340.43924-1-alexandru.ardel...@analog.com/ Changelog v1 -> v2: * 'iio: buffer: rework buffer & scan_elements dir creation' add more doc-strings detailing the reasoning for this change * 'iio: buffer: re-route scan_elements via it's

Re: [PATCH 2/2] media: dvb-usb: Fix use-after-free access

2021-01-22 Thread Robert Foss
Hey Takashi, This patch is generating a checkpatch warning, but I think it is spurious and can be ignored. Other than that, this looks good to me. Reviewed-by: Robert Foss On Wed, 20 Jan 2021 at 12:51, Takashi Iwai wrote: > > dvb_usb_device_init() copies the properties to the own data, so that

Re: rcu-torture: Internal error: Oops: 96000006

2021-01-22 Thread Naresh Kamboju
On Fri, 22 Jan 2021 at 21:07, Paul E. McKenney wrote: > > On Fri, Jan 22, 2021 at 03:21:07PM +0530, Naresh Kamboju wrote: > > On Fri, 22 Jan 2021 at 03:13, Paul E. McKenney wrote: > > > > > > On Thu, Jan 21, 2021 at 09:31:10PM +, Will Deacon wrote: > > > > On Thu, Jan 21, 2021 at 10:55:21AM -

[net-next PATCH v4 08/15] of: mdio: Refactor of_mdiobus_register_phy()

2021-01-22 Thread Calvin Johnson
Refactor of_mdiobus_register_phy() to use fwnode_mdiobus_register_phy(). Signed-off-by: Calvin Johnson --- Changes in v4: None Changes in v3: None Changes in v2: None drivers/net/mdio/of_mdio.c | 40 +- 1 file changed, 1 insertion(+), 39 deletions(-) diff -

Re: [RFC PATCH 1/2] soundwire: add support for static port mapping

2021-01-22 Thread Srinivas Kandagatla
On 22/01/2021 15:32, Pierre-Louis Bossart wrote: Are you suggesting that we have dailink for each usecase like: "headset capture" "Analog MIC1 capture" "Analog MIC2 Capture" ... "Analog MIC4 Capture" ... "DMIC0 capture" "DMIC1 Capture" "DMIC2 Capture" ... "DMIC7 Capture" .. "Headset Pl

[PATCH] sched/fair: Rate limit calls to update_blocked_averages() for NOHZ

2021-01-22 Thread Joel Fernandes (Google)
On an octacore ARM64 device running ChromeOS Linux kernel v5.4, I found that there are a lot of calls to update_blocked_averages(). This causes the schedule loop to slow down to taking upto 500 micro seconds at times (due to newidle load balance). I have also seen this manifest in the periodic bala

[net-next PATCH v4 11/15] net: mdiobus: Introduce fwnode_mdiobus_register()

2021-01-22 Thread Calvin Johnson
Introduce fwnode_mdiobus_register() to register PHYs on the mdiobus. If the fwnode is DT node, then call of_mdiobus_register(). If it is an ACPI node, then call acpi_mdiobus_register(). Signed-off-by: Calvin Johnson --- Changes in v4: - Remove redundant else from fwnode_mdiobus_register() Chan

[net-next PATCH v4 12/15] net/fsl: Use fwnode_mdiobus_register()

2021-01-22 Thread Calvin Johnson
fwnode_mdiobus_register() internally takes care of both DT and ACPI cases to register mdiobus. Replace existing of_mdiobus_register() with fwnode_mdiobus_register(). Note: For both ACPI and DT cases, endianness of MDIO controller need to be specified using "little-endian" property. Signed-off-by:

Re: [PATCH v2] PM / clk: make PM clock layer compatible with clocks that must sleep

2021-01-22 Thread Naresh Kamboju
On Fri, 22 Jan 2021 at 20:39, Rafael J. Wysocki wrote: > > On Thu, Jan 21, 2021 at 8:01 PM Rafael J. Wysocki wrote: > > > > On Thu, Jan 21, 2021 at 6:23 PM Nicolas Pitre wrote: > > > > > > The clock API splits its interface into sleepable ant atomic contexts: > > > > > > - clk_prepare/clk_unprep

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