Re: [PATCH 6/6] lib/scatterlist: Drop order argument from sgl_free_n_order

2018-03-08 Thread Tvrtko Ursulin
Hi, On 07/03/18 18:30, James Bottomley wrote: On Wed, 2018-03-07 at 12:47 +, Tvrtko Ursulin wrote: From: Tvrtko Ursulin Firstly, I don't see any justifiable benefit to churning this API, so why bother? but secondly this: Primarily because I wanted to extend sgl_alloc_order slightly in

[PATCH] perf tools: update quipper information

2018-03-08 Thread Stephane Eranian
This patch updates the links to the Quipper library. It is now available from GitHub and has been updated. Reported-by: Lakshman Annadorai Signed-off-by: Stephane Eranian --- tools/perf/Documentation/perf.data-file-format.txt | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --g

Re: [PATCH v2 0/3] pinctrl: bcm2835: Add brcm,level property

2018-03-08 Thread Stefan Wahren
Hi Matheus, > Matheus Castello hat am 8. März 2018 um 01:12 > geschrieben: > > > Hi Stefan, > > On 03/07/2018 07:58 AM, Stefan Wahren wrote: > > Hi Matheus, > > > >> Matheus Castello hat am 5. März 2018 um 03:29 > >> geschrieben: > >> > >> > >> Hi Linus and Stefan, > >> > >> thanks for the

[PATCH 10/12] efi: reorder pr_notice() with add_device_randomness() call

2018-03-08 Thread Ard Biesheuvel
Currently, when we receive a random seed from the EFI stub, we call add_device_randomness() to incorporate it into the entropy pool, and issue a pr_notice() saying we are about to do that, e.g., [0.00] efi: RNG=0x87ff92cf18 [0.00] random: fast init done [0.00] efi: s

[PATCH 04/12] efi/x86: Fix trailing semicolons

2018-03-08 Thread Ard Biesheuvel
From: Luis de Bethencourt The trailing semicolon is an empty statement that does no operation. Removing them since they don't do anything. Signed-off-by: Luis de Bethencourt Signed-off-by: Ard Biesheuvel --- arch/x86/boot/compressed/eboot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletio

[PATCH 11/12] efi/apple-properties: Use memremap() instead of ioremap()

2018-03-08 Thread Ard Biesheuvel
From: Andy Shevchenko The memory we are accessing through virtual address has no IO side effects. Moreover, for IO memory we have to use special accessors, which we don't use. Due to above, convert the driver to use memremap() instead of ioremap(). Signed-off-by: Andy Shevchenko Tested-by: Luk

[PATCH 12/12] efi: make const array 'apple' static

2018-03-08 Thread Ard Biesheuvel
From: Colin Ian King Don't populate the const read-only array 'buf' on the stack but instead make it static. Makes the object code smaller by 64 bytes: Before: textdata bss dec hex filename 9264 1 1692812441 arch/x86/boot/compressed/eboot.o After: tex

[PATCH 07/12] efi: Use efi_mm in x86 as well as ARM

2018-03-08 Thread Ard Biesheuvel
From: Sai Praneeth Presently, only ARM uses mm_struct to manage efi page tables and efi runtime region mappings. As this is the preferred approach, let's make this data structure common across architectures. Specially, for x86, using this data structure improves code maintainability and readabili

Re: [PATCH] acpi, nfit: remove redundant __func__ in dev_dbg

