Re: [RFC PATCH 1/2] tee: generic TEE subsystem

2015-04-18 Thread Greg Kroah-Hartman
On Sat, Apr 18, 2015 at 10:04:20AM +0100, Russell King - ARM Linux wrote: > On Sat, Apr 18, 2015 at 10:57:12AM +0200, Greg Kroah-Hartman wrote: > > On Fri, Apr 17, 2015 at 09:50:56AM +0200, Jens Wiklander wrote: > > > +struct tee_device { > > > + char name[TEE_MAX_DEV_NAME_LEN]; > > > + const

Re: sparc64: Build failure due to commit f1600e549b94 (sparc: Make sparc64 use scalable lib/iommu-common.c functions)

2015-04-18 Thread Sowmini Varadhan
On (04/18/15 11:28), Guenter Roeck wrote: > > Some merge gone wrong, maybe ? I tried to revert f1600e549b94 > and apply http://patchwork.ozlabs.org/patch/459803/ instead. That patch is a part-2 of a 3-part patch set. In order, this should have been v10: applied as:

Re: sparc64: Build failure due to commit f1600e549b94 (sparc: Make sparc64 use scalable lib/iommu-common.c functions)

2015-04-18 Thread Guenter Roeck
On 04/18/2015 05:05 AM, Sowmini Varadhan wrote: On (04/17/15 22:47), Guenter Roeck wrote: The problem is caused by commit f1600e549b94 ("sparc: Make sparc64 use scalable lib/iommu-common.c functions"), which introduces static DEFINE_PER_CPU(unsigned int, iommu_pool_hash); I have to confess

Re: [PATCH 3/3] iio: magn: bmc150_magn: Add devicetree binding documentation

2015-04-18 Thread Jonathan Cameron
On 17/04/15 11:50, Irina Tirdea wrote: > Add binding documentation for Bosch BMC150 magnetometer. > > Signed-off-by: Irina Tirdea > --- > .../bindings/iio/magnetometer/bmc150_magn.txt| 20 > > 1 file changed, 20 insertions(+) > create mode 100644 >

Re: [PATCH 2/3] iio: magn: Add support for BMC150 magnetometer

2015-04-18 Thread Jonathan Cameron
On 17/04/15 11:50, Irina Tirdea wrote: > Add support for the Bosh BMC150 Magnetometer. > The specification can be downloaded from: > http://ae-bst.resource.bosch.com/media/products/dokumente/bmc150/BST-BMC150-DS000-04.pdf. > The chip contains both an accelerometer and a magnetometer. > This patch

Re: [RESEND RFC PATCH 3/3] ASoC: mediatek: Add AFE platform driver

2015-04-18 Thread Mark Brown
On Fri, Apr 10, 2015 at 04:14:09PM +0800, Koro Chen wrote: > + if (memif->use_sram) { > + struct snd_dma_buffer *dma_buf = >dma_buffer; > + int size = params_buffer_bytes(params); > + > + memif->buffer_size = size; > + memif->phys_buf_addr =

Re: [RFC 0/6] perf tools: Report event parsing errors

2015-04-18 Thread Ingo Molnar
* Jiri Olsa wrote: > hi, > adding support to report error from event string parsing. Very nice! > This patchset contains support for standard parsing errors and more > logic to recognize tracepoint and 'pmu//' terms, like: > > $ perf record -e 'sched:krava' ls > invalid or unsupported

Re: [RESEND RFC PATCH 2/3] ASoC: mediatek: Add AFE connection control

2015-04-18 Thread Mark Brown
On Fri, Apr 10, 2015 at 04:14:08PM +0800, Koro Chen wrote: > +/* > + * The MTK AFE unit has a audio interconnect with MTK_AFE_INTERCONN_NUM_INPUT > + * inputs and MTK_AFE_INTERCONN_NUM_OUTPUT outputs. Below table holds the > + * register/bits to set to connect an input with an output. > + */ >

[PATCH] perf tools: Document --children option in more detail

2015-04-18 Thread Namhyung Kim
As the --children option changes the output of perf report (and perf top) it sometimes confuses users. Add more words and examples to help understanding of the option's behavior - and how to disable it ;-). Cc: Taeung Song Signed-off-by: Namhyung Kim --- tools/perf/Documentation/overhead.txt

Re: [RESEND RFC PATCH 1/3] ASoC: mediatek: Add binding support for AFE driver

2015-04-18 Thread Mark Brown
On Fri, Apr 10, 2015 at 04:14:07PM +0800, Koro Chen wrote: > +Each external interface (called "IO" in this driver) is presented as a > +DAI to ASoC. An IO must be connected via the interconnect to a memif. > +The connection paths are configured through the device tree. Why are these connection

Re: [tpmdd-devel] [RFC PATCH 1/2] tee: generic TEE subsystem

2015-04-18 Thread Jason Gunthorpe
On Sat, Apr 18, 2015 at 10:01:47AM +0100, Russell King - ARM Linux wrote: > On Fri, Apr 17, 2015 at 10:30:54AM -0600, Jason Gunthorpe wrote: > > On Fri, Apr 17, 2015 at 09:50:56AM +0200, Jens Wiklander wrote: > > > + teedev = devm_kzalloc(dev, sizeof(*teedev), GFP_KERNEL); > > [..] > > > + rc =

[PATCH 4/6] perf tools: Add location to pmu event terms

2015-04-18 Thread Jiri Olsa
Saving the terms location within term struct, so it could be used later for report. Link: http://lkml.kernel.org/n/tip-0usk1luyaeeguh8qmxwmm...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/parse-events.c | 32 tools/perf/util/parse-events.h | 8

[PATCH 1/6] perf tools: Add parse_events_error interface

2015-04-18 Thread Jiri Olsa
Adding support to return error information from parse_events function. Following struct will be populated by parse_events function on return: struct parse_events_error { int idx; char *str; }; where 'idx' is the position in the string where the parsing failed, and 'str' contains

[PATCH 3/6] perf tools: Change parse_events_add_pmu interface

2015-04-18 Thread Jiri Olsa
Changing parse_events_add_pmu interface to allow propagating of the parse_events_error info. Link: http://lkml.kernel.org/n/tip-lhjgvd0h5e9i890nprnrn...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/parse-events.c | 11 ++- tools/perf/util/parse-events.h | 5 +++--

[PATCH 5/6] perf tools: Add term support for parse_events_error

2015-04-18 Thread Jiri Olsa
Allowing event's term processing to report back error, like: $ ./perf record -e 'cpu/even=0x1/' ls invalid or unsupported event: 'cpu/even=0x1/' \___ unknown term Link: http://lkml.kernel.org/n/tip-xkbpn3j5of376ag7utcir...@git.kernel.org Signed-off-by:

[PATCH 2/6] perf tools: Add flex support for parse_events_error

2015-04-18 Thread Jiri Olsa
Allowing flex parser to report back event parsing error, like: $ perf record -e cycles,cache-mises ls invalid or unsupported event: '..es,cache-mises' \___ parser error Link: http://lkml.kernel.org/n/tip-j2ek52is8nt846pmyiib0...@git.kernel.org

[PATCH 6/6] perf tools: Add tracepoint support for parse_events_error

2015-04-18 Thread Jiri Olsa
Allowing tracepoint events processing to report back error. $ perf record -e 'sched:krava' ls invalid or unsupported event: 'sched:krava' \___ unknown tracepoint Link: http://lkml.kernel.org/n/tip-xkbpn3j5of376ag7utcir...@git.kernel.org Signed-off-by: Jiri

[RFC 0/6] perf tools: Report event parsing errors

2015-04-18 Thread Jiri Olsa
hi, adding support to report error from event string parsing. This patchset contains support for standard parsing errors and more logic to recognize tracepoint and 'pmu//' terms, like: $ perf record -e 'sched:krava' ls invalid or unsupported event: 'sched:krava'

Re: [PATCH 2/3] ASoC: tas571x: New driver for TI TAS571x power amplifiers

2015-04-18 Thread Mark Brown
On Sat, Apr 18, 2015 at 09:16:36AM -0700, Kevin Cernekee wrote: > On Sat, Apr 18, 2015 at 4:36 AM, Mark Brown wrote: > >> +static int tas571x_set_sysclk(struct snd_soc_dai *dai, > >> + int clk_id, unsigned int freq, int dir) > > Remove empty functions, at best they

Re: Read/write file from random(4) driver

2015-04-18 Thread Theodore Ts'o
On Sat, Apr 18, 2015 at 11:28:16AM -0400, Sandy Harris wrote: > What I'd like to add is a small (128 to 512 bits) file that the driver > tries to read during initialisation and writes periodically later. > This would not completely solve the problem but by moving the > read/write into the kernel

Re: [PATCH 11/14] MIPS: ath79: Add OF support to the GPIO driver

2015-04-18 Thread Alban
On Fri, 17 Apr 2015 16:53:31 +0200 Arnd Bergmann wrote: > On Friday 17 April 2015 16:24:26 Alban Bedel wrote: > > Replace the simple GPIO chip registration by a platform driver > > and make ath79_gpio_init() just register the device. > > > > Signed-off-by: Alban Bedel > > --- > >

Re: [PATCH 1/2] drm: rockchip: Don't pass DRM fake offset to dma-api

2015-04-18 Thread Heiko Stübner
Am Donnerstag, 16. April 2015, 16:41:51 schrieb Ørjan Eide: > Set vm_pgoff to 0 after using it to look up the GEM node, before passing > it on rockchip_gem_mmap_buf() where the offset must be from the start of > the buffer. > > Passing in the fake offset currently works because the >

Re: [PATCH 1/3] iio: core: Introduce IIO_CHAN_INFO_CALIBREPETITIONS

2015-04-18 Thread Jonathan Cameron
On 17/04/15 11:50, Irina Tirdea wrote: > Some magnetometers can perform a number of repetitions in HW > for each measurement to increase accuracy. One example is > Bosch BMC150: > http://ae-bst.resource.bosch.com/media/products/dokumente/bmc150/BST-BMC150-DS000-04.pdf. > > Introduce an interface

Re: [PATCH] iio: adc: spmi-vadc: Fix overflow in output value normalization

2015-04-18 Thread Jonathan Cameron
On 17/04/15 15:51, Ivan T. Ivanov wrote: > With 'dx' equal to 0.625V and 15 bit ADC, calculations overflow > when difference against GND is ~20% of the ADC range. Fix this. > > Signed-off-by: Ivan T. Ivanov Applied to the fixes-togreg branch of iio.git and marked for stable. Thanks, Jonathan >

[PATCH] Staging: rtl8723au: hal: Remove trailing whitespace in odm.c

2015-04-18 Thread Edward Lipinsky
This patch fixes the checkpatch.pl error: ERROR: trailing whitespace Signed-off-by: Edward Lipinsky --- drivers/staging/rtl8723au/hal/odm.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723au/hal/odm.c b/drivers/staging/rtl8723au/hal/odm.c index

Re: [PATCH 02/14] MIPS: ath79: Add basic device tree support

2015-04-18 Thread Alban
On Sat, 18 Apr 2015 09:05:52 +0200 Paul Bolle wrote: > On Fri, 2015-04-17 at 16:24 +0200, Alban Bedel wrote: > > > --- a/arch/mips/ath79/Kconfig > > +++ b/arch/mips/ath79/Kconfig > > > > +choice > > + prompt "Builtin devicetree selection" > > + default DTB_ATH79_NONE > > + help > > +

Re: [RFC PATCH 2/2] tee: add OP-TEE driver

2015-04-18 Thread Javier González
Hi, We have discussed and implemented an in-kernel interface for the driver. However, we need to agree on that interface with the kernel submodules that can be interested in using it (e.g., IMA, keyring). We though it was easier to have a framework in place before taking this space. This makes

Re: [GIT PULL] First batch of KVM changes for 4.1

2015-04-18 Thread Paolo Bonzini
On 18/04/2015 00:25, Andy Lutomirski wrote: >> Isn't the *whole* point of pvclock_clocksource_read() to be a native >> rdtsc with scaling? How does it cause that kind of insane pain? It's possible that your machine ends up with PVCLOCK_TSC_STABLE_BIT clear, so you get an atomic cmpxchg in

Re: [RFC PATCH 4/4] mm: madvise allow remove operation for hugetlbfs

2015-04-18 Thread Mike Kravetz
On 04/17/2015 10:11 AM, Mike Kravetz wrote: On 04/17/2015 12:10 AM, Hillf Danton wrote: Now that we have hole punching support for hugetlbfs, we can also support the MADV_REMOVE interface to it. Signed-off-by: Dave Hansen Signed-off-by: Mike Kravetz --- mm/madvise.c | 2 +- 1 file

Re: [PATCH 2/3] ASoC: tas571x: New driver for TI TAS571x power amplifiers

2015-04-18 Thread Kevin Cernekee
On Sat, Apr 18, 2015 at 4:36 AM, Mark Brown wrote: > On Wed, Apr 15, 2015 at 02:42:20PM -0700, Kevin Cernekee wrote: >> +static int tas571x_set_sysclk(struct snd_soc_dai *dai, >> + int clk_id, unsigned int freq, int dir) >> +{ >> + /* >> + * TAS5717 datasheet pg

[PATCH 13/14] of: Add vendor prefix for TP-Link Technologies Co. Ltd

2015-04-18 Thread Alban Bedel
Signed-off-by: Alban Bedel --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index b13aa55..9e965b6 100644 ---

[PATCH 14/14] MIPS: Add basic support for the TL-WR1043ND version 1

2015-04-18 Thread Alban Bedel
Add a DTS for TL-WR1043ND version 1 and allow to have it built in the kernel to circumvent the broken u-boot found on these boards. Currently only the UART, LEDs and buttons are supported. Signed-off-by: Alban Bedel --- arch/mips/ath79/Kconfig | 5 ++

[PATCH 12/14] MIPS: Add a basic dtsi for the AR9132

2015-04-18 Thread Alban Bedel
A basic dtsi for the AR9132 with support for the DDR controller, CPU and MISC interrupt controller, GPIO controller, the UART and the watchdog. Signed-off-by: Alban Bedel --- arch/mips/boot/dts/ar9132.dtsi | 119 + 1 file changed, 119 insertions(+)

Re: [PATCH V1 0/6] COVER LETTER

2015-04-18 Thread Guenter Roeck
On 04/17/2015 07:23 AM, S Twiss wrote: From: S Twiss This patch set adds support for the Dialog DA9062 Power Management IC. In this patch set the following is provided: - [PATCH V1 1/6]: MFD core support - [PATCH V1 2/6]: BUCK and LDO regulator driver - [PATCH V1 3/6]: RTC driver -

Re: [PATCH V1 5/6] watchdog: da9062: DA9062 watchdog driver

2015-04-18 Thread Guenter Roeck
On 04/17/2015 07:23 AM, S Twiss wrote: From: S Twiss Add watchdog driver support for DA9062 Signed-off-by: Steve Twiss Hi Steve, Key question here is if the da9062 is really so much different to the da9062 that you can not use the same driver. I am especially concerned about the added

[PATCH 5/7] tools lib traceevent: Add alias field to struct format_field

2015-04-18 Thread Jiri Olsa
Introduce an 'alias' field to 'struct format_field' to be able to use alternative name for the field. It is initialized with same string pointer as 'name' field. The free logic checks the 'alias' pointer being reset by user and frees it. This will be handy when converting data into CTF, where

[PATCH 6/7] perf data: Fix duplicate field names and avoid reserved keywords

2015-04-18 Thread Jiri Olsa
From: Wang Nan Some parameters of syscall tracepoints named as 'nr', 'event', etc. When dealing with them, perf convert to ctf meets some problem: 1. If a parameter with name 'nr', it will duplicate syscall's common field 'nr'. One such syscall is io_submit(). 2. If a parameter with name

[PATCH 7/7] perf data: Fix signess of value

2015-04-18 Thread Jiri Olsa
From: Wang Nan When converting int values, perf first extractes it to a ulonglong, then feeds it to babeltrace as a signed value. For negative 32 bit values (for example, return values of failed syscalls), the extracted data should be something like 0xfffe (-2). It becomes a large int64

[PATCH 2/7] perf data: Switch to multiple cpu stream files

2015-04-18 Thread Jiri Olsa
From: Sebastian Andrzej Siewior Currently we store the data into single data strea/file. The cpu if data is stored within the event sample. The lttng puts the CPU number that belongs to the event into the packet context instead into the event. This patch makes sure that the trace produce by

[PATCH 3/7] perf data: Enable stream flush within processing

2015-04-18 Thread Jiri Olsa
For big data files the size of data allocated for stream instance could get really high. It's needed to flush the data out of the stream once in a while. Unfortunately there's no size indication in the stream object, so we govern the flush based on the number of stored events. Current flush limit

[PATCHv6 0/7] perf tools: Add perf data CTF conversion

2015-04-18 Thread Jiri Olsa
hi, this is follow up on original RFC patchset: http://marc.info/?t=14073273564=1=2 Basically we are adding 'perf data convert' command to allow conversion of perf data file into CTF [1] data. v6 changes: - first bunch of patches got accepted, adding the rest plus additional fixes

[PATCH 4/7] perf data: Add support for setting ordered_events queue size

2015-04-18 Thread Jiri Olsa
Adding support to limit the size of ordered_events queue, so we could control allocation size of perf data files without proper finished round events. Acked-by: Namhyung Kim Reviewed-by: David Ahern Link: http://lkml.kernel.org/n/tip-lo2z8stxkj6n42065zahe...@git.kernel.org Signed-off-by: Jiri

[PATCH 1/7] perf data: Show error message when conversion failed

2015-04-18 Thread Jiri Olsa
From: He Kuang Show message when errors occurred during conversion setup and conversion process. Before this patch: $ ./perf data convert --to-ctf=ctf $ echo $? 255 After this patch: $ ./perf data convert --to-ctf=ctf Error during conversion setup. Signed-off-by: He Kuang Link:

Re: [PATCH] perf: Ensure symbols for plugins are exported

2015-04-18 Thread Jiri Olsa
On Fri, Apr 17, 2015 at 11:01:07PM +0200, Mathias Krause wrote: > On 17 April 2015 at 17:34, Jiri Olsa wrote: > > On Sun, Apr 12, 2015 at 06:00:51PM +0200, Mathias Krause wrote: > >> When building perf with perl or python support it implicitly gets linked > >> with the -export-dynamic linker

Re: [GIT PULL] PMEM driver for v4.1

2015-04-18 Thread Linus Torvalds
On Fri, Apr 17, 2015 at 2:38 AM, Christoph Hellwig wrote: > So we'be been busy discussing future steps in this thread for a few days, > but it seems like Linus doesn't like the pull request. Linus, can you > say what you don't like here? I basically don't do pulls that generate a lot of

Read/write file from random(4) driver

2015-04-18 Thread Sandy Harris
I realise that in general reading files from kernel space is a bad idea, and understand at least some of the reasons. I have read Greg K-H's article on the topic (http://www.linuxjournal.com/article/8110) and some other discussion. However, I think I see a specific exception and am looking for

[PATCH 1/3] libata: Stash initial power management configuration

2015-04-18 Thread Matthew Garrett
The initial configuration for power management settings may be a result of the firmware using its knowledge of the installed hardware to program reasonable defaults. Stash as much of it as possible for later use. Signed-off-by: Matthew Garrett --- drivers/ata/acard-ahci.c | 3 +++

[PATCH 3/3] libata: Change medium_power LPM policy to match Intel recommendations

2015-04-18 Thread Matthew Garrett
Intel publish a document on designing energy efficient SATA devices at http://www.intel.com/content/dam/doc/reference-guide/sata-devices-implementation-recommendations.pdf which recommends that ALPE be set, ASPE be cleared and that DIPM be enabled on the device. Right now we have no policy that

[PATCH 2/3] libata: Add firmware_default LPM policy

2015-04-18 Thread Matthew Garrett
System vendors may configure SATA link power management appropriately for their systems in firmware, based on their knowledge of the hardware installed. Add an additional LPM policy designed to inherit the configuration provided by the firmware. Signed-off-by: Matthew Garrett ---

Rework AHCI LPM handling a little

2015-04-18 Thread Matthew Garrett
This patchset tries to get us closer to having reasonable defaults for link power management on AHCI. Recent Intel CPUs can't enter deep power saving states unless the SATA link is in a low power state, appearing to be limited to PC6 in PARTIAL and PC7 in SLUMBER, and PC2 otherwise. This amounts

[GIT PULL] x86 fixes

2015-04-18 Thread Ingo Molnar
Linus, Please pull the latest x86-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-urgent-for-linus # HEAD: a6dfa128ce5c414ab46b1d690f7a1b8decb8526d config: Enable NEED_DMA_MAP_STATE by default when SWIOTLB is selected This tree includes:

[GIT PULL] perf updates

2015-04-18 Thread Ingo Molnar
Linus, Please pull the latest perf-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-urgent-for-linus # HEAD: 0c99241c93b8060441f3c8434848e54b5338f922 perf/x86/intel/pt: Fix and clean up error handling in pt_event_add() This update has

[GIT PULL] locking fixes

2015-04-18 Thread Ingo Molnar
Linus, Please pull the latest locking-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking-urgent-for-linus # HEAD: 8053871d0f7f67c7efb7f226ef031f78877d6625 smp: Fix smp_call_function_single_async() locking Two fixes: your smp-call fix and a

Re: [PATCH] tools/lib/api: undefine _FORTIFY_SOURCE before setting it

2015-04-18 Thread Jiri Olsa
On Sat, Apr 18, 2015 at 10:46:20AM -0400, Bobby Powers wrote: > Some toolchains (like Hardened Gentoo) define _FORTIFY_SOURCE in the > built-in, default args. This causes perf builds to fail with: > > :0:0: error: "_FORTIFY_SOURCE" redefined [-Werror] > : note: this is the location of the

[PATCH] tools/lib/api: undefine _FORTIFY_SOURCE before setting it

2015-04-18 Thread Bobby Powers
Some toolchains (like Hardened Gentoo) define _FORTIFY_SOURCE in the built-in, default args. This causes perf builds to fail with: :0:0: error: "_FORTIFY_SOURCE" redefined [-Werror] : note: this is the location of the previous definition cc1: all warnings being treated as errors To avoid this,

Re: [PATCH v2] serial: samsung: fix serial console break

2015-04-18 Thread Peter Hurley
On 04/17/2015 02:43 AM, Robert Baldyga wrote: > This patch fixes problems with serial console break. When function > s3c64xx_serial_startup() was started while serial console has been working, > it caused lose of characters written to TX FIFO. This effect was particularly > observable with

Re: [GIT RFC PULL rcu/urgent] Prevent Kconfig from asking pointless questions

2015-04-18 Thread Ingo Molnar
* Paul E. McKenney wrote: > On Sat, Apr 18, 2015 at 03:03:41PM +0200, Ingo Molnar wrote: > > > > * Paul E. McKenney wrote: > > > > > Hello, Ingo, > > > > > > This series contains a single change that fixes Kconfig asking pointless > > > questions (https://lkml.org/lkml/2015/4/14/616). This

Re: [PATCHv2 1/2] perf data: Show error message when conversion failed

2015-04-18 Thread Jiri Olsa
On Thu, Apr 09, 2015 at 11:45:21AM +0200, Jiri Olsa wrote: > On Thu, Apr 09, 2015 at 03:56:00PM +0800, He Kuang wrote: > > Show message when errors occurred during conversion setup and conversion > > process. > > > > Before this patch: > > $ ./perf data convert --to-ctf=ctf > > $ echo $? > >

Re: [PATCH V4] Fix pointer cast for 32 bits arch

2015-04-18 Thread Dan Carpenter
On Sat, Apr 18, 2015 at 03:34:08PM +0200, Peter Senna Tschudin wrote: > > > On Fri, Apr 17, 2015 at 4:10 PM, Alan Cox wrote: > > On Fri, 2015-04-17 at 16:59 +0300, Dan Carpenter wrote: > >> On Fri, Apr 17, 2015 at 02:31:49PM +0100, Alan Cox wrote: > >> > On Fri, 2015-04-17 at 11:20 +0300, Dan

Re: [PATCH 1/2] perf data: Show error message when ctf setup failed

2015-04-18 Thread Jiri Olsa
On Tue, Apr 14, 2015 at 01:47:51PM -0400, Jérémie Galarneau wrote: > Should be fixed as of this commit. > > commit 29664b2a3a15c7233d916887d2f58fc42e18521e > Author: Philippe Proulx > Date: Mon Apr 13 18:14:59 2015 -0400 > > Fix: ir: make sure "stream_id" attr is always right > >

race condition in linux-4.0/tools/net/bpf_jit_disasm.c

2015-04-18 Thread up201407890
Hi, There's a race condition in the linux-4.0 kernel at tools/net/bpf_jit_disasm.c caused /proc/self/exe linux-4.0/tools/net/bpf_jit_disasm.c static void get_exec_path(char *tpath, size_t size) { char *path; ssize_t len; snprintf(tpath, size, "/proc/%d/exe", (int)

Re: [RFC 0/6] perf stat: Metrics calculation fix

2015-04-18 Thread Jiri Olsa
On Tue, Apr 07, 2015 at 11:25:13PM +0200, Jiri Olsa wrote: > hi, > I'm sending Andi's patch accompanied with changes requested by Ingo. > http://marc.info/?l=linux-kernel=139748629929175=2 > > I added simple bit calculated index array, while exclude_* bits > might have more strict logic and ban

Re: [PATCH 3.10 00/34] 3.10.75-stable review

2015-04-18 Thread Guenter Roeck
On 04/18/2015 02:02 AM, Greg Kroah-Hartman wrote: On Fri, Apr 17, 2015 at 01:00:10PM -0700, Guenter Roeck wrote: On Fri, Apr 17, 2015 at 03:28:32PM +0200, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 3.10.75 release. There are 34 patches in this series, all

Re: [GIT RFC PULL rcu/urgent] Prevent Kconfig from asking pointless questions

2015-04-18 Thread Paul E. McKenney
On Sat, Apr 18, 2015 at 03:03:41PM +0200, Ingo Molnar wrote: > > * Paul E. McKenney wrote: > > > Hello, Ingo, > > > > This series contains a single change that fixes Kconfig asking pointless > > questions (https://lkml.org/lkml/2015/4/14/616). This is an RFC pull > > because there has not yet

Re: [PATCH V4] Fix pointer cast for 32 bits arch

2015-04-18 Thread Peter Senna Tschudin
On Fri, Apr 17, 2015 at 4:10 PM, Alan Cox wrote: > On Fri, 2015-04-17 at 16:59 +0300, Dan Carpenter wrote: >> On Fri, Apr 17, 2015 at 02:31:49PM +0100, Alan Cox wrote: >> > On Fri, 2015-04-17 at 11:20 +0300, Dan Carpenter wrote: >> > > Actually, my patch seems like a good idea to me but it's

[PATCH] staging: lustre: Make struct mdc_kuc_fops static

2015-04-18 Thread Dzmitry Sledneu
This patch fixes the following Sparse warning: "symbol 'mdc_kuc_fops' was not declared. Should it be static?". Signed-off-by: Dzmitry Sledneu --- drivers/staging/lustre/lustre/mdc/lproc_mdc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: 'perf upgrade' (was: Re: [PATCH v9 00/11] Add support for JSON event files.)

2015-04-18 Thread Jiri Olsa
On Wed, Apr 15, 2015 at 01:50:42PM -0700, Sukadev Bhattiprolu wrote: SNIP > > | > | - to add an ABI to support those vendor files > | > | And those are IMHO five good technical reasons to disagree with your > | approach. > | > | My suggestion to resolve the technical objections and lift

Re: [PATCHSET] printk, netconsole: implement reliable netconsole

2015-04-18 Thread Tetsuo Handa
Tejun Heo wrote: > > If we can assume that scheduler is working, adding a kernel thread that > > does > > > > while (1) { > > read messages with metadata from /dev/kmsg > > send them using UDP network > > } > > > > might be easier than modifying netconsole module. > > But, I

Re: 'perf upgrade' (was: Re: [PATCH v9 00/11] Add support for JSON event files.)

2015-04-18 Thread Jiri Olsa
On Fri, Apr 17, 2015 at 01:09:54PM -0700, Andi Kleen wrote: > On Fri, Apr 17, 2015 at 05:31:26PM +0200, Jiri Olsa wrote: > > On Wed, Apr 15, 2015 at 01:50:42PM -0700, Sukadev Bhattiprolu wrote: > > > > SNIP > > > > > | > > > | - to blindly follow some poorly constructed vendor format with no

Re: [GIT RFC PULL rcu/urgent] Prevent Kconfig from asking pointless questions

2015-04-18 Thread Ingo Molnar
* Paul E. McKenney wrote: > Hello, Ingo, > > This series contains a single change that fixes Kconfig asking pointless > questions (https://lkml.org/lkml/2015/4/14/616). This is an RFC pull > because there has not yet been a -next build for April 16th. If you > would prefer to wait until

Re: [PATCH v7] spi: Add SPI driver for Mikrotik RB4xx series boards

2015-04-18 Thread Mark Brown
On Wed, Apr 15, 2015 at 05:43:52PM +0200, Bert Vermeulen wrote: > This driver mediates access between the connected CPLD and other devices > on the bus. Applied, thanks. signature.asc Description: Digital signature

Re: [PATCH] spi: fsl-espi: fix behaviour for full-duplex xfers

2015-04-18 Thread Mark Brown
On Wed, Apr 15, 2015 at 12:23:18PM -0300, Jonatas Rech wrote: > Furthermore, this correction has exposed an inconsistency in the > protocol driver <-> controller driver interaction. The spi-fsl-espi > driver artificially inserts TX bytes when message fragmentation is > necessary (due to

[tip:x86/urgent] config: Enable NEED_DMA_MAP_STATE by default when SWIOTLB is selected

2015-04-18 Thread tip-bot for Konrad Rzeszutek Wilk
Commit-ID: a6dfa128ce5c414ab46b1d690f7a1b8decb8526d Gitweb: http://git.kernel.org/tip/a6dfa128ce5c414ab46b1d690f7a1b8decb8526d Author: Konrad Rzeszutek Wilk AuthorDate: Fri, 17 Apr 2015 15:04:48 -0400 Committer: Ingo Molnar CommitDate: Sat, 18 Apr 2015 14:36:49 +0200 config: Enable

[tip:perf/urgent] perf/x86/intel/pt: Fix and clean up error handling in pt_event_add()

2015-04-18 Thread tip-bot for Ingo Molnar
Commit-ID: 0c99241c93b8060441f3c8434848e54b5338f922 Gitweb: http://git.kernel.org/tip/0c99241c93b8060441f3c8434848e54b5338f922 Author: Ingo Molnar AuthorDate: Thu, 16 Apr 2015 12:38:30 +0200 Committer: Ingo Molnar CommitDate: Sat, 18 Apr 2015 13:31:26 +0200 perf/x86/intel/pt: Fix and

Re: sparc64: Build failure due to commit f1600e549b94 (sparc: Make sparc64 use scalable lib/iommu-common.c functions)

2015-04-18 Thread Sowmini Varadhan
On (04/17/15 22:47), Guenter Roeck wrote: > The problem is caused by commit f1600e549b94 ("sparc: Make sparc64 > use scalable lib/iommu-common.c functions"), which introduces > > static DEFINE_PER_CPU(unsigned int, iommu_pool_hash); I have to confess that I'm a little confused about what

Re: [PATCH 1/2] regulator: max14577: Reduce duplication of regulator_desc initializers

2015-04-18 Thread Mark Brown
On Sat, Apr 18, 2015 at 08:27:17PM +0900, Krzysztof Kozlowski wrote: > Replace duplicated initializers in arrays of struct 'regulator_desc' > with macro. Generated object is the same but each type of regulator is > described only once. Applied both, thanks. signature.asc Description: Digital

Re: [PATCH V1 2/6] regulator: da9062: DA9062 regulator driver

2015-04-18 Thread Mark Brown
On Fri, Apr 17, 2015 at 03:23:32PM +0100, S Twiss wrote: > +/* Regulator interrupt handlers */ > +static irqreturn_t da9062_ldo_lim_event(int irq, void *data) > +{ > + struct da9062_regulators *regulators = data; > + struct da9062 *hw = regulators->regulator[0].hw; > + struct

Re: [GIT PULL] kdbus for 4.1-rc1

2015-04-18 Thread David Herrmann
Hi On Thu, Apr 16, 2015 at 10:55 PM, Al Viro wrote: > On Thu, Apr 16, 2015 at 07:31:22PM +0200, David Herrmann wrote: > >> I'm working on patches to add more comments similar to how we did in >> node.c. For now, please see my explanations below: >> >> node->lock is the _innermost_ lock. >>

Re: [alsa-devel] [PATCH 2/3] ASoC: tas571x: New driver for TI TAS571x power amplifiers

2015-04-18 Thread Mark Brown
On Thu, Apr 16, 2015 at 02:57:49PM +0200, Lars-Peter Clausen wrote: > On 04/15/2015 11:42 PM, Kevin Cernekee wrote: > >+case TAS571X_ID_5711: > >+priv->codec_driver.controls = tas5711_controls; > >+priv->codec_driver.num_controls = ARRAY_SIZE(tas5711_controls); > >+

Re: [PATCH 2/3] ASoC: tas571x: New driver for TI TAS571x power amplifiers

2015-04-18 Thread Mark Brown
On Wed, Apr 15, 2015 at 02:42:20PM -0700, Kevin Cernekee wrote: This looks mostly good but several things below, all of which should be straightforward to fix. > +static int tas571x_set_sysclk(struct snd_soc_dai *dai, > + int clk_id, unsigned int freq, int dir) > +{ > +

[PATCH 1/2] regulator: max14577: Reduce duplication of regulator_desc initializers

2015-04-18 Thread Krzysztof Kozlowski
Replace duplicated initializers in arrays of struct 'regulator_desc' with macro. Generated object is the same but each type of regulator is described only once. Signed-off-by: Krzysztof Kozlowski --- drivers/regulator/max14577.c | 128 --- 1 file changed,

[PATCH 2/2] regulator: max77843: Reduce duplication of regulator_desc initializers

2015-04-18 Thread Krzysztof Kozlowski
Replace duplicated SAFEOUT regulators initializers in array of struct 'regulator_desc' arrays with macro. Generated object is the same but SAFEOUT is described only once. Signed-off-by: Krzysztof Kozlowski --- drivers/regulator/max77843.c | 48 +--- 1

Re: [patch] seccomp.2: Note that memory area is read-only

2015-04-18 Thread Michael Kerrisk (man-pages)
Hi Kees, Ping! Cheers, Michael On 6 April 2015 at 17:29, Michael Kerrisk (man-pages) wrote: > Hi Kees, > > I recently was asked about the point below, and had to go check the code > to be sure, since the man page said nothing. It would be good to have > a confirmation: the seccomp_data

Re: [PATCH 1/3] ASoC: tas571x: Add DT binding document

2015-04-18 Thread Mark Brown
On Wed, Apr 15, 2015 at 02:42:19PM -0700, Kevin Cernekee wrote: > +- VDD-supply: regulator phandle for the AVDD/DVDD/HP_VDD supply This is clearly not correct - if there are three separate physical supplies there should be three separate regulators requested. They may all resolve to one

[PATCH v2] dmaengine: bcm2835: Add slave dma support

2015-04-18 Thread Noralf Trønnes
Add slave transfer capability to BCM2835 dmaengine driver. This patch is pulled from the bcm2708-dmaengine driver in the Raspberry Pi repo. The work was done by Gellert Weisz. Tested using the bcm2835-mmc driver from the same repo. Signed-off-by: Noralf Trønnes --- Gellert Weisz has ended his

Re: [PATCH v2] spi: bitbang: Make setup_transfer() callback optional

2015-04-18 Thread Mark Brown
On Tue, Apr 14, 2015 at 03:40:17PM +0200, Pelle Nilsson wrote: > Some controller drivers have no need of this callback (spi-altera even > causes a NULL pointer dereference because it doesn't register the callback, > falsely assuming that it is already optional). I've applied this but really for

Re: [PATCH] crypto: ensure backlog is initialised

2015-04-18 Thread Herbert Xu
On Tue, Apr 14, 2015 at 11:51:29AM -0500, Colin King wrote: > From: Colin Ian King > > backlog is not initialised so in the case where > cpg->eng_st != ENGINE_IDLE it is never initialised and > hence which could lead to an illegal memory dereference > in the statement: > >

Re: sparc64: Build failure due to commit f1600e549b94 (sparc: Make sparc64 use scalable lib/iommu-common.c functions)

2015-04-18 Thread Sowmini Varadhan
On (04/17/15 22:47), Guenter Roeck wrote: > #define DEFINE_PER_CPU_SECTION(type, name, sec) \ > __PCPU_DUMMY_ATTRS char __pcpu_scope_##name;\ > extern __PCPU_DUMMY_ATTRS char __pcpu_unique_##name;\ > --> __PCPU_DUMMY_ATTRS

Re: [PATCH 3/3] regulator: qcom: smd: Regulator driver for the Qualcomm RPM

2015-04-18 Thread Mark Brown
On Mon, Apr 13, 2015 at 02:58:02PM -0700, Bjorn Andersson wrote: > Driver for regulators exposed by the Resource Power Manager (RPM) found > in devices based on Qualcomm 8974 and newer platforms. Reviewed-by: Mark Brown signature.asc Description: Digital signature

Re: [V4.1] Regression: Bluetooth mouse not working.

2015-04-18 Thread Jörg Otte
What this patch tried to do is to limit it to what userspace is currently actually using. My mistake was to look only at BlueZ 5.x userspace and not at BlueZ 4.x userspace. The fix to not break existing userspace is essentially this: > > diff --git a/net/bluetooth/hidp/core.c

[tip:x86/urgent] x86/fpu: Load xsave pointer *after* initialization

2015-04-18 Thread tip-bot for Borislav Petkov
Commit-ID: 18ecb3bfa5a9f6fffbb3eeb4369f0b9463438ec0 Gitweb: http://git.kernel.org/tip/18ecb3bfa5a9f6fffbb3eeb4369f0b9463438ec0 Author: Borislav Petkov AuthorDate: Thu, 16 Apr 2015 20:41:37 +0200 Committer: Ingo Molnar CommitDate: Fri, 17 Apr 2015 10:15:47 +0200 x86/fpu: Load xsave

[tip:perf/urgent] perf/x86/intel: Add Broadwell support for the LBR callstack

2015-04-18 Thread tip-bot for Kan Liang
Commit-ID: 78d504bcd769cc496f63b626f507039eab2316b7 Gitweb: http://git.kernel.org/tip/78d504bcd769cc496f63b626f507039eab2316b7 Author: Kan Liang AuthorDate: Thu, 2 Apr 2015 04:12:57 -0400 Committer: Ingo Molnar CommitDate: Fri, 17 Apr 2015 09:59:07 +0200 perf/x86/intel: Add Broadwell

[tip:perf/urgent] perf/x86/intel/rapl: Fix energy counter measurements but supporing per domain energy units

2015-04-18 Thread tip-bot for Jacob Pan
Commit-ID: 645523960102fa0ac0578d070630e49ab05f06d1 Gitweb: http://git.kernel.org/tip/645523960102fa0ac0578d070630e49ab05f06d1 Author: Jacob Pan AuthorDate: Thu, 26 Mar 2015 14:28:45 -0700 Committer: Ingo Molnar CommitDate: Fri, 17 Apr 2015 09:58:56 +0200 perf/x86/intel/rapl: Fix

[tip:locking/urgent] smp: Fix smp_call_function_single_async() locking

2015-04-18 Thread tip-bot for Linus Torvalds
Commit-ID: 8053871d0f7f67c7efb7f226ef031f78877d6625 Gitweb: http://git.kernel.org/tip/8053871d0f7f67c7efb7f226ef031f78877d6625 Author: Linus Torvalds AuthorDate: Wed, 11 Feb 2015 12:42:10 -0800 Committer: Ingo Molnar CommitDate: Fri, 17 Apr 2015 09:57:52 +0200 smp: Fix

Re: Error: DMA: Out of SW-IOMMU space [was: External USB drives become unresponsive after few hours.]

2015-04-18 Thread Dorian Gray
On 17 April 2015 at 22:06, Konrad Rzeszutek Wilk wrote: > On Fri, Apr 17, 2015 at 05:14:20PM +0200, Dorian Gray wrote: >> On 16 April 2015 at 20:42, Konrad Rzeszutek Wilk >> wrote: >> > And easier way is to compile the kernel with CONFIG_DMA_API_DEBUG >> > and then load the attached module. >>

[PATCH 3/3] f2fs: make has_fsynced_inode static

2015-04-18 Thread Chao Yu
has_fsynced_inode() has no other caller out of node.c, make it static. Signed-off-by: Chao Yu --- fs/f2fs/f2fs.h | 1 - fs/f2fs/node.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 5cf7e9f..9fd730a 100644 --- a/fs/f2fs/f2fs.h +++

[PATCH 2/3] f2fs: use is_valid_blkaddr to verify blkaddr for readability

2015-04-18 Thread Chao Yu
Export is_valid_blkaddr() and use it to replace some codes for readability. Signed-off-by: Chao Yu --- fs/f2fs/checkpoint.c | 3 +-- fs/f2fs/f2fs.h | 1 + fs/f2fs/recovery.c | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fs/f2fs/checkpoint.c

[PATCH 1/3] f2fs: make posix_acl_create() safer and cleaner

2015-04-18 Thread Chao Yu
Our f2fs_acl_create is copied from posix_acl_create in ./fs/posix_acl.c and modified to avoid deadlock bug when inline_dentry feature is enabled. Dan Carpenter rewrites posix_acl_create in commit 2799563b281f ("fs/posix_acl.c: make posix_acl_create() safer and cleaner") to make this function more

[PATCH 1/2] f2fs: support FALLOC_FL_COLLAPSE_RANGE

2015-04-18 Thread Chao Yu
Now, FALLOC_FL_COLLAPSE_RANGE flag in ->fallocate is supported in ext4/xfs. In commit, the semantics of this flag is descripted as following: "1) It collapses the range lying between offset and length by removing any data blocks which are present in this range and than updates all the logical

[PATCH] mm/slab_common: Support the slub_debug boot option on specific object size

2015-04-18 Thread Gavin Guo
The slub_debug=PU,kmalloc-xx cannot work because in the create_kmalloc_caches() the s->name is created after the create_kmalloc_cache() is called. The name is NULL in the create_kmalloc_cache() so the kmem_cache_flags() would not set the slub_debug flags to the s->flags. The fix here set up a

<    1   2   3   4   5   >