[PATCH 10/13] selftests: proc: fix warning: _GNU_SOURCE redefined

2020-10-08 Thread Tommi Rantala
Makefile already contains -D_GNU_SOURCE, so we can remove it from the *.c files. Signed-off-by: Tommi Rantala --- tools/testing/selftests/proc/proc-loadavg-001.c | 1 - tools/testing/selftests/proc/proc-self-syscall.c | 1 - tools/testing/selftests/proc/proc-uptime-002.c | 1 - 3 files

[PATCH 08/13] selftests: pidfd: drop needless linux/kcmp.h inclusion in pidfd_setns_test.c

2020-10-08 Thread Tommi Rantala
kcmp is not used in pidfd_setns_test.c, so do not include Signed-off-by: Tommi Rantala --- tools/testing/selftests/pidfd/pidfd_setns_test.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/testing/selftests/pidfd/pidfd_setns_test.c b/tools/testing/selftests/pidfd/pidfd_setns_test.c

[PATCH 07/13] selftests: pidfd: add CONFIG_CHECKPOINT_RESTORE=y to config

2020-10-08 Thread Tommi Rantala
kcmp syscall is used in pidfd_getfd_test.c, so add CONFIG_CHECKPOINT_RESTORE=y to config to ensure kcmp is available. Signed-off-by: Tommi Rantala --- tools/testing/selftests/pidfd/config | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/pidfd/config

[PATCH 11/13] selftests: core: use SKIP instead of XFAIL in close_range_test.c

2020-10-08 Thread Tommi Rantala
XFAIL is gone since 9847d24af95c ("selftests/harness: Refactor XFAIL into SKIP"), use SKIP instead. Fixes: 9847d24af95c ("selftests/harness: Refactor XFAIL into SKIP") Signed-off-by: Tommi Rantala --- tools/testing/selftests/core/close_range_test.c | 8 1 file changed, 4 insertions(+),

[PATCH 09/13] selftests: android: fix multiple definition of sock_name

