[PATCH 1/2] ASoC: tlv320adcx140: Fix GPO register start address

2020-07-30 Thread Dan Murphy
The header was updated to align with the data sheet to start the GPO_CFG at GPO_CFG0. The code was not updated to the change and therefore the GPO_CFG0 register was not written to. Fixes: 6617cff6a05e ("ASoC: tlv320adcx140: Add GPO configuration and drive output config") Signed-off-by: Dan Murph

Re: [PATCH v2 04/10] gpio: dwapb: Add max GPIOs macro

2020-07-30 Thread Serge Semin
On Thu, Jul 30, 2020 at 05:05:26PM +0300, Andy Shevchenko wrote: > On Thu, Jul 30, 2020 at 04:55:30PM +0300, Serge Semin wrote: > > Add a new macro DWAPB_MAX_GPIOS which defines the maximum possible number > > of GPIO lines corresponding to the maximum DW APB GPIO controller port > > width. Use the

[PATCH 2/2] ASoC: tlv320adcx140: Move device reset to before programming

2020-07-30 Thread Dan Murphy
Reset the device before programming the registers or all programming will be lost as the device resets registers to default settings. Signed-off-by: Dan Murphy --- sound/soc/codecs/tlv320adcx140.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/codecs/tlv320

Re: [PATCH v1 2/4] [RFC] x86/trampfd: Provide support for the trampoline file descriptor

2020-07-30 Thread Madhavan T. Venkataraman
Yes. I will fix this. Thanks. Madhavan On 7/30/20 4:06 AM, Greg KH wrote: > On Tue, Jul 28, 2020 at 08:10:48AM -0500, madve...@linux.microsoft.com wrote: >> +EXPORT_SYMBOL_GPL(trampfd_valid_regs); > Why are all of these exported? I don't see a module user in this > series, or did I miss it some

Re: [PATCH v2 06/10] gpio: dwapb: Discard GPIO-to-IRQ mapping function

2020-07-30 Thread Andy Shevchenko
On Thu, Jul 30, 2020 at 04:55:32PM +0300, Serge Semin wrote: > Since GPIOlib-based IRQ-chip interface is now utilized there is no need in > setting up a custom GPIO-to-IRQ mapping method. GPIO-lib defines the > standard mapping method - gpiochip_to_irq(), which will be used anyway no > matter wheth

Re: [PATCH v2 05/10] gpio: dwapb: Convert driver to using the GPIO-lib-based IRQ-chip

2020-07-30 Thread Andy Shevchenko
On Thu, Jul 30, 2020 at 04:55:31PM +0300, Serge Semin wrote: > GPIO-lib provides a ready-to-use interface to initialize an IRQ-chip on > top of a GPIO chip. It's better from maintainability and readability > point of view to use one instead of supporting a hand-written Generic > IRQ-chip-based impl

Re: [PATCH v2 07/10] gpio: dwapb: Discard ACPI GPIO-chip IRQs request

2020-07-30 Thread Andy Shevchenko
On Thu, Jul 30, 2020 at 04:55:33PM +0300, Serge Semin wrote: > Since GPIOlib-based IRQ-chip interface is now utilized there is no need > in calling the methods acpi_gpiochip_{request,free}_interrupts() here. > They will be called from gpiochip_add_irqchip()/gpiochip_irqchip_remove() > anyway. Revi

Re: [PATCH v3 4/4] objtool: orc_gen: Move orc_entry out of instruction structure

2020-07-30 Thread Josh Poimboeuf
On Thu, Jul 30, 2020 at 02:45:46PM +0100, Julien Thierry wrote: > > > But I agree the proposed code is not ideal and on the other we've tried > > > avoiding #ifdef in the code. Ideally I'd have an empty orc_entry > > > definition > > > when SUBCMD_ORC is not implemented. > > > > > > Would you hav

Re: [PATCH 11/23] fs: Add /proc/namespaces/ directory

2020-07-30 Thread Kirill Tkhai
On 30.07.2020 16:26, Christian Brauner wrote: > On Thu, Jul 30, 2020 at 03:00:19PM +0300, Kirill Tkhai wrote: >> This is a new directory to show all namespaces, which can be >> accessed from this /proc tasks credentials. >> >> Every /proc is related to a pid_namespace, and the pid_namespace >> is r

Re: [PATCH 01/23] ns: Add common refcount into ns_common add use it as counter for net_ns

2020-07-30 Thread Christian Brauner
On Thu, Jul 30, 2020 at 02:59:25PM +0300, Kirill Tkhai wrote: > Currently, every type of namespaces has its own counter, > which is stored in ns-specific part. Say, @net has > struct net::count, @pid has struct pid_namespace::kref, etc. > > This patchset introduces unified counter for all types >

Re: [PATCH 02/23] uts: Use generic ns_common::count

