Re: [PATCH v6] RISC-V: enable XIP

2021-03-30 Thread Alex Ghiti
Le 3/30/21 à 2:26 AM, Vitaly Wool a écrit : On Tue, Mar 30, 2021 at 8:23 AM Palmer Dabbelt wrote: On Sun, 21 Mar 2021 17:12:15 PDT (-0700), vitaly.w...@konsulko.com wrote: Introduce XIP (eXecute In Place) support for RISC-V platforms. It allows code to be executed directly from

Re: [PATCH v7 1/8] mm: Remove special swap entry functions

2021-03-30 Thread Jason Gunthorpe
On Fri, Mar 26, 2021 at 11:07:58AM +1100, Alistair Popple wrote: > Remove multiple similar inline functions for dealing with different > types of special swap entries. > > Both migration and device private swap entries use the swap offset to > store a pfn. Instead of multiple inline functions to

Re: [PATCH] jffs2: Hook up splice_write callback

2021-03-30 Thread Al Viro
On Tue, Mar 30, 2021 at 06:31:00PM +, Al Viro wrote: > On Tue, Mar 30, 2021 at 06:17:15PM +0200, Christoph Hellwig wrote: > > On Wed, Mar 31, 2021 at 12:15:37AM +1030, Joel Stanley wrote: > > > overlayfs using jffs2 as the upper filesystem would fail in some cases > > > since moving to v5.10.

Re: [PATCH 00/18] KVM: Consolidate and optimize MMU notifiers

2021-03-30 Thread Ben Gardon
On Thu, Mar 25, 2021 at 7:20 PM Sean Christopherson wrote: > > The end goal of this series is to optimize the MMU notifiers to take > mmu_lock if and only if the notification is relevant to KVM, i.e. the hva > range overlaps a memslot. Large VMs (hundreds of vCPUs) are very > sensitive to

Re: [PATCH] jffs2: Hook up splice_write callback

2021-03-30 Thread Al Viro
On Tue, Mar 30, 2021 at 06:17:15PM +0200, Christoph Hellwig wrote: > On Wed, Mar 31, 2021 at 12:15:37AM +1030, Joel Stanley wrote: > > overlayfs using jffs2 as the upper filesystem would fail in some cases > > since moving to v5.10. The test case used was to run 'touch' on a file > > that exists

Re: [RFC PATCH] nvme: allow NVME_IOCTL_IO_CMD on controller char dev even when multiple ns

2021-03-30 Thread jav...@javigon.com
On 26.03.2021 20:59, Niklas Cassel wrote: From: Niklas Cassel Currently when doing NVME_IOCTL_IO_CMD on the controller character device, the command is rejected if there is more than one namespace in the ctrl->namespaces list. There is not really any reason for this restriction. Instead,

Re: [PATCH] perf annotate: add --demangle and --demangle-kernel

2021-03-30 Thread Arnaldo Carvalho de Melo
Em Tue, Mar 30, 2021 at 08:19:10PM +0200, Martin Liška escreveu: > On 3/30/21 5:42 PM, Arnaldo Carvalho de Melo wrote: > > Trying to find V2 You said you would resend fixing up this: + OPT_BOOLEAN(0, "demangle", _conf.demangle, + "Disable symbol demangling"),

Re: [PATCH v3 01/17] cmdline: Add generic function to build command line.

2021-03-30 Thread Daniel Walker
On Tue, Mar 30, 2021 at 08:07:30PM +0200, H. Nikolaus Schaller wrote: > > > Am 30.03.2021 um 19:27 schrieb Daniel Walker : > > > > On Fri, Mar 26, 2021 at 01:44:48PM +, Christophe Leroy wrote: > >> This code provides architectures with a way to build command line > >> based on what is built

Re: [PATCH v5 1/1] fs: Allow no_new_privs tasks to call chroot(2)

2021-03-30 Thread Casey Schaufler
On 3/30/2021 11:11 AM, Mickaël Salaün wrote: > On 30/03/2021 19:19, Casey Schaufler wrote: >> On 3/30/2021 10:01 AM, Mickaël Salaün wrote: >>> Hi, >>> >>> Is there new comments on this patch? Could we move forward? >> I don't see that new comments are necessary when I don't see >> that you've

Re: [PATCH] arm64: dts: qcom: sc7280: Add PMIC peripherals for SC7280

2021-03-30 Thread Matthias Kaehlcke
On Thu, Mar 25, 2021 at 10:50:57AM +0530, ska...@codeaurora.org wrote: > Hi Matthias, > > On 2021-03-22 23:04, Matthias Kaehlcke wrote: > > Hi Satya, > > > > On Mon, Mar 22, 2021 at 06:50:47PM +0530, ska...@codeaurora.org wrote: > > > Hi Matthias, > > > > > > On 2021-03-13 02:10, Matthias

Re: [PATCH] perf annotate: add --demangle and --demangle-kernel

2021-03-30 Thread Martin Liška
On 3/30/21 5:42 PM, Arnaldo Carvalho de Melo wrote: Trying to find V2 It's this email: https://lore.kernel.org/lkml/deb2af9e-25dd-ac72-29f4-ab90c2b24...@suse.cz/ Subject: Re: [PATCH] perf config: add annotate.demangle{,_kernel} From: =?UTF-8?Q?Martin_Li=c5=a1ka?= To: Arnaldo Carvalho

Re: [PATCH RFC/RFT 1/1] misc: add simple logic analyzer using polling

