Re: [PATCH v3 1/2] dt-bindings: can: add can-controller.yaml

2020-10-30 Thread Rob Herring
On Thu, 22 Oct 2020 09:52:17 +0200, Oleksij Rempel wrote: > For now we have only node name as common rule for all CAN controllers > > Signed-off-by: Oleksij Rempel > Link: https://lore.kernel.org/r/20201016073315.16232-2-o.rem...@pengutronix.de > Signed-off-by: Marc Kleine-Budde > --- >

Re: [PATCH v3 2/2] dt-bindings: can: flexcan: convert fsl,*flexcan bindings to yaml

2020-10-30 Thread Rob Herring
On Thu, 22 Oct 2020 09:52:18 +0200, Oleksij Rempel wrote: > In order to automate the verification of DT nodes convert > fsl-flexcan.txt to fsl,flexcan.yaml > > Signed-off-by: Oleksij Rempel > Link: https://lore.kernel.org/r/20201016073315.16232-3-o.rem...@pengutronix.de > Signed-off-by: Marc

Re: [PATCH 1/4] dt-bindings: add defines for i.MX8MN power domains

2020-10-30 Thread Rob Herring
On Thu, 22 Oct 2020 10:08:04 -0500, Adam Ford wrote: > The i.MX8M Nano has a similar power domain controller to that of the > mini, but it isn't fully compatible, so it needs a separate binding > and power domain tables. > > Add the bindings and tables. > > Signed-off-by: Adam Ford >

Re: [PATCH v2 08/10] dt-bindings: pwm: Add binding for RPi firmware PWM bus

2020-10-30 Thread Rob Herring
On Thu, 22 Oct 2020 17:58:55 +0200, Nicolas Saenz Julienne wrote: > The PWM bus controlling the fan in RPi's official PoE hat can only be > controlled by the board's co-processor. > > Signed-off-by: Nicolas Saenz Julienne > > --- > Changes since v1: > - Update bindings to use 2 #pwm-cells > >

Re: [PATCH] Input: add SW_COVER_ATTACHED and SW_EXT_PEN_ATTACHED

2020-10-30 Thread Sebastian Reichel
Hi, On Fri, Oct 30, 2020 at 10:15:52PM +0900, Jungrae Kim wrote: > From 23aed4567e234b7e108c31abadb9f3a3f7d2 Mon Sep 17 00:00:00 2001 > From: Jungrae Kim > Date: Fri, 30 Oct 2020 21:23:12 +0900 > Subject: [PATCH] Input: add SW_COVER_ATTACHED and SW_EXT_PEN_ATTACHED > > SW_COVER_ATTACHED

Re: [PATCH v6 4/9] mm, kfence: insert KFENCE hooks for SLAB

