[PATCH 05/24] tools headers uapi: Sync asm-generic/mman-common.h with the kernel

2019-10-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To pick the changes from: 1a4e58cce84e ("mm: introduce MADV_PAGEOUT") 9c276cc65a58 ("mm: introduce MADV_COLD") That result in these changes in the tools: $ tools/perf/trace/beauty/madvise_behavior.sh > before $ cp include/uapi/asm-generic/mman-common.h t

[PATCH 03/24] perf docs: Allow man page date to be specified

2019-10-01 Thread Arnaldo Carvalho de Melo
From: Ian Rogers With this change if a perf_date parameter is provided to asciidoc then it will override the default date written to the man page metadata. Without this change, or if the perf_date isn't specified, then the current date is written to the metadata. Having this parameter allows th

[PATCH 11/24] perf vendor events s390: Use s390 machine name instead of type 8561

2019-10-01 Thread Arnaldo Carvalho de Melo
From: Thomas Richter In the pmu-events directory for JSON file definitions use the official machine name IBM z15 instead of machine type number 8561. This is consistent with previous machines. Signed-off-by: Thomas Richter Cc: Heiko Carstens Cc: Vasily Gorbik Link: http://lore.kernel.org/lkml

[PATCH 10/24] perf vendor events s390: Add JSON transaction for machine type 8561

2019-10-01 Thread Arnaldo Carvalho de Melo
From: Thomas Richter Add s390 transaction counter definition for machine 8561. This is the same file as for the predecessor machine. Fixes: 6e67d77d673d ("perf vendor events s390: Add JSON files for machine type 8561") Signed-off-by: Thomas Richter Cc: Heiko Carstens Cc: Vasily Gorbik Link:

[PATCH 06/24] tools headers uapi: Sync linux/usbdevice_fs.h with the kernel sources

2019-10-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To pick up the changes from: 4ed3350539aa ("USB: usbfs: Add a capability flag for runtime suspend") 7794f486ed0b ("usbfs: Add ioctls for runtime power management") This triggers these changes in the kernel sources, automagically supporting these new ioctls in

[PATCH 12/24] perf map: Fix overlapped map handling

2019-10-01 Thread Arnaldo Carvalho de Melo
From: Steve MacLean Whenever an mmap/mmap2 event occurs, the map tree must be updated to add a new entry. If a new map overlaps a previous map, the overlapped section of the previous map is effectively unmapped, but the non-overlapping sections are still valid. maps__fixup_overlappings() is resp

[PATCH 20/24] perf annotate: Fix the signedness of failure returns

