Re: [PATCHv2 0/4] perf/core: Add support to exclude kernel mode PMU tracing

2021-03-04 Thread Andi Kleen
Sai Prakash Ranjan writes: > > "Consider a system where disk contents are encrypted and the encryption > key is set up by the user when mounting the file system. From that point > on the encryption key resides in the kernel. It seems reasonable to > expect that the disk encryption key be

Re: [PATCH v3 1/2] dt-bindings: rng: bcm2835: document reset support

2021-03-04 Thread Rob Herring
On Thu, Mar 4, 2021 at 6:07 AM Nicolas Saenz Julienne wrote: > > Hi Alvaro, > > On Tue, 2021-02-23 at 18:00 +0100, Álvaro Fernández Rojas wrote: > > Some devices may need to perform a reset before using the RNG, such as the > > BCM6368. > > > > Signed-off-by: Álvaro Fernández Rojas > > --- > >

Re: [PATCH] net: mellanox: mlx5: fix error return code in mlx5_fpga_device_start()

2021-03-04 Thread Heiner Kallweit
On 04.03.2021 15:18, Jia-Ju Bai wrote: > When mlx5_is_fpga_lookaside() returns a non-zero value, no error > return code is assigned. > To fix this bug, err is assigned with -EINVAL as error return code. > To me it looks like the current behavior is intentional. Did you verify that it's actually

Re: [PATCH] ipc/msg: add msgsnd_timed and msgrcv_timed syscall for system V message queue

2021-03-04 Thread Manfred Spraul
Hi Eric, On 3/4/21 2:12 AM, Andrew Morton wrote: On Tue, 23 Feb 2021 23:11:43 +0800 Eric Gao wrote: sometimes, we need the msgsnd or msgrcv syscall can return after a limited time, so that the business thread do not be blocked here all the time. In this case, I add the msgsnd_timed and

RE: [RFC PATCH 2/5] char: rpmb: provide a user space interface

2021-03-04 Thread Winkler, Tomas
> > Winkler, Tomas writes: > > >> "Winkler, Tomas" writes: > >> > >> >> The user space API is achieved via a number of synchronous IOCTLs. > >> >> > >> >> * RPMB_IOC_VER_CMD - simple versioning API > >> >> * RPMB_IOC_CAP_CMD - query of underlying capabilities > >> >> *

Re: [PATCH v2 1/3] regmap-irq: Add support for peripheral offsets

2021-03-04 Thread Mark Brown
On Thu, Mar 04, 2021 at 10:27:35AM -0800, Guru Das Srinagesh wrote: > On Thu, Nov 12, 2020 at 07:33:12PM +, Mark Brown wrote: > > supposed to do. Nothing here says what POLARITY_HI and POLARITY_LO are, > > how they interact or anything. > The POLARITY_HI and POLARITY_LO registers were

Re: [PATCH 1/4] platform/x86: simatic-ipc: add main driver for Siemens devices

2021-03-04 Thread Henning Schild
Am Thu, 4 Mar 2021 12:11:12 +0200 schrieb Andy Shevchenko : > On Thu, Mar 4, 2021 at 8:36 AM Henning Schild > wrote: > > > > From: Henning Schild > > > > This mainly implements detection of these devices and will allow > > secondary drivers to work on such machines. > > > > The identification

Re: [PATCH v3 24/32] KVM: arm64: Reserve memory for host stage 2

2021-03-04 Thread Will Deacon
On Tue, Mar 02, 2021 at 02:59:54PM +, Quentin Perret wrote: > Extend the memory pool allocated for the hypervisor to include enough > pages to map all of memory at page granularity for the host stage 2. > While at it, also reserve some memory for device mappings. > > Signed-off-by: Quentin

Re: [PATCH v3 25/32] KVM: arm64: Sort the hypervisor memblocks

2021-03-04 Thread Will Deacon
On Tue, Mar 02, 2021 at 02:59:55PM +, Quentin Perret wrote: > We will soon need to check if a Physical Address belongs to a memblock > at EL2, so make sure to sort them so this can be done efficiently. > > Signed-off-by: Quentin Perret > --- > arch/arm64/kvm/hyp/reserved_mem.c | 19

[PATCH v3] amba: Remove deferred device addition

2021-03-04 Thread Saravana Kannan
The uevents generated for an amba device need PID and CID information that's available only when the amba device is powered on, clocked and out of reset. So, if those resources aren't available, the information can't be read to generate the uevents. To workaround this requirement, if the resources

[PATCH] pinctrl: qcom: lpass lpi: use default pullup/strength values

2021-03-04 Thread Jonathan Marek
If these fields are not set in dts, the driver will use these variables uninitialized to set the fields. Not only will it set garbage values for these fields, but it can overflow into other fields and break those. In the current sm8250 dts, the dmic01 entries do not have a pullup setting, and

Re: [PATCH v3 23/32] KVM: arm64: Make memcache anonymous in pgtable allocator

2021-03-04 Thread Will Deacon
On Tue, Mar 02, 2021 at 02:59:53PM +, Quentin Perret wrote: > The current stage2 page-table allocator uses a memcache to get > pre-allocated pages when it needs any. To allow re-using this code at > EL2 which uses a concept of memory pools, make the memcache argument of >

Re: [PATCH 0/4] add device drivers for Siemens Industrial PCs

2021-03-04 Thread Henning Schild
Am Thu, 4 Mar 2021 12:20:22 +0200 schrieb Andy Shevchenko : > On Thu, Mar 4, 2021 at 12:19 PM Andy Shevchenko > wrote: > > On Thu, Mar 4, 2021 at 9:29 AM Henning Schild > > wrote: > > > I have given a few comments here and there, so please check the > > entire series and address them in

