[PATCH V2] i2c: designware: fix wrong tx/rx fifo for ACPI

2016-12-05 Thread Tin Huynh
ACPI always sets txfifo and rxfifo to 32. This configuration will cause problem if the IP core supports a fifo size of less than 32. The driver should read the fifo size from the IP and select the smaller one of the two. Signed-off-by: Tin Huynh --- drivers/i2c/busses/i2c-designware-platdrv.c

Re: [PATCH] doc: Explain light-handed markup preference a bit better

2016-12-05 Thread Peter Zijlstra
On Tue, Nov 29, 2016 at 02:17:52PM +0100, Daniel Vetter wrote: > Hi Peter, > > On Tue, Nov 29, 2016 at 10:23:14AM +0100, Daniel Vetter wrote: > > We already had a super-short blurb, but worth extending it I think: > > We're still pretty far away from anything like a consensus, but > > there's clea

Re: [PATCH v3 4/4] x86/asm: Rewrite sync_core() to use IRET-to-self

2016-12-05 Thread Borislav Petkov
On Mon, Dec 05, 2016 at 01:32:43PM -0800, Andy Lutomirski wrote: > Aside from being excessively slow, CPUID is problematic: Linux runs > on a handful of CPUs that don't have CPUID. Use IRET-to-self > instead. IRET-to-self works everywhere, so it makes testing easy. > > For reference, On my lapto

Re: [PATCH 11/18] arm64: ilp32: share aarch32 syscall handlers