2018-03-08 Thread Johannes Thumshirn
On Tue, Mar 06, 2018 at 08:52:21AM -0800, Dan Williams wrote: > > Oh, Johannes I noticed that here is one stray one still in > > drivers/acpi/nfit/mce.c. Do you mind pulling it into your patch to keep the > > drivers/acpi/nfit/* changes together? > > I'll fix this locally. Sorry for the late res

Re: [PATCH v1 2/9] PCI/PM: Clear PCIe PME Status bit in core, not PCIe port driver

2018-03-08 Thread Lukas Wunner
On Wed, Mar 07, 2018 at 12:13:34AM -0600, Bjorn Helgaas wrote: > From: Bjorn Helgaas > > fe31e69740ed ("PCI/PCIe: Clear Root PME Status bits early during system > resume") added a .resume_noirq() callback to the PCIe port driver to clear > the PME Status bit during resume to work around a BIOS is

[PATCH 08/12] x86/efi: Replace efi_pgd with efi_mm.pgd

2018-03-08 Thread Ard Biesheuvel
From: Sai Praneeth Since the previous patch added support for efi_mm, let's handle efi_pgd through efi_mm and remove global variable efi_pgd. Signed-off-by: Sai Praneeth Prakhya Cc: "Lee, Chun-Yi" Cc: Borislav Petkov Cc: Tony Luck Cc: Andy Lutomirski Cc: Michael S. Tsirkin Cc: Bhupesh Shar

[PATCH 09/12] x86/efi: Use efi_switch_mm() rather than manually twiddling with %cr3

2018-03-08 Thread Ard Biesheuvel
From: Sai Praneeth Use helper function (efi_switch_mm()) to switch to/from efi_mm. We switch to efi_mm before calling 1. efi_set_virtual_address_map() and 2. Invoking any efi_runtime_service() Likewise, we need to switch back to previous mm (mm context stolen by efi_mm) after the above calls ret

[PATCH 03/12] efi/arm*: Stop printing addresses of virtual mappings

2018-03-08 Thread Ard Biesheuvel
With the recent %p -> %px changes, we now get something like this in the kernel boot log on ARM/arm64 EFI systems: Remapping and enabling EFI services. EFI remap 0x0087fb83 => (ptrval) EFI remap 0x0087fbdb => (ptrval) EFI remap 0x0087ff

[PATCH 06/12] x86: efi: Replace GFP_ATOMIC with GFP_KERNEL in efi_query_variable_store

2018-03-08 Thread Ard Biesheuvel
From: Jia-Ju Bai The function kzalloc here is not called in atomic context. If nonblocking in efi_query_variable_store is true, namely it is in atomic context, efi_query_variable_store will return before this kzalloc is called. Thus GFP_ATOMIC is not necessary, and it can be replaced with GFP_KER

[PATCH 05/12] efi: arm64: Check whether x18 is preserved by runtime services calls

2018-03-08 Thread Ard Biesheuvel
Whether or not we will ever decide to start using x18 as a platform register in Linux is uncertain, but by that time, we will need to ensure that UEFI runtime services calls don't corrupt it. So let's start issuing warnings now for this, and increase the likelihood that these firmware images have a

Re: [PATCH 0/6] lib/scatterlist: Small SGL tidy

2018-03-08 Thread Tvrtko Ursulin
On 07/03/18 18:38, Bart Van Assche wrote: On Wed, 2018-03-07 at 12:47 +, Tvrtko Ursulin wrote: I spotted a few small issues in the recent added SGL code so am sending some patches to tidy this. Can you send the fixes as a separate series and keep the rework / behavior changes for later s

[GIT PULL 00/12] first batch of EFI changes for v4.17

2018-03-08 Thread Ard Biesheuvel
The following changes since commit 7928b2cbe55b2a410a0f5c1f154610059c57b1b2: Linux 4.16-rc1 (2018-02-11 15:04:29 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git efi-next for you to fetch changes up to 67a2152c7362bd9ee3ba6d218e435a04c

[PATCH 02/12] efi/apple-properties: Device core takes care of empty properties

2018-03-08 Thread Ard Biesheuvel
From: Andy Shevchenko There is no need to artificially supply a property length and fake data if property has type of boolean. Remove redundant piece of data and code. Signed-off-by: Andy Shevchenko Reviewed-and-tested-by: Lukas Wunner Signed-off-by: Ard Biesheuvel --- drivers/firmware/efi/

[PATCH 01/12] efi/arm*: Only register page tables when they exist

2018-03-08 Thread Ard Biesheuvel
From: Mark Rutland Currently the arm/arm64 runtime code registers the runtime servies pagetables with ptdump regardless of whether runtime services page tables have been created. As efi_mm.pgd is NULL in these cases, attempting to dump the efi page tables results in a NULL pointer dereference in

Re: [PATCH] xfs: Correctly invert xfs_buftarg LRU isolation logic

2018-03-08 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

Re: [PATCH 1/2] mm/vmalloc: Add interfaces to free unused page table

2018-03-08 Thread Ingo Molnar
* Toshi Kani wrote: > On architectures with CONFIG_HAVE_ARCH_HUGE_VMAP set, ioremap() > may create pud/pmd mappings. Kernel panic was observed on arm64 > systems with Cortex-A75 in the following steps as described by > Hanjun Guo. > > 1. ioremap a 4K size, valid page table will build, > 2. iou

[PATCH] reset: uniphier: add Pro4/Pro5/PXs2 audio systems reset control

2018-03-08 Thread Katsuhiro Suzuki
Add reset lines for audio subsystem (AIO) on UniPhier Pro4/Pro5/PXs2 SoCs. Signed-off-by: Katsuhiro Suzuki --- drivers/reset/reset-uniphier.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/reset/reset-uniphier.c b/drivers/reset/reset-uniphier.c index e8bb023ff15e..0fa23129d343 10

[PATCH] ASoC: uniphier: remove superfluous inclusion

2018-03-08 Thread Masahiro Yamada
None of aio-compress.c depends on the syscon header. Signed-off-by: Masahiro Yamada Acked-by: Katsuhiro Suzuki --- sound/soc/uniphier/aio-compress.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/uniphier/aio-compress.c b/sound/soc/uniphier/aio-compress.c index 4751c8b..4c1027a

Re: linux-next: manual merge of the mfd tree with Linus' tree

2018-03-08 Thread Lee Jones
On Thu, 08 Mar 2018, Stephen Rothwell wrote: > Hi Lee, > > Today's linux-next merge of the mfd tree got a conflict in: > > drivers/mfd/syscon.c > > between commit: > > 3bafc09e7797 ("mfd: syscon: Add hardware spinlock support") > > from Linus' tree and commit: > > 34c90dcce6b1 ("mfd: s

Re: [PATCH] reset: uniphier: add Pro4/Pro5/PXs2 audio systems reset control

2018-03-08 Thread Masahiro Yamada
2018-03-08 17:09 GMT+09:00 Katsuhiro Suzuki : > Add reset lines for audio subsystem (AIO) on UniPhier > Pro4/Pro5/PXs2 SoCs. > > Signed-off-by: Katsuhiro Suzuki > --- Acked-by: Masahiro Yamada > drivers/reset/reset-uniphier.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drive

Re: Invalid /proc//fd/{0,1,2} symlinks with TIOCGPTPEER

2018-03-08 Thread Christian Brauner
On Wed, Mar 07, 2018 at 11:44:35AM -0800, Linus Torvalds wrote: > On Wed, Mar 7, 2018 at 8:17 AM, Christian Brauner > wrote: > > > > unshare --mount > > mount --bind /dev/pts/ptmx /dev/ptmx > > chmod 666 /dev/ptmx > > Oh. Why are you using a bind mount in the first place? Containers employing us

Re: [PATCH 2/2] platform/x86: dell-*: Add interface for switchable graphics status query

2018-03-08 Thread Kai Heng Feng
On Mar 8, 2018, at 3:34 PM, mario.limoncie...@dell.com wrote: -Original Message- From: Kai-Heng Feng [mailto:kai.heng.f...@canonical.com] Sent: Thursday, March 8, 2018 3:12 PM To: mj...@srcf.ucam.org; pali.ro...@gmail.com; dvh...@infradead.org; a...@infradead.org; Limonciello, Mario ;

Re: Invalid /proc//fd/{0,1,2} symlinks with TIOCGPTPEER

2018-03-08 Thread Christian Brauner
On Wed, Mar 07, 2018 at 01:30:52PM -0600, Eric W. Biederman wrote: > Christian Brauner writes: > > > Hey, > > > > We discovered a potential bug in the devpts implementation via > > TIOCGPTPEER ioctl()s today. We've tackled a similar problem already in: > > > > commit 311fc65c9fb9c966bca8e6f3ff813

Re: [PATCH v2 net] net: xfrm: use preempt-safe this_cpu_read() in ipcomp_alloc_tfms()

2018-03-08 Thread Herbert Xu
On Wed, Mar 07, 2018 at 02:42:53PM -0800, Greg Hackmann wrote: > f7c83bcbfaf5 ("net: xfrm: use __this_cpu_read per-cpu helper") added a > __this_cpu_read() call inside ipcomp_alloc_tfms(). > > At the time, __this_cpu_read() required the caller to either not care > about races or to handle preempti

[PATCH] clk: uniphier: add Pro4/Pro5/PXs2 audio system clock

2018-03-08 Thread Katsuhiro Suzuki
Add clock for audio subsystem (AIO) on UniPhier Pro4/Pro5/PXs2 SoCs. Signed-off-by: Katsuhiro Suzuki --- drivers/clk/uniphier/clk-uniphier-sys.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/clk/uniphier/clk-uniphier-sys.c b/drivers/clk/uniphier/clk-uniphier-sys.c ind

Re: [PATCH v2 1/3] vsprintf: Remove accidental VLA usage

2018-03-08 Thread Rasmus Villemoes
On 2018-03-08 04:30, Kees Cook wrote: > In the quest to remove all stack VLAs from the kernel[1], this introduces > a new "simple max" macro, and changes the "sym" array size calculation to > use it. The value is actually a fixed size, but since the max() macro uses > some extensive tricks for safe

Re: [PATCH] rcu: exp: Fix "must hold exp_mutex" comments for QS reporting functions

2018-03-08 Thread Boqun Feng
On Thu, Mar 08, 2018 at 12:54:29PM +0800, Boqun Feng wrote: > On Wed, Mar 07, 2018 at 08:30:17PM -0800, Paul E. McKenney wrote: > [...] > > > > > > +/* > > > + * Like sync_rcu_preempt_exp_done(), but this function assumes the caller > > > + * doesn't hold the rcu_node's ->lock, and will acquire a

Re: [PATCHv3] phy: mapphone-mdm6600: Add USB PHY driver for MDM6600 on Droid 4

2018-03-08 Thread Kishon Vijay Abraham I
Hi Tony, On Wednesday 07 March 2018 08:26 PM, Tony Lindgren wrote: > Let's add support for the GPIO controlled USB PHY on the MDM6600 modem. > It is used on some Motorola Mapphone series of phones and tablets such > as Droid 4. > > The MDM6600 is hardwired to the first OHCI port in the Droid 4 ca

Atheros 1525/QCA6174 BT issue

2018-03-08 Thread Takashi Iwai
Hi, we've got a but report about the broken Atheros BT on the recent kernels: http://bugzilla.opensuse.org/show_bug.cgi?id=1082504 In short, btusb can't load the patch ar3k/AthrBT_0x0200.dfu, and this could be worked around by the patch to move 0cf3:3004 blacklist entry to use BTUSB_QCA_ROM

Re: [PATCH v2 1/2] ARM: dts: imx6: RDU2: Add RAVE SP device

2018-03-08 Thread Shawn Guo
On Thu, Mar 01, 2018 at 11:20:06AM -0800, Andrey Smirnov wrote: > With MFD and watchdog drivers for RAVE SP device support added by > 538ee27290fa ("mfd: Add driver for RAVE Supervisory Processor") and > c3bb33345721 ("watchdog: Add RAVE SP watchdog driver") add > corresponding DT node for RDU2. >

RE: [PATCH 2/2] platform/x86: dell-*: Add interface for switchable graphics status query

2018-03-08 Thread Mario.Limonciello
> -Original Message- > From: Kai Heng Feng [mailto:kai.heng.f...@canonical.com] > Sent: Thursday, March 8, 2018 4:20 PM > To: Limonciello, Mario > Cc: mj...@srcf.ucam.org; pali.ro...@gmail.com; dvh...@infradead.org; > a...@infradead.org; ti...@suse.com; platform-driver-...@vger.kernel.org;

Re: [PATCH 4.14 000/110] 4.14.25-stable review

2018-03-08 Thread Naresh Kamboju
On 8 March 2018 at 01:07, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.25 release. > There are 110 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Response

Re: [PATCH V6 1/2] ARM: dts: imx7s: add temperature monitor support

2018-03-08 Thread Shawn Guo
On Fri, Mar 02, 2018 at 09:59:29AM +0800, Anson Huang wrote: > Add i.MX7 temperature monitor support. > > Signed-off-by: Anson Huang > Acked-by: Dong Aisheng > Acked-by: Shawn Guo > Reviewed-by: Rob Herring Applied this dts patch, thanks.

Re: [PATCH] clk: uniphier: add Pro4/Pro5/PXs2 audio system clock

2018-03-08 Thread Masahiro Yamada
2018-03-08 17:23 GMT+09:00 Katsuhiro Suzuki : > Add clock for audio subsystem (AIO) on UniPhier > Pro4/Pro5/PXs2 SoCs. > > Signed-off-by: Katsuhiro Suzuki > --- Acked-by: Masahiro Yamada > drivers/clk/uniphier/clk-uniphier-sys.c | 11 +++ > 1 file changed, 11 insertions(+) > > diff

Re: [PATCH] kbuild: Handle builtin dtb files containing hyphens

2018-03-08 Thread Masahiro Yamada
2018-03-08 16:09 GMT+09:00 James Hogan : > On Wed, Mar 07, 2018 at 03:19:11PM -0800, Frank Rowand wrote: >> On 03/07/18 12:25, James Hogan wrote: >> > On Wed, Mar 07, 2018 at 12:11:41PM -0800, Frank Rowand wrote: >> >> On 03/07/18 06:06, James Hogan wrote: >> >>> Quite a lot of dts files have hyphe

[PATCH] rcu: exp: Protect all sync_rcu_preempt_exp_done() with rcu_node lock

2018-03-08 Thread Boqun Feng
Currently some callsites of sync_rcu_preempt_exp_done() are not called with the corresponding rcu_node's ->lock held, which could introduces bugs as per Paul: o CPU 0 in sync_rcu_preempt_exp_done() reads ->exp_tasks and sees that it is NULL. o CPU 1 blocks within an RCU read-s

[PATCH v5 00/19] tracing: probeevent: Improve fetcharg features

2018-03-08 Thread Masami Hiramatsu
Hi, This is the 5th version of the fetch-arg improvement series. This includes variable changes on fetcharg framework like, - Add fetcharg testcases (syntax, argN, symbol, string and array) and probepoint testcase. - Rewrite fetcharg framework with fetch_insn, switch-case based instead of fun

[PATCH] staging: ccree: remove ccree staging copy

2018-03-08 Thread Gilad Ben-Yossef
Now when the ccree driver has been accepted into the cryptodev tree we can remove the staging tree copy. Please note that this commit may cause a merge conflict with the cryptodev tree since we needed to disable the staging copy in order to get the new copy to compile but the resolution is trivial

[PATCH v5 01/19] [BUGFIX] tracing: probeevent: Fix to support minus offset from symbol

2018-03-08 Thread Masami Hiramatsu
In Documentation/trace/kprobetrace.txt, it says @SYM[+|-offs] : Fetch memory at SYM +|- offs (SYM should be a data symbol) However, the parser doesn't parse minus offset correctly, since commit 2fba0c8867af ("tracing/kprobes: Fix probe offset to be unsigned") drops minus ("-") offset support for

[PATCH v2] rcu: exp: Protect all sync_rcu_preempt_exp_done() with rcu_node lock

2018-03-08 Thread Boqun Feng
Currently some callsites of sync_rcu_preempt_exp_done() are not called with the corresponding rcu_node's ->lock held, which could introduces bugs as per Paul: o CPU 0 in sync_rcu_preempt_exp_done() reads ->exp_tasks and sees that it is NULL. o CPU 1 blocks within an RCU read-s

[PATCH v5 02/19] selftests: ftrace: Add probe event argument syntax testcase

2018-03-08 Thread Masami Hiramatsu
Add a testcase for probe event argument syntax which ensures the kprobe_events interface correctly parses given event arguments. Signed-off-by: Masami Hiramatsu --- .../ftrace/test.d/kprobe/kprobe_args_syntax.tc | 97 1 file changed, 97 insertions(+) create mode 10064

[PATCH v5 03/19] selftests: ftrace: Add a testcase for string type with kprobe_event

2018-03-08 Thread Masami Hiramatsu
Add a testcase for string type with kprobe event. This tests good/bad syntax combinations and also the traced data is correct in several way. Signed-off-by: Masami Hiramatsu --- .../ftrace/test.d/kprobe/kprobe_args_string.tc | 46 1 file changed, 46 insertions(+) crea

Re: Regression from efi: call get_event_log before ExitBootServices

2018-03-08 Thread Thiebaud Weksteen
On Wed, Mar 7, 2018 at 6:33 PM Jeremy Cline wrote: > On 03/07/2018 03:41 AM, Thiebaud Weksteen wrote: > > Hi, > > > > Thanks for testing and sending this report! This patch relies heavily on > > the functions exposed by the firmware. My first guess would be that some of > > these may not be imple

[PATCH v5 04/19] selftests: ftrace: Add a testcase for probepoint

2018-03-08 Thread Masami Hiramatsu
Add a testcase for probe point definition. This tests symbol, address and symbol+offset syntax. The offset must be positive and smaller than UINT_MAX. Signed-off-by: Masami Hiramatsu --- .../selftests/ftrace/test.d/kprobe/probepoint.tc | 43 1 file changed, 43 insertions

[PATCH v5 05/19] tracing: probeevent: Cleanup print argument functions

2018-03-08 Thread Masami Hiramatsu
Current print argument functions prints the argument name too. It is not good for printing out multiple values for one argument. This change it to just print out the value. Signed-off-by: Masami Hiramatsu --- kernel/trace/trace_kprobe.c | 20 ++-- kernel/trace/trace_probe.c |

[PATCH v5 06/19] tracing: probeevent: Cleanup argument field definition

2018-03-08 Thread Masami Hiramatsu
Cleanup event argument definition code in one place for maintenancability. Signed-off-by: Masami Hiramatsu --- kernel/trace/trace_kprobe.c | 32 kernel/trace/trace_probe.c | 21 + kernel/trace/trace_probe.h |2 ++ kernel/trace/trace_

Re: [PATCH net-next 00/23] net: hns3: HNS3 bug fixes & code improvements

2018-03-08 Thread lipeng (Y)
On 2018/3/8 13:00, David Miller wrote: Sorry, this is way too large of a patch series. Please keep your series to about a dozen or so changes. Anything longer puts an unreasonable burdon upon patch reviewers, and such a large series will often make it so that nearly all reviewers are discoura

[PATCH v5 07/19] tracing: probeevent: Remove NOKPROBE_SYMBOL from print functions

2018-03-08 Thread Masami Hiramatsu
Remove unneeded NOKPROBE_SYMBOL from print functions since the print functions are only used when printing out the trace data, and not from kprobe handler. Signed-off-by: Masami Hiramatsu --- kernel/trace/trace_probe.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ker

[PATCH v5 08/19] tracing: probeevent: Introduce new argument fetching code

2018-03-08 Thread Masami Hiramatsu
Replace {k,u}probe event argument fetching framework with switch-case based. Currently that is implemented with structures, macros and chain of function-pointers, which is more complicated than necessary and may get a performance penalty by retpoline. This simplify that with an array of "fetch_ins

[PATCH v5 09/19] tracing: probeevent: Unify fetch type tables

2018-03-08 Thread Masami Hiramatsu
Unify {k,u}probe_fetch_type_table to probe_fetch_type_table because the main difference of those type tables (fetcharg methods) are gone. Now we can consolidate it. Signed-off-by: Masami Hiramatsu --- kernel/trace/trace_kprobe.c | 27 +- kernel/trace/trace_probe.c | 54 +

[PATCH v5 11/19] tracing: probeevent: Append traceprobe_ for exported function

2018-03-08 Thread Masami Hiramatsu
Append traceprobe_ for exported function set_print_fmt() as same as other functions. Signed-off-by: Masami Hiramatsu --- kernel/trace/trace_kprobe.c |4 ++-- kernel/trace/trace_probe.c |2 +- kernel/trace/trace_probe.h |2 +- kernel/trace/trace_uprobe.c |4 ++-- 4 files changed

[PATCH v5 10/19] tracing: probeevent: Return consumed bytes of dynamic area

2018-03-08 Thread Masami Hiramatsu
Cleanup string fetching routine so that returns the consumed bytes of dynamic area and store the string information as data_loc format instead of data_rloc. This simplifies the fetcharg loop. Signed-off-by: Masami Hiramatsu --- kernel/trace/trace_kprobe.c | 51 +++--

[PATCH v5 12/19] tracing: probeevent: Unify fetch_insn processing common part

2018-03-08 Thread Masami Hiramatsu
Unify the fetch_insn bottom process (from stage 2: dereference indirect data) from kprobe and uprobe events, since those are mostly same. Signed-off-by: Masami Hiramatsu --- kernel/trace/trace_kprobe.c | 47 + kernel/trace/trace_probe_tmpl.h | 55 +

[PATCH v5 13/19] tracing: probeevent: Add symbol type

2018-03-08 Thread Masami Hiramatsu
Add "symbol" type to probeevent, which is an alias of u32 or u64 (depends on BITS_PER_LONG). This shows the result value in symbol+offset style. This type is only available with kprobe events. Signed-off-by: Masami Hiramatsu --- Changes in v2: - Add symbol type to README file. --- Documentati

[PATCH v5 14/19] x86: ptrace: Add function argument access API

2018-03-08 Thread Masami Hiramatsu
Add regs_get_argument() which returns N th argument of the function call. Note that this chooses most probably assignment, in some case it can be incorrect (e.g. passing data structure or floating point etc.) This is expected to be called from kprobes or ftrace with regs where the top of stack is

[PATCH v5 15/19] tracing: probeevent: Add $argN for accessing function args

2018-03-08 Thread Masami Hiramatsu
Add $argN special fetch variable for accessing function arguments. This allows user to trace the Nth argument easily at the function entry. Note that this returns most probably assignment of registers and stacks. In some case, it may not work well. If you need to access correct registers or stacks

[PATCH] scsi: Replace sdev_printk with printk_deferred to avoid

2018-03-08 Thread Wen Yang
When scsi disks went wrong frequently, and with serial console attached, tasks may be blocked in the following flow for more than 10s: [ 557.369580] <> [] blkcg_print_blkgs+0x76/0xf0 》 wait for blkg->q->queue_lock [ 557.369581] [] cfqg_print_rwstat_recursive+0x36/0x40 [ 557.369583] [

[PATCH v5 16/19] tracing: probeevent: Add array type support

2018-03-08 Thread Masami Hiramatsu
Add array type support for probe events. This allows user to get arraied types from memory address. The array type syntax is TYPE[N] Where TYPE is one of types (u8/16/32/64,s8/16/32/64, x8/16/32/64, symbol, string) and N is a fixed value less than 64. The string array type is a bit diffe

[PATCH v5 17/19] selftests: ftrace: Add a testcase for symbol type

2018-03-08 Thread Masami Hiramatsu
Add a testcase for symbol type with kprobe event. This tests good/bad syntax combinations and also the traced data. If the kernel doesn't support symbol type, it skips the test as UNSUPPORTED. Signed-off-by: Masami Hiramatsu --- Changes in v3: - Use IP/PC register to test the symbol type ---

[PATCH v5 18/19] selftests: ftrace: Add a testcase for $argN with kprobe_event

2018-03-08 Thread Masami Hiramatsu
Add a testcase for $argN with kprobe event. This tests whether the traced data is correct or not. If the kernel doesn't support $argN (depends on arch), it skips the test as UNSUPPORTED. Signed-off-by: Masami Hiramatsu --- Changes in v5: - Fix description. --- .../ftrace/test.d/kprobe/kprobe_

[PATCH v5 19/19] selftests: ftrace: Add a testcase for array type with kprobe_event

2018-03-08 Thread Masami Hiramatsu
Add a testcase for array type with kprobe event. This tests good/bad syntax combinations and also the traced data is correct in several way. If the kernel doesn't support array type, it skips the test as UNSUPPORTED. Signed-off-by: Masami Hiramatsu --- Changes in v4: - Add format field tests.

Re: [PATCH v2 2/2] ASoC: Add bindings for PCM1789

2018-03-08 Thread Mylène Josserand
Hello Rob, Thank you for the review. On Wed, 7 Mar 2018 16:30:48 -0600 Rob Herring wrote: > On Mon, Mar 05, 2018 at 01:48:17PM +0100, Mylène Josserand wrote: > > Add a device-tree binding for Texas Instrument's PCM1789 codec. > > For the moment, only I2C bus is supported but SPI could be added

Re: [PATCH] device-dax: remove redundant __func__ in dev_dbg

2018-03-08 Thread Johannes Thumshirn
Looks good, Reviewed-by: Johannes Thumshirn -- Johannes Thumshirn Storage jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG N

Re: [RFC PATCH] KVM: arm/arm64: vgic: change condition for level interrupt resampling

2018-03-08 Thread Auger Eric
Hi, On 08/03/18 08:01, Shunyong Yang wrote: > When resampling irqfds is enabled, level interrupt should be > de-asserted when resampling happens. On page 4-47 of GIC v3 > specification IHI0069D, it said, > "When the PE acknowledges an SGI, a PPI, or an SPI at the CPU > interface, the IRI changes t

Re: [PATCH v5 2/3] USB3/DWC3: Add property "snps, incr-burst-type-adjustment" for INCR burst type

2018-03-08 Thread Shawn Guo
On Tue, Mar 06, 2018 at 04:59:10PM +0800, Ran Wang wrote: > Property "snps,incr-burst-type-adjustment = , ..." for USB3.0 DWC3. > When only one value means INCRx mode with fix burst type. > When more than one value, means undefined length burst mode, USB controller > can use the length less than or

Re: [PATCH] libnvdimm: remove redundant __func__ in dev_dbg

2018-03-08 Thread Johannes Thumshirn
On Tue, Mar 06, 2018 at 08:59:11AM -0800, Dan Williams wrote: > >> diff --git a/drivers/nvdimm/badrange.c b/drivers/nvdimm/badrange.c > >> index e068d72b4357..df17f1cd696d 100644 > >> --- a/drivers/nvdimm/badrange.c > >> +++ b/drivers/nvdimm/badrange.c > >> @@ -176,8 +176,7 @@ static void set_badbl

Re: [PATCH V2 5/7] thermal/drivers/cpu_cooling: Add idle cooling device documentation

2018-03-08 Thread Pavel Machek
Hi! > >> +Under certain circumstances, the SoC reaches a temperature exceeding > >> +the allocated power budget or the maximum temperature limit. The > > > > I don't understand. Power budget is in W, temperature is in > > kelvin. Temperature can't exceed power budget AFAICT. > > Yes, it is badly

Re: [PATCH v1 1/1] USB: serial: Add boundry check for read_urbs array access

2018-03-08 Thread Oliver Neukum
Am Mittwoch, den 07.03.2018, 13:41 -0800 schrieb sathyanarayanan kuppuswamy : > > On 03/07/2018 12:58 PM, Greg KH wrote: > > So I don't see why your check is needed, what other code path would ever > > call this function in a way that the bounds check would be needed? > void usb_serial_gene

[PATCH] clk: mvebu: armada-38x: add support for missing clocks

2018-03-08 Thread Richard Genoud
Clearfog boards can come with a CPU clocked at 1600MHz (commercial) or 1333MHz (industrial). They have also some dip-switches to select a different clock (666, 800, 1066, 1200). The funny thing is that the recovery button is on the MPP34 fq selector. So, when booting an industrial board with this

[tip:x86/platform] x86/devicetree: Initialize device tree before using it

2018-03-08 Thread tip-bot for Ivan Gorinov
Commit-ID: 628df9dc5ad886b0a9b33c75a7b09710eb859ca1 Gitweb: https://git.kernel.org/tip/628df9dc5ad886b0a9b33c75a7b09710eb859ca1 Author: Ivan Gorinov AuthorDate: Wed, 7 Mar 2018 11:46:29 -0800 Committer: Thomas Gleixner CommitDate: Thu, 8 Mar 2018 09:59:53 +0100 x86/devicetree: Initiali

[tip:x86/platform] x86/devicetree: Fix device IRQ settings in DT

2018-03-08 Thread tip-bot for Ivan Gorinov
Commit-ID: 0a5169add90e43ab45ab1ba34223b8583fcaf675 Gitweb: https://git.kernel.org/tip/0a5169add90e43ab45ab1ba34223b8583fcaf675 Author: Ivan Gorinov AuthorDate: Wed, 7 Mar 2018 11:46:53 -0800 Committer: Thomas Gleixner CommitDate: Thu, 8 Mar 2018 09:59:53 +0100 x86/devicetree: Fix devi

Re: [PATCH v2] f2fs: add nowait aio support

2018-03-08 Thread Chao Yu
On 2018/3/8 15:21, Hyunchul Lee wrote: > From: Hyunchul Lee > > This patch adds nowait aio support[1]. > > Return EAGAIN if any of the following checks fail for direct I/O: > - i_rwsem is not lockable > - Blocks are not allocated at the write location > > And xfstests generic/471 is passed.

Re: [RFC/RFT][PATCH v2 2/6] sched: idle: Do not stop the tick upfront in the idle loop

2018-03-08 Thread Rafael J. Wysocki
On Thursday, March 8, 2018 12:39:12 AM CET Frederic Weisbecker wrote: > On Tue, Mar 06, 2018 at 10:02:15AM +0100, Rafael J. Wysocki wrote: > > Index: linux-pm/kernel/sched/idle.c > > === > > --- linux-pm.orig/kernel/sched/idle.c > > ++

Re: [PATCH net-next 2/4] net: stmmac: use correct barrier between coherent memory and MMIO

2018-03-08 Thread Pavel Machek
On Wed 2018-03-07 12:42:49, David Miller wrote: > From: Niklas Cassel > Date: Wed, 7 Mar 2018 18:21:57 +0100 > > > Considering this, you can drop/revert: > > 95eb930a40a0 ("net: stmmac: use correct barrier between coherent memory and > > MMIO") > > or perhaps you want me to send a revert? > > Y

Re: Atheros 1525/QCA6174 BT issue

2018-03-08 Thread Marcel Holtmann
Hi Takashi, > we've got a but report about the broken Atheros BT on the recent > kernels: > http://bugzilla.opensuse.org/show_bug.cgi?id=1082504 > > In short, btusb can't load the patch ar3k/AthrBT_0x0200.dfu, and > this could be worked around by the patch to move 0cf3:3004 blacklist > entry

Re: [PATCH] fix compilation of 64-bit kernel with 32-bit compiler

2018-03-08 Thread Mikulas Patocka
On Thu, 8 Mar 2018, Peter Zijlstra wrote: > On Thu, Mar 08, 2018 at 01:11:26AM -0500, Mikulas Patocka wrote: > > The patch b5bc2231b8ad4387c9641f235ca0ad8cd300b6df ("objtool: Add > > retpoline validation") broke compiling 64-bit kernel with 32-bit compiler. > > > > This patch fixes the followi

[PATCH v2 3/3] ALSA: hda: Disabled unused audio controller for Dell platforms with Switchable Graphics

2018-03-08 Thread Kai-Heng Feng
Some Dell platforms (Preicsion 7510/7710/7520/7720) have a BIOS option "Switchable Graphics" (SG). When SG is enabled, we have: 00:02.0 VGA compatible controller: Intel Corporation Device 591b (rev 04) 00:1f.3 Audio device: Intel Corporation CM238 HD Audio Controller (rev 31) 01:00.0 VGA compatibl

[PATCH v2 2/3] platform/x86: dell-*: Add interface for switchable graphics status query

2018-03-08 Thread Kai-Heng Feng
On some Dell platforms, there's a BIOS option "Enable Switchable Graphics". This information is useful if we want to do different things based on this value, e.g. disable unused audio controller that comes with the discrete graphics. Signed-off-by: Kai-Heng Feng --- v2: Mario suggested to squash

[PATCH v2 1/3] dell-led: Change dell-led.h to dell-common.h

2018-03-08 Thread Kai-Heng Feng
This header will be used for more than just led. Change it to a more generic name. Signed-off-by: Kai-Heng Feng --- v2: Mario suggested to squash the HDA part into the same series. drivers/platform/x86/dell-laptop.c | 2 +- include/linux/{dell-led.h => dell-common.h} | 4 ++-- sound/pc

Re: [PATCH v1 2/9] PCI/PM: Clear PCIe PME Status bit in core, not PCIe port driver

2018-03-08 Thread Rafael J. Wysocki
On Thursday, March 8, 2018 9:03:31 AM CET Lukas Wunner wrote: > On Wed, Mar 07, 2018 at 12:13:34AM -0600, Bjorn Helgaas wrote: > > From: Bjorn Helgaas > > > > fe31e69740ed ("PCI/PCIe: Clear Root PME Status bits early during system > > resume") added a .resume_noirq() callback to the PCIe port dri

Re: [PATCH V2 2/3] efi: Introduce efi_rts_workqueue and some infrastructure to invoke all efi_runtime_services()

2018-03-08 Thread Miguel Ojeda
On Thu, Mar 8, 2018 at 5:22 AM, Prakhya, Sai Praneeth wrote: >> > +struct workqueue_struct *efi_rts_wq; >> > + >> > static bool disable_runtime; >> > static int __init setup_noefi(char *arg) { @@ -329,6 +331,19 @@ >> > static int __init efisubsys_init(void) >> > return 0; >> > >

[RFC PATCH] scsi: ufs: Add specific callback for setting DMA mask

2018-03-08 Thread Alim Akhtar
Currently DMA mask for UFS HCI is set by reading CAP register's [64AS] bit. Some HCI controller like Exynos support 36-bit bus address. This works perfectly fine with DMA mask set as 64 in case there is no IOMMU attached to HCI. In case if HCI is behind an IOMMU, setting DMA mask as 64 bit won't wo

Re: [PATCH v5 4/4] sched/fair: update util_est only on util_avg updates

2018-03-08 Thread Peter Zijlstra
On Wed, Mar 07, 2018 at 11:38:52AM +0100, Peter Zijlstra wrote: > On Thu, Feb 22, 2018 at 05:01:53PM +, Patrick Bellasi wrote: > > @@ -5218,7 +5242,7 @@ static inline void util_est_enqueue(struct cfs_rq > > *cfs_rq, > > > > /* Update root cfs_rq's estimated utilization */ > > enqueu

