RE: [PATCH] iov_iter: optimise iter type checking

2021-01-27 Thread David Laight
From: Pavel Begunkov > Sent: 27 January 2021 15:48 > > On 16/01/2021 05:18, Al Viro wrote: > > On Sat, Jan 09, 2021 at 10:11:09PM +, Pavel Begunkov wrote: > > > >>> Does any code actually look at the fields as a pair? > >>> Would it even be better to use separate bytes? > >>> Even growing the

[PATCH v2 3/3] Updated MAINTAINERS

2021-01-27 Thread mail
From: Richard Neumann Added Richard Neumann (me) to the list of maintainers for the AMD Sensor Fusion Hub driver. Signed-off-by: Richard Neumann --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 992fe3b0900a..de28236a08fe 100644 ---

[PATCH v2 1/3] Outsourced sensor masks to PCI driver header.

2021-01-27 Thread mail
From: Richard Neumann Outsourced the mask definitions of the four sensors into the PCI device driver header file for later use with the quirks. Also renamed the values from *_EN to *_MASK to emphasize that they are actually sensor bitmasks for matching against activestatus. Signed-off-by:

[PATCH v2 2/3] Added quirks to detect sensor masks.

2021-01-27 Thread mail
From: Richard Neumann Added quirks file to determine the sensor masks for systems that do not have it stored in the corresponding P2C register. Values are based upon user reports from: https://bugzilla.kernel.org/show_bug.cgi?id=199715 Signed-off-by: Richard Neumann ---

[PATCH v2 0/3] Add quirks to AMD Sensor Fusion Hub driver

2021-01-27 Thread mail
From: Richard Neumann This patch adds quirks to the upstream (v8) version of the AMD Sensor Fusion Hub driver. The quirks provide a function to detect the sensor mask for systems that do not have it stored in the AMD_P2C_MSG3 register. The information about the systems IDs and available sensors

Re: [PATCH v5 0/36] SCMI vendor protocols and modularization

2021-01-27 Thread Cristian Marussi
Hi Vincent, On Wed, Jan 27, 2021 at 05:21:15PM +0100, Vincent Guittot wrote: > Hi Cristian, > > > On Tue, 12 Jan 2021 at 20:20, Cristian Marussi > wrote: > > > > Hi all, > > > > The current SCMI implementation does not provide an interface to easily > > develop and include a custom vendor

Re: [RESEND PATCH v3 12/12] usb: misc: usbtest: update to use the usb_control_msg_{send|recv}() API

2021-01-27 Thread Alan Stern
On Wed, Jan 27, 2021 at 05:42:47PM +0530, Anant Thazhemadam wrote: > The newer usb_control_msg_{send|recv}() API are an improvement on the > existing usb_control_msg() as it ensures that a short read/write is treated > as an error, data can be used off the stack, and raw usb pipes need not be >

Re: [RESEND PATCH v18 0/3] userspace MHI client interface driver

2021-01-27 Thread Bjorn Andersson
On Wed 27 Jan 09:15 CST 2021, Greg KH wrote: > On Wed, Jan 13, 2021 at 08:56:25PM +0530, Manivannan Sadhasivam wrote: > > Hi Greg, > > > > On Wed, Jan 06, 2021 at 10:44:13AM -0800, Hemant Kumar wrote: > > > This patch series adds support for UCI driver. UCI driver enables > > > userspace > > >

[PATCH][for-stable-v5.4] arm64: mm: use single quantity to represent the PA to VA translation

2021-01-27 Thread Vincenzo Frascino
From: Ard Biesheuvel commit 7bc1a0f9e1765830e945669c99c59c35cf9bca82 upstream. On arm64, the global variable memstart_addr represents the physical address of PAGE_OFFSET, and so physical to virtual translations or vice versa used to come down to simple additions or subtractions involving the

Re: [PATCH v5 0/36] SCMI vendor protocols and modularization

2021-01-27 Thread Vincent Guittot
Hi Cristian, On Tue, 12 Jan 2021 at 20:20, Cristian Marussi wrote: > > Hi all, > > The current SCMI implementation does not provide an interface to easily > develop and include a custom vendor protocol implementation as prescribed > by the SCMI standard, also because, there is not currently any

Re: [RFC PATCH v2 0/4] make jbd2 debug switch per device

2021-01-27 Thread Theodore Ts'o
On Tue, Jan 26, 2021 at 08:50:02AM +0800, brookxu wrote: > > trace point, eBPF and other hook technologies are better for production > environments. But for pure debugging work, adding hook points feels a bit > heavy. However, your suggestion is very valuable, thank you very much. What feels

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

2021-01-27 Thread Peter Zijlstra
On Wed, Jan 27, 2021 at 09:59:14AM -0600, Josh Poimboeuf wrote: > On Wed, Jan 27, 2021 at 12:27:09PM +0100, Peter Zijlstra wrote: > > On Wed, Jan 27, 2021 at 10:13:47AM +0100, Peter Zijlstra wrote: > > > On Tue, Jan 26, 2021 at 05:57:30PM -0600, Josh Poimboeuf wrote: > > > > > > Well, I hate it,

Re: [PATCH 01/12] thunderbolt: dma_port: Remove unused variable 'ret'

2021-01-27 Thread Lee Jones
On Wed, 27 Jan 2021, Andy Shevchenko wrote: > On Wednesday, January 27, 2021, Lee Jones wrote: > > > Fixes the following W=1 kernel build warning(s): > > > > drivers/thunderbolt/dma_port.c: In function ‘dma_port_flash_write_block’: > > drivers/thunderbolt/dma_port.c:331:6: warning: variable