Re: [PATCH v3 22/32] KVM: arm64: Refactor __populate_fault_info()

2021-03-04 Thread Will Deacon
On Tue, Mar 02, 2021 at 02:59:52PM +, Quentin Perret wrote: > Refactor __populate_fault_info() to introduce __get_fault_info() which > will be used once the host is wrapped in a stage 2. > > Signed-off-by: Quentin Perret > --- > arch/arm64/kvm/hyp/include/hyp/switch.h | 37

Re: [PATCH v3 20/32] KVM: arm64: Refactor kvm_arm_setup_stage2()

2021-03-04 Thread Will Deacon
On Tue, Mar 02, 2021 at 02:59:50PM +, Quentin Perret wrote: > In order to re-use some of the stage 2 setup code at EL2, factor parts > of kvm_arm_setup_stage2() out into separate functions. > > No functional change intended. > > Signed-off-by: Quentin Perret > --- >

Re: [perf] perf_fuzzer causes unchecked MSR access error

2021-03-04 Thread Liang, Kan
On 3/3/2021 3:22 PM, Vince Weaver wrote: On Wed, 3 Mar 2021, Liang, Kan wrote: We never use bit 58. It should be a new issue. Actually, KVM uses it. They create a fake event called VLBR_EVENT, which uses bit 58. It's introduced from the commit 097e4311cda9 ("perf/x86: Add constraint to

Re: [PATCH v1] powerpc: Include running function as first entry in save_stack_trace() and friends