2021-03-30 Thread Randy Dunlap
Hi-- On 3/30/21 1:56 AM, Wolfram Sang wrote: > diff --git a/Documentation/dev-tools/gpio-logic-analyzer.rst > b/Documentation/dev-tools/gpio-logic-analyzer.rst > new file mode 100644 > index ..2847260736d4 > --- /dev/null > +++ b/Documentation/dev-tools/gpio-logic-analyzer.rst > @@

[PATCH v1 08/10] ipmi_si: Use strstrip() to remove surrounding spaces

2021-03-30 Thread Andy Shevchenko
Instead of home grown analogue, use strstrip() from the kernel library. Signed-off-by: Andy Shevchenko --- drivers/char/ipmi/ipmi_si_hotmod.c | 16 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/drivers/char/ipmi/ipmi_si_hotmod.c

[PATCH v1 05/10] ipmi_si: Introduce panic_event_str array

2021-03-30 Thread Andy Shevchenko
Instead of twice repeat the constant literals, introduce panic_event_str array. It allows to simplify the code with help of match_string() API. Signed-off-by: Andy Shevchenko --- drivers/char/ipmi/ipmi_msghandler.c | 49 ++--- 1 file changed, 17 insertions(+), 32

[PATCH v1 03/10] ipmi_si: Utilize temporary variable to hold device pointer

2021-03-30 Thread Andy Shevchenko
By one of the previous clean up change we got a temporary variable to hold a device pointer. It can be utilized in other calls in the ->probe() and save a bit of LOCs. Signed-off-by: Andy Shevchenko --- drivers/char/ipmi/ipmi_si_platform.c | 15 +++ 1 file changed, 7 insertions(+),

[PATCH v1 07/10] ipmi_si: Get rid of ->addr_source_cleanup()

2021-03-30 Thread Andy Shevchenko
The ->addr_source_cleanup() callback is solely used by PCI driver and only for one purpose, i.e. to disable device. Get rid of ->addr_source_cleanup() by switching to PCI managed API. Signed-off-by: Andy Shevchenko --- drivers/char/ipmi/ipmi_si.h | 2 -- drivers/char/ipmi/ipmi_si_intf.c |

[PATCH v1 06/10] ipmi_si: Reuse si_to_str array in ipmi_hardcode_init_one()

2021-03-30 Thread Andy Shevchenko
Instead of making the comparison one by one, reuse si_to_str array in ipmi_hardcode_init_one() in conjunction with match_string() API. Signed-off-by: Andy Shevchenko --- drivers/char/ipmi/ipmi_si.h | 3 +++ drivers/char/ipmi/ipmi_si_hardcode.c | 23 +--

[PATCH v1 10/10] ipmi_si: Join string literals back

2021-03-30 Thread Andy Shevchenko
For easy grepping on debug purposes join string literals back in the messages. No functional change. Signed-off-by: Andy Shevchenko --- drivers/char/ipmi/ipmi_msghandler.c | 3 +- drivers/char/ipmi/ipmi_si_hardcode.c | 50 +--- drivers/char/ipmi/ipmi_si_hotmod.c |

[PATCH v1 04/10] ipmi_si: Use proper ACPI macros to check error code for failures

2021-03-30 Thread Andy Shevchenko
Instead of direct comparison, use proper ACPI macros to check error code for failures. While at it, drop unneeded 'else' keyword. Signed-off-by: Andy Shevchenko --- drivers/char/ipmi/ipmi_si_platform.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git

[PATCH v1 02/10] ipmi_si: Remove bogus err_free label

2021-03-30 Thread Andy Shevchenko
There is no more 'free' in the error path, so drop the label and return errors inline. Signed-off-by: Andy Shevchenko --- drivers/char/ipmi/ipmi_si_platform.c | 17 + 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/drivers/char/ipmi/ipmi_si_platform.c

[PATCH v1 09/10] ipmi_si: Drop redundant check before calling put_device()

2021-03-30 Thread Andy Shevchenko
put_device() is NULL aware, drop redundant check before calling it. Signed-off-by: Andy Shevchenko --- drivers/char/ipmi/ipmi_si_hotmod.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/char/ipmi/ipmi_si_hotmod.c b/drivers/char/ipmi/ipmi_si_hotmod.c index

[PATCH v1 01/10] ipmi_si: Switch to use platform_get_mem_or_io()

2021-03-30 Thread Andy Shevchenko
Switch to use new platform_get_mem_or_io() instead of home grown analogue. Note, we also introduce ipmi_set_addr_data_and_space() helper here. Signed-off-by: Andy Shevchenko --- drivers/char/ipmi/ipmi_si_platform.c | 40 +++- 1 file changed, 16 insertions(+), 24

Re: [PATCH] nds32: flush_dcache_page: use page_mapping_file to avoid races with swapoff

2021-03-30 Thread Matthew Wilcox
On Tue, Mar 30, 2021 at 08:51:26PM +0300, Mike Rapoport wrote: > From: Mike Rapoport > > Commit cb9f753a3731 ("mm: fix races between swapoff and flush dcache") > updated flush_dcache_page implementations on several architectures to use > page_mapping_file() in order to avoid races between

Re: [PATCH] mtd: intel-spi: add is_protected and is_bios_locked knobs

2021-03-30 Thread Joe Perches
On Tue, 2021-03-30 at 18:54 +0300, Tomas Winkler wrote: > From: Tamar Mashiah [] > the region protection status is exposed via sysfs file > as the manufacturing will need the both files in order to validate > that the device is properly sealed. [] > diff --git