Re: [PATCH RESEND] dma-mapping: benchmark: fix kernel crash when dma_map_single fails

2021-01-27 Thread Christoph Hellwig
Thanks, applied.

Re: [PATCH] sched/tracing: Reset critical timings on scheduling

2021-01-27 Thread Steven Rostedt
On Wed, 27 Jan 2021 12:37:16 +0100 Peter Zijlstra wrote: > And that's just really daft.. why are you adding two unconditional > function calls to __schedule() that are a complete waste of time > 99.99% of the time? > > If anything, this should be fixed in schedule_idle(). Note, those two

[PATCH V2] Fix unsynchronized access to sev members through svm_register_enc_region

2021-01-27 Thread Peter Gonda
Grab kvm->lock before pinning memory when registering an encrypted region; sev_pin_memory() relies on kvm->lock being held to ensure correctness when checking and updating the number of pinned pages. Add a lockdep assertion to help prevent future regressions. Cc: Thomas Gleixner Cc: Ingo Molnar

Re: [PATCH] Revert "block: simplify set_init_blocksize" to regain lost performance

2021-01-27 Thread Jens Axboe
On 1/26/21 12:59 PM, Maxim Mikityanskiy wrote: > The cited commit introduced a serious regression with SATA write speed, > as found by bisecting. This patch reverts this commit, which restores > write speed back to the values observed before this commit. > > The performance tests were done on a

Re: [PATCH v3 0/3] Add support for x509 certs with NIST p256 and p192 keys

