Re: [PATCH v2] perf tools: Resolve symbols against debug file first

2021-02-17 Thread Arnaldo Carvalho de Melo
Em Wed, Feb 17, 2021 at 01:21:25PM +0100, Jiri Slaby escreveu: > With LTO, there are symbols like these: > /usr/lib/debug/usr/lib64/libantlr4-runtime.so.4.8-4.8-1.4.x86_64.debug > 10305: 00955fa4 0 NOTYPE LOCAL DEFAULT 29 > Predicate.cpp.2bc410e7 > > This comes from a

Re: [PATCH 3/3] tools/lib/fs: Cache cgroupfs mount point

2021-02-17 Thread Arnaldo Carvalho de Melo
Em Fri, Jan 08, 2021 at 02:51:44PM +0900, Namhyung Kim escreveu: > On Wed, Jan 6, 2021 at 10:33 AM Namhyung Kim wrote: > > > > Hi Arnaldo, > > > > On Tue, Dec 29, 2020 at 8:51 PM Arnaldo Carvalho de Melo > > wrote: > > > > > > Em Wed, Dec 16, 2020 at 06:05:56PM +0900, Namhyung Kim escreveu: > >

Re: [PATCH RFC 1/4] firmware: Add the support for ZSTD-compressed firmware files

2021-02-17 Thread Takashi Iwai
On Wed, 17 Feb 2021 14:16:44 +0100, Luis Chamberlain wrote: > > On Wed, Jan 27, 2021 at 04:49:36PM +0100, Takashi Iwai wrote: > > Due to the popular demands on ZSTD, here is a patch to add a support > > of ZSTD-compressed firmware files via the direct firmware loader. > > It's just like

Re: [PATCH V0 1/6] dt-bindings: Added the yaml bindings for DCC

2021-02-17 Thread schowdhu
On 2021-02-17 16:32, Vinod Koul wrote: On 17-02-21, 12:18, Souradeep Chowdhury wrote: Documentation for Data Capture and Compare(DCC) device tree bindings in yaml format. Signed-off-by: Souradeep Chowdhury --- .../devicetree/bindings/arm/msm/qcom,dcc.yaml | 49 ++

Re: [PATCH 06/16] media: i2c: rdacm20: Re-work ov10635 reset

2021-02-17 Thread Kieran Bingham
On 16/02/2021 17:41, Jacopo Mondi wrote: > The OV10635 image sensor embedded in the camera module is currently > reset after the MAX9271 initialization with two long delays that were > most probably not correctly characterized. > > Re-work the image sensor reset procedure by holding the chip in

Re: [RFT][PATCH v1] cpufreq: ACPI: Set cpuinfo.max_freq directly if max boost is known

2021-02-17 Thread Michael Larabel
On 2/15/21 7:49 PM, Michael Larabel wrote: On 2/15/21 1:24 PM, Rafael J. Wysocki wrote: From: Rafael J. Wysocki Commit 3c55e94c0ade ("cpufreq: ACPI: Extend frequency tables to cover boost frequencies") attempted to address a performance issue involving acpi-cpufreq, the schedutil governor

Re: [PATCH RFC 1/4] firmware: Add the support for ZSTD-compressed firmware files

2021-02-17 Thread Luis Chamberlain
On Wed, Jan 27, 2021 at 04:49:36PM +0100, Takashi Iwai wrote: > Due to the popular demands on ZSTD, here is a patch to add a support > of ZSTD-compressed firmware files via the direct firmware loader. > It's just like XZ-compressed file support, providing a decompressor > with ZSTD. Since ZSTD

Re: [PATCH 09/16] media: i2c: rdacm21: Re-work OV10640 initialization

2021-02-17 Thread Kieran Bingham
Hi Jacopo, On 16/02/2021 17:41, Jacopo Mondi wrote: > The OV10640 image sensor reset and powerdown on signals are controlled > by the embedded OV490 ISP. The current reset procedure does not respect > the 1 millisecond power-up delay and releases the reset signal before > the powerdown one. > >

Re: [PATCH RESEND V12 5/8] fuse: Introduce synchronous read and write for passthrough

2021-02-17 Thread Miklos Szeredi
On Mon, Jan 25, 2021 at 4:31 PM Alessio Balsini wrote: > > All the read and write operations performed on fuse_files which have the > passthrough feature enabled are forwarded to the associated lower file > system file via VFS. > > Sending the request directly to the lower file system avoids the

RE: [PATCH v10 10/16] KVM: x86: Introduce KVM_GET_SHARED_PAGES_LIST ioctl

2021-02-17 Thread Kalra, Ashish
[AMD Public Use] -Original Message- From: Sean Christopherson Sent: Tuesday, February 16, 2021 7:03 PM To: Kalra, Ashish Cc: pbonz...@redhat.com; t...@linutronix.de; mi...@redhat.com; h...@zytor.com; rkrc...@redhat.com; j...@8bytes.org; b...@suse.de; Lendacky, Thomas ;

Re: [PATCH 1/2] mm: Make alloc_contig_range handle free hugetlb pages

2021-02-17 Thread Michal Hocko
On Wed 17-02-21 14:53:37, David Hildenbrand wrote: > On 17.02.21 14:50, Michal Hocko wrote: [...] > > Do we have any real life examples? Or does this fall more into, let's > > optimize an existing implementation category. > > > > It's a big TODO item I have on my list and I am happy that Oscar

[PATCH v8 6/6] MAINTAINERS: add MT7621 CLOCK maintainer