2020-10-08 Thread Tommi Rantala
Fix multiple definition of sock_name compilation error: tools/testing/selftests/android/ion/ipcsocket.h:8: multiple definition of `sock_name' Signed-off-by: Tommi Rantala --- tools/testing/selftests/android/ion/ipcsocket.c | 1 + tools/testing/selftests/android/ion/ipcsocket.h | 2 -- 2

[PATCH 04/13] selftests/harness: prettify SKIP message whitespace again

2020-10-08 Thread Tommi Rantala
Commit 9847d24af95c ("selftests/harness: Refactor XFAIL into SKIP") replaced XFAIL with SKIP in the output. Add one more space to make the output aligned and pretty again. Fixes: 9847d24af95c ("selftests/harness: Refactor XFAIL into SKIP") Signed-off-by: Tommi Rantala ---

[PATCH 00/13] selftests fixes

2020-10-08 Thread Tommi Rantala
Hi, small fixes to issues I hit with selftests. Tommi Rantala (13): selftests: filter kselftest headers from command in lib.mk selftests: pidfd: fix compilation errors due to wait.h selftests: add vmaccess to .gitignore selftests/harness: prettify SKIP message whitespace again

[PATCH 13/13] selftests: binderfs: use SKIP instead of XFAIL

2020-10-08 Thread Tommi Rantala
XFAIL is gone since 9847d24af95c ("selftests/harness: Refactor XFAIL into SKIP"), use SKIP instead. Fixes: 9847d24af95c ("selftests/harness: Refactor XFAIL into SKIP") Signed-off-by: Tommi Rantala --- .../selftests/filesystems/binderfs/binderfs_test.c| 8 1 file changed, 4

[PATCH 05/13] selftests: pidfd: use ksft_test_result_skip() when skipping test

2020-10-08 Thread Tommi Rantala
There's planned tests != run tests in pidfd_test when some test is skipped: $ ./pidfd_test TAP version 13 1..8 [...] # pidfd_send_signal signal recycled pid test: Skipping test # Planned tests != run tests (8 != 7) # Totals: pass:7 fail:0 xfail:0 xpass:0 skip:0 error:0 Fix by using

[PATCH 02/13] selftests: pidfd: fix compilation errors due to wait.h

2020-10-08 Thread Tommi Rantala
Drop unneeded header inclusion to fix pidfd compilation errors seen in Fedora 32: In file included from pidfd_open_test.c:9: ../../../../usr/include/linux/wait.h:17:16: error: expected identifier before numeric constant 17 | #define P_ALL 0 |^ Signed-off-by: Tommi

[PATCH 01/13] selftests: filter kselftest headers from command in lib.mk

2020-10-08 Thread Tommi Rantala
Commit 1056d3d2c97e ("selftests: enforce local header dependency in lib.mk") added header dependency to the rule, but as the rule uses $^, the headers are added to the compiler command line. This can cause unexpected precompiled header files being generated when compilation fails: $ echo { >>

[PATCH 03/13] selftests: add vmaccess to .gitignore

2020-10-08 Thread Tommi Rantala
Commit 2de4e82318c7 ("selftests/ptrace: add test cases for dead-locks") added vmaccess testcase, add the binary to .gitignore Fixes: 2de4e82318c7 ("selftests/ptrace: add test cases for dead-locks") Signed-off-by: Tommi Rantala --- tools/testing/selftests/ptrace/.gitignore | 1 + 1 file changed,

Re: [PATCH v3] i2c: mv64xxx: Add bus error recovery

2020-10-08 Thread Wolfram Sang
oN tHU, aug 27, 2020 at 10:35:16AM +1200, Mark Tomlinson wrote: > This adds i2c bus recovery to the mv64xxx driver. > > Implement bus recovery to recover from SCL/SDA stuck low. > > This uses the generic recovery function, setting the clock/data lines as > GPIO pins, and sending 9 clocks to try

Re: [PATCH] perf/core: Fix hung issue on perf stat command during cpu hotplug

2020-10-08 Thread kajoljain
On 8/27/20 12:17 PM, Kajol Jain wrote: > Commit 2ed6edd33a21 ("perf: Add cond_resched() to task_function_call()") > added assignment of ret value as -EAGAIN in case function > call to 'smp_call_function_single' fails. > For non-zero ret value, it did > 'ret = !ret ? data.ret : -EAGAIN;', which

Re: [PATCH] docs: Make automarkup ready for Sphinx 3.1+

2020-10-08 Thread Mauro Carvalho Chehab
Em Thu, 8 Oct 2020 12:31:27 +0100 Matthew Wilcox escreveu: > On Thu, Oct 08, 2020 at 08:03:06AM +0200, Mauro Carvalho Chehab wrote: > > Em Thu, 8 Oct 2020 03:47:06 +0100 > > Matthew Wilcox escreveu: > > > > > On Thu, Oct 08, 2020 at 02:15:24AM +, Nícolas F. R. A. Prado wrote: > > > > >

Re: [PATCH v1 1/6] staging: qlge: Initialize devlink health dump framework for the dlge driver

2020-10-08 Thread Willem de Bruijn
On Thu, Oct 8, 2020 at 7:58 AM Coiby Xu wrote: > > Initialize devlink health dump framework for the dlge driver so the > coredump could be done via devlink. > > Signed-off-by: Coiby Xu > @@ -4556,6 +4559,13 @@ static int qlge_probe(struct pci_dev *pdev, > struct ql_adapter *qdev = NULL;

Re: [PATCH v2 3/7] mm, page_alloc: remove setup_pageset()

2020-10-08 Thread Michal Hocko
On Thu 08-10-20 13:41:57, Vlastimil Babka wrote: > We initialize boot-time pagesets with setup_pageset(), which sets high and > batch values that effectively disable pcplists. > > We can remove this wrapper if we just set these values for all pagesets in > pageset_init(). Non-boot pagesets then

Re: [patch 1/2] nohz: only wakeup a single target cpu when kicking a task

2020-10-08 Thread Peter Zijlstra
On Wed, Oct 07, 2020 at 03:01:52PM -0300, Marcelo Tosatti wrote: > When adding a tick dependency to a task, its necessary to > wakeup the CPU where the task resides to reevaluate tick > dependencies on that CPU. > > However the current code wakes up all nohz_full CPUs, which > is unnecessary. >

Re: [PATCH] printk: handle blank console arguments passed in.

2020-10-08 Thread Sergey Senozhatsky
On (20/10/08 10:50), Petr Mladek wrote: > On Wed 2020-10-07 21:30:44, Sergey Senozhatsky wrote: > > On (20/10/07 09:28), Petr Mladek wrote: > > > > > > /* > > >* Dirty hack to prevent using any console with tty > > >* binding as a fallback and adding the empty >

[PATCH 2/2] net: smc: fix missing brace warning for old compilers

2020-10-08 Thread Pujin Shi
For older versions of gcc, the array = {0}; will cause warnings: net/smc/smc_llc.c: In function 'smc_llc_add_link_local': net/smc/smc_llc.c:1212:9: warning: missing braces around initializer [-Wmissing-braces] struct smc_llc_msg_add_link add_llc = {0}; ^ net/smc/smc_llc.c:1212:9:

Re: Re: [PATCH 5/5] i2c: geni: sdm845: dont perform DMA for the oneplus6

2020-10-08 Thread Wolfram Sang
On Thu, Oct 08, 2020 at 10:46:05AM +, Caleb Connolly wrote: > On 2020-10-08 11:03, Wolfram Sang wrote: > > On Wed, Oct 07, 2020 at 05:49:35PM +, Caleb Connolly wrote: > >> The OnePlus 6/T has the same issues as the c630 causing a crash when DMA > >> is used for i2c, so disable it. > >> >

[PATCH 1/2] net: smc: fix missing brace warning for old compilers

2020-10-08 Thread Pujin Shi
For older versions of gcc, the array = {0}; will cause warnings: net/smc/smc_llc.c: In function 'smc_llc_send_link_delete_all': net/smc/smc_llc.c:1317:9: warning: missing braces around initializer [-Wmissing-braces] struct smc_llc_msg_del_link delllc = {0}; ^ net/smc/smc_llc.c:1317:9:

Re: INFO: rcu detected stall in __se_sys_mount

2020-10-08 Thread syzbot
syzbot has found a reproducer for the following issue on: HEAD commit:c85fb28b Merge tag 'arm64-fixes' of git://git.kernel.org/p.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=16b1804f90 kernel config:

[PATCH v1] cpufreq: mediatek-hw: Register EM power table

2020-10-08 Thread Hector Yuan
Register to energy model framework with CPU power efficiency table. This patch depends on Mediatek cpufreq HW driver patch submitted by Hector Yuan. https://lkml.org/lkml/2020/9/10/13 Hector.Yuan (1): cpufreq: mediatek-hw: Register EM power table drivers/cpufreq/mediatek-cpufreq-hw.c |

[PATCH v1 1/1] cpufreq: mediatek-hw: Register EM power table

2020-10-08 Thread Hector Yuan
From: "Hector.Yuan" Register CPU power table to energy model framework Signed-off-by: Hector.Yuan --- drivers/cpufreq/mediatek-cpufreq-hw.c | 50 + 1 file changed, 38 insertions(+), 12 deletions(-) diff --git a/drivers/cpufreq/mediatek-cpufreq-hw.c

Re: [PATCH] mm/vmalloc.c: check the addr first

2020-10-08 Thread Hui Su
On Mon, Sep 28, 2020 at 11:04:34AM -0700, Ira Weiny wrote: > On Mon, Sep 28, 2020 at 12:33:37AM +0800, Hui Su wrote: > > As the comments said, if @addr is NULL, no operation > > is performed, check the addr first in vfree() and > > vfree_atomic() maybe a better choice. > > I don't see how this

Re: [PATCH] lm3697: Rename struct into more appropiate name

2020-10-08 Thread ultracoolguy
Gotcha. >From now on I'm gonna respond with this new email: ultracool...@disroot.org . Oct 7, 2020, 14:56 by dmur...@ti.com: > Gabriel > > On 10/7/20 7:21 AM, ultracool...@tutanota.com wrote: > >> The reason I didn't use git send-mail earlier is because Tutanota doesn't >> supports SMTP and

Re: [PATCH 1/4] mm: introduce vma_set_file function v2

2020-10-08 Thread Christian König
Am 08.10.20 um 13:39 schrieb Matthew Wilcox: On Thu, Oct 08, 2020 at 01:23:39PM +0200, Christian König wrote: drivers/dma-buf/dma-buf.c | 16 +--- drivers/gpu/drm/etnaviv/etnaviv_gem.c | 4 +--- drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c | 3 +--

Re: [PATCH 5/5] x86/kvm: Add KVM_FEATURE_MSI_EXT_DEST_ID

2020-10-08 Thread Thomas Gleixner
On Wed, Oct 07 2020 at 13:20, David Woodhouse wrote: > From: David Woodhouse > > This allows the host to indicate that IOAPIC and MSI emulation supports > 15-bit destination IDs, allowing up to 32768 CPUs without interrupt > remapping. > > cf. https://patchwork.kernel.org/patch/11816693/ for qemu

Re: [PATCH] printk: handle blank console arguments passed in.

2020-10-08 Thread Sergey Senozhatsky
On (20/10/08 11:01), Petr Mladek wrote: > > + it is yet another way to affect the amount of messages > on console. We already have console_loglevel, ignore_loglevel. True. Yes, there are "alternative" ways of doing this, but what we have to face here is - console= has been used for a long

Re: [PATCH 4/5] x86/apic: Support 15 bits of APIC ID in IOAPIC/MSI where available

2020-10-08 Thread Thomas Gleixner
On Thu, Oct 08 2020 at 13:54, Thomas Gleixner wrote: > On Wed, Oct 07 2020 at 13:20, David Woodhouse wrote: >> diff --git a/arch/x86/kernel/apic/msi.c b/arch/x86/kernel/apic/msi.c >> index 2825e003259c..85206f971284 100644 >> --- a/arch/x86/kernel/apic/msi.c >> +++ b/arch/x86/kernel/apic/msi.c >>

[PATCH v1 2/6] staging: qlge: coredump via devlink health reporter

2020-10-08 Thread Coiby Xu
$ devlink health dump show DEVICE reporter coredump -p -j { "Core Registers": { "segment": 1, "values": [

[PATCH v1 1/6] staging: qlge: Initialize devlink health dump framework for the dlge driver

2020-10-08 Thread Coiby Xu
Initialize devlink health dump framework for the dlge driver so the coredump could be done via devlink. Signed-off-by: Coiby Xu --- drivers/staging/qlge/Kconfig| 1 + drivers/staging/qlge/Makefile | 2 +- drivers/staging/qlge/qlge.h | 9 +++

[PATCH v1 4/6] staging: qlge: remove mpi_core_to_log which sends coredump to the kernel ring buffer

2020-10-08 Thread Coiby Xu
devlink health could be used to get coredump. No need to send so much data to the kernel ring buffer. Signed-off-by: Coiby Xu --- drivers/staging/qlge/qlge.h | 3 --- drivers/staging/qlge/qlge_dbg.c | 11 --- drivers/staging/qlge/qlge_ethtool.c | 1 -

[PATCH v1 6/6] staging: qlge: add documentation for debugging qlge

2020-10-08 Thread Coiby Xu
Instructions and examples on kernel data structures dumping and coredump. Signed-off-by: Coiby Xu --- .../networking/device_drivers/index.rst | 1 + .../device_drivers/qlogic/index.rst | 18 +++ .../networking/device_drivers/qlogic/qlge.rst | 118 ++

[PATCH v1 3/6] staging: qlge: support force_coredump option for devlink health dump

2020-10-08 Thread Coiby Xu
With force_coredump module paramter set, devlink health dump will reset the MPI RISC first which takes 5 secs to be finished. Signed-off-by: Coiby Xu --- drivers/staging/qlge/qlge_devlink.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/staging/qlge/qlge_devlink.c

[PATCH v1 5/6] staging: qlge: clean up debugging code in the QL_ALL_DUMP ifdef land

2020-10-08 Thread Coiby Xu
The debugging code in the following ifdef land - QL_ALL_DUMP - QL_REG_DUMP - QL_DEV_DUMP - QL_CB_DUMP - QL_IB_DUMP - QL_OB_DUMP becomes unnecessary because, - Device status and general registers can be obtained by ethtool. - Coredump can be done via devlink health reporter. - Structure

Re: [PATCH 4/5] x86/apic: Support 15 bits of APIC ID in IOAPIC/MSI where available

2020-10-08 Thread Thomas Gleixner
On Wed, Oct 07 2020 at 13:20, David Woodhouse wrote: > > + /* > + * If the hypervisor supports extended destination ID in IOAPIC > + * and MSI, that increases the maximum APIC ID that can be used > + * for non-remapped IRQ domains. > + */ > + if

[PATCH v2 07/11] firmware: ti_sci: rm: Add new ops for ring configuration

2020-10-08 Thread Peter Ujfalusi
The sysfw ring configuration message has been extended to include virtid and asel value for the ring. Add the ASEL_VALID to TI_SCI_MSG_VALUE_RM_ALL_NO_ORDER as it is required for DMA rings. Instead of extending the current .config() ops - which would need same patch change in the ringacc driver -

[PATCH v2 06/11] firmware: ti_sci: rm: Remove ring_get_config support

2020-10-08 Thread Peter Ujfalusi
The ring_get_cfg (0x message) is not used and it is not supported by sysfw for a long time. Signed-off-by: Peter Ujfalusi Reviewed-by: Grygorii Strashko --- drivers/firmware/ti_sci.c | 80 -- drivers/firmware/ti_sci.h | 44 --

[PATCH v2 03/11] firmware: ti_sci: rm: Add support for second resource range

2020-10-08 Thread Peter Ujfalusi
Sysfw added support for a second range in the resource range API to be able to describe complex allocations mainly for DMA channels. Update the ti_sci part to consider the second range as well. Signed-off-by: Peter Ujfalusi --- drivers/firmware/ti_sci.c | 48

[PATCH v2 04/11] soc: ti: ti_sci_inta_msi: Add support for second range in resource ranges

2020-10-08 Thread Peter Ujfalusi
Allocate MSI entries for both first and second range if they are valid Signed-off-by: Peter Ujfalusi --- drivers/soc/ti/ti_sci_inta_msi.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/soc/ti/ti_sci_inta_msi.c b/drivers/soc/ti/ti_sci_inta_msi.c index

[PATCH v2 09/11] firmware: ti_sci: rm: Remove unused config() from ti_sci_rm_ringacc_ops

2020-10-08 Thread Peter Ujfalusi
The ringacc driver has been converted to use the new set_cfg function to configure the ring, the old config ops can be removed. Signed-off-by: Peter Ujfalusi Reviewed-by: Grygorii Strashko --- drivers/firmware/ti_sci.c | 72 --

[PATCH v2 05/11] firmware: ti_sci: rm: Add support for extended_ch_type for tx channel

2020-10-08 Thread Peter Ujfalusi
Sysfw added 'extended_ch_type' to the tx_ch_cfg_req message which should be used when BCDMA block copy channels are configured: extended_ch_type = 0 : the channel is split tx channel (tchan) extended_ch_type = 1 : the channel is block copy channel (bchan) Signed-off-by: Peter Ujfalusi ---

[PATCH v2 01/11] firmware: ti_sci: rm: Add support for tx_tdtype parameter for tx channel

2020-10-08 Thread Peter Ujfalusi
The system controller's resource manager have support for configuring the TDTYPE of TCHAN_CFG register on j721e. With this parameter the teardown completion can be controlled: TDTYPE == 0: Return without waiting for peer to complete the teardown TDTYPE == 1: Wait for peer to complete the teardown

[PATCH v2 10/11] soc: ti: k3-ringacc: Use correct device for allocation in RING mode

2020-10-08 Thread Peter Ujfalusi
In RING mode the ringacc does not access the ring memory. In this access mode the ringacc coherency does not have meaning. If the ring is configured in RING mode, then the ringacc itself will not access to the ring memory. Only the requester (user) of the ring is going to read/write to the

[PATCH v2 08/11] soc: ti: k3-ringacc: Use the ti_sci set_cfg callback for ring configuration

2020-10-08 Thread Peter Ujfalusi
Switch to the new set_cfg to configure the ring. Signed-off-by: Peter Ujfalusi Reviewed-by: Grygorii Strashko --- drivers/soc/ti/k3-ringacc.c | 79 +++-- 1 file changed, 32 insertions(+), 47 deletions(-) diff --git a/drivers/soc/ti/k3-ringacc.c

[PATCH v2 11/11] soc: ti: k3-socinfo: Add entry for AM64X SoC family

2020-10-08 Thread Peter Ujfalusi
It's JTAG PARTNO is 0xBB38. Signed-off-by: Peter Ujfalusi --- drivers/soc/ti/k3-socinfo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soc/ti/k3-socinfo.c b/drivers/soc/ti/k3-socinfo.c index bbbc2d2b7091..fd91129de6e5 100644 --- a/drivers/soc/ti/k3-socinfo.c +++

Re: [PATCH RFC v4 00/13] perf pmu-events: Support event aliasing for system PMUs

2020-10-08 Thread John Garry
On 08/10/2020 12:27, kajoljain wrote: Hi John, I am looking into these patches, it seems they are not re-based on top of latest Arnaldo's perf/core branch. Can you rebase these changes. I think we are missing multiple updates. Thanks, Kajol Jain Hi Kajol Jain, My thought was that since

[PATCH v2 00/11] firmware/soc: ti_sci, ringacc/inta: Preparation for AM64 DMA support

2020-10-08 Thread Peter Ujfalusi
Hi, Changes since v1: - Use AM64X as family name in patch 11 - Added Reviewed-by tag from Grygorii for patch 6-10 The series prepares the ti_sci, ringacc, inta to support the new DMAs introduced with AM64. Separate series has been sent for the inta irqchip driver (v2):

Re: [PATCH v3 7/7] dma-buf: system_heap: Add a system-uncached heap re-using the system heap

2020-10-08 Thread Brian Starkey
On Sat, Oct 03, 2020 at 04:02:57AM +, John Stultz wrote: > This adds a heap that allocates non-contiguous buffers that are > marked as writecombined, so they are not cached by the CPU. > > This is useful, as most graphics buffers are usually not touched > by the CPU or only written into once

[PATCH v2 02/11] firmware: ti_sci: Use struct ti_sci_resource_desc in get_range ops

2020-10-08 Thread Peter Ujfalusi
Use the ti_sci_resource_desc directly and update it's start and num members directly instead of requiring individual parameters for them. This will allow easy extension of the RM parameters without changing API. Signed-off-by: Peter Ujfalusi --- drivers/firmware/ti_sci.c | 32

checkpatch.pl: REPEATED_WORD: massive false positive in MAINTAINERS

2020-10-08 Thread Lukas Bulwahn
Dear Joe, dear Dwaipayan, while maintaining MAINTAINERS, I noticed that the REPEATED_WORD check, which in general is a great addition to checkpatch.pl, generates a massive number of warnings due to one specific pattern in the MAINTAINERS file: $ ./scripts/checkpatch.pl --show-types -f

Re: [PATCH 1/5] x86/apic: Fix x2apic enablement without interrupt remapping

2020-10-08 Thread Thomas Gleixner
On Wed, Oct 07 2020 at 13:20, David Woodhouse wrote: > From: David Woodhouse > > static struct apic apic_x2apic_phys; > +static u32 x2apic_max_apicid; __ro_after_init? Thanks, tglx

Re: [PATCH v4 1/3] dt-bindings: pinctrl: Add bindings for pinctrl-mchp-sgpio driver

2020-10-08 Thread Lars Povlsen
Linus Walleij writes: > Hi Lars, > > a new version of the patch set arrives while I'm reviewing, haha :D Well, luckily not too much changed per Rob's input. > > On Wed, Oct 7, 2020 at 1:12 PM Lars Povlsen > wrote: > >> This adds DT bindings for the Microsemi/Microchip SGPIO controller, >>

Re: [PATCH v2 0/5] platform/surface: Create a platform subdirectory for Microsoft Surface devices

2020-10-08 Thread Hans de Goede
Hi Maximilian, On 10/5/20 6:03 PM, Maximilian Luz wrote: As has come up in the discussion around [RFC PATCH] Add support for Microsoft Surface System Aggregator Module it may make sense to add a Microsoft Surface specific platform subdirectory. Andy has suggested drivers/platform/surface

[PATCH v2 1/7] mm, page_alloc: clean up pageset high and batch update

2020-10-08 Thread Vlastimil Babka
The updates to pcplists' high and batch valued are handled by multiple functions that make the calculations hard to follow. Consolidate everything to pageset_set_high_and_batch() and remove pageset_set_batch() and pageset_set_high() wrappers. The only special case using one of the removed

[PATCH v2 2/7] mm, page_alloc: calculate pageset high and batch once per zone

2020-10-08 Thread Vlastimil Babka
We currently call pageset_set_high_and_batch() for each possible cpu, which repeats the same calculations of high and batch values. Instead call the function just once per zone, and make it apply the calculated values to all per-cpu pagesets of the zone. This also allows removing the

[PATCH v2 0/7] disable pcplists during memory offline

2020-10-08 Thread Vlastimil Babka
Changes since v1 [7]: - add acks/reviews (thanks David and Michal) - drop "mm, page_alloc: make per_cpu_pageset accessible only after init" as that's orthogonal and needs more consideration - squash "mm, page_alloc: drain all pcplists during memory offline" into the last patch, and move new

[PATCH v2 6/7] mm, page_alloc: move draining pcplists to page isolation users

2020-10-08 Thread Vlastimil Babka
Currently, pcplists are drained during set_migratetype_isolate() which means once per pageblock processed start_isolate_page_range(). This is somewhat wasteful. Moreover, the callers might need different guarantees, and the draining is currently prone to races and does not guarantee that no page

[PATCH v2 3/7] mm, page_alloc: remove setup_pageset()

2020-10-08 Thread Vlastimil Babka
We initialize boot-time pagesets with setup_pageset(), which sets high and batch values that effectively disable pcplists. We can remove this wrapper if we just set these values for all pagesets in pageset_init(). Non-boot pagesets then subsequently update them to the proper values. No

Re: [PATCH 3/5] x86/ioapic: Handle Extended Destination ID field in RTE

2020-10-08 Thread Thomas Gleixner
On Wed, Oct 07 2020 at 13:20, David Woodhouse wrote: > From: David Woodhouse > > The IOAPIC Redirection Table Entries contain an 8-bit Extended > Destination ID field which maps to bits 11-4 of the MSI address. > > The lowest bit is used to indicate remappable format, when interrupt > remapping

[PATCH v2 5/7] mm, page_alloc: cache pageset high and batch in struct zone

2020-10-08 Thread Vlastimil Babka
All per-cpu pagesets for a zone use the same high and batch values, that are duplicated there just for performance (locality) reasons. This patch adds the same variables also to struct zone as a shared copy. This will be useful later for making possible to disable pcplists temporarily by setting

[PATCH v2 7/7] mm, page_alloc: disable pcplists during memory offline

2020-10-08 Thread Vlastimil Babka
Memory offline relies on page isolation can race with process freeing pages to pcplists in a way that a page from isolated pageblock can end up on pcplist. This can be worked around by repeated draining of pcplists, as done by commit 968318261221 ("mm/memory_hotplug: drain per-cpu pages again

[PATCH v2 4/7] mm, page_alloc: simplify pageset_update()

2020-10-08 Thread Vlastimil Babka
pageset_update() attempts to update pcplist's high and batch values in a way that readers don't observe batch > high. It uses smp_wmb() to order the updates in a way to achieve this. However, without proper pairing read barriers in readers this guarantee doesn't hold, and there are no such

Re: [PATCH 1/4] mm: introduce vma_set_file function v2

2020-10-08 Thread Matthew Wilcox
On Thu, Oct 08, 2020 at 01:23:39PM +0200, Christian König wrote: > drivers/dma-buf/dma-buf.c | 16 +--- > drivers/gpu/drm/etnaviv/etnaviv_gem.c | 4 +--- > drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c | 3 +-- > drivers/gpu/drm/i915/gem/i915_gem_mman.c | 4

Re: [PATCH v3 0/7] dma-buf: Performance improvements for system heap & a system-uncached implementation

2020-10-08 Thread Brian Starkey
Hi John, On Sat, Oct 03, 2020 at 04:02:50AM +, John Stultz wrote: > Hey All, ... > > I did add to this series a reworked version of my uncached > system heap implementation I was submitting a few weeks back. > Since it duplicated a lot of the now reworked system heap code, > I realized it

Re: [PATCH v5 0/2] PCI: dwc: fix two MSI issues

2020-10-08 Thread Lorenzo Pieralisi
On Wed, Sep 30, 2020 at 09:12:05AM +0800, Jisheng Zhang wrote: > Fix two MSI issues. One to skip PCIE_MSI_INTR0* programming if MSI is > disabled, another to use an address in the driver data for MSI address, > to fix the MSI page leakage during suspend/resume. > > Since v4: > - fix

Re: [PATCH 0/2] Enable GPIO and I2C configs for TI's J721e platform

2020-10-08 Thread Nishanth Menon
On 14:06-20201008, Tero Kristo wrote: > On 08/10/2020 12:40, Faiz Abbas wrote: [...] > > Thats right. The EPROBE_DEFERs will happen if my patches enabling UHS modes > > here are merged. I need to repost them for v5.11-rc1: > > https://lore.kernel.org/linux-arm-kernel/20201001

Re: [PATCH] docs: Make automarkup ready for Sphinx 3.1+

2020-10-08 Thread Matthew Wilcox
On Thu, Oct 08, 2020 at 08:03:06AM +0200, Mauro Carvalho Chehab wrote: > Em Thu, 8 Oct 2020 03:47:06 +0100 > Matthew Wilcox escreveu: > > > On Thu, Oct 08, 2020 at 02:15:24AM +, Nícolas F. R. A. Prado wrote: > > > > I have a feature request ... could you automarkup NULL as being > > > >

RE: STRICTLY CONFIDENTIAL (Respond Immediately)

2020-10-08 Thread From: Steve Odonkon
Esteem Complement,Tuesday October 6th 2020 Hello, my name is Steve Odonkon, Audit Accounting Officer of Standard Chartered Bank, Basinghall Ave, London, United Kingdom. I got your information when I was searching for an oversea partner among other names, I ask for your pardon if my

Re: [PATCH v5 00/80] drm/vc4: Support BCM2711 Display Pipeline

2020-10-08 Thread Maxime Ripard
On Wed, Sep 16, 2020 at 06:57:05PM +0200, Maxime Ripard wrote: > On Mon, Sep 14, 2020 at 07:14:11PM +0900, Hoegeun Kwon wrote: > > Hi Maxime, > > > > On 9/8/20 9:00 PM, Maxime Ripard wrote: > > > Hi Hoegeun, > > > > > > On Mon, Sep 07, 2020 at 08:49:12PM +0900, Hoegeun Kwon wrote: > > >> On

Re: [PATCH] PCI: pciehp: Add check for DL_ACTIVE bit in pciehp_check_link_status()

2020-10-08 Thread Andy Shevchenko
On Thu, Oct 08, 2020 at 12:43:17PM +0530, Sanjay R Mehta wrote: > On 10/7/2020 1:08 AM, Lukas Wunner wrote: > > On Tue, Oct 06, 2020 at 01:24:28PM -0500, Sanjay R Mehta wrote: > >> if DL_ACTIVE bit is set it means that there is no need to check > >> PCI_EXP_LNKSTA_LT bit, as DL_ACTIVE would have

Re: [PATCH RFC v4 00/13] perf pmu-events: Support event aliasing for system PMUs

2020-10-08 Thread kajoljain
On 10/8/20 3:45 PM, John Garry wrote: > Currently event aliasing and metrics for only CPU and uncore PMUs is > supported. In fact, only uncore PMUs aliasing is supported for when the > uncore PMUs are fixed for a CPU, which may not always be the case for > certain architectures. > > This

Re: [PATCH v3 0/4] PCI: dwc: Move iATU register mapping to common framework

2020-10-08 Thread Lorenzo Pieralisi
On Wed, Sep 30, 2020 at 02:36:03PM +0900, Kunihiko Hayashi wrote: > This moves iATU register mapping in the Keystone driver to common > framework. And this adds "iatu" property description to the dt-bindings > for UniPhier PCIe host and endpoint controller. > > This series is split from the

[PATCH 3/4] drm/radeon: stop using pages with drm_prime_sg_to_page_addr_arrays

2020-10-08 Thread Christian König
This is deprecated. Signed-off-by: Christian König --- drivers/gpu/drm/radeon/radeon_ttm.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_ttm.c b/drivers/gpu/drm/radeon/radeon_ttm.c index 63e38b05a5bc..4b92cdbcd29b 100644 ---

[PATCH 4/4] drm/amdgpu: stop using pages with drm_prime_sg_to_page_addr_arrays

2020-10-08 Thread Christian König
This is deprecated. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c index 399961035ae6..ac463e706b19 100644 ---

[PATCH 1/4] mm: introduce vma_set_file function v2

2020-10-08 Thread Christian König
Add the new vma_set_file() function to allow changing vma->vm_file with the necessary refcount dance. v2: add more users of this. Signed-off-by: Christian König --- drivers/dma-buf/dma-buf.c | 16 +--- drivers/gpu/drm/etnaviv/etnaviv_gem.c | 4 +---

[PATCH 2/4] drm/prime: document that use the page array is deprecated

2020-10-08 Thread Christian König
We have reoccurring requests on this so better document that this approach doesn't work and dma_buf_mmap() needs to be used instead. Signed-off-by: Christian König --- drivers/gpu/drm/drm_prime.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git

Re: [PATCH v3 1/4] genirq/irqdomain: Allow partial trimming of irq_data hierarchy

2020-10-08 Thread Thomas Gleixner
On Wed, Oct 07 2020 at 13:45, Marc Zyngier wrote: > +/** > + * irq_domain_trim_hierarchy - Trim the uninitialized part of a irq hierarchy > + * @virq:IRQ number to trim where the hierarchy is to be trimmed > + * > + * Drop the partial irq_data hierarchy from the level where the > + *

Re: [PATCH V8 1/5] PCI: Add defines for Designated Vendor-Specific Extended Capability

2020-10-08 Thread Hans de Goede
Hi, On 10/8/20 9:29 AM, Lee Jones wrote: On Wed, 07 Oct 2020, Hans de Goede wrote: Hi, On 10/7/20 8:54 AM, Lee Jones wrote: On Tue, 06 Oct 2020, David E. Box wrote: On Tue, 2020-10-06 at 19:51 -0500, Bjorn Helgaas wrote: On Tue, Oct 06, 2020 at 03:45:54PM -0700, David E. Box wrote: Hi

Re: [PATCH v4 3/4] mmc: sdhci-of-arasan: Add structure device pointer in probe

2020-10-08 Thread Andy Shevchenko
On Thu, Oct 8, 2020 at 1:36 PM Zulkifli, Muhammad Husaini wrote: > >From: Michal Simek > >Sent: Thursday, October 8, 2020 3:35 PM > >On 08. 10. 20 4:09, muhammad.husaini.zulki...@intel.com wrote: > >> From: Muhammad Husaini Zulkifli ... > >> @@ -1521,6 +1521,7 @@ static int

Re: [Patch 2/2] cpufreq: tegra194: Fix unlisted boot freq warning

2020-10-08 Thread Sumit Gupta
Warning coming during boot because the boot freq set by bootloader gets filtered out due to big freq steps while creating freq_table. Fixing this by setting closest ndiv value from freq_table. Warning: cpufreq: cpufreq_online: CPU0: Running at unlisted freq cpufreq: cpufreq_online:

Re: [PATCH 0/2] Enable GPIO and I2C configs for TI's J721e platform

2020-10-08 Thread Tero Kristo
On 08/10/2020 12:40, Faiz Abbas wrote: Tero, On 08/10/20 2:49 pm, Tero Kristo wrote: On 08/10/2020 11:59, Faiz Abbas wrote: Tero, On 06/10/20 6:40 pm, Tero Kristo wrote: On 06/10/2020 16:03, Faiz Abbas wrote: Hi Tero, On 06/10/20 5:21 pm, Tero Kristo wrote: On 02/10/2020 19:45, Faiz

Re: [PATCH 1/2] mm/mprotect: Call arch_validate_prot under mmap_lock and with length

2020-10-08 Thread Catalin Marinas
On Thu, Oct 08, 2020 at 09:34:26PM +1100, Michael Ellerman wrote: > Jann Horn writes: > > So while the mprotect() case > > checks the flags and refuses unknown values, the mmap() code just lets > > the architecture figure out which bits are actually valid to set (via > > arch_calc_vm_prot_bits())

[PATCH stable-5.4 4/6] btrfs: Ensure we trim ranges across block group boundary

2020-10-08 Thread Anand Jain
From: Qu Wenruo commit 6b7faadd985c990324b5b5bd18cc4ba5c395eb65 upstream. [BUG] When deleting large files (which cross block group boundary) with discard mount option, we find some btrfs_discard_extent() calls only trimmed part of its space, not the whole range: btrfs_discard_extent:

Re: [PATCH v2 2/2] [RFC] CPUFreq: Add support for cpu-perf-dependencies

2020-10-08 Thread Viresh Kumar
On 07-10-20, 13:58, Nicola Mazzucato wrote: > Hi Viresh, > > performance controls is what is exposed by the firmware through a protocol > that > is not capable of describing hardware (say SCMI). For example, the firmware > can > tell that the platform has N controls, but it can't say to which

Re: [PATCH 0/7] wfx: move out from the staging area

2020-10-08 Thread Kalle Valo
Jérôme Pouiller writes: > On Thursday 8 October 2020 09:30:06 CEST Kalle Valo wrote: > [...] >> Yes, the driver needs to be reviewed in linux-wireless list. I recommend >> submitting the whole driver in a patchset with one file per patch, which >> seems to be the easiest way to review a full

[PATCH stable-5.4 0/6] backport fixes for xfstests btrfs/199,200,203,204

2020-10-08 Thread Anand Jain
This series backports fixes for the xfstests test cases btrfs/199 btrfs/200 btrfs/203 and btrfs/204. patch 1 is fix for btrfs/200 patch 2 fixes regression in patch 1 and is fix for btrfs/203 patch 3 helps to fix conflicts in patch 4 patch 4 is fix for btrfs/199 patch 5 helps to avoid conflicts

[PATCH stable-5.4 5/6] btrfs: fix RWF_NOWAIT write not failling when we need to cow

2020-10-08 Thread Anand Jain
From: Filipe Manana commit 260a63395f90f67d6ab89e4266af9e3dc34a77e9 upstream. If we attempt to do a RWF_NOWAIT write against a file range for which we can only do NOCOW for a part of it, due to the existence of holes or shared extents for example, we proceed with the write as if it were

[PATCH stable-5.4 6/6] btrfs: allow btrfs_truncate_block() to fallback to nocow for data space reservation

2020-10-08 Thread Anand Jain
From: Qu Wenruo commit 6d4572a9d71d5fc2affee0258d8582d39859188c upstream. [BUG] When the data space is exhausted, even if the inode has NOCOW attribute, we will still refuse to truncate unaligned range due to ENOSPC. The following script can reproduce it pretty easily: #!/bin/bash

[PATCH stable-5.4 2/6] Btrfs: send, fix emission of invalid clone operations within the same file

2020-10-08 Thread Anand Jain
From: Filipe Manana commit 9722b10148504c4153a74a9c89725af271e490fc upstream. When doing an incremental send and a file has extents shared with itself at different file offsets, it's possible for send to emit clone operations that will fail at the destination because the source range goes

[PATCH stable-5.4 3/6] btrfs: volumes: Use more straightforward way to calculate map length

2020-10-08 Thread Anand Jain
From: Qu Wenruo commit 2d974619a77f106f3d1341686dea95c0eaad601f upstream. The old code goes: offset = logical - em->start; length = min_t(u64, em->len - offset, length); Where @length calculation is dependent on offset, it can take reader several more seconds to find it's just

[PATCH stable-5.4 1/6] Btrfs: send, allow clone operations within the same file

2020-10-08 Thread Anand Jain
From: Filipe Manana commit 11f2069c113e02971b8db6fda62f9b9cd31a030f upstream. For send we currently skip clone operations when the source and destination files are the same. This is so because clone didn't support this case in its early days, but support for it was added back in May 2013 by

Re: [PATCH v4 4/4] mmc: sdhci-of-arasan: Enable UHS-1 support for Keem Bay SOC

2020-10-08 Thread Adrian Hunter
On 8/10/20 12:27 pm, Ulf Hansson wrote: > On Thu, 8 Oct 2020 at 04:12, wrote: >> >> From: Muhammad Husaini Zulkifli >> >> Voltage switching sequence is needed to support UHS-1 interface. >> There are 2 places to control the voltage. >> 1) By setting the AON register using firmware driver calling

Re: [RESEND PATCH v3 2/3] pinctrl: pinctrl-mchp-sgpio: Add pinctrl driver for Microsemi Serial GPIO

2020-10-08 Thread Lars Povlsen
Linus Walleij writes: > Hi Lars! > > Thanks for the update, this looks much improved! Glad you like it! It's been a difficult birth... > > Some further hints at things I saw here: > > On Tue, Oct 6, 2020 at 4:25 PM Lars Povlsen > wrote: > >> This adds a pinctrl driver for the

[PATCH] ALSA: hda/realtek - The front Mic on a HP machine doesn't work

2020-10-08 Thread Jeremy Szu
On a HP ZCentral, the front Mic could not be detected. The codec of the HP ZCentrol is alc671 and it needs to override the pin configuration to enable the headset mic. Signed-off-by: Jeremy Szu --- sound/pci/hda/patch_realtek.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH stable-4.14.y] Btrfs: fix unexpected failure of nocow buffered writes after snapshotting when low on space

2020-10-08 Thread Anand Jain
From: Robbie Ko [ Upstream commit 8ecebf4d767e2307a946c8905278d6358eda35c3 ] Commit e9894fd3e3b3 ("Btrfs: fix snapshot vs nocow writting") forced nocow writes to fallback to COW, during writeback, when a snapshot is created. This resulted in writes made before creating the snapshot to

Re: [PATCH] printk: handle blank console arguments passed in.

2020-10-08 Thread Sergey Senozhatsky
On (20/10/08 11:01), Petr Mladek wrote: > > Interesting idea. Well, it looks like yet another mess: > > + it would show the consoles in /proc/consoles > even thought they will be basically unusable Which is fine, no? We already can have disables consoles in /proc/consoles. $ cat

Re: [PATCH] KVM: SVM: Use a separate vmcb for the nested L2 guest

2020-10-08 Thread Maxim Levitsky
On Thu, 2020-10-08 at 13:39 +0300, Maxim Levitsky wrote: > On Thu, 2020-10-08 at 13:23 +0300, Maxim Levitsky wrote: > > On Thu, 2020-10-08 at 07:52 +0200, Paolo Bonzini wrote: > > > On 08/10/20 00:14, Maxim Levitsky wrote: > > > > > + if (svm->vmcb01->control.asid == 0) > > > > > +

<    3   4   5   6   7   8   9   10   11   >