[PATCH] gpiolib: cdev: switch from kstrdup() to kstrndup()

2020-10-05 Thread Kent Gibson
Use kstrndup() to copy line labels from the userspace provided char array, rather than ensuring the char array contains a null terminator and using kstrdup(). Note that the length provided to kstrndup() still assumes that the char array does contain a null terminator, so the maximum string length

[PATCH 0/5] gpio: uapi: documentation improvements

2020-10-05 Thread Kent Gibson
I'm intending to add some GPIO chardev documentation to Documentation/admin-guide/gpio/chardev.rst (or perhaps Documentation/userspace-api/??), but that is taking longer than I'd like, so in the meantime here is a collection of minor documentation tidy-ups and improvements to the kernel-doc that I'

[PATCH 1/5] gpio: uapi: fix kernel-doc warnings

2020-10-05 Thread Kent Gibson
Fix kernel-doc warnings, specifically gpioline_info_changed.padding is not documented and 'GPIO event types' describes defines, which are not documented by kernel-doc. Signed-off-by: Kent Gibson --- include/uapi/linux/gpio.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/i

[PATCH 4/5] gpio: uapi: remove whitespace

2020-10-05 Thread Kent Gibson
Remove leading whitespace in ABI v1 comment. Signed-off-by: Kent Gibson --- include/uapi/linux/gpio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/gpio.h b/include/uapi/linux/gpio.h index 32dd18f238c3..ad3f56dd87ec 100644 --- a/include/uapi/linux/gpio.h

[PATCH 2/5] gpio: uapi: comment consistency

2020-10-05 Thread Kent Gibson
Make debounce_period_us field documentation consistent with other fields in the union. Signed-off-by: Kent Gibson --- include/uapi/linux/gpio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/gpio.h b/include/uapi/linux/gpio.h index b0d5e7a1c693..1fdb0e851f

[PATCH 5/5] gpio: uapi: clarify the meaning of 'empty' char arrays

2020-10-05 Thread Kent Gibson
Clarify that a char array containing a string is considered 'empty' if the first character is the null terminator. The remaining characters are not relevant to this determination. Signed-off-by: Kent Gibson --- include/uapi/linux/gpio.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)

[PATCH 3/5] gpio: uapi: kernel-doc formatting improvements

2020-10-05 Thread Kent Gibson
Add kernel-doc formatting to all references to structs, enums, fields and constants, and move deprecation warnings into the Note section of the deprecated struct. Replace 'OR:ed' with 'added', as the former looks odd. Signed-off-by: Kent Gibson --- The replacement of 'OR:ed' should strictly be

Re: [PATCH 2/2] panfrost: Add compatible string for bifrost

2020-10-05 Thread Tomeu Vizoso
On Mon, 5 Oct 2020 at 08:44, Tomeu Vizoso wrote: > > On Fri, 19 Jun 2020 at 11:00, Steven Price wrote: > > > > On 11/06/2020 09:58, Tomeu Vizoso wrote: > > > Mesa now supports some Bifrost devices, so enable it. > > > > > > Signed-off-by: Tomeu Vizoso > > > > Reviewed-by: Steven Price > > > > I

Re: [PATCH] mfd: kempld-core: Mark kempld-acpi_table as __maybe_unused

2020-10-05 Thread Michael Brunner
On Fri, 2020-10-02 at 08:01 +0100, Lee Jones wrote: > On Thu, 01 Oct 2020, Michael Brunner wrote: > > > The Intel 0-DAY CI Kernel Test Service reports an unused variable > > warning when compiling with clang for PowerPC: > > > > > > drivers/mfd/kempld-core.c:556:36: warning: unused variable > > >

Re: [PATCH v4 04/29] objtool: Add a pass for generating __mcount_loc

2020-10-05 Thread Miroslav Benes
On Fri, 2 Oct 2020, Josh Poimboeuf wrote: > On Thu, Oct 01, 2020 at 03:36:12PM +0200, Peter Zijlstra wrote: > > On Thu, Oct 01, 2020 at 03:17:07PM +0200, Miroslav Benes wrote: > > > > > I also wonder about making 'mcount' command separate from 'check'. > > > Similar > > > to what is 'orc' now.

Re: remove bdget() as a public API

2020-10-05 Thread Christoph Hellwig
ping? On Fri, Sep 25, 2020 at 06:06:16PM +0200, Christoph Hellwig wrote: > Hi Jens, > > this series first cleans up the somewhat odd size handling in > drbd, and then kill off bdget() as a public API. ---end quoted text---

Re: [sched/fair] fcf0553db6: netperf.Throughput_Mbps -30.8% regression