2016-12-05 Thread Yury Norov
On Mon, Dec 05, 2016 at 05:12:43PM +, Catalin Marinas wrote: > On Fri, Oct 21, 2016 at 11:33:10PM +0300, Yury Norov wrote: > > off_t is passed in register pair just like in aarch32. > > In this patch corresponding aarch32 handlers are shared to > > ilp32 code. > [...] > > +/* > > + * Note: off

[PATCH] media/platform/exynos4-is/fimc-is - Unmap region obtained by of_iomap

2016-12-05 Thread Arvind Yadav
Free memory mapping, if fimc_is_probe is not successful. Signed-off-by: Arvind Yadav --- drivers/media/platform/exynos4-is/fimc-is.c |8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/exynos4-is/fimc-is.c b/drivers/media/platform/exynos4-is/fim

[PATCH v4 01/18 -cleanup] perf build: Check LLVM version in feature check

2016-12-05 Thread Wang Nan
Cancel builtin llvm and clang support when LLVM version is less than 3.9.0: following commits uses newer API. Since Clang/LLVM's API is not guaranteed to be stable, add a test-llvm-version.cpp feature checker, issue warning if LLVM found in compiling environment is not tested yet. Signed-off-by:

Re: [PATCH 1/2] ARM: dts: sun8i: Specify memblock for Nano Pi M1

2016-12-05 Thread Milo Kim
On 12/05/2016 05:09 PM, Maxime Ripard wrote: On Mon, Dec 05, 2016 at 11:00:31AM +0900, Milo Kim wrote: The board has DDR3 512MB. This patch helps scanning the memory and adding memblock through the DT. Signed-off-by: Milo Kim --- arch/arm/boot/dts/sun8i-h3-nanopi-m1.dts | 5 + 1 file chan

[PATCH v4 05/18] perf clang: Pass CFLAGS to builtin clang

2016-12-05 Thread Wang Nan
Pass -DLINUX_VERSION_CODE, -D__NR_CPUS__, llvm.clang-opt config options and CFLAGS detected by kbuild detector to builtin clang so BPF scripts can use kernel headers and user defined options like external clang compiler. Test: # perf record -v --dry-run -e tools/perf/tests/bpf-script-test-kbuild

[PATCH v4 03/18] perf clang: Cleanup clang options

2016-12-05 Thread Wang Nan
Follow Alexei's suggestion, remove "-ferror-limit=19", "-fmessage-length=127", "-vectorize-loops" and "-vectorize-slp" clang options: they are meaningless. Add comment for "-Wno-unused-value" and "-Wno-pointer-sign". Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc

[PATCH v4 00/18] perf clang: Builtin clang and perfhook support

2016-12-05 Thread Wang Nan
This is version 4 of perf builtin clang and perfhook patch series. In this patch set: 1. Cleanup options passed to clang. 2. Check LLVM version. Fail if llvm version < 3.9.0, and warn when it > 3.9.0. More version will be allowed after releasing of LLVM 3.9.1 / 4.0.0. 3. Support dy

[PATCH v4 04/18] perf clang: Pass full path to builtin clang

2016-12-05 Thread Wang Nan
If clang changes its working directory, relative path passed to perf_clang__compile_bpf() becomes invalid. Before running clang, convert it to absolute path so file can be found even working directory is changed. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc: He

[PATCH v4 02/18] perf build: Support dynamic linking clang libraries

2016-12-05 Thread Wang Nan
Statical linking result a very large perf executable. This patch makes perf link clang libraries dynamically by using '-lclangBasic' style linking option. If dynamic clang libraries are detected, gcc will use them by default. Test result: (Build clang/llvm dynamically by setting -DBUILD_SHARED_

[PATCH v4 01/18] perf build: Check LLVM version in feature check

2016-12-05 Thread Wang Nan
Cancel builtin llvm and clang support when LLVM version is less than 3.9.0: following commits uses newer API. Since Clang/LLVM's API is not guaranteed to be stable, add a test-llvm-version.cpp feature checker, issue warning if LLVM found in compiling environment is not tested yet. Signed-off-by:

Re: [PATCH v4 01/18] perf build: Check LLVM version in feature check

2016-12-05 Thread Wangnan (F)
On 2016/12/6 15:13, Wang Nan wrote: Cancel builtin llvm and clang support when LLVM version is less than 3.9.0: following commits uses newer API. Since Clang/LLVM's API is not guaranteed to be stable, add a test-llvm-version.cpp feature checker, issue warning if LLVM found in compiling environ

Re: [PATCH] drm/amdgpu: don't add files at control minor debugfs directory

2016-12-05 Thread Daniel Vetter
On Tue, Dec 06, 2016 at 02:01:37AM +, Mike Lothian wrote: > Feel free to add a tested by from myself > > Thanks for the fix > > On Mon, 5 Dec 2016 at 20:33 Deucher, Alexander > wrote: > > > > -Original Message- > > > From: Nicolai Stange [mailto:nicsta...@gmail.com] > > > Sent: Mond

[PATCH v4 07/18] perf clang jit: Insignt BPF and JIT functions in a Module

2016-12-05 Thread Wang Nan
Identify BPF functions, JIT functions and maps during init. Functions in section starting with "perfhook:" are JIT functions. They will be JIT compiled and hooked at perfhooks. During init of PerfModule, mark JIT functions as AvailableExternallyLinkage. LLVM skips functions with linkage like this

[PATCH v4 16/18] perf clang: Include helpers to BPF scripts

2016-12-05 Thread Wang Nan
Automatically include some commonly used macros and struct definitions into BPF scripts. Script writers are no longer required to define 'SEC' and 'struct bpf_map_def' in each of their scripts. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc: He Kuang Cc: Jiri Ol

[PATCH v4 10/18] perf clang jit: Actually JIT and hook in bpf loader

2016-12-05 Thread Wang Nan
Makes perf_clang__compile_bpf() actually uses clang jit to compile perf hooks. Returns a map through perf_clang__compile_bpf(), and set hooks after bpf_object is created. After this path jitting takes actions for bpf loader. For example: $ cat ./test.c /

[PATCH v4 17/18] perf clang builtin: Define hook helpers by default

2016-12-05 Thread Wang Nan
Append declarations of helpers to default include file. All functions appear in exported_funcs array should be declared here except test__clang_callback, because it is used for perf test only. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc: He Kuang Cc: Jiri Ols

[PATCH v4 18/18] perf clang jit: Export getpid() to perf hook

2016-12-05 Thread Wang Nan
After this patch perf hooks can retrive pid of perf itself by calling getpid. It is important for excluding event from perf. This commit is also an example to show how to export more helpers to hooked script. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc: He Ku

[PATCH v4 11/18] perf clang jit: Collect the lowest address in maps section as map_base

2016-12-05 Thread Wang Nan
During jitting, find the lowest address in maps section and store its value to _map_base. Pass its value out through perf_clang__compile_bpf(). map_base is useful for jitted functions accessing BPF maps. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc: He Kuang C

[PATCH v4 12/18] perf clang jit: Retrive fd of BPF map from its offset

2016-12-05 Thread Wang Nan
bpf__map_fd() is introduced to retrive fd of a BPF map through its offset in BPF object. This function is going be used in further commits which allow scripts jitted by builtin clang access BPF maps. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc: He Kuang Cc: J

[PATCH v4 06/18] perf clang jit: Wrap llvm::Module using PerfModule

2016-12-05 Thread Wang Nan
Use PerfModule wrap llvm::Module and return perf::PerfModule in APIs to replace llvm::Module. Following commits are going to add new functions to PerfModule. getBPFObjectFromModule is merged to a method of perf::PerfModule. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovo

[PATCH v4 08/18] perf clang jit: add PerfModule::doJIT to JIT perfhook functions

2016-12-05 Thread Wang Nan
PerfModule::doJIT JIT compile perfhook functions and saves result into a map. Add a test case for it. At this stage perfhook functions can do no useful things because they can't invoke external functions and can't return value. Following commits are going to make improvment. Don't hook functions

[PATCH v4 09/18] perf clang jit: Export functions for jitted code

2016-12-05 Thread Wang Nan
After this patch functions attached on perf hooks is allowed to invoke external functions. Add a testcase for this feature. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc: He Kuang Cc: Jiri Olsa Cc: Zefan Li Cc: pi3or...@163.com --- tools/perf/tests/Build

[PATCH v4 15/18] perf clang: Declare BPF functions for BPF scripts automatically

2016-12-05 Thread Wang Nan
Use Clang's OverlayFileSystem, add '-include' options to make builtin clang define BPF functions. After this patch BPF script writer needn't define BPF functions by their own. Add -DBUILTIN_CLANG_DEFAULT_INCLUDE to builtin clang so when adopting builtin clang BPF functions can be automatically def

Re: [PATCH] SPCR: check bit width for the 16550 UART

2016-12-05 Thread Jon Masters
On 12/06/2016 01:53 AM, Jon Masters wrote: > On 12/06/2016 01:34 AM, Jon Masters wrote: >> On 12/05/2016 10:55 PM, Duc Dang wrote: >>> On Mon, Dec 5, 2016 at 6:27 PM, Jon Masters wrote: > ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301") /* > Device Properties for _DSD */,

[PATCH v4 13/18] perf clang jit: Allow jitted perf hook access BPF maps

