Re: [PATCH v4 03/11] lsm: add file opener's cred to a setprocattr arguments

2015-10-29 Thread Casey Schaufler
On 10/14/2015 5:41 AM, Lukasz Pawelczyk wrote: > setprocattr hook for Smack's label_map attribute needs to know the > capabilities of file opener. Add those credentials to the hook's > arguments. > > While at it add documentation on get/setprocattr hooks. > > Signed-off-by: Lukasz Pawelczyk > Acke

Re: [PATCH] soc: qcom: smd-rpm: Correct size of outgoing message

2015-10-29 Thread Stephen Boyd
On 10/29/2015 03:09 PM, Bjorn Andersson wrote: > With the removal of VLAIS the size was incorrectly changed to only cover > the headers of the packet, resulting in "empty" requests being sent to > the RPM. Correct this so the entire message is transfered. > > Fixes: 50e1b29b4438 ("soc: qcom: smd: R

Re: [PATCH v4 04/11] lsm: inode_pre_setxattr hook

2015-10-29 Thread Casey Schaufler
On 10/14/2015 5:41 AM, Lukasz Pawelczyk wrote: > Add a new LSM hook called before inode's setxattr. It is required for > LSM to be able to reliably replace the xattr's value to be set to > filesystem in __vfs_setxattr_noperm(). Useful for mapped values, like in > the upcoming Smack namespace patche

Re: [PATCH v4 05/11] smack: extend capability functions and fix 2 checks

2015-10-29 Thread Casey Schaufler
On 10/14/2015 5:41 AM, Lukasz Pawelczyk wrote: > This patch extends smack capability functions to a full list to those > equivalent in the kernel > > has_ns_capability -> smack_has_ns_privilege > has_capability-> smack_has_privilege > ns_capable-> smack_ns_privileged > capable

Re: [PATCH v4 08/11] smack: misc cleanups in preparation for a namespace patch

2015-10-29 Thread Casey Schaufler
On 10/14/2015 5:42 AM, Lukasz Pawelczyk wrote: > This patch does some small miscellaneous cleanups and additions that > should not change the code behaviour in any way. Its only purpose is to > shape the code in a way that the smack namespace patches would be > smaller and easier to understand. > >

Re: [PATCH v4 07/11] smack: abstraction layer for 2 common Smack operations

2015-10-29 Thread Casey Schaufler
On 10/14/2015 5:42 AM, Lukasz Pawelczyk wrote: > This patch adds two new functions that provide an abstraction layer for > two common internal Smack operations: > > smk_find_label_name() - returns a label name (char*) from a struct > smack_known pointer > smk_get_label()

Re: [PATCH v4 06/11] smack: don't use implicit star to display smackfs/syslog

2015-10-29 Thread Casey Schaufler
On 10/14/2015 5:42 AM, Lukasz Pawelczyk wrote: > Smackfs/syslog is analogous to onlycap and unconfined. When not filled > they don't do anything. In such cases onlycap and unconfined displayed > nothing when read, but syslog unconditionally displayed star. This > doesn't work well with namespaces w

[PATCH] Staging: comedi: fixed comment, added a new line

2015-10-29 Thread Philippe Loctaux
>From 16dae6c28a46ae257dcedd51d973aee7821053f3 Mon Sep 17 00:00:00 2001 From: Philippe Loctaux Date: Thu, 29 Oct 2015 22:45:16 +0100 Subject: [PATCH] Staging: comedi: fixed comment, added a new line Signed-off-by: Philippe Loctaux ---  drivers/staging/comedi/drivers/ssv_dnp.c | 3 ++-  1 file cha

Re: [PATCH v4 09/11] smack: namespace groundwork

2015-10-29 Thread Casey Schaufler
On 10/14/2015 5:42 AM, Lukasz Pawelczyk wrote: > This commit introduces several changes to Smack to prepare it for > namespace implementation. All the changes are related to namespaces. > > Overview of the changes: > - Adds required data structures for mapped labels and functions to > operate on

Re: [PATCH 09/31] perf tools: Compile scriptlets to BPF objects when passing '.c' to --event

2015-10-29 Thread Arnaldo Carvalho de Melo
Em Thu, Oct 29, 2015 at 01:30:27PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Thu, Oct 29, 2015 at 01:25:53PM -0300, Arnaldo Carvalho de Melo escreveu: > > And you could've provided something that would actually do something > > meaningful, i.e. a filter that would capture some samples for a g

Re: [PATCH v4 11/11] smack: documentation for the Smack namespace

2015-10-29 Thread Casey Schaufler
On 10/14/2015 5:42 AM, Lukasz Pawelczyk wrote: > Adds Documentation/smack-namespace.txt. > > Signed-off-by: Lukasz Pawelczyk > Reviewed-by: Casey Schaufler Acked-by: Casey Schaufler > --- > Documentation/security/00-INDEX| 2 + > Documentation/security/Smack-namespace.txt | 231

Re: [PATCH v4 10/11] smack: namespace implementation

2015-10-29 Thread Casey Schaufler
On 10/14/2015 5:42 AM, Lukasz Pawelczyk wrote: > This commit uses all the changes introduced in "namespace groundwork" > and previous preparation patches and makes smack aware of its namespace > and mapped labels. > > It modifies the following functions to be namespace aware: > - smk_access > - smk

[PATCH 2/7] clocksource/drivers/qcom: Make COMPILE_TEST enabled for ARM architecture

2015-10-29 Thread Daniel Lezcano
In order to be consistent with the rest of the drivers compilation, let's introduce the COMPILE_TEST option. Unfortunately, the delay.h code is not portable, so the compilation test coverage will be restricted to the ARM architecture. Signed-off-by: Daniel Lezcano --- drivers/clocksource/Kconfig

[PATCH 5/7] clocksource/drivers/pxa_timer: Move the Kconfig rule

2015-10-29 Thread Daniel Lezcano
Instead of having the clocksource's Kconfig depending on the arch, let the arch to select the timer it needs. The CLKSRC_OF dependency is removed because already selected by the ARCH_PXA, and it is added for SA1100. Signed-off-by: Daniel Lezcano --- arch/arm/Kconfig| 3 +++ drivers/

[PATCH 1/7] time: Define dummy functions for the generic sched clock

2015-10-29 Thread Daniel Lezcano
When we try to compile a clocksource driver with the COMPILE_TEST option, we can't select the GENERIC_SCHED_CLOCK because the sched_clock() symbol will be duplicated with the one defined for the x86. In order to fix that, we don't select the GENERIC_SCHED_CLOCK in the driver Kconfig's file but we

[PATCH 3/7] clocksource/drivers/st_lpc: Fix Kconfig dependency

2015-10-29 Thread Daniel Lezcano
Change the Kconfig selection rule by letting the STI arch to select the timer. Signed-off-by: Daniel Lezcano --- arch/arm/mach-sti/Kconfig | 1 + drivers/clocksource/Kconfig | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-sti/Kconfig b/arch/arm/mach-sti/Kconfi

[PATCH 4/7] clocksource/drivers/st_lpc: Add the COMPILE_TEST option

2015-10-29 Thread Daniel Lezcano
Increase the compilation test coverage by adding the COMPILE_TEST option. Signed-off-by: Daniel Lezcano --- drivers/clocksource/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index 233c1f7..5cd000c 100644 ---

[PATCH 6/7] clocksource/drivers/pxa_timer: Add the COMPILE_TEST option

2015-10-29 Thread Daniel Lezcano
Increase the compilation test coverage by adding the COMPILE_TEST option. Signed-off-by: Daniel Lezcano --- drivers/clocksource/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index 425abbd..b92f39d5 100644 -

Re: [PATCH RFC net-next 2/2] tcp: Add Redundant Data Bundling (RDB)

2015-10-29 Thread Bendik Rønning Opstad
On Monday, October 26, 2015 02:58:03 PM Yuchung Cheng wrote: > On Mon, Oct 26, 2015 at 2:35 PM, Andreas Petlund wrote: > > > On 26 Oct 2015, at 15:50, Neal Cardwell wrote: > > > > > > On Fri, Oct 23, 2015 at 4:50 PM, Bendik Rønning Opstad > > > > > > wrote: > > >> @@ -2409,6 +2412,15 @@ static

[PATCH 7/7] clocksource/drivers/tango: Add COMPILE_TEST option

2015-10-29 Thread Daniel Lezcano
Increase the compilation test coverage by adding the COMPILE_TEST option. Signed-off-by: Daniel Lezcano --- drivers/clocksource/Kconfig | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index b92f39d5..4ed76e1 100644

Re: [RFC 00/11] DAX fsynx/msync support

2015-10-29 Thread Ross Zwisler
On Thu, Oct 29, 2015 at 02:12:04PM -0600, Ross Zwisler wrote: > This patch series adds support for fsync/msync to DAX. > > Patches 1 through 8 add various utilities that the DAX code will eventually > need, and the DAX code itself is added by patch 9. Patches 10 and 11 are > filesystem changes th

Re: [PATCH v3 2/4] lib/string_helpers.c: protect string_get_size() against blk_size=0

2015-10-29 Thread James Bottomley
On Thu, 2015-10-29 at 17:30 +0100, Vitaly Kuznetsov wrote: > Division by zero happens if blk_size=0 is supplied to string_get_size(). > Add WARN_ON() and set size to 0 to report '0 B'. > > Signed-off-by: Vitaly Kuznetsov > --- > lib/string_helpers.c | 5 + > 1 file changed, 5 insertions(+) >

Re: [PATCH 0/4] PCI: rcar: Add support for ARM64 and multiple instances

2015-10-29 Thread Bjorn Helgaas
[-cc Nobuhiro (bouncing)] On Thu, Oct 29, 2015 at 07:48:00PM +0100, Wolfram Sang wrote: > On Thu, Oct 29, 2015 at 04:44:06PM +, Phil Edworthy wrote: > > Hi Wolfram, > > > > On 29 October 2015 16:40, Wolfram wrote: > > > > Ouch, my bad. I have been working with our out-of-tree BSP for the > >

[PATCH 3/8] perf tools: Make sure fixdep is built before libbpf

2015-10-29 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa While doing 'make -C tools/perf build-test': LD fixdep-in.o LINK fixdep /bin/sh: /home/acme/git/linux/tools/build/fixdep: Permission denied make[6]: *** [bpf.o] Error 1 make[5]: *** [libbpf-in.o] Error 2 make[4]: *** [/home/acme/git/linux/tools/lib/bpf/libbpf.

[GIT PULL 0/8] perf/core improvements and fixes

2015-10-29 Thread Arnaldo Carvalho de Melo
Hi Ingo, This one gets us to pass .c files that gets built and loaded, next step will be to be able to access function arguments, for which there are patches available, but I'm still reviewing them. Please consider pulling, - Arnaldo The following changes since commit 66a565c203

[PATCH 7/8] tools build: Fix libiberty feature detection

2015-10-29 Thread Arnaldo Carvalho de Melo
From: Rabin Vincent Any CFLAGS or LDFLAGS set by the user need to be passed to the feature build command. This many include for example -I or -L to point to libraries and include files in custom paths. In most of the test-*.bin rules in build/feature/Makefile, we use the BUILD macro which alway

[PATCH 5/8] perf record: Add clang options for compiling BPF scripts

2015-10-29 Thread Arnaldo Carvalho de Melo
From: Wang Nan Although previous patch allows setting BPF compiler related options in perfconfig, on some ad-hoc situation it still requires passing options through cmdline. This patch introduces 2 options to 'perf record' for this propose: --clang-path and --clang-opt. Signed-off-by: Wang Nan

[PATCH 6/8] perf tools: Compile scriptlets to BPF objects when passing '.c' to --event

2015-10-29 Thread Arnaldo Carvalho de Melo
From: Wang Nan This patch provides infrastructure for passing source files to --event directly using: # perf record --event bpf-file.c command This patch does following works: 1) Allow passing '.c' file to '--event'. parse_events_load_bpf() is expanded to allow caller tell it whether the

[PATCH 8/8] perf unwind: Pass symbol source to libunwind

2015-10-29 Thread Arnaldo Carvalho de Melo
From: Rabin Vincent Even if --symfs is used to point to the debug binaries, we send in the non-debug filenames to libunwind, which leads to libunwind not finding the debug frame. Fix this by preferring the file in --symfs, if it is available. Signed-off-by: Rabin Vincent Cc: Jiri Olsa Cc: Nam

[PATCH 2/8] perf script: Enable printing of branch stack

2015-10-29 Thread Arnaldo Carvalho de Melo
From: Stephane Eranian This patch improves perf script by enabling printing of the branch stack via the 'brstack' and 'brstacksym' arguments to the field selection option -F. The option is off by default and operates only if the perf.data file has branch stack content. The branches are printed i

[PATCH 4/8] perf bpf: Attach eBPF filter to perf event

2015-10-29 Thread Arnaldo Carvalho de Melo
From: Wang Nan This is the final patch which makes basic BPF filter work. After applying this patch, users are allowed to use BPF filter like: # perf record --event ./hello_world.o ls A bpf_fd field is appended to 'struct evsel', and setup during the callback function add_bpf_event() for each

[PATCH 1/8] perf trace: Add cmd string table to decode sys_bpf first arg

2015-10-29 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo # perf trace -e bpf perf record -e /tmp/foo.o -a 362.779 (0.130 ms): perf/3451 bpf(cmd: PROG_LOAD, uattr: 0x7ffe9a6825d0, size: 48) = 3 Cc: Adrian Hunter Cc: Alexei Starovoitov Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml

Re: [PATCH 4/5] iov: Variable and loop cleanup for sriov_disable and sriov_enable

2015-10-29 Thread Alexander Duyck
On 10/29/2015 02:43 PM, Bjorn Helgaas wrote: Hi Alex, On Tue, Oct 27, 2015 at 01:52:33PM -0700, Alexander Duyck wrote: This patch is just a minor cleanup to go through and group all of the variables into one declaration instead of a long string of single declarations for each int. It also chan

Re: [PATCH v3 1/4] lib/string_helpers: change blk_size to u32 for string_get_size() interface

2015-10-29 Thread Rasmus Villemoes
On Thu, Oct 29 2015, James Bottomley wrote: > On Thu, 2015-10-29 at 17:30 +0100, Vitaly Kuznetsov wrote: >> string_get_size() can't really handle huge block sizes, especially >> blk_size > U32_MAX but string_get_size() interface states the opposite. >> Change blk_size from u64 to u32 to reflect t

Re: [PATCH v12 0/6] Altera PCIe host controller driver with MSI support

2015-10-29 Thread Bjorn Helgaas
On Wed, Oct 28, 2015 at 02:25:11PM +0800, Ley Foon Tan wrote: > On Wed, Oct 28, 2015 at 9:02 AM, Bjorn Helgaas wrote: > > On Tue, Oct 27, 2015 at 7:56 PM, Ley Foon Tan wrote: > >> On Tue, Oct 27, 2015 at 10:26 PM, Bjorn Helgaas wrote: > >>> Hi Ley, > >>> > >>> On Fri, Oct 23, 2015 at 06:27:09PM

Re: [PATCH] usb: dwc2: host: Fix remote wakeup when not in DWC2_L2

2015-10-29 Thread Heiko Stuebner
Am Donnerstag, 22. Oktober 2015, 13:05:03 schrieb Douglas Anderson: > In commit 734643dfbdde ("usb: dwc2: host: add flag to reflect bus > state") we changed dwc2_port_suspend() not to set the lx_state > anymore (instead it sets the new bus_suspended variable). This > introduced a bug where we woul

[PATCH 2/3] staging: lustre: white space cleanups for nidstring.c

2015-10-29 Thread James Simmons
Remove the remaining white spaces in nidstring.c. Signed-off-by: James Simmons --- drivers/staging/lustre/lnet/lnet/nidstrings.c | 18 +- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/staging/lustre/lnet/lnet/nidstrings.c b/drivers/staging/lustre/lnet/

[PATCH 3/3] staging: lustre: checkpatch cleanups for nidstr.h

2015-10-29 Thread James Simmons
With nidstr.h now having the latest fixes we can now clean up all the remaining checkpatch errors for this header. Signed-off-by: James Simmons --- drivers/staging/lustre/include/linux/lnet/nidstr.h |9 +++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/staging/

[PATCH 1/3] staging: lustre: checkpatch cleanups for nidstring.c

2015-10-29 Thread James Simmons
With nidstring now having the latest fixes we can now clean up all the remaining checkpatch errors for nidstring.c. Signed-off-by: James Simmons --- drivers/staging/lustre/lnet/lnet/nidstrings.c | 80 ++--- 1 files changed, 44 insertions(+), 36 deletions(-) diff --git a/dr

Re: [PATCH v3 1/4] lib/string_helpers: change blk_size to u32 for string_get_size() interface

2015-10-29 Thread Rasmus Villemoes
On Fri, Oct 30 2015, Rasmus Villemoes wrote: > block sizes as well. For ~13000 semirandom size,blk_size pairs, Sorry, that should have been ~2. Rasmus -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majord

[PATCH 0/3] make nidstring.c kernel style compliant

2015-10-29 Thread James Simmons
Last patch set to make nidstring.c and nidstr.h both report no errors with checkpatch and removal of the remaining white spaces. James Simmons (3): staging: lustre: checkpatch cleanups for nidstring.c staging: lustre: white space cleanups for nidstring.c staging: lustre: checkpatch cleanups

Re: [PATCH v3 2/4] lib/string_helpers.c: protect string_get_size() against blk_size=0

2015-10-29 Thread Andy Shevchenko
On Fri, Oct 30, 2015 at 1:00 AM, James Bottomley wrote: > On Thu, 2015-10-29 at 17:30 +0100, Vitaly Kuznetsov wrote: >> Division by zero happens if blk_size=0 is supplied to string_get_size(). >> Add WARN_ON() and set size to 0 to report '0 B'. >> >> Signed-off-by: Vitaly Kuznetsov >> --- >> lib

[PATCH net] i40e: Look up MAC address in Open Firmware or IDPROM

2015-10-29 Thread Sowmini Varadhan
This is the i40e equivalent of commit c762dff24c06 ("ixgbe: Look up MAC address in Open Firmware or IDPROM"). As with that fix, attempt to look up the MAC address in Open Firmware on systems that uspport it, and use IDPROM on SPARC if no OF address is found. Reviewed-by: Martin K. Petersen Sig

Re: [PATCH 01/16] PM / OPP: Add 'supply-names' binding

2015-10-29 Thread Stephen Boyd
On 10/28, Mark Brown wrote: > On Tue, Oct 27, 2015 at 01:49:17PM +0530, Viresh Kumar wrote: > > On 23-10-15, 01:39, Mark Brown wrote: > > > > I'm not sure that's > > > a place we want to end up just yet, I think it's safer to just have a > > > little bit of code in the kernel that glues things tog

[PATCH v5 3/5] mfd: tps65912: Add driver for the TPS65912 PMIC

2015-10-29 Thread Andrew F. Davis
This patch adds support for TPS65912 PMIC MFD core. It provides communication through the I2C and SPI interfaces. It contains the following components: - Regulators - GPIO controller Signed-off-by: Andrew F. Davis --- drivers/mfd/Kconfig | 26 drivers/mfd/Makefile | 3

[PATCH v5 2/5] mfd: tps65912: Remove old driver in preparation for new driver

2015-10-29 Thread Andrew F. Davis
The old tps65912 driver is being replaced, delete old driver. Signed-off-by: Andrew F. Davis Acked-by: Lee Jones --- drivers/gpio/Kconfig | 6 - drivers/gpio/Makefile | 1 - drivers/gpio/gpio-tps65912.c | 153 -- drivers/mfd/Kconfig

[PATCH v5 5/5] gpio: tps65912: Add GPIO driver for the TPS65912 PMIC

2015-10-29 Thread Andrew F. Davis
This patch adds support for the TPS65912 PMIC GPIOs. TPS65912 has five configurable GPIOs that can be used for several purposes. Signed-off-by: Andrew F. Davis --- drivers/gpio/Kconfig | 6 ++ drivers/gpio/Makefile| 1 + drivers/gpio/gpio-tps65912.c | 136 +++

[PATCH v5 1/5] Documentation: tps65912: Add DT bindings for the TPS65912 PMIC

2015-10-29 Thread Andrew F. Davis
The TPS65912 PMIC contains several regulators and a GPIO controller. Add bindings for the TPS65912 PMIC. Signed-off-by: Andrew F. Davis --- .../devicetree/bindings/gpio/gpio-tps65912.txt | 16 +++ Documentation/devicetree/bindings/mfd/tps65912.txt | 51 ++ .../binding

[PATCH v5 0/5] mfd: tps65912: Driver rewrite with DT support

2015-10-29 Thread Andrew F. Davis
In an effort to cleanup this driver and add Device Tree support the driver has been rewritten based on new driver styles and modern kernel driver helpers. This has nearly halved the lines of code while keeping all previous functionality. Platform file based initialization has been dropped as there

[PATCH v5 4/5] regulator: tps65912: Add regulator driver for the TPS65912 PMIC

2015-10-29 Thread Andrew F. Davis
This patch adds support for TPS65912 PMIC regulators. The regulators set consists of 4 DCDCs and 10 LDOs. The output voltages are configurable and are meant to supply power to the main processor and other components. Signed-off-by: Andrew F. Davis --- drivers/regulator/Kconfig |

[PATCH V2 00/10] Drivers: hv: Miscellaneous fixes.

2015-10-29 Thread K. Y. Srinivasan
Miscellaneous fixes. In this version I have addressed review comments from Vitaly Kuznetsov . Also fixed up the authorship of the patch: drivers/hv: cleanup synic msrs if vmbus connect failed Andrey Smetanin (1): drivers/hv: cleanup synic msrs if vmbus connect failed Jake Oshins (3): drivers:

[PATCH V2 05/10] Drivers: hv: util: catch allocation errors

2015-10-29 Thread K. Y. Srinivasan
From: Olaf Hering Catch allocation errors in hvutil_transport_send. Fixes: 14b50f80c32d ('Drivers: hv: util: introduce hv_utils_transport abstraction') Signed-off-by: Olaf Hering Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_utils_transport.c |9 ++--- 1 files changed, 6 inserti

[PATCH V2 04/10] tools: hv: remove repeated HV_FCOPY string

2015-10-29 Thread K. Y. Srinivasan
From: Olaf Hering HV_FCOPY is already used as identifier in syslog. Signed-off-by: Olaf Hering Signed-off-by: K. Y. Srinivasan --- tools/hv/hv_fcopy_daemon.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/hv/hv_fcopy_daemon.c b/tools/hv/hv_fcopy_daemon.c ind

[PATCH V2 08/10] drivers:hv: Export a function that maps Linux CPU num onto Hyper-V proc num

2015-10-29 Thread K. Y. Srinivasan
From: Jake Oshins This patch exposes the mapping between Linux CPU number and Hyper-V virtual processor number. This is necessary because the hypervisor needs to know which virtual processors to target when making a mapping in the Interrupt Redirection Table in the I/O MMU. Signed-off-by: Jake

[PATCH V2 03/10] tools: hv: report ENOSPC errors in hv_fcopy_daemon

2015-10-29 Thread K. Y. Srinivasan
From: Olaf Hering Currently some "Unspecified error 0x80004005" is reported on the Windows side if something fails. Handle the ENOSPC case and return ERROR_DISK_FULL, which allows at least Copy-VMFile to report a meaning full error. Signed-off-by: Olaf Hering Signed-off-by: K. Y. Srinivasan --

[PATCH V2 02/10] Drivers: hv: utils: run polling callback always in interrupt context

2015-10-29 Thread K. Y. Srinivasan
From: Olaf Hering All channel interrupts are bound to specific VCPUs in the guest at the point channel is created. While currently, we invoke the polling function on the correct CPU (the CPU to which the channel is bound to) in some cases we may run the polling function in a non-interrupt context

[PATCH V2 09/10] drivers:hv: Export the API to invoke a hypercall on Hyper-V

2015-10-29 Thread K. Y. Srinivasan
From: Jake Oshins This patch exposes the function that hv_vmbus.ko uses to make hypercalls. This is necessary for retargeting an interrupt when it is given a new affinity. Since we are exporting this API, rename the API as it will be visible outside the hv.c file. Signed-off-by: Jake Oshins S

[PATCH V2 10/10] drivers:hv: Define the channel type for Hyper-V PCI Express pass-through

2015-10-29 Thread K. Y. Srinivasan
From: Jake Oshins This defines the channel type for PCI front-ends in Hyper-V VMs. Signed-off-by: Jake Oshins Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c |3 +++ include/linux/hyperv.h| 11 +++ 2 files changed, 14 insertions(+), 0 deletions(-) diff --git a

[PATCH V2 01/10] Drivers: hv: util: Increase the timeout for util services

2015-10-29 Thread K. Y. Srinivasan
Util services such as KVP and FCOPY need assistance from daemon's running in user space. Increase the timeout so we don't prematurely terminate the transaction in the kernel. Host sets up a 60 second timeout for all util driver transactions. The host will retry the transaction if it times out. Set

Re: [PATCH v2 1/3] virtio_net: Stop doing DMA from the stack

2015-10-29 Thread Andy Lutomirski
On Wed, Oct 28, 2015 at 12:07 AM, Michael S. Tsirkin wrote: > How about this instead? Less code, more robust. > > Warning: untested. If you do like this approach, Tested-by would be > appreciated. I like it. Tested-by: Andy Lutomirski --Andy -- To unsubscribe from this list: send the line "un

[PATCH V2 06/10] Drivers: hv: utils: use memdup_user in hvt_op_write

2015-10-29 Thread K. Y. Srinivasan
From: Olaf Hering Use memdup_user to handle OOM. Fixes: 14b50f80c32d ('Drivers: hv: util: introduce hv_utils_transport abstraction') Signed-off-by: Olaf Hering Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_utils_transport.c |9 - 1 files changed, 4 insertions(+), 5 deletions

[PATCH V2 07/10] drivers/hv: cleanup synic msrs if vmbus connect failed

2015-10-29 Thread K. Y. Srinivasan
From: Andrey Smetanin Before vmbus_connect() synic is setup per vcpu - this means hypervisor receives writes at synic msr's and probably allocate hypervisor resources per synic setup. If vmbus_connect() failed for some reason it's neccessary to cleanup synic setup by call hv_synic_cleanup() at e

Re: [PATCH] usb: dwc2: host: Fix remote wakeup when not in DWC2_L2

2015-10-29 Thread Doug Anderson
Hi, On Thu, Oct 29, 2015 at 3:49 PM, Heiko Stuebner wrote: > Am Donnerstag, 22. Oktober 2015, 13:05:03 schrieb Douglas Anderson: >> In commit 734643dfbdde ("usb: dwc2: host: add flag to reflect bus >> state") we changed dwc2_port_suspend() not to set the lx_state >> anymore (instead it sets the n

[PATCH v4 0/7] PCI: hv: New paravirtual PCI front-end for Hyper-V VMs

2015-10-29 Thread jakeo
From: Jake Oshins This patch series incorporates feedback from Gerry Liu (jiang@linux.intel.com). First, export functions that allow correlating Hyper-V virtual processors and Linux cpus, along with the means for invoking a hypercall that targets interrupts at chosen vectors on specfic cpus.

[PATCH v4 2/7] drivers:hv: Export hv_do_hypercall()

2015-10-29 Thread jakeo
From: Jake Oshins This patch exposes the function that hv_vmbus.ko uses to make hypercalls. This is necessary for retargeting an interrupt when it is given a new affinity and vector. Signed-off-by: Jake Oshins --- drivers/hv/hv.c | 20 ++-- drivers/hv/hyperv_vmbus.h |

[PATCH v4 6/7] drivers:hv: Define the channel type for Hyper-V PCI Express pass-through

2015-10-29 Thread jakeo
From: Jake Oshins This defines the channel type for PCI front-ends in Hyper-V VMs. Signed-off-by: Jake Oshins --- include/linux/hyperv.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index ea0a0e3..5587899 100644 --- a/include/

[PATCH v4 5/7] PCI: irqdomain: Look up IRQ domain by fwnode_handle

2015-10-29 Thread jakeo
From: Jake Oshins This patch adds a second way of finding an IRQ domain associated with a root PCI bus. After looking to see if one can be found through the OF tree, it attempts to look up the IRQ domain through an fwnode_handle stored in the pci_sysdata struct. Signed-off-by: Jake Oshins ---

[PATCH v4 1/7] drivers:hv: Export a function that maps Linux CPU num onto Hyper-V proc num

2015-10-29 Thread jakeo
From: Jake Oshins This patch exposes the mapping between Linux CPU number and Hyper-V virtual processor number. This is necessary because the hypervisor needs to know which virtual processor to target when making a mapping in the Interrupt Redirection Table in the I/O MMU. Signed-off-by: Jake Os

[PATCH v4 4/7] PCI: Add fwnode_handle to pci_sysdata

2015-10-29 Thread jakeo
From: Jake Oshins This patch adds an fwnode_handle to struct pci_sysdata, which is used by the next patch in the series when trying to locate an IRQ domain associated with a root PCI bus. Signed-off-by: Jake Oshins --- arch/x86/include/asm/pci.h | 11 +++ 1 file changed, 11 insertions(

[PATCH v4 3/7] PCI: Make it possible to implement a PCI MSI IRQ Domain in a module.

2015-10-29 Thread jakeo
From: Jake Oshins The Linux kernel already has the concpet of IRQ domain, whereing a component can expose a set of IRQs which are managed by a particular interrupt controller chip or other subsystem. The PCI driver exposes the notion of an IRQ domain for Message-Signaled Interrupts (MSI) from PCI

[PATCH v4 7/7] PCI: hv: New paravirtual PCI front-end for Hyper-V VMs

2015-10-29 Thread jakeo
From: Jake Oshins This patch introduces a new driver which exposes a root PCI bus whenever a PCI Express device is passed through to a guest VM under Hyper-V. The device can be single- or multi-function. The interrupts for the devices are managed by an IRQ domain, implemented within the driver.

Re: [PATCH] checkpatch: fix a number of COMPLEX_MACRO false positives

2015-10-29 Thread Vladimir Zapolskiy
On 30.10.2015 00:46, Joe Perches wrote: > On Thu, 2015-10-29 at 23:36 +0200, Vladimir Zapolskiy wrote: >> A simple search over the kernel souce displays a number of correctly >> defined multiline macro, which generally are used as an array element >> initializer: >> >> % find ../linux -type f | xar

[GIT PULL] PCI fixes for v4.3

2015-10-29 Thread Bjorn Helgaas
Hi Linus, Sorry for this last-minute update; it's been in -next for quite a while, but I forgot about it until I started getting ready for the merge window. It's small and fixes a way a user could cause a panic via sysfs, so I think it's worth getting it in v4.3. Bjorn The following changes si

RE: [PATCH 5/5] staging: fsl-mc: Management Complex restool driver

2015-10-29 Thread Lijun Pan
> -Original Message- > From: Wood Scott-B07421 > Sent: Tuesday, October 27, 2015 12:17 AM > To: Pan Lijun-B44306 > Cc: gre...@linuxfoundation.org; a...@arndb.de; de...@driverdev.osuosl.org; > linux-kernel@vger.kernel.org; Yoder Stuart-B08248 > ; katz Itai-RM05202 ; > Rivera Jose-B46482 ;

ATTN:

2015-10-29 Thread michael
Two million dollars donated to you, contact donor on (michaeldun...@yeah.net) via email. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read t

Re: [PATCH net] i40e: Look up MAC address in Open Firmware or IDPROM

2015-10-29 Thread Andy Shevchenko
On Fri, Oct 30, 2015 at 1:34 AM, Sowmini Varadhan wrote: > > > This is the i40e equivalent of commit c762dff24c06 ("ixgbe: Look up MAC > address in Open Firmware or IDPROM"). > > As with that fix, attempt to look up the MAC address in Open Firmware > on systems that uspport it, and use IDPROM on S

Hallo,

2015-10-29 Thread Prestige Finance Ltd
-- Hallo,     Ich bin Mrs. Sara Philipp Darlehensmittel von Prestige Finance Ltd wir sind Darlehen Kreditgeber und Immobilien wollen wir diejenigen, die finanzielle Hilfe benötigen zu erreichen. Wir bieten Business-Darlehen, persönliche Darlehen, Autokredite, Darlehen, Ausbildung und medizin

Re: [PATCH v4 5/7] PCI: irqdomain: Look up IRQ domain by fwnode_handle

2015-10-29 Thread Andy Shevchenko
On Fri, Oct 30, 2015 at 1:46 AM, wrote: > From: Jake Oshins > > This patch adds a second way of finding an IRQ domain associated with > a root PCI bus. After looking to see if one can be found through > the OF tree, it attempts to look up the IRQ domain through an > fwnode_handle stored in the

Re: [patch] blk-mq: avoid excessive boot delays with large lun counts

2015-10-29 Thread Ming Lei
On Thu, Oct 29, 2015 at 11:18 PM, Jeff Moyer wrote: > Ming Lei writes: > >> Looks we should have cleared the TAG_SHARED flag during >> blk_mq_init_hctx() and just let blk_mq_update_tag_set_depth() >> deal with that, then the race can be avoided. > > The whole point of the patch set is to propagat

Re: [PATCH v3] Input: tsc2005 - Add support for tsc2004

2015-10-29 Thread Mark Brown
On Thu, Oct 29, 2015 at 03:23:31PM -0700, Dmitry Torokhov wrote: > However, you have regmap in the driver core already. Mark, is it > possible to have regmap API also allow doing raw underlying protocol > transfer so that consumers could issue command requests without needing > to know if they nee

Re: [PATCH v4 6/7] drivers:hv: Define the channel type for Hyper-V PCI Express pass-through

2015-10-29 Thread Andy Shevchenko
On Fri, Oct 30, 2015 at 1:46 AM, wrote: > From: Jake Oshins > > This defines the channel type for PCI front-ends in Hyper-V VMs. > > Signed-off-by: Jake Oshins > --- > include/linux/hyperv.h | 11 +++ > 1 file changed, 11 insertions(+) > > diff --git a/include/linux/hyperv.h b/include/

[PATCH v3 1/2] cputime: fix invalid gtime in proc

2015-10-29 Thread Hiroshi Shimamoto
From: Hiroshi Shimamoto /proc/stats shows invalid gtime when the thread is running in guest. When vtime accounting is not enabled, we cannot get a valid delta. The delta is calculated now - tsk->vtime_snap, but tsk->vtime_snap is only updated when vtime accounting is enabled. This patch makes ta

[PATCH v3 2/2] cputime: remove extra cost in task_cputime

2015-10-29 Thread Hiroshi Shimamoto
From: Hiroshi Shimamoto There is an extra cost in task_cputime() and task_cputime_scaled() when nohz_full is not activated. This patch removes that cost. When vtime accounting is not enabled, we don't need to get deltas of utime and stime with seqlock. This patch adds a shortcut route if vtime a

Re: Re: [Regression] 4.3.0rc4 through rc7: No LCD backlight on Thinkpad T60P

2015-10-29 Thread Michel Dänzer
On 29.10.2015 23:26, Simon Wood wrote: > On Thu, October 29, 2015 8:07 am, Simon Wood wrote: >> > >>> Well, I can confirm that the patch stopped the Oops - but unfortunatly >>> the screen is still dark. >>> >>> Also, Oops _does_ happen with rc2 but the screens is OK with that... >>> Back >>> to lo

Re: [RESEND, tip/locking/core, v5, 1/6] powerpc: atomic: Make _return atomics and *{cmp}xchg fully ordered

2015-10-29 Thread Boqun Feng
On Tue, Oct 27, 2015 at 11:06:52AM +0800, Boqun Feng wrote: > On Tue, Oct 27, 2015 at 01:33:47PM +1100, Michael Ellerman wrote: > > On Mon, 2015-26-10 at 10:15:36 UTC, Boqun Feng wrote: > > > This patch fixes two problems to make value-returning atomics and > > > {cmp}xchg fully ordered on PPC. > >

Re: [patch 3/3] vmstat: Create our own workqueue

2015-10-29 Thread Christoph Lameter
On Thu, 29 Oct 2015, Tejun Heo wrote: > Wait, this series doesn't include Tetsuo's change. Of course it won't > fix the deadlock problem. What's necessary is Tetsuo's patch + > WQ_MEM_RECLAIM. This series is only dealing with vmstat changes. Do I get an ack here? -- To unsubscribe from this li

Re: [PATCH v3] Input: tsc2005 - Add support for tsc2004

2015-10-29 Thread Michael Welling
On Fri, Oct 30, 2015 at 09:39:05AM +0900, Mark Brown wrote: > On Thu, Oct 29, 2015 at 03:23:31PM -0700, Dmitry Torokhov wrote: > > > However, you have regmap in the driver core already. Mark, is it > > possible to have regmap API also allow doing raw underlying protocol > > transfer so that consum

Re: [PATCH v8 0/17] Add Analogix Core Display Port Driver

2015-10-29 Thread Yakir Yang
Hi Heiko, On 10/30/2015 01:49 AM, Heiko Stuebner wrote: Am Mittwoch, 28. Oktober 2015, 16:15:43 schrieb Yakir Yang: Hi all, The Samsung Exynos eDP controller and Rockchip RK3288 eDP controller share the same IP, so a lot of parts can be re-used. I split the common code into bridge director

[PATCH v4 5/6] virtio_mmio: Use the DMA API

2015-10-29 Thread Andy Lutomirski
This switches to vring_create_virtqueue, simplifying the driver and adding DMA API support. Signed-off-by: Andy Lutomirski --- drivers/virtio/virtio_mmio.c | 67 ++-- 1 file changed, 15 insertions(+), 52 deletions(-) diff --git a/drivers/virtio/virtio_mmi

[PATCH v4 4/6] virtio: Add improved queue allocation API

2015-10-29 Thread Andy Lutomirski
This leaves vring_new_virtqueue alone for compatbility, but it adds two new improved APIs: vring_create_virtqueue: Creates a virtqueue backed by automatically allocated coherent memory. (Some day it this could be extended to support non-coherent memory, too, if there ends up being a platform on w

[PATCH v4 6/6] virtio_pci: Use the DMA API

2015-10-29 Thread Andy Lutomirski
This switches to vring_create_virtqueue, simplifying the driver and adding DMA API support. Signed-off-by: Andy Lutomirski --- drivers/virtio/virtio_pci_common.h | 7 - drivers/virtio/virtio_pci_legacy.c | 39 +++- drivers/virtio/virtio_pci_modern.c | 61 ++--

[PATCH v4 1/6] virtio-net: Stop doing DMA from the stack

2015-10-29 Thread Andy Lutomirski
From: "Michael S. Tsirkin" Once virtio starts using the DMA API, we won't be able to safely DMA from the stack. virtio-net does a couple of config DMA requests from small stack buffers -- switch to using dynamically-allocated memory. This should have no effect on any performance-critical code p

[PATCH v4 3/6] virtio_pci: Use the DMA API

2015-10-29 Thread Andy Lutomirski
This fixes virtio-pci on platforms and busses that have IOMMUs. This will break the experimental QEMU Q35 IOMMU support until QEMU is fixed. In exchange, it fixes physical virtio hardware as well as virtio-pci running under Xen. We should clean up the virtqueue API to do its own allocation and t

[PATCH v4 2/6] virtio_ring: Support DMA APIs

2015-10-29 Thread Andy Lutomirski
virtio_ring currently sends the device (usually a hypervisor) physical addresses of its I/O buffers. This is okay when DMA addresses and physical addresses are the same thing, but this isn't always the case. For example, this never works on Xen guests, and it is likely to fail if a physical "virt

[PATCH v9 15/17] drm: bridge: analogix/dp: try force hpd after plug in lookup failed

2015-10-29 Thread Yakir Yang
Some edp screen do not have hpd signal, so we can't just return failed when hpd plug in detect failed. This is an hardware property, so we need add a devicetree property "analogix,need-force-hpd" to indicate this sutiation. Tested-by: Heiko Stuebner Tested-by: Javier Martinez Canillas Signed-of

[PATCH v4 0/6] virtio core DMA API conversion

2015-10-29 Thread Andy Lutomirski
This switches virtio to use the DMA API unconditionally. I'm sure it breaks things, but it seems to work on x86 using virtio-pci, with and without Xen, and using both the modern 1.0 variant and the legacy variant. This appears to work on native and Xen x86_64 using both modern and legacy virtio-p

Re: [PATCH v4 0/6] virtio core DMA API conversion

2015-10-29 Thread Andy Lutomirski
On Thu, Oct 29, 2015 at 6:09 PM, Andy Lutomirski wrote: > This switches virtio to use the DMA API unconditionally. I'm sure > it breaks things, but it seems to work on x86 using virtio-pci, with > and without Xen, and using both the modern 1.0 variant and the > legacy variant. ... > Andy Lutomi

Re: [alsa-devel] [PATCH V2 02/10] ASoC: img: Add driver for I2S input controller

2015-10-29 Thread Mark Brown
On Thu, Oct 29, 2015 at 03:42:59PM +, Damien Horsley wrote: > For the I2S In, there is another issue with flushing on stream close. If > the stream is stopped, then reconfigured to use a larger number of > channels (without the stream being closed), then the per-channel fifos > will become inc

[PATCH 2/3] PM / OPP: Add {opp-microvolt|opp-microamp|turbo-mode|opp-suspend}- binding

2015-10-29 Thread Viresh Kumar
Depending on the version of hardware or its properties, which are only known at runtime, various properties of the OPP can change. For example, an OPP with frequency 1.2 GHz, may have different voltage/current requirements based on the version of the hardware it is running on. Similarly, it may or

[PATCH 3/3] PM / OPP: Remove 'operating-points-names' binding

2015-10-29 Thread Viresh Kumar
These aren't used until now by any DT files and wouldn't be used now as we have a better scheme in place now, i.e. opp-property- properties. Remove the (useless) binding without breaking ABI. Signed-off-by: Viresh Kumar --- Documentation/devicetree/bindings/opp/opp.txt | 62 +---

<    1   2   3   4   5   6   7   >