2020-07-30 Thread Christian Brauner
On Thu, Jul 30, 2020 at 02:59:31PM +0300, Kirill Tkhai wrote: > Convert uts namespace to use generic counter instead of kref. > > Signed-off-by: Kirill Tkhai > --- (sidenote: given that kref is implemented on top of refcount_t I wonder whether we shouldn't just slowly convert all places where k

[PATCH] RFC: selinux avc trace

2020-07-30 Thread peter enderborg
I did manage to rebase it but this is about my approach. Compared to Thiébaud Weksteen patch this adds: 1 Filtering. Types goes to trace so we can put up a filter for contexts or type etc. 2 It tries also to cover non denies.  And upon that you should be able to do coverage tools. I think many

[PATCH 1/2] power: bq27xxx: Update to SPDX licensing

2020-07-30 Thread Dan Murphy
Update the license to the SPDX licensing format. Signed-off-by: Dan Murphy --- drivers/power/supply/bq27xxx_battery.c | 9 + drivers/power/supply/bq27xxx_battery_hdq.c | 9 + drivers/power/supply/bq27xxx_battery_i2c.c | 10 +- 3 files changed, 3 insertions(+), 25 de

[PATCH] Introduce support for Systems Management Driver over WMI for Dell Systems

2020-07-30 Thread Divya Bharathi
From: Divya Bharathi The Dell WMI Systems Management Driver provides a sysfs interface for systems management to enable BIOS configuration capability on certain Dell Systems. This driver allows user to configure Dell systems with a uniform common interface. To facilitate this, the patch introduc

[PATCH 2/2] power: bq27xxx: Fix spacing style and white space issues

2020-07-30 Thread Dan Murphy
Fix spacing style issues with the chip data array. As well as fix missing new line after variable declaration. Signed-off-by: Dan Murphy --- drivers/power/supply/bq27xxx_battery.c | 63 ++ 1 file changed, 33 insertions(+), 30 deletions(-) diff --git a/drivers/power/supp

Re: [PATCH 03/23] ipc: Use generic ns_common::count

2020-07-30 Thread Christian Brauner
On Thu, Jul 30, 2020 at 02:59:36PM +0300, Kirill Tkhai wrote: > Convert uts namespace to use generic counter. > > Signed-off-by: Kirill Tkhai > --- Acked-by: Christian Brauner > include/linux/ipc_namespace.h |3 +-- > ipc/msgutil.c |2 +- > ipc/namespace.c

Re: [PATCH 01/23] ns: Add common refcount into ns_common add use it as counter for net_ns

2020-07-30 Thread Kirill Tkhai
On 30.07.2020 17:30, Christian Brauner wrote: > On Thu, Jul 30, 2020 at 02:59:25PM +0300, Kirill Tkhai wrote: >> Currently, every type of namespaces has its own counter, >> which is stored in ns-specific part. Say, @net has >> struct net::count, @pid has struct pid_namespace::kref, etc. >> >> This

Re: [PATCH 00/23] proc: Introduce /proc/namespaces/ directory to expose namespaces lineary

2020-07-30 Thread Eric W. Biederman
Kirill Tkhai writes: > Currently, there is no a way to list or iterate all or subset of namespaces > in the system. Some namespaces are exposed in /proc/[pid]/ns/ directories, > but some also may be as open files, which are not attached to a process. > When a namespace open fd is sent over unix s

Re: [PATCH 04/23] pid: Use generic ns_common::count

2020-07-30 Thread Christian Brauner
On Thu, Jul 30, 2020 at 02:59:41PM +0300, Kirill Tkhai wrote: > Convert pid namespace to use generic counter. > > Signed-off-by: Kirill Tkhai > --- Looks good! Acked-by: Christian Brauner > include/linux/pid_namespace.h |4 +--- > kernel/pid.c |2 +- > kernel/pid_name

Re: [PATCH v2 05/10] gpio: dwapb: Convert driver to using the GPIO-lib-based IRQ-chip

2020-07-30 Thread Serge Semin
On Thu, Jul 30, 2020 at 05:26:18PM +0300, Andy Shevchenko wrote: > On Thu, Jul 30, 2020 at 04:55:31PM +0300, Serge Semin wrote: > > GPIO-lib provides a ready-to-use interface to initialize an IRQ-chip on > > top of a GPIO chip. It's better from maintainability and readability > > point of view to u

Re: [PATCH 01/23] ns: Add common refcount into ns_common add use it as counter for net_ns

2020-07-30 Thread Christian Brauner
On Thu, Jul 30, 2020 at 05:34:28PM +0300, Kirill Tkhai wrote: > On 30.07.2020 17:30, Christian Brauner wrote: > > On Thu, Jul 30, 2020 at 02:59:25PM +0300, Kirill Tkhai wrote: > >> Currently, every type of namespaces has its own counter, > >> which is stored in ns-specific part. Say, @net has > >>

Re: (resend) [PATCH [linux-4.14.y]] dm cache: submit writethrough writes in parallel to origin and cache

2020-07-30 Thread John Donnelly
> On Jul 30, 2020, at 12:21 AM, Greg KH wrote: > > On Wed, Jul 29, 2020 at 06:45:46PM -0500, John Donnelly wrote: >> >> >> On 7/29/20 9:16 AM, Mike Snitzer wrote: >>> On Wed, Jul 29 2020 at 7:55am -0400, >>> Greg KH wrote: >>> On Wed, Jul 29, 2020 at 01:51:19PM +0200, Greg KH wrote:

Re: [RFC PATCH 01/14] coresight: etm4x: Skip save/restore before device registration

2020-07-30 Thread Suzuki K Poulose
On 07/29/2020 07:01 PM, Mathieu Poirier wrote: Hi Suzuki, I have starte to review this - comments will be scattered over a few days. On Wed, Jul 22, 2020 at 06:20:27PM +0100, Suzuki K Poulose wrote: Skip cpu save/restore before the coresight device is registered. Cc: Mathieu Poirier Cc: Mike

Re: [PATCH v1 0/4] [RFC] Implement Trampoline File Descriptor

2020-07-30 Thread Madhavan T. Venkataraman
For some reason my email program is not delivering to all the recipients because of some formatting issues. I am resending. I apologize. I will try to get this fixed. Sorry for the delay. I just needed to think about it a little. I will respond to your first suggestion in this email. I will respon

Re: [PATCH v2 5/9] objtool: Make relocation in alternative handling arch dependent

2020-07-30 Thread Josh Poimboeuf
On Thu, Jul 30, 2020 at 10:46:48AM +0100, Julien Thierry wrote: > As pointed out by the comment in handle_group_alt(), support of > relocation for instructions in an alternative group depends on whether > arch specific kernel code handles it. > > So, let objtool arch specific code decide whether a

Re: [PATCH v3 0/4] Remove dependency of check subcmd upon orc

2020-07-30 Thread Julien Thierry
On 7/30/20 3:06 PM, Josh Poimboeuf wrote: On Thu, Jul 30, 2020 at 10:41:39AM +0100, Julien Thierry wrote: Hi, Matt Helsley's change[1] provided a base framework to opt-in/out objtool subcommands at compile time. This makes it easier for architectures to port objtool, one subcommand at a time

Re: [PATCH v3 1/4] objtool: Move object file loading out of check

2020-07-30 Thread Julien Thierry
On 7/30/20 3:09 PM, Josh Poimboeuf wrote: On Thu, Jul 30, 2020 at 10:41:40AM +0100, Julien Thierry wrote: +struct objtool_file *objtool_setup_file(const char *_objname) +{ + if (objname) { + if (strcmp(objname, _objname)) { + WARN("won't handle more t

Re: [PATCH 00/23] proc: Introduce /proc/namespaces/ directory to expose namespaces lineary

2020-07-30 Thread Christian Brauner
On Thu, Jul 30, 2020 at 09:34:01AM -0500, Eric W. Biederman wrote: > Kirill Tkhai writes: > > > Currently, there is no a way to list or iterate all or subset of namespaces > > in the system. Some namespaces are exposed in /proc/[pid]/ns/ directories, > > but some also may be as open files, which

Re: [PATCH v3 2/4] objtool: Move orc outside of check

2020-07-30 Thread Julien Thierry
On 7/30/20 3:15 PM, Josh Poimboeuf wrote: On Thu, Jul 30, 2020 at 02:29:20PM +0100, Julien Thierry wrote: On 7/30/20 2:22 PM, pet...@infradead.org wrote: On Thu, Jul 30, 2020 at 01:40:42PM +0100, Julien Thierry wrote: On 7/30/20 10:57 AM, pet...@infradead.org wrote: On Thu, Jul 30, 202

Re: [PATCH 05/23] user: Use generic ns_common::count

2020-07-30 Thread Christian Brauner
On Thu, Jul 30, 2020 at 02:59:47PM +0300, Kirill Tkhai wrote: > Convert user namespace to use generic counter. > > Signed-off-by: Kirill Tkhai > --- Looks good! Acked-by: Christian Brauner > include/linux/user_namespace.h |5 ++--- > kernel/user.c |2 +- > kernel/user

[PATCH v2 0/3] More IPU cleanups v2

2020-07-30 Thread Paul Cercueil
Patch [1/3] unchanged. Patches [2/3] and [3/3] have had their commit message slightly modified, but the patches themselves are the same as before. Cheers, -Paul Paul Cercueil (3): drm/ingenic: ipu: Only restart manually on older SoCs drm/ingenic: ipu: Remove YUV422 from supported formats on J

[PATCH v2 3/3] drm/ingenic: ipu: Only enable clock when needed

2020-07-30 Thread Paul Cercueil
Instead of keeping the IPU clock enabled constantly, enable and disable it on demand, when the IPU plane is used. That way, we won't use any extra power when the IPU is not used. v2: Explain the reason of this patch Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-ipu.c | 23 +++

[PATCH v2 2/3] drm/ingenic: ipu: Remove YUV422 from supported formats on JZ4725B

2020-07-30 Thread Paul Cercueil
When configuring the IPU for packed YUV 4:2:2, depending on the scaling ratios given by the source and destination resolutions, it is possible to crash the IPU block, to the point where a software reset of the IP does not fix it. This can happen anytime, in the first few frames, or after dozens of

[PATCH v2 1/3] drm/ingenic: ipu: Only restart manually on older SoCs

2020-07-30 Thread Paul Cercueil
On older SoCs, it is necessary to restart manually the IPU when a frame is done processing. Doing so on newer SoCs (JZ4760/70) kinds of work too, until the input or output resolutions or the framerate are too high. Make it work properly on newer SoCs by letting the LCD controller trigger the IPU f

Re: [PATCH 06/23] mnt: Use generic ns_common::count

2020-07-30 Thread Christian Brauner
On Thu, Jul 30, 2020 at 02:59:52PM +0300, Kirill Tkhai wrote: > Convert mount namespace to use generic counter. > > Signed-off-by: Kirill Tkhai > --- Looks good! Acked-by: Christian Brauner > fs/mount.h |3 +-- > fs/namespace.c |4 ++-- > 2 files changed, 3 insertions(+), 4 deleti

Re: [PATCH 07/23] cgroup: Use generic ns_common::count

2020-07-30 Thread Christian Brauner
On Thu, Jul 30, 2020 at 02:59:57PM +0300, Kirill Tkhai wrote: > Convert cgroup namespace to use generic counter. > > Signed-off-by: Kirill Tkhai > --- Looks good! Acked-by: Christian Brauner > include/linux/cgroup.h|5 ++--- > kernel/cgroup/cgroup.c|2 +- > kernel/cgroup/names

Re: [PATCH] RFC: selinux avc trace

2020-07-30 Thread Stephen Smalley
On Thu, Jul 30, 2020 at 10:29 AM peter enderborg wrote: > > I did manage to rebase it but this is about my approach. > > Compared to Thiébaud Weksteen patch this adds: > > 1 Filtering. Types goes to trace so we can put up a filter for contexts or > type etc. > > 2 It tries also to cover non denie

Re: [PATCH 08/23] time: Use generic ns_common::count

2020-07-30 Thread Christian Brauner
On Thu, Jul 30, 2020 at 03:00:03PM +0300, Kirill Tkhai wrote: > Convert time namespace to use generic counter. > > Signed-off-by: Kirill Tkhai > --- Looks good! Acked-by: Christian Brauner > include/linux/time_namespace.h |9 - > kernel/time/namespace.c|9 +++-- >

Re: [RFC PATCH 02/14] coresight: Introduce device access abstraction

2020-07-30 Thread Suzuki K Poulose
On 07/29/2020 08:56 PM, Mathieu Poirier wrote: On Wed, Jul 22, 2020 at 06:20:28PM +0100, Suzuki K Poulose wrote: We are about to introduce support for sysreg access to ETMv4.4+ component. Since there are generic routines that access the registers (e.g, CS_LOCK/UNLOCK , claim/disclaim operations,

Re: [PATCH v2 8/9] frame: Make unwind hints definitions available to other architectures

2020-07-30 Thread Josh Poimboeuf
On Thu, Jul 30, 2020 at 10:46:51AM +0100, Julien Thierry wrote: > Unwind hints are useful to provide objtool with information about stack > states in non-standard functions/code. > While the type of information being provided might be very arch > specific, the mechanism to provide the information c

Re: [PATCH][next] ALSA: vmaster: Use flex_array_size() helper in memcpy()

2020-07-30 Thread Takashi Iwai
On Thu, 30 Jul 2020 15:12:33 +0200, Gustavo A. R. Silva wrote: > > > > On 7/30/20 03:41, Takashi Iwai wrote: > > On Thu, 30 Jul 2020 00:18:29 +0200, > > Gustavo A. R. Silva wrote: > >> > >> Make use of the flex_array_size() helper to calculate the size of a > >> flexible array member within an e

[PATCH 2/2] power: supply: bq25790: Introduce the BQ25790 charger driver

2020-07-30 Thread Dan Murphy
BQ25790 is a highly integrated switch-mode buck-boost charger for 1-4 cell Li-ion battery and Li-polymer battery. Signed-off-by: Dan Murphy --- drivers/power/supply/Kconfig |8 + drivers/power/supply/Makefile |1 + drivers/power/supply/bq25790_charger.c | 1117

[PATCH 1/2] dt-bindings: power: Add the bq25790 dt bindings

2020-07-30 Thread Dan Murphy
Add the bindings for the bq25790. Signed-off-by: Ricardo Rivera-Matos Signed-off-by: Dan Murphy --- .../bindings/power/supply/bq25790.yaml| 87 +++ 1 file changed, 87 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/supply/bq25790.yaml diff --gi

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

2020-07-30 Thread Will Deacon
On Thu, Jul 30, 2020 at 11:09:23AM +0100, Catalin Marinas wrote: > On Thu, Jul 30, 2020 at 10:59:09AM +0100, Marc Zyngier wrote: > > From 33d819f4efa0a4474b5dc2e4bcaef1b886ca30c3 Mon Sep 17 00:00:00 2001 > > From: Marc Zyngier > > Date: Thu, 30 Jul 2020 10:53:05 +0100 > > Subject: [PATCH] arm64: D

Re: [PATCH 00/23] proc: Introduce /proc/namespaces/ directory to expose namespaces lineary

2020-07-30 Thread Kirill Tkhai
On 30.07.2020 17:34, Eric W. Biederman wrote: > Kirill Tkhai writes: > >> Currently, there is no a way to list or iterate all or subset of namespaces >> in the system. Some namespaces are exposed in /proc/[pid]/ns/ directories, >> but some also may be as open files, which are not attached to a pr

Re: [PATCH v5 1/4] IMA: Add func to measure LSM state and policy

2020-07-30 Thread Tyler Hicks
On 2020-07-29 20:47:21, Lakshmi Ramasubramanian wrote: > Critical data structures of security modules need to be measured to > enable an attestation service to verify if the configuration and > policies for the security modules have been setup correctly and > that they haven't been tampered with at

Re: [PATCH v2 9/9] objtool: Abstract unwind hint reading

2020-07-30 Thread Josh Poimboeuf
On Thu, Jul 30, 2020 at 10:46:52AM +0100, Julien Thierry wrote: > The type of unwind hints and the semantics associated with them depend > on the architecture. Let arch specific code convert unwind hints into > objtool stack state descriptions. > > Signed-off-by: Julien Thierry > --- > tools/obj

Re: [PATCH v2 0/2] Add period size constraint for Atom Chromebook

2020-07-30 Thread Takashi Iwai
On Thu, 30 Jul 2020 10:13:33 +0200, Brent Lu wrote: > > Two different constraints are implemented: one is in platform's CPU > DAI to enforce period sizes which are already used in Android BSP. The > other is in Atom Chromebook's machine driver to use 240 as period size. > > Changes since v1: > -A

Re: [PATCH] RFC: selinux avc trace

2020-07-30 Thread Steven Rostedt
On Thu, 30 Jul 2020 16:29:12 +0200 peter enderborg wrote: > +#undef TRACE_SYSTEM > +#define TRACE_SYSTEM avc > + > +#if !defined(_TRACE_AVC_H) || defined(TRACE_HEADER_MULTI_READ) > +#define _TRACE_AVC_H > + > +#include > +TRACE_EVENT(avc_data, > +        TP_PROTO(u32 requested, > +        u

Re: [PATCH v5 2/4] IMA: Define IMA hooks to measure LSM state and policy

2020-07-30 Thread Tyler Hicks
On 2020-07-29 20:47:22, Lakshmi Ramasubramanian wrote: > IMA subsystem needs to define IMA hooks that the security modules can > call to measure state and policy data. > > Define two new IMA hooks, namely ima_lsm_state() and ima_lsm_policy(), > that the security modules can call to measure LSM sta

Re: linux-next: Fixes tag needs some work in the block tree

2020-07-30 Thread Jens Axboe
On 7/29/20 4:12 PM, Stephen Rothwell wrote: > Hi all, > > [Just adding cc's] > > On Thu, 30 Jul 2020 08:08:49 +1000 Stephen Rothwell > wrote: >> >> In commit >> >> 64d452b3560b ("nvme-loop: set ctrl state connecting after init") >> >> Fixes tag >> >> Fixes: aa63fa6776a7 ("nvme-fabrics: allo

Re: [PATCH v3 0/4] Remove dependency of check subcmd upon orc

2020-07-30 Thread Josh Poimboeuf
On Thu, Jul 30, 2020 at 03:42:09PM +0100, Julien Thierry wrote: > > > On 7/30/20 3:06 PM, Josh Poimboeuf wrote: > > On Thu, Jul 30, 2020 at 10:41:39AM +0100, Julien Thierry wrote: > > > Hi, > > > > > > Matt Helsley's change[1] provided a base framework to opt-in/out > > > objtool subcommands at

Re: [PATCH 22/23] fs: default to generic_file_splice_read for files having ->read_iter

2020-07-30 Thread Al Viro
On Thu, Jul 30, 2020 at 09:03:29AM +0200, Christoph Hellwig wrote: > On Thu, Jul 30, 2020 at 01:05:44AM +0100, Al Viro wrote: > > On Tue, Jul 07, 2020 at 07:48:00PM +0200, Christoph Hellwig wrote: > > > If a file implements the ->read_iter method, the iter based splice read > > > works and is alway

Re: [PATCH] scsi: sd: add runtime pm to open / release

2020-07-30 Thread Alan Stern
On Thu, Jul 30, 2020 at 10:52:14AM +0200, Martin Kepplinger wrote: > Maybe I should just start a new discussion with a patch, but the below > is what makes sense to me (when I understand you correctly) and seems to > work. I basically add a new flag, so that the old flags behave unchanged > and onl

Re: crypto: aegis128: error: incompatible types when initializing type 'unsigned char' using type 'uint8x16_t'

2020-07-30 Thread Justin Forbes
On Mon, Jul 27, 2020 at 8:05 AM Andrea Righi wrote: > > I'm experiencing this build error on arm64 after updating to gcc 10: > > crypto/aegis128-neon-inner.c: In function 'crypto_aegis128_init_neon': > crypto/aegis128-neon-inner.c:151:3: error: incompatible types when > initializing type 'unsigne

Re: [PATCH] scsi: sd: add runtime pm to open / release

2020-07-30 Thread Alan Stern
On Thu, Jul 30, 2020 at 10:05:50AM +0200, Martin Kepplinger wrote: > On 29.06.20 18:15, Alan Stern wrote: > > On Mon, Jun 29, 2020 at 11:42:59AM +0200, Martin Kepplinger wrote: > >> > >> > >> On 26.06.20 17:44, Alan Stern wrote: > >>> Martin's best approach would be to add some debugging code to fi

Re: [PATCH] arm64/alternatives: move length validation inside the subsection

2020-07-30 Thread Sami Tolvanen
On Thu, Jul 30, 2020 at 5:22 AM Catalin Marinas wrote: > > On Wed, Jul 29, 2020 at 02:51:52PM -0700, Sami Tolvanen wrote: > > Commit f7b93d42945c ("arm64/alternatives: use subsections for replacement > > sequences") breaks LLVM's integrated assembler, because due to its > > one-pass design, it can

Re: [PATCH 2/2] power: supply: bq25790: Introduce the BQ25790 charger driver

2020-07-30 Thread Ricardo Rivera-Matos
Signed-off-by: Ricardo Rivera-Matos On 7/30/20 9:58 AM, Dan Murphy wrote: BQ25790 is a highly integrated switch-mode buck-boost charger for 1-4 cell Li-ion battery and Li-polymer battery. Signed-off-by: Dan Murphy --- drivers/power/supply/Kconfig |8 + drivers/power/supply/Ma

Re: [PATCH v5 1/4] IMA: Add func to measure LSM state and policy

2020-07-30 Thread Lakshmi Ramasubramanian
On 7/30/20 8:02 AM, Tyler Hicks wrote: diff --git a/security/integrity/ima/ima_policy.c b/security/integrity/ima/ima_policy.c index 07f033634b27..a0f5c39d9084 100644 --- a/security/integrity/ima/ima_policy.c +++ b/security/integrity/ima/ima_policy.c @@ -442,13 +442,20 @@ static bool ima_match_r

Re: [PATCH v5 1/4] IMA: Add func to measure LSM state and policy

2020-07-30 Thread Tyler Hicks
On 2020-07-30 08:15:34, Lakshmi Ramasubramanian wrote: > On 7/30/20 8:02 AM, Tyler Hicks wrote: > > > > diff --git a/security/integrity/ima/ima_policy.c > > > b/security/integrity/ima/ima_policy.c > > > index 07f033634b27..a0f5c39d9084 100644 > > > --- a/security/integrity/ima/ima_policy.c > > >

[GIT PULL] io_uring fixes for 5.8-rc

2020-07-30 Thread Jens Axboe
Hi Linus, Two small fixes for this release, fixing corner/error cases. Please pull! The following changes since commit 3e863ea3bb1a2203ae648eb272db0ce6a1a2072c: io_uring: missed req_init_async() for IOSQE_ASYNC (2020-07-23 11:20:55 -0600) are available in the Git repository at: git://git

Re: [PATCH 22/23] fs: default to generic_file_splice_read for files having ->read_iter

2020-07-30 Thread Christoph Hellwig
On Thu, Jul 30, 2020 at 04:08:26PM +0100, Al Viro wrote: > > I think we need to fix that in the instances, as we really expect > > ->splice_read to just work instead of the caller knowing what could > > work and what might not. > > Er... generic_file_splice_read() is a library helper; the decisio

Re: crypto: aegis128: error: incompatible types when initializing type 'unsigned char' using type 'uint8x16_t'

2020-07-30 Thread Andrea Righi
On Thu, Jul 30, 2020 at 10:11:52AM -0500, Justin Forbes wrote: > On Mon, Jul 27, 2020 at 8:05 AM Andrea Righi > wrote: > > > > I'm experiencing this build error on arm64 after updating to gcc 10: > > > > crypto/aegis128-neon-inner.c: In function 'crypto_aegis128_init_neon': > > crypto/aegis128-ne

Re: [RFC PATCH 0/5] madvise MADV_DOEXEC

2020-07-30 Thread Matthew Wilcox
On Mon, Jul 27, 2020 at 10:11:22AM -0700, Anthony Yznaga wrote: > This patchset adds support for preserving an anonymous memory range across > exec(3) using a new madvise MADV_DOEXEC argument. The primary benefit for > sharing memory in this manner, as opposed to re-attaching to a named shared > m

Re: [PATCH] arm64/alternatives: move length validation inside the subsection

2020-07-30 Thread Catalin Marinas
On Thu, Jul 30, 2020 at 08:13:05AM -0700, Sami Tolvanen wrote: > On Thu, Jul 30, 2020 at 5:22 AM Catalin Marinas > wrote: > > > > On Wed, Jul 29, 2020 at 02:51:52PM -0700, Sami Tolvanen wrote: > > > Commit f7b93d42945c ("arm64/alternatives: use subsections for replacement > > > sequences") breaks

RE: [PATCH v2 0/2] Add period size constraint for Atom Chromebook

2020-07-30 Thread Lu, Brent
> > > > Two different constraints are implemented: one is in platform's CPU > > DAI to enforce period sizes which are already used in Android BSP. The > > other is in Atom Chromebook's machine driver to use 240 as period size. > > > > Changes since v1: > > -Add comma at the end of media_period_size

Re: [PATCH 2/2] power: bq27xxx: Fix spacing style and white space issues

2020-07-30 Thread Andrew F. Davis
On 7/30/20 10:31 AM, Dan Murphy wrote: > Fix spacing style issues with the chip data array. As well as fix > missing new line after variable declaration. > > Signed-off-by: Dan Murphy > --- > drivers/power/supply/bq27xxx_battery.c | 63 ++ > 1 file changed, 33 insertions

Re: [PATCH v5 0/6] Add support for GPU DDR BW scaling

2020-07-30 Thread Rob Clark
On Wed, Jul 29, 2020 at 10:10 PM Viresh Kumar wrote: > > On 22-07-20, 11:00, Viresh Kumar wrote: > > On 21-07-20, 07:28, Rob Clark wrote: > > > With your ack, I can add the patch the dev_pm_opp_set_bw patch to my > > > tree and merge it via msm-next -> drm-next -> linus > > > > I wanted to send it

Re: [RFC PATCH 0/5] madvise MADV_DOEXEC

2020-07-30 Thread Christian Brauner
On Thu, Jul 30, 2020 at 04:22:50PM +0100, Matthew Wilcox wrote: > On Mon, Jul 27, 2020 at 10:11:22AM -0700, Anthony Yznaga wrote: > > This patchset adds support for preserving an anonymous memory range across > > exec(3) using a new madvise MADV_DOEXEC argument. The primary benefit for > > sharing

Re: [PATCH v2] PCI/P2PDMA: Allow P2PDMA on all AMD CPUs newer than the Zen family

2020-07-30 Thread Bjorn Helgaas
On Wed, Jul 29, 2020 at 05:18:44PM -0600, Logan Gunthorpe wrote: > In order to avoid needing to add every new AMD CPU host bridge to the list > every cycle, allow P2PDMA if the CPUs vendor is AMD and family is > greater than 0x17 (Zen). > > This should cut down a bunch of the churn adding to the l

Re: [PATCH 2/2] ASoC: Intel: Add period size constraint on strago board

2020-07-30 Thread Pierre-Louis Bossart
Is this patch required if you've already constrained the period sizes for the platform driver in patch1? Yes or alsa will select 320 as default period size for it. ok, then that's a miss in your patch1. 320 samples is a multiple of 1ms for 48kHz rates. I think it was valid only for the 16

[PATCH v3 05/10] gpio: dwapb: Convert driver to using the GPIO-lib-based IRQ-chip

2020-07-30 Thread Serge Semin
GPIO-lib provides a ready-to-use interface to initialize an IRQ-chip on top of a GPIO chip. It's better from maintainability and readability point of view to use one instead of supporting a hand-written Generic IRQ-chip-based implementation. Moreover the new implementation won't cause much function

[PATCH v3 03/10] gpio: dwapb: Move MFD-specific IRQ handler

2020-07-30 Thread Serge Semin
For better readability let's group all the IRQ handlers in a single place of the driver instead of having them scatter around all over the file. Signed-off-by: Serge Semin Reviewed-by: Andy Shevchenko --- drivers/gpio/gpio-dwapb.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-)

[PATCH v3 09/10] gpio: dwapb: Get clocks by means of resource managed interface

2020-07-30 Thread Serge Semin
The kernel clock framework provides the resource managed version of the clk_bulk_get() method. The only thing which needs to be also automated is the clocks disable/unprepare procedure executed on the device removal. It can be implemented by means of the custom action definition. After that the clo

[PATCH v3 07/10] gpio: dwapb: Discard ACPI GPIO-chip IRQs request

2020-07-30 Thread Serge Semin
Since GPIOlib-based IRQ-chip interface is now utilized there is no need in calling the methods acpi_gpiochip_{request,free}_interrupts() here. They will be called from gpiochip_add_irqchip()/gpiochip_irqchip_remove() anyway. Signed-off-by: Serge Semin Reviewed-by: Andy Shevchenko --- Changelog

[PATCH v3 02/10] gpio: dwapb: Add ngpios DT-property support

2020-07-30 Thread Serge Semin
Indeed generic GPIO DT-schema implies that number of GPIOs should be described by the "ngpios" property located under a GPIO-provider DT node. In that case it's redundant to have a vendor-specific "snps,nr-gpios" property describing the same setting. Moreover it might be errors prone. Since commit

[PATCH v3 10/10] gpio: dwapb: Use resource managed GPIO-chip add data method

2020-07-30 Thread Serge Semin
Since the resource managed version of gpiochip_add_data() will handle the GPIO-chip data automated cleanup we can freely remove the DW APB GPIO driver code responsible for that. After doing so the DW APB GPIO driver removal callback can be also fully discarded since there is nothing left to be done

[PATCH v3 04/10] gpio: dwapb: Add max GPIOs macro

2020-07-30 Thread Serge Semin
Add a new macro DWAPB_MAX_GPIOS which defines the maximum possible number of GPIO lines corresponding to the maximum DW APB GPIO controller port width. Use the new macro instead of number literal 32 where it's applicable. Suggested-by: Andy Shevchenko Signed-off-by: Serge Semin --- drivers/gpio

[PATCH v3 06/10] gpio: dwapb: Discard GPIO-to-IRQ mapping function

2020-07-30 Thread Serge Semin
Since GPIOlib-based IRQ-chip interface is now utilized there is no need in setting up a custom GPIO-to-IRQ mapping method. GPIO-lib defines the standard mapping method - gpiochip_to_irq(), which will be used anyway no matter whether the custom to_irq callback is specified or not. Signed-off-by: Se

[PATCH v3 01/10] dt-bindings: gpio: dwapb: Add ngpios property support

2020-07-30 Thread Serge Semin
It's redundant to have a vendor-specific property describing a number of GPIOS while there is a generic one. Let's mark the former one as deprecated and define the "ngpios" property supported with constraints of being within [1; 32] range. Signed-off-by: Serge Semin Reviewed-by: Rob Herring ---

[PATCH v3 08/10] gpio: dwapb: Get reset control by means of resource managed interface

2020-07-30 Thread Serge Semin
The reset control interface provides the resource managed version of the reset_control_get() method. The only thing which needs to be also automated is the reset lane assertion on the device removal. It can be implemented by means of the custom action definition. After that the reset control will b

[PATCH v3 00/10] gpio: dwapb: Refactor GPIO resources initialization

2020-07-30 Thread Serge Semin
This series is about the DW APB GPIO device initialization procedure cleaning up. First of all it has been discovered that having a vendor-specific "snps,nr-gpios" property isn't only redundant but also might be dangerous (see the commit log for details). Instead we suggest to use the generic "ngpi

Re: [PATCH v2 2/3] drm/ingenic: ipu: Remove YUV422 from supported formats on JZ4725B

2020-07-30 Thread Sam Ravnborg
Hi Paul On Thu, Jul 30, 2020 at 04:48:29PM +0200, Paul Cercueil wrote: > When configuring the IPU for packed YUV 4:2:2, depending on the scaling > ratios given by the source and destination resolutions, it is possible > to crash the IPU block, to the point where a software reset of the IP > does n

Re: [PATCH v2 3/3] drm/ingenic: ipu: Only enable clock when needed

2020-07-30 Thread Sam Ravnborg
On Thu, Jul 30, 2020 at 04:48:30PM +0200, Paul Cercueil wrote: > Instead of keeping the IPU clock enabled constantly, enable and disable > it on demand, when the IPU plane is used. That way, we won't use any > extra power when the IPU is not used. > > v2: Explain the reason of this patch > > Sign

Re: [tip:sched/fifo 44/45] ERROR: modpost: "sched_setscheduler" undefined!

2020-07-30 Thread Qais Yousef
On 07/29/20 12:23, Dietmar Eggemann wrote: > On 21/07/2020 12:13, Qais Yousef wrote: > > On 07/21/20 10:36, pet...@infradead.org wrote: > >> On Mon, Jul 20, 2020 at 06:19:43PM -0400, Steven Rostedt wrote: > >>> On Mon, 20 Jul 2020 23:49:18 +0200 > >>> Peter Zijlstra wrote: > >>> > Steve, woul

Re: [PATCH] RFC: selinux avc trace

2020-07-30 Thread peter enderborg
On 7/30/20 5:04 PM, Steven Rostedt wrote: > On Thu, 30 Jul 2020 16:29:12 +0200 > peter enderborg wrote: > >> +#undef TRACE_SYSTEM >> +#define TRACE_SYSTEM avc >> + >> +#if !defined(_TRACE_AVC_H) || defined(TRACE_HEADER_MULTI_READ) >> +#define _TRACE_AVC_H >> + >> +#include >> +TRACE_EVENT(avc_dat

Re: [RFC PATCH 0/5] madvise MADV_DOEXEC

2020-07-30 Thread Matthew Wilcox
On Thu, Jul 30, 2020 at 05:27:05PM +0200, Christian Brauner wrote: > On Thu, Jul 30, 2020 at 04:22:50PM +0100, Matthew Wilcox wrote: > > On Mon, Jul 27, 2020 at 10:11:22AM -0700, Anthony Yznaga wrote: > > > This patchset adds support for preserving an anonymous memory range across > > > exec(3) usi

[v8 0/4] media: vidtv: Implement a virtual DVB driver

2020-07-30 Thread Daniel W. S. Almeida
From: Daniel W. S. Almeida This series is work in progress. It represents the current work done on a virtual DVB driver for the Linux media subsystem. I am new to the media subsystem and to kernel development in general. This driver aims to: - Serve as template for new DVB driver writers

Re: [PATCH] powerpc: fix function annotations to avoid section mismatch warnings with gcc-10

2020-07-30 Thread Vladis Dronov
Hello, Michael, - Original Message - > From: "Michael Ellerman" > Subject: Re: [PATCH] powerpc: fix function annotations to avoid section > mismatch warnings with gcc-10 > ... > >> > So what changed? These functions were inlined with older compilers, but > >> > not anymore? > >> > >>

Re: [PATCH 2/2] power: bq27xxx: Fix spacing style and white space issues

2020-07-30 Thread Dan Murphy
Andrew On 7/30/20 10:25 AM, Andrew F. Davis wrote: On 7/30/20 10:31 AM, Dan Murphy wrote: Fix spacing style issues with the chip data array. As well as fix missing new line after variable declaration. Signed-off-by: Dan Murphy --- drivers/power/supply/bq27xxx_battery.c | 63 ++-

[v8 4/4] media: Documentation: vidtv: Add ReST documentation for vidtv

2020-07-30 Thread Daniel W. S. Almeida
From: Daniel W. S. Almeida Add documentation for the Virtual Digital TV driver (vidtv) in the Restructured Text (ReST) format. This discusses: - What is vidtv - Why vidtv is needed - How to build and run vidtv - How vidtv is structured - How to test vidtv - How to improve vidtv Signed-off-by: D

[v8 2/4] media: vidtv: implement a demodulator driver

2020-07-30 Thread Daniel W. S. Almeida
From: Daniel W. S. Almeida Implement a I2C demodulator driver, simulating support for DVB-T, DVB-C and DVB-S. This demodulator will periodically check the signal quality against a table and drop the TS lock if it drops below a threshold value, regaining it in the event that the signal improves.

[v8 1/4] media: vidtv: implement a tuner driver

2020-07-30 Thread Daniel W. S. Almeida
From: Daniel W. S. Almeida The virtual DVB test driver serves as a reference DVB driver and helps validate the existing APIs in the media subsystem. It can also aid developers working on userspace applications. This dummy tuner should support common TV standards such as DVB-T/T2/S/S2, ISDB-T and

[PATCH v2] arm64/alternatives: move length validation inside the subsection

2020-07-30 Thread Sami Tolvanen
Commit f7b93d42945c ("arm64/alternatives: use subsections for replacement sequences") breaks LLVM's integrated assembler, because due to its one-pass design, it cannot compute instruction sequence lengths before the layout for the subsection has been finalized. This change fixes the build by moving

Re: [PATCH v5 0/6] Add support for GPU DDR BW scaling

2020-07-30 Thread Viresh Kumar
On 30-07-20, 08:27, Rob Clark wrote: > Hmm, I've already sent my pull request to Dave, dropping the patch > would require force-push and sending a new PR. Which I can do if Dave > prefers. OTOH I guess it isn't the end of the world if the patch is > merged via two different trees. I don't think

Re: [PATCH v3 04/10] gpio: dwapb: Add max GPIOs macro

2020-07-30 Thread Andy Shevchenko
On Thu, Jul 30, 2020 at 06:28:01PM +0300, Serge Semin wrote: > Add a new macro DWAPB_MAX_GPIOS which defines the maximum possible number > of GPIO lines corresponding to the maximum DW APB GPIO controller port > width. Use the new macro instead of number literal 32 where it's > applicable. Reviewe

[PATCH v2 4/4] KVM: SVM: Use __packed shorthand

2020-07-30 Thread Joerg Roedel
From: Borislav Petkov Use the shorthand to make it more readable. No functional changes. Signed-off-by: Joerg Roedel --- arch/x86/include/asm/svm.h | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/x86/include/asm/svm.h b/arch/x86/include/asm/svm.h inde

[PATCH v2 3/4] KVM: SVM: Add GHCB Accessor functions

2020-07-30 Thread Joerg Roedel
From: Joerg Roedel Building a correct GHCB for the hypervisor requires setting valid bits in the GHCB. Simplify that process by providing accessor functions to set values and to update the valid bitmap and to check the valid bitmap in KVM. Signed-off-by: Joerg Roedel --- arch/x86/include/asm/s

[PATCH v2 0/4] KVM: SVM: SEV-ES groundwork

2020-07-30 Thread Joerg Roedel
Hi Paolo, here is v2 of the groundwork patches for the upcoming SEV-ES support in the Linux kernel. They are part of both the client patch-set and of the KVM hypervisor patches (under development). Patch 1 necesary to fix a compile warning about a stack-frame getting too large. The other 3 patch

[PATCH v2 2/4] KVM: SVM: Add GHCB definitions

2020-07-30 Thread Joerg Roedel
From: Tom Lendacky Extend the vmcb_safe_area with SEV-ES fields and add a new 'struct ghcb' which will be used for guest-hypervisor communication. Signed-off-by: Tom Lendacky Signed-off-by: Joerg Roedel --- arch/x86/include/asm/svm.h | 45 +- arch/x86/kvm/s

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