2016-12-05 Thread Wang Nan
Newly introduced jit-helpers.[ch] defines a series of helpers which helps jitted perf hook functions accessing BPF maps defined in their BPF scripts. The helpers fetches fd of 'struct bpf_map' from 'struct bpf_object' and the address of 'struct bpf_map_def' in jitted file. 'struct bpf_object' is th

[PATCH v4 14/18] perf clang: Link BPF functions declaration into perf

2016-12-05 Thread Wang Nan
Hardcode BPF functions declarations. Following commits will utilizes clang's virtual file system to automatically include this header to all BPF scripts. The generated header is wrapped by a BUILTIN_CLANG_NO_DEFAULT_INCLUDE. This macro will be used by following commits to allow user disable this f

Re: [PATCH v2 1/2] ALSA: usb-audio: more tolerant packetsize

2016-12-05 Thread Takashi Iwai
On Tue, 06 Dec 2016 06:46:14 +0100, Jiada Wang wrote: > > From: Andreas Pape > > since commit 57e6dae1087b ("ALSA: usb-audio: do not trust too-big > wMaxPacketSize values"), the expected packetsize is always limited > to nominal + 25%. It was discovered, that some devices have a much > higher ji

Re: [PATCH v6 3/3] sound/usb: Use Media Controller API to share media resources

2016-12-05 Thread Takashi Iwai
On Mon, 05 Dec 2016 23:44:30 +0100, Shuah Khan wrote: > > On 11/30/2016 03:01 PM, Shuah Khan wrote: > > Change ALSA driver to use Media Controller API to share media resources > > with DVB, and V4L2 drivers on a AU0828 media device. > > > > Media Controller specific initialization is done after s

Re: [PATCH 1/3] ARM: dts: imx6: Add Savageboard common file

