Re: [PATCHv4 0/6] iommu/arm-smmu: Allow client devices to select identity mapping

2020-05-07 Thread Will Deacon
On Tue, 21 Apr 2020 00:03:48 +0530, Sai Prakash Ranjan wrote: > This series allows DRM, Modem devices to set a default > identity mapping in qcom smmu implementation. > > Patch 1 is cleanup to support other SoCs to call into > QCOM specific implementation. > Patch 2 sets the default identity doma

Re: [PATCH] arm64: vdso: Add --eh-frame-hdr to ldflags

2020-05-07 Thread Will Deacon
On Thu, 7 May 2020 11:40:49 +0100, Vincenzo Frascino wrote: > LLVM's unwinder depends on the .eh_frame_hdr being present for > unwinding. However, when compiling Linux with GCC, the section > is not present in the vdso library object and when compiling > with Clang, it is present, but it has zero l

[PATCH] mmc: block: Fix request completion in the CQE timeout path

2020-05-07 Thread Adrian Hunter
First, it should be noted that the CQE timeout (60 seconds) is substantial so a CQE request that times out is really stuck, and the race between timeout and completion is extremely unlikely. Nevertheless this patch fixes an issue with it. Commit ad73d6feadbd7b ("mmc: complete requests from ->timeo

Re: [PATCH v4 11/15] virtio-mem: Add parent resource for all added "System RAM"

2020-05-07 Thread Pankaj Gupta
> Let's add a parent resource, named after the virtio device (inspired by > drivers/dax/kmem.c). This allows user space to identify which memory > belongs to which virtio-mem device. > > With this change and two virtio-mem devices: > :/# cat /proc/iomem > -0fff : Reserve

[tip: x86/platform] x86/platform/uv: Unexport uv_apicid_hibits

2020-05-07 Thread tip-bot2 for Christoph Hellwig
The following commit has been merged into the x86/platform branch of tip: Commit-ID: 479d6d904557b774c1bd5b0338d8111dd2b322ee Gitweb: https://git.kernel.org/tip/479d6d904557b774c1bd5b0338d8111dd2b322ee Author:Christoph Hellwig AuthorDate:Mon, 04 May 2020 19:15:26 +02:00 Co

[tip: x86/platform] x86/platform/uv: Remove _uv_hub_info_check()

2020-05-07 Thread tip-bot2 for Christoph Hellwig
The following commit has been merged into the x86/platform branch of tip: Commit-ID: fbe1d37866d249b6936cf526592957725a941f95 Gitweb: https://git.kernel.org/tip/fbe1d37866d249b6936cf526592957725a941f95 Author:Christoph Hellwig AuthorDate:Mon, 04 May 2020 19:15:25 +02:00 Co

[tip: x86/platform] x86/platform/uv: Remove the unused _uv_cpu_blade_processor_id() macro

2020-05-07 Thread tip-bot2 for Christoph Hellwig
The following commit has been merged into the x86/platform branch of tip: Commit-ID: 2981cf836127c2d2d68399d456d2c22688d520b2 Gitweb: https://git.kernel.org/tip/2981cf836127c2d2d68399d456d2c22688d520b2 Author:Christoph Hellwig AuthorDate:Mon, 04 May 2020 19:15:27 +02:00 Co

Re: USB networking news, ofono for d4: less hacked version

2020-05-07 Thread Tony Lindgren
* Pavel Machek [200506 23:06]: > On Wed 2020-05-06 07:43:38, Tony Lindgren wrote: > > * Pavel Machek [200506 10:12]: > > > Hi! > > > > > > So... I found out that USB networking works way better when I don't > > > attempt to charge the phone at the same. Yes, green light was > > > blinking. > >

[tip: x86/platform] x86/platform/uv: Remove the uv_partition_coherence_id() macro

2020-05-07 Thread tip-bot2 for Christoph Hellwig
The following commit has been merged into the x86/platform branch of tip: Commit-ID: 32988cfd579f7912aeb9a66bf44ca4ce0fa860f1 Gitweb: https://git.kernel.org/tip/32988cfd579f7912aeb9a66bf44ca4ce0fa860f1 Author:Christoph Hellwig AuthorDate:Mon, 04 May 2020 19:15:18 +02:00 Co

[tip: x86/platform] x86/platform/uv: Mark uv_bios_call() and uv_bios_call_irqsave() static

2020-05-07 Thread tip-bot2 for Christoph Hellwig
The following commit has been merged into the x86/platform branch of tip: Commit-ID: 30ad8db3a2c2e0121202342c6c2a48fc28937056 Gitweb: https://git.kernel.org/tip/30ad8db3a2c2e0121202342c6c2a48fc28937056 Author:Christoph Hellwig AuthorDate:Mon, 04 May 2020 19:15:17 +02:00 Co

[tip: x86/platform] x86/platform/uv: Unexport sn_coherency_id

2020-05-07 Thread tip-bot2 for Christoph Hellwig
The following commit has been merged into the x86/platform branch of tip: Commit-ID: 23e1a65f3c7eb7f3c3f6f6c26b89cdf3bcb128f6 Gitweb: https://git.kernel.org/tip/23e1a65f3c7eb7f3c3f6f6c26b89cdf3bcb128f6 Author:Christoph Hellwig AuthorDate:Mon, 04 May 2020 19:15:19 +02:00 Co

Re: [PATCH] bpf: Tweak BPF jump table optimizations for objtool compatibility

2020-05-07 Thread Josh Poimboeuf
On Wed, May 06, 2020 at 05:03:57PM -0700, Alexei Starovoitov wrote: > > > > > diff --git a/include/linux/compiler-gcc.h > > > > > b/include/linux/compiler-gcc.h > > > > > index d7ee4c6bad48..05104c3cc033 100644 > > > > > --- a/include/linux/compiler-gcc.h > > > > > +++ b/include/linux/compiler-gcc

Re: [PATCH v3 0/2] Add CTS/RTS gpio support to STM32 UART

2020-05-07 Thread Manivannan Sadhasivam
Hi Greg, On Mon, Apr 20, 2020 at 10:32:02PM +0530, m...@kernel.org wrote: > From: Manivannan Sadhasivam > > Hello, > > This patchset adds CTS/RTS gpio support to STM32 UART controller. > Eventhough the UART controller supports using dedicated CTS/RTS gpios, > sometimes we need to use different

[tip: x86/platform] x86/platform/uv: Unexport symbols only used by x2apic_uv_x.c

2020-05-07 Thread tip-bot2 for Christoph Hellwig
The following commit has been merged into the x86/platform branch of tip: Commit-ID: 2bd04b6fe4fc46f3a358b62deac4912e778f36a4 Gitweb: https://git.kernel.org/tip/2bd04b6fe4fc46f3a358b62deac4912e778f36a4 Author:Christoph Hellwig AuthorDate:Mon, 04 May 2020 19:15:20 +02:00 Co

[tip: x86/platform] x86/platform/uv: Remove the UV*_HUB_IS_SUPPORTED macros

2020-05-07 Thread tip-bot2 for Christoph Hellwig
The following commit has been merged into the x86/platform branch of tip: Commit-ID: cc1991058705a9cc4fe51ab6c2116df17922ef82 Gitweb: https://git.kernel.org/tip/cc1991058705a9cc4fe51ab6c2116df17922ef82 Author:Christoph Hellwig AuthorDate:Mon, 04 May 2020 19:15:21 +02:00 Co

[tip: x86/platform] x86/platform/uv: Simplify uv_send_IPI_one()

2020-05-07 Thread tip-bot2 for Christoph Hellwig
The following commit has been merged into the x86/platform branch of tip: Commit-ID: 8e77554580250f1185cffd8d3ac6a9b01de05d60 Gitweb: https://git.kernel.org/tip/8e77554580250f1185cffd8d3ac6a9b01de05d60 Author:Christoph Hellwig AuthorDate:Mon, 04 May 2020 19:15:24 +02:00 Co

[tip: x86/platform] x86/platform/uv: Mark is_uv_hubless() static

2020-05-07 Thread tip-bot2 for Christoph Hellwig
The following commit has been merged into the x86/platform branch of tip: Commit-ID: e4dd8b8351264fb5bef30c0a77e4d171e0603d63 Gitweb: https://git.kernel.org/tip/e4dd8b8351264fb5bef30c0a77e4d171e0603d63 Author:Christoph Hellwig AuthorDate:Mon, 04 May 2020 19:15:22 +02:00 Co

[tip: x86/platform] x86/platform/uv: Mark uv_min_hub_revision_id static

2020-05-07 Thread tip-bot2 for Christoph Hellwig
The following commit has been merged into the x86/platform branch of tip: Commit-ID: 8263b059379c4a95fe0181db1e5a2e9c2229d929 Gitweb: https://git.kernel.org/tip/8263b059379c4a95fe0181db1e5a2e9c2229d929 Author:Christoph Hellwig AuthorDate:Mon, 04 May 2020 19:15:23 +02:00 Co

[RFC PATCH v2 07/23] perf expr: debug lex if debugging yacc

2020-05-07 Thread Ian Rogers
Only effects parser debugging (disabled by default). Enables displaying '--accepting rule at line .. ("..."). Signed-off-by: Ian Rogers --- tools/perf/util/expr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/util/expr.c b/tools/perf/util/expr.c index aa631e37ad1e..8b4ce704a68d

[RFC PATCH v2 01/23] perf expr: unlimited escaped characters in a symbol

2020-05-07 Thread Ian Rogers
Current expression allows 2 escaped '-,=' characters. However, some metrics require more, for example Haswell DRAM_BW_Use. Fixes: 26226a97724d (perf expr: Move expr lexer to flex) Signed-off-by: Ian Rogers --- tools/perf/util/expr.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

[RFC PATCH v2 00/23] Share events between metrics

2020-05-07 Thread Ian Rogers
Metric groups contain metrics. Metrics create groups of events to ideally be scheduled together. Often metrics refer to the same events, for example, a cache hit and cache miss rate. Using separate event groups means these metrics are multiplexed at different times and the counts don't sum to 100%.

[RFC PATCH v2 19/23] perf metricgroup: free metric_events on error

2020-05-07 Thread Ian Rogers
Avoid a simple memory leak. Signed-off-by: Ian Rogers --- tools/perf/util/metricgroup.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/perf/util/metricgroup.c b/tools/perf/util/metricgroup.c index dcd175c05872..2356dda92a07 100644 --- a/tools/perf/util/metricgroup.c +++ b/tools/per

[RFC PATCH v2 22/23] perf metricgroup: order event groups by size

2020-05-07 Thread Ian Rogers
When adding event groups to the group list, insert them in size order. This performs an insertion sort on the group list. By placing the largest groups at the front of the group list it is possible to see if a larger group contains the same events as a later group. This can make the later group red

[RFC PATCH v2 20/23] perf metricgroup: always place duration_time last

2020-05-07 Thread Ian Rogers
If a metric contains the duration_time event then the event is placed outside of the metric's group of events. Rather than split the group, make it so the duration_time is immediately after the group. Signed-off-by: Ian Rogers --- tools/perf/util/metricgroup.c | 20 ++-- 1 file c

[RFC PATCH v2 23/23] perf metricgroup: remove duped metric group events

2020-05-07 Thread Ian Rogers
A metric group contains multiple metrics. These metrics may use the same events. If metrics use separate events then it leads to more multiplexing and overall metric counts fail to sum to 100%. Modify how metrics are associated with events so that if the events in an earlier group satisfy the curre

[RFC PATCH v2 18/23] perf metricgroup: change evlist_used to a bitmap

2020-05-07 Thread Ian Rogers
Use a bitmap rather than an array of bools. Signed-off-by: Ian Rogers --- tools/perf/util/metricgroup.c | 18 -- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/tools/perf/util/metricgroup.c b/tools/perf/util/metricgroup.c index 2f92dbc05226..dcd175c05872 100644 --

[RFC PATCH v2 21/23] perf metricgroup: delay events string creation

2020-05-07 Thread Ian Rogers
Currently event groups are placed into groups_list at the same time as the events string containing the events is built. Separate these two operations and build the groups_list first, then the event string from the groups_list. This adds an ability to reorder the groups_list that will be used in a

[RFC PATCH v2 17/23] perf expr: migrate expr ids table to libbpf's hashmap

2020-05-07 Thread Ian Rogers
Use a hashmap between a char* string and a double* value. While bpf's hashmap entries are size_t in size, we can't guarantee sizeof(size_t) >= sizeof(double). Avoid a memory allocation when gathering ids by making 0.0 a special value encoded as NULL. Suggested by Andi Kleen: https://lore.kernel.or

[RFC PATCH v2 15/23] perf expr: fix memory leaks in bison

2020-05-07 Thread Ian Rogers
Add a destructor for strings to reclaim memory in the event of errors. Free the ID given for a lookup. Signed-off-by: Ian Rogers --- tools/perf/util/expr.y | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/perf/util/expr.y b/tools/perf/util/expr.y index 21e82a1e11a2..3b49b230b111 1006

[RFC PATCH v2 16/23] perf evsel: fix 2 memory leaks

2020-05-07 Thread Ian Rogers
If allocated, perf_pkg_mask and metric_events need freeing. Signed-off-by: Ian Rogers --- tools/perf/util/evsel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index f3e60c45d59a..d5c28e583986 100644 --- a/tools/perf/util/evsel.c +++ b/to

[RFC PATCH v2 12/23] perf test: improve pmu event metric testing

2020-05-07 Thread Ian Rogers
Add a basic floating point number test to expr. Break pmu-events test into 2 and add a test to verify that all pmu metric expressions simply parse. Try to parse all metric ids/events, failing if metrics for the current architecture fail to parse. Tested on skylakex with the patch set in place. May

[RFC PATCH v2 09/23] perf metrics: fix parse errors in power9 metrics

2020-05-07 Thread Ian Rogers
Mismatched parentheses. Fixes: 7f3cf5ac7743 (perf vendor events power9: Cpi_breakdown & estimated_dcache_miss_cpi metrics) Reviewed-by: Paul A. Clarke Signed-off-by: Ian Rogers --- tools/perf/pmu-events/arch/powerpc/power9/metrics.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) dif