2021-02-17 Thread Sergio Paracuellos
Adding myself as maintainer for mt7621 clock driver. Signed-off-by: Sergio Paracuellos --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 809a68af5efd..be5ada6b4309 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11288,6 +11288,12 @@ L:

[PATCH v8 4/6] staging: mt7621-dts: make use of new 'mt7621-clk'

2021-02-17 Thread Sergio Paracuellos
Clocks for SoC mt7621 have been properly integrated so there is no need to declare fixed clocks at all in the device tree. Remove all of them, add new device tree nodes for mt7621-clk and update the rest of the nodes to use them. Acked-by: Greg Kroah-Hartman Signed-off-by: Sergio Paracuellos

[PATCH v8 5/6] staging: mt7621-dts: use valid vendor 'mediatek' instead of invalid 'mtk'

2021-02-17 Thread Sergio Paracuellos
Vendor listed for mediatek in kernel vendor file 'vendor-prefixes.yaml' contains 'mediatek' as a valid vendor string. Some nodes in the device tree are using an invalid vendor string vfor 'mtk' instead. Fix all of them in dts file. Update also ralink mt7621 related code to properly match new

Re: [PATCH 1/2] mm: Make alloc_contig_range handle free hugetlb pages

2021-02-17 Thread David Hildenbrand
On 17.02.21 14:59, Michal Hocko wrote: On Wed 17-02-21 14:53:37, David Hildenbrand wrote: On 17.02.21 14:50, Michal Hocko wrote: [...] Do we have any real life examples? Or does this fall more into, let's optimize an existing implementation category. It's a big TODO item I have on my list

[PATCH v8 0/6] MIPS: ralink: add CPU clock detection and clock driver for MT7621

2021-02-17 Thread Sergio Paracuellos
This patchset ports CPU clock detection for MT7621 from OpenWrt and adds a complete clock plan for the mt7621 SOC. The documentation for this SOC only talks about two registers regarding to the clocks: * SYSC_REG_CPLL_CLKCFG0 - provides some information about boostrapped refclock. PLL and

[PATCH v8 3/6] clk: ralink: add clock driver for mt7621 SoC

2021-02-17 Thread Sergio Paracuellos
The documentation for this SOC only talks about two registers regarding to the clocks: * SYSC_REG_CPLL_CLKCFG0 - provides some information about boostrapped refclock. PLL and dividers used for CPU and some sort of BUS. * SYSC_REG_CPLL_CLKCFG1 - a banch of gates to enable/disable clocks for all or

[PATCH v8 2/6] dt: bindings: add mt7621-clk device tree binding documentation

2021-02-17 Thread Sergio Paracuellos
Adds device tree binding documentation for clocks in the MT7621 SOC. Signed-off-by: Sergio Paracuellos --- .../bindings/clock/mediatek,mt7621-clk.yaml | 66 +++ 1 file changed, 66 insertions(+) create mode 100644

Re: [PATCH 6/8] arm64: dts: imx8mm-nitrogen-r2: add flexspi

2021-02-17 Thread Krzysztof Kozlowski
On Tue, Feb 16, 2021 at 12:19:41AM +0100, Adrien Grassein wrote: > Add flexspi description an pinmuxing. FlexSPI, pin muxing (with a space). Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof

Re: output: was: Re: [PATCH v4] printk: Userspace format enumeration support

2021-02-17 Thread Petr Mladek
On Tue 2021-02-16 16:52:39, Chris Down wrote: > Hey Petr, > > Petr Mladek writes: > > This produces something like: > > > > 3Warning: unable to open an initial console. > > 3Failed to execute %s (error %d) > > 6Kernel memory protection disabled. > > 3Starting init: %s exists but couldn't execute

[PATCH] iommu/amd: Fix sleeping in atomic in increase_address_space()

2021-02-17 Thread Andrey Ryabinin
increase_address_space() calls get_zeroed_page(gfp) under spin_lock with disabled interrupts. gfp flags passed to increase_address_space() may allow sleeping, so it comes to this: BUG: sleeping function called from invalid context at mm/page_alloc.c:4342 in_atomic(): 1, irqs_disabled(): 1, pid:

Re: [PATCH 8/8] arm64: defconfig: Enable wm8960 audio driver.

2021-02-17 Thread Krzysztof Kozlowski
On Tue, Feb 16, 2021 at 12:19:43AM +0100, Adrien Grassein wrote: > This driver is used by the Nitrogen8m Mini SBC. > > Signed-off-by: Adrien Grassein > --- > arch/arm64/configs/defconfig | 1 + > 1 file changed, 1 insertion(+) > Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof

[PATCH] irqchip: Do not blindly select CONFIG_GENERIC_IRQ_MULTI_HANDLER

2021-02-17 Thread Marc Zyngier
Implementing CONFIG_GENERIC_IRQ_MULTI_HANDLER is a decision that is made at the architecture level, and shouldn't involve the irqchip at all (we even provide a fallback helper when the option isn't selected). Drop all instances of such selection from non-arch code. Signed-off-by: Marc Zyngier

[PATCH] tty: fix when iov_iter_count() returns 0 in tty_write()