2021-01-27 Thread Nym Seddon
Hi Stefan, In the recommendations from SafeCurves (https://safecurves.cr.yp.to/twist.html) there are a number of attacks against ECC twists. Two of those attacks are relevant against NIST P192: invalid-curve attacks and invalid-curve attacks against ladders. Both attacks can be mitigated by

Re: linux-next: build failure after merge of the akpm-current tree

2021-01-27 Thread Alexey Dobriyan
On Wed, Jan 27, 2021 at 11:21:18PM +1100, Stephen Rothwell wrote: > Caused by commit > > 5567a1a4b1c3 ("ramfs: support O_TMPFILE") Can this be merged or sent to Al, please? It's ancient patch.

Re: [PATCH 05/12] thunderbolt: pa: Demote non-conformant kernel-doc headers

2021-01-27 Thread Lee Jones
On Wed, 27 Jan 2021, Andy Shevchenko wrote: > On Wednesday, January 27, 2021, Lee Jones wrote: > > > Fixes the following W=1 kernel build warning(s): > > > > drivers/thunderbolt/path.c:476: warning: Function parameter or member > > 'path' not described in 'tb_path_activate' > >

Re: [PATCH v4 1/1] loop: scale loop device by introducing per device lock

2021-01-27 Thread Pavel Tatashin
On Tue, Jan 26, 2021 at 3:09 PM Jens Axboe wrote: > > On 1/26/21 7:46 AM, Pavel Tatashin wrote: > > Currently, loop device has only one global lock: loop_ctl_mutex. > > > > This becomes hot in scenarios where many loop devices are used. > > > > Scale it by introducing per-device lock: lo_mutex

[PATCH v3 08/22] media: camss: Refactor CSID HW version support

2021-01-27 Thread Robert Foss
In order to support Qualcomm ISP hardware architectures that diverge from older architectures, the CSID subdevice drivers needs to be refactored to better abstract the different ISP hardware architectures. Signed-off-by: Robert Foss --- Changes since v1 - kernel test robot: Add missing

Re: (subset) [PATCH v10 00/18] arm64: MMU enabled kexec relocation

2021-01-27 Thread Pavel Tatashin
On Wed, Jan 27, 2021 at 10:59 AM Will Deacon wrote: > > On Mon, 25 Jan 2021 14:19:05 -0500, Pavel Tatashin wrote: > > Changelog: > > v10: > > - Addressed a lot of comments form James Morse and from Marc Zyngier > > - Added review-by's > > - Synchronized with mainline > > > >

Re: [PATCH] Revert "block: simplify set_init_blocksize" to regain lost performance

2021-01-27 Thread Christoph Hellwig
While this code is gross, I think we need to add it back for now: Acked-by: Christoph Hellwig I'll put converting the block device buffered I/O path to iomap or an iomap lookalike on the backburner to fix this..

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

2021-01-27 Thread Robert Foss
Add bindings for qcom,msm8996-camss in order to support the camera subsystem on MSM8996. Signed-off-by: Robert Foss --- Changes since v2 - Rob: Add new line at end of file - Rob: Remove redundant descriptions - Rob: Add power domain description - Rob: Make clock-lanes a constant - Rob:

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

2021-01-27 Thread Robert Foss
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 v2 - Rob: Add new line at end of file - Rob: Remove redundant descriptions - Rob: Add power domain description - Rob: Make clock-lanes a

Re: [RFC 3/3] clk: imx: Add blk-ctl driver for i.MX8MN

2021-01-27 Thread Marek Vasut
On 10/24/20 6:20 PM, Adam Ford wrote: This driver is intended to work with the multimedia block which contains display and camera subsystems: LCDIF ISI MIPI CSI MIPI DSI Signed-off-by: Adam Ford --- drivers/clk/imx/clk-blk-ctl-imx8mn.c | 80 You seem

[PATCH v3 13/22] dt-bindings: media: camss: Add qcom,msm8916-camss binding

2021-01-27 Thread Robert Foss
Add bindings for qcom,msm8916-camss in order to support the camera subsystem on MSM8916. Signed-off-by: Robert Foss --- Changes since v2: - Remove redundant descriptions - Add power domain description - Make clock-lanes a constant - Add max & minItems to data-lanes - Remove ports

[PATCH v3 16/22] dt-bindings: media: camss: Add qcom,sdm845-camss binding

2021-01-27 Thread Robert Foss
Add bindings for qcom,sdm845-camss in order to support the camera subsystem for SDM845. Signed-off-by: Robert Foss --- Changes since v2 - Rob: Removed extra empty lines at end of file - Rob: Add new line at end of file - Rob: Remove redundant descriptions - Rob: Add power domain description

Re: [PATCH v3 2/2] arm64: dts: ti: k3-j7200: Add support for higher speed modes in MMCSD subsystems

2021-01-27 Thread Nishanth Menon
On 20:50-20210127, Aswath Govindraju wrote: > Hi Nishanth, > > On 27/01/21 8:44 pm, Nishanth Menon wrote: > > On 20:38-20210127, Aswath Govindraju wrote: > >> The following speed modes are now supported in J7200 SoC, > >> - HS200 and HS400 modes at 1.8 V car

[PATCH] Revert "PCI/ASPM: Save/restore L1SS Capability for suspend/resume"

2021-01-27 Thread Bjorn Helgaas
From: Bjorn Helgaas This reverts commit 4257f7e008ea394fcecc050f1569c3503b8bcc15. Kenneth reported that after 4257f7e008ea, he sees a torrent of disk I/O errors on his NVMe device, and possibly other devices, until a reboot. Link:

Re: [PATCH] rtlwifi: use tasklet_setup to initialize rx_work_tasklet

2021-01-27 Thread Emil Renner Berthing
On Wed, 27 Jan 2021 at 16:33, Kalle Valo wrote: > ... > Forgot to mention that I can remove the Fixes tags during commit, so no > need to resend just because of those. Cool, thanks. > > I can definitely see how you can reasonably disagree, but I would not > > be comfortable having code that

Re: Commit 4257f7e0 ("PCI/ASPM: Save/restore L1SS Capability for suspend/resume") causing hibernate resume failures

2021-01-27 Thread Kenneth R. Crudup
On Wed, 27 Jan 2021, Bjorn Helgaas wrote: > > Any new news on this? Disabling "tlp" (which just shifts the problem around > > on my machine) shouldn't be a solution for this issue. > > Agreed; disabling "tlp" is a workaround but not a solution. Actually, disabling "tlp" doesn't fix the issue;

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

2021-01-27 Thread Josh Poimboeuf
On Wed, Jan 27, 2021 at 12:27:09PM +0100, Peter Zijlstra wrote: > On Wed, Jan 27, 2021 at 10:13:47AM +0100, Peter Zijlstra wrote: > > On Tue, Jan 26, 2021 at 05:57:30PM -0600, Josh Poimboeuf wrote: > > > > Well, I hate it, but I'm not sure I have any better ideas. It should be > > > possible to

Re: Commit 4257f7e0 ("PCI/ASPM: Save/restore L1SS Capability for suspend/resume") causing hibernate resume failures

2021-01-27 Thread Kenneth R. Crudup
On Wed, 27 Jan 2021, Bjorn Helgaas wrote: > Do you have a URL for your initial report that I could include in the > revert commit log? I don't, as I'd emailed the committers first and that was then CCed to the mailing list, but here's what I'd sent: Date: Fri, 25 Dec 2020 16:38:56 From:

Re: [PATCH] media: i2c: imx219: Implement V4L2_CID_LINK_FREQ control

2021-01-27 Thread Andrey Konovalov
Hi David, On 27.01.2021 18:25, Dave Stevenson wrote: Hi Andrey On Tue, 26 Jan 2021 at 15:55, Andrey Konovalov wrote: Hi Dave, On 26.01.2021 16:01, Dave Stevenson wrote: Hi Andrey On Tue, 26 Jan 2021 at 07:50, Andrey Konovalov wrote: This control is needed for imx219 driver, as the

Re: [PATCH v3 5/6] media: uvcvideo: Use dma_alloc_noncontiguos API

2021-01-27 Thread . Christoph Hellwig
On Wed, Jan 27, 2021 at 12:29:08AM +0100, Ricardo Ribalda wrote: > - Is there any platform where dma_alloc_noncontiguos can fail? > This is, !ops->alloc_noncontiguous and !dev->coherent_dma_mask > If yes then we need to add a function to let the driver know in > advance that it has to use the

Re: (subset) [PATCH v10 00/18] arm64: MMU enabled kexec relocation

2021-01-27 Thread Will Deacon
On Mon, 25 Jan 2021 14:19:05 -0500, Pavel Tatashin wrote: > Changelog: > v10: > - Addressed a lot of comments form James Morse and from Marc Zyngier > - Added review-by's > - Synchronized with mainline > > [...] Applied the first 12 patches to arm64 (for-next/kexec), thanks!

[GIT PULL] parisc architecture updates for kernel v5.11-rc6

2021-01-27 Thread Helge Deller
Hi Linus, please pull two fixes for the parisc architecture for kernel 5.11-rc6 from: http://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git parisc-5.11-2 Two small fixes: * Fix linking error with 64-bit kernel when modules are disabled, reported by kernel test robot. *

Re: [PATCH V2 11/13] devfreq: tegra30: Migrate to dev_pm_opp_set_opp()

2021-01-27 Thread Dmitry Osipenko
27.01.2021 13:02, Viresh Kumar пишет: > On 27-01-21, 14:40, Viresh Kumar wrote: >> dev_pm_opp_set_bw() is getting removed and dev_pm_opp_set_opp() should >> be used instead. Migrate to the new API. >> >> We don't want the OPP core to manage the clk for this driver, migrate to >>

Re: [RFC PATCH 0/4] Asynchronous passthrough ioctl

2021-01-27 Thread Pavel Begunkov
On 27/01/2021 15:42, Pavel Begunkov wrote: > On 27/01/2021 15:00, Kanchan Joshi wrote: >> This RFC patchset adds asynchronous ioctl capability for NVMe devices. >> Purpose of RFC is to get the feedback and optimize the path. >> >> At the uppermost io-uring layer, a new opcode IORING_OP_IOCTL_PT is

Re: [PATCH v1 1/2] mm/cma: expose all pages to the buddy if activation of an area fails

2021-01-27 Thread Zi Yan
On 27 Jan 2021, at 5:18, David Hildenbrand wrote: > Right now, if activation fails, we might already have exposed some pages to > the buddy for CMA use (although they will never get actually used by CMA), > and some pages won't be exposed to the buddy at all. > > Let's check for "single zone"

[RFC PATCH 2/4] kernel: export task_work_add

2021-01-27 Thread Kanchan Joshi
Task-work infra is required to introduce async-ioctl in nvme driver. Without this being exported, NVMe needs to be built statically. Signed-off-by: Kanchan Joshi --- kernel/task_work.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/task_work.c b/kernel/task_work.c

[RFC PATCH 1/4] block: introduce async ioctl operation

2021-01-27 Thread Kanchan Joshi
Add a new block-dev operation for async-ioctl. Driver managing the block-dev can choose to implement it. Signed-off-by: Kanchan Joshi --- include/linux/blkdev.h | 12 1 file changed, 12 insertions(+) diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index

Re: [PATCH v3 1/2] dts: ti: k3-j7200-main: Add support for zeroth instance of GPIO subsystem

2021-01-27 Thread Nishanth Menon
On 20:56-20210127, Aswath Govindraju wrote: > Hi Nishanth, > > On 27/01/21 8:42 pm, Nishanth Menon wrote: > > On 20:38-20210127, Aswath Govindraju wrote: > >> Add support for the zeroth instance of GPIO subsystem in the main domain. > >> > >> Signed-

Re: [EXT] Re: [PATCH v4 net-next 19/19] net: mvpp2: add TX FC firmware check

2021-01-27 Thread Russell King - ARM Linux admin
On Wed, Jan 27, 2021 at 02:37:34PM +, Stefan Chulski wrote: > Your mcbin-ss is A8K AX or A8K B0? On AX revisions we do not have FC support > in firmware. How do I tell? I don't want to remove the heatsink, and I don't see anything in MV-S88-00E. I didn't grab a copy of the Errata before

Re: [PATCH 4/4] vfio-pci/zdev: Introduce the zPCI I/O vfio region

2021-01-27 Thread Alex Williamson
On Wed, 27 Jan 2021 09:23:04 -0500 Matthew Rosato wrote: > On 1/26/21 6:18 PM, Alex Williamson wrote: > > On Mon, 25 Jan 2021 09:40:38 -0500 > > Matthew Rosato wrote: > > > >> On 1/22/21 6:48 PM, Alex Williamson wrote: > >>> On Tue, 19 Jan 2021 15:02:30 -0500 > >>> Matthew Rosato wrote: >

Re: [PATCH v4] power: suspend: Move dpm_watchdog to suspend.c and enhance it

2021-01-27 Thread Lukas Bulwahn
> diff --git a/MAINTAINERS b/MAINTAINERS > index 867157311dc8..ecd988b4a838 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -7788,6 +7788,8 @@ F:include/linux/freezer.h > F: include/linux/pm.h > F: include/linux/suspend.h > F: kernel/power/ > +F:

[PATCH V3 2/6] x86_32: use percpu instead of offset-calculation to get thread.sp0 when SWITCH_TO_KERNEL_STACK

2021-01-27 Thread Lai Jiangshan
From: Lai Jiangshan TSS_entry2task_stack is used to refer to tss.sp1 which is stored the value of thread.sp0. At the code where TSS_entry2task_stack is used in SWITCH_TO_KERNEL_STACK, the CR3 is already kernel CR3 and kernel segments is loaded. So we can directly use the percpu to get

Re: [PATCH v2 5/6] arm64: dts: qcom: Add basic devicetree support for SM8350 SoC

2021-01-27 Thread Vinod Koul
Hi Sai, On 27-01-21, 18:37, Sai Prakash Ranjan wrote: > Hi Vinod, > > On 2021-01-27 18:00, Vinod Koul wrote: > > + timer { > > + compatible = "arm,armv8-timer"; > > + interrupts = > IRQ_TYPE_LEVEL_LOW)>, > > + > IRQ_TYPE_LEVEL_LOW)>, > > +