[RFC PATCH v2 02/23] perf metrics: fix parse errors in cascade lake metrics

2020-05-07 Thread Ian Rogers
Remove over escaping with \\. Remove extraneous if 1 if 0 == 1 else 0 else 0. Fixes: fd5500989c8f (perf vendor events intel: Update metrics from TMAM 3.5) Signed-off-by: Ian Rogers --- .../pmu-events/arch/x86/cascadelakex/clx-metrics.json | 10 +- 1 file changed, 5 insertions(+), 5 dele

[RFC PATCH v2 10/23] perf expr: print a debug message for division by zero

2020-05-07 Thread Ian Rogers
If an expression yields 0 and is then divided-by/modulus-by then the parsing aborts. Add a debug error message to better enable debugging when this happens. Signed-off-by: Ian Rogers --- tools/perf/util/expr.y | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/to

[RFC PATCH v2 13/23] lib/bpf hashmap: increase portability

2020-05-07 Thread Ian Rogers
Don't include libbpf_internal.h as it is unused and has conflicting definitions, for example, with tools/perf/util/debug.h. Fix a non-glibc include path. Signed-off-by: Ian Rogers --- tools/lib/bpf/hashmap.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/lib/bpf/hash

[RFC PATCH v2 06/23] perf expr: parse numbers as doubles