2016-12-05 Thread Milo Kim
On 12/05/2016 08:36 PM, Fabio Estevam wrote: On Sun, Dec 4, 2016 at 11:07 PM, Milo Kim wrote: + regulators { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <0>; + + reg_3p3v: regulator@0 { +

Re: [PATCH 01/39] Annotate module params that specify hardware parameters (eg. ioport)

2016-12-05 Thread Greg KH
On Mon, Dec 05, 2016 at 09:12:27PM +, One Thousand Gnomes wrote: > On Thu, 01 Dec 2016 16:02:26 + > David Howells wrote: > > > Greg KH wrote: > > > > > Also, I think Alan's comment about it the last time it came up was more > > > like > > > a "look at all of the other ways you could do

[PATCH] net: return value of skb_linearize should be handled in Linux kernel

2016-12-05 Thread Zhouyi Zhou
kmalloc_reserve may fail to allocate memory inside skb_linearize, which means skb_linearize's return value should not be ignored. Following patch correct the uses of skb_linearize. Compiled in x86_64 Signed-off-by: Zhouyi Zhou --- drivers/infiniband/hw/nes/nes_nic.c | 5 +++-- drive

[PATCH v2 3/3] ARM: dts: imx6: Support Savageboard quad

2016-12-05 Thread Milo Kim
Use common board file and support SATA interface additionally. Signed-off-by: Milo Kim --- arch/arm/boot/dts/imx6q-savageboard.dts | 54 + 1 file changed, 54 insertions(+) create mode 100644 arch/arm/boot/dts/imx6q-savageboard.dts diff --git a/arch/arm/boot/dts/

[PATCH v2 2/3] ARM: dts: imx6: Support Savageboard dual

2016-12-05 Thread Milo Kim
Common savageboard DT file is used for board support. Signed-off-by: Milo Kim --- arch/arm/boot/dts/imx6dl-savageboard.dts | 50 1 file changed, 50 insertions(+) create mode 100644 arch/arm/boot/dts/imx6dl-savageboard.dts diff --git a/arch/arm/boot/dts/imx6dl-s

[PATCH v2 1/3] ARM: dts: imx6: Add Savageboard common file

2016-12-05 Thread Milo Kim
* Memory memblock for DDR3 1GB * Regulator 3.3V for panel and backlight. * Display Enable HDMI and LVDS panel. Savageboard supports AVIC TM097TDH02 panel which is compatible with Hannstar HSD100PXN1, so reuse it. * Clock The commit d28be499c45e6 is applied to support LVDS and HDMI outp

[PATCH v2 0/3] ARM: dts: imx6: Support Poslab Savageboard dual & quad

2016-12-05 Thread Milo Kim
Poslab Savageboard is i.MX6 SoC base, but BSP code from the vendor is not mainline u-boot and kernel. Personal reason of using this board is testing etnaviv user-space driver, so I re-write device tree files based on mainline kernel for the first step. This patchset includes common DT file, dual

Re: [PATCH] USB: OHCI: pxa27x: fix warnings and errors

2016-12-05 Thread Greg Kroah-Hartman
On Mon, Dec 05, 2016 at 10:18:58PM +, csmanjuvi...@gmail.com wrote: > From: Manjunath Goudar > > This patch will fix the checkpatch.pl warnings and errors. > > Signed-off-by: Manjunath Goudar > Cc: Alan Stern > Cc: Greg Kroah-Hartman > Cc: linux-...@vger.kernel.org > Cc: linux-kernel@vger

Re: [PATCH] USB: OHCI: pxa27x: fix warnings and errors

2016-12-05 Thread Greg Kroah-Hartman
On Mon, Dec 05, 2016 at 10:18:58PM +, csmanjuvi...@gmail.com wrote: > From: Manjunath Goudar > > This patch will fix the checkpatch.pl warnings and errors. what warnings and errors? Please always be specific. And don't send a single patch to fix everything up, break it up into logical type

Re: usb:xhci: support disable usb2 LPM Remote Wakeup

2016-12-05 Thread Greg Kroah-Hartman
On Tue, Dec 06, 2016 at 01:59:00PM +0700, Thang Q. Nguyen wrote: > Hi, > Do you have any feedback on this? > > Thanks, > Thang Q. Nguyen > > On Sun, Dec 4, 2016 at 7:42 PM, Thang Q. Nguyen wrote: It has been 1 day, please relax, wait, and be patient. If after 2 weeks there has not been a respo

Re: [PATCH 00/10] vtime: Delay cputime accounting to tick

2016-12-05 Thread Martin Schwidefsky
On Tue, 6 Dec 2016 15:20:55 +1100 Paul Mackerras wrote: > On Tue, Dec 06, 2016 at 03:32:13AM +0100, Frederic Weisbecker wrote: > > This follows up Martin Schwidefsky's patch which propose to delay > > cputime accounting to the tick in order to minimize the calls to > > account_system_time() and a

Re: [PATCH 16/18] arm64: ptrace: handle ptrace_request differently for aarch32 and ilp32

2016-12-05 Thread Yury Norov
On Tue, Dec 06, 2016 at 11:55:08AM +0530, Yury Norov wrote: > On Mon, Dec 05, 2016 at 04:34:23PM +, Catalin Marinas wrote: > > On Fri, Oct 21, 2016 at 11:33:15PM +0300, Yury Norov wrote: > > > New aarch32 ptrace syscall handler is introduced to avoid run-time > > > detection of the task type. >

[PATCH] kcov: add missing #include

2016-12-05 Thread Kefeng Wang
It is needed by struct task_struct, fixes the following build problem with old gcc: ../kernel/kcov.c: In function ‘__sanitizer_cov_trace_pc’: ../kernel/kcov.c:66: error: dereferencing pointer to incomplete type .. ../kernel/kcov.c:239: error: dereferencing pointer to incomplete type S

Re: usb:xhci: support disable usb2 LPM Remote Wakeup

2016-12-05 Thread Thang Q. Nguyen
Hi, Do you have any feedback on this? Thanks, Thang Q. Nguyen On Sun, Dec 4, 2016 at 7:42 PM, Thang Q. Nguyen wrote: > From: Thang Nguyen > > As per USB 2.0 link power management addendum ECN, table 1-2, page 4, > device or host initiated via resume signaling; device-initiated resumes > can be

RE: [LINUX RFC v4 3/4] mtd: spi-nor: add stripe support

2016-12-05 Thread Naga Sureshkumar Relli
Hi Cyrille, > -Original Message- > From: Cyrille Pitchen [mailto:cyrille.pitc...@atmel.com] > Sent: Monday, December 05, 2016 6:34 PM > To: Naga Sureshkumar Relli ; broo...@kernel.org; > michal.si...@xilinx.com; Soren Brinkmann ; Harini > Katakam ; Punnaiah Choudary Kalluri > > Cc: linux-

Re: [PATCH] SPCR: check bit width for the 16550 UART

2016-12-05 Thread Jon Masters
On 12/06/2016 01:34 AM, Jon Masters wrote: > On 12/05/2016 10:55 PM, Duc Dang wrote: >> On Mon, Dec 5, 2016 at 6:27 PM, Jon Masters wrote: >>> Hi Duc, all, >>> >>> So after regenerating the initrd override (I must have fat fingered) >>> it is now detecting the correct bit width on boot (attached d

Re: [PATCH v6 3/3] sound/usb: Use Media Controller API to share media resources

2016-12-05 Thread Takashi Iwai
On Wed, 30 Nov 2016 23:01:16 +0100, Shuah Khan wrote: > > --- a/sound/usb/card.c > +++ b/sound/usb/card.c (snip) > @@ -616,6 +617,11 @@ static int usb_audio_probe(struct usb_interface *intf, > if (err < 0) > goto __error; > > + if (quirk && quirk->media_device) { > +

Re: [PATCH] vfio/pci: Support error recovery

2016-12-05 Thread Cao jin
On 12/06/2016 11:46 AM, Michael S. Tsirkin wrote: > On Thu, Dec 01, 2016 at 09:40:23PM +0800, Cao jin wrote: >> >> >> On 12/01/2016 12:51 PM, Michael S. Tsirkin wrote: >>> On Wed, Nov 30, 2016 at 09:04:13PM -0700, Alex Williamson wrote: On Sun, 27 Nov 2016 19:34:17 +0800 Cao jin wrote:

Re: [PATCH] iommu/intel-iommu: fix pasid table size encoding

2016-12-05 Thread Jacob Pan
Hi David, Any thoughts on this one? Without this patch Kabylake would fail with IOMMU error when svm is initialized. Thanks, Jacob On Thu, 1 Dec 2016 13:50:26 -0800 Jacob Pan wrote: > Different encodings are used to represent supported PASID bits > and number of PASID table entries. > The cu

Re: [PATCH v3 2/3] powerpc: get hugetlbpage handling more generic

2016-12-05 Thread Christophe LEROY
Le 06/12/2016 à 02:18, Scott Wood a écrit : On Wed, 2016-09-21 at 10:11 +0200, Christophe Leroy wrote: Today there are two implementations of hugetlbpages which are managed by exclusive #ifdefs: * FSL_BOOKE: several directory entries points to the same single hugepage * BOOK3S: one upper level

Re: [PATCH] SPCR: check bit width for the 16550 UART

2016-12-05 Thread Jon Masters
On 12/05/2016 10:55 PM, Duc Dang wrote: > On Mon, Dec 5, 2016 at 6:27 PM, Jon Masters wrote: >> Hi Duc, all, >> >> So after regenerating the initrd override (I must have fat fingered) >> it is now detecting the correct bit width on boot (attached dmesg log). >> >> HOWEVER while the console does co

Re: [PATCH v5 13/14] ASoC: add simple-graph-scu-card document

2016-12-05 Thread Kuninori Morimoto
Hi Rob > > +Simple-Graph-SCU-Card: > > + > > +Simple-Graph-SCU-Card specifies audio DAI connections of SoC <-> codec. > > +It is based on common bindings for device graphs. > > +see ${LINUX}/Documentation/devicetree/bindings/graph.txt > > + > > +Basically, Simple-Graph-SCU-Card property is same a

[PATCH 3/3] powerpc: enable support for GCC plugins

2016-12-05 Thread Andrew Donnellan
Enable support for GCC plugins on powerpc. Add an additional version check in gcc-plugins-check to advise users to upgrade to gcc 5.2+ on powerpc to avoid issues with header files (gcc <= 4.6) or missing copies of rs6000-cpus.def (4.8 to 5.1 on 64-bit targets). Signed-off-by: Andrew Donnellan -

[PATCH 1/3] gcc-plugins: fix definition of DISABLE_LATENT_ENTROPY_PLUGIN

2016-12-05 Thread Andrew Donnellan
The variable DISABLE_LATENT_ENTROPY_PLUGIN is defined when CONFIG_PAX_LATENT_ENTROPY is set. This is leftover from the original PaX version of the plugin code and doesn't actually exist. Change the condition to depend on CONFIG_GCC_PLUGIN_LATENT_ENTROPY instead. Fixes: 38addce8b600 ("gcc-plugins:

[PATCH 2/3] powerpc: correctly disable latent entropy GCC plugin on prom_init.o

2016-12-05 Thread Andrew Donnellan
Commit 38addce8b600 ("gcc-plugins: Add latent_entropy plugin") excludes certain powerpc early boot code from the latent entropy plugin by adding appropriate CFLAGS. It looks like this was supposed to cover prom_init.o, but ended up saying init.o (which doesn't exist) instead. Fix the typo. Fixes:

[patch net v4] net: fec: fix compile with CONFIG_M5272

2016-12-05 Thread Nikita Yushchenko
Commit 80cca775cdc4 ("net: fec: cache statistics while device is down") introduced unconditional statistics-related actions. However, when driver is compiled with CONFIG_M5272, staticsics-related definitions do not exist, which results into build errors. Fix that by adding explicit handling of !d

Re: [PATCH 16/18] arm64: ptrace: handle ptrace_request differently for aarch32 and ilp32

2016-12-05 Thread Yury Norov
On Mon, Dec 05, 2016 at 04:34:23PM +, Catalin Marinas wrote: > On Fri, Oct 21, 2016 at 11:33:15PM +0300, Yury Norov wrote: > > New aarch32 ptrace syscall handler is introduced to avoid run-time > > detection of the task type. > > What's wrong with the run-time detection? If it's just to avoid

Re: [PATCH v8 2/3] perf annotate: Support jump instruction with target as second operand

2016-12-05 Thread Ravi Bangoria
Hi Arnaldo, Hmm, so it's difficult to find example of this when we use debuginfo. Because... Jump__parse tries to look for two things 'offset' and 'target address'. objdump with debuginfo will include offset in assembly f.e. annotate of 'smp_call_function_single' with perf.data and vmlinux I sha

Re: [PATCH] vfio/pci: Support error recovery

2016-12-05 Thread Cao jin
On 12/06/2016 12:17 AM, Alex Williamson wrote: > On Mon, 5 Dec 2016 13:52:03 +0800 > Cao jin wrote: > >> On 12/04/2016 11:30 PM, Alex Williamson wrote: >>> On Sun, 4 Dec 2016 20:16:42 +0800 >>> Cao jin wrote: >>> On 12/01/2016 10:55 PM, Alex Williamson wrote: > On Thu, 1 Dec 2016

Re: i8042 error at booting an Intel Cherry Trail-based device

2016-12-05 Thread Dmitry Torokhov
On December 5, 2016 4:56:05 PM PST, Marcos Paulo de Souza wrote: >Hi Takashi, > >On Fri, Dec 02, 2016 at 11:55:07AM +0100, Takashi Iwai wrote: >> On Thu, 01 Dec 2016 08:19:46 +0100, >> Takashi Iwai wrote: >> > >> > On Thu, 01 Dec 2016 03:29:23 +0100, >> > Dmitry Torokhov wrote: >> > > >> > > Hi

[RESEND PATCH V3 4/4] gpio: pv88080: Add GPIO function support

2016-12-05 Thread Eric Jeong
From: Eric Jeong This patch adds support for PV88080 PMIC GPIOs. PV88080 has two configurable GPIOs. Kconfig and Makefile are updated to reflect support for PV88080 PMIC GPIO. Signed-off-by: Eric Jeong --- This patch applies against linux-next and next-20161117 Hi, Change since PATCH V2

[PATCH 2/2] ALSA: usb-audio: avoid setting of sample rate multiple times on bus

2016-12-05 Thread Jiada Wang
From: Daniel Girnus Some of userland applications call 'snd_pcm_hw_params()' and 'snd_pcm_hw_prepare()' sequentially, which means 'snd_pcm_hw_prepare()' is called twice and the second 'snd_pcm_hw_prepare()' is called in 'SNDRV_PCM_STATE_PREPARED' state. Some devices are not able to manage this a

[PATCH v2 1/2] ALSA: usb-audio: more tolerant packetsize

2016-12-05 Thread Jiada Wang
From: Andreas Pape since commit 57e6dae1087b ("ALSA: usb-audio: do not trust too-big wMaxPacketSize values"), the expected packetsize is always limited to nominal + 25%. It was discovered, that some devices have a much higher jitter in used packetsizes than 25% which would result in BABBLE condit

[PATCH 0/2 v2] usb-audio misc fix

2016-12-05 Thread Jiada Wang
This patch set contains the following patches Andreas Pape (1): ALSA: usb-audio: more tolerant packetsize Daniel Girnus (1): ALSA: usb-audio: avoid setting of sample rate multiple times on bus sound/usb/endpoint.c | 4 ++-- sound/usb/pcm.c | 21 +++-- 2 files changed,

Re: [PATCH] xen-scsifront: Add a missing call to kfree

2016-12-05 Thread Juergen Gross
On 05/12/16 21:53, Dan Carpenter wrote: > On Mon, Nov 21, 2016 at 07:01:36AM +0100, Juergen Gross wrote: >> On 19/11/16 19:22, Quentin Lambert wrote: >>> Most error branches following the call to kmalloc contain >>> a call to kfree. This patch add these calls where they are >>> missing. >>> >>> Thi

Re: Tearing down DMA transfer setup after DMA client has finished

2016-12-05 Thread Vinod Koul
On Tue, Nov 29, 2016 at 07:25:02PM +0100, Mason wrote: Sorry I was away for a week in meeting with laptop down. > [ Nothing new added below. > Vinod, was the description of my HW's quirks clear enough? Yes > Is there a way to write a driver within the existing framework? I think so, lookin

Re: [PATCH] vfio/pci: Support error recovery

2016-12-05 Thread Alex Williamson
On Tue, 6 Dec 2016 05:55:28 +0200 "Michael S. Tsirkin" wrote: > On Mon, Dec 05, 2016 at 09:17:30AM -0700, Alex Williamson wrote: > > If you're going to take the lead for these AER patches, I would > > certainly suggest that understanding the reasoning behind the bus reset > > behavior is a centra

Re: [RESEND PATCH V6 5/6] dmaengine: pl330: Make sure microcode is privileged

2016-12-05 Thread Vinod Koul
On Fri, Dec 02, 2016 at 08:25:08PM +0530, Sricharan R wrote: > From: Mitchel Humpherys > > The PL330 performs privileged instruction fetches. This can result in > SMMU permission faults on SMMUs that implement the ARMv8 VMSA, which > specifies that mappings that are writeable at one execution le

Re: [PATCH 1/2] dmaengine: ioat: set error code on failures

2016-12-05 Thread Vinod Koul
On Fri, Dec 02, 2016 at 10:49:01PM +0800, Pan Bian wrote: > In function ioat_dma_self_test(), when the calls to dma_mapping_error() > fails, the value of return variable err is 0 (indicates no error). As a > result, the return value may be inconsistent with the execution status. > This patch fix

RE: [PATCH kernel v5 5/5] virtio-balloon: tell host vm's unused page info

2016-12-05 Thread Li, Liang Z
> >>> + mutex_lock(&vb->balloon_lock); > >>> + > >>> + for (order = MAX_ORDER - 1; order >= 0; order--) { > >> > >> I scratched my head for a bit on this one. Why are you walking over > >> orders, > >> *then* zones. I *think* you're doing it because you can efficiently > >> fill the bitmaps at a

boot hang issue on S5PV210 with the latest kernel

2016-12-05 Thread Yong Li
Hi all, I am testing the latest kernel on my S5PV210 ARM boards. I found I have to add the kputc debug in __armv7_mmu_cache_on in boot/compressed/head.S: mov r11, r3 kputc #'x' mov r3, r11 Without the above kputc, the kernel boot hang, there is no any output on UART Any suggestions? Thanks, Yon

linux-next: Tree for Dec 6

2016-12-05 Thread Stephen Rothwell
Hi all, Changes since 20161205: Removed tree: kvm-ppc (maintainer transition) Renamed tree: kvm-ppc-paulus to kvm-ppc The powerpc allyesconfig build fails for this release. The pinctrl tree still had its build failure so I used the version from next-20161202. The sound-asoc tree gained a

Re: [PATCH 00/10] vtime: Delay cputime accounting to tick

2016-12-05 Thread Paul Mackerras
On Tue, Dec 06, 2016 at 03:32:13AM +0100, Frederic Weisbecker wrote: > This follows up Martin Schwidefsky's patch which propose to delay > cputime accounting to the tick in order to minimize the calls to > account_system_time() and alikes as these functions can carry quite some > overhead: > >

Re: [PATCH 06/10] perf sched timehist: Introduce struct idle_time_data

2016-12-05 Thread David Ahern
On 12/5/16 7:40 PM, Namhyung Kim wrote: > The struct idle_time_data is to keep idle stats with callchains entering > to the idle task. The normal thread_runtime calculation is done > transparently since it extends the struct thread_runtime. > > Signed-off-by: Namhyung Kim > --- > tools/perf/bui

Re: [PATCH 1/1] vfio iommu type1: set size to PAGE_SIZE while looking for iova in dma list

2016-12-05 Thread Kirti Wankhede
On 12/6/2016 4:24 AM, Alex Williamson wrote: > On Tue, 6 Dec 2016 02:38:01 +0530 > Kirti Wankhede wrote: > >> In the functions of pin_pages/unpin_pages from mdev vendor driver, >> vfio_find_dma() should be called with size as PAGE_SIZE instead of 0. >> vfio_find_dma() searches for the range in

Re: [PATCH 03/10] perf sched timehist: Handle zero sample->tid properly

2016-12-05 Thread David Ahern
On 12/5/16 7:59 PM, Namhyung Kim wrote: > No, I didn't investigate it yet. Looking at the original code, you > seemed to have same issue and workaround like checking prev_pid or > callchains, right? most likely. As I responded on another patch, the sched timehist command has been used for years

Re: [PATCH 05/10] perf sched timehist: Cleanup idle_max_cpu handling

2016-12-05 Thread David Ahern
On 12/5/16 7:40 PM, Namhyung Kim wrote: > It treats the idle_max_cpu little bit confusingly IMHO. Let's make it > more straight forward. > > Signed-off-by: Namhyung Kim > --- > tools/perf/builtin-sched.c | 9 - > 1 file changed, 4 insertions(+), 5 deletions(-) > Seems correct. I've lo

Re: [PATCH 03/10] perf sched timehist: Handle zero sample->tid properly

2016-12-05 Thread Namhyung Kim
Hi David, On Tue, Dec 6, 2016 at 12:52 PM, David Ahern wrote: > On 12/5/16 7:40 PM, Namhyung Kim wrote: >> Sometimes samples have tid of 0 but non-0 pid. It ends up having a > > Any idea how that happens? No, I didn't investigate it yet. Looking at the original code, you seemed to have same is

Re: [PATCH 1/1] vfio iommu type1: WARN_ON if notifier block is not unregistered

2016-12-05 Thread Kirti Wankhede
On 12/6/2016 4:56 AM, Alex Williamson wrote: > On Tue, 6 Dec 2016 02:38:20 +0530 > Kirti Wankhede wrote: > >> mdev vendor driver should unregister the iommu notifier since the vfio >> iommu can persist beyond the attachment of the mdev group. WARN_ON will >> show warning if vendor driver doesn'

Re: [PATCH 01/10] perf sched: Cleanup option processing

2016-12-05 Thread David Ahern
On 12/5/16 7:40 PM, Namhyung Kim wrote: > The -D/--dump-raw-trace option is in the parent option so no need to > repeat it. Also move -f/--force option to parent as it's common to > handle data file. > > Signed-off-by: Namhyung Kim > --- > tools/perf/builtin-sched.c | 7 ++- > 1 file change

Re: [PATCH 04/10] perf sched timehist: Split is_idle_sample()

2016-12-05 Thread David Ahern
On 12/5/16 7:40 PM, Namhyung Kim wrote: > The is_idle_sample() function actually does more than determining > whether sample come from idle task. Split the callchain part into > save_task_callchain() to make it clearer. Also checking prev_pid from > trace data looks unnecessary since it should be

Re: [PATCH] SPCR: check bit width for the 16550 UART

2016-12-05 Thread Duc Dang
On Mon, Dec 5, 2016 at 6:27 PM, Jon Masters wrote: > Hi Duc, all, > > So after regenerating the initrd override (I must have fat fingered) > it is now detecting the correct bit width on boot (attached dmesg log). > > HOWEVER while the console does come up, the use of "earlycon" on the > command li

Re: [PATCH] vfio/pci: Support error recovery

2016-12-05 Thread Michael S. Tsirkin
On Mon, Dec 05, 2016 at 09:17:30AM -0700, Alex Williamson wrote: > If you're going to take the lead for these AER patches, I would > certainly suggest that understanding the reasoning behind the bus reset > behavior is a central aspect to this series. This effort has dragged > out for nearly two y

[PATCH v4 3/6] arm: dts: aspeed-g5: Add SoC Display Controller node

2016-12-05 Thread Andrew Jeffery
Signed-off-by: Andrew Jeffery --- arch/arm/boot/dts/aspeed-g5.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-g5.dtsi b/arch/arm/boot/dts/aspeed-g5.dtsi index dd94d9361fda..c7ff3ea4bf37 100644 --- a/arch/arm/boot/dts/aspeed-g5.dtsi +++ b/arch/arm/boot/dts/a

[PATCH v4 6/6] arm: dts: aspeed-g5: Add gpio controller to devicetree

2016-12-05 Thread Andrew Jeffery
Signed-off-by: Andrew Jeffery Signed-off-by: Joel Stanley --- arch/arm/boot/dts/aspeed-g5.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-g5.dtsi b/arch/arm/boot/dts/aspeed-g5.dtsi index 6ccabdb90e95..a95c1b08a816 100644 --- a/arch/arm/boot/dts/aspee

[PATCH v4 4/6] arm: dts: aspeed-g5: Add LPC Controller node

2016-12-05 Thread Andrew Jeffery
Signed-off-by: Andrew Jeffery --- arch/arm/boot/dts/aspeed-g5.dtsi | 31 +++ 1 file changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-g5.dtsi b/arch/arm/boot/dts/aspeed-g5.dtsi index c7ff3ea4bf37..1968607326dd 100644 --- a/arch/arm/boot/dts/aspeed-g5.dts

[PATCH v4 5/6] arm: dts: aspeed-g5: Add syscon and pin controller nodes

2016-12-05 Thread Andrew Jeffery
The pin controller's child nodes expose the functions currently implemented in the g5 pin controller driver. Signed-off-by: Andrew Jeffery Signed-off-by: Joel Stanley --- arch/arm/boot/dts/aspeed-g5.dtsi | 816 +++ 1 file changed, 816 insertions(+) diff --gi

[PATCH v4 1/6] arm: dts: aspeed-g4: Add syscon and pin controller nodes

2016-12-05 Thread Andrew Jeffery
The pin controller's child nodes expose the functions currently implemented in the the g4 pin controller driver. Signed-off-by: Andrew Jeffery Signed-off-by: Joel Stanley --- arch/arm/boot/dts/aspeed-g4.dtsi | 750 +++ 1 file changed, 750 insertions(+) diff

[PATCH v4 0/6] aspeed: Integrate pinctrl and gpio drivers

2016-12-05 Thread Andrew Jeffery
Hello, This picks up some work from a while back that adds pinctrl and GPIO support to the Aspeed devicetrees. See the previous series: https://lkml.org/lkml/2016/8/30/74 Since v3 two new patches have been added, describing the Low Pin Count bus and SoC Display Controller nodes. These are es

[PATCH v4 2/6] arm: dts: aspeed-g4: Add gpio controller to devicetree

2016-12-05 Thread Andrew Jeffery
Signed-off-by: Andrew Jeffery Signed-off-by: Joel Stanley --- arch/arm/boot/dts/aspeed-g4.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-g4.dtsi b/arch/arm/boot/dts/aspeed-g4.dtsi index b00dfc7a3bf7..20b75667286f 100644 --- a/arch/arm/boot/dts/aspee

Re: [PATCH 03/10] perf sched timehist: Handle zero sample->tid properly

2016-12-05 Thread David Ahern
On 12/5/16 7:40 PM, Namhyung Kim wrote: > Sometimes samples have tid of 0 but non-0 pid. It ends up having a Any idea how that happens? > new thread of 0 tid/pid (instead of referring idle task) since tid is > used to search matching task. But I guess it's wrong to use 0 as a > tid when pid is

Re: [PATCH] vfio/pci: Support error recovery

2016-12-05 Thread Michael S. Tsirkin
On Thu, Dec 01, 2016 at 09:40:23PM +0800, Cao jin wrote: > > > On 12/01/2016 12:51 PM, Michael S. Tsirkin wrote: > > On Wed, Nov 30, 2016 at 09:04:13PM -0700, Alex Williamson wrote: > >> On Sun, 27 Nov 2016 19:34:17 +0800 > >> Cao jin wrote: > >> > > >>> @@ -1187,10 +1200,30 @@ static pci_ers_r

[PATCH 04/10] perf sched timehist: Split is_idle_sample()

2016-12-05 Thread Namhyung Kim
The is_idle_sample() function actually does more than determining whether sample come from idle task. Split the callchain part into save_task_callchain() to make it clearer. Also checking prev_pid from trace data looks unnecessary since it should be always same as sample->pid. Signed-off-by: Nam

[PATCH 02/10] perf tools: Introduce callchain_cursor__copy()

2016-12-05 Thread Namhyung Kim
The callchain_cursor__copy() function is to save current callchain captured by a cursor. It'll be used to keep callchains when switching to idle task for each cpu. Signed-off-by: Namhyung Kim --- tools/perf/util/callchain.c | 27 +++ tools/perf/util/callchain.h | 3 +++

[PATCH 06/10] perf sched timehist: Introduce struct idle_time_data

2016-12-05 Thread Namhyung Kim
The struct idle_time_data is to keep idle stats with callchains entering to the idle task. The normal thread_runtime calculation is done transparently since it extends the struct thread_runtime. Signed-off-by: Namhyung Kim --- tools/perf/builtin-sched.c | 31 +++ 1 f

[PATCH 07/10] perf sched timehist: Save callchain when entering idle

2016-12-05 Thread Namhyung Kim
In order to investigate reason of idle, it needs to keep the callchains when entering to idle. This can be identified sched_switch event having next_pid as 0. Signed-off-by: Namhyung Kim --- tools/perf/builtin-sched.c | 29 + 1 file changed, 29 insertions(+) diff --

[PATCH 08/10] perf sched timehist: Skip non-idle events when necessary

2016-12-05 Thread Namhyung Kim
Sometimes it only focuses on idle-related events like upcoming idle-hist feature. In this case we don't want to see other event to reduce noise. Signed-off-by: Namhyung Kim --- tools/perf/builtin-sched.c | 25 ++--- 1 file changed, 18 insertions(+), 7 deletions(-) diff --gi

[PATCH 10/10] perf sched timehist: Show callchains for idle stat

2016-12-05 Thread Namhyung Kim
When --idle-hist option is used with --summary, it now shows idle stats with callchains like below: Idle stats by callchain: CPU 0: 902.195 msec Idle time (msec) Count Callchains -- 370

[PATCH 09/10] perf sched timehist: Add -I/--idle-hist option

2016-12-05 Thread Namhyung Kim
The --idle-hist option is to analyze system idle state so which process makes cpu to go idle. If this option is specified, non-idle events will be skipped and processes switching to/from idle will be shown. This option is mostly useful when used with --summary(-only) option. In the idle-time sum

  1   2   3   4   5   6   7   8   9   >