2021-02-17 Thread Sabyrzhan Tasbolatov
syzbot found WARNING in iov_iter_revert[1] when iov_iter_count() returns 0, therefore INT_MAX is passed to iov_iter_revert() causing > MAX_RW_COUNT warning. static inline ssize_t do_tty_write() { .. size_t count = iov_iter_count(from); .. size_t size = count;

Re: Local execution of ipi_sync_rq_state() on sync_runqueues_membarrier_state()

2021-02-17 Thread Mathieu Desnoyers
- On Feb 16, 2021, at 4:35 PM, Nadav Amit nadav.a...@gmail.com wrote: > Hello Mathieu, > > While trying to find some unrelated by, something in > sync_runqueues_membarrier_state() caught my eye: > > > static int sync_runqueues_membarrier_state(struct mm_struct *mm) > { >if

Re: [PATCH] mhi_bus: core: Return EBUSY if MHI ring is full

2021-02-17 Thread Loic Poulain
On Tue, 16 Feb 2021 at 19:50, Jeffrey Hugo wrote: > > From: Fan Wu > > Currently ENOMEM is returned when MHI ring is full. This error code is > very misleading. Change to EBUSY instead. Well, there is no space left in the ring, so it's no so misleading. Regards, Loic

Re: [PATCH v2] IMA: support for duplicate data measurement

2021-02-17 Thread Mimi Zohar
Hi Tushar, The Subject line could be improved. Perhaps something like - "IMA: support for duplicate measurement records" On Tue, 2021-02-16 at 18:46 -0800, Tushar Sugandhi wrote: > IMA does not measure duplicate data since TPM extend is a very expensive > operation. However, in some cases, the

Re: [PATCH] staging: gasket Fix comparision with Null

2021-02-17 Thread Greg KH
On Wed, Feb 17, 2021 at 06:58:16PM +0530, mayanksu...@live.com wrote: > From: Mayank Suman > > The change was suggested by checkpatch.pl. What change? Please read the section entitled "The canonical patch format" in the kernel file, Documentation/SubmittingPatches for a description of how to

Re: [PATCH] thermal: cpufreq_cooling: freq_qos_update_request() returns < 0 on error

2021-02-17 Thread Thara Gopinath
On 2/17/21 12:48 AM, Viresh Kumar wrote: freq_qos_update_request() returns 1 if the effective constraint value has changed, 0 if the effective constraint value has not changed, or a negative error code on failures. The frequency constraints for CPUs can be set by different parts of the

Re: code style: Re: [PATCH v4] printk: Userspace format enumeration support

2021-02-17 Thread Johannes Weiner
On Wed, Feb 17, 2021 at 04:45:51PM +0100, Petr Mladek wrote: > On Tue 2021-02-16 21:05:48, Chris Down wrote: > > Johannes Weiner writes: > > > On Tue, Feb 16, 2021 at 05:27:08PM +, Chris Down wrote: > > > > Petr Mladek writes: > > > > > I wonder if we could find a better name for the configure

Re: [PATCH] ARM: dts: turris-omnia: fix hardware buffer management

2021-02-17 Thread Marek Behún
On Wed, 17 Feb 2021 15:30:38 + Rui Salvaterra wrote: > Hardware buffer management has never worked on the Turris Omnia, as the > required MBus window hadn't been reserved. Fix thusly. > > Fixes: 018b88eee1a2 ("ARM: dts: turris-omnia: enable HW buffer management") > > Signed-off-by: Rui

Re: [PATCH V3 1/2] topology: Allow multiple entities to provide sched_freq_tick() callback

2021-02-17 Thread Viresh Kumar
On 17-02-21, 11:30, Ionela Voinescu wrote: > The problem is not topology_scale_freq_invariant() but whether a scale > factor is set for some CPUs. > > Scenario (test system above): > - "AMUs" are only supported for [1-2], > - cpufreq_supports_freq_invariance() -> false > > What should happen:

[PATCH v3 01/15] dt-bindings: soc: bcm: bcm2835-pm: Convert bindings to DT schema

2021-02-17 Thread Nicolas Saenz Julienne
This converts the brcm,bcm2835-pm bindings from text to proper schema. Signed-off-by: Nicolas Saenz Julienne --- Changes since v2: - Slightly change things to make it less dependent on next commits .../bindings/soc/bcm/brcm,bcm2835-pm.txt | 46 ---

[PATCH] ARM: dts: at91-sama5d27_som1: fix phy address to 7

2021-02-17 Thread nicolas.ferre
From: Claudiu Beznea Fix the phy address to 7 for Ethernet PHY on SAMA5D27 SOM1. No connection established if phy address 0 is used. The board uses the 24 pins version of the KSZ8081RNA part, KSZ8081RNA pin 16 REFCLK as PHYAD bit [2] has weak internal pull-down. But at reset, connected to PD09

[PATCH v3 02/15] dt-bindings: soc: bcm: bcm2835-pm: Introduce reg-names

2021-02-17 Thread Nicolas Saenz Julienne
Anticipating the introduction of BCM2711, of which we'll need to support its new RPiVid ASB, introduce reg-names into bcm2835-pm's binding. This will help to have a consistent mapping between resources and their meaning. Signed-off-by: Nicolas Saenz Julienne ---

[PATCH] workqueue: Remove rcu_read_lock/unlock() in workqueue_congested()

2021-02-17 Thread qiang . zhang
From: Zqiang The RCU read critical area already by preempt_disable/enable() (equivalent to rcu_read_lock_sched/unlock_sched()) mark, so remove rcu_read_lock/unlock(). Signed-off-by: Zqiang --- kernel/workqueue.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/workqueue.c

[PATCH v4] perf tools: Fix arm64 build error with gcc-11

2021-02-17 Thread Jianlin Lv
gcc version: 11.0.0 20210208 (experimental) (GCC) Following build error on arm64: ... In function ‘printf’, inlined from ‘regs_dump__printf’ at util/session.c:1141:3, inlined from ‘regs__printf’ at util/session.c:1169:2: /usr/include/aarch64-linux-gnu/bits/stdio2.h:107:10: \ error:

[RESEND PATCH] MAINTAINERS: update thermal CPU cooling section

2021-02-17 Thread Lukasz Luba
Update maintainers responsible for CPU cooling on Arm side. Signed-off-by: Lukasz Luba --- Hi Daniel, Please ignore the previous email and that this change with 'R'. Javi will ack it later. Regards, Lukasz MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

general protection fault in nl802154_del_llsec_devkey

2021-02-17 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:57baf8cc net: axienet: Handle deferred probe on clock prop.. git tree: net console output: https://syzkaller.appspot.com/x/log.txt?x=11f4b614d0 kernel config: https://syzkaller.appspot.com/x/.config?x=8cb23303ddb9411f

[PATCH v2 04/11] drm/qxl: fix lockdep issue in qxl_alloc_release_reserved

2021-02-17 Thread Gerd Hoffmann
Call qxl_bo_unpin (which does a reservation) without holding the release_mutex lock. Fixes lockdep (correctly) warning on a possible deadlock. Fixes: 65ffea3c6e73 ("drm/qxl: unpin release objects") Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_release.c | 13 ++--- 1 file

[PATCH v2 01/11] drm/qxl: properly handle device init failures

2021-02-17 Thread Gerd Hoffmann
Specifically do not try release resources which where not allocated in the first place. Cc: Tong Zhang Tested-by: Tong Zhang Signed-off-by: Gerd Hoffmann Acked-by: Thomas Zimmermann --- drivers/gpu/drm/qxl/qxl_display.c | 3 +++ drivers/gpu/drm/qxl/qxl_kms.c | 4 2 files changed, 7

[PATCH v2 02/11] drm/qxl: more fence wait rework

2021-02-17 Thread Gerd Hoffmann
Move qxl_io_notify_oom() call into wait condition. That way the driver will call it again if one call wasn't enough. Also allows to remove the extra dma_fence_is_signaled() check and the goto. Fixes: 5a838e5d5825 ("drm/qxl: simplify qxl_fence_wait") Signed-off-by: Gerd Hoffmann ---

Re: [RFC PATCH] mm, oom: introduce vm.sacrifice_hugepage_on_oom

2021-02-17 Thread Michal Hocko
On Wed 17-02-21 10:42:24, Eiichi Tsukata wrote: > Hi All, > > Firstly, thank you for your careful review and attention to my patch > (and apologies for top-posting!). Let me first explain why our use > case requires hugetlb over THP and then elaborate on the difficulty we > have to maintain the

Re: [PATCH v1 1/3] string: Consolidate yesno() helpers under string.h hood

2021-02-17 Thread Petr Mladek
On Mon 2021-02-15 16:39:26, Andy Shevchenko wrote: > +Cc: Sakari and printk people > > On Mon, Feb 15, 2021 at 4:28 PM Christian König > wrote: > > Am 15.02.21 um 15:21 schrieb Andy Shevchenko: > > > We have already few similar implementation and a lot of code that can > > > benefit > > > of

Re: [PATCH V0 2/6] arm64: dts: qcom: sm8150: Add Data Capture and Compare(DCC) support node

2021-02-17 Thread schowdhu
Hi, Please find the replies inline. On 2021-02-17 16:33, Vinod Koul wrote: On 17-02-21, 12:18, Souradeep Chowdhury wrote: Add the DCC(Data Capture and Compare) device tree node entry along with the addresses for register regions. This should be last patch.. Ack Signed-off-by:

Re: [PATCH v2] gpio: pca953x: add support for open drain pins on PCAL6524

2021-02-17 Thread Bedel, Alban
On Tue, 2021-02-16 at 19:50 +0200, Andy Shevchenko wrote: > On Tue, Feb 16, 2021 at 6:37 PM Bedel, Alban > wrote: > > On Mon, 2021-02-15 at 14:53 +0200, Andy Shevchenko wrote: > > > Hint: don't forget to include reviewers from previous version > > > > I added you to the CC list for the new

[PATCH v4 02/16] rpmsg: move RPMSG_ADDR_ANY in user API

2021-02-17 Thread Arnaud Pouliquen
As the RPMSG_ADDR_ANY is a valid src or dst address that can be set by user applications, migrate its definition in user API. Signed-off-by: Arnaud Pouliquen --- include/linux/rpmsg.h | 3 +-- include/uapi/linux/rpmsg.h | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH v4 05/16] rpmsg: char: dissociate the control device from the rpmsg class

2021-02-17 Thread Arnaud Pouliquen
The RPMsg control device is a RPMsg device, it is already referenced in the RPMsg bus. There is only an interest to reference the ept char devices in the rpmsg class. This patch prepares the code split of the control and end point devices in two separate files. Signed-off-by: Arnaud Pouliquen

[PATCH v4 00/16] introduce a generic IOCTL interface for RPMsg channels management

2021-02-17 Thread Arnaud Pouliquen
This series restructures the RPMsg char driver to decorrelate the control part and to create a generic RPMsg ioctl interface compatible with other RPMsg services. The V4 fixes compilation issue reported by the kernel test robot The V3 is based on the guideline proposed by Mathieu Poirier to

[PATCH v4 10/16] rpmsg: char: use sendto to specify the message destination address

2021-02-17 Thread Arnaud Pouliquen
When the endpoint device is created by the application a destination address as been specified in the rpmsg_channel_info structure. Send the message to this address instead of the default one. Signed-off-by: Arnaud Pouliquen --- drivers/rpmsg/rpmsg_char.c | 4 ++-- 1 file changed, 2

[PATCH v4 13/16] rpmsg: char: introduce __rpmsg_chrdev_create_eptdev function

2021-02-17 Thread Arnaud Pouliquen
Introduce the __rpmsg_chrdev_create_eptdev internal function that returns the rpmsg_eptdev context structure. This patch prepares the introduction of a RPMsg device for the char device. the RPMsg device will need a reference to the context. Signed-off-by: Arnaud Pouliquen ---

[PATCH v4 16/16] rpmsg: char: return an error if device already open

2021-02-17 Thread Arnaud Pouliquen
The rpmsg_create_ept function is invoked when the device is opened. As only one endpoint must be created per device. It is not possible to open the same device twice. But there is nothing to prevent multi open. Return -EBUSY when device is already opened to have a generic error instead of relying

[PATCH v4 15/16] rpmsg: char: no dynamic endpoint management for the default one

2021-02-17 Thread Arnaud Pouliquen
Do not dynamically manage the default endpoint. The ept address must not change. This update is needed to manage the RPMSG_CREATE_DEV_IOCTL. In this case a default endpoint is used and it's address must not change or been reused by another service. Signed-off-by: Arnaud Pouliquen ---

Re: [PATCH 07/16] media: i2c: rdacm2x: Fix wake up delay

2021-02-17 Thread Kieran Bingham
Hi Jacopo, On 16/02/2021 17:41, Jacopo Mondi wrote: > The MAX9271 chip manual prescribes a delay of 5 milliseconds > after the chip exists from low power state. > > Adjust the required delay in the rdacm21 camera module and add it > to the rdacm20 that currently doesn't implement one. > This

Re: [PATCH v3 3/4] i2c: designware: Use the correct name of device-managed function

2021-02-17 Thread Andy Shevchenko
On Wed, Feb 17, 2021 at 07:40:14PM +0800, Dejin Zheng wrote: > On Tue, Feb 16, 2021 at 06:46:01PM +0100, Krzysztof Wilczyński wrote: ... > > The change simplifies the error handling path, how? A line of two which > > explains how it has been achieved might help should someone reads the > >

[PATCH v8 1/6] dt-bindings: clock: add dt binding header for mt7621 clocks

2021-02-17 Thread Sergio Paracuellos
Adds dt binding header for 'mediatek,mt7621-clk' clocks. Acked-by: Rob Herring Signed-off-by: Sergio Paracuellos --- include/dt-bindings/clock/mt7621-clk.h | 41 ++ 1 file changed, 41 insertions(+) create mode 100644 include/dt-bindings/clock/mt7621-clk.h diff --git

Re: [PATCH v5 4/9] cxl/mem: Add basic IOCTL interface

2021-02-17 Thread Jonathan Cameron
On Tue, 16 Feb 2021 20:09:53 -0800 Ben Widawsky wrote: > Add a straightforward IOCTL that provides a mechanism for userspace to > query the supported memory device commands. CXL commands as they appear > to userspace are described as part of the UAPI kerneldoc. The command > list returned via

Re: code style: Re: [PATCH v4] printk: Userspace format enumeration support

2021-02-17 Thread Petr Mladek
On Tue 2021-02-16 21:05:48, Chris Down wrote: > Johannes Weiner writes: > > On Tue, Feb 16, 2021 at 05:27:08PM +, Chris Down wrote: > > > Petr Mladek writes: > > > > I wonder if we could find a better name for the configure switch. > > > > I have troubles to imagine what printk enumeration

Re: [PATCH] ARM: dts: turris-omnia: fix hardware buffer management

2021-02-17 Thread Rui Salvaterra
Hi, Marek, On Wed, 17 Feb 2021 at 15:42, Marek Behún wrote: > > /o\ How did I manage to miss this? Heh… it happens. :) > Please wait a few minutes I am just going to do a fast compile and test. No worries. I'm going to cook a backport for OpenWrt. Cheers, Rui