[PATCH V3 3/6] x86_32/sysenter: switch to the task stack without emptying the entry stack

2021-01-27 Thread Lai Jiangshan
From: Lai Jiangshan Like the way x86_64 uses the "old" stack, we can save the entry stack pointer to a register and switch to the task stack. So that we have space on the "old" stack to save more things or scratch registers. Signed-off-by: Lai Jiangshan --- arch/x86/entry/entry_32.S | 11

Re: [RFC 0/2] Kbuild: Support nested composite objects

2021-01-27 Thread Christoph Hellwig
On Fri, Jan 22, 2021 at 11:27:16AM -0800, Elliot Berman wrote: > This series was developed after discussion in > https://lkml.org/lkml/2021/1/19/850 > > The motivation for this series is an out-of-tree module which contains a large > number of source files. This causes Kbuild to exceed the

Re: [PATCH] iov_iter: optimise iter type checking

2021-01-27 Thread Pavel Begunkov
On 16/01/2021 05:18, Al Viro wrote: > On Sat, Jan 09, 2021 at 10:11:09PM +, Pavel Begunkov wrote: > >>> Does any code actually look at the fields as a pair? >>> Would it even be better to use separate bytes? >>> Even growing the on-stack structure by a word won't really matter. >> >> u8 type,

[PATCH RFC 4/4] selftest: firmware: Add ZSTD compressed file tests