2019-10-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Callers of symbol__annotate() expect a errno value or some other extended error value range in symbol__strerror_disassemble() to convert to a proper error string, fix it when propagating a failure to find the arch specific annotation routines via arch__find(arch_nam

[PATCH 21/24] perf annotate: Propagate the symbol__annotate() error return

2019-10-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We were just returning -1 in symbol__annotate() when symbol__annotate() failed, propagate its error as it is used later to pass to symbol__strerror_disassemble() to present a error message to the user, that in some cases were getting: "Invalid -1 error code" Fix

[PATCH 19/24] perf annotate: Propagate perf_env__arch() error

2019-10-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The callers of symbol__annotate2() use symbol__strerror_disassemble() to convert its failure returns into a human readable string, so propagate error values from functions it calls, starting with perf_env__arch() that when fails the right thing to do is to look at '

[PATCH 08/24] tools headers kvm: Sync kvm headers with the kernel sources

2019-10-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To pick the changes in: 200824f55eef ("KVM: s390: Disallow invalid bits in kvm_valid_regs and kvm_dirty_regs") 4a53d99dd0c2 ("KVM: VMX: Introduce exit reason for receiving INIT signal on guest-mode") 7396d337cfad ("KVM: x86: Return to userspace with interna

[PATCH 07/24] tools headers uapi: Sync linux/fs.h with the kernel sources

2019-10-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To pick the changes from: 78a1b96bcf7a ("fscrypt: add FS_IOC_REMOVE_ENCRYPTION_KEY_ALL_USERS ioctl") 23c688b54016 ("fscrypt: allow unprivileged users to add/remove keys for v2 policies") 5dae460c2292 ("fscrypt: v2 encryption policy support") 5a7e29924dac (

[PATCH 01/24] libsubcmd: Make _FORTIFY_SOURCE defines dependent on the feature

2019-10-01 Thread Arnaldo Carvalho de Melo
From: Ian Rogers Unconditionally defining _FORTIFY_SOURCE can break tools that don't work with it, such as memory sanitizers: https://github.com/google/sanitizers/wiki/AddressSanitizer#faq Fixes: 4b6ab94eabe4 ("perf subcmd: Create subcmd library") Signed-off-by: Ian Rogers Cc: Alexander Shis

[PATCH 13/24] perf inject jit: Fix JIT_CODE_MOVE filename

2019-10-01 Thread Arnaldo Carvalho de Melo
From: Steve MacLean During perf inject --jit, JIT_CODE_MOVE records were injecting MMAP records with an incorrect filename. Specifically it was missing the ".so" suffix. Further the JIT_CODE_LOAD record were silently truncating the jr->load.code_index field to 32 bits before generating the filen

Re: [PATCH] PCI:cadence:Driver refactored to use as a core library.

2019-10-01 Thread Kishon Vijay Abraham I
Hi Tom, On 30/09/19 10:12 PM, Tom Joseph wrote: > All the platform related APIs/Structures in the driver has been extracted > out to a separate file (pcie-cadence-plat.c). This will enable the > driver to be used as a core library, which could be used by other > platform drivers.Testing was don

Re: [PATCH 1/4] media: dvb-frontends: Use DIV_ROUND_CLOSEST directly to make it readable

2019-10-01 Thread Sean Young
Hi, On Fri, Sep 06, 2019 at 12:14:49AM +0800, zhong jiang wrote: > The kernel.h macro DIV_ROUND_CLOSEST performs the computation (x + d/2)/d > but is perhaps more readable. > > Signed-off-by: zhong jiang > --- > drivers/media/dvb-frontends/mt312.c | 2 +- > 1 file changed, 1 insertion(+), 1 del

INVESTMENT PROPOSAL.

2019-10-01 Thread Daouda Ali
It’s my pleasure to contact you through this media because I need an investment assistance in your country. However I have a profitable investment proposal with good interest to share with you, amounted the sum of (Twenty Eight Million Four Hundred Thousand United State Dollar ($28.400.000.00). If

[GIT PULL] perf/urgent improvements and fixes

2019-10-01 Thread Arnaldo Carvalho de Melo
el.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-urgent-for-mingo-5.4-20191001 for you to fetch changes up to 11aad897f6d1a28eae3b7e5b293647c522d65819: perf annotate: Don't return -1 for error when doing BPF disassembly (2019-09-30

[PATCH 24/24] perf annotate: Don't return -1 for error when doing BPF disassembly

2019-10-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Return errno when open_memstream() fails and add two new speciall error codes for when an invalid, non BPF file or one without BTF is passed to symbol__disassemble_bpf(), so that its callers can rely on symbol__strerror_disassemble() to convert that to a human reada

[PATCH 18/24] perf evsel: Fall back to global 'perf_env' in perf_evsel__env()

2019-10-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo I.e. if evsel->evlist or evsel->evlist->env isn't set, return the environment for the running machine, as that would be set if reading from a perf.data file. Cc: Adrian Hunter Cc: Jiri Olsa Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-uqq4grmhbi12rwb0lfp

[PATCH 14/24] perf docs: Correct and clarify jitdump spec

2019-10-01 Thread Arnaldo Carvalho de Melo
From: Steve MacLean Specification claims latest version of jitdump file format is 2. Current jit dump reading code treats 1 as the latest version. Correct spec to match code. The original language made it unclear the value to be written in the magic field. Revise language that the writer alway

[PATCH 15/24] perf script brstackinsn: Fix recovery from LBR/binary mismatch

2019-10-01 Thread Arnaldo Carvalho de Melo
From: Andi Kleen When the LBR data and the instructions in a binary do not match the loop printing instructions could get confused and print a long stream of bogus instructions. The problem was that if the instruction decoder cannot decode an instruction it ilen wasn't initialized, so the loop

[PATCH 22/24] perf annotate: Fix arch specific ->init() failure errors

2019-10-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo They are called from symbol__annotate() and to propagate errors that can help understand the problem make them return what symbol__strerror_disassemble() known, i.e. errno codes and other annotation specific errors in a special, out of errnos, range. Reported-by: R

[PATCH 16/24] perf jevents: Fix period for Intel fixed counters

2019-10-01 Thread Arnaldo Carvalho de Melo
From: Andi Kleen The Intel fixed counters use a special table to override the JSON information. During this override the period information from the JSON file got dropped, which results in inst_retired.any and similar running with frequency mode instead of a period. Just specify the expected pe

[PATCH 09/24] perf llvm: Don't access out-of-scope array

2019-10-01 Thread Arnaldo Carvalho de Melo
From: Ian Rogers The 'test_dir' variable is assigned to the 'release' array which is out-of-scope 3 lines later. Extend the scope of the 'release' array so that an out-of-scope array isn't accessed. Bug detected by clang's address sanitizer. Fixes: 07bc5c699a3d ("perf tools: Make fetch_kernel_

[PATCH 04/24] tools headers uapi: Sync drm/i915_drm.h with the kernel sources

2019-10-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To pick the change in: bf73fc0fa9cf ("drm/i915: Show support for accurate sw PMU busyness tracking") That don't result in any changes in tooling, just silences this perf build warning: Warning: Kernel ABI header at 'tools/include/uapi/drm/i915_drm.h' differs

[PATCH 23/24] perf annotate: Return appropriate error code for allocation failures

2019-10-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We should return errno or the annotation extra range understood by symbol__strerror_disassemble() instead of -1, fix it, returning ENOMEM instead. Reported-by: Russell King - ARM Linux admin Cc: Adrian Hunter Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Namhyung Ki

[PATCH 17/24] perf tools: Propagate get_cpuid() error

2019-10-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo For consistency, propagate the exact cause for get_cpuid() to have failed. Cc: Adrian Hunter Cc: Jiri Olsa Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-9ig269f7ktnhh99g4l15v...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/arch/

[PATCH 02/24] perf tests: Avoid raising SEGV using an obvious NULL dereference

2019-10-01 Thread Arnaldo Carvalho de Melo
From: Ian Rogers An optimized build such as: make -C tools/perf CLANG=1 CC=clang EXTRA_CFLAGS="-O3 will turn the dereference operation into a ud2 instruction, raising a SIGILL rather than a SIGSEGV. Use raise(..) for correctness and clarity. Similar issues were addressed in Numfor Mbiziwo-Ti

Re: [PATCH] ath9k_hw: fix uninitialized variable data

2019-10-01 Thread Kalle Valo
Denis Efremov wrote: > Currently, data variable in ar9003_hw_thermo_cal_apply() could be > uninitialized if ar9300_otp_read_word() will fail to read the value. > Initialize data variable with 0 to prevent an undefined behavior. This > will be enough to handle error case when ar9300_otp_read_word(

Re: [PATCH] Revert "Input: elantech - enable SMBus on new (2018+) systems"

2019-10-01 Thread Kai-Heng Feng
Hi Benjamin, > On Oct 1, 2019, at 15:08, Kai-Heng Feng wrote: > > This reverts commit 883a2a80f79ca5c0c105605fafabd1f3df99b34c. > > Apparently use dmi_get_bios_year() as manufacturing date isn't accurate > and this breaks older laptops with new BIOS update. > > So let's revert this patch. > >

[tip: ras/core] x86/mce: Add Zhaoxin LMCE support

2019-10-01 Thread tip-bot2 for Tony W Wang-oc
The following commit has been merged into the ras/core branch of tip: Commit-ID: 70f0c230031dfef3c9b3e37b2a8c18d3f7186fb2 Gitweb: https://git.kernel.org/tip/70f0c230031dfef3c9b3e37b2a8c18d3f7186fb2 Author:Tony W Wang-oc AuthorDate:Wed, 18 Sep 2019 14:19:33 +08:00 Committer

Re: [PATCH 14/15] mm: Align THP mappings for non-DAX

2019-10-01 Thread William Kucharski
> On Oct 1, 2019, at 4:45 AM, Kirill A. Shutemov wrote: > > On Tue, Sep 24, 2019 at 05:52:13PM -0700, Matthew Wilcox wrote: >> >> diff --git a/mm/huge_memory.c b/mm/huge_memory.c >> index cbe7d0619439..670a1780bd2f 100644 >> --- a/mm/huge_memory.c >> +++ b/mm/huge_memory.c >> @@ -563,8 +563,6

[tip: ras/core] x86/mce: Add Zhaoxin MCE support

2019-10-01 Thread tip-bot2 for Tony W Wang-oc
The following commit has been merged into the ras/core branch of tip: Commit-ID: 6e898d2bf67a82df0aa0c955adc9278faba9a635 Gitweb: https://git.kernel.org/tip/6e898d2bf67a82df0aa0c955adc9278faba9a635 Author:Tony W Wang-oc AuthorDate:Wed, 18 Sep 2019 14:19:30 +08:00 Committer

[tip: ras/core] x86/mce: Add Zhaoxin CMCI support

2019-10-01 Thread tip-bot2 for Tony W Wang-oc
The following commit has been merged into the ras/core branch of tip: Commit-ID: 5a3d56a034be9e8e87a6cb9ed3f2928184db1417 Gitweb: https://git.kernel.org/tip/5a3d56a034be9e8e87a6cb9ed3f2928184db1417 Author:Tony W Wang-oc AuthorDate:Wed, 18 Sep 2019 14:19:32 +08:00 Committer

Re: [PATCH] sched: Avoid spurious lock dependencies

2019-10-01 Thread Qian Cai
> On Oct 1, 2019, at 5:18 AM, Peter Zijlstra wrote: > > Does the below adequately describe the situation? Yes, looks fine.

[PATCH v9 1/8] media: v4l2-core: Implement v4l2_ctrl_new_std_compound

2019-10-01 Thread Ricardo Ribalda Delgado
From: Ricardo Ribalda Delgado Currently compound controls do not have a simple way of initializing its values. This results in ofuscated code with type_ops init. This patch introduces a new field on the control with the default value for the compound control that can be set with the brand new v4

[PATCH v9 8/8] media: imx214: Add new control with V4L2_CID_UNIT_CELL_SIZE

2019-10-01 Thread Ricardo Ribalda Delgado
According to the product brief, the unit cell size is 1120 nanometers^2. https://www.sony-semicon.co.jp/products_en/IS/sensor1/img/products/ProductBrief_IMX214_20150428.pdf Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/i2c/imx214.c | 9 + 1 file changed, 9 insertions(+) diff

[PATCH v9 5/8] media: add V4L2_CID_UNIT_CELL_SIZE control

2019-10-01 Thread Ricardo Ribalda Delgado
This control returns the unit cell size in nanometres. The struct provides the width and the height in separated fields to take into consideration asymmetric pixels and/or hardware binning. This control is required for automatic calibration of sensors/cameras. Reviewed-by: Philipp Zabel Signed-of

[PATCH v9 4/8] Documentation: media: Document V4L2_CTRL_TYPE_AREA

2019-10-01 Thread Ricardo Ribalda Delgado
A struct v4l2_area containing the width and the height of a rectangular area. Reviewed-by: Jacopo Mondi Reviewed-by: Philipp Zabel Signed-off-by: Ricardo Ribalda Delgado --- Documentation/media/uapi/v4l/vidioc-queryctrl.rst | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentatio

[PATCH v9 3/8] media: add V4L2_CTRL_TYPE_AREA control type

2019-10-01 Thread Ricardo Ribalda Delgado
From: Ricardo Ribalda Delgado This type contains the width and the height of a rectangular area. Reviewed-by: Jacopo Mondi Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/v4l2-core/v4l2-ctrls.c | 21 ++ include/media/v4l2-ctrls.h | 42 +++

[PATCH v9 6/8] Documentation: media: Describe V4L2_CID_UNIT_CELL_SIZE

2019-10-01 Thread Ricardo Ribalda Delgado
New control to pass to userspace the width/height of a pixel. Which is needed for calibration and lens selection. Reviewed-by: Philipp Zabel Signed-off-by: Ricardo Ribalda Delgado --- Documentation/media/uapi/v4l/ext-ctrls-image-source.rst | 9 + 1 file changed, 9 insertions(+) diff --

[PATCH v9 2/8] Documentation: v4l2_ctrl_new_std_compound

2019-10-01 Thread Ricardo Ribalda Delgado
From: Ricardo Ribalda Delgado Function for initializing compound controls with a default value. Suggested-by: Hans Verkuil Reviewed-by: Jacopo Mondi Signed-off-by: Ricardo Ribalda Delgado --- Documentation/media/kapi/v4l2-controls.rst | 9 + 1 file changed, 9 insertions(+) diff --gi

[PATCH v9 0/8] Implement UNIT_CELL_SIZE control

2019-10-01 Thread Ricardo Ribalda Delgado
UNIT_CELL_SIZE is a control that represents the size of a cell (pixel). We required a bit of boilerplate to add this control :) - New way to init compount controls - New control type Thanks to Hans, Jacopo and Philipp for your help. You might want to see the series at my github repository if need

[PATCH v9 7/8] media: v4l2-ctrl: Add new helper v4l2_ctrl_ptr_create

2019-10-01 Thread Ricardo Ribalda Delgado
This helper function simplifies the code by not needing a union v4l2_ctrl_ptr and an assignment every time we need to use a ctrl_ptr. Suggested-by: Hans Verkuil Signed-off-by: Ricardo Ribalda Delgado --- include/media/v4l2-ctrls.h | 12 1 file changed, 12 insertions(+) diff --git

Re: [PATCH v3] drm/amdgpu: fix multiple memory leaks in acp_hw_init

2019-10-01 Thread Markus Elfring
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c > @@ -184,12 +184,12 @@ static struct device *get_mfd_cell_dev(const char > *device_name, int r) … > + struct i2s_platform_data *i2s_pdata = NULL; … I propose to reconsider this update suggestion. > @@ -231,20 +231,21 @@ static int acp_hw_init

Re: [PATCH v4 1/2] rcu/tree: Add basic support for kfree_rcu() batching

2019-10-01 Thread Uladzislau Rezki
> > Hello, Joel. > > > > First of all thank you for improving it. I also noticed a high pressure > > on RCU-machinery during performing some vmalloc tests when kfree_rcu() > > flood occurred. Therefore i got rid of using kfree_rcu() there. > > Replying a bit late due to overseas conference travel

Re: [PATCH 14/15] mm: Align THP mappings for non-DAX

2019-10-01 Thread Kirill A. Shutemov
On Tue, Oct 01, 2019 at 05:21:26AM -0600, William Kucharski wrote: > > > > On Oct 1, 2019, at 4:45 AM, Kirill A. Shutemov wrote: > > > > On Tue, Sep 24, 2019 at 05:52:13PM -0700, Matthew Wilcox wrote: > >> > >> diff --git a/mm/huge_memory.c b/mm/huge_memory.c > >> index cbe7d0619439..670a1780b

Re: [PATCH] staging: rtl8723bs: Variable rf_type in function rtw_cfg80211_init_wiphy() could be uninitialized

2019-10-01 Thread Dan Carpenter
On Fri, Sep 27, 2019 at 05:06:51PM -0700, Yizhuo wrote: > In function rtw_cfg80211_init_wiphy(), local variable "rf_type" could > be uninitialized if function rtw_hal_get_hwreg() fails to initialize > it. However, this value is used in function rtw_cfg80211_init_ht_capab() > and used to decide the

[PATCH 0/2] perf tools: optional compile time test_attr__* depenency for perf-sys.h

2019-10-01 Thread Björn Töpel
This mini series makes it possible to disable the use of test_attr__* for perf-sys.h users outside perf. E.g., samples/bpf/ uses perf-sys.h as a syscall wrapper. Now a user can define HAVE_ATTR_TEST to zero to avoid this, and as a nice side-effect it also fixes the samples/bpf/ build. ;-) Björn T

Re: xenbus hang after userspace ctrl-c of xenstore-rm

2019-10-01 Thread Jürgen Groß
On 01.10.19 11:57, James Dingwall wrote: Hi, I have been investigating a problem where xenstore becomes unresponsive during domain shutdowns. My test script seems to trigger the problem but without definitively being the same. It is possible to replicate the issue in dom0 or a domU. If the te

[PATCH 2/2] samples/bpf: fix build by setting HAVE_ATTR_TEST to zero

2019-10-01 Thread Björn Töpel
From: Björn Töpel To remove that test_attr__{enabled/open} are used by perf-sys.h, we set HAVE_ATTR_TEST to zero. Signed-off-by: Björn Töpel --- samples/bpf/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile index 1d9be26b4edd..42b571cde177

[PATCH 1/2] perf tools: Make usage of test_attr__* optional for perf-sys.h

2019-10-01 Thread Björn Töpel
From: Björn Töpel For users of perf-sys.h outside perf, e.g. samples/bpf/bpf_load.c, it's convenient not to depend on test_attr__*. After commit 91854f9a077e ("perf tools: Move everything related to sys_perf_event_open() to perf-sys.h"), all users of perf-sys.h will depend on test_attr__enabled

Re: [PATCH v2 2/3] mm, page_owner: decouple freeing stack trace from debug_pagealloc

2019-10-01 Thread Kirill A. Shutemov
On Mon, Sep 30, 2019 at 11:39:34PM +0200, Vlastimil Babka wrote: > On 9/30/19 2:49 PM, Qian Cai wrote: > >> --- a/Documentation/admin-guide/kernel-parameters.txt > >> +++ b/Documentation/admin-guide/kernel-parameters.txt > >> @@ -3237,6 +3237,14 @@ > >>we can turn it on. > >>

Re: [PATCH v1 1/4] lib/vsprintf: Print time64_t in human readable format

2019-10-01 Thread Andy Shevchenko
On Mon, Sep 30, 2019 at 10:08:09PM +0200, Alexandre Belloni wrote: > On 26/07/2019 16:20:37+0300, Andy Shevchenko wrote: > > On Thu, Jan 10, 2019 at 10:58:58PM +0100, Alexandre Belloni wrote: > > > On 08/01/2019 16:25:28+0100, Petr Mladek wrote: > > > > On Fri 2019-01-04 21:30:06, Andy Shevchenko w

Re: [PATCH] sched: Avoid spurious lock dependencies

2019-10-01 Thread Srikar Dronamraju
> Subject: sched: Avoid spurious lock dependencies > > While seemingly harmless, __sched_fork() does hrtimer_init(), which, > when DEBUG_OBJETS, can end up doing allocations. > NIT: s/DEBUG_OBJETS/DEBUG_OBJECTS > diff --git a/kernel/sched/core.c b/kernel/sched/core.c > index 7880f4f64d0e..1832f

Re: [PATCH v2 2/4] sched/fair: Move active balance logic to its own function

2019-10-01 Thread Srikar Dronamraju
> +unlock: > + raw_spin_unlock_irqrestore(&busiest->lock, flags); > + > + if (status == started) > + stop_one_cpu_nowait(cpu_of(busiest), > + active_load_balance_cpu_stop, busiest, > + &busiest->active_balance_work)

[RFC PATCH 17/22] thunderbolt: Add initial support for USB4

2019-10-01 Thread Mika Westerberg
USB4 is a public spec based on Thunderbolt protocol. There are some differences in register layouts and flows. In addition to PCIe and DP tunneling, USB4 supports tunneling of USB 3.x. USB4 is also backward compatible with Thunderbolt 3 (and older generations but the spec only talks about 3rd gener

[RFC PATCH 10/22] thunderbolt: Convert PCIe adapter register names to use USB4 names

2019-10-01 Thread Mika Westerberg
Now that USB4 spec has names for these PCIe adapter registers we can use them instead. This makes it easier to match certain register to the spec. No functional changes. Signed-off-by: Mika Westerberg --- drivers/thunderbolt/switch.c | 10 ++ drivers/thunderbolt/tb_regs.h | 4 ++-- 2

[RFC PATCH 16/22] thunderbolt: Call tb_eeprom_get_drom_offset() from tb_eeprom_read_n()

2019-10-01 Thread Mika Westerberg
We are going to re-use tb_drom_read() for USB4 DROM reading as well. USB4 has separate router operations for this which does not need the drom_offset. Therefore we move call to tb_eeprom_get_drom_offset() into tb_eeprom_read_n() where it is needed. While there change return -ENOSYS to -ENODEV beca

[RFC PATCH 00/22] thunderbolt: Add support for USB4

2019-10-01 Thread Mika Westerberg
Hi all, I'm sending this as RFC because the series is still missing important features such as power management so not ready for merging. However, I think it is good to get any early feedback from the community. We are working to add support for the missing features. USB4 is the public specificat

[RFC PATCH 03/22] thunderbolt: Log warning if adding switch fails

2019-10-01 Thread Mika Westerberg
If we fail to add a switch for some reason log a warning with the error code. This is useful for debugging. Signed-off-by: Mika Westerberg --- drivers/thunderbolt/tb.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/thunderbolt/tb.c b/drivers/thunderbolt/tb.c inde

[RFC PATCH 15/22] thunderbolt: Make tb_find_port() available to other files

2019-10-01 Thread Mika Westerberg
We will be needing this when adding initial USB4 support so make it available to other files in the driver as well. We also rename it to tb_switch_find_port() to follow conventions used in switch.c. No functional changes. Signed-off-by: Mika Westerberg --- drivers/thunderbolt/switch.c | 18

[RFC PATCH 21/22] thunderbolt: Update documentation with the USB4 information

2019-10-01 Thread Mika Westerberg
Update user's and administrator's guide to mention USB4, how it relates to Thunderbolt (it is public spec of Thunderbolt 3) and and how it is supported in Linux. Signed-off-by: Mika Westerberg --- Documentation/admin-guide/thunderbolt.rst | 27 ++- 1 file changed, 22 insertio

[RFC PATCH 01/22] thunderbolt: Introduce tb_switch_is_icm()

2019-10-01 Thread Mika Westerberg
We currently differentiate between SW CM and ICM by looking directly at the sw->config.enabled field which may be rather hard to understand for the casual reader. For this reason introduce a wrapper function with documentation that should make the intention more clear. Signed-off-by: Mika Westerbe

[RFC PATCH 22/22] thunderbolt: Do not start firmware unless asked by the user

2019-10-01 Thread Mika Westerberg
Since now we can do pretty much the same thing in the software connection manager than the firmware would do, there is no point starting it by default. Instead we can just continue using the software connection manager. Make it possible for user to switch between the two by adding a module pararam

[RFC PATCH 18/22] thunderbolt: Make tb_switch_find_cap() available to other files

2019-10-01 Thread Mika Westerberg
From: Rajmohan Mani We need to find switch capabilities in order to implement TMU support so make it available to other files as well. Signed-off-by: Rajmohan Mani Signed-off-by: Mika Westerberg --- drivers/thunderbolt/cap.c | 11 ++- drivers/thunderbolt/tb.h | 1 + 2 files changed,

[RFC PATCH 12/22] thunderbolt: Add Display Port CM handshake for Titan Ridge devices

2019-10-01 Thread Mika Westerberg
Titan Ridge devices and newer need an additional connection manager handshake in order to do proper Display Port tunneling so implement it here. Signed-off-by: Mika Westerberg --- drivers/thunderbolt/tb_regs.h | 3 +++ drivers/thunderbolt/tunnel.c | 44 +++ 2 fi

[RFC PATCH 14/22] thunderbolt: Add bandwidth management for Display Port tunnels

2019-10-01 Thread Mika Westerberg
Thunderbolt 3 devices and especially Titan Ridge supports Display Port 1.4 which adds HBR3 (High Bit Rate) rates that may be up to 8.1 Gb/s over 4 lanes. This translates to effective data bandwidth of 25.92 Gb/s (as 8/10 encoding is removed by the DP adapters when going over Thunderbolt fabric). If

[RFC PATCH 20/22] thunderbolt: Add support for USB tunnels

2019-10-01 Thread Mika Westerberg
From: Rajmohan Mani USB4 added a capability to tunnel USB 3.x protocol over the USB4 fabric. USB4 device routers may include integrated SuperSpeed HUB or a function or both. USB tunneling follows PCIe so that the tunnel is created between the parent and the child router from USB downstream adapte

[RFC PATCH 13/22] thunderbolt: Add Display Port adapter pairing and resource management

2019-10-01 Thread Mika Westerberg
To perform proper Display Port tunneling for Thunderbolt 3 devices we need to allocate DP resources for DP IN port before they can be used. The reason for this is that the user can also connect a monitor directly to the Type-C ports in which case the Thunderbolt controller acts as re-driver for Dis

[RFC PATCH 07/22] thunderbolt: Add default linking between ports if not provided by DROM

2019-10-01 Thread Mika Westerberg
Some cases the DROM information is not correct or is simply missing. This prevents establishing lane bonding even if it would be possible otherwise. To make this work better provide default linking between ports if DROM has not provided that information. This works with legacy devices where ports

arch/arm/crypto/aes-ce-core.S:467: Error: selected processor does not support `movw ip,:lower16:.Lcts_permute_table' in ARM mode

2019-10-01 Thread kbuild test robot
Hi Ard, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c commit: c61b1607ed4fbbf2ba7c86f29768cff44a1a88f8 crypto: arm/aes-ce - implement ciphertext stealing for XTS date: 3

[RFC PATCH 19/22] thunderbolt: Add support for Time Management Unit

2019-10-01 Thread Mika Westerberg
From: Rajmohan Mani Time Management Unit (TMU) is included in each USB4 router. It is used to synchronize time across the USB4 fabric. By default when USB4 router is plugged to the domain, its TMU is turned off. This differs from Thunderbolt (1, 2 and 3) devices whose TMU is by default configured

[RFC PATCH 06/22] thunderbolt: Add support for lane bonding

2019-10-01 Thread Mika Westerberg
Lane bonding allows aggregating the two 10/20 Gb/s (depending on the generation) lanes into a single 20/40 Gb/s bonded link. This allows sharing the full bandwidth more efficiently. In order to establish lane bonding we need to check that the lane bonding is possible through LC and that both end of

[RFC PATCH 09/22] thunderbolt: Convert basic adapter register names to follow the USB4 spec

2019-10-01 Thread Mika Westerberg
Now that USB4 spec has names for these basic registers we can use them instead. This makes it easier to match certain register to the spec. No functional changes. Signed-off-by: Mika Westerberg --- drivers/thunderbolt/switch.c | 18 +- drivers/thunderbolt/tb_regs.h | 15 +++

[RFC PATCH 05/22] thunderbolt: Add helper macros to iterate over switch ports

2019-10-01 Thread Mika Westerberg
There are quite many places in the driver where we iterate over each port in the switch skipping. To make it bit more consistent provide set of helper macros that can be used to do this and convert the existing call sites to these. No functional changes. Signed-off-by: Mika Westerberg --- drive

[RFC PATCH 11/22] thunderbolt: Convert DP adapter register names to follow the USB4 spec

2019-10-01 Thread Mika Westerberg
Now that USB4 spec has names for these DP adapter registers we can use them instead. This makes it easier to match certain register to the spec. No functional changes. Signed-off-by: Mika Westerberg --- drivers/thunderbolt/switch.c | 50 --- drivers/thunderbolt/

[RFC PATCH 08/22] thunderbolt: Add downstream PCIe port mappings for Alpine and Titan Ridge

2019-10-01 Thread Mika Westerberg
In order to keep PCIe hierarchies consistent across hotplugs, add hard-coded PCIe downstream port to Thunderbolt port for Alpine Ridge and Titan Ridge as well. Signed-off-by: Mika Westerberg --- drivers/thunderbolt/tb.c | 4 +++- drivers/thunderbolt/tb.h | 25 + 2 files

[RFC PATCH 02/22] thunderbolt: Log switch route string on config read/write timeout

2019-10-01 Thread Mika Westerberg
This helps to point out which switch config read/write triggered the timeout. Signed-off-by: Mika Westerberg --- drivers/thunderbolt/ctl.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/thunderbolt/ctl.c b/drivers/thunderbolt/ctl.c index 2ec1af8f7968..d97813e

[RFC PATCH 04/22] thunderbolt: Make tb_sw_write() take const parameter

2019-10-01 Thread Mika Westerberg
The function does not modify the argument in any way so make it const. Signed-off-by: Mika Westerberg --- drivers/thunderbolt/tb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thunderbolt/tb.h b/drivers/thunderbolt/tb.h index 1565af2e48cb..455ca490ea87 100644 --- a

Applied "ASoC: fsl_mqs: Add MQS component driver" to the asoc tree

2019-10-01 Thread Mark Brown
The patch ASoC: fsl_mqs: Add MQS component driver has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.5 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent t

Applied "spi: dt-bindings: Convert spi-sifive binding to json-schema" to the spi tree

2019-10-01 Thread Mark Brown
The patch spi: dt-bindings: Convert spi-sifive binding to json-schema has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.5 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24

Re: [PATCH] spi: Avoid calling spi_slave_abort() with kfreed spidev

2019-10-01 Thread Mark Brown
On Tue, Oct 01, 2019 at 12:00:07PM +0200, Geert Uytterhoeven wrote: > On Tue, Oct 1, 2019 at 11:34 AM Lukasz Majewski wrote: > > > On Tue, Oct 1, 2019 at 11:07 AM Lukasz Majewski wrote: > > The if (!dofree) prevents from calling spi_slave_abort() when > > spidev->spi == NULL and spidev is kfree'

Re: [PATCH] Partially revert "compiler: enable CONFIG_OPTIMIZE_INLINING forcibly"

2019-10-01 Thread Andrew Murray
On Tue, Oct 01, 2019 at 11:42:54AM +0100, Will Deacon wrote: > On Tue, Oct 01, 2019 at 06:40:26PM +0900, Masahiro Yamada wrote: > > On Mon, Sep 30, 2019 at 8:45 PM Will Deacon wrote: > > > diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug > > > index 93d97f9b0157..c37c72adaeff 100644 > > > --- a/

Applied "ASoC: core: Clarify usage of ignore_machine" to the asoc tree

2019-10-01 Thread Mark Brown
The patch ASoC: core: Clarify usage of ignore_machine has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.5 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and se

Applied "dt-bindings: ASoC: Add tas2770 smart PA dt bindings" to the asoc tree

2019-10-01 Thread Mark Brown
The patch dt-bindings: ASoC: Add tas2770 smart PA dt bindings has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.5 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours

Applied "spi: dw: Add basic runtime PM support" to the spi tree

2019-10-01 Thread Mark Brown
The patch spi: dw: Add basic runtime PM support has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.5 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Lin

Applied "ASoC: fsl_asrc: Fix error with S24_3LE format bitstream in i.MX8" to the asoc tree

2019-10-01 Thread Mark Brown
The patch ASoC: fsl_asrc: Fix error with S24_3LE format bitstream in i.MX8 has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.5 All being well this means that it will be integrated into the linux-next tree (usually sometime in the

Applied "spi: fsl-lpspi: clean up indentation issue" to the spi tree

2019-10-01 Thread Mark Brown
The patch spi: fsl-lpspi: clean up indentation issue has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.5 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent t

Applied "spi: dw: Add compatible string for Renesas RZ/N1 SPI Controller" to the spi tree

2019-10-01 Thread Mark Brown
The patch spi: dw: Add compatible string for Renesas RZ/N1 SPI Controller has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.5 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next

Applied "spi: mediatek: Use devm_platform_ioremap_resource() in mtk_spi_slave_probe()" to the spi tree

2019-10-01 Thread Mark Brown
The patch spi: mediatek: Use devm_platform_ioremap_resource() in mtk_spi_slave_probe() has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.5 All being well this means that it will be integrated into the linux-next tree (usually sometim

Applied "ASoC: stm32: sai: clean up indentation issue" to the asoc tree

2019-10-01 Thread Mark Brown
The patch ASoC: stm32: sai: clean up indentation issue has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.5 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and s

Applied "spi: Introduce dspi_slave_abort() function for NXP's dspi SPI driver" to the spi tree

2019-10-01 Thread Mark Brown
The patch spi: Introduce dspi_slave_abort() function for NXP's dspi SPI driver has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.5 All being well this means that it will be integrated into the linux-next tree (usually sometime in the

Applied "spi: mediatek: Use devm_platform_ioremap_resource() in mtk_spi_probe()" to the spi tree

2019-10-01 Thread Mark Brown
The patch spi: mediatek: Use devm_platform_ioremap_resource() in mtk_spi_probe() has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.5 All being well this means that it will be integrated into the linux-next tree (usually sometime in t

Applied "dt-bindings: snps,dw-apb-ssi: Add optional clock domain information" to the spi tree

2019-10-01 Thread Mark Brown
The patch dt-bindings: snps,dw-apb-ssi: Add optional clock domain information has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.5 All being well this means that it will be integrated into the linux-next tree (usually sometime in the

Applied "dt: spi: Add Renesas RZ/N1 binding documentation" to the spi tree

2019-10-01 Thread Mark Brown
The patch dt: spi: Add Renesas RZ/N1 binding documentation has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.5 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and

Applied "spi: xtensa-xtfpga: Use devm_platform_ioremap_resource() in xtfpga_spi_probe()" to the spi tree

2019-10-01 Thread Mark Brown
The patch spi: xtensa-xtfpga: Use devm_platform_ioremap_resource() in xtfpga_spi_probe() has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.5 All being well this means that it will be integrated into the linux-next tree (usually some

Applied "spi: atmel: Remove AVR32 leftover" to the spi tree

2019-10-01 Thread Mark Brown
The patch spi: atmel: Remove AVR32 leftover has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.5 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus d

Applied "tas2770: add tas2770 smart PA kernel driver" to the asoc tree

2019-10-01 Thread Mark Brown
The patch tas2770: add tas2770 smart PA kernel driver has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to L

Applied "spi: lantiq-ssc: Use devm_platform_ioremap_resource() in lantiq_ssc_probe()" to the spi tree

2019-10-01 Thread Mark Brown
The patch spi: lantiq-ssc: Use devm_platform_ioremap_resource() in lantiq_ssc_probe() has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.5 All being well this means that it will be integrated into the linux-next tree (usually sometime

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