Re: [PATCH] audit: set TIF_AUDIT_SYSCALL only if audit filter has been populated

2018-03-08 Thread Richard Guy Briggs
On 2018-03-07 18:43, Paul Moore wrote: > On Wed, Mar 7, 2018 at 6:41 PM, Paul Moore wrote: > > On Wed, Mar 7, 2018 at 11:48 AM, Jiri Kosina wrote: > >> On Wed, 7 Mar 2018, Andy Lutomirski wrote: > >>> Wow, this was a long time ago. > >> > >> Oh yeah; but it now resurfaced on our side, as we are o

Re: Atheros 1525/QCA6174 BT issue

2018-03-08 Thread Takashi Iwai
On Thu, 08 Mar 2018 10:06:51 +0100, Marcel Holtmann wrote: > > Hi Takashi, > > > we've got a but report about the broken Atheros BT on the recent > > kernels: > > http://bugzilla.opensuse.org/show_bug.cgi?id=1082504 > > > > In short, btusb can't load the patch ar3k/AthrBT_0x0200.dfu, and >

Re: KASAN poisoning for skb linear data

2018-03-08 Thread Dmitry Vyukov
On Mon, Jan 15, 2018 at 3:15 PM, Dmitry Vyukov wrote: > Hi, > > As far as I understand pskb_may_pull() plays important role in packet > parsing for all protocols. And we did custom fragmentation of packets > emitted via tun (IFF_NAPI_FRAGS). However, it seems that it does not > give any results (b

Re: [RFC/RFT][PATCH v2 1/6] time: tick-sched: Reorganize idle tick management code

2018-03-08 Thread Rafael J. Wysocki
On Thursday, March 8, 2018 12:18:29 AM CET Frederic Weisbecker wrote: > On Tue, Mar 06, 2018 at 10:02:01AM +0100, Rafael J. Wysocki wrote: > > Index: linux-pm/kernel/time/tick-sched.c > > === > > --- linux-pm.orig/kernel/time/tick-sche

[tip:x86/pti] x86/spectre_v2: Don't check microcode versions when running under hypervisors

2018-03-08 Thread tip-bot for Konrad Rzeszutek Wilk
Commit-ID: 36268223c1e9981d6cfc33aff8520b3bde4b8114 Gitweb: https://git.kernel.org/tip/36268223c1e9981d6cfc33aff8520b3bde4b8114 Author: Konrad Rzeszutek Wilk AuthorDate: Mon, 26 Feb 2018 09:35:01 -0500 Committer: Thomas Gleixner CommitDate: Thu, 8 Mar 2018 10:13:02 +0100 x86/spectre_v2

[tip:x86/pti] x86/microcode/intel: Check microcode revision before updating sibling threads

2018-03-08 Thread tip-bot for Ashok Raj
Commit-ID: c182d2b7d0ca48e0d6ff16f7d883161238c447ed Gitweb: https://git.kernel.org/tip/c182d2b7d0ca48e0d6ff16f7d883161238c447ed Author: Ashok Raj AuthorDate: Wed, 28 Feb 2018 11:28:41 +0100 Committer: Thomas Gleixner CommitDate: Thu, 8 Mar 2018 10:19:25 +0100 x86/microcode/intel: Check

[tip:x86/pti] x86/microcode/intel: Writeback and invalidate caches before updating microcode

2018-03-08 Thread tip-bot for Ashok Raj
Commit-ID: 91df9fdf51492aec9fed6b4cbd33160886740f47 Gitweb: https://git.kernel.org/tip/91df9fdf51492aec9fed6b4cbd33160886740f47 Author: Ashok Raj AuthorDate: Wed, 28 Feb 2018 11:28:42 +0100 Committer: Thomas Gleixner CommitDate: Thu, 8 Mar 2018 10:19:25 +0100 x86/microcode/intel: Write

[tip:x86/pti] x86/microcode: Get rid of struct apply_microcode_ctx

2018-03-08 Thread tip-bot for Borislav Petkov
Commit-ID: 854857f5944c59a881ff607b37ed9ed41d031a3b Gitweb: https://git.kernel.org/tip/854857f5944c59a881ff607b37ed9ed41d031a3b Author: Borislav Petkov AuthorDate: Wed, 28 Feb 2018 11:28:40 +0100 Committer: Thomas Gleixner CommitDate: Thu, 8 Mar 2018 10:19:25 +0100 x86/microcode: Get r

[tip:x86/pti] x86/microcode/intel: Look into the patch cache first

2018-03-08 Thread tip-bot for Borislav Petkov
Commit-ID: d8c3b52c00a05036e0a6b315b4b17921a7b67997 Gitweb: https://git.kernel.org/tip/d8c3b52c00a05036e0a6b315b4b17921a7b67997 Author: Borislav Petkov AuthorDate: Wed, 28 Feb 2018 11:28:44 +0100 Committer: Thomas Gleixner CommitDate: Thu, 8 Mar 2018 10:19:26 +0100 x86/microcode/intel:

[tip:x86/pti] x86/microcode: Do not upload microcode if CPUs are offline

2018-03-08 Thread tip-bot for Ashok Raj
Commit-ID: 30ec26da9967d0d785abc24073129a34c3211777 Gitweb: https://git.kernel.org/tip/30ec26da9967d0d785abc24073129a34c3211777 Author: Ashok Raj AuthorDate: Wed, 28 Feb 2018 11:28:43 +0100 Committer: Thomas Gleixner CommitDate: Thu, 8 Mar 2018 10:19:26 +0100 x86/microcode: Do not uplo

[tip:x86/pti] x86/microcode: Request microcode on the BSP

2018-03-08 Thread tip-bot for Borislav Petkov
Commit-ID: cfb52a5a09c8ae3a1dafb44ce549fde5b69e8117 Gitweb: https://git.kernel.org/tip/cfb52a5a09c8ae3a1dafb44ce549fde5b69e8117 Author: Borislav Petkov AuthorDate: Wed, 28 Feb 2018 11:28:45 +0100 Committer: Thomas Gleixner CommitDate: Thu, 8 Mar 2018 10:19:26 +0100 x86/microcode: Reque

[tip:x86/pti] x86/microcode: Synchronize late microcode loading

2018-03-08 Thread tip-bot for Ashok Raj
Commit-ID: a5321aec6412b20b5ad15db2d6b916c05349dbff Gitweb: https://git.kernel.org/tip/a5321aec6412b20b5ad15db2d6b916c05349dbff Author: Ashok Raj AuthorDate: Wed, 28 Feb 2018 11:28:46 +0100 Committer: Thomas Gleixner CommitDate: Thu, 8 Mar 2018 10:19:26 +0100 x86/microcode: Synchronize

  1   2   3   4   5   6   7   8   9   10   >