2020-05-07 Thread Ian Rogers
This is expected in expr.y and metrics use floating point values such as x86 broadwell IFetch_Line_Utilization. Fixes: 26226a97724d (perf expr: Move expr lexer to flex) Signed-off-by: Ian Rogers --- tools/perf/util/expr.l | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff

[RFC PATCH v2 14/23] libbpf: Fix memory leak and possible double-free in hashmap__clear

2020-05-07 Thread Ian Rogers
From: Andrii Nakryiko Fix memory leak in hashmap_clear() not freeing hashmap_entry structs for each of the remaining entries. Also NULL-out bucket list to prevent possible double-free between hashmap__clear() and hashmap__free(). Running test_progs-asan flavor clearly showed this problem. Repor

[RFC PATCH v2 08/23] perf metrics: fix parse errors in power8 metrics

2020-05-07 Thread Ian Rogers
Mismatched parentheses. Fixes: dd81eafacc52 (perf vendor events power8: Cpi_breakdown & estimated_dcache_miss_cpi metrics) Reviewed-by: Paul A. Clarke Signed-off-by: Ian Rogers --- tools/perf/pmu-events/arch/powerpc/power8/metrics.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) dif

[RFC PATCH v2 03/23] perf metrics: fix parse errors in skylake metrics

2020-05-07 Thread Ian Rogers
Remove over escaping with \\. Fixes: fd5500989c8f (perf vendor events intel: Update metrics from TMAM 3.5) Signed-off-by: Ian Rogers --- tools/perf/pmu-events/arch/x86/skylakex/skx-metrics.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/perf/pmu-events/arch/x86

Re: [patch V4 part 2 05/18] x86/entry: Move irq tracing on syscall entry to C-code