Re: [PATCH RFC v3 2/3] docs: add documentation for checkpatch

2021-02-17 Thread Dwaipayan Ray
On Wed, Feb 17, 2021 at 4:07 PM Joe Perches wrote: > > On Tue, 2021-02-16 at 19:48 +0530, Dwaipayan Ray wrote: > > On Sun, Feb 14, 2021 at 10:27 PM Joe Perches wrote: > > > On Sat, 2021-02-13 at 18:45 +0530, Dwaipayan Ray wrote: > > > > Add documentation for kernel script checkpatch.pl. > > > >

Re: code style: Re: [PATCH v4] printk: Userspace format enumeration support

2021-02-17 Thread Chris Down
Petr Mladek writes: What about storing the pointer to struct pf_object into struct printk_fmt_sec *ps into the s->file->f_inode->i_private? Then we would not need any global list/table at all. Unless I'm misreading the debugfs code, I think the following is possible: open(f);

Re: [PATCH net-next v4 6/8] net: mscc: ocelot: Add support for MRP

2021-02-17 Thread Horatiu Vultur
The 02/17/2021 11:14, Vladimir Oltean wrote: > > On Tue, Feb 16, 2021 at 10:42:03PM +0100, Horatiu Vultur wrote: > > Add basic support for MRP. The HW will just trap all MRP frames on the > > ring ports to CPU and allow the SW to process them. In this way it is > > possible to for this node to

