[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 ---

[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

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

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

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

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:

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:

[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

[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

[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:

[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 ---

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

[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

[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

[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

[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

[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

[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

[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

[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:

[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

[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

[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:

[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

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

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

[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

[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

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:

[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

[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

[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

[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

[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

[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

[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

[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

[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:

[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

[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:

[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

[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

[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

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

[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

[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

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

[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

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

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

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

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

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:

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 >

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

[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

[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 +++--

[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

[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

[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

[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

[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

[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,

[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

[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,

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:

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:

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,

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

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

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

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.

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 > >

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

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

[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

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

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

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:

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

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

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 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

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

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

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

  1   2   3   4   5   6   7   8   9   10   >