2020-05-07 Thread Thomas Gleixner
Alexandre Chartre writes: > On 5/5/20 3:41 PM, Thomas Gleixner wrote: >> -/* >> - * User mode is traced as though IRQs are on, and the interrupt >> - * gate turned them off. >> - */ >> -TRACE_IRQS_OFF >> - >> movq%rsp, %rdi >> calldo_int80_syscall_32 >> .Lsy

[RFC PATCH v2 11/23] perf parse-events: expand add PMU error/verbose messages

2020-05-07 Thread Ian Rogers
On a CPU like skylakex an uncore_iio_0 PMU may alias with uncore_iio_free_running_0. The latter PMU doesn't support fc_mask as a parameter and so pmu_config_term fails. Typically parse_events_add_pmu is called in a loop where if one alias succeeds errors are ignored, however, if multiple errors occ

[PATCH V13 1/3] MAINTAINERS: da7280 updates to the Dialog Semiconductor search terms

2020-05-07 Thread Roy Im
This patch adds the da7280 bindings doc and driver to the Dialog Semiconductor support list. Signed-off-by: Roy Im --- v13: No changes. v12: Corrected file list order. v11: No changes. v10: No changes. v9: No changes. v8: No changes. v7: No changes. v6: No changes. v5: No changes. v4: No changes

[PATCH V13 3/3] Input: new da7280 haptic driver

2020-05-07 Thread Roy Im
Adds support for the Dialog DA7280 LRA/ERM Haptic Driver with multiple mode and integrated waveform memory and wideband support. It communicates via an I2C bus to the device. Signed-off-by: Roy Im --- v13: - Updated some conditions in pwm function and alignments. v12: No changes. v11:

Re: [RFC PATCH 0/7] Share events between metrics

2020-05-07 Thread Ian Rogers
On Thu, May 7, 2020 at 6:49 AM Jiri Olsa wrote: > > On Thu, May 07, 2020 at 01:14:29AM -0700, Ian Rogers wrote: > > Metric groups contain metrics. Metrics create groups of events to > > ideally be scheduled together. Often metrics refer to the same events, > > for example, a cache hit and cache mi

[RFC PATCH v2 04/23] perf expr: allow ',' to be an other token

2020-05-07 Thread Ian Rogers
Corrects parse errors in expr__find_other of expressions with min. Signed-off-by: Ian Rogers --- tools/perf/util/expr.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/expr.y b/tools/perf/util/expr.y index cd17486c1c5d..54260094b947 100644 --- a/tools/perf/uti

[PATCH V13 2/3] dt-bindings: input: Add document bindings for DA7280

2020-05-07 Thread Roy Im
Add device tree binding information for DA7280 haptic driver. Example bindings for DA7280 are added. Reviewed-by: Rob Herring . Signed-off-by: Roy Im --- v13: No changes. v12: No changes. v11: No changes. v10: No changes. v9: No changes. v8: Updated descriptions for new properties. v7: No chang

[PATCH V13 0/3] da7280: haptic driver submission

2020-05-07 Thread Roy Im
This patch adds support for the Dialog DA7280 Haptic driver IC. In this patch set the following is provided: [PATCH V13 1/3] MAINTAINERS file update for DA7280 [PATCH V13 2/3] DA7280 DT Binding [PATCH V13 3/3] DA7280 Driver This patch applies against linux-next and v5.7-rc4 Thank you, Roy Im, D

[RFC PATCH v2 05/23] perf expr: increase max other

2020-05-07 Thread Ian Rogers
Large metrics such as Branch_Misprediction_Cost_SMT on x86 broadwell need more space. Signed-off-by: Ian Rogers --- tools/perf/util/expr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/expr.h b/tools/perf/util/expr.h index 87d627bb699b..40fc452b0f2b 100644 -

Re: [PATCH] slub: limit count of partial slabs scanned to gather statistics

2020-05-07 Thread Vlastimil Babka
On 5/7/20 7:25 AM, Konstantin Khlebnikov wrote: > On 06/05/2020 14.56, Vlastimil Babka wrote: >> On 5/4/20 6:07 PM, Konstantin Khlebnikov wrote: >>> To get exact count of free and used objects slub have to scan list of >>> partial slabs. This may take at long time. Scanning holds spinlock and >>> b

[tip: x86/timers] x86/delay: Introduce TPAUSE delay

2020-05-07 Thread tip-bot2 for Kyung Min Park
The following commit has been merged into the x86/timers branch of tip: Commit-ID: cec5f268cd02d25d2d74807843d8ae0292fe0fb7 Gitweb: https://git.kernel.org/tip/cec5f268cd02d25d2d74807843d8ae0292fe0fb7 Author:Kyung Min Park AuthorDate:Fri, 24 Apr 2020 12:37:56 -07:00 Committ

[tip: x86/timers] x86/delay: Refactor delay_mwaitx() for TPAUSE support

2020-05-07 Thread tip-bot2 for Kyung Min Park
The following commit has been merged into the x86/timers branch of tip: Commit-ID: 46f90c7aad62be1af76588108c730d826308a801 Gitweb: https://git.kernel.org/tip/46f90c7aad62be1af76588108c730d826308a801 Author:Kyung Min Park AuthorDate:Fri, 24 Apr 2020 12:37:55 -07:00 Committ

[tip: x86/timers] x86/delay: Preparatory code cleanup

2020-05-07 Thread tip-bot2 for Thomas Gleixner
The following commit has been merged into the x86/timers branch of tip: Commit-ID: e8824890249355656968d8846908a313fe231f11 Gitweb: https://git.kernel.org/tip/e8824890249355656968d8846908a313fe231f11 Author:Thomas Gleixner AuthorDate:Fri, 24 Apr 2020 12:37:54 -07:00 Commit

Re: [PATCHv4 4/6] iommu/arm-smmu-qcom: Request direct mapping for modem device