2021-03-04 Thread Segher Boessenkool
On Thu, Mar 04, 2021 at 09:54:44AM -0800, Nick Desaulniers wrote: > On Thu, Mar 4, 2021 at 9:42 AM Marco Elver wrote: > include/linux/compiler.h:246: > prevent_tail_call_optimization > > commit a9a3ed1eff36 ("x86: Fix early boot crash on gcc-10, third try") That is much heavier than needed (an

Re: [GIT PULL] sound fixes for 5.12-rc2

2021-03-04 Thread pr-tracker-bot
The pull request you sent on Thu, 04 Mar 2021 10:49:59 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git > tags/sound-5.12-rc2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/43df5242af4ed67e8811257ab1bfe6a07e4a5858 Thank you! -- Deet-doot-dot,

Re: [GIT PULL] KVM changes for 5.12-rc2

2021-03-04 Thread pr-tracker-bot
The pull request you sent on Wed, 3 Mar 2021 10:10:07 -0500: > https://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/cee407c5cc427a7d9b21ee964fbda613e368bdff Thank you! -- Deet-doot-dot, I am a bot.

Re: [GIT PULL] xen: branch for v5.12-rc2

2021-03-04 Thread pr-tracker-bot
The pull request you sent on Thu, 4 Mar 2021 12:00:53 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git > for-linus-5.12b-rc2-tag has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/c5a58f877ca645a3303f7a57476f2de837fdb97a Thank you! -- Deet-doot-dot,

[PATCH] PM: domains: Don't runtime resume devices at genpd_prepare()

2021-03-04 Thread Ulf Hansson
Runtime resuming a device upfront in the genpd_prepare() callback, to check if there is a wakeup pending for it, seems like an unnecessary thing to do. The PM core already manages these kind of things in a common way in __device_suspend(), via calling pm_runtime_barrier() and pm_wakeup_pending().

{standard input}:5625: Error: Unable to parse register name $fp

2021-03-04 Thread kernel test robot
: 10 months ago config: mips-randconfig-p002-20210304 (attached as .config) compiler: mips64el-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross

Re: [PATCH v3 16/32] KVM: arm64: Elevate hypervisor mappings creation at EL2

2021-03-04 Thread Will Deacon
On Tue, Mar 02, 2021 at 02:59:46PM +, Quentin Perret wrote: > Previous commits have introduced infrastructure to enable the EL2 code > to manage its own stage 1 mappings. However, this was preliminary work, > and none of it is currently in use. > > Put all of this together by elevating the

Re: [PATCH v2] sched: Optimize __calc_delta.

2021-03-04 Thread Sedat Dilek
On Thu, Mar 4, 2021 at 7:24 PM Sedat Dilek wrote: > > On Thu, Mar 4, 2021 at 6:34 PM 'Nick Desaulniers' via Clang Built > Linux wrote: > > > > On Wed, Mar 3, 2021 at 2:48 PM Josh Don wrote: > > > > > > From: Clement Courbet > > > > > > A significant portion of __calc_delta time is spent in the

Re: [PATCH v3] selinux: measure state and policy capabilities

2021-03-04 Thread Lakshmi Ramasubramanian
On 2/12/21 8:37 AM, Lakshmi Ramasubramanian wrote: Hi Paul, SELinux stores the configuration state and the policy capabilities in kernel memory. Changes to this data at runtime would have an impact on the security guarantees provided by SELinux. Measuring this data through IMA subsystem

Re: [PATCH v2] dma-buf: system_heap: do not warn for costly allocation

2021-03-04 Thread John Stultz
On Wed, Feb 10, 2021 at 6:33 PM Minchan Kim wrote: > > Dmabuf system_heap allocation logic starts with the highest necessary > allocation order before falling back to lower orders. The requested > order can be higher than PAGE_ALLOC_COSTLY_ODER and failures to > allocate will flood dmesg with

Re: [PATCH 5/7] printk: Make %pS and friends print module build ID

2021-03-04 Thread Stephen Boyd
Quoting Matthew Wilcox (2021-03-04 09:00:52) > On Mon, Mar 01, 2021 at 09:47:47AM -0800, Stephen Boyd wrote: > > Example: > > > > WARNING: CPU: 4 PID: 3255 at drivers/misc/lkdtm/bugs.c:83 > > lkdtm_WARNING+0x28/0x30 [lkdtm] (ed5019fdf5e53be37cb1ba7899292d7e143b259e) > > Would the first 12

Re: [PATCH] KVM: arm64: Disable LTO in hyp

2021-03-04 Thread Marc Zyngier
On Thu, 04 Mar 2021 18:45:44 +, Sami Tolvanen wrote: > > allmodconfig + CONFIG_LTO_CLANG_THIN=y fails to build due to following > linker errors: > > ld.lld: error: irqbypass.c:(function __guest_enter: .text+0x21CC): I assume this message is only an oddity, right? Because __guest_enter()

Re: [PATCH 0/4] add device drivers for Siemens Industrial PCs

2021-03-04 Thread Henning Schild
Thanks Andy, Am Thu, 4 Mar 2021 12:19:44 +0200 schrieb Andy Shevchenko : > On Thu, Mar 4, 2021 at 9:29 AM Henning Schild > wrote: > > > This series adds support for watchdogs and leds of several x86 > > devices from Siemens. > > > > It is structured with a platform driver that mainly does > >

Re: [RFC PATCH v2 00/13] Add futex2 syscall

2021-03-04 Thread André Almeida
Hi Ted, Às 12:01 de 04/03/21, Theodore Ts'o escreveu: On Wed, Mar 03, 2021 at 09:42:06PM -0300, André Almeida wrote: ** Performance - For comparing futex() and futex2() performance, I used the artificial benchmarks implemented at perf (wake, wake-parallel, hash and requeue). The

Re: [PATCH] platform/surface: aggregator: Make SSAM_DEFINE_SYNC_REQUEST_x define static functions

2021-03-04 Thread Hans de Goede
Hi, On 3/4/21 8:05 PM, Maximilian Luz wrote: > The SSAM_DEFINE_SYNC_REQUEST_x() macros are intended to reduce > boiler-plate code for SSAM request definitions by defining a wrapper > function for the specified request. The client device variants of those > macros, i.e.

Re: [PATCH RFC] gcc-plugins: Handle GCC version mismatch for OOT modules

2021-03-04 Thread Linus Torvalds
On Thu, Mar 4, 2021 at 7:36 AM Masahiro Yamada wrote: > > All the kernel-space objects are rebuilt > when the compiler is upgraded. I very much NAK'ed that one. Why did that go in? Or maybe I NAK'ed another version of it (I think the one I NAK'ed was from Josh), and didn't realize that there

Re: [PATCH 5/7] printk: Make %pS and friends print module build ID

2021-03-04 Thread Stephen Boyd
Quoting Matthew Wilcox (2021-03-04 09:19:40) > On Mon, Mar 01, 2021 at 09:43:19PM -0500, Steven Rostedt wrote: > > On Mon, 1 Mar 2021 09:47:47 -0800 > > Stephen Boyd wrote: > > > > > The %pS printk format (among some others) is used to print kernel > > > addresses symbolically. When the kernel

Re: [PATCH 1/2] Makefile: Remove '--gcc-toolchain' flag

2021-03-04 Thread Fāng-ruì Sòng
On Wed, Mar 3, 2021 at 3:07 PM Fangrui Song wrote: > > > On 2021-03-03, Masahiro Yamada wrote: > >Hi. > > > >On Wed, Mar 3, 2021 at 6:44 AM Fangrui Song wrote: > >> > >> Reviewed-by: Fangrui Song > >> > >> Thanks for the clean-up! > >> --gcc-toolchain= is an obsscure way searching for GCC

Re: [PATCH net] net: usb: cdc_ncm: don't spew notifications

2021-03-04 Thread Grant Grundler
On Wed, Jan 20, 2021 at 5:04 PM Jakub Kicinski wrote: > > On Wed, 20 Jan 2021 03:38:32 + Hayes Wang wrote: > > Grant Grundler > > > Sent: Wednesday, January 20, 2021 9:12 AM > > > Subject: [PATCH net] net: usb: cdc_ncm: don't spew notifications > > > > > > RTL8156 sends notifications about

Re: [PATCH v5 08/16] rpmsg: glink: add sendto and trysendto ops

2021-03-04 Thread Mathieu Poirier
On Fri, Feb 19, 2021 at 12:14:53PM +0100, Arnaud Pouliquen wrote: > Implement the sendto ops to support the future rpmsg_char update for the > vitio backend support. Add a new line, otherwise it is very easy to read. > The use of sendto in rpmsg_char is needed as a destination address is >

[PATCH v3 10/11] kentry: Check that syscall entries and syscall exits match

2021-03-04 Thread Andy Lutomirski
If arch code calls the wrong kernel entry helpers, syscall entries and exits can get out of sync. Add a new field to task_struct to track the syscall state and validate that it transitions correctly. Signed-off-by: Andy Lutomirski --- include/linux/sched.h | 4 init/init_task.c | 8

Re: XDP socket rings, and LKMM litmus tests

2021-03-04 Thread Paul E. McKenney
On Thu, Mar 04, 2021 at 04:44:34PM +0100, maranget wrote: > > > > On 3 Mar 2021, at 21:22, Alan Stern wrote: > > > >>> > >>> Local variables absolutely should be treated just like CPU registers, if > >>> possible. In fact, the compiler has the option of keeping local > >>> variables stored

[PATCH v3 07/11] kentry: Make entry/exit_to_user_mode() arm64-only

2021-03-04 Thread Andy Lutomirski
exit_to_user_mode() does part, but not all, of the exit-to-user-mode work. It's used only by arm64, and arm64 should stop using it (hint, hint!). Compile it out on other architectures to minimize the chance of error. enter_from_user_mode() is a legacy way to spell kentry_enter_from_user_mode().

[PATCH v3 11/11] kentry: Verify kentry state in instrumentation_begin/end()

2021-03-04 Thread Andy Lutomirski
Calling instrumentation_begin() and instrumentation_end() when kentry thinks the CPU is in user mode is an error. Verify the kentry state when instrumentation_begin/end() are called. Add _nocheck() variants to skip verification to avoid WARN() generating extra kentry warnings. Signed-off-by:

[PATCH v3 08/11] entry: Make CONFIG_DEBUG_ENTRY available outside x86

2021-03-04 Thread Andy Lutomirski
In principle, the generic entry code is generic, and the goal is to use it in many architectures once it settles down more. Move CONFIG_DEBUG_ENTRY to the generic config so that it can be used in the generic entry code and not just in arch/x86. Disable it on arm64. arm64 uses some but not all

[PATCH v3 09/11] kentry: Add debugging checks for proper kentry API usage

2021-03-04 Thread Andy Lutomirski
It's quite easy to mess up kentry calls. Add debgging checks that kentry transitions to and from user mode match up and that kentry_nmi_enter() and kentry_nmi_exit() match up. Checking full matching of kentry_enter() with kentry_exit() needs per-task state. Signed-off-by: Andy Lutomirski ---

[PATCH v3 05/11] x86/entry: Convert ret_from_fork to C

2021-03-04 Thread Andy Lutomirski
ret_from_fork is written in asm, slightly differently, for x86_32 and x86_64. Convert it to C. This is a straight conversion without any particular cleverness. As a further cleanup, the code that sets up the ret_from_fork argument registers could be adjusted to put the arguments in the correct

[PATCH v3 06/11] kentry: Simplify the common syscall API

2021-03-04 Thread Andy Lutomirski
The new common syscall API had a large and confusing API surface. Simplify it. Now there is exactly one way to use it. It's a bit more verbose than the old way for the simple x86_64 native case, but it's much easier to use right, and the diffstat should speak for itself. Signed-off-by: Andy

[PATCH v3 03/11] x86/dumpstack: Remove unnecessary range check fetching opcode bytes

2021-03-04 Thread Andy Lutomirski
copy_from_user_nmi() validates that the pointer is in the user range, so there is no need for an extra check in copy_code(). Signed-off-by: Andy Lutomirski --- arch/x86/kernel/dumpstack.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/arch/x86/kernel/dumpstack.c

[PATCH v3 02/11] kentry: Rename irqentry to kentry

2021-03-04 Thread Andy Lutomirski
The common entry functions are mostly named irqentry, and this is confusing. They are used for syscalls, exceptions, NMIs and, yes, IRQs. Call them kentry instead, since they are supposed to be usable for any entry to the kernel. This path doesn't touch the .irqentry section -- someone can

[PATCH v3 00/11] kentry: A stable bugfix and a bunch of improvements

2021-03-04 Thread Andy Lutomirski
I noticed a little bug in fast compat syscalls. I got a bit carried away fixing it. This renames the irqentry stuff to kentry, improves (IMNSHO) the API, and adds lots of debugging. It also tweaks the unwinder wrt ret_from_fork and rewrites ret_from_fork in C. I did this because the kentry

[PATCH v3 04/11] x86/kthread,dumpstack: Set task_pt_regs->cs.RPL=3 for kernel threads

2021-03-04 Thread Andy Lutomirski
For kernel threads, task_pt_regs is currently all zeros, a valid user state (if kernel_execve() has been called), or some combination thereof during execution of kernel_execve(). If a stack trace is printed, the unwinder might get confused and treat task_pt_regs as a kernel state. Indeed,

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

2021-03-04 Thread Mathieu Poirier
On Fri, Feb 19, 2021 at 12:14:58PM +0100, Arnaud Pouliquen wrote: > Introduce the __rpmsg_chrdev_create_eptdev internal function that returns > the rpmsg_eptdev context structure. Add newlines between paragraphs. > This patch prepares the introduction of a RPMsg device for the > char device. the

[PATCH] platform/surface: aggregator: Make SSAM_DEFINE_SYNC_REQUEST_x define static functions

2021-03-04 Thread Maximilian Luz
The SSAM_DEFINE_SYNC_REQUEST_x() macros are intended to reduce boiler-plate code for SSAM request definitions by defining a wrapper function for the specified request. The client device variants of those macros, i.e. SSAM_DEFINE_SYNC_REQUEST_CL_x() in particular rely on the multi-device (MD)

[PATCH v3 01/11] x86/entry: Fix entry/exit mismatch on failed fast 32-bit syscalls

2021-03-04 Thread Andy Lutomirski
On a 32-bit fast syscall that fails to read its arguments from user memory, the kernel currently does syscall exit work but not syscall entry work. This confuses audit and ptrace. For example: $ ./tools/testing/selftests/x86/syscall_arg_fault_32 ... strace: pid 264258: entering,

Re: XDP socket rings, and LKMM litmus tests

2021-03-04 Thread Paul E. McKenney
On Thu, Mar 04, 2021 at 10:35:24AM -0500, Alan Stern wrote: > On Wed, Mar 03, 2021 at 09:04:07PM -0800, Paul E. McKenney wrote: > > On Wed, Mar 03, 2021 at 10:21:01PM -0500, Alan Stern wrote: > > > On Wed, Mar 03, 2021 at 02:03:48PM -0800, Paul E. McKenney wrote: > > > > On Wed, Mar 03, 2021 at

Re: Broken kretprobe stack traces

2021-03-04 Thread Daniel Xu
On Wed, Mar 3, 2021, at 6:18 PM, Daniel Xu wrote: > On Wed, Mar 03, 2021 at 03:37:40PM -0500, Steven Rostedt wrote: > > On Wed, 03 Mar 2021 12:13:08 -0800 > > "Daniel Xu" wrote: > > > > > On Wed, Mar 3, 2021, at 11:58 AM, Daniel Xu wrote: > > > > On Wed, Mar 03, 2021 at 09:26:04AM -0500, Steven

Re: [PATCH] signal: Allow RT tasks to cache one sigqueue struct

2021-03-04 Thread Eric W. Biederman
Thomas Gleixner writes: > On Thu, Mar 04 2021 at 09:11, Sebastian Andrzej Siewior wrote: >> On 2021-03-03 16:09:05 [-0600], Eric W. Biederman wrote: >>> Sebastian Andrzej Siewior writes: >>> >>> > From: Thomas Gleixner >>> > >>> > Allow realtime tasks to cache one sigqueue in task struct.

Re: [RFC PATCH 15/18] cgroup: Introduce ioasids controller

2021-03-04 Thread Jason Gunthorpe
On Thu, Mar 04, 2021 at 11:01:44AM -0800, Jacob Pan wrote: > > For something like qemu I'd expect to put the qemu process in a cgroup > > with 1 PASID. Who cares what qemu uses the PASID for, or how it was > > allocated? > > For vSVA, we will need one PASID per guest process. But that is up to

[PATCH v2 3/4] ALSA: hda/cirrus: Add jack detect interrupt support from CS42L42 companion codec.

2021-03-04 Thread Vitaly Rodionov
In the case of CS8409 we do not have unsol events from NID's 0x24 and 0x34 where hs mic and hp are connected. Companion codec CS42L42 will generate interrupt via gpio 4 to notify jack events. We have to overwrite standard snd_hda_jack_unsol_event(), read CS42L42 jack detect status registers and

[PATCH v2 1/4] ALSA: hda/cirrus: Increase AUTO_CFG_MAX_INS from 8 to 18

2021-03-04 Thread Vitaly Rodionov
In preparation to support Cirrus Logic CS8409 HDA bridge on new Dell platforms it is nessasary to increase AUTO_CFG_MAX_INS and AUTO_CFG_NUM_INPUTS values. Currently AUTO_CFG_MAX_INS is limited to 8, but Cirrus Logic HDA bridge CS8409 has 18 input pins, 16 ASP receivers and 2 DMIC inputs. We have

[PATCH v2 0/4] ALSA: hda/cirrus: Add support for CS8409 HDA bridge and CS42L42 companion codec

2021-03-04 Thread Vitaly Rodionov
Dell's laptops Inspiron 3500, Inspiron 3501, Inspiron 3505 are using Cirrus Logic CS8409 HDA bridge with CS42L42 companion codec. The CS8409 is a multichannel HD audio routing controller. CS8409 includes support for four channels of digital microphone data and two bidirectional ASPs for up to 32

[PATCH v2 4/4] ALSA: hda/cirrus: Add Headphone and Headset MIC Volume Control

2021-03-04 Thread Vitaly Rodionov
From: Stefan Binding CS8409 does not support Volume Control for NIDs 0x24 (the Headphones), or 0x34 (The Headset Mic). However, CS42L42 codec does support gain control for both. We can add support for Volume Controls, by writing the the CS42L42 regmap via i2c commands, using custom info, get and

[PATCH v2 2/4] ALSA: hda/cirrus: Add support for CS8409 HDA bridge and CS42L42 companion codec.

2021-03-04 Thread Vitaly Rodionov
Dell's laptops Inspiron 3500, Inspiron 3501, Inspiron 3505 are using Cirrus Logic CS8409 HDA bridge with CS42L42 companion codec. The CS8409 is a multichannel HD audio routing controller. CS8409 includes support for four channels of digital microphone data and two bidirectional ASPs for up to 32

Re: [PATCH v1] powerpc: Include running function as first entry in save_stack_trace() and friends

2021-03-04 Thread Marco Elver
On Thu, 4 Mar 2021 at 19:51, Mark Rutland wrote: > On Thu, Mar 04, 2021 at 07:22:53PM +0100, Marco Elver wrote: > > On Thu, 4 Mar 2021 at 19:02, Mark Rutland wrote: > > > On Thu, Mar 04, 2021 at 06:25:33PM +0100, Marco Elver wrote: > > > > On Thu, Mar 04, 2021 at 04:59PM +, Mark Rutland

Re: [PATCH] signal: Allow RT tasks to cache one sigqueue struct

2021-03-04 Thread Eric W. Biederman
Sebastian Andrzej Siewior writes: > On 2021-03-03 16:09:05 [-0600], Eric W. Biederman wrote: >> Sebastian Andrzej Siewior writes: >> >> > From: Thomas Gleixner >> > >> > Allow realtime tasks to cache one sigqueue in task struct. This avoids an >> > allocation which can increase the latency or

Re: [RFC PATCH 15/18] cgroup: Introduce ioasids controller

2021-03-04 Thread Jacob Pan
Hi Jason, On Thu, 4 Mar 2021 13:54:02 -0400, Jason Gunthorpe wrote: > On Thu, Mar 04, 2021 at 09:46:03AM -0800, Jacob Pan wrote: > > > Right, I was assuming have three use cases of IOASIDs: > > 1. host supervisor SVA (not a concern, just one init_mm to bind) > > 2. host user SVA, either one

Re: [PATCH 3/4] ALSA: hda/cirrus: Add jack detect interrupt support from CS42L42 companion codec.

2021-03-04 Thread Vitaly Rodionov
On 04/03/2021 1:45 pm, Takashi Iwai wrote: On Wed, 03 Mar 2021 19:29:58 +0100, Vitaly Rodionov wrote: @@ -1243,6 +1258,8 @@ static int patch_cs4213(struct hda_codec *codec) #define CIR_I2C_QWRITE0x005D #define CIR_I2C_QREAD 0x005E +static struct mutex cs8409_i2c_mux; Any reason

Re: [RFC PATCH v2 00/13] Add futex2 syscall

2021-03-04 Thread André Almeida
Hi Peter, Às 02:44 de 04/03/21, Peter Oskolkov escreveu: On Wed, Mar 3, 2021 at 5:22 PM André Almeida wrote: Hi, This patch series introduces the futex2 syscalls. * FAQ ** "And what's about FUTEX_64?" By supporting 64 bit futexes, the kernel structure for futex would need to have a

Re: A note on the 5.12-rc1 tag

2021-03-04 Thread Geert Uytterhoeven
Hi David, On Thu, Mar 4, 2021 at 5:56 PM David Laight wrote: > > On Thu, Mar 4, 2021 at 1:59 PM Linus Torvalds > > wrote: > > > And, as far as I know, all the normal distributions set things up with > > > swap partitions, not files, because honestly, swapfiles tend to be > > > slower and have

Re: [PATCH v2 2/2] mm/memcg: set memcg when split page

2021-03-04 Thread Shakeel Butt
On Wed, Mar 3, 2021 at 11:57 PM Zhou Guanghui wrote: > > As described in the split_page function comment, for the non-compound > high order page, the sub-pages must be freed individually. If the > memcg of the fisrt page is valid, the tail pages cannot be uncharged > when be freed. > > For

Re: [PATCH v2 1/2] mm/memcg: rename mem_cgroup_split_huge_fixup to split_page_memcg

2021-03-04 Thread Shakeel Butt
On Wed, Mar 3, 2021 at 11:55 PM Zhou Guanghui wrote: > > Rename mem_cgroup_split_huge_fixup to split_page_memcg and explicitly > pass in page number argument. > > In this way, the interface name is more common and can be used by > potential users. In addition, the complete info(memcg and flag) of

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

2021-03-04 Thread Mathieu Poirier
On Fri, Feb 19, 2021 at 12:14:58PM +0100, Arnaud Pouliquen wrote: > 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

Re: [PATCH V3 XRT Alveo 03/18] fpga: xrt: xclbin file helper functions

2021-03-04 Thread Lizhi Hou
Hi Moritz, On 03/02/2021 07:14 AM, Moritz Fischer wrote: On Mon, Mar 01, 2021 at 04:25:37PM -0800, Lizhi Hou wrote: Hi Tom, On 02/28/2021 08:54 AM, Tom Rix wrote: CAUTION: This message has originated from an External Source. Please use proper judgment and caution when opening

Re: [PATCH v1] powerpc: Include running function as first entry in save_stack_trace() and friends

2021-03-04 Thread Mark Rutland
On Thu, Mar 04, 2021 at 07:22:53PM +0100, Marco Elver wrote: > On Thu, 4 Mar 2021 at 19:02, Mark Rutland wrote: > > On Thu, Mar 04, 2021 at 06:25:33PM +0100, Marco Elver wrote: > > > On Thu, Mar 04, 2021 at 04:59PM +, Mark Rutland wrote: > > > > On Thu, Mar 04, 2021 at 04:30:34PM +0100, Marco

Re: [tip: irq/core] genirq: Add IRQF_NO_AUTOEN for request_irq/nmi()

2021-03-04 Thread Thomas Gleixner
Dmitry, On Thu, Mar 04 2021 at 11:57, Thomas Gleixner wrote: > On Thu, Mar 04 2021 at 10:53, tip-bot wrote: > >> The following commit has been merged into the irq/core branch of tip: >> >> Commit-ID: e749df1bbd23f4472082210650514548d8a39e9b >> Gitweb: >>

Re: [PATCH] scsi: ibmvfc: Switch to using the new API kobj_to_dev()

2021-03-04 Thread Tyrel Datwyler
On 3/4/21 1:28 AM, Jiapeng Chong wrote: > Fix the following coccicheck warnings: > > ./drivers/scsi/ibmvscsi/ibmvfc.c:3483:60-61: WARNING opportunity for > kobj_to_dev(). > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong Acked-by: Tyrel Datwyler > --- >

Re: [patch 2/7] drm/vmgfx: Replace kmap_atomic()

2021-03-04 Thread Zack Rusin
> On Mar 3, 2021, at 08:20, Thomas Gleixner wrote: > > From: Thomas Gleixner > > There is no reason to disable pagefaults and preemption as a side effect of > kmap_atomic_prot(). > > Use kmap_local_page_prot() instead and document the reasoning for the > mapping usage with the given pgprot.

Re: futex breakage in 4.9 stable branch

2021-03-04 Thread Thomas Gleixner
On Thu, Mar 04 2021 at 10:12, Mike Galbraith wrote: > On Mon, 2021-03-01 at 18:29 +0100, Ben Hutchings wrote: > > --- a/kernel/futex.c > +++ b/kernel/futex.c > @@ -874,8 +874,12 @@ static void free_pi_state(struct futex_p >* and has cleaned up the pi_state already >*/ > if

Re: [PATCH v3 15/32] KVM: arm64: Prepare the creation of s1 mappings at EL2

2021-03-04 Thread Will Deacon
Hi Quentin, On Tue, Mar 02, 2021 at 02:59:45PM +, Quentin Perret wrote: > When memory protection is enabled, the EL2 code needs the ability to > create and manage its own page-table. To do so, introduce a new set of > hypercalls to bootstrap a memory management system at EL2. > > This leads

Re: [PATCH 4/4] ALSA: hda/cirrus: Add Headphone and Headset MIC Volume Control

2021-03-04 Thread Vitaly Rodionov
On 04/03/2021 1:49 pm, Takashi Iwai wrote: On Wed, 03 Mar 2021 19:29:59 +0100, Vitaly Rodionov wrote: +static int cs8409_cs42l42_volume_get(struct snd_kcontrol *kcontrol, +struct snd_ctl_elem_value *ucontrol) +{ + struct hda_codec *codec =

[PATCH] KVM: arm64: Disable LTO in hyp

2021-03-04 Thread Sami Tolvanen
allmodconfig + CONFIG_LTO_CLANG_THIN=y fails to build due to following linker errors: ld.lld: error: irqbypass.c:(function __guest_enter: .text+0x21CC): relocation R_AARCH64_CONDBR19 out of range: 2031220 is not in [-1048576, 1048575]; references hyp_panic >>> defined in vmlinux.o

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

2021-03-04 Thread Mathieu Poirier
On Fri, Feb 19, 2021 at 12:15:01PM +0100, Arnaud Pouliquen wrote: > 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.

Re: [RFC PATCH 05/18] virt/mshv: create partition ioctl

2021-03-04 Thread Nuno Das Neves
On 2/9/2021 5:15 AM, Vitaly Kuznetsov wrote: > Nuno Das Neves writes: > >> Add MSHV_CREATE_PARTITION, which creates an fd to track a new partition. >> Partition is not yet created in the hypervisor itself. >> Introduce header files for userspace-facing hyperv structures. >> >> Co-developed-by:

Re: [RFC PATCH 04/18] virt/mshv: request version ioctl

2021-03-04 Thread Nuno Das Neves
On 2/9/2021 5:11 AM, Vitaly Kuznetsov wrote: > Nuno Das Neves writes: > >> Reserve ioctl number in userpsace-api/ioctl/ioctl-number.rst >> Introduce MSHV_REQUEST_VERSION ioctl. >> Introduce documentation for /dev/mshv in Documentation/virt/mshv >> >> Signed-off-by: Nuno Das Neves >> --- >>

Re: [PATCH 0/7] Add support for AEAD algorithms in Qualcomm Crypto Engine driver

2021-03-04 Thread Thara Gopinath
On Thu, 4 Mar 2021 at 00:30, Herbert Xu wrote: > > On Thu, Feb 25, 2021 at 01:27:09PM -0500, Thara Gopinath wrote: > > Enable support for AEAD algorithms in Qualcomm CE driver. The first three > > patches in this series are cleanups and add a few missing pieces required > > to add support for

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

2021-03-04 Thread Mathieu Poirier
There has to be a capital letter at the start of the title: rpmsg: char: No dynamic endpoint management for the default one Please fix for all the patches. On Fri, Feb 19, 2021 at 12:15:00PM +0100, Arnaud Pouliquen wrote: > Do not dynamically manage the default endpoint. The ept address must >

Re: [PATCH 2/4] ALSA: hda/cirrus: Add support for CS8409 HDA bridge and CS42L42 companion codec.

2021-03-04 Thread Vitaly Rodionov
On 04/03/2021 1:39 pm, Takashi Iwai wrote: Thank you very much for quick response! On Wed, 03 Mar 2021 19:29:57 +0100, Vitaly Rodionov wrote: +static const struct hda_verb cs8409_cs42l42_init_verbs[] = { + { 0x01, AC_VERB_SET_POWER_STATE, 0x },/* AFG: D0 */ I guess this power

Re: [PATCH v2 1/5] irqdomain: Introduce irq_domain_create_simple() API

2021-03-04 Thread Marc Zyngier
Andy, On Thu, 04 Mar 2021 15:02:11 +, Andy Shevchenko wrote: > > Linus Walleij pointed out that ird_domain_add_simple() gained > additional functionality and can't be anymore replaced with > a simple conditional. In preparation to upgrade GPIO library > to use fwnode, introduce

Re: [PATCH v2 1/3] regmap-irq: Add support for peripheral offsets

2021-03-04 Thread Guru Das Srinagesh
Hi Mark, Sorry for the delay in my response. On Thu, Nov 12, 2020 at 07:33:12PM +, Mark Brown wrote: > It is difficult to follow what this change is supposed to do, in part > because it looks like this is in fact two separate changes, one adding > the _base feature and another adding the

Re: [PATCH v2] sched: Optimize __calc_delta.

2021-03-04 Thread Sedat Dilek
On Thu, Mar 4, 2021 at 6:34 PM 'Nick Desaulniers' via Clang Built Linux wrote: > > On Wed, Mar 3, 2021 at 2:48 PM Josh Don wrote: > > > > From: Clement Courbet > > > > A significant portion of __calc_delta time is spent in the loop > > shifting a u64 by 32 bits. Use `fls` instead of iterating.

Re: [RFC v4] copy_file_range.2: Update cross-filesystem support for 5.12

2021-03-04 Thread Alejandro Colomar (man-pages)
Hi Darrick, On 3/4/21 6:13 PM, Darrick J. Wong wrote: On Thu, Mar 04, 2021 at 10:38:07AM +0100, Alejandro Colomar wrote: +However, on some virtual filesystems, +the call failed to copy, while still reporting success. ...success, or merely a short copy? Okay. (The rest looks reasonable

Re: [RFC PATCH 01/18] x86/hyperv: convert hyperv statuses to linux error codes

2021-03-04 Thread Nuno Das Neves
On 2/9/2021 5:04 AM, Vitaly Kuznetsov wrote: > Nuno Das Neves writes: > >> Return linux-friendly error codes from hypercall wrapper functions. >> This will be needed in the mshv module. >> >> Signed-off-by: Nuno Das Neves >> --- >> arch/x86/hyperv/hv_proc.c | 30

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

2021-03-04 Thread Minchan Kim
On Thu, Mar 04, 2021 at 10:11:35AM -0800, Minchan Kim wrote: > On Thu, Mar 04, 2021 at 06:23:09PM +0100, David Hildenbrand wrote: > > > > You want to debug something, so you try triggering it and capturing > > > > debug > > > > data. There are not that many alloc_contig_range() users such that

Re: [PATCH v1] powerpc: Include running function as first entry in save_stack_trace() and friends

2021-03-04 Thread Marco Elver
On Thu, 4 Mar 2021 at 19:02, Mark Rutland wrote: > On Thu, Mar 04, 2021 at 06:25:33PM +0100, Marco Elver wrote: > > On Thu, Mar 04, 2021 at 04:59PM +, Mark Rutland wrote: > > > On Thu, Mar 04, 2021 at 04:30:34PM +0100, Marco Elver wrote: > > > > On Thu, 4 Mar 2021 at 15:57, Mark Rutland

mm/page_alloc.c:3728:1: warning: stack frame size of 2064 bytes in function 'get_page_from_freelist'

2021-03-04 Thread kernel test robot
-randconfig-r023-20210304 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project eec7f8f7b1226be422a76542cb403d02538f453a) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross

Re: [Patch v4 1/3] lib: Restrict cpumask_local_spread to houskeeping CPUs

2021-03-04 Thread Nitesh Narayan Lal
On 2/11/21 10:55 AM, Nitesh Narayan Lal wrote: > On 2/6/21 7:43 PM, Nitesh Narayan Lal wrote: >> On 2/5/21 5:23 PM, Thomas Gleixner wrote: >>> On Thu, Feb 04 2021 at 14:17, Nitesh Narayan Lal wrote: On 2/4/21 2:06 PM, Marcelo Tosatti wrote: >>> How about adding a new flag for isolcpus

Re: [PATCH v4 05/10] coresight: syscfg: Add API to activate and enable configurations

2021-03-04 Thread Mike Leach
Hi Suzuki, On Thu, 4 Mar 2021 at 16:49, Suzuki K Poulose wrote: > > On 1/28/21 5:09 PM, Mike Leach wrote: > > Configurations are first activated, then when any coresight device is > > enabled, the active configurations are checked and any matching > > one is enabled. > > > > This patch provides

Re: [PATCH 1/4] userfaultfd.2: Add UFFD_FEATURE_THREAD_ID docs

2021-03-04 Thread Alejandro Colomar (man-pages)
Hi Peter, On 3/4/21 4:50 PM, Peter Xu wrote: On Thu, Mar 04, 2021 at 10:22:18AM +0100, Alejandro Colomar (man-pages) wrote: +.BR UFFD_FEATURE_THREAD_ID This should use [.B] and not [.BR]. .BR is for alternate Bold and Roman. .B is for bold. (There are more appearances of this in the other

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

2021-03-04 Thread Minchan Kim
On Thu, Mar 04, 2021 at 06:23:09PM +0100, David Hildenbrand wrote: > > > You want to debug something, so you try triggering it and capturing debug > > > data. There are not that many alloc_contig_range() users such that this > > > would really be an issue to isolate ... > > > > cma_alloc uses

Re: [PATCH v2] certs: Fix wrong kconfig option used for x509_revocation_list

2021-03-04 Thread Nathan Chancellor
On Thu, Mar 04, 2021 at 12:50:30PM -0500, Eric Snowberg wrote: > Fix a build issue when x509_revocation_list is not defined. > > $ make ARCH=x86_64 O=build64 all > > EXTRACT_CERTS ../ > At main.c:154: > - SSL error:0909006C:PEM routines:get_name:no start line: > crypto/pem/pem_lib.c:745 >

Re: [PATCH V2] mmc: sdhci: Check for reset prior to DMA address unmap

2021-03-04 Thread Ulf Hansson
On Thu, 4 Mar 2021 at 16:16, wrote: > > On 2021-03-04 19:19, Ulf Hansson wrote: > > On Wed, 3 Mar 2021 at 09:32, Pradeep P V K > > wrote: > >> > >> From: Pradeep P V K > >> > >> For data read commands, SDHC may initiate data transfers even before > >> it > >> completely process the command

[PATCH 2/4] arm64: dts: qcom: sc7180: Add pompom rev3

2021-03-04 Thread Matthias Kaehlcke
The only kernel visible change with respect to rev2 is that pompom rev3 changed the charger thermistor from a 47k to a 100k NTC to use a thermistor which is supported by the PM6150 ADC driver. Signed-off-by: Matthias Kaehlcke --- .../dts/qcom/sc7180-trogdor-pompom-r2-lte.dts | 4 +-

Re: [PATCH v3 17/21] tools/objtool: Convert to insn_decode()

2021-03-04 Thread Borislav Petkov
On Thu, Mar 04, 2021 at 06:49:08PM +0100, Peter Zijlstra wrote: > This is going to have trivial rejects/fuzz against tip/objtool/core. I was just wondering whether to you show you how I resolved :) diff --cc tools/objtool/arch/x86/decode.c index 431bafb881d4,8380d0b1d933..22a53ee322ea ---

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