Re: [PATCH] USB: serial: xr: fix CSIZE handling

2021-03-30 Thread Manivannan Sadhasivam
On Tue, Mar 30, 2021 at 04:37:16PM +0200, Johan Hovold wrote: > The XR21V141X does not have a 5- or 6-bit mode, but the current > implementation failed to properly restore the old setting when CS5 or > CS6 was requested. Instead an invalid request would be sent to the > device. > > Fixes:

Re: [PATCH bpf-next] bpf: check flags in 'bpf_ringbuf_discard()' and 'bpf_ringbuf_submit()'

2021-03-30 Thread Song Liu
> On Mar 30, 2021, at 7:22 AM, Pedro Tammela wrote: > > Em seg., 29 de mar. de 2021 às 13:10, Song Liu > escreveu: >> >> >> >>> On Mar 28, 2021, at 9:10 AM, Pedro Tammela wrote: >>> >>> The current code only checks flags in 'bpf_ringbuf_output()'. >>> >>> Signed-off-by: Pedro Tammela

Re: [PATCH mm v2] mm, kasan: fix for "integrate page_alloc init with HW_TAGS"

2021-03-30 Thread Sergei Trofimovich
On Tue, 30 Mar 2021 18:44:09 +0200 Vlastimil Babka wrote: > On 3/30/21 6:37 PM, Andrey Konovalov wrote: > > My commit "integrate page_alloc init with HW_TAGS" changed the order of > > kernel_unpoison_pages() and kernel_init_free_pages() calls. This leads > > to complaints from the page

arch/x86/lib/copy_mc.c:30:1: warning: no previous prototype for 'copy_mc_fragile_handle_tail'

2021-03-30 Thread kernel test robot
-r002-20210330 (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=1 build): # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ec6347bb43395cb92126788a1a5b25302543f815 git remote add linus https://git.kernel.org/pub/scm

Re: [PATCH v5 1/1] fs: Allow no_new_privs tasks to call chroot(2)

2021-03-30 Thread Mickaël Salaün
On 30/03/2021 19:19, Casey Schaufler wrote: > On 3/30/2021 10:01 AM, Mickaël Salaün wrote: >> Hi, >> >> Is there new comments on this patch? Could we move forward? > > I don't see that new comments are necessary when I don't see > that you've provided compelling counters to some of the old

Re: [Patch bpf-next] net: filter: Remove unused bpf_load_pointer

2021-03-30 Thread Song Liu
On Mon, Mar 29, 2021 at 7:11 PM He Fengqing wrote: > > Remove unused bpf_load_pointer function in filter.h > > Signed-off-by: He Fengqing Acked-by: Song Liu [...]

Re: [PATCH v3 01/17] cmdline: Add generic function to build command line.

2021-03-30 Thread H. Nikolaus Schaller
> Am 30.03.2021 um 19:27 schrieb Daniel Walker : > > On Fri, Mar 26, 2021 at 01:44:48PM +, Christophe Leroy wrote: >> This code provides architectures with a way to build command line >> based on what is built in the kernel and what is handed over by the >> bootloader, based on selected

Re: [PATCH v2 4/8] block: introduce bio_required_sector_alignment()

2021-03-30 Thread Christoph Hellwig
On Thu, Mar 25, 2021 at 09:26:05PM +, Satya Tangirala wrote: > +/* > + * The required sector alignment for a bio. The number of sectors in any bio > + * that's constructed/split must be aligned to this value. > + */ > +static inline unsigned int bio_required_sector_alignment(struct bio *bio) >

Re: [PATCH 0/4] PHY: Update Cadence Torrent PHY multilink configurations specific to TI

2021-03-30 Thread Vinod Koul
On 04-03-21, 07:08, Swapnil Jakhade wrote: > This patch series updates Torrent PHY driver for multilink configurations > specific to TI platform. It also adds support for configuring QSGMII in > TI Wiz driver. > > This patch series is dependent on [1] and should be applied on > top of this.

Re: [PATCH v2 1/8] block: introduce blk_ksm_is_empty()

2021-03-30 Thread Christoph Hellwig
On Thu, Mar 25, 2021 at 09:26:02PM +, Satya Tangirala wrote: > This function checks if a given keyslot manager supports any encryption > mode/data unit size combination (and returns true if there is no such > supported combination). Helps clean up code a little. The name sounds a little

Re: [PATCH v3 0/6] AM64: Add SERDES driver support

2021-03-30 Thread Vinod Koul
On 10-03-21, 17:38, Kishon Vijay Abraham I wrote: > AM64 uses the same SERDES as in J7200, however AM642 EVM doesn't > have a clock generator (unlike J7200 base board). Here the clock from > the SERDES has to be routed to the PCIE connector. This series adds > support to drive reference clock

Re: Fix hibernation in FIPS mode?