2021-01-27 Thread Takashi Iwai
It's similar like XZ compressed files. For the simplicity, both XZ and ZSTD tests are done in a single function. The format is specified via $COMPRESS_FORMAT and the compression function is pre-defined. Signed-off-by: Takashi Iwai --- .../selftests/firmware/fw_filesystem.sh | 75

[PATCH RFC 2/4] selftests: firmware: Simplify test patterns

2021-01-27 Thread Takashi Iwai
The test patterns are almost same in three sequential tests. Make the unified helper function for improving the readability. Signed-off-by: Takashi Iwai --- .../selftests/firmware/fw_filesystem.sh | 106 +- 1 file changed, 30 insertions(+), 76 deletions(-) diff --git

Re: Commit 4257f7e0 ("PCI/ASPM: Save/restore L1SS Capability for suspend/resume") causing hibernate resume failures

2021-01-27 Thread Bjorn Helgaas
On Fri, Jan 22, 2021 at 12:11:08PM -0800, Kenneth R. Crudup wrote: > > > From: Kenneth R. Crudup > > > I've been running Linus' master branch on my laptop (Dell XPS 13 > > > 2-in-1). With this commit in place, after resuming from hibernate > > > my machine is essentially useless, with a torrent

Re: [PATCH V3] mm/compaction: correct deferral logic for proactive compaction

2021-01-27 Thread Charan Teja Kalla
On 1/25/2021 4:24 AM, David Rientjes wrote: > On Wed, 20 Jan 2021, Vlastimil Babka wrote: > >> On 1/19/21 8:26 PM, David Rientjes wrote: >>> On Mon, 18 Jan 2021, Charan Teja Reddy wrote: >>> should_proactive_compact_node() returns true when sum of the weighted fragmentation score of

[PATCH RFC 0/4] firmware: Add ZSTD-compressed file support

2021-01-27 Thread Takashi Iwai
Hi, it seems that ZSTD format is getting popular, and I've been asked about the firmware loader support. So I took a quick glance, and it turned out that it's fairly easy thanks to the existing ZSTD API. Now high time to submit something. The first patch adds a new Kconfig

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

2021-01-27 Thread Takashi Iwai
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 API can give the decompression size beforehand, the code is even simpler

[PATCH RFC 3/4] selftest: firmware: Fix the request_firmware_into_buf() test for XZ format

2021-01-27 Thread Takashi Iwai
The test uses a different firmware name, and we forgot to adapt for the XZ compressed file tests. Signed-off-by: Takashi Iwai --- tools/testing/selftests/firmware/fw_filesystem.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/firmware/fw_filesystem.sh

Re: [RFC PATCH 0/4] Asynchronous passthrough ioctl

2021-01-27 Thread Pavel Begunkov
On 27/01/2021 15:00, Kanchan Joshi wrote: > This RFC patchset adds asynchronous ioctl capability for NVMe devices. > Purpose of RFC is to get the feedback and optimize the path. > > At the uppermost io-uring layer, a new opcode IORING_OP_IOCTL_PT is > presented to user-space applications. Like

[PATCH V2 5/5] perf/x86/intel: Support CPUID 10.ECX to disable fixed counters

2021-01-27 Thread kan . liang
From: Kan Liang With Architectural Performance Monitoring Version 5, CPUID 10.ECX cpu leaf indicates the fixed counter enumeration. This extends the previous count to a bitmap which allows disabling even lower fixed counters. It could be used by a Hypervisor. The existing intel_ctrl variable is

[PATCH V2 4/5] perf/x86/intel: Add perf core PMU support for Sapphire Rapids

2021-01-27 Thread kan . liang
From: Kan Liang Add perf core PMU support for the Intel Sapphire Rapids server, which is the successor of the Intel Ice Lake server. The enabling code is based on Ice Lake, but there are several new features introduced. The event encoding is changed and simplified, e.g., the event codes which

[PATCH V2 3/5] perf/x86/intel: Filter unsupported Topdown metrics event

2021-01-27 Thread kan . liang
From: Kan Liang Current perf doesn't check the index of a Topdown metrics event before updating the event. A perf tool user may get a value from an unsupported Topdown metrics event. For example, the L2 topdown event, cpu/event=0x00,umask=0x84/, is not supported on Ice Lake. A perf tool user