[PATCH v3] bus: mhi: core: Return EAGAIN if MHI ring is full

2021-02-17 Thread Jeffrey Hugo
From: Fan Wu Currently ENOMEM is returned when MHI ring is full. This error code is very misleading. Change to EAGAIN instead. Signed-off-by: Fan Wu Signed-off-by: Jeffrey Hugo --- v3: Fix subject v2: Change from EBUSY to EAGAIN drivers/bus/mhi/core/main.c | 2 +- 1 file changed, 1

Re: [PATCH] ARM: dts: turris-omnia: fix hardware buffer management

2021-02-17 Thread Marek Behún
On Wed, 17 Feb 2021 17:22:17 +0100 Andrew Lunn wrote: > On Wed, Feb 17, 2021 at 03:30:38PM +, Rui Salvaterra wrote: > > Hardware buffer management has never worked on the Turris Omnia, as the > > required MBus window hadn't been reserved. Fix thusly. > > Hi Rui > > I don't know all the

Re: [RFC PATCH v2 00/26] KVM/arm64: A stage 2 for the host

2021-02-17 Thread Mate Toth-Pal
Hi Quentin, On 2021-01-08 13:14, Quentin Perret wrote: Hi all, This is the v2 of the series previously posted here: https://lore.kernel.org/kvmarm/20201117181607.1761516-1-qper...@google.com/ This basically allows us to wrap the host with a stage 2 when running in nVHE, hence paving the