2021-03-30 Thread Simo Sorce
On Tue, 2021-03-30 at 16:46 +0200, Rafael J. Wysocki wrote: > On Tue, Mar 30, 2021 at 12:14 AM Dexuan Cui wrote: > > Hi, > > MD5 was marked incompliant with FIPS in 2009: > > a3bef3a31a19 ("crypto: testmgr - Skip algs not flagged fips_allowed in fips > > mode") > > a1915d51e8e7 ("crypto: testmgr

Re: Enabling pmbus power control

2021-03-30 Thread Mark Brown
On Tue, Mar 30, 2021 at 12:56:56PM -0500, Zev Weiss wrote: > Okay, to expand a bit on the description in my initial message -- we've > got a single chassis with multiple server boards and a single manager board > that handles, among other things, power control for the servers. > The manager board

Re: [PATCH v2 2/2] thermal: qcom-spmi-temp-alarm: add support for GEN2 rev 1 PMIC peripherals

2021-03-30 Thread Daniel Lezcano
On 30/03/2021 19:49, Guru Das Srinagesh wrote: > On Tue, Aug 04, 2020 at 11:48:30PM -0700, Stephen Boyd wrote: >> Quoting Guru Das Srinagesh (2020-07-29 09:52:52) >>> From: David Collins >>> >>> Add support for TEMP_ALARM GEN2 PMIC peripherals with digital >>> major revision 1. This revision

[PATCH 8/8] CMDLINE: arm64: convert to generic builtin command line

2021-03-30 Thread Daniel Walker
This updates the arm64 code to use the CONFIG_GENERIC_CMDLINE option. Cc: xe-linux-exter...@cisco.com Signed-off-by: Daniel Walker --- arch/arm64/Kconfig | 33 +- arch/arm64/kernel/idreg-override.c | 8 +--- arch/arm64/kernel/setup.c |

[PATCH 7/8] CMDLINE: x86: convert to generic builtin command line

2021-03-30 Thread Daniel Walker
This updates the x86 code to use the CONFIG_GENERIC_CMDLINE option. Cc: xe-linux-exter...@cisco.com Signed-off-by: Ruslan Ruslichenko Signed-off-by: Ruslan Bilovol Signed-off-by: Daniel Walker --- arch/x86/Kconfig| 44 + arch/x86/kernel/setup.c

[PATCH 6/8] drivers: firmware: efi: libstub: enable generic commandline

2021-03-30 Thread Daniel Walker
This adds code to handle the generic command line changes. The efi code appears that it doesn't benefit as much from this design as it could. For example, if you had a prepend command line with "nokaslr" then you might be helpful to re-enable it in the boot loader or dts, but there appears to be

[PATCH 5/8] CMDLINE: mips: convert to generic builtin command line

2021-03-30 Thread Daniel Walker
This updates the mips code to use the CONFIG_GENERIC_CMDLINE option. This deletes the option for MIPS_CMDLINE_BUILTIN_EXTEND and replaces the functionality with generic code. This includes a scripted mass convert of the config files to use the new generic cmdline. There is a bit of a trim effect

[PATCH 4/8] CMDLINE: powerpc: convert to generic builtin command line

2021-03-30 Thread Daniel Walker
This updates the powerpc code to use the CONFIG_GENERIC_CMDLINE option. This includes a scripted mass convert of the config files to use the new generic cmdline. There is a bit of a trim effect here. It would seems that some of the config haven't been trimmed in a while. The bash script used to

[PATCH 3/8] powerpc: convert strcpy to strlcpy in prom_init

2021-03-30 Thread Daniel Walker
There's only two users of strcpy and one is the command line handling. The generic command line handling uses strlcpy and it makes sense to convert this one other user to strlcpy to keep prom_init size consistent. Cc: xe-linux-exter...@cisco.com Signed-off-by: Daniel Walker ---

[PATCH 1/8] CMDLINE: add generic builtin command line

2021-03-30 Thread Daniel Walker
This code allows architectures to use a generic builtin command line. The state of the builtin command line options across architecture is diverse. MIPS and X86 once has similar systems, then mips added some options to allow extending the command line. Powerpc did something simiar in adding the

[PATCH 2/8] CMDLINE: drivers: of: ifdef out cmdline section

2021-03-30 Thread Daniel Walker
It looks like there's some seepage of cmdline stuff into the generic device tree code. This conflicts with the generic cmdline implementation so I remove it in the case when that's enabled. Cc: xe-linux-exter...@cisco.com Signed-off-by: Ruslan Ruslichenko Signed-off-by: Daniel Walker ---

Re: Enabling pmbus power control

2021-03-30 Thread Zev Weiss
On Tue, Mar 30, 2021 at 12:42:21PM CDT, Mark Brown wrote: On Tue, Mar 30, 2021 at 12:19:29PM -0500, Zev Weiss wrote: On Tue, Mar 30, 2021 at 06:22:54AM CDT, Mark Brown wrote: > On Tue, Mar 30, 2021 at 03:34:16AM -0700, Guenter Roeck wrote: > > (and I don't know if the userspace consumer code

Re: Candidate Linux ABI for Intel AMX and hypothetical new related features

2021-03-30 Thread Len Brown
On Tue, Mar 30, 2021 at 1:06 PM Andy Lutomirski wrote: > > On Mar 30, 2021, at 10:01 AM, Len Brown wrote: > > Is it required (by the "ABI") that a user program has everything > > on the stack for user-space XSAVE/XRESTOR to get back > > to the state of the program just before receiving the

Re: [PATCH v3 0/5] Add support for CP110 UTMI PHY

2021-03-30 Thread Vinod Koul
On 07-03-21, 18:33, kos...@marvell.com wrote: > From: Konstantin Porotchkin > > This series of patches adds a new PHY driver for supporting CP110 UTMI > PHY in Linux. Currently the functionality of USB ports connected to > this PHY depends on boot loader setup. > The new driver eliminates kernel

Re: [PATCH v2 2/4] cxl/mem: Fix synchronization mechanism for device removal vs ioctl operations

2021-03-30 Thread Jason Gunthorpe
On Tue, Mar 30, 2021 at 10:31:15AM -0700, Dan Williams wrote: > On Tue, Mar 30, 2021 at 10:03 AM Jason Gunthorpe wrote: > > > > On Tue, Mar 30, 2021 at 09:05:29AM -0700, Dan Williams wrote: > > > > > > If you can't clearly point to the *data* under RCU protection it is > > > > being used wrong. >

Re: [PATCH 3/3] MIPS: Remove get_fs/set_fs

2021-03-30 Thread Christoph Hellwig
> - if (likely(access_ok( __gu_ptr, size))) { \ > - if (eva_kernel_access())\ > - __get_kernel_common((x), size, __gu_ptr); \ FYI, it might be a good idea to fold __{get,put}_kernel_common into

Re: [PATCH v5 03/10] coresight: config: Add configuration and feature generic functions

2021-03-30 Thread Mathieu Poirier
On Tue, Mar 16, 2021 at 06:03:53PM +, Mike Leach wrote: > Adds a set of generic support functions that allow devices to set and save > features values on the device, and enable and disable configurations. > > Additional functions for other common operations including feature > reset. > >

Re: [PATCH] hwmon: (nzxt-kraken2) mark and order concurrent accesses

2021-03-30 Thread Jonas Malaco
On Tue, Mar 30, 2021 at 03:51:21AM -0700, Guenter Roeck wrote: > [ ... ] > > Then please explain why _this_ use of time_after() is wrong but all > others in the kernel are not. Also, please note that we are not > concerned with code generation by the compiler as long as the > generated code is

[PATCH] nds32: flush_dcache_page: use page_mapping_file to avoid races with swapoff

2021-03-30 Thread Mike Rapoport
From: Mike Rapoport Commit cb9f753a3731 ("mm: fix races between swapoff and flush dcache") updated flush_dcache_page implementations on several architectures to use page_mapping_file() in order to avoid races between page_mapping() and swapoff(). This update missed arch/nds32 and there is a

Re: [PATCH 2/3] MIPS: uaccess: Remove get_fs/set_fs call sites

2021-03-30 Thread Christoph Hellwig
On Tue, Mar 30, 2021 at 07:26:59PM +0200, Thomas Bogendoerfer wrote: > +#define __get_data(x, ptr, u) > \ > + (((u) == true) ? __get_udata((x), (ptr), sizeof(*(ptr))) : \ > + __get_kdata((x), (ptr), sizeof(*(ptr > +

Re: [PATCH v2 1/4] iommu/vt-d: Enable write protect for supervisor SVM

2021-03-30 Thread Jacob Pan
Hi Guenter, On Mon, 22 Mar 2021 10:53:38 -0700, Guenter Roeck wrote: > On Tue, Mar 02, 2021 at 02:13:57AM -0800, Jacob Pan wrote: > > Write protect bit, when set, inhibits supervisor writes to the read-only > > pages. In supervisor shared virtual addressing (SVA), where page tables > > are

BUG: key ffff000800eba398 has not been registered!

2021-03-30 Thread Naresh Kamboju
While running kselftest recently added gpio gpio-sim.sh test case the following warning was triggered on Linux next tag 20210330 tag running on arm64 juno and hikey devices. GOOD: next-20210326 BAD: next-20210330 # selftests: gpio: gpio-sim.sh # 1. chip_name and dev_name attributes # 1.1. Chip

Re: [PATCH v2 2/2] thermal: qcom-spmi-temp-alarm: add support for GEN2 rev 1 PMIC peripherals

2021-03-30 Thread Guru Das Srinagesh
On Tue, Aug 04, 2020 at 11:48:30PM -0700, Stephen Boyd wrote: > Quoting Guru Das Srinagesh (2020-07-29 09:52:52) > > From: David Collins > > > > Add support for TEMP_ALARM GEN2 PMIC peripherals with digital > > major revision 1. This revision utilizes a different temperature > > threshold

[PATCH v6 0/2] Add Realtek Otto GPIO support

2021-03-30 Thread Sander Vanheule
Add support for the GPIO controller employed by Realtek in multiple series of MIPS SoCs. These include the supported RTL838x and RTL839x. The register layout also matches the one found in the GPIO controller of other (Lexra-based) SoCs such as RTL8196E, RTL8197D, and RTL8197F. For the platform

[PATCH v6 2/2] gpio: Add Realtek Otto GPIO support

2021-03-30 Thread Sander Vanheule
Realtek MIPS SoCs (platform name Otto) have GPIO controllers with up to 64 GPIOs, divided over two banks. Each bank has a set of registers for 32 GPIOs, with support for edge-triggered interrupts. Each GPIO bank consists of four 8-bit GPIO ports (ABCD and EFGH). Most registers pack one bit per

[PATCH v6 1/2] dt-bindings: gpio: Binding for Realtek Otto GPIO

2021-03-30 Thread Sander Vanheule
Add a binding description for Realtek's GPIO controller found on several of their MIPS-based SoCs (codenamed Otto), such as the RTL838x and RTL839x series of switch SoCs. A fallback binding 'realtek,otto-gpio' is provided for cases where the actual port ordering is not known yet, and enabling the

Re: [PATCH 1/3] MIPS: uaccess: Added __get/__put_kernel_nofault

2021-03-30 Thread Christoph Hellwig
On Tue, Mar 30, 2021 at 07:26:58PM +0200, Thomas Bogendoerfer wrote: > Added __get/__put_kernel_nofault as preparation for removing > get/set_fs. For !CONFIG_EVA __get_user_common is simply defined to __get_kernel_common, which probably does the wrong thing here as it would allow access to user

Re: [PATCH v2] sched/debug: Use sched_debug_lock to serialize use of cgroup_path[] only

2021-03-30 Thread Waiman Long
On 3/30/21 6:42 AM, Daniel Thompson wrote: On Mon, Mar 29, 2021 at 03:32:35PM -0400, Waiman Long wrote: The handling of sysrq keys should normally be done in an user context except when MAGIC_SYSRQ_SERIAL is set and the magic sequence is typed in a serial console. This seems to be a poor

Re: Enabling pmbus power control

2021-03-30 Thread Mark Brown
On Tue, Mar 30, 2021 at 12:19:29PM -0500, Zev Weiss wrote: > On Tue, Mar 30, 2021 at 06:22:54AM CDT, Mark Brown wrote: > > On Tue, Mar 30, 2021 at 03:34:16AM -0700, Guenter Roeck wrote: > > > (and I don't know if the userspace consumer code is appropriate - you > > > might want to check with the

Re: [PATCH v8 25/38] iio/scmi: Port driver to the new scmi_sensor_proto_ops interface

2021-03-30 Thread Jonathan Cameron
On Tue, 30 Mar 2021 14:47:11 +0100 Cristian Marussi wrote: > Port the scmi iio driver to the new SCMI sensor interface based on > protocol handles and common devm_get_ops(). > > Link: > https://lore.kernel.org/r/20210316124903.35011-26-cristian.maru...@arm.com > Cc: Jyoti Bhayana > Cc:

Re: [PATCH] btrfs: Use readahead_batch_length

2021-03-30 Thread Matthew Wilcox
ping? On Sun, Mar 21, 2021 at 09:03:11PM +, Matthew Wilcox (Oracle) wrote: > Implement readahead_batch_length() to determine the number of bytes in > the current batch of readahead pages and use it in btrfs. > > Signed-off-by: Matthew Wilcox (Oracle) > --- > fs/btrfs/extent_io.c| 6

[PATCH 16/16] dt-bindings: phy: cdns,dphy: add power-domains property

2021-03-30 Thread Pratyush Yadav
This property is needed on TI platforms to enable the PD of the DPHY before it can be used. Signed-off-by: Pratyush Yadav --- Documentation/devicetree/bindings/phy/cdns,dphy.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/phy/cdns,dphy.yaml

[PATCH 15/16] dt-bindings: phy: cdns,dphy: make clocks optional

2021-03-30 Thread Pratyush Yadav
The clocks are not used by the DPHY when used in Rx mode so make them optional. Signed-off-by: Pratyush Yadav --- Documentation/devicetree/bindings/phy/cdns,dphy.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/cdns,dphy.yaml

[PATCH 14/16] dt-bindings: phy: Convert Cadence DPHY binding to YAML

2021-03-30 Thread Pratyush Yadav
Convert Cadence DPHY binding to YAML. Signed-off-by: Pratyush Yadav --- .../devicetree/bindings/phy/cdns,dphy.txt | 20 .../devicetree/bindings/phy/cdns,dphy.yaml| 51 +++ 2 files changed, 51 insertions(+), 20 deletions(-) delete mode 100644

[PATCH 13/16] media: ti-vpe: csi2rx: Add CSI2RX support

2021-03-30 Thread Pratyush Yadav
TI's J721E uses the Cadence CSI2RX and DPHY peripherals to facilitate capture over a CSI-2 bus. The Cadence CSI2RX IP acts as a bridge between the TI specific parts and the CSI-2 protocol parts. TI then has a wrapper on top of this bridge called the SHIM layer. It takes in data from stream 0,

[PATCH 12/16] dt-bindings: media: Add DT bindings for TI CSI2RX driver

2021-03-30 Thread Pratyush Yadav
TI's J721E uses the Cadence CSI2RX and DPHY peripherals to facilitate capture over a CSI-2 bus. The TI CSI2RX platform driver glues all the parts together. Signed-off-by: Pratyush Yadav --- .../devicetree/bindings/media/ti,csi2rx.yaml | 70 +++ 1 file changed, 70 insertions(+)

Re: [PATCH v2 3/7] powerpc: convert config files to generic cmdline

2021-03-30 Thread Daniel Walker
On Mon, Mar 29, 2021 at 11:07:51AM +0100, Will Deacon wrote: > On Thu, Mar 25, 2021 at 12:59:56PM -0700, Daniel Walker wrote: > > On Thu, Mar 25, 2021 at 01:03:55PM +0100, Christophe Leroy wrote: > > > > > > Ok, so you agree we don't need to provide two CMDLINE, one to be appended > > > and one

Re: [PATCH v7 25/38] iio/scmi: port driver to the new scmi_sensor_proto_ops interface

2021-03-30 Thread Jonathan Cameron
On Tue, 30 Mar 2021 13:51:13 +0100 Cristian Marussi wrote: > Hi Jonathan, > > On Tue, Mar 30, 2021 at 12:33:25PM +0100, Jonathan Cameron wrote: > > On Tue, 16 Mar 2021 12:48:50 + > > Cristian Marussi wrote: > > > > > Port driver to the new SCMI Sensor interface based on protocol handles

[PATCH 11/16] dmaengine: ti: k3-psil-j721e: Add entry for CSI2RX

2021-03-30 Thread Pratyush Yadav
The CSI2RX subsystem uses PSI-L DMA to transfer frames to memory. It can have up to 32 threads but the current driver only supports using one. So add an entry for that one thread. Signed-off-by: Pratyush Yadav --- drivers/dma/ti/k3-psil-j721e.c | 10 ++ 1 file changed, 10 insertions(+)

[PATCH 10/16] media: cadence: csi2rx: Add wrappers for subdev calls

2021-03-30 Thread Pratyush Yadav
When this bridge driver is being user by another platform driver, it might want to call subdev operations like getting format, setting format, enumerating format codes, etc. Add wrapper functions that pass that call through to the sensor. Currently wrappers are added only for the ops used by TI's

[PATCH 09/16] media: cadence: csi2rx: Turn subdev power on before starting stream

2021-03-30 Thread Pratyush Yadav
The subdevice power needs to be turned on before the stream is started. Otherwise it might not be in the proper state to stream the data. Turn it off when stopping the stream. Signed-off-by: Pratyush Yadav --- drivers/media/platform/cadence/cdns-csi2rx.c | 8 1 file changed, 8

[PATCH 08/16] media: cadence: csi2rx: Fix stream data configuration

2021-03-30 Thread Pratyush Yadav
Firstly, there is no VC_EN bit present in the STREAM_DATA_CFG register. Bit 31 is part of the VL_SELECT field. Remove it completely. Secondly, it makes little sense to enable ith virtual channel for ith stream. Sure, there might be a use-case that demands it. But there might also be a use case

[PATCH 07/16] media: cadence: csi2rx: Set the STOP bit when stopping a stream

2021-03-30 Thread Pratyush Yadav
The stream stop procedure says that the STOP bit should be set when the stream is to be stopped, and then the ready bit in stream status register polled to make sure the STOP operation is finished. Signed-off-by: Pratyush Yadav --- drivers/media/platform/cadence/cdns-csi2rx.c | 18

[PATCH 05/16] media: cadence: csi2rx: Add external DPHY support

2021-03-30 Thread Pratyush Yadav
Some platforms like TI's J721E can have the CSI2RX paired with an external DPHY. Add support to enable and configure the DPHY using the generic PHY framework. Get the pixel rate and bpp from the subdev and pass them on to the DPHY along with the number of lanes. All other settings are left to

[PATCH 06/16] media: cadence: csi2rx: Soft reset the streams before starting capture

2021-03-30 Thread Pratyush Yadav
This resets the stream state machines and FIFOs, giving them a clean slate. On J721E if the streams are not reset before starting the capture, the captured frame gets wrapped around vertically on every run after the first. Signed-off-by: Pratyush Yadav ---

[PATCH 04/16] phy: cdns-dphy: Add Rx support

2021-03-30 Thread Pratyush Yadav
The Cadence DPHY can be used to receive image data over the CSI-2 protocol. Add support for Rx mode. The programming sequence differs from the Tx mode so it is added as a separate set of hooks to isolate the two paths. The PHY is in Tx mode by default and it needs to be set in Rx mode by setting

[PATCH 00/16] CSI2RX support on J721E

2021-03-30 Thread Pratyush Yadav
Hi, This series adds support for CSI2 capture on J721E. It includes some fixes to the Cadence CSI2RX driver, adds Rx support to Cadence DPHY driver, and finally adds the TI CSI2RX wrapper driver. Tested on TI's J721E with OV5640 sensor. Paul Kocialkowski (1): phy: Distinguish between Rx and

[PATCH 03/16] phy: cdns-dphy: Allow setting mode

2021-03-30 Thread Pratyush Yadav
Allow callers to set the PHY mode. The main mode should always be PHY_MODE_MIPI_DPHY but the submode can either be PHY_MIPI_DPHY_SUBMODE_RX or PHY_MIPI_DPHY_SUBMODE_TX. Update the ops based on the requested submode. Signed-off-by: Pratyush Yadav --- drivers/phy/cadence/cdns-dphy.c | 30

Re: [PATCH v2] nvme-tcp: Check if request has started before processing it

2021-03-30 Thread Sagi Grimberg
It is, but in this situation, the controller is sending a second completion that results in a use-after-free, which makes the transport irrelevant. Unless there is some other flow (which is unclear to me) that causes this which is a bug that needs to be fixed rather than hidden with a

[PATCH 02/16] phy: cdns-dphy: Prepare for Rx support

2021-03-30 Thread Pratyush Yadav
The Rx programming sequence differs from the Tx programming sequence. Currently only Tx mode is supported. Move all the Tx related parts into a set of Tx-specific hooks that are then called by the main PHY framework hooks. This way when Rx support is added all that is needed to be done is to plug

[PATCH 01/16] phy: Distinguish between Rx and Tx for MIPI D-PHY with submodes

2021-03-30 Thread Pratyush Yadav
From: Paul Kocialkowski As some D-PHY controllers support both Rx and Tx mode, we need a way for users to explicitly request one or the other. For instance, Rx mode can be used along with MIPI CSI-2 while Tx mode can be used with MIPI DSI. Introduce new MIPI D-PHY PHY submodes to use with

Re: [PATCH v3 3/4] kernel/smp: add more data to CSD lock debugging

2021-03-30 Thread Paul E. McKenney
On Wed, Mar 24, 2021 at 11:18:03AM +0100, Jürgen Groß wrote: > On 02.03.21 07:28, Juergen Gross wrote: > > In order to help identifying problems with IPI handling and remote > > function execution add some more data to IPI debugging code. > > > > There have been multiple reports of cpus looping

Re: [PATCH v2 3/7] powerpc: convert config files to generic cmdline

2021-03-30 Thread Daniel Walker
On Thu, Mar 25, 2021 at 05:29:44PM -0600, Rob Herring wrote: > On Thu, Mar 25, 2021 at 2:00 PM Daniel Walker wrote: > > > > On Thu, Mar 25, 2021 at 01:03:55PM +0100, Christophe Leroy wrote: > > > > > > Ok, so you agree we don't need to provide two CMDLINE, one to be appended > > > and one to be

Re: [PATCH v2 2/4] cxl/mem: Fix synchronization mechanism for device removal vs ioctl operations

2021-03-30 Thread Dan Williams
On Tue, Mar 30, 2021 at 10:03 AM Jason Gunthorpe wrote: > > On Tue, Mar 30, 2021 at 09:05:29AM -0700, Dan Williams wrote: > > > > If you can't clearly point to the *data* under RCU protection it is > > > being used wrong. > > > > Agree. > > > > The data being protected is the value of > >

Re: [PATCH 14/30] Revert "s3c24xx-dma.c: Fix a typo"

2021-03-30 Thread Vinod Koul
On 29-03-21, 05:23, Bhaskar Chowdhury wrote: > s/transferred/transfered/ > > This reverts commit a2ddb8aea8106bd5552f8516ad7a8a26b9282a8f. This is not upstream, why not squash in. Also would make sense to write sensible changelog and not phrases and use the right subsystem conventions! Droped

[GIT PULL] s390 updates for 5.12-rc6

2021-03-30 Thread Heiko Carstens
Hi Linus, please pull a couple of small updates for s390. Thanks, Heiko The following changes since commit 0d02ec6b3136c73c09e7859f0d0e4e2c4c07b49b: Linux 5.12-rc4 (2021-03-21 14:56:43 -0700) are available in the Git repository at:

Re: [RESEND PATCH 3/5] clk: at91: sama7g5: add securam's peripheral clock

2021-03-30 Thread Nicolas Ferre
On 24/03/2021 at 10:43, Claudiu Beznea wrote: Add SECURAM's peripheral clock. Signed-off-by: Claudiu Beznea Acked-by: Nicolas Ferre --- drivers/clk/at91/sama7g5.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/at91/sama7g5.c b/drivers/clk/at91/sama7g5.c index

Re: [PATCH v3 01/17] cmdline: Add generic function to build command line.

2021-03-30 Thread Daniel Walker
On Fri, Mar 26, 2021 at 01:44:48PM +, Christophe Leroy wrote: > This code provides architectures with a way to build command line > based on what is built in the kernel and what is handed over by the > bootloader, based on selected compile-time options. > > Signed-off-by: Christophe Leroy >

[PATCH 3/3] MIPS: Remove get_fs/set_fs

2021-03-30 Thread Thomas Bogendoerfer
All get_fs/set_fs calls in MIPS code are gone, so remove implementation of it. With the clear separation of user/kernel space access we no longer need the EVA special handling, so get rid of that, too. Signed-off-by: Thomas Bogendoerfer --- arch/mips/Kconfig | 1 -

[PATCH 2/3] MIPS: uaccess: Remove get_fs/set_fs call sites

2021-03-30 Thread Thomas Bogendoerfer
Use new __get_data macro to access user/kernel for functions, which are used with user/kernel pointers. Instead of dealing with get_fs/set_fs this macro uses a parameter to select user/kernel access. Signed-off-by: Thomas Bogendoerfer --- arch/mips/include/asm/uaccess.h | 23

[PATCH 1/3] MIPS: uaccess: Added __get/__put_kernel_nofault

2021-03-30 Thread Thomas Bogendoerfer
Added __get/__put_kernel_nofault as preparation for removing get/set_fs. Signed-off-by: Thomas Bogendoerfer --- arch/mips/include/asm/uaccess.h | 24 1 file changed, 24 insertions(+) diff --git a/arch/mips/include/asm/uaccess.h b/arch/mips/include/asm/uaccess.h index

[PATCH 0/3] MIPS: Remove get_fs/set_fs

2021-03-30 Thread Thomas Bogendoerfer
This series replaces get_fs/set_fs and removes it from MIPS arch code. Thomas Bogendoerfer (3): MIPS: uaccess: Added __get/__put_kernel_nofault MIPS: uaccess: Remove get_fs/set_fs call sites MIPS: Remove get_fs/set_fs arch/mips/Kconfig | 1 -

Re: [PATCH v6 0/9] soundwire: qcom: various improvements

2021-03-30 Thread Vinod Koul
On 30-03-21, 15:47, Srinivas Kandagatla wrote: > Thanks for reviewing v5 of this patchset! > > During testing SoundWire controller on SM8250 MTP, we found > few issues like all the interrupts are not handled, > all transport parameters are not read from device tree. > Patch to add Auto

Re: WARNING: at fs/proc/generic.c:717 remove_proc_entry

2021-03-30 Thread Naresh Kamboju
Small correction, As per available test data the good tag is next-20210326. GOOD: next-20210326 BAD: next-20210330 On Tue, 30 Mar 2021 at 22:19, Naresh Kamboju wrote: > > While running kselftest gpio on x86_64 and i386 the following warnings were > noticed and the device did not recover

Re: [RESEND PATCH 4/5] clk: at91: clk-master: add register definition for sama7g5's master clock

2021-03-30 Thread Nicolas Ferre
On 24/03/2021 at 10:43, Claudiu Beznea wrote: Add register definitions for SAMA7G5's master clock. These would be also used by architecture specific power saving code. With this, update also clk-master.c. Signed-off-by: Claudiu Beznea --- drivers/clk/at91/clk-master.c | 51

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