2020-10-30 Thread Marco Elver
On Fri, 30 Oct 2020 at 03:49, Jann Horn wrote: > On Thu, Oct 29, 2020 at 2:17 PM Marco Elver wrote: > > Inserts KFENCE hooks into the SLAB allocator. > [...] > > diff --git a/mm/slab.c b/mm/slab.c > [...] > > @@ -3416,6 +3427,11 @@ static void cache_flusharray(struct kmem_cache > > *cachep,

Re: [PATCH] sched/fair: remove the spin_lock operations

2020-10-30 Thread Phil Auld
On Fri, Oct 30, 2020 at 10:46:21PM +0800 Hui Su wrote: > Since 'ab93a4bc955b ("sched/fair: Remove > distribute_running fromCFS bandwidth")',there is > nothing to protect between raw_spin_lock_irqsave/store() > in do_sched_cfs_slack_timer(). > > So remove it. > > Signed-off-by: Hui Su > --- >

Re: [PATCH v2 6/7] media: dt-bindings: media: qcom,camss: Add bindings for SDM660 camss

2020-10-30 Thread Rob Herring
On Thu, 22 Oct 2020 19:47:05 +0200, khol...@gmail.com wrote: > From: AngeloGioacchino Del Regno > > Add bindings for qcom,sdm660-camss in order to support the camera > subsystem on SDM630/660 and SDA variants. > > Signed-off-by: AngeloGioacchino Del Regno > Reviewed-by: Robert Foss > --- >

Re: [Y2038][time namespaces] Question regarding CLOCK_REALTIME support plans in Linux time namespaces

2020-10-30 Thread Lukasz Majewski
Hi Thomas, > Lukasz, > > On Fri, Oct 30 2020 at 11:02, Lukasz Majewski wrote: > > I do have a question regarding the Linux time namespaces in respect > > of adding support for virtualizing the CLOCK_REALTIME. > > > > According to patch description [1] and time_namespaces documentation > > [2]

[PATCH v4 0/9] ARM: remove set_fs callers and implementation

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann Hi Christoph, Russell, This is the rebased version of my ARM set_fs patches on top of v5.10-rc1, dropping the TASK_SIZE_MAX patch but leaving everything else unchanged. I have tested the oabi-compat changes using the LTP tests for the three modified syscalls using an Armv7

Re: [PATCH v1 1/2] ptrace: Set PF_SUPERPRIV when checking capability

2020-10-30 Thread Jann Horn
On Fri, Oct 30, 2020 at 1:39 PM Mickaël Salaün wrote: > Commit 69f594a38967 ("ptrace: do not audit capability check when outputing > /proc/pid/stat") replaced the use of ns_capable() with > has_ns_capability{,_noaudit}() which doesn't set PF_SUPERPRIV. > > Commit 6b3ad6649a4c ("ptrace:

Re: [PATCH v6 3/9] arm64, kfence: enable KFENCE for ARM64

2020-10-30 Thread Mark Rutland
On Thu, Oct 29, 2020 at 02:16:43PM +0100, Marco Elver wrote: > Add architecture specific implementation details for KFENCE and enable > KFENCE for the arm64 architecture. In particular, this implements the > required interface in . > > KFENCE requires that attributes for pages from its memory

[PATCH 4.14 ] ALSA: Corrects warning: missing braces around initializer

2020-10-30 Thread john . p . donnelly
From: John Donnelly The assignment statement of a local variable "struct hpi_pci pci = { 0 }; " is not valid for all versions of compiler. Fixes: 9c3c9d37ae1e ("ALSA: asihpi: fix iounmap in error handler") Signed-off-by: John Donnelly --- sound/pci/asihpi/hpioctl.c | 3 ++- 1 file changed, 2

[PATCH] arm64: qcom: sc7180: trogdor: Add ADC nodes and thermal zone for charger thermistor

2020-10-30 Thread Matthias Kaehlcke
From: Antony Wang Trogdor has a thermistor to monitor the temperature of the charger IC. Add the ADC (monitor) nodes and a thermal zone for this thermistor. Signed-off-by: Antony Wang [ mka: tweaked commit message ] Signed-off-by: Matthias Kaehlcke ---

Re: [PATCH v2 2/3] dt-bindings: mfd: Add QCOM PM8008 MFD bindings

2020-10-30 Thread Rob Herring
On Thu, Oct 22, 2020 at 02:35:41PM -0700, Guru Das Srinagesh wrote: > Add device tree bindings for the driver for Qualcomm Technology Inc.'s > PM8008 MFD PMIC. > > Signed-off-by: Guru Das Srinagesh > --- > .../bindings/mfd/qcom,pm8008-irqchip.yaml | 102 > + > 1

[PATCH 1/9] mm/maccess: fix unaligned copy_{from,to}_kernel_nofault

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann On machines such as ARMv5 that trap unaligned accesses, these two functions can be slow when each access needs to be emulated, or they might not work at all. Change them so that each loop is only used when both the src and dst pointers are naturally aligned. Reviewed-by:

Re: [PATCH RFC v2 10/21] kasan: inline random_tag for HW_TAGS

2020-10-30 Thread Andrey Konovalov
On Wed, Oct 28, 2020 at 12:08 PM Dmitry Vyukov wrote: > > On Thu, Oct 22, 2020 at 3:19 PM Andrey Konovalov > wrote: > > > > Using random_tag() currently results in a function call. Move its > > definition to mm/kasan/kasan.h and turn it into a static inline function > > for hardware tag-based

[PATCH 3/9] ARM: oabi-compat: add epoll_pwait handler

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann The epoll_wait() syscall has a special version for OABI compat mode to convert the arguments to the EABI structure layout of the kernel. However, the later epoll_pwait() syscall was added in arch/arm in linux-2.6.32 without this conversion. Use the same kind of handler for

[PATCH 7/9] ARM: oabi-compat: rework fcntl64() emulation

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann This is one of the last users of get_fs(), and this is fairly easy to change, since the infrastructure for it is already there. The replacement here is essentially a copy of the existing fcntl64() syscall entry function. Signed-off-by: Arnd Bergmann ---

[PATCH 9/9] ARM: uaccess: remove set_fs() implementation

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann There are no remaining callers of set_fs(), so just remove it along with all associated code that operates on thread_info->addr_limit. There are still further optimizations that can be done: - In get_user(), the address check could be moved entirely into the out of line

Re: [PATCH v2 0/6] ARM: dts: sun8i: v3s: Enable video decoder

2020-10-30 Thread Maxime Ripard
Hi! On Fri, Oct 30, 2020 at 12:06:10PM +0100, Hans Verkuil wrote: > Maxime, > > Are you OK with this series? It looks good to me. I am, you can take it. I'll merge the dt patches through arm-soc Thanks! Maxime signature.asc Description: PGP signature

[PATCH 4/9] ARM: syscall: always store thread_info->syscall

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann The system call number is used in a a couple of places, in particular ptrace, seccomp and /proc//syscall. The last one apparently never worked reliably on ARM for tasks that are not currently getting traced. Storing the syscall number in the normal entry path makes it work,

[PATCH 8/9] ARM: uaccess: add __{get,put}_kernel_nofault

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann These mimic the behavior of get_user and put_user, except for domain switching, address limit checking and handling of mismatched sizes, none of which are relevant here. To work with pre-Armv6 kernels, this has to avoid TUSER() inside of the new macros, the new approach

[PATCH 5/9] ARM: oabi-compat: rework epoll_wait/epoll_pwait emulation

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann The epoll_wait() system call wrapper is one of the remaining users of the set_fs() infrasturcture for Arm. Changing it to not require set_fs() is rather complex unfortunately. The approach I'm taking here is to allow architectures to override the code that copies the output

[PATCH 6/9] ARM: oabi-compat: rework sys_semtimedop emulation

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann sys_oabi_semtimedop() is one of the last users of set_fs() on Arm. To remove this one, expose the internal code of the actual implementation that operates on a kernel pointer and call it directly after copying. There should be no measurable impact on the normal execution of

[PATCH 2/9] ARM: traps: use get_kernel_nofault instead of set_fs()

2020-10-30 Thread Arnd Bergmann
From: Arnd Bergmann ARM uses set_fs() and __get_user() to allow the stack dumping code to access possibly invalid pointers carefully. These can be changed to the simpler get_kernel_nofault(), and allow the eventual removal of set_fs(). dump_instr() will print either kernel or user space

Re: [PATCH v2 1/5] dt-bindings: display: mediatek: disp: add documentation for MT8167 SoC

2020-10-30 Thread Rob Herring
On Fri, 23 Oct 2020 15:31:26 +0200, Fabien Parent wrote: > Add binding documentation for the MT8167 SoC > > Signed-off-by: Fabien Parent > Reviewed-by: Chun-Kuang Hu > --- > > Changelog: > > V2: No change > > .../devicetree/bindings/display/mediatek/mediatek,disp.txt| 4 ++-- > 1 file

RE: [PATCH v11 00/10] NTFS read-write driver GPL implementation by Paragon Software

2020-10-30 Thread Konstantin Komarov
From: Pali Rohár Sent: Friday, October 30, 2020 6:25 PM > To: Konstantin Komarov > Cc: linux-fsde...@vger.kernel.org; v...@zeniv.linux.org.uk; > linux-kernel@vger.kernel.org; dste...@suse.cz; aap...@suse.com; > wi...@infradead.org; rdun...@infradead.org; j...@perches.com; > m...@harmstone.com;

Re: [PATCH -next] fs: Fix memory leaks in do_renameat2() error paths

2020-10-30 Thread Qian Cai
On Fri, 2020-10-30 at 09:27 -0600, Jens Axboe wrote: > On 10/30/20 9:24 AM, Qian Cai wrote: > > We will need to call putname() before do_renameat2() returning -EINVAL > > to avoid memory leaks. > > Thanks, should mention that this isn't final by any stretch (which is > why it hasn't been posted

[PATCH 4.14 ] platform/x86: Corrects warning: missing braces around initializer

2020-10-30 Thread john . p . donnelly
From: John Donnelly The assignment statement of a local variable "struct tp_nvram_state s[2] = {0}; " is not valid for all versions of compilers (UEK6 on OL7). Fixes: 515ded02bc4b ("platform/x86: thinkpad_acpi: initialize tp_nvram_state variable") Signed-off-by: John Donnelly ---

RE: [PATCH v10 02/10] fs/ntfs3: Add initialization of super block

2020-10-30 Thread Konstantin Komarov
From: Matthew Wilcox Sent: Friday, October 23, 2020 9:25 PM > To: Konstantin Komarov > Cc: linux-fsde...@vger.kernel.org; v...@zeniv.linux.org.uk; > linux-kernel@vger.kernel.org; p...@kernel.org; dste...@suse.cz; > aap...@suse.com; rdun...@infradead.org; j...@perches.com; m...@harmstone.com; >

Re:(2) [PATCH] Input: add SW_COVER_ATTACHED and SW_EXT_PEN_ATTACHED

2020-10-30 Thread Jungrae Kim
> Hi, > > On Fri, Oct 30, 2020 at 10:15:52PM +0900, Jungrae Kim wrote: > > From 23aed4567e234b7e108c31abadb9f3a3f7d2 Mon Sep 17 00:00:00 2001 > > From: Jungrae Kim > > Date: Fri, 30 Oct 2020 21:23:12 +0900 > > Subject: [PATCH] Input: add SW_COVER_ATTACHED and SW_EXT_PEN_ATTACHED > > > >

Re: [PATCH v6 3/9] arm64, kfence: enable KFENCE for ARM64

2020-10-30 Thread Marco Elver
On Fri, 30 Oct 2020 at 16:47, Mark Rutland wrote: > > On Thu, Oct 29, 2020 at 02:16:43PM +0100, Marco Elver wrote: > > Add architecture specific implementation details for KFENCE and enable > > KFENCE for the arm64 architecture. In particular, this implements the > > required interface in . > > >

Re: [PATCH net-next] net: phy: realtek: Add support for RTL8221B-CG series

2020-10-30 Thread Andrew Lunn
On Fri, Oct 30, 2020 at 01:56:20PM +0800, Willy Liu wrote: > Realtek single-port 2.5Gbps Ethernet PHYs are list as below: > RTL8226-CG: the 1st generation 2.5Gbps single port PHY > RTL8226B-CG/RTL8221B-CG: the 2nd generation 2.5Gbps single port PHY > RTL8221B-VB-CG: the 3rd generation 2.5Gbps

[PATCH 4.14 v2 ] platform/x86: Corrects warning: missing braces around initializer

2020-10-30 Thread john . p . donnelly
From: John Donnelly The assignment statement of a local variable "struct tp_nvram_state s[2] = {0}; is not valid for all versions of compilers. Fixes: 515ded02bc4b ("platform/x86: thinkpad_acpi: initialize tp_nvram_state variable") Signed-off-by: John Donnelly ---

Re: [PATCH 4.14 ] platform/x86: Corrects warning: missing braces around initializer

2020-10-30 Thread John Donnelly
> On Oct 30, 2020, at 10:52 AM, john.p.donne...@oracle.com wrote: > > From: John Donnelly > > The assignment statement of a local variable "struct tp_nvram_state s[2] = > {0}; " > is not valid for all versions of compilers (UEK6 on OL7). > > Fixes: 515ded02bc4b ("platform/x86:

[PATCH v2 2/2] mm/compaction: stop isolation if too many pages are isolated and we have pages to migrate.

2020-10-30 Thread Zi Yan
From: Zi Yan In isolate_migratepages_block, if we have too many isolated pages and nr_migratepages is not zero, we should try to migrate what we have without wasting time on isolating. Fixes: 1da2f328fa64 (“mm,thp,compaction,cma: allow THP migration for CMA allocations”) Suggested-by:

[PATCH v2 1/2] mm/compaction: count pages and stop correctly during page isolation.

2020-10-30 Thread Zi Yan
From: Zi Yan In isolate_migratepages_block, when cc->alloc_contig is true, we are able to isolate compound pages, nr_migratepages and nr_isolated did not count compound pages correctly, causing us to isolate more pages than we thought. Use thp_nr_pages to count pages. Otherwise, we might be

Re: [PATCH v6 3/9] arm64, kfence: enable KFENCE for ARM64

2020-10-30 Thread Mark Rutland
On Fri, Oct 30, 2020 at 03:49:26AM +0100, Jann Horn wrote: > On Thu, Oct 29, 2020 at 2:17 PM Marco Elver wrote: > > @@ -312,6 +313,9 @@ static void __do_kernel_fault(unsigned long addr, > > unsigned int esr, > > "Ignoring spurious kernel translation fault at virtual address > >

Re: [PATCH v2 1/2] init/Kconfig: Fix CPU number in LOG_CPU_MAX_BUF_SHIFT description

2020-10-30 Thread Paul Menzel
Dear Petr, Am 11.08.20 um 11:29 schrieb Paul Menzel: Currently, LOG_BUF_SHIFT defaults to 17, which is 2 ^ 17 bytes = 128 KB, and LOG_CPU_MAX_BUF_SHIFT defaults to 12, which is 2 ^ 12 bytes = 4 KB. Half of 128 KB is 64 KB, so more than 16 CPUs are required for the value to be used, as then

Re: [RESEND PATCH v18 2/4] overlayfs: handle XATTR_NOSECURITY flag for get xattr method

2020-10-30 Thread Mark Salyzyn
On 10/30/20 8:07 AM, Miklos Szeredi wrote: On Wed, Oct 21, 2020 at 5:19 PM Mark Salyzyn wrote: Because of the overlayfs getxattr recursion, the incoming inode fails to update the selinux sid resulting in avc denials being reported against a target context of u:object_r:unlabeled:s0. Solution

Re: [PATCH 1/4] prandom.h: add *_state variant of prandom_u32_max

2020-10-30 Thread Petr Mladek
On Sun 2020-10-25 22:48:39, Rasmus Villemoes wrote: > It is useful for test modules that make use of random numbers to allow > the exact same series of test cases to be repeated (e.g., after fixing > a bug in the code being tested). For that, the test module needs to > obtain its random numbers

Re: [PATCH 2/4] kselftest_module.h: unconditionally expand the KSTM_MODULE_GLOBALS() macro

2020-10-30 Thread Petr Mladek
On Sun 2020-10-25 22:48:40, Rasmus Villemoes wrote: > Two out of three users of the kselftest_module.h header > manually define the failed_tests/total_tests variables instead of > making use of the KSTM_MODULE_GLOBALS() macro. However, instead of > just replacing those definitions with an

Re: [PATCH v1 1/2] ptrace: Set PF_SUPERPRIV when checking capability

2020-10-30 Thread Mickaël Salaün
On 30/10/2020 16:47, Jann Horn wrote: > On Fri, Oct 30, 2020 at 1:39 PM Mickaël Salaün wrote: >> Commit 69f594a38967 ("ptrace: do not audit capability check when outputing >> /proc/pid/stat") replaced the use of ns_capable() with >> has_ns_capability{,_noaudit}() which doesn't set PF_SUPERPRIV.

Re: [PATCH RFC v2 10/21] kasan: inline random_tag for HW_TAGS

2020-10-30 Thread Andrey Konovalov
On Fri, Oct 30, 2020 at 4:48 PM Andrey Konovalov wrote: > > On Wed, Oct 28, 2020 at 12:08 PM Dmitry Vyukov wrote: > > > > On Thu, Oct 22, 2020 at 3:19 PM Andrey Konovalov > > wrote: > > > > > > Using random_tag() currently results in a function call. Move its > > > definition to

Re: [PATCH 1/2] mailbox: stm32-ipcc: add COMPILE_TEST dependency

2020-10-30 Thread kernel test robot
Hi Martin, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on fujitsu-integration/mailbox-for-next] [also build test WARNING on stm32/stm32-next linus/master linux/master v5.10-rc1 next-20201030] [If your patch is applied to the wrong git tree, kindly drop us

Re: [PATCH v10 01/15] ASoC: sun4i-i2s: Fix lrck_period computation for I2S justified mode

2020-10-30 Thread Maxime Ripard
On Fri, Oct 30, 2020 at 03:46:34PM +0100, Clément Péron wrote: > Left and Right justified mode are computed using the same formula > as DSP_A and DSP_B mode. > Which is wrong and the user manual explicitly says: > > LRCK_PERDIOD: > PCM Mode: Number of BCLKs within (Left + Right) channel width. >

[PATCH 00/24] x86/resctrl: Merge the CDP resources

2020-10-30 Thread James Morse
Hi folks, This series re-folds the resctrl code so the CDP resources (L3CODE et al) behaviour is all contained in the filesystem parts, with a minimum amount of arch specific code. Arm have some CPU support for dividing caches into portions, and applying bandwidth limits at various points in the

[PATCH 04/24] x86/resctrl: Add a separate schema list for resctrl

2020-10-30 Thread James Morse
To support multiple architectures, the resctrl code needs to be split into a 'fs' specific part in core code, and an arch-specific backend. It should be difficult for the arch-specific backends to diverge, supporting slightly different ABIs for user-space. For example, generating, parsing and

[PATCH 07/24] x86/resctrl: Label the resources with their configuration type

2020-10-30 Thread James Morse
Before the name for the schema can be generated, the type of the configuration being applied to the resource needs to be known. Label all the entries in rdt_resources_all[], and copy that value in to struct resctrl_schema. Subsequent patches will generate the schema names in what will become the

[PATCH 03/24] x86/resctrl: Add resctrl_arch_get_num_closid()

2020-10-30 Thread James Morse
resctrl chooses whether to enable CDP, once it does, half the number of closid are available. MPAM doesn't behave like this, an in-kernel user of MPAM could be 'using CDP' while resctrl is not. To move the 'half the closids' behaviour to be part of the core code, each schema would have a

[PATCH 06/24] x86/resctrl: Store the effective num_closid in the schema

2020-10-30 Thread James Morse
resctrl_schema holds properties that vary with the style of configuration that resctrl applies to a resource. Once the arch code has a single resource per cache that can be configured, resctrl will need to keep track of the num_closid itself. Add num_closid to resctrl_schema. Change callers like

[PATCH 02/24] x86/resctrl: Split struct rdt_domain

2020-10-30 Thread James Morse
resctrl is the defacto Linux ABI for SoC resource partitioning features. To support it on another architecture, it needs to be abstracted from Intel RDT, and moved it to /fs/. Split struct rdt_domain up too. Move everything that that is particular to resctrl into a new header file. resctrl code

[PATCH 08/24] x86/resctrl: Walk the resctrl schema list instead of an arch list

2020-10-30 Thread James Morse
Now that resctrl has its own list of resources it is using, walk that list instead of the architectures list. This means resctrl has somewhere to keep schema properties with the resource that is using them. Most users of for_each_alloc_enabled_rdt_resource() are per-schema, and also want a schema

[PATCH 05/24] x86/resctrl: Pass the schema in resdir's private pointer

2020-10-30 Thread James Morse
Moving properties that resctrl exposes to user-space into the core 'fs' code, (e.g. the name of the schema), means some of the functions that back the filesystem need the schema struct, but currently take the resource. Once the CDP resources are merged, the resource doesn't reflect the right

[PATCH 01/24] x86/resctrl: Split struct rdt_resource

2020-10-30 Thread James Morse
resctrl is the defacto Linux ABI for SoC resource partitioning features. To support it on another architecture, it needs to be abstracted from Intel RDT, and moved it to /fs/. Start by splitting struct rdt_resource, (the name is kept to keep the noise down), and add some type-trickery to keep the

[PATCH 15/24] x86/resctrl: Add a helper to read a closid's configuration

2020-10-30 Thread James Morse
The hardware configuration may look completely different to the values resctrl gets from user-space. The staged configuration and resctrl_arch_update_domains() allow the architecture to convert or translate these values. (e.g. Arm's MPAM may back MBA's percentage control using the 'BWPBM' bitmap)

[PATCH 09/24] x86/resctrl: Change rdt_resource to resctrl_schema in pseudo_lock_region

2020-10-30 Thread James Morse
struct pseudo_lock_region points to the rdt_resource. Once the resources are merged, this won't be unique. The resource name is moving into the schema, so that eventually resctrl can generate it. Change pseudo_lock_region's rdt_resource pointer for a schema pointer. Signed-off-by: James Morse

[PATCH 21/24] x86/resctrl: Calculate the index from the configuration type

2020-10-30 Thread James Morse
resctrl uses cbm_idx() to map a closid to an index in the configuration array. This is based on whether this is a CODE, DATA or BOTH resource. To merge the resources, resctrl needs to make this decision based on something else, as there will only be one resource. Decide based on the staged

[PATCH 20/24] x86/resctrl: Apply offset correction when config is staged

2020-10-30 Thread James Morse
When resctrl comes to write the CAT MSR values, it applies an adjustment based on the style of the resource. CODE and DATA resources have their closid mapped into an odd/even range. Previously the ctrlval array was increased to be the same size regardless of CODE/DATA/BOTH. Move the arithmetic

[PATCH 10/24] x86/resctrl: Move the schema names into struct resctrl_schema

2020-10-30 Thread James Morse
Move the names used for the schemata file out of the resource and into struct resctrl_schema. This allows one resource to have two different names, based on the other schema properties. This patch copies the names, eventually resctrl will generate them. Remove the arch code's max_name_width,

[PATCH 14/24] x86/resctrl: Make update_domains() learn the affected closids

2020-10-30 Thread James Morse
Now that the closid is present in the staged configuration, update_domains() can learn which low/high values it should update, instead of being explicitly told. This paves the way for multiple configuration changes being staged, affecting different indexes in the ctrlval array. Remove the single

[PATCH 12/24] x86/resctrl: Add closid to the staged config

2020-10-30 Thread James Morse
Once the L2/L2CODE/L2DATA resources are merged, there may be two configurations staged for one resource when CDP is enabled. The closid should always be passed with the type of configuration to the arch code. Because update_domains() will eventually apply a set of configurations, it should take

[GIT PULL] Btrfs fixes for 5.10-rc2

2020-10-30 Thread David Sterba
Hi, please pull the following branch with fixes. Thanks. - lockdep fixes - drop path locks before manipulating sysfs objects or qgroups - preliminary fixes before tree locks get switched to rwsem - use annotated seqlock - build warning fixes (printk format) - fix relocation vs fallocate

[PATCH 23/24] x86/resctrl: Remove rdt_cdp_peer_get()

2020-10-30 Thread James Morse
Now that the configuration can be read from either resource, as they share the ctrlval array, rdt_cdp_peer_get() is not needed to to map the resource and search for the corresponding domain. Replace it with a helper to return the 'other' CODE/DATA type, and use the existing get-config helper.

[PATCH 16/24] x86/resctrl: Add a helper to read/set the CDP configuration

2020-10-30 Thread James Morse
Currently whether CDP is enabled is described in the alloc_enabled and alloc_capable flags, which are set differently between the L3 and L3CODE+L3DATA resources. To merge these resources, to give us one configuration, the CDP state of the resource needs tracking explicitly. Add cdp_capable as

Re: [PATCH v11 01/14] s390/vfio-ap: No need to disable IRQ after queue reset

2020-10-30 Thread Tony Krowiak
On 10/29/20 7:29 PM, Tony Krowiak wrote: On 10/27/20 2:48 AM, Halil Pasic wrote: On Thu, 22 Oct 2020 13:11:56 -0400 Tony Krowiak wrote: The queues assigned to a matrix mediated device are currently reset when: * The VFIO_DEVICE_RESET ioctl is invoked * The mdev fd is closed by

[PATCH 17/24] x86/resctrl: Use cdp_enabled in rdt_domain_reconfigure_cdp()

2020-10-30 Thread James Morse
rdt_domain_reconfigure_cdp() infers whether CDP is enabled by checking the alloc_capable and alloc_enabled flags of the data resources. Now that there is an explicit cdp_enabled, use that. Signed-off-by: James Morse --- arch/x86/kernel/cpu/resctrl/rdtgroup.c | 8 +--- 1 file changed, 5

[PATCH 11/24] x86/resctrl: Group staged configuration into a separate struct

2020-10-30 Thread James Morse
Arm's MPAM may have surprisingly large bitmaps for its cache portions as the architecture allows up to 4K portions. The size exposed via resctrl may not be the same, some scaling may occur. The values written to hardware may be unlike the values received from resctrl, e.g. MBA percentages may be

[PATCH 22/24] x86/resctrl: Merge the ctrlval arrays

2020-10-30 Thread James Morse
Now that the CODE/DATA resources don't use overlapping slots in the ctrlval arrays, they can be merged. This allows the cdp_peer configuration to be read from any resource's domain, instead of searching for the matching flavour. Add a helper to allocate the ctrlval array, that returns the value

[PATCH 18/24] x86/resctrl: Pass configuration type to resctrl_arch_get_config()

2020-10-30 Thread James Morse
Once the configuration arrays are merged, the get_config() helper needs to be told whether the CODE, DATA or BOTH configuration is being retrieved. Pass this information from the schema into resctrl_arch_get_config(). Nothing uses this yet, but it will later be used to map the closid to the

[PATCH 13/24] x86/resctrl: Allow different CODE/DATA configurations to be staged

2020-10-30 Thread James Morse
Now that the configuration is staged via an array, allow resctrl to stage more than configuration at a time for a single resource and closid. To detect that the same schema is being specified twice when the schemata file is written, the same slot in the staged_configuration array must be used for

[PATCH 24/24] x86/resctrl: Merge the CDP resources

2020-10-30 Thread James Morse
Now that resctrl uses the schema's configuration type as the source of CODE/DATA configuration styles, and there is only one configuration array between the three views of the resource, remove the CODE and DATA aliases. This means the arch code only needs to describe the hardware to resctrl,

[PATCH 19/24] x86/resctrl: Make ctrlval arrays the same size

2020-10-30 Thread James Morse
The CODE and DATA resources have their own ctrlval arrays which are half the size because num_closid was already adjusted. Prior to having one ctrlval array for the resource, move the num_closid correction into resctrl, so that the ctrlval arrays are all the same size. A shortlived quirk of this

Re: [RFC PATCH v2] selinux: Fix kmemleak after disabling selinux runtime

2020-10-30 Thread Paul Moore
On Fri, Oct 30, 2020 at 8:34 AM Casey Schaufler wrote: > On 10/30/2020 12:57 AM, Hou Tao wrote: > > Hi, > > > > On 2020/10/29 0:29, Casey Schaufler wrote: > >> On 10/27/2020 7:06 PM, Chen Jun wrote: > >>> From: Chen Jun > >>> > >>> Kmemleak will report a problem after using > >>> "echo 1 >

Re: [GIT PULL, staging, net-next] wimax: move to staging

2020-10-30 Thread Jakub Kicinski
On Fri, 30 Oct 2020 13:22:31 +0100 gregkh wrote: > On Thu, Oct 29, 2020 at 10:06:14PM +0100, Arnd Bergmann wrote: > > The following changes since commit 3650b228f83adda7e5ee532e2b90429c03f7b9ec: > > > > Linux 5.10-rc1 (2020-10-25 15:14:11 -0700) > > > > are available in the Git repository at:

Re: [PATCH] vhost/vsock: add IOTLB API support

2020-10-30 Thread Stefano Garzarella
On Fri, Oct 30, 2020 at 07:44:43PM +0800, Jason Wang wrote: On 2020/10/30 下午6:54, Stefano Garzarella wrote: On Fri, Oct 30, 2020 at 06:02:18PM +0800, Jason Wang wrote: On 2020/10/30 上午1:43, Stefano Garzarella wrote: This patch enables the IOTLB API support for vhost-vsock devices, allowing

Re: [PATCH RFC v2 09/21] kasan: inline kasan_reset_tag for tag-based modes

2020-10-30 Thread Andrey Konovalov
On Wed, Oct 28, 2020 at 12:05 PM Dmitry Vyukov wrote: > > On Thu, Oct 22, 2020 at 3:19 PM Andrey Konovalov > wrote: > > > > Using kasan_reset_tag() currently results in a function call. As it's > > called quite often from the allocator code this leads to a noticeable > > slowdown. Move it to

Re: [PATCH v3] soundwire: SDCA: add helper macro to access controls

2020-10-30 Thread Pierre-Louis Bossart
+#define SDW_SDCA_CTL(fun, ent, ctl, ch)(BIT(30) | \ +(((fun) & 0x7) << 22) | \ +(((ent) & 0x40) << 15) | \ +

Re: [PATCH 2/2] ASoC: intel: sof_rt5682: Add quirk for Dooly

2020-10-30 Thread Pierre-Louis Bossart
On 10/30/20 1:36 AM, Brent Lu wrote: This DMI product family string of this board is "Google_Hatch" so the DMI quirk will take place. However, this board is using rt1015 speaker amp instead of max98357a specified in the quirk. Therefore, we need an new DMI quirk for this board. Do you

Re: [PATCH 3/4] kselftest_module.h: add struct rnd_state and seed parameter

2020-10-30 Thread Petr Mladek
On Sun 2020-10-25 22:48:41, Rasmus Villemoes wrote: > Some test suites make use of random numbers to increase the test > coverage when the test suite gets run on different machines and > increase the chance of some corner case bug being discovered - and I'm > planning on extending some existing

Re: [PATCH v11 00/10] NTFS read-write driver GPL implementation by Paragon Software

2020-10-30 Thread Pali Rohár
Hello! On Friday 30 October 2020 15:51:10 Konstantin Komarov wrote: > From: Pali Rohár > Sent: Friday, October 30, 2020 6:25 PM > > To: Konstantin Komarov > > Cc: linux-fsde...@vger.kernel.org; v...@zeniv.linux.org.uk; > > linux-kernel@vger.kernel.org; dste...@suse.cz; aap...@suse.com; > >

Re: [PATCH 4/4] lib/test_printf.c: use deterministic sequence of random numbers

2020-10-30 Thread Petr Mladek
On Sun 2020-10-25 22:48:42, Rasmus Villemoes wrote: > The printf test suite does each test with a few different buffer sizes > to ensure vsnprintf() behaves correctly with respect to truncation and > size reporting. It calls vsnprintf() with a buffer size that is > guaranteed to be big enough, a

Re: [PATCH 2/3] mm, page_poison: use static key more efficiently

2020-10-30 Thread Luis Chamberlain
On Mon, Oct 26, 2020 at 06:33:57PM +0100, Vlastimil Babka wrote: > Commit 11c9c7edae06 ("mm/page_poison.c: replace bool variable with static > key") > changed page_poisoning_enabled() to a static key check. However, the function > is not inlined, so each check still involves a function call with

[GIT PULL] Power management fixes for v5.10-rc2

2020-10-30 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-5.10-rc2 with top-most commit dea47cf45a7f9bb94684830c47d4b259d5f8d6af Merge branches 'pm-cpuidle' and 'pm-sleep' on top of commit 3650b228f83adda7e5ee532e2b90429c03f7b9ec Linux

Re: [PATCH v2 1/2] mm: reorganize internal_get_user_pages_fast()

2020-10-30 Thread Jan Kara
On Fri 30-10-20 11:46:20, Jason Gunthorpe wrote: > The next patch in this series makes the lockless flow a little more > complex, so move the entire block into a new function and remove a level > of indention. Tidy a bit of cruft: > > - addr is always the same as start, so use start > > - Use

[GIT PULL] asm-generic: bugfix for v5.10

2020-10-30 Thread Arnd Bergmann
The following changes since commit 3650b228f83adda7e5ee532e2b90429c03f7b9ec: Linux 5.10-rc1 (2020-10-25 15:14:11 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git tags/asm-generic-fixes-5.10 for you to fetch changes up to

[GIT PULL] ACPI fixes for v5.10-rc2

2020-10-30 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ acpi-5.10-rc2 with top-most commit 8f7304bb9113c95b256d3aa79a884b4c60a806e1 Merge branches 'acpi-button' and 'acpi-dock' on top of commit 3650b228f83adda7e5ee532e2b90429c03f7b9ec Linux

Re: [PATCH net-next v4 4/5] net: hdlc_fr: Do skb_reset_mac_header for skbs received on normal PVC devices

2020-10-30 Thread Willem de Bruijn
On Thu, Oct 29, 2020 at 10:33 PM Xie He wrote: > > When an skb is received on a normal (non-Ethernet-emulating) PVC device, > call skb_reset_mac_header before we pass it to upper layers. > > This is because normal PVC devices don't have header_ops, so any header we > have would not be visible to

Re: [PATCH net-next v4 3/5] net: hdlc_fr: Improve the initial checks when we receive an skb

2020-10-30 Thread Willem de Bruijn
On Thu, Oct 29, 2020 at 10:33 PM Xie He wrote: > > 1. > Change the skb->len check from "<= 4" to "< 4". > At first we only need to ensure a 4-byte header is present. We indeed > normally need the 5th byte, too, but it'd be more logical and cleaner > to check its existence when we actually need

[GIT PULL] Device properties framework fixes for v5.10-rc2

2020-10-30 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ devprop-5.10-rc2 with top-most commit 99aed9227073fb34ce2880cbc7063e04185a65e1 device property: Don't clear secondary pointer for shared primary firmware node on top of commit

[GIT PULL] PNP fix for v5.10-rc2

2020-10-30 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pnp-5.10-rc2 with top-most commit e510785f8aca4a7346497edd4d5aceefe5370960 PNP: fix kernel-doc markups on top of commit 3650b228f83adda7e5ee532e2b90429c03f7b9ec Linux 5.10-rc1 to

Re: [PATCH 07/14] dt-bindings: media: i2c: Add A31 MIPI CSI-2 bindings documentation

2020-10-30 Thread Rob Herring
On Fri, Oct 23, 2020 at 07:45:39PM +0200, Paul Kocialkowski wrote: > This introduces YAML bindings documentation for the A31 MIPI CSI-2 > controller. > > Signed-off-by: Paul Kocialkowski > --- > .../media/allwinner,sun6i-a31-mipi-csi2.yaml | 168 ++ > 1 file changed, 168

Re: [PATCH] arm64/smp: Move rcu_cpu_starting() earlier

2020-10-30 Thread Will Deacon
On Wed, 28 Oct 2020 14:26:14 -0400, Qian Cai wrote: > The call to rcu_cpu_starting() in secondary_start_kernel() is not early > enough in the CPU-hotplug onlining process, which results in lockdep > splats as follows: > > WARNING: suspicious RCU usage > - >

Re: [PATCH net-next v4 5/5] net: hdlc_fr: Add support for any Ethertype

2020-10-30 Thread Willem de Bruijn
On Thu, Oct 29, 2020 at 10:32 PM Xie He wrote: > > Change the fr_rx function to make this driver support any Ethertype > when receiving skbs on normal (non-Ethernet-emulating) PVC devices. > (This driver is already able to handle any Ethertype when sending.) > > Originally in the fr_rx function,

Re: [PATCH net-next v4 1/5] net: hdlc_fr: Simpify fr_rx by using "goto rx_drop" to drop frames

2020-10-30 Thread Willem de Bruijn
On Thu, Oct 29, 2020 at 10:31 PM Xie He wrote: > > 1. > When the fr_rx function drops a received frame (because the protocol type > is not supported, or because the PVC virtual device that corresponds to > the DLCI number and the protocol type doesn't exist), the function frees > the skb and

[PATCH 0/2] pinctrl: qcom: Add sm8250 lpass lpi pinctrl support

2020-10-30 Thread Srinivas Kandagatla
This patch adds support for LPASS (Low Power Audio SubSystem) LPI (Low Power Island) pinctrl on SM8250. This patch has been tested on support to Qualcomm Robotics RB5 Development Kit based on QRB5165 Robotics SoC. This board has 2 WSA881X smart speakers with onboard DMIC connected to internal

[PATCH 1/2] dt-bindings: pinctrl: qcom: Add sm8250 lpass lpi pinctrl bindings

2020-10-30 Thread Srinivas Kandagatla
Add device tree binding Documentation details for Qualcomm SM8250 LPASS(Low Power Audio Sub System) LPI(Low Power Island) pinctrl driver. Signed-off-by: Srinivas Kandagatla --- .../pinctrl/qcom,lpass-lpi-pinctrl.yaml | 129 ++ 1 file changed, 129 insertions(+) create mode

[PATCH 2/2] pinctrl: qcom: Add sm8250 lpass lpi pinctrl driver

2020-10-30 Thread Srinivas Kandagatla
Add initial pinctrl driver to support pin configuration for LPASS (Low Power Audio SubSystem) LPI (Low Power Island) pinctrl on SM8250. Signed-off-by: Srinivas Kandagatla --- drivers/pinctrl/qcom/Kconfig | 8 + drivers/pinctrl/qcom/Makefile| 1 +

Re: [PATCH RFC v2 12/21] kasan: inline and rename kasan_unpoison_memory

2020-10-30 Thread Andrey Konovalov
On Wed, Oct 28, 2020 at 12:36 PM Dmitry Vyukov wrote: > > On Thu, Oct 22, 2020 at 3:19 PM Andrey Konovalov > wrote: > > > > Currently kasan_unpoison_memory() is used as both an external annotation > > and as internal memory poisoning helper. Rename external annotation to > >

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