Re: code style: Re: [PATCH v4] printk: Userspace format enumeration support

2021-02-17 Thread Chris Down
Chris Down writes: open(f); debugfs_file_get(f); fops->open(); inode->private = ps; debugfs_file_put(f); remove_printk_fmt_sec(); /* kfree ps */ read(f); debugfs_file_get(f); fops->read(); ps = inode->private; /* invalid */ debugfs_file_put(f); Er, sorry, inode->private is

Re: [PATCH] mm: be more verbose for alloc_contig_range faliures

2021-02-17 Thread David Hildenbrand
On 17.02.21 17:36, Minchan Kim wrote: alloc_contig_range is usually used on cma area or movable zone. It's critical if the page migration fails on those areas so dump more debugging message like memory_hotplug unless user specifiy __GFP_NOWARN. Signed-off-by: Minchan Kim --- mm/page_alloc.c

[PATCH] cert: Add kconfig dependency for validate_trust

2021-02-17 Thread Eric Snowberg
The kernel test robot reports when building with Kconfig CONFIG_INTEGRITY_PLATFORM_KEYRING defined and CONFIG_SYSTEM_DATA_VERIFICATION undefined: ld.lld: error: undefined symbol: pkcs7_validate_trust referenced by blacklist.c:128 (certs/blacklist.c:128)

Re: [PATCH v1 1/3] string: Consolidate yesno() helpers under string.h hood

2021-02-17 Thread Jani Nikula
On Wed, 17 Feb 2021, Petr Mladek wrote: > On Mon 2021-02-15 16:39:26, Andy Shevchenko wrote: >> +Cc: Sakari and printk people >> >> On Mon, Feb 15, 2021 at 4:28 PM Christian König >> wrote: >> > Am 15.02.21 um 15:21 schrieb Andy Shevchenko: >> > > We have already few similar implementation and

Re: [PATCH 2/2 v1] vdpa/mlx5: Enable user to add/delete vdpa device

2021-02-17 Thread Michael S. Tsirkin
On Wed, Feb 17, 2021 at 01:31:36PM +0200, Eli Cohen wrote: > Allow to control vdpa device creation and destruction using the vdpa > management tool. > > Examples: > 1. List the management devices > $ vdpa mgmtdev show > pci/:3b:00.1: > supported_classes net > > 2. Create vdpa instance > $

[PATCH 1/4] HID: multitouch: require Finger field to mark Win8 reports as MT

2021-02-17 Thread Ahelenia Ziemiańska
This effectively changes collection_is_mt from contact ID in report->field to (device is Win8 => collection is finger) && contact ID in report->field Some devices erroneously report Pen for fingers, and Win8 stylus-on-touchscreen devices report contact ID, but mark the accompanying

[PATCH 4/4] HID: input: work around Win8 stylus-on-touchscreen reporting

2021-02-17 Thread Ahelenia Ziemiańska
With this, these devices now behave as tablets as expected by userspace Signed-off-by: Ahelenia Ziemiańska --- drivers/hid/hid-input.c | 41 + 1 file changed, 41 insertions(+) diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index

[PATCH 2/4] HID: multitouch: set Stylus suffix for Stylus-application devices, too

2021-02-17 Thread Ahelenia Ziemiańska
This re-adds the suffix to Win8 stylus-on-touchscreen devices, now that they aren't erroneously marked as MT Signed-off-by: Ahelenia Ziemiańska --- drivers/hid/hid-multitouch.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/hid/hid-multitouch.c

[PATCH 3/4] HID: input: replace outdated HID numbers+comments with macros

2021-02-17 Thread Ahelenia Ziemiańska
These were untouched since 2.3.99-pre3, and the explanatory comment for HID_DG_TIPPRESSURE is TipPressure on other places Signed-off-by: Ahelenia Ziemiańska --- drivers/hid/hid-input.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/hid/hid-input.c

[PATCH 0/4] Stylus-on-touchscreen device support

2021-02-17 Thread наб
This patchset adds support for stylus-on-touchscreen devices as found on the OneMix 3 Pro and Dell Inspiron 15 7000 2-in-1 (7591), among others; with it, they properly behave like a drawing tablet. Patches 2 and 4 funxionally depend on patch 1. Patch 4 needs patch 3 to apply. The output of this

Re: [PATCH v2 2/2] drm/bridge: Introduce LT8912 DSI to HDMI bridge