[PATCH V2 2/5] perf/x86/intel: Factor out intel_update_topdown_event()

2021-01-27 Thread kan . liang
From: Kan Liang Similar to Ice Lake, Intel Sapphire Rapids server also supports the topdown performance metrics feature. The difference is that Intel Sapphire Rapids server extends the PERF_METRICS MSR to feature TMA method level two metrics, which will introduce 8 metrics events. Current

[PATCH V2 1/5] perf/core: Add PERF_SAMPLE_WEIGHT_STRUCT

2021-01-27 Thread kan . liang
From: Kan Liang Current PERF_SAMPLE_WEIGHT sample type is very useful to expresses the cost of an action represented by the sample. This allows the profiler to scale the samples to be more informative to the programmer. It could also help to locate a hotspot, e.g., when profiling by memory

Re: [PATCH v4] certs: Add EFI_CERT_X509_GUID support for dbx entries

2021-01-27 Thread Eric Snowberg
> On Jan 27, 2021, at 7:03 AM, Mimi Zohar wrote: > > [Cc'ing linux-integrity] > > On Wed, 2021-01-27 at 11:46 +, David Howells wrote: >> Jarkko Sakkinen wrote: >> I suppose a user space tool could be created. But wouldn’t what is currently done in the kernel in this area need

[PATCH V2 0/5] perf core PMU support for Sapphire Rapids (Kernel)

2021-01-27 Thread kan . liang
From: Kan Liang Changes since V1: - Use PERF_SAMPLE_WEIGHT_STRUCT to replace PERF_SAMPLE_WEIGHT_EXT. The new sample type PERF_SAMPLE_WEIGHT_STRUCT shares the same space as the current PERF_SAMPLE_WEIGHT. - Move the check for the unsupported Topdown event into a separate patch - Use the

Re: [PATCH v2] dma: qcom: bam_dma: Manage clocks when controlled_remotely is set

2021-01-27 Thread Vinod Koul
On 26-01-21, 16:18, Thara Gopinath wrote: > When bam dma is "controlled remotely", thus far clocks were not controlled > from the Linux. In this scenario, Linux was disabling runtime pm in bam dma > driver and not doing any clock management in suspend/resume hooks. > > With introduction of crypto

[PATCH v1 0/3] Add quirks to AMD Sensor Fusion Hub driver

2021-01-27 Thread mail
From: Richard Neumann This patch adds quirks to the upstream (v8) version of the AMD Sensor Fusion Hub driver. The quirks provide a function to detect the sensor mask for systems that do not have it stored in the AMD_P2C_MSG3 register. The information about the systems IDs and available sensors

[PATCH v1 2/3] Added quirks to detect sensor masks.

2021-01-27 Thread mail
From: Richard Neumann Added quirks file to determine the sensor masks for systems that do not have it stored in the corresponding P2C register. Values are based upon user reports from: https://bugzilla.kernel.org/show_bug.cgi?id=199715 Signed-off-by: Richard Neumann ---

[PATCH v1 3/3] Updated MAINTAINERS

2021-01-27 Thread mail
From: Richard Neumann Added Richard Neumann (me) to the list of maintainers for the AMD Sensor Fusion Hub driver. Signed-off-by: Richard Neumann --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 992fe3b0900a..de28236a08fe 100644 ---

[PATCH] tracing/kprobe: Fix to support kretprobe events on unloaded modules

2021-01-27 Thread Masami Hiramatsu
Fix kprobe_on_func_entry() returns error code instead of false so that register_kretprobe() can return an appropriate error code. append_trace_kprobe() expects the kprobe registration returns -ENOENT when the target symbol is not found, and it checks whether the target module is unloaded or not.

[PATCH v1 1/3] Outsourced sensor masks to PCI driver header.

2021-01-27 Thread mail
From: Richard Neumann Outsourced the mask definitions of the four sensors into the PCI device driver header file for later use with the quirks. Also renamed the values from *_EN to *_MASK to emphasize that they are actually sensor bitmasks for matching against activestatus. Signed-off-by:

[PATCH] drm/amdkfd: dqm fence memory corruption

2021-01-27 Thread Qu Huang
Amdgpu driver uses 4-byte data type as DQM fence memory, and transmits GPU address of fence memory to microcode through query status PM4 message. However, query status PM4 message definition and microcode processing are all processed according to 8 bytes. Fence memory only allocates 4 bytes of

Re: [PATCH 0/3] PCI/ACPI: _OSC cleanups

2021-01-27 Thread Bjorn Helgaas
On Wed, Jan 27, 2021 at 02:55:07PM +0100, Rafael J. Wysocki wrote: > On Wed, Jan 27, 2021 at 1:54 PM Bjorn Helgaas wrote: > > > > From: Bjorn Helgaas > > > > Clean up a few _OSC-related things. > > > > We talked about the _OSC failure message in the last patch long ago, and I > > just dropped

Re: [PATCH] rtlwifi: use tasklet_setup to initialize rx_work_tasklet

2021-01-27 Thread Kalle Valo
Emil Renner Berthing writes: > On Wed, 27 Jan 2021 at 16:20, Kalle Valo wrote: >> >> Willem de Bruijn writes: >> >> > On Wed, Jan 27, 2021 at 5:23 AM Emil Renner Berthing >> > wrote: >> >> >> >> In commit d3ccc14dfe95 most of the tasklets in this driver was >> >> updated to the new API.

[PATCH V3 5/6] x86_32/sysenter: use percpu to get thread.sp0 when sysenter

2021-01-27 Thread Lai Jiangshan
From: Lai Jiangshan TSS_entry2task_stack is used to refer to tss.sp1 which is stored the value of thread.sp0. At the code where TSS_entry2task_stack is used in sysenter, the CR3 is already kernel CR3 and kernel segments is loaded. So that we can directly use percpu for it instead of

[PATCH V3 4/6] x86_32/sysenter: restore %fs before switching stack

2021-01-27 Thread Lai Jiangshan
From: Lai Jiangshan Prepare for using percpu and removing TSS_entry2task_stack Signed-off-by: Lai Jiangshan --- arch/x86/entry/entry_32.S | 22 +- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/arch/x86/entry/entry_32.S b/arch/x86/entry/entry_32.S index

[PATCH V3 6/6] x86_32: use cpu_current_thread_sp0 instead of cpu_tss_rw.x86_tss.sp1

2021-01-27 Thread Lai Jiangshan
From: Lai Jiangshan sp1 is not used by hardware and is used as thread.sp0. We should just use new percpu variable. And remove unneeded TSS_sp1. Signed-off-by: Lai Jiangshan --- arch/x86/entry/entry_32.S| 6 +++--- arch/x86/include/asm/processor.h | 2 ++

[PATCH V3 1/6] x86_64: move cpu_current_top_of_stack out of TSS

2021-01-27 Thread Lai Jiangshan
From: Lai Jiangshan When X86_BUG_CPU_MELTDOWN & KPTI, cpu_current_top_of_stack lives in the TSS which is also in the user CR3 and it becomes a coveted fruit. An attacker can fetch the kernel stack top from it and continue next steps of actions based on the kernel stack. The address might not

Re: [PATCH v10] staging: fbtft: add tearing signal detect

2021-01-27 Thread Greg KH
On Wed, Jan 27, 2021 at 05:49:46PM +0300, Dan Carpenter wrote: > On Wed, Jan 27, 2021 at 03:25:20PM +0100, Greg KH wrote: > > On Wed, Jan 27, 2021 at 10:17:08PM +0800, carlis wrote: > > > On Wed, 27 Jan 2021 15:13:05 +0100 > > > Greg KH wrote: > > > > > > > On Wed, Jan 27, 2021 at 10:08:09PM

sparc32: boot fails with > 256 MB memory after switch to NO_BOOTMEM

2021-01-27 Thread Andreas Larsson
Commit cca079ef8ac29a7c02192d2bad2ffe4c0c5ffdd0 makes sparc32 use memblocks instead of the previous bootmem solution. Unfortunately, due to this: #define PAGE_OFFSET 0xf000 #define __va(x) ((void *)((unsigned long) (x) - phys_base + PAGE_OFFSET)) #define phys_to_virt __va it

Re: [PATCH v3 07/12] usb: misc: isight_firmware: update to use usb_control_msg_send()

2021-01-27 Thread Johan Hovold
On Wed, Jan 27, 2021 at 12:03:58AM +0530, Anant Thazhemadam wrote: > The newer usb_control_msg_{send|recv}() API are an improvement on the > existing usb_control_msg() as it ensures that a short read/write is treated > as an error, data can be used off the stack, and raw usb pipes need not be >

Re: [PATCH v5] gpiolib: Bind gpio_device to a driver to enable fw_devlink=on by default

2021-01-27 Thread Greg Kroah-Hartman
On Wed, Jan 27, 2021 at 03:31:17PM +0100, Bartosz Golaszewski wrote: > On Wed, Jan 27, 2021 at 3:22 PM Greg Kroah-Hartman > wrote: > > > > On Fri, Jan 22, 2021 at 11:35:59AM -0800, Saravana Kannan wrote: > > > There are multiple instances of GPIO device tree nodes of the form: > > > > > > foo { >

[PATCH V3 0/6] x86: don't abuse tss.sp1

2021-01-27 Thread Lai Jiangshan
From: Lai Jiangshan In x86_64, tss.sp1 is reused as cpu_current_top_of_stack. But we can directly use percpu since CR3 and gs_base is correct when it is used. In x86_32, tss.sp1 is resued as thread.sp0 in three places in entry code. We have the correct CR3 and %fs at two of the places. The

[PATCH 3/8] scsi: ufshpb: Add region's reads counter

2021-01-27 Thread Avri Altman
In host control mode, reads are the major source of activation trials. Keep track of those reads counters, for both active as well inactive regions. We reset the read counter upon write - we are only interested in "clean" reads. less intuitive however, is that we also reset it upon region's

Re: [PATCH v3 1/2] dts: ti: k3-j7200-main: Add support for zeroth instance of GPIO subsystem

2021-01-27 Thread Aswath Govindraju
Hi Nishanth, On 27/01/21 8:42 pm, Nishanth Menon wrote: > On 20:38-20210127, Aswath Govindraju wrote: >> Add support for the zeroth instance of GPIO subsystem in the main domain. >> >> Signed-off-by: Aswath Govindraju > > > I really dont want to pick up one patch

Re: [PATCH v4] tracing: precise log info for kretprobe addr err

2021-01-27 Thread Masami Hiramatsu
Hi Jianlin, Now as you reported, this must be fixed with actual bug which prevent kretprobe events on unloaded module. I'll send another one which also fix this issue. Thank you, On Wed, 27 Jan 2021 23:15:07 +0800 Jianlin Lv wrote: > When trying to create kretprobe with the wrong function

Re: [PATCH v2 00/15] drm/vc4: hdmi: Add CEC support for the BCM2711

2021-01-27 Thread Hans Verkuil
On 18/01/2021 14:55, Hans Verkuil wrote: > On 12/01/2021 16:24, Hans Verkuil wrote: >> Hi Maxime, >> >> On 11/01/2021 15:22, Maxime Ripard wrote: >>> Hi, >>> >>> Here's a series introducing the CEC support for the BCM2711 found on the >>> RaspberryPi4. >>> >>> The BCM2711 HDMI controller uses a

[PATCH] drm/msm/mdp5: Fix wait-for-commit for cmd panels

2021-01-27 Thread Iskren Chernev
Before the offending commit in msm_atomic_commit_tail wait_flush was called once per frame, after the commit was submitted. After it wait_flush is also called at the beginning to ensure previous potentially async commits are done. For cmd panels the source of wait_flush is a ping-pong irq

Re: kprobes broken since 0d00449c7a28 ("x86: Replace ist_enter() with nmi_enter()")

2021-01-27 Thread Masami Hiramatsu
On Thu, 28 Jan 2021 00:13:53 +0900 Masami Hiramatsu wrote: > Hi Nikolay, > > On Wed, 27 Jan 2021 15:43:29 +0200 > Nikolay Borisov wrote: > > > Hello, > > > > I'm currently seeing latest Linus' master being somewhat broken w.r.t > > krpobes. In particular I have the following test-case: > >

Re: [PATCH] media: i2c: imx219: Implement V4L2_CID_LINK_FREQ control

2021-01-27 Thread Dave Stevenson
Hi Andrey On Tue, 26 Jan 2021 at 15:55, Andrey Konovalov wrote: > > Hi Dave, > > On 26.01.2021 16:01, Dave Stevenson wrote: > > Hi Andrey > > > > On Tue, 26 Jan 2021 at 07:50, Andrey Konovalov > > wrote: > >> > >> This control is needed for imx219 driver, as the link frequency > >> is

Re: [PATCH] rtlwifi: use tasklet_setup to initialize rx_work_tasklet

2021-01-27 Thread Emil Renner Berthing
On Wed, 27 Jan 2021 at 16:20, Kalle Valo wrote: > > Willem de Bruijn writes: > > > On Wed, Jan 27, 2021 at 5:23 AM Emil Renner Berthing > > wrote: > >> > >> In commit d3ccc14dfe95 most of the tasklets in this driver was > >> updated to the new API. However for the rx_work_tasklet only the > >>

Re: [PATCH 7/8] scsi: ufshpb: Add "Cold" regions timer

2021-01-27 Thread Greg KH
On Wed, Jan 27, 2021 at 05:12:16PM +0200, Avri Altman wrote: > In order not to hang on to “cold” regions, we shall inactivate a > region that has no READ access for a predefined amount of time - > READ_TO_MS. For that purpose we shall monitor the active regions list, > polling it on every

RE: [EXT] Re: [PATCH v4 net-next 19/19] net: mvpp2: add TX FC firmware check

2021-01-27 Thread Stefan Chulski
> > You can devmem 0xF2400240(Device ID Status Register). > > #define A8040_B0_DEVICE_ID 0x8045 > > #define A8040_AX_DEVICE_ID 0x8040 > > #define A7040_B0_DEVICE_ID 0x7045 > > #define A7040_AX_DEVICE_ID 0x7040 > > #define A3900_A1_DEVICE_ID 0x6025 > > #define

Re: [PATCH] PCI: xilinx-nwl: Enable coherenct PCIe traffic using CCI

2021-01-27 Thread Bjorn Helgaas
On Wed, Jan 27, 2021 at 05:03:12AM +, Bharat Kumar Gogada wrote: > > On Thu, Jan 21, 2021 at 03:29:16PM +0530, Bharat Kumar Gogada wrote: > Here is the CCI spec > https://developer.arm.com/documentation/ddi0470/k/preface I'm sure it was obvious, but please include this in the commit log as

[PATCH 1/8] scsi: ufshpb: Cache HPB Control mode on init

2021-01-27 Thread Avri Altman
We will use it later, when we'll need to differentiate between device and host control modes. Signed-off-by: Avri Altman --- drivers/scsi/ufs/ufshpb.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/ufs/ufshpb.c b/drivers/scsi/ufs/ufshpb.c index

[PATCH v2] ASoC: qcom: lpass-cpu: Remove bit clock state check

2021-01-27 Thread Srinivasa Rao Mandadapu
No need of BCLK state maintenance from driver side as clock_enable and clk_disable API's maintaing state counter. One of the major issue was spotted when Headset jack inserted while playback continues, due to same PCM device node opens twice for playaback/capture and closes once for capture and

Re: [PATCH v3 2/2] arm64: dts: ti: k3-j7200: Add support for higher speed modes in MMCSD subsystems

2021-01-27 Thread Aswath Govindraju
Hi Nishanth, On 27/01/21 8:44 pm, Nishanth Menon wrote: > On 20:38-20210127, Aswath Govindraju wrote: >> The following speed modes are now supported in J7200 SoC, >> - HS200 and HS400 modes at 1.8 V card voltage, in MMCSD0 subsystem [1]. >> - UHS-I speed modes in MMCSD1 sub

<    5   6   7   8   9   10   11   12   13   14   >