2020-05-07 Thread Sibi Sankar
Hey WIll, On 2020-05-07 18:32, Will Deacon wrote: On Tue, Apr 21, 2020 at 12:03:52AM +0530, Sai Prakash Ranjan wrote: From: Sibi Sankar The Q6 modem sub-system has direct access to DDR through memnoc. Also SMMU is not expected to provide access control/translation for these SIDs (sandboxing o

Re: [patch V4 part 2 02/18] x86/entry/32: Move non entry code into .text section

2020-05-07 Thread Thomas Gleixner
Alexandre Chartre writes: > On 5/5/20 3:41 PM, Thomas Gleixner wrote: >> /* >>* %eax: prev task >>* %edx: next task >> - */ >> +*/ > > Misaligned comment end, this line shouldn't change. Done.

Re: [patch V4 part 2 04/18] x86/entry/common: Protect against instrumentation

2020-05-07 Thread Thomas Gleixner
Alexandre Chartre writes: >> @@ -310,10 +336,10 @@ static void syscall_slow_exit_work(struc >> /* >>* Does a 32-bit syscall. Called with IRQs on in CONTEXT_KERNEL. Does >>* all entry and exit work and returns with IRQs off. This function is >> - * extremely hot in workloads that use i

Re: [PATCH] kgdb: Fix spurious true from in_dbg_master()

2020-05-07 Thread Daniel Thompson
On Thu, May 07, 2020 at 09:39:30AM +0100, Will Deacon wrote: > On Wed, May 06, 2020 at 05:42:23PM +0100, Daniel Thompson wrote: > > Currently there is a small window where a badly timed migration could > > cause in_dbg_master() to spuriously return true. Specifically if we > > migrate to a new core

Re: [PATCH 0/1] Add USB role switch to tps6598x

2020-05-07 Thread Bryan O'Donoghue
On 07/05/2020 14:41, Andy Shevchenko wrote: On Thu, May 07, 2020 at 01:45:55PM +0100, Bryan O'Donoghue wrote: This patch - adds USB role switching to the TI TPS6598x. It has been tested out with a ChipIdea controller inside a Qualcomm MSM8939. Right now you need to have configured the TPS firmw

Re: [patch V4 part 2 10/18] x86/entry/64: Check IF in __preempt_enable_notrace() thunk

2020-05-07 Thread Alexandre Chartre
On 5/5/20 3:41 PM, Thomas Gleixner wrote: The preempt_enable_notrace() ASM thunk is called from tracing, entry code RCU and other places which are already in or going to be in the noinstr section which protects sensitve code from being instrumented. typo: "sensitve" alex. Calls out of the

Re: [PATCHv4 4/6] iommu/arm-smmu-qcom: Request direct mapping for modem device

2020-05-07 Thread Will Deacon
On Thu, May 07, 2020 at 07:44:01PM +0530, Sibi Sankar wrote: > On 2020-05-07 18:32, Will Deacon wrote: > > On Tue, Apr 21, 2020 at 12:03:52AM +0530, Sai Prakash Ranjan wrote: > > > From: Sibi Sankar > > > > > > The Q6 modem sub-system has direct access to DDR through memnoc. > > > Also SMMU is no

[PATCH] e1000e: Disable TSO for buffer overrun workaround

2020-05-07 Thread Kai-Heng Feng
Commit b10effb92e27 ("e1000e: fix buffer overrun while the I219 is processing DMA transactions") imposes roughly 30% performance penalty. The commit log states that "Disabling TSO eliminates performance loss for TCP traffic without a noticeable impact on CPU performance", so let's disable TSO by d

Re: [PATCH] arm64/cpufeature: Verify KVM capabilities during CPU hotplug

2020-05-07 Thread Anshuman Khandual
On 05/07/2020 03:50 PM, Marc Zyngier wrote: > On Thu, 7 May 2020 11:49:47 +0530 > Anshuman Khandual wrote: > > Hi Anshuman, Hi Marc, > >> This validates KVM capabilities like VMID width, IPA range for hotplug CPU >> against system finalized values. While here, it factors out get_vmid_bits()

[PATCH AUTOSEL 5.6 07/50] vfio: avoid possible overflow in vfio_iommu_type1_pin_pages

2020-05-07 Thread Sasha Levin
From: Yan Zhao [ Upstream commit 0ea971f8dcd6dee78a9a30ea70227cf305f11ff7 ] add parentheses to avoid possible vaddr overflow. Fixes: a54eb55045ae ("vfio iommu type1: Add support for mediated devices") Signed-off-by: Yan Zhao Signed-off-by: Alex Williamson Signed-off-by: Sasha Levin --- driv

[PATCH AUTOSEL 5.6 06/50] nfs: Fix potential posix_acl refcnt leak in nfs3_set_acl

2020-05-07 Thread Sasha Levin
From: Andreas Gruenbacher [ Upstream commit 7648f939cb919b9d15c21fff8cd9eba908d595dc ] nfs3_set_acl keeps track of the acl it allocated locally to determine if an acl needs to be released at the end. This results in a memory leak when the function allocates an acl as well as a default acl. Fix

[PATCH AUTOSEL 5.6 05/50] dmaengine: xilinx_dma: Add missing check for empty list

2020-05-07 Thread Sasha Levin
From: Sebastian von Ohr [ Upstream commit b269426011bcfd97b7c3101abfe1a99147b6f40b ] The DMA transfer might finish just after checking the state with dma_cookie_status, but before the lock is acquired. Not checking for an empty list in xilinx_dma_tx_status may result in reading random data or da

[PATCH AUTOSEL 5.6 01/50] RDMA/mlx4: Initialize ib_spec on the stack

2020-05-07 Thread Sasha Levin
From: Alaa Hleihel [ Upstream commit c08cfb2d8d78bfe81b37cc6ba84f0875bddd0d5c ] Initialize ib_spec on the stack before using it, otherwise we will have garbage values that will break creating default rules with invalid parsing error. Fixes: a37a1a428431 ("IB/mlx4: Add mechanism to support flow

[PATCH AUTOSEL 5.6 23/50] RDMA/core: Fix race between destroy and release FD object

2020-05-07 Thread Sasha Levin
From: Leon Romanovsky [ Upstream commit f0abc761bbb9418876cc4d1ebc473e4ea6352e42 ] The call to ->lookup_put() was too early and it caused an unlock of the read/write protection of the uobject after the FD was put. This allows a race: CPU1 CPU2 rdma_lookup_p

[PATCH AUTOSEL 5.6 15/50] RDMA/core: Fix overwriting of uobj in case of error

2020-05-07 Thread Sasha Levin
From: Leon Romanovsky [ Upstream commit 83a2670212215a569ed133efc10c92055c96cc8c ] In case of failure to get file, the uobj is overwritten and causes to supply bad pointer as an input to uverbs_uobject_put(). BUG: KASAN: null-ptr-deref in atomic_fetch_sub include/asm-generic/atomic-instrumen

[PATCH AUTOSEL 5.6 21/50] drm/amd/display: blank dp stream before re-train the link

2020-05-07 Thread Sasha Levin
From: Xiaodong Yan [ Upstream commit 718a5569b6fa6e1f49f1ae76a3c18acb4ddb74f1 ] [Why] When link loss happened, monitor can not light up if only re-train the link. [How] Blank all the DP streams on this link before re-train the link, and then unblank the stream Signed-off-by: Xiaodong Yan Revi

[PATCH AUTOSEL 5.6 40/50] ALSA: opti9xx: shut up gcc-10 range warning

2020-05-07 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit 5ce00760a84848d008554c693ceb6286f4d9c509 ] gcc-10 points out a few instances of suspicious integer arithmetic leading to value truncation: sound/isa/opti9xx/opti92x-ad1848.c: In function 'snd_opti9xx_configure': sound/isa/opti9xx/opti92x-ad1848.c:322:43: er

[PATCH AUTOSEL 5.6 41/50] i2c: aspeed: Avoid i2c interrupt status clear race condition.

2020-05-07 Thread Sasha Levin
From: ryan_chen [ Upstream commit c926c87b8e36dcc0ea5c2a0a0227ed4f32d0516a ] In AST2600 there have a slow peripheral bus between CPU and i2c controller. Therefore GIC i2c interrupt status clear have delay timing, when CPU issue write clear i2c controller interrupt status. To avoid this issue, th

[PATCH AUTOSEL 5.4 01/35] RDMA/mlx4: Initialize ib_spec on the stack

2020-05-07 Thread Sasha Levin
From: Alaa Hleihel [ Upstream commit c08cfb2d8d78bfe81b37cc6ba84f0875bddd0d5c ] Initialize ib_spec on the stack before using it, otherwise we will have garbage values that will break creating default rules with invalid parsing error. Fixes: a37a1a428431 ("IB/mlx4: Add mechanism to support flow

[PATCH AUTOSEL 5.6 35/50] drm/amd/display: check if REFCLK_CNTL register is present

2020-05-07 Thread Sasha Levin
From: Dmytro Laktyushkin [ Upstream commit 3159d41db3a04330c31ece32f8b29752fc114848 ] Check before programming the register since it isn't present on all IPs using this code. Signed-off-by: Dmytro Laktyushkin Reviewed-by: Eric Bernstein Acked-by: Aurabindo Pillai Signed-off-by: Alex Deucher

[PATCH AUTOSEL 5.6 46/50] iommu/amd: Fix legacy interrupt remapping for x2APIC-enabled system

2020-05-07 Thread Sasha Levin
From: Suravee Suthikulpanit [ Upstream commit b74aa02d7a30ee5e262072a7d6e8deff10b37924 ] Currently, system fails to boot because the legacy interrupt remapping mode does not enable 128-bit IRTE (GA), which is required for x2APIC support. Fix by using AMD_IOMMU_GUEST_IR_LEGACY_GA mode when booti

[PATCH AUTOSEL 5.6 43/50] block: remove the bd_openers checks in blk_drop_partitions

2020-05-07 Thread Sasha Levin
From: Christoph Hellwig [ Upstream commit 10c70d95c0f2f9a6f52d0e33243d2877370cef51 ] When replacing the bd_super check with a bd_openers I followed a logical conclusion, which turns out to be utterly wrong. When a block device has bd_super sets it has a mount file system on it (although not eve

[PATCH AUTOSEL 5.6 29/50] i2c: iproc: generate stop event for slave writes

2020-05-07 Thread Sasha Levin
From: Rayagonda Kokatanur [ Upstream commit 068143a8195fb0fdeea1f3ca430b3db0f6d04a53 ] When slave status is I2C_SLAVE_RX_END, generate I2C_SLAVE_STOP event to i2c_client. Fixes: c245d94ed106 ("i2c: iproc: Add multi byte read-write support for slave mode") Signed-off-by: Rayagonda Kokatanur Si

[PATCH AUTOSEL 5.4 11/35] dmaengine: pch_dma.c: Avoid data race between probe and irq handler

2020-05-07 Thread Sasha Levin
From: Madhuparna Bhowmik [ Upstream commit 2e45676a4d33af47259fa186ea039122ce263ba9 ] pd->dma.dev is read in irq handler pd_irq(). However, it is set to pdev->dev after request_irq(). Therefore, set pd->dma.dev to pdev->dev before request_irq() to avoid data race between pch_dma_probe() and pd_i

[PATCH AUTOSEL 4.19 11/20] vfio/type1: Fix VA->PA translation for PFNMAP VMAs in vaddr_get_pfn()

2020-05-07 Thread Sasha Levin
From: Sean Christopherson [ Upstream commit 5cbf3264bc715e9eb384e2b68601f8c02bb9a61d ] Use follow_pfn() to get the PFN of a PFNMAP VMA instead of assuming that vma->vm_pgoff holds the base PFN of the VMA. This fixes a bug where attempting to do VFIO_IOMMU_MAP_DMA on an arbitrary PFNMAP'd region

[PATCH AUTOSEL 5.4 21/35] dmaengine: dmatest: Fix iteration non-stop logic

2020-05-07 Thread Sasha Levin
From: Andy Shevchenko [ Upstream commit b9f960201249f20deea586b4ec814669b4c6b1c0 ] Under some circumstances, i.e. when test is still running and about to time out and user runs, for example, grep -H . /sys/module/dmatest/parameters/* the iterations parameter is not respected and test i

[PATCH AUTOSEL 5.4 22/35] i2c: iproc: generate stop event for slave writes

2020-05-07 Thread Sasha Levin
From: Rayagonda Kokatanur [ Upstream commit 068143a8195fb0fdeea1f3ca430b3db0f6d04a53 ] When slave status is I2C_SLAVE_RX_END, generate I2C_SLAVE_STOP event to i2c_client. Fixes: c245d94ed106 ("i2c: iproc: Add multi byte read-write support for slave mode") Signed-off-by: Rayagonda Kokatanur Si

[PATCH AUTOSEL 5.4 13/35] dmaengine: mmp_tdma: Reset channel error on release

2020-05-07 Thread Sasha Levin
From: Lubomir Rintel [ Upstream commit 0c89446379218698189a47871336cb30286a7197 ] When a channel configuration fails, the status of the channel is set to DEV_ERROR so that an attempt to submit it fails. However, this status sticks until the heat end of the universe, making it impossible to recov

[PATCH AUTOSEL 4.19 15/20] dmaengine: dmatest: Fix iteration non-stop logic

2020-05-07 Thread Sasha Levin
From: Andy Shevchenko [ Upstream commit b9f960201249f20deea586b4ec814669b4c6b1c0 ] Under some circumstances, i.e. when test is still running and about to time out and user runs, for example, grep -H . /sys/module/dmatest/parameters/* the iterations parameter is not respected and test i

[PATCH AUTOSEL 5.4 26/35] SUNRPC: defer slow parts of rpc_free_client() to a workqueue.

2020-05-07 Thread Sasha Levin
From: NeilBrown [ Upstream commit 7c4310ff56422ea43418305d22bbc5fe19150ec4 ] The rpciod workqueue is on the write-out path for freeing dirty memory, so it is important that it never block waiting for memory to be allocated - this can lead to a deadlock. rpc_execute() - which is often called by

[PATCH AUTOSEL 4.14 04/16] scsi: target/iblock: fix WRITE SAME zeroing

2020-05-07 Thread Sasha Levin
From: David Disseldorp [ Upstream commit 1d2ff149b263c9325875726a7804a0c75ef7112e ] SBC4 specifies that WRITE SAME requests with the UNMAP bit set to zero "shall perform the specified write operation to each LBA specified by the command". Commit 2237498f0b5c ("target/iblock: Convert WRITE_SAME

[PATCH AUTOSEL 5.4 35/35] iommu/qcom: Fix local_base status check

2020-05-07 Thread Sasha Levin
From: Tang Bin [ Upstream commit b52649aee6243ea661905bdc5fbe28cc5f6dec76 ] The function qcom_iommu_device_probe() does not perform sufficient error checking after executing devm_ioremap_resource(), which can result in crashes if a critical error path is encountered. Fixes: 0ae349a0f33f ("iommu

[PATCH AUTOSEL 4.19 06/20] scsi: target/iblock: fix WRITE SAME zeroing

2020-05-07 Thread Sasha Levin
From: David Disseldorp [ Upstream commit 1d2ff149b263c9325875726a7804a0c75ef7112e ] SBC4 specifies that WRITE SAME requests with the UNMAP bit set to zero "shall perform the specified write operation to each LBA specified by the command". Commit 2237498f0b5c ("target/iblock: Convert WRITE_SAME

[PATCH AUTOSEL 5.4 25/35] drm/amd/powerplay: avoid using pm_en before it is initialized revised

2020-05-07 Thread Sasha Levin
From: Tiecheng Zhou [ Upstream commit 690ae30be163d5262feae01335b2a6f30569e5aa ] hwmgr->pm_en is initialized at hwmgr_hw_init. during amdgpu_device_init, there is amdgpu_asic_reset that calls to soc15_asic_reset (for V320 usecase, Vega10 asic), in which: 1) soc15_asic_reset_method calls to pp_g

[PATCH AUTOSEL 4.19 02/20] nfs: Fix potential posix_acl refcnt leak in nfs3_set_acl

2020-05-07 Thread Sasha Levin
From: Andreas Gruenbacher [ Upstream commit 7648f939cb919b9d15c21fff8cd9eba908d595dc ] nfs3_set_acl keeps track of the acl it allocated locally to determine if an acl needs to be released at the end. This results in a memory leak when the function allocates an acl as well as a default acl. Fix

[PATCH AUTOSEL 4.19 03/20] vfio: avoid possible overflow in vfio_iommu_type1_pin_pages

2020-05-07 Thread Sasha Levin
From: Yan Zhao [ Upstream commit 0ea971f8dcd6dee78a9a30ea70227cf305f11ff7 ] add parentheses to avoid possible vaddr overflow. Fixes: a54eb55045ae ("vfio iommu type1: Add support for mediated devices") Signed-off-by: Yan Zhao Signed-off-by: Alex Williamson Signed-off-by: Sasha Levin --- driv

[PATCH AUTOSEL 5.4 17/35] RDMA/core: Fix race between destroy and release FD object

2020-05-07 Thread Sasha Levin
From: Leon Romanovsky [ Upstream commit f0abc761bbb9418876cc4d1ebc473e4ea6352e42 ] The call to ->lookup_put() was too early and it caused an unlock of the read/write protection of the uobject after the FD was put. This allows a race: CPU1 CPU2 rdma_lookup_p

[PATCH AUTOSEL 5.4 33/35] arm64: vdso: Add -fasynchronous-unwind-tables to cflags

2020-05-07 Thread Sasha Levin
From: Vincenzo Frascino [ Upstream commit 1578e5d03112e3e9d37e1c4d95b6dfb734c73955 ] On arm64 linux gcc uses -fasynchronous-unwind-tables -funwind-tables by default since gcc-8, so now the de facto platform ABI is to allow unwinding from async signal handlers. However on bare metal targets (aar

[PATCH AUTOSEL 5.4 24/35] dmaengine: dmatest: Fix process hang when reading 'wait' parameter

2020-05-07 Thread Sasha Levin
From: Andy Shevchenko [ Upstream commit aa72f1d20ee973d68f26d46fce5e1cf6f9b7e1ca ] If we do % echo 1 > /sys/module/dmatest/parameters/run [ 115.851124] dmatest: Could not start test, no channels configured % echo dma8chan7 > /sys/module/dmatest/parameters/channel [ 127.563872] dmates

[PATCH AUTOSEL 5.4 10/35] RDMA/core: Prevent mixed use of FDs between shared ufiles

2020-05-07 Thread Sasha Levin
From: Leon Romanovsky [ Upstream commit 0fb00941dc63990a10951146df216fc7b0e20bc2 ] FDs can only be used on the ufile that created them, they cannot be mixed to other ufiles. We are lacking a check to prevent it. BUG: KASAN: null-ptr-deref in atomic64_sub_and_test include/asm-generic/atomic-i

[PATCH AUTOSEL 5.4 32/35] i2c: aspeed: Avoid i2c interrupt status clear race condition.

2020-05-07 Thread Sasha Levin
From: ryan_chen [ Upstream commit c926c87b8e36dcc0ea5c2a0a0227ed4f32d0516a ] In AST2600 there have a slow peripheral bus between CPU and i2c controller. Therefore GIC i2c interrupt status clear have delay timing, when CPU issue write clear i2c controller interrupt status. To avoid this issue, th

[PATCH AUTOSEL 4.14 05/16] RDMA/mlx5: Set GRH fields in query QP on RoCE

2020-05-07 Thread Sasha Levin
From: Aharon Landau [ Upstream commit 2d7e3ff7b6f2c614eb21d0dc348957a47eaffb57 ] GRH fields such as sgid_index, hop limit, et. are set in the QP context when QP is created/modified. Currently, when query QP is performed, we fill the GRH fields only if the GRH bit is set in the QP context, but t

[PATCH AUTOSEL 4.14 10/16] cpufreq: intel_pstate: Only mention the BIOS disabling turbo mode once

2020-05-07 Thread Sasha Levin
From: Chris Wilson [ Upstream commit 8c539776ac83c0857395e1ccc9c6b516521a2d32 ] Make a note of the first time we discover the turbo mode has been disabled by the BIOS, as otherwise we complain every time we try to update the mode. Signed-off-by: Chris Wilson Signed-off-by: Rafael J. Wysocki S

[PATCH AUTOSEL 4.14 16/16] iommu/qcom: Fix local_base status check

2020-05-07 Thread Sasha Levin
From: Tang Bin [ Upstream commit b52649aee6243ea661905bdc5fbe28cc5f6dec76 ] The function qcom_iommu_device_probe() does not perform sufficient error checking after executing devm_ioremap_resource(), which can result in crashes if a critical error path is encountered. Fixes: 0ae349a0f33f ("iommu

[PATCH AUTOSEL 4.9 08/11] ALSA: hda/hdmi: fix race in monitor detection during probe

2020-05-07 Thread Sasha Levin
From: Kai Vehmanen [ Upstream commit ca76282b6faffc83601c25bd2a95f635c03503ef ] A race exists between build_pcms() and build_controls() phases of codec setup. Build_pcms() sets up notifier for jack events. If a monitor event is received before build_controls() is run, the initial jack state is l

[PATCH AUTOSEL 4.9 01/11] RDMA/mlx4: Initialize ib_spec on the stack

2020-05-07 Thread Sasha Levin
From: Alaa Hleihel [ Upstream commit c08cfb2d8d78bfe81b37cc6ba84f0875bddd0d5c ] Initialize ib_spec on the stack before using it, otherwise we will have garbage values that will break creating default rules with invalid parsing error. Fixes: a37a1a428431 ("IB/mlx4: Add mechanism to support flow

Re: [PATCH -next] dm mpath: Remove unused variable ret

2020-05-07 Thread Mike Snitzer
On Thu, May 07 2020 at 8:26am -0400, Samuel Zou wrote: > This patch fixes below warning reported by coccicheck: > > drivers/md/dm-historical-service-time.c:240:14-16: Unneeded variable: "sz". > Return "0" on line 261 > > Reported-by: Hulk Robot > Signed-off-by: Samuel Zou Nack. DMEMIT() u

[PATCH AUTOSEL 4.9 05/11] vfio/type1: Fix VA->PA translation for PFNMAP VMAs in vaddr_get_pfn()

2020-05-07 Thread Sasha Levin
From: Sean Christopherson [ Upstream commit 5cbf3264bc715e9eb384e2b68601f8c02bb9a61d ] Use follow_pfn() to get the PFN of a PFNMAP VMA instead of assuming that vma->vm_pgoff holds the base PFN of the VMA. This fixes a bug where attempting to do VFIO_IOMMU_MAP_DMA on an arbitrary PFNMAP'd region

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