2021-02-17 Thread Robert Foss
Hey Adrien, Thanks for submitting this! On Mon, 15 Feb 2021 at 00:31, Adrien Grassein wrote: > > Lontium Lt8912 is a DSI to HDMI bridge. > > Signed-off-by: Adrien Grassein > --- > MAINTAINERS | 1 + > drivers/gpu/drm/bridge/Kconfig | 14 + >

[PATCH 00/11] HID: playstation: revert LED class exposure

2021-02-17 Thread Benjamin Tissoires
[sending those patches on behalf of Roderick] There is a current thread on LED LKML which basically means that we have to revert the LED class exposure until things are settled. I am sending here the full series that will end up in linux-next. But with some git magic, the final PR to Linus will

[PATCH 01/11] Revert "HID: playstation: fix unused variable in ps_battery_get_property."

2021-02-17 Thread Benjamin Tissoires
This reverts commit 3847d15b41ce ("HID: playstation: fix unused variable in ps_battery_get_property.") There is currently an ongoing discussion on linux-leds LKML, and so to give us more room, we need to revert those related LEDs patches from linux-next. To have a cleaner merge with the new

[PATCH 06/11] Revert "HID: playstation: add DualSense lightbar support"

2021-02-17 Thread Benjamin Tissoires
From: Roderick Colenbrander This reverts commit ebbe998a4a52 ("HID: playstation: add DualSense lightbar support") There is currently an ongoing discussion on linux-leds LKML, and so to give us more room, we need to revert those related patches from linux-next. This is not a big deal, they are

[PATCH 04/11] Revert "HID: playstation: add DualSense player LEDs support."

2021-02-17 Thread Benjamin Tissoires
From: Roderick Colenbrander This reverts commit c240f0cb88ec ("HID: playstation: add DualSense player LEDs support.") There is currently an ongoing discussion on linux-leds LKML, and so to give us more room, we need to revert those related patches from linux-next. This is not a big deal, they

[PATCH 03/11] Revert "HID: playstation: DualSense set LEDs to default player id."

2021-02-17 Thread Benjamin Tissoires
From: Roderick Colenbrander This reverts commit 05afe02ac24f ("HID: playstation: DualSense set LEDs to default player id.") There is currently an ongoing discussion on linux-leds LKML, and so to give us more room, we need to revert those related patches from linux-next. This is not a big deal,

[PATCH 02/11] Revert "HID: playstation: report DualSense hardware and firmware version."

2021-02-17 Thread Benjamin Tissoires
This reverts commit 1f902f8636e4 ("HID: playstation: report DualSense hardware and firmware version.") There is currently an ongoing discussion on linux-leds LKML, and so to give us more room, we need to revert those related LEDs patches from linux-next. To have a cleaner merge with the new

[PATCH 05/11] Revert "HID: playstation: add microphone mute support for DualSense."

2021-02-17 Thread Benjamin Tissoires
From: Roderick Colenbrander This reverts commit d5f7af85a537 ("HID: playstation: add microphone mute support for DualSense.") There is currently an ongoing discussion on linux-leds LKML, and so to give us more room, we need to revert those related patches from linux-next. This is not a big

Re: [PATCH 6/7] KVM: nVMX: don't load PDPTRS right after nested state set

2021-02-17 Thread Paolo Bonzini
On 17/02/21 18:52, Sean Christopherson wrote: Just move the call to nested_vmx_load_cr3 to nested_get_vmcs12_pages to implement this. I don't love this approach. KVM_SET_NESTED_STATE will now succeed with a bad vmcs12.GUEST_CR3. At a minimum, GUEST_CR3 should be checked in

Re: [PATCH] arm64: Add part number for Arm Cortex-A78

2021-02-17 Thread Neeraj Upadhyay
On 2/17/2021 10:36 PM, Will Deacon wrote: On Wed, Feb 17, 2021 at 10:14:11PM +0530, Neeraj Upadhyay wrote: Add the MIDR part number info for the Arm Cortex-A78. Signed-off-by: Neeraj Upadhyay --- arch/arm64/include/asm/cputype.h | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [PATCH 00/21] [Set 2] Rid W=1 warnings from Clock

2021-02-17 Thread Jakub Kicinski
On Tue, 16 Feb 2021 08:20:46 + Lee Jones wrote: > On Mon, 15 Feb 2021, Jakub Kicinski wrote: > > On Mon, 15 Feb 2021 08:49:52 + Lee Jones wrote: > > > Yes, please share. > > > > https://github.com/kuba-moo/nipa > > Thanks for this. > > Oh, I see. So you conduct tests locally,

Re: [GIT PULL] clang-lto for v5.12-rc1

2021-02-17 Thread Kees Cook
On Tue, Feb 16, 2021 at 10:48:10PM +, Alexander Lobakin wrote: > From: Kees Cook > Date: Tue, 16 Feb 2021 12:34:37 -0800 > > > Hi Linus, > > > > Please pull this Clang Link Time Optimization series for v5.12-rc1. This > > has been in linux-next for the entire last development cycle, and is

Re: [PATCH v5 2/3] mm, slub: don't combine pr_err with INFO

2021-02-17 Thread David Rientjes
On Mon, 15 Feb 2021, Yafang Shao wrote: > It is strange to combine "pr_err" with "INFO", so let's remove the > prefix completely. > This patch is motivated by David's comment[1]. > > - before the patch > [ 8846.517809] INFO: Slab 0xf42a2c60 objects=33 used=3 > fp=0x60d32ca8