2020-10-05 Thread Vincent Guittot
On Mon, 5 Oct 2020 at 08:50, Peter Zijlstra wrote: > > On Sun, Oct 04, 2020 at 09:27:16PM +0800, kernel test robot wrote: > > Greeting, > > > > FYI, we noticed a -30.8% regression of netperf.Throughput_Mbps due to > > commit: > > > > > > commit: fcf0553db6f4c79387864f6e4ab4a891601f395e ("sched/fa

[PATCH 2/8] tracing: Add flag to control different traces

2020-10-05 Thread Alexander Shishkin
From: Tingwei Zhang More traces like event trace or trace marker will be supported. Add flag for difference traces, so that they can be controlled separately. Move current function trace to it's own flag instead of global ftrace enable flag. Signed-off-by: Tingwei Zhang Reviewed-by: Steven Rost

Re: [PATCH v3 2/3] iommu/tegra-smmu: Rework .probe_device and .attach_dev

2020-10-05 Thread Thierry Reding
On Thu, Oct 01, 2020 at 11:33:38PM +0300, Dmitry Osipenko wrote: > 01.10.2020 14:04, Nicolin Chen пишет: > > On Thu, Oct 01, 2020 at 12:23:16PM +0200, Thierry Reding wrote: > > > > >> It looks to me like the only reason why you need this new > > global API is > >> because PCI devices

[PATCH 5/8] stm class: ftrace: Enable supported trace export flag

2020-10-05 Thread Alexander Shishkin
From: Tingwei Zhang Set flags for trace_export. Export function trace, event trace and trace marker to stm. Signed-off-by: Tingwei Zhang Reviewed-by: Steven Rostedt (VMware) Reviewed-by: Alexander Shishkin Signed-off-by: Alexander Shishkin --- drivers/hwtracing/stm/ftrace.c | 2 ++ 1 file c

[PATCH 7/8] intel_th: pci: Add Alder Lake-S support

2020-10-05 Thread Alexander Shishkin
This adds support for the Trace Hub in Alder Lake-S. Signed-off-by: Alexander Shishkin Cc: sta...@vger.kernel.org # v4.14+ --- drivers/hwtracing/intel_th/pci.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/hwtracing/intel_th/pci.c b/drivers/hwtracing/intel_th/pci.c index 21fdf

[PATCH 6/8] stm class: ftrace: Use different channel accroding to CPU

2020-10-05 Thread Alexander Shishkin
From: Tingwei Zhang To avoid mixup of packets from differnt ftrace packets simultaneously, use different channel for packets from different CPU. Signed-off-by: Tingwei Zhang Reviewed-by: Steven Rostedt (VMware) Signed-off-by: Alexander Shishkin --- drivers/hwtracing/stm/ftrace.c | 5 - 1

[PATCH 0/8] stm class/intel_th: Updates for v5.10

2020-10-05 Thread Alexander Shishkin
Hi Greg, Apologies for the late posting. These are the updates that I have for the next merge window if that's still doable. Six patches add support for exporting more of ftrace via STM, 3 of them get into ftrace territory, but Steven reviewed all of them and there should be no conflicts. Two pa

[PATCH 4/8] tracing: Add trace_export support for trace_marker

2020-10-05 Thread Alexander Shishkin
From: Tingwei Zhang Add the support to route trace_marker buffer to other destination via trace_export. Signed-off-by: Tingwei Zhang Reviewed-by: Steven Rostedt (VMware) Reviewed-by: Alexander Shishkin Signed-off-by: Alexander Shishkin --- include/linux/trace.h | 1 + kernel/trace/trace.c

[PATCH 1/8] stm class: ftrace: Change dependency to TRACING

2020-10-05 Thread Alexander Shishkin
From: Tingwei Zhang We will support copying event trace to STM. Change STM_SOURCE_FTRACE to depend on TRACING since we will support multiple tracers. Signed-off-by: Tingwei Zhang Reviewed-by: Steven Rostedt (VMware) Reviewed-by: Alexander Shishkin Signed-off-by: Alexander Shishkin --- drive

[PATCH 8/8] intel_th: pci: Add Alder Lake CPU support

2020-10-05 Thread Alexander Shishkin
This adds support for the Trace Hub in Alder Lake CPU. Signed-off-by: Alexander Shishkin Cc: sta...@vger.kernel.org # v4.14+ --- drivers/hwtracing/intel_th/pci.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/hwtracing/intel_th/pci.c b/drivers/hwtracing/intel_th/pci.c index dda

[PATCH 3/8] tracing: Add trace_export support for event trace

2020-10-05 Thread Alexander Shishkin
From: Tingwei Zhang Only function traces can be exported to other destinations currently. This patch exports event trace as well. Move trace export related function to the beginning of file so other trace can call trace_process_export() to export. Signed-off-by: Tingwei Zhang Reviewed-by: Steve

[PATCH v3] net: qrtr: ns: Fix the incorrect usage of rcu_read_lock()

2020-10-05 Thread Manivannan Sadhasivam
The rcu_read_lock() is not supposed to lock the kernel_sendmsg() API since it has the lock_sock() in qrtr_sendmsg() which will sleep. Hence, fix it by excluding the locking for kernel_sendmsg(). While at it, let's also use radix_tree_deref_retry() to confirm the validity of the pointer returned by

Re: [GIT PULL] RISC-V Fixes for 5.9

2020-10-05 Thread Christoph Hellwig
On Fri, Oct 02, 2020 at 09:07:27AM -0700, Palmer Dabbelt wrote: > * The addition of a symbol export for clint_time_val, which has been inlined > into some timex functions and can be used by drivers. Err, haven't we just agreed on that this is a bad idea and jitterentropy should not call get_cycl

Re: [PATCH RFC] checkpatch: add new warnings to author signoff checks.

2020-10-05 Thread Joe Perches
On Mon, 2020-10-05 at 12:18 +0530, Dwaipayan Ray wrote: > The author signed-off-by checks are currently very vague. > Cases like same name or same address are not handled separately. > > For example, running checkpatch on commit be6577af0cef > ("parisc: Add atomic64_set_release() define to avoid C

Re: [PATCH] mm/util.c: Add error logs for commitment overflow

2020-10-05 Thread Michal Hocko
On Fri 02-10-20 21:53:37, pi...@codeaurora.org wrote: > On 2020-10-02 17:47, Michal Hocko wrote: > > > > __vm_enough_memory: commitment overflow: ppid:150, pid:164, > > > pages:62451 > > > fork failed[count:0]: Cannot allocate memory > > > > While I understand that fork failing due to overrcomit

Re: [PATCH v7 2/2] soc: mediatek: add mt6779 devapc driver

2020-10-05 Thread Neal Liu
Hi Chun-Kuang, On Sat, 2020-10-03 at 00:24 +0800, Chun-Kuang Hu wrote: > Hi, Neal: > > Neal Liu 於 2020年8月27日 週四 上午11:07寫道: > > > > MediaTek bus fabric provides TrustZone security support and data > > protection to prevent slaves from being accessed by unexpected > > masters. > > The security vio

INFO: task can't die in nbd_ioctl

2020-10-05 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:de69ee6d Add linux-next specific files for 20200930 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=10d04f1790 kernel config: https://syzkaller.appspot.com/x/.config?x=4919771fba5919e5 dashboard

Re: [PATCH v3 2/3] iommu/tegra-smmu: Rework .probe_device and .attach_dev

2020-10-05 Thread Thierry Reding
On Fri, Oct 02, 2020 at 04:55:34AM +0300, Dmitry Osipenko wrote: > 02.10.2020 04:07, Nicolin Chen пишет: > > On Thu, Oct 01, 2020 at 11:33:38PM +0300, Dmitry Osipenko wrote: > > If we can't come to an agreement on globalizing mc pointer, would > > it be possible to pass tegra_mc_driver thro

Re: [PATCH][next] block: scsi_ioctl: Avoid the use of one-element arrays

2020-10-05 Thread Christoph Hellwig
On Fri, Oct 02, 2020 at 06:10:33PM -0500, Gustavo A. R. Silva wrote: > One-element arrays are being deprecated[1]. Replace the one-element array > with a simple object of type compat_caddr_t: 'compat_caddr_t unused'[2], > once it seems this field is actually never used. They are only deprecated wh

Re: [PATCH RFC] checkpatch: add new warnings to author signoff checks.

2020-10-05 Thread Lukas Bulwahn
On Mon, 5 Oct 2020, Dwaipayan Ray wrote: > The author signed-off-by checks are currently very vague. > Cases like same name or same address are not handled separately. > > For example, running checkpatch on commit be6577af0cef > ("parisc: Add atomic64_set_release() define to avoid CPU soft loc

Re: [PATCH] man2: new page describing memfd_secret() system call

2020-10-05 Thread Mike Rapoport
Hi Alex, On Sat, Oct 03, 2020 at 11:32:43AM +0200, Alejandro Colomar wrote: > Hi Mike and Michael, I'll add the note to the man page, thanks! > Ping. :) > > Thanks, > > Alex > > On 2020-09-24 16:55, Alejandro Colomar wrote: > > * Mike Rapoport: > > > +.PP > > > +.IR Note : > > > +There is

[PATCH 3/3] f2fs: Add metadata encryption support

2020-10-05 Thread Satya Tangirala
Wire up metadata encryption support with the fscrypt metadata crypt additions. Introduces a new mount option for metadata encryption - metadata_crypt_key=%s. The argument to this option is the key descriptor of the metadata encryption key in hex. This key descriptor will be looked up in the logon

[PATCH 1/3] fscrypt, f2fs: replace fscrypt_get_devices with fscrypt_get_device

2020-10-05 Thread Satya Tangirala
The new function takes the super_block and the index of a device, and returns the request_queue of the device at that index (whereas the old function would take a pointer to an array of request_queues and fill them all up). This allows callers to avoid allocating an array of request_queues in some

[PATCH 2/3] fscrypt: Add metadata encryption support

2020-10-05 Thread Satya Tangirala
Introduces functions that help with metadata encryption. In particular, we introduce: fscrypt_setup_metadata_encryption() - filesystems should call this function to set up metadata encryption on a super block with the encryption algorithm (the desired FSCRYPT_MODE_*) and the key descriptor of the

Re: [PATCH v3 5/7] rtc: New driver for RTC in Netronix embedded controller

2020-10-05 Thread Uwe Kleine-König
Hello Jonathan, On Sun, Oct 04, 2020 at 03:43:23AM +0200, Jonathan Neuschäfer wrote: > On Fri, Sep 25, 2020 at 07:44:24AM +0200, Uwe Kleine-König wrote: > > > +static struct platform_driver ntxec_rtc_driver = { > > > + .driver = { > > > + .name = "ntxec-rtc", > > > + }, > > > + .probe = nt

[PATCH 0/3] add support for metadata encryption to F2FS

2020-10-05 Thread Satya Tangirala
This patch series adds support for metadata encryption to F2FS using blk-crypto. Patch 1 replaces fscrypt_get_devices (which took an array of request_queues and filled it up) with fscrypt_get_device, which takes a index of the desired device and returns the device at that index (so the index passe

RE: [PATCH v2 1/7] fpga: sec-mgr: intel fpga security manager class driver

2020-10-05 Thread Wu, Hao
> Subject: [PATCH v2 1/7] fpga: sec-mgr: intel fpga security manager class > driver > > Create the Intel Security Manager class driver. The security > manager provides interfaces to manage secure updates for the > FPGA and BMC images that are stored in FLASH. The driver can > also be used to updat

Re: [PATCH RFC] checkpatch: add new warnings to author signoff checks.

2020-10-05 Thread Dwaipayan Ray
On Mon, Oct 5, 2020 at 12:48 PM Joe Perches wrote: > > On Mon, 2020-10-05 at 12:18 +0530, Dwaipayan Ray wrote: > > The author signed-off-by checks are currently very vague. > > Cases like same name or same address are not handled separately. > > > > For example, running checkpatch on commit be6577

Re: [PATCH] qla2xxx: Do not consume srb greedily

2020-10-05 Thread Daniel Wagner
On Tue, Sep 29, 2020 at 09:38:02AM +0200, Daniel Wagner wrote: > qla2xx_process_get_sp_from_handle() will clear the slot which the > current srb is stored. So this function has a side effect. Therefore, > we can't use it in qla24xx_process_mbx_iocb_response() to check > for consistency and later ag

[tip: sched/core] sched/debug: Add new tracepoint to track cpu_capacity

2020-10-05 Thread tip-bot2 for Vincent Donnefort
The following commit has been merged into the sched/core branch of tip: Commit-ID: 51cf18c90ca1b51d1cb4af3064e85fcf8610b5d2 Gitweb: https://git.kernel.org/tip/51cf18c90ca1b51d1cb4af3064e85fcf8610b5d2 Author:Vincent Donnefort AuthorDate:Fri, 28 Aug 2020 10:00:49 +01:00 Comm

[tip: sched/core] sched/deadline: Unthrottle PI boosted threads while enqueuing

2020-10-05 Thread tip-bot2 for Daniel Bristot de Oliveira
The following commit has been merged into the sched/core branch of tip: Commit-ID: feff2e65efd8d84cf831668e182b2ce73c604bbb Gitweb: https://git.kernel.org/tip/feff2e65efd8d84cf831668e182b2ce73c604bbb Author:Daniel Bristot de Oliveira AuthorDate:Wed, 16 Sep 2020 09:06:39 +0

Re: [PATCH 0/3] add support for metadata encryption to F2FS

2020-10-05 Thread Satya Tangirala
On Mon, Oct 05, 2020 at 07:36:03AM +, Satya Tangirala wrote: > This patch series adds support for metadata encryption to F2FS using > blk-crypto. > > Patch 1 replaces fscrypt_get_devices (which took an array of request_queues > and filled it up) with fscrypt_get_device, which takes a index of

[tip: sched/core] sched/fair: Tweak pick_next_entity()

2020-10-05 Thread tip-bot2 for Peter Oskolkov
The following commit has been merged into the sched/core branch of tip: Commit-ID: 9abb897345ce1d41257567f571a78137c961c405 Gitweb: https://git.kernel.org/tip/9abb897345ce1d41257567f571a78137c961c405 Author:Peter Oskolkov AuthorDate:Wed, 30 Sep 2020 10:35:32 -07:00 Committ

Re: [PATCH] crypto: jitterentropy - bind statically into kernel

2020-10-05 Thread Stephan Mueller
Am Montag, 5. Oktober 2020, 08:44:39 CEST schrieb Ard Biesheuvel: Hi Ard, > On Mon, 5 Oct 2020 at 08:40, Stephan Mueller wrote: > > Am Montag, 5. Oktober 2020, 08:24:46 CEST schrieb Ard Biesheuvel: > > > > Hi Ard, > > > > > If jitterentropy is a special case, we could put a alternate > > > non

[PATCH] arm64: dts: ti: k3-j7200-main: Add McASP nodes

2020-10-05 Thread Peter Ujfalusi
Add the nodes for McASP 0-2 and keep them disabled because several required properties are not present as they are board specific. Signed-off-by: Peter Ujfalusi --- arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 57 +++ 1 file changed, 57 insertions(+) diff --git a/arch/arm64/b

Re: [WARNING] kernel/rcu/tree.c:1058 rcu_irq_enter+0x15/0x20

2020-10-05 Thread Peter Zijlstra
On Fri, Oct 02, 2020 at 08:13:13PM +0200, Peter Zijlstra wrote: > > checks within the irq disabling to get rid of the using cpu pointers within > > preemptable code warnings > > Ah, I think I lost a s/__this_cpu_read/raw_cpu_read/ somewhere. The > thing is, if we're preemptible/migratable it will

Re: [RESEND PATCH v3] arm64: dts: renesas: align GPIO hog names with dtschema

2020-10-05 Thread Geert Uytterhoeven
On Fri, Oct 2, 2020 at 6:39 PM Krzysztof Kozlowski wrote: > The convention for node names is to use hyphens, not underscores. > dtschema for pca95xx expects GPIO hogs to end with 'hog' suffix. > > Signed-off-by: Krzysztof Kozlowski > --- > .../boot/dts/renesas/r8a77951-salvator-xs.dts | 2

[tip: perf/core] x86/events/amd/iommu: Fix sizeof mismatch

2020-10-05 Thread tip-bot2 for Colin Ian King
The following commit has been merged into the perf/core branch of tip: Commit-ID: 59d5396a4666195f89a67e118e9e627ddd6f53a1 Gitweb: https://git.kernel.org/tip/59d5396a4666195f89a67e118e9e627ddd6f53a1 Author:Colin Ian King AuthorDate:Thu, 01 Oct 2020 12:39:00 +01:00 Committe

[tip: perf/core] perf/x86/intel: Check perf metrics feature for each CPU

2020-10-05 Thread tip-bot2 for Kan Liang
The following commit has been merged into the perf/core branch of tip: Commit-ID: 80a5ce116fc084e8a25d5a936617699e2931b611 Gitweb: https://git.kernel.org/tip/80a5ce116fc084e8a25d5a936617699e2931b611 Author:Kan Liang AuthorDate:Thu, 01 Oct 2020 14:17:11 -07:00 Committer:

Re: [PATCH] mm/vmscan: drop unneeded assignment in kswapd()

2020-10-05 Thread Mel Gorman
On Mon, Oct 05, 2020 at 08:58:53AM +0200, Lukas Bulwahn wrote: > > > On Sun, 4 Oct 2020, Mel Gorman wrote: > > > On Sun, Oct 04, 2020 at 02:58:27PM +0200, Lukas Bulwahn wrote: > > > The refactoring to kswapd() in commit e716f2eb24de ("mm, vmscan: prevent > > > kswapd sleeping prematurely due to

[PATCH V3 4/5] cpufreq: stats: Enable stats for fast-switch as well

2020-10-05 Thread Viresh Kumar
Now that all the blockers are gone for enabling stats in fast-switching case, enable it. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq.c | 4 drivers/cpufreq/cpufreq_stats.c | 6 -- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/cpufreq/cpufreq.c

[PATCH V3 3/5] cpufreq: stats: Mark few conditionals with unlikely()

2020-10-05 Thread Viresh Kumar
Since this will be part of scheduler's hotpath in some cases, use unlikely() for few of the obvious conditionals. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq_stats.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/cpufreq/cpufreq_stats.c b/drivers/cpuf

Re: [RFC PATCH 0/1] overlayfs: C/R enhancments (RFC)

2020-10-05 Thread Amir Goldstein
On Sun, Oct 4, 2020 at 10:25 PM Alexander Mikhalitsyn wrote: > > Some time ago we discussed about the problem of Checkpoint-Restoring > overlayfs mounts [1]. Big thanks to Amir for review and suggestions. > > Brief from previous discussion. > Problem statement: to checkpoint-restore overlayfs moun

[PATCH V3 2/5] cpufreq: stats: Remove locking

2020-10-05 Thread Viresh Kumar
The locking isn't required anymore as stats can get updated only from one place at a time. Remove it. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq_stats.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/cpufreq/cpufreq_stats.c b/drivers/cpufreq/cpufreq_stats.c index 4

[PATCH V3 0/5] cpufreq: Record stats with fast-switching

2020-10-05 Thread Viresh Kumar
Hi, We disabled recording cpufreq stats when fast switching was introduced to the cpufreq core as the cpufreq stats required to take a spinlock and that can't be allowed (for performance reasons) on scheduler's hot path. Here is an attempt to get rid of the lock and bring back the support. V2->V

[PATCH V3 1/5] cpufreq: stats: Defer stats update to cpufreq_stats_record_transition()

2020-10-05 Thread Viresh Kumar
In order to prepare for lock-less stats update, add support to defer any updates to it until cpufreq_stats_record_transition() is called. The stats were updated from two places earlier: - show_time_in_state(): This can be easily deferred, all we need is to calculate the delta duration again in

[PATCH V3 5/5] cpufreq: Move traces and update to policy->cur to cpufreq core

2020-10-05 Thread Viresh Kumar
The cpufreq core handles the updates to policy->cur and recording of cpufreq trace events for all the governors except schedutil's fast switch case. Move that as well to cpufreq core for consistency and readability. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq.c| 7 +++

Re: [RFC 0/3] cpufreq: cppc: Add support for frequency invariance

2020-10-05 Thread Viresh Kumar
On 27-08-20, 12:27, Ionela Voinescu wrote: > I am in the middle of unifying AMU counter and cpufreq invariance through > something like this, so if you like the idea and you don't think I'm > stepping too much on your toes with this, I can consider the usecase in > my (what should be) generic suppo

Re: [PATCH] mm/vmscan: drop unneeded assignment in kswapd()

2020-10-05 Thread Mel Gorman
On Mon, Oct 05, 2020 at 08:58:53AM +0200, Lukas Bulwahn wrote: > > > On Sun, 4 Oct 2020, Mel Gorman wrote: > > > On Sun, Oct 04, 2020 at 02:58:27PM +0200, Lukas Bulwahn wrote: > > > The refactoring to kswapd() in commit e716f2eb24de ("mm, vmscan: prevent > > > kswapd sleeping prematurely due to

RE: [PATCH 1/2] scsi: ufs: Add DeepSleep feature

2020-10-05 Thread Avri Altman
HI, > Drivers that wish to support DeepSleep need to set a new capability flag > UFSHCD_CAP_DEEPSLEEP and provide a hardware reset via the existing > ->device_reset() callback. I would expect that this capability controls sending SSU 4, but it only controls the sysfs entry? > > It is assumed t

Re: [PATCH] dt-bindings: Another round of adding missing 'additionalProperties'

2020-10-05 Thread Lee Jones
On Fri, 02 Oct 2020, Rob Herring wrote: > Another round of wack-a-mole. The json-schema default is additional > unknown properties are allowed, but for DT all properties should be > defined. > > Cc: Thierry Reding > Cc: Linus Walleij > Cc: Stephen Boyd > Cc: Shawn Guo > Cc: Bjorn Andersson >

Re: [sched/fair] fcf0553db6: netperf.Throughput_Mbps -30.8% regression

2020-10-05 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Sun, Oct 04, 2020 at 05:21:08PM +0100, Mel Gorman wrote: > > On Sun, Oct 04, 2020 at 09:27:16PM +0800, kernel test robot wrote: > > > Greeting, > > > > > > FYI, we noticed a -30.8% regression of netperf.Throughput_Mbps due to > > > commit: > > > > > > > > > comm

Re: [PATCH v2 1/3] i2c: imx: Fix reset of I2SR_IAL flag

2020-10-05 Thread Krzysztof Kozlowski
On Fri, Oct 02, 2020 at 05:23:03PM +0200, Christian Eggers wrote: > According to the "VFxxx Controller Reference Manual" (and the comment > block starting at line 97), Vybrid requires writing a one for clearing > an interrupt flag. Syncing the method for clearing I2SR_IIF in > i2c_imx_isr(). > > S

Re: [PATCH] ACPI / button: fix handling lid state changes when input device closed

2020-10-05 Thread Hans de Goede
Hi, On 10/5/20 7:11 AM, dmitry.torok...@gmail.com wrote: The original intent of 84d3f6b76447 was to delay evaluating lid state until all drivers have been loaded, with input device being opened from userspace serving as a signal for this condition. Let's ensure that state updates happen even if

Re: [PATCH RFC] checkpatch: add new warnings to author signoff checks.

2020-10-05 Thread Joe Perches
On Mon, 2020-10-05 at 13:10 +0530, Dwaipayan Ray wrote: > On Mon, Oct 5, 2020 at 12:48 PM Joe Perches wrote: > > On Mon, 2020-10-05 at 12:18 +0530, Dwaipayan Ray wrote: > > > The author signed-off-by checks are currently very vague. > > > Cases like same name or same address are not handled separa

Re: [PATCH 1/2] usb: serial: qmi_wwan: add Cellient MPL200 card

2020-10-05 Thread Johan Hovold
On Sun, Oct 04, 2020 at 08:30:42PM +0200, Wilken Gottwalt wrote: > On Sun, 04 Oct 2020 17:29:38 +0200 > Bjørn Mork wrote: > > > Wilken Gottwalt writes: > > > > > Add usb ids of the Cellient MPL200 card. > > > > > > Signed-off-by: Wilken Gottwalt > > > --- > > > drivers/net/usb/qmi_wwan.c | 1

Re: [PATCH v3 0/6] vt: Add SRG mouse reporting features

2020-10-05 Thread Tammo Block
Hi Greg, Am Fr., 2. Okt. 2020 um 14:30 Uhr schrieb Greg Kroah-Hartman : > > On Mon, Jul 06, 2020 at 12:57:22PM +0200, Tammo Block wrote: > > Hi everybody, > > > > this patchset adds xterm like mouse reporting features to the console. > > > > The linux virtual console has support for mouse reportin

Re: [PATCH v2 2/3] i2c: imx: Check for I2SR_IAL after every byte

2020-10-05 Thread Krzysztof Kozlowski
On Fri, Oct 02, 2020 at 05:23:04PM +0200, Christian Eggers wrote: > Arbitration Lost (IAL) can happen after every single byte transfer. If > arbitration is lost, the I2C hardware will autonomously switch from > master mode to slave. If a transfer is not aborted in this state, > consecutive transfer

Re: [PATCH] dt-bindings: mfd: ti,j721e-system-controller: Fix incorrect pattern property

2020-10-05 Thread Lee Jones
On Fri, 02 Oct 2020, Rob Herring wrote: > Pattern properties go under 'patternProperties', not 'properties'. > Otherwise, the pattern is treated as a literal string. > > A corresponding meta-schema check has been added to catch bad DT property > names like this. > > Fixes: e0f946915b23 ("dt-bind

Re: BUG: unable to handle kernel paging request in tcf_action_dump_terse

2020-10-05 Thread syzbot
syzbot has bisected this issue to: commit 0fedc63fadf0404a729e73a35349481c8009c02f Author: Cong Wang Date: Wed Sep 23 03:56:24 2020 + net_sched: commit action insertions together bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=12c2065790 start commit: 2172e358 Add l

RE: [PATCH 2/2] scsi: ufs: Workaround UFS devices that object to DeepSleep IMMED

2020-10-05 Thread Avri Altman
> > The UFS specification says to set the IMMED (immediate) flag for the > Start/Stop Unit command when entering DeepSleep. However some UFS > devices object to that. Workaround that by retrying without IMMED. > Whichever possibility works, the result is recorded for the next > time. As aforesa

Re: [PATCH] mm: optionally disable brk()

2020-10-05 Thread Topi Miettinen
On 5.10.2020 9.12, Michal Hocko wrote: On Sat 03-10-20 00:44:09, Topi Miettinen wrote: On 2.10.2020 20.52, David Hildenbrand wrote: On 02.10.20 19:19, Topi Miettinen wrote: The brk() system call allows to change data segment size (heap). This is mainly used by glibc for memory allocation, but

Re: [PATCH v2] dt-bindings: mfd: rohm,bd71837-pmic: Add common properties

2020-10-05 Thread Lee Jones
On Fri, 02 Oct 2020, Krzysztof Kozlowski wrote: > On Thu, Sep 17, 2020 at 09:37:54PM +0200, Krzysztof Kozlowski wrote: > > Add common properties appearing in DTSes (clock-names, > > clock-output-names) with the common values (actually used in DTSes) to > > fix dtbs_check warnings like: > > > >

Re: [PATCH v2] USB: serial: option: Add Telit FT980-KS composition

2020-10-05 Thread Johan Hovold
On Sun, Oct 04, 2020 at 06:58:13PM +0300, Leonid Bloch wrote: > This commit adds the following Telit FT980-KS composition: > > 0x1054: rndis, diag, adb, nmea, modem, modem, aux > > AT commands can be sent to /dev/ttyUSB2. > > Signed-off-by: Leonid Bloch > --- > > The full composition is not te

[RESEND PATCH v2 0/2] dt-bindings: can: document R8A774E1

2020-10-05 Thread Lad Prabhakar
Hi All, I am re-sending this patch set as this has been missed previously. It is exactly same as [1]. DT maintainers have already acked the patches. [1] https://www.spinics.net/lists/netdev/msg679244.html Cheers, Prabhakar Changes for v2: * Added R8A774E1 to the list of SoCs that can use CANFD

[RESEND PATCH v2 1/2] dt-bindings: can: rcar_canfd: Document r8a774e1 support

2020-10-05 Thread Lad Prabhakar
Document the support for rcar_canfd on R8A774E1 SoC devices. Signed-off-by: Lad Prabhakar Reviewed-by: Marian-Cristian Rotariu Reviewed-by: Geert Uytterhoeven Acked-by: Rob Herring --- Documentation/devicetree/bindings/net/can/rcar_canfd.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 delet

[RESEND PATCH v2 2/2] dt-bindings: can: rcar_can: Document r8a774e1 support

2020-10-05 Thread Lad Prabhakar
Document SoC specific bindings for RZ/G2H (R8A774E1) SoC. Signed-off-by: Lad Prabhakar Reviewed-by: Marian-Cristian Rotariu Reviewed-by: Geert Uytterhoeven Acked-by: Rob Herring --- Documentation/devicetree/bindings/net/can/rcar_can.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(

[PATCH RFC v2 1/2] mm: memcontrol: make shrink_all_memory() memcg aware

2020-10-05 Thread Andrea Righi
Allow to specify a memcg when calling shrink_all_memory() to reclaim some memory from a specific cgroup. Moreover, make shrink_all_memory() always available and do not depend on having CONFIG_HIBERNATION enabled. This is required by the opportunistic memory reclaim feature. Signed-off-by: Andrea

[PATCH RFC v2 2/2] mm: memcontrol: introduce opportunistic memory reclaim

2020-10-05 Thread Andrea Righi
Opportunistic memory reclaim allows user-space to trigger an artificial memory pressure condition and force the system to reclaim memory (drop caches, swap out anonymous memory, etc.). This feature is provided by adding a new file to each memcg: memory.swap.reclaim. Writing a number to this file

[PATCH RFC v2] Opportunistic memory reclaim

2020-10-05 Thread Andrea Righi
## Overview Opportunistic memory reclaim aims to introduce a new interface that allows user-space to trigger an artificial memory pressure condition and force the kernel to reclaim memory (dropping page cache pages, swapping out anonymous memory, etc.). ### Motivation Reclaiming memory in advanc

Re: scripts/gdb: issues when loading modules after lx-symbols

2020-10-05 Thread Stefano Garzarella
On Sun, Oct 04, 2020 at 08:52:37PM +0200, Jan Kiszka wrote: > On 01.10.20 16:31, Stefano Garzarella wrote: > > Hi, > > I had some issues with gdb scripts and kernel modules in Linux 5.9-rc7. > > > > If the modules are already loaded, and I do 'lx-symbols', all work fine. > > But, if I load a kerne

Re: [PATCH v3 2/3] iommu/tegra-smmu: Rework .probe_device and .attach_dev

2020-10-05 Thread Dmitry Osipenko
05.10.2020 10:13, Thierry Reding пишет: ... > Have you also seen that sun50i-iommu does look up the SMMU from a > phandle using of_find_device_by_node()? So I think you've shown yourself > that even "modern" drivers avoid global pointers and look up via > phandle. I have no problem with the lookup

Re: [PATCH v2 3/3] i2c: imx: Don't generate STOP condition if arbitration has been lost

2020-10-05 Thread Krzysztof Kozlowski
On Fri, Oct 02, 2020 at 05:23:05PM +0200, Christian Eggers wrote: > If arbitration is lost, the master automatically changes to slave mode. > I2SR_IBB may or may not be reset by hardware. Raising a STOP condition > by resetting I2CR_MSTA has no effect and will not clear I2SR_IBB. > > So calling i2

Re: [PATCH v3 0/6] vt: Add SRG mouse reporting features

2020-10-05 Thread Greg Kroah-Hartman
On Mon, Oct 05, 2020 at 10:06:38AM +0200, Tammo Block wrote: > Hi Greg, > > Am Fr., 2. Okt. 2020 um 14:30 Uhr schrieb Greg Kroah-Hartman > : > > > > On Mon, Jul 06, 2020 at 12:57:22PM +0200, Tammo Block wrote: > > > Hi everybody, > > > > > > this patchset adds xterm like mouse reporting features t

[PATCH 1/2] dt_bindings: bd9576: fix regulator binfdings dt node names

2020-10-05 Thread Matti Vaittinen
Add regulator- prefix to allowed regulator node names. Prefix is expected by the driver and the actual binding yaml description. Signed-off-by: Matti Vaittinen --- .../devicetree/bindings/regulator/rohm,bd9576-regulator.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

RE: [PATCH v2 2/7] fpga: sec-mgr: enable secure updates

2020-10-05 Thread Wu, Hao
> -Original Message- > From: Russ Weight > Sent: Saturday, October 3, 2020 6:37 AM > To: m...@kernel.org; linux-f...@vger.kernel.org; linux- > ker...@vger.kernel.org > Cc: t...@redhat.com; lgonc...@redhat.com; Xu, Yilun ; > Wu, Hao ; Gerlach, Matthew > ; Weight, Russell H > > Subject: [PA

Re: [PATCH 1/2] usb: serial: qmi_wwan: add Cellient MPL200 card

2020-10-05 Thread Johan Hovold
On Mon, Oct 05, 2020 at 10:06:12AM +0200, Johan Hovold wrote: > On Sun, Oct 04, 2020 at 08:30:42PM +0200, Wilken Gottwalt wrote: > > Oh sorry, looks like I got it mixed up a bit. It was my first attempt to > > submit > > a patch set. Which is the best way to resubmit an update if the other part

[PATCH 2/2] regulator: bd9576: Fix print

2020-10-05 Thread Matti Vaittinen
The print in probe is done using pr_info. Correct print call would be dev_dbg because: - Severity should really be dbg - The dev pointer is given as first argument Fixes: b014e9fae7e7de4329a7092ade4256982c5ce974 Signed-off-by: Matti Vaittinen --- Sorry folks! This should have never slip in...

Re: Litmus test for question from Al Viro

2020-10-05 Thread Will Deacon
On Sun, Oct 04, 2020 at 10:38:46PM -0400, Alan Stern wrote: > On Sun, Oct 04, 2020 at 04:31:46PM -0700, Paul E. McKenney wrote: > > Nice simple example! How about like this? > > > > Thanx, Paul > > > > --

Re: PCI: Race condition in pci_create_sysfs_dev_files

2020-10-05 Thread Pali Rohár
PING? On Wednesday 09 September 2020 13:28:50 Pali Rohár wrote: > Hello! I'm adding more people to loop. > > Can somebody look at these race conditions and my patch? > > On Friday 14 August 2020 10:08:24 Pali Rohár wrote: > > Hello! I would like to remind this issue which I reported month ago. >

Re: [PATCH v1 3/5] mm/page_alloc: always move pages to the tail of the freelist in unset_migratetype_isolate()

2020-10-05 Thread Mel Gorman
On Mon, Oct 05, 2020 at 08:56:48AM +0200, Michal Hocko wrote: > On Fri 02-10-20 17:20:09, David Hildenbrand wrote: > > On 02.10.20 15:24, Michal Hocko wrote: > > > On Mon 28-09-20 20:21:08, David Hildenbrand wrote: > > >> Page isolation doesn't actually touch the pages, it simply isolates > > >> pa

Re: [PATCH 2/2] usb: serial: option: add Cellient MPL200 card

2020-10-05 Thread Johan Hovold
On Sat, Oct 03, 2020 at 11:40:29AM +0200, Wilken Gottwalt wrote: > Add usb ids of the Cellient MPL200 card. > > Signed-off-by: Wilken Gottwalt > --- > drivers/usb/serial/option.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.

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

2020-10-05 Thread Lars Povlsen
Linus Walleij writes: > Hi Lars, > > thanks for working on this! > > On Sun, Sep 13, 2020 at 9:11 PM Lars Povlsen > wrote: > >> > What I do not understand is why this GPIO controller is placed in the >> > bindings of the pin controllers? Do you plan to add pin control >> > properties to the bi

Re: [PATCH] mm: optionally disable brk()

2020-10-05 Thread Michal Hocko
On Mon 05-10-20 11:11:35, Topi Miettinen wrote: [...] > I think hardened, security oriented systems should disable brk() completely > because it will increase the randomization of the process address space > (ASLR). This wouldn't be a good option to enable for systems where maximum > compatibility

ext4 regression in v5.9-rc2 from e7bfb5c9bb3d on ro fs with overlapped bitmaps

2020-10-05 Thread Josh Triplett
Ran into an ext4 regression when testing upgrades to 5.9-rc kernels: Commit e7bfb5c9bb3d ("ext4: handle add_system_zone() failure in ext4_setup_system_zone()") breaks mounting of read-only ext4 filesystems with intentionally overlapping bitmap blocks. On an always-read-only filesystem explicitly

Re: [PATCH 0/2] Try to fix DT schema problems for V3-series DTs

2020-10-05 Thread Maxime Ripard
On Sun, Oct 04, 2020 at 07:48:42AM +0800, Icenowy Zheng wrote: > This patchset tries to fix DT schema verification errors that exist in > V3-series device trees. > > The first patch drops bogus properties that is not needed in PineCube > DT, and the second one adds compatible to the binding. > >

Re: [PATCH] mmc: meson-gx: remove IRQF_ONESHOT

2020-10-05 Thread Ulf Hansson
+ Tglx On Fri, 2 Oct 2020 at 18:49, Jerome Brunet wrote: > > IRQF_ONESHOT was added to this driver to make sure the irq was not enabled > again until the thread part of the irq had finished doing its job. > > Doing so upsets RT because, under RT, the hardirq part of the irq handler > is not migra

[PATCH] perf/x86: Fix n_pair for cancelled txn

2020-10-05 Thread Peter Zijlstra
On Fri, Oct 02, 2020 at 04:10:42PM -0500, Kim Phillips wrote: > Tested-by: Kim Phillips --- Subject: perf/x86: Fix n_pair for cancelled txn From: Peter Zijlstra Date: Mon Oct 5 10:09:06 CEST 2020 Kan reported that n_metric gets corrupted for cancelled transactions; a similar issue exists for n

Re: [PATCH][next] perf: arm-cmn: fix less than zero check on unsigned dtc->irq

2020-10-05 Thread Will Deacon
On Fri, Oct 02, 2020 at 04:48:00PM +0100, Colin King wrote: > From: Colin Ian King > > Currently the failure check on dtc->irq is always false because > dtc->irq is an unsigned int. Fix this by using a temporary signed > int for the less than zero error check. > > Addresses-Coverity: ("Unsigned

  1   2   3   4   5   6   7   8   9   10   >