Re: [PATCH v2] ARM: Implement Clang's SLS mitigation

2021-02-17 Thread Nick Desaulniers
On Fri, Feb 12, 2021 at 11:53 AM 'Jian Cai' via Clang Built Linux wrote: The oneline of the commit is "ARM: Implement Clang's SLS mitigation," but that's not precise. GCC implements the same flag with the same arguments. There is nothing compiler specific about this patch. (Though perhaps

Re: [PATCH] perf metricgroup: remove unneeded semicolon

2021-02-17 Thread Arnaldo Carvalho de Melo
Em Tue, Feb 16, 2021 at 04:34:25PM +0900, Namhyung Kim escreveu: > Hello, > > On Mon, Feb 1, 2021 at 4:41 PM Yang Li wrote: > > > > Eliminate the following coccicheck warning: > > ./tools/perf/util/metricgroup.c:382:3-4: Unneeded semicolon > > > > Reported-by: Abaci Robot > > Signed-off-by:

Re: [PATCH 1/4] perf buildid-cache: Don't skip 16-byte build-ids

2021-02-17 Thread Arnaldo Carvalho de Melo
Em Tue, Feb 16, 2021 at 11:35:06AM -0500, Nicholas Fraser escreveu: > No problem, I've added a call to "perf buildid-cache -l" in check() to make > sure the added IDs are reported. The MD5 test fails without the previous > patch to allow 16-byte build-ids. > > Do you also want PE files tested by

Re: [MPTCP] KASAN: use-after-free Read in mptcp_established_options

2021-02-17 Thread Paolo Abeni
On Wed, 2021-02-17 at 09:30 -0800, syzbot wrote: > syzbot found the following issue on: > > HEAD commit:966df6de lan743x: sync only the received area of an rx rin.. > git tree: net-next > console output: https://syzkaller.appspot.com/x/log.txt?x=11afe082d0 > kernel config:

Re: [PATCH v3 1/1] kernel/crash_core: Add crashkernel=auto for vmcore creation

2021-02-17 Thread john . p . donnelly
On 2/11/21 12:08 PM, Saeed Mirzamohammadi wrote: This adds crashkernel=auto feature to configure reserved memory for vmcore creation. CONFIG_CRASH_AUTO_STR is defined to be set for different kernel distributions and different archs based on their needs. Signed-off-by: Saeed Mirzamohammadi

Re: KASAN: use-after-free Read in tcp_current_mss

2021-02-17 Thread Paolo Abeni
On Wed, 2021-02-17 at 07:36 -0800, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit:773dc50d Merge branch 'Xilinx-axienet-updates' > git tree: net-next > console output: https://syzkaller.appspot.com/x/log.txt?x=13460822d0 > kernel config:

Re: [PATCH 4/7] KVM: nVMX: move inject_page_fault tweak to .complete_mmu_init

2021-02-17 Thread Maxim Levitsky
On Wed, 2021-02-17 at 09:29 -0800, Sean Christopherson wrote: > On Wed, Feb 17, 2021, Maxim Levitsky wrote: > > This fixes a (mostly theoretical) bug which can happen if ept=0 > > on host and we run a nested guest which triggers a mmu context > > reset while running nested. > > In this case the

Re: [PATCH 1/2] vdpa/mlx5: Fix suspend/resume index restoration

2021-02-17 Thread Si-Wei Liu
On 2/16/2021 8:20 AM, Eli Cohen wrote: When we suspend the VM, the VDPA interface will be reset. When the VM is resumed again, clear_virtqueues() will clear the available and used indices resulting in hardware virqtqueue objects becoming out of sync. We can avoid this function alltogether

Re: [PATCH] of: property: fw_devlink: Ignore interrupts property for some configs

2021-02-17 Thread Rob Herring
On Mon, Feb 15, 2021 at 4:43 PM Saravana Kannan wrote: > > When CONFIG_OF_IRQ is not defined, it doesn't make sense to parse > interrupts property. > > Also, parsing and tracking interrupts property breaks some PPC > devices[1]. But none of the IRQ drivers in PPC seem ready to be > converted to

Re: [PATCH v3 1/1] kernel/crash_core: Add crashkernel=auto for vmcore creation

2021-02-17 Thread Vivek Goyal
On Wed, Feb 17, 2021 at 02:26:53PM -0500, Steven Rostedt wrote: > On Wed, 17 Feb 2021 12:40:43 -0600 > john.p.donne...@oracle.com wrote: > > > Hello. > > > > Ping. > > > > Can we get this reviewed and staged ? > > > > Thank you. > > Andrew, > > Seems you are the only one pushing patches in

Re: Should RCU_BOOST kernels use hrtimers in GP kthread?

2021-02-17 Thread Sebastian Andrzej Siewior
On 2021-02-17 11:19:07 [-0800], Paul E. McKenney wrote: > > Ah. One nice thing is that you can move the RCU threads to a house > > keeping CPU - away from the CPU(s) running the RT tasks. Would this > > scenario be still affected (if ksoftirqd would be blocked)? > > At this point, I am going to

Re: [PATCH 3/3] Input: applespi: Add trace_event module param for early tracing.

2021-02-17 Thread Life is hard, and then you die
Hi Dmitry, On Wed, Feb 17, 2021 at 12:26:18PM -0800, Dmitry Torokhov wrote: > > On Wed, Feb 17, 2021 at 11:07:18AM -0800, Ronald Tschalär wrote: > > The problem is that tracing can't be set via sysfs until the module is > > loaded, at which point the keyboard and trackpad initialization

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