[PATCH] PM / OPP: Use snprintf() instead of sprintf()

2016-01-05 Thread Viresh Kumar
sprintf() can access memory outside of the range of the character array, and is risky in some situations. The driver specified prop_name string can be longer than NAME_MAX here (only an attacker will do that though) and so blindly copying it into the character array of size NAME_MAX isn't safe. Ins

Re: [PATCH V3 2/2] PM / OPP: Parse 'opp--' bindings

2016-01-05 Thread Viresh Kumar
On 05-01-16, 11:31, Geert Uytterhoeven wrote: > Any chance an attacker can overflow name[] by providing a very long > dev_opp->prop_name? > > Better safe than sorry: > > snprintf(name, sizeof(name), ...); Sent a patch to you.. -- viresh -- To unsubscribe from this list: send the line "

Re: [PATCH 2/5] perf tools: Add all matching dynamic sort keys for field name

2016-01-05 Thread Namhyung Kim
Hi Jiri, Thanks for your review! On Tue, Jan 05, 2016 at 10:24:27AM +0100, Jiri Olsa wrote: > On Tue, Jan 05, 2016 at 12:03:44PM +0900, Namhyung Kim wrote: > > SNIP > > > static int add_dynamic_entry(struct perf_evlist *evlist, const char *tok) > > { > > char *str, *event_name, *field_nam

Re: [PATCH] of/platform: export of_default_bus_match_table

2016-01-05 Thread Masahiro Yamada
Hi Arnd, 2016-01-05 19:13 GMT+09:00 Arnd Bergmann : > On Tuesday 05 January 2016 11:17:53 Masahiro Yamada wrote: >> Currently, drivers/bus/uniphier-system-bus.c is kept from being a >> module due to the unresolved reference to of_default_bus_match_table. >> >> Refer to commit 326ea45aa827 ("bus: u

Re: [PATCH] PM / OPP: Use snprintf() instead of sprintf()

2016-01-05 Thread Geert Uytterhoeven
On Tue, Jan 5, 2016 at 11:45 AM, Viresh Kumar wrote: > sprintf() can access memory outside of the range of the character array, > and is risky in some situations. The driver specified prop_name string > can be longer than NAME_MAX here (only an attacker will do that though) > and so blindly copyin

Re: [PATCH v5 03/11] arm-cci: Group writes to counter

2016-01-05 Thread Suzuki K. Poulose
On 04/01/16 19:03, Mark Rutland wrote: On Mon, Jan 04, 2016 at 11:54:42AM +, Suzuki K. Poulose wrote: Add a helper to group the writes to PMU counter, this will be used to delay setting the event period to pmu::pmu_enable() +/* Write a value to a given set of counters */ +static void __p

Re: [PATCH 01/32] mm, gup: introduce concept of "foreign" get_user_pages()

2016-01-05 Thread Vlastimil Babka
On 12/14/2015 08:05 PM, Dave Hansen wrote: From: Dave Hansen For protection keys, we need to understand whether protections should be enforced in software or not. In general, we enforce protections when working on our own task, but not when on others. We call these "current" and "foreign" oper

[PATCH 10/11] mmc: sdhci-pxav2: remove unnecessary assignment of pltfm_host->priv

2016-01-05 Thread Jisheng Zhang
The sdhci_pltfm_init() function has initialized the priv member as NULL, so there's no need to do it again. Signed-off-by: Jisheng Zhang --- drivers/mmc/host/sdhci-pxav2.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-pxav2.c b/drivers/mmc/host/sdhci-pxav2.c index bef

[PATCH 02/11] mmc: sdhci-esdhc-imx: use sdhci_pltfm_init for private allocation

2016-01-05 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates the sdhci esdhc-imx driver to this allocation. Signed-off-by: Jisheng Zhang --- drivers/mmc/host/s

[PATCH 05/11] mmc: sdhci-of-at91: use sdhci_pltfm_init for private allocation

2016-01-05 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates the sdhci-of-at91 driver to this allocation. Signed-off-by: Jisheng Zhang --- drivers/mmc/host/sdh

[PATCH 09/11] mmc: sdhci-tegra: use sdhci_pltfm_init for private allocation

2016-01-05 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates sdhci-tegra to this allocation. Signed-off-by: Jisheng Zhang --- drivers/mmc/host/sdhci-tegra.c |

[PATCH] ACPI, PCI, irq: remove redundant check for null string pointer

2016-01-05 Thread Colin King
From: Colin Ian King source is decleared as a 4 byte char array in struct acpi_pci_routing_table so !prt->source is a redundant null string pointer check. Detected with smatch: drivers/acpi/pci_irq.c:134 do_prt_fixups() warn: this array is probably non-NULL. 'prt->source' Signed-off-by: Colin

[PATCH 08/11] mmc: sdhci-st: use sdhci_pltfm_init for private allocation

2016-01-05 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates sdhci-st to this allocation. Signed-off-by: Jisheng Zhang --- drivers/mmc/host/sdhci-st.c | 36 +++

[PATCH 11/11] mmc: sdhci-pltfm: remove priv variable from sdhci_pltfm_host

2016-01-05 Thread Jisheng Zhang
Now all clients migration to use sdhci_pltfm_init for private allocation is done and there's no users of the priv variable, so we can remove it from the sdhci_pltfm_host structure. Signed-off-by: Jisheng Zhang --- drivers/mmc/host/sdhci-pltfm.h | 1 - 1 file changed, 1 deletion(-) diff --git a/

[PATCH 06/11] mmc: sdhci-of-esdhc: use sdhci_pltfm_init for private allocation

2016-01-05 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates the sdhci-of-esdhc driver to this allocation. Signed-off-by: Jisheng Zhang --- drivers/mmc/host/sd

[PATCH 03/11] mmc: sdhci-msm: use sdhci_pltfm_init for private allocation

2016-01-05 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates sdhci-msm to this allocation. Signed-off-by: Jisheng Zhang --- drivers/mmc/host/sdhci-msm.c | 13 +

[PATCH 07/11] mmc: sdhci-pxav3: use sdhci_pltfm_init for private allocation

2016-01-05 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates sdhci-pxav3 to this allocation. Signed-off-by: Jisheng Zhang --- drivers/mmc/host/sdhci-pxav3.c |

[PATCH 00/11] mmc: use sdhci_pltfm_init for private allocation and clean up

2016-01-05 Thread Jisheng Zhang
These patches are to complete the TODO in Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register"), I.E: - todo: migrate clients to using allocation this way - todo: remove priv variable once migration is complete Jisheng Zhang (11): mmc: sdhci-bcm2835: use sdhci_pltfm_init for

[PATCH 04/11] mmc: sdhci-of-arasan: use sdhci_pltfm_init for private allocation

2016-01-05 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates the sdhci-of-arasan driver to this allocation. Signed-off-by: Jisheng Zhang --- drivers/mmc/host/s

[PATCH 01/11] mmc: sdhci-bcm2835: use sdhci_pltfm_init for private allocation

2016-01-05 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates sdhci-bcm2835 to this allocation. Signed-off-by: Jisheng Zhang --- drivers/mmc/host/sdhci-bcm2835.

Re: [PATCHv7] EDAC, altera: Add Altera L2 Cache and OCRAM EDAC Support

2016-01-05 Thread Borislav Petkov
On Mon, Jan 04, 2016 at 05:42:40PM -0600, Thor Thayer wrote: > and then the defines are also used to conditionally include the L2 or OCRAM > ECC functions because everything is in one file. So? You don't have to do those funny games in the Makefile. Instead, you have your main CONFIG_EDAC_ALTERA_

Re: [RFC PATCH 0/3] x86: Add support for guest DMA dirty page tracking

2016-01-05 Thread Michael S. Tsirkin
On Tue, Jan 05, 2016 at 10:45:25AM +, Dr. David Alan Gilbert wrote: > * Michael S. Tsirkin (m...@redhat.com) wrote: > > On Tue, Jan 05, 2016 at 10:01:04AM +, Dr. David Alan Gilbert wrote: > > > * Michael S. Tsirkin (m...@redhat.com) wrote: > > > > On Mon, Jan 04, 2016 at 07:11:25PM -0800, A

[PATCH v2 4/5] perf tools: Support dynamic sort keys for -F/--fields

2016-01-05 Thread Namhyung Kim
Now dynamic sort keys are supported for tracepoint events, add it to output fields too. Acked-by: Jiri Olsa Signed-off-by: Namhyung Kim --- tools/perf/util/sort.c | 51 -- 1 file changed, 33 insertions(+), 18 deletions(-) diff --git a/tools/perf/

[PATCH v2 3/5] perf tools: Add document for dynamic sort keys

2016-01-05 Thread Namhyung Kim
Acked-by: Jiri Olsa Signed-off-by: Namhyung Kim --- tools/perf/Documentation/perf-report.txt | 24 1 file changed, 24 insertions(+) diff --git a/tools/perf/Documentation/perf-report.txt b/tools/perf/Documentation/perf-report.txt index ae7cd91727f6..8a301f6afb37 100644

[PATCH v2 5/5] perf evlist: Add -T/--trace option to show trace fields

2016-01-05 Thread Namhyung Kim
To use dynamic sort keys, it might be good to add an option to see the list of field names. $ perf evlist -T -i perf.data.sched sched:sched_switch: trace_fields=prev_comm,prev_pid,prev_prio,prev_state,next_comm,next_pid,next_prio sched:sched_stat_wait: trace_fields=comm,pid,delay sched:sc

[PATCH v2 1/5] perf tools: Fix segfault when using -s trace_fields

2016-01-05 Thread Namhyung Kim
When the 'trace_fields' sort key is used explicitly for non-tracepoint events, it'll get segfault since it assumed evsel->tp_format was set. Skip those events in add_all_dynamic_fields(). Acked-by: Jiri Olsa Signed-off-by: Namhyung Kim --- tools/perf/util/sort.c | 3 +++ 1 file changed, 3 inser

[PATCH v2 2/5] perf tools: Add all matching dynamic sort keys for field name

2016-01-05 Thread Namhyung Kim
When a perf.data file has multiple events, it's likely to be similar (tracepoint) events. In that case, they might have same field name so add all of them to sort keys instead of bailing out. In addition, it contains a trivial whitespace fix at callsite of add_all_dynamic_fields(). Signed-off-by

Re: [RFC PATCH 0/3] x86: Add support for guest DMA dirty page tracking

2016-01-05 Thread Dr. David Alan Gilbert
* Michael S. Tsirkin (m...@redhat.com) wrote: > On Tue, Jan 05, 2016 at 10:45:25AM +, Dr. David Alan Gilbert wrote: > > * Michael S. Tsirkin (m...@redhat.com) wrote: > > > On Tue, Jan 05, 2016 at 10:01:04AM +, Dr. David Alan Gilbert wrote: > > > > * Michael S. Tsirkin (m...@redhat.com) wrot

Re: [RFC PATCH 0/3] x86: Add support for guest DMA dirty page tracking

2016-01-05 Thread Michael S. Tsirkin
On Tue, Jan 05, 2016 at 10:45:25AM +, Dr. David Alan Gilbert wrote: > * Michael S. Tsirkin (m...@redhat.com) wrote: > > On Tue, Jan 05, 2016 at 10:01:04AM +, Dr. David Alan Gilbert wrote: > > > * Michael S. Tsirkin (m...@redhat.com) wrote: > > > > On Mon, Jan 04, 2016 at 07:11:25PM -0800, A

Re: [RFC PATCH 0/3] x86: Add support for guest DMA dirty page tracking

2016-01-05 Thread Michael S. Tsirkin
On Tue, Jan 05, 2016 at 12:59:54PM +0200, Michael S. Tsirkin wrote: > On Tue, Jan 05, 2016 at 10:45:25AM +, Dr. David Alan Gilbert wrote: > > * Michael S. Tsirkin (m...@redhat.com) wrote: > > > On Tue, Jan 05, 2016 at 10:01:04AM +, Dr. David Alan Gilbert wrote: > > > > * Michael S. Tsirkin

Re: [RFC PATCH v2 1/3] PCI: Add support for enforcing all MMIO BARs to be page aligned

2016-01-05 Thread Yongji Xie
On 2016/1/5 4:47, Alex Williamson wrote: On Thu, 2015-12-31 at 16:50 +0800, Yongji Xie wrote: When vfio passthrough a PCI device of which MMIO BARs are smaller than PAGE_SIZE, guest will not handle the mmio accesses to the BARs which leads to mmio emulations in host. This is because vfio will n

Re: [PATCH] net: Fix potential NULL pointer dereference in __skb_try_recv_datagram

2016-01-05 Thread Jacob Siverskog
On Mon, Jan 4, 2016 at 4:25 PM, Eric Dumazet wrote: > On Mon, 2016-01-04 at 10:10 +0100, Jacob Siverskog wrote: >> On Wed, Dec 30, 2015 at 11:30 PM, Cong Wang wrote: >> > On Wed, Dec 30, 2015 at 6:30 AM, Jacob Siverskog >> > wrote: >> >> On Wed, Dec 30, 2015 at 2:26 PM, Eric Dumazet wrote: >> >

Re: [RFC PATCH 0/3] x86: Add support for guest DMA dirty page tracking

2016-01-05 Thread Michael S. Tsirkin
On Tue, Jan 05, 2016 at 11:03:38AM +, Dr. David Alan Gilbert wrote: > * Michael S. Tsirkin (m...@redhat.com) wrote: > > On Tue, Jan 05, 2016 at 10:45:25AM +, Dr. David Alan Gilbert wrote: > > > * Michael S. Tsirkin (m...@redhat.com) wrote: > > > > On Tue, Jan 05, 2016 at 10:01:04AM +, D

Re: [PATCH v3 1/3] clocksource/vt8500: Increase the minimum delta

2016-01-05 Thread Roman Volkov
В Tue, 5 Jan 2016 11:31:37 +0100 Daniel Lezcano пишет: > On 01/05/2016 11:00 AM, Russell King - ARM Linux wrote: > > On Tue, Jan 05, 2016 at 12:42:42PM +0300, Roman Volkov wrote: > >> Why multiply by two? Good question. Maybe there is a reserve for > >> stability. The value passed by the system

Re: [PATCH v6 4/7] dax: add support for fsync/msync

2016-01-05 Thread Jan Kara
On Wed 23-12-15 12:39:17, Ross Zwisler wrote: > To properly handle fsync/msync in an efficient way DAX needs to track dirty > pages so it is able to flush them durably to media on demand. > > The tracking of dirty pages is done via the radix tree in struct > address_space. This radix tree is alre

Re: [PATCH v6 4/7] dax: add support for fsync/msync

2016-01-05 Thread Jan Kara
On Sun 03-01-16 10:13:06, Dan Williams wrote: > On Wed, Dec 23, 2015 at 11:39 AM, Ross Zwisler > wrote: > > To properly handle fsync/msync in an efficient way DAX needs to track dirty > > pages so it is able to flush them durably to media on demand. > > > > The tracking of dirty pages is done via

Re: [PATCH] base/platform: Fix platform drivers with no probe callback (ex alarmtimer)

2016-01-05 Thread Martin Fuzzey
Hi Uwe, On 05/01/16 09:43, Uwe Kleine-König wrote: Hello, I think this is the same problem that another Martin found and fixed in http://mid.gmane.org/1449132704-9952-1-git-send-email-martin.wi...@ts.fujitsu.com Yes it's the same problem and the fix is equivalent to my patch I didn't check,

Re: [bug] wrong result of android callchain

2016-01-05 Thread Will Deacon
On Tue, Jan 05, 2016 at 11:20:55AM +0100, Peter Zijlstra wrote: > On Tue, Jan 05, 2016 at 05:14:37PM +0800, He Kuang wrote: > > I found a wrong result of aarch64 callchain when using perf script on > > a android phone. > > Might help to include the AARGH64 people then.. seeing I have no clue > abo

RE: [PATCH] netfilter: nf_conntrack: use safer way to lock all buckets

2016-01-05 Thread David Laight
From: Sasha Levin > Sent: 05 January 2016 02:26 > When we need to lock all buckets in the connection hashtable we'd attempt to > lock 1024 spinlocks, which is way more preemption levels than supported by > the kernel. Furthermore, this behavior was hidden by checking if lockdep is > enabled, and if

Re: [PATCH 6/6] perf record: Always store data mmaps

2016-01-05 Thread Namhyung Kim
On Thu, Dec 17, 2015 at 09:26:55PM +0100, Jiri Olsa wrote: > Currently we don't synthesize data mmap by default. It depends > on -d option, that enables data address sampling. > > But we've seen cases (softice) where DWARF unwinder went through > non executable mmaps, which we need to lookup in MA

Re: [PATCH v6 1/4] x86: Clean up extable entry format (and free up a bit)

2016-01-05 Thread Borislav Petkov
On Mon, Jan 04, 2016 at 03:25:58PM -0800, Andy Lutomirski wrote: > On Mon, Jan 4, 2016 at 3:02 PM, Borislav Petkov wrote: > > On Mon, Jan 04, 2016 at 02:29:09PM -0800, Andy Lutomirski wrote: > >> Josh will argue with you if he sees that :) > > > > Except Josh doesn't need allyesconfigs. tinyconfig

Re: Reading the same block via partition and non-partitioned device gives different content

2016-01-05 Thread NeilBrown
On Tue, Jan 05 2016, Andrei Borzenkov wrote: > [Please Cc me on reply; thank you] > > QEMU KVM virtual machine with openSUSE Tumbleweed (kernel > 4.3.3-3-default); MD RAID1 with 1.2 metadata on /dev/vdb1 and /dev/vdc1. > > If I do > > mdadm /dev/mdX --fail /dev/vdb1 > mdadm /dev/mdX --add /dev/vdd

Re: "git send-email" thru Gmail incurs few minutes delay

2016-01-05 Thread Geert Uytterhoeven
On Sun, Jan 3, 2016 at 2:52 PM, Andrey Utkin wrote: > After "Send this email? ([y]es|[n]o|[q]uit|[a]ll): y" prompt and > before "Password for 'smtp://x...@gmail.com@smtp.gmail.com:587':" > prompt I always have a delay of 2-3 minutes. It is weird! "Unsafe > clients" are allowed in Gmail settings. >

Re: [PATCH] ARM: dts: omap3: Include missing bandgap data for ti-soc-thermal driver

2016-01-05 Thread Pali Rohár
On Thursday 31 December 2015 09:38:45 Eduardo Valentin wrote: > > + > > + bandgap { > > + reg = <0x48002524 0x4>; > > + compatible = "ti,omap36xx-bandgap"; > > Can you please already add on both cases > > #thermal-sensor-cells = <0>; > ? > > This way

[PATCH] arm64: dts: qcom: apq8016-sbc: leds: bt and wlan

2016-01-05 Thread Vinay Simha BN
BT LED - PMIC - MPP_03 WLAN LED - PMIC - MPP_02 Signed-off-by: Vinay Simha BN --- arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi b/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi index 7bb0a

Re: [PATCH 1/5] arm: devtree: Set system_rev from DT "/revision"

2016-01-05 Thread Pali Rohár
On Monday 28 December 2015 23:27:17 Arnd Bergmann wrote: > On Monday 28 December 2015 13:01:22 Frank Rowand wrote: > > > > Patch 2/5 copies the value from ATAG_REVISION into the fdt "/revision" > > property. > > > > If the use of /revision is limited to being a location to hold an ATAG > > value

Re: new cmdline parameter disable_cpu_features= (microcode update?)

2016-01-05 Thread Borislav Petkov
On Tue, Jan 05, 2016 at 01:27:21AM +0100, Piotr Dąbrowski wrote: > Is the microcode's header encrypted too? > I thought there are two Processor Flags fields ('pf') available [1]. > Are they what I think they are? > Is the header signed too, or only the actual microcode blob below the > headers is?

Re: [PATCH] ACPI / video: driver must be registered before checking for keypresses

2016-01-05 Thread Hans de Goede
Hi, On 04-01-16 23:22, Adrien Schildknecht wrote: acpi_video_handles_brightness_key_presses() may use an uninitialized mutex. The error has been reported by lockdep: DEBUG_LOCKS_WARN_ON(l->magic != l). The function assumes that the video driver has been registered before being called. As explain

[PATCH] lightnvm: move the pages per block check out of the loop

2016-01-05 Thread Wenwei Tao
There is no need to check whether dev's pages per block is beyond rrpc support everytime we init a lun, we only need to check it once before enter the lun init loop. Signed-off-by: Wenwei Tao --- drivers/lightnvm/rrpc.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --gi

Re: thinkpad_acpi: BUG: unable to handle kernel NULL pointer dereference

2016-01-05 Thread Hans de Goede
Hi all, On 05-01-16 09:17, Pali Rohár wrote: Hello, looks like this fault is in acpi video module, not in thinkpad. CCing Hans who introduced this acpi video brightness key change. Hans, can you look at this bug? Pali thanks for bringing this to my attention. Adrien Schildknecht has already

Re: [PATCH 00/11] mmc: use sdhci_pltfm_init for private allocation and clean up

2016-01-05 Thread Arnd Bergmann
On Tuesday 05 January 2016 18:51:28 Jisheng Zhang wrote: > These patches are to complete the TODO in Commit 0e748234293f ("mmc: > sdhci: Add size for caller in init+register"), I.E: > > - todo: migrate clients to using allocation this way > - todo: remove priv variable once migration is complete >

Re: [PATCH] lightnvm: move the pages per block check out of the loop

2016-01-05 Thread Matias Bjørling
On 01/05/2016 12:43 PM, Wenwei Tao wrote: There is no need to check whether dev's pages per block is beyond rrpc support everytime we init a lun, we only need to check it once before enter the lun init loop. Signed-off-by: Wenwei Tao --- drivers/lightnvm/rrpc.c | 11 +-- 1 file chang

Re: [PATCH 1/5] arm: devtree: Set system_rev from DT "/revision"

2016-01-05 Thread Arnd Bergmann
On Tuesday 05 January 2016 12:37:50 Pali Rohár wrote: > On Monday 28 December 2015 23:27:17 Arnd Bergmann wrote: > > On Monday 28 December 2015 13:01:22 Frank Rowand wrote: > > > > > > Patch 2/5 copies the value from ATAG_REVISION into the fdt "/revision" > > > property. > > > > > > If the use of

Re: [PATCH] of/platform: export of_default_bus_match_table

2016-01-05 Thread Arnd Bergmann
On Tuesday 05 January 2016 19:50:31 Masahiro Yamada wrote: > 2016-01-05 19:13 GMT+09:00 Arnd Bergmann : > > On Tuesday 05 January 2016 11:17:53 Masahiro Yamada wrote: > > This bus is used to connect external (on-board) devices with the SoC. > > So, no possibility for AMBA, but > I want "simple-bu

[PATCH] scsi: mvsas: fix indenting on return error code

2016-01-05 Thread Colin King
From: Colin Ian King The return code and error return is incorrectly indented which may cause some confusion as it appears at first sight to be associated with a device not ready error (with missing { } braces) rather than a DEV_IS_GONE() failure. The incorrect indenting was introduced by commit

Re: [PATCH v1 3/3] ARM64 LPC: update binding doc

2016-01-05 Thread Rongrong Zou
在 2016/1/5 0:34, Arnd Bergmann 写道: On Tuesday 05 January 2016 00:04:19 Rongrong Zou wrote: 在 2016/1/4 19:13, Arnd Bergmann 写道: On Sunday 03 January 2016 20:24:14 Rongrong Zou wrote: 在 2015/12/31 23:00, Rongrong Zou 写道: */ compatible = "low-pin-count"; device_type = "isa"; #ad

Re: [linux-sunxi] [RFC PATCH] drivers: pinctrl: add driver for Allwinner A64 SoC

2016-01-05 Thread Andre Przywara
Hi Maxime, On 04/01/16 20:30, Maxime Ripard wrote: > Hi Andre, > > On Mon, Jan 04, 2016 at 10:29:06AM +, Andre Przywara wrote: diff --git a/drivers/pinctrl/sunxi/Makefile b/drivers/pinctrl/sunxi/Makefile index e080290..130e7bc 100644 --- a/drivers/pinctrl/sunxi/Makefile >

[PATCH 3/3] ARM: dts: twl6030: add gpadc

2016-01-05 Thread H. Nikolaus Schaller
tested on Pandaboard ES. Signed-off-by: H. Nikolaus Schaller --- arch/arm/boot/dts/twl6030.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/twl6030.dtsi b/arch/arm/boot/dts/twl6030.dtsi index 55eb35f..98e444d 100644 --- a/arch/arm/boot/dts/twl6030.dtsi +++ b/arch/

[PATCH 0/3] Enable twl603x-GPADC for some OMAP4/OMAP5 boards and Palmas-RTC for OMAP5

2016-01-05 Thread H. Nikolaus Schaller
This patch series adds DT nodes for: twl6030-gpadc for omap4 based boards (Pandaboard ES) twl6037-gpadc for omap5 based boards (OMAP5 EVM) twl6037-rtc for omap5 based boards (OMAP5 EVM) H. Nikolaus Schaller (3): ARM: dts: omap5-board-common: enable rtc and charging of backup battery ARM:

Re: [PATCH 6/6] Serial:8250: New Port Type PORT_AMD_8250

2016-01-05 Thread Heikki Krogerus
Hi Hongcheng, My comments below.. On Mon, Jan 04, 2016 at 01:31:41PM +0800, Wang Hongcheng wrote: > Set a new port type for AMD Carrizo. Add has_pl330_dma to 8250_dw's > private data and init fcr,ier as well as dma rx size. > > Signed-off-by: Wang Hongcheng > --- > drivers/acpi/acpi_apd.c

Re: [RFC PATCH 1/3] getcpu_cache system call: cache CPU number of running thread

2016-01-05 Thread Will Deacon
Hi Mathieu, On Tue, Jan 05, 2016 at 02:01:58AM -0500, Mathieu Desnoyers wrote: > Expose a new system call allowing threads to register userspace memory > areas where to store the CPU number on which the calling thread is > running. Scheduler migration sets the TIF_NOTIFY_RESUME flag on the > curre

[PATCH 1/3] ARM: dts: omap5-board-common: enable rtc and charging of backup battery

2016-01-05 Thread H. Nikolaus Schaller
tested on OMP5432 EVM Signed-off-by: H. Nikolaus Schaller --- arch/arm/boot/dts/omap5-board-common.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/omap5-board-common.dtsi b/arch/arm/boot/dts/omap5-board-common.dtsi index 5cf76a1..30c0d3b 100644 --- a/arch/arm/

[PATCH 2/3] ARM: dts: omap5-board-common: enable iio gpadc for Palmas

2016-01-05 Thread H. Nikolaus Schaller
tested on OMP5432 EVM Signed-off-by: H. Nikolaus Schaller --- arch/arm/boot/dts/omap5-board-common.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/omap5-board-common.dtsi b/arch/arm/boot/dts/omap5-board-common.dtsi index 30c0d3b..56429ce 100644 --- a/arch/

Re: [PATCH v2 22/32] s390: define __smp_xxx

2016-01-05 Thread Martin Schwidefsky
On Tue, 5 Jan 2016 11:30:19 +0200 "Michael S. Tsirkin" wrote: > On Tue, Jan 05, 2016 at 09:13:19AM +0100, Martin Schwidefsky wrote: > > On Mon, 4 Jan 2016 22:18:58 +0200 > > "Michael S. Tsirkin" wrote: > > > > > On Mon, Jan 04, 2016 at 02:45:25PM +0100, Peter Zijlstra wrote: > > > > On Thu, Dec

[PATCH] crypto: ANSI X9.31 DRNG is not allowed in FIPS 140-2

2016-01-05 Thread Stephan Mueller
As per update of the FIPS 140-2 Annex C supported by SP800-131A, the ANSI X9.31 DRNG is not an allowed cipher in FIPS mode any more. CC: Neil Horman Signed-off-by: Stephan Mueller --- crypto/testmgr.c | 1 - 1 file changed, 1 deletion(-) diff --git a/crypto/testmgr.c b/crypto/testmgr.c index a

Re: [PATCH] i2c/designware: enable i2c controller to suspend/resume asynchronously

2016-01-05 Thread Andy Shevchenko
On Tue, 2016-01-05 at 10:53 +0200, Jarkko Nikula wrote: > Hi > > On 12/24/2015 04:30 PM, Fu, Zhonghui wrote: > > Now, PM core supports asynchronous suspend/resume mode for devices > > during system suspend/resume, and the power state transition of one > > device may be completed in separate kernel

Re: [PATCH v11 0/4] Allow USB devices to remain runtime-suspended when sleeping

2016-01-05 Thread Rafael J. Wysocki
On Monday, January 04, 2016 06:27:18 PM Derek Basehore wrote: > On Mon, Nov 02, 2015 at 02:50:40AM +0100, Rafael J. Wysocki wrote: > > > > I've queued up this series for the second half of the v4.4 merge window. > > > > Thanks, > > Rafael > > > > > >

Re: [PATCH v4 1/6] clk: hisilicon: add CRG driver for hi3519 soc

2016-01-05 Thread xuejiancheng
Hi Philipp, Thank you very much for your quick reply. On 2016/1/5 18:12, Philipp Zabel wrote: > H Jiancheng, > > Am Mittwoch, den 30.12.2015, 09:43 +0800 schrieb Jiancheng Xue: >> The CRG(Clock and Reset Generator) block provides clock >> and reset signals for other modules in hi3519 soc. >> >

Re: use-after-free in __perf_install_in_context

2016-01-05 Thread Peter Zijlstra
On Thu, Dec 31, 2015 at 06:15:41PM +0100, Dmitry Vyukov wrote: > On Thu, Dec 17, 2015 at 3:43 PM, Peter Zijlstra wrote: > > On Thu, Dec 17, 2015 at 03:35:32PM +0100, Dmitry Vyukov wrote: > >> In short, I did not see use-after-frees but perf_event_open fuzzing > >> started hanging VMs very frequent

Re: [PATCH] ACPI / video: driver must be registered before checking for keypresses

2016-01-05 Thread Rafael J. Wysocki
On Tuesday, January 05, 2016 12:43:54 PM Hans de Goede wrote: > Hi, > > On 04-01-16 23:22, Adrien Schildknecht wrote: > > acpi_video_handles_brightness_key_presses() may use an uninitialized mutex. > > The error has been reported by lockdep: DEBUG_LOCKS_WARN_ON(l->magic != l). > > The function ass

Re: [PATCH RFC 2/3] x86/xen/time: setup vcpu 0 time info page

2016-01-05 Thread Joao Martins
On 01/04/2016 09:34 PM, Boris Ostrovsky wrote: > On 01/04/2016 03:41 PM, Joao Martins wrote: >> >> On 01/04/2016 04:07 PM, Boris Ostrovsky wrote: >>> On 12/28/2015 04:52 PM, Joao Martins wrote: >>> + + size = PAGE_ALIGN(sizeof(struct pvclock_vsyscall_time_info)); + mem = memblock

Re: [PATCH v1 3/3] ARM64 LPC: update binding doc

2016-01-05 Thread Arnd Bergmann
On Tuesday 05 January 2016 19:59:49 Rongrong Zou wrote: > 在 2016/1/5 0:34, Arnd Bergmann 写道: > > On Tuesday 05 January 2016 00:04:19 Rongrong Zou wrote: > >> 在 2016/1/4 19:13, Arnd Bergmann 写道: > >>> On Sunday 03 January 2016 20:24:14 Rongrong Zou wrote: > 在 2015/12/31 23:00, Rongrong Zou 写道:

Re: [PATCH v4 net-next 2/3] net: macb: Add NPx macb config using USRIO_DISABLED cap

2016-01-05 Thread Neil Armstrong
On 01/04/2016 11:38 AM, Nicolas Ferre wrote: > Le 04/01/2016 10:42, Neil Armstrong a écrit : >> static const struct macb_config zynqmp_config = { >> .caps = MACB_CAPS_GIGABIT_MODE_AVAILABLE | MACB_CAPS_JUMBO, >> @@ -2801,6 +2806,7 @@ static const struct of_device_id macb_dt_ids[] = { >>

Re: [PATCH V2] tty/n_gsm.c: use gsm->num to remove mux itself from gsm_mux[]

2016-01-05 Thread One Thousand Gnomes
On Tue, 05 Jan 2016 15:42:52 +0800 Pan Xinhui wrote: > From: Pan Xinhui > > There is one filed gsm->num to store mux's index of gsm_mux[]. So use > gsm->num to remove itself from gsm_mux[] instead of the for-loop > traverse in gsm_cleanup_mux(). > > Signed-off-by: Pan Xinhui Reviewed-by: Ala

Re: [PATCH v4 5/6] mfd: dt-bindings: add device tree bindings for Hi3519 sysctrl

2016-01-05 Thread xuejiancheng
On 2016/1/5 18:12, Philipp Zabel wrote: > Am Mittwoch, den 30.12.2015, 09:43 +0800 schrieb Jiancheng Xue: >> Add device tree bindings for Hi3519 system controller. >> >> Signed-off-by: Jiancheng Xue >> --- >> Documentation/devicetree/bindings/mfd/hi3519.txt | 14 ++ >> 1 file changed

Re: [PATCH] ACPI / SBS: fix inconsistent indenting inside if statement

2016-01-05 Thread Rafael J. Wysocki
On Friday, January 01, 2016 11:53:45 PM Colin King wrote: > From: Colin Ian King > > The indenting in acpi_battery_set_alarm is inconsistent and has been > so since 2007; commit 94f6c0860139da9219255b8ff45ad42117dda859 > ("ACPI: SBS: Add support for power_supply class (and sysfs)"). Minor > fix f

[PATCH] pinctrl: rockchip: add support for the rk3399

2016-01-05 Thread David Wu
From: David Wu The pinctrl of rk3399 is much different from other's, especially the 3bits of drive strength. Change-Id: I6d0260256f8cf742f940770b317b26571bf42023 Signed-off-by: David Wu --- .../bindings/pinctrl/rockchip,pinctrl.txt | 1 + drivers/pinctrl/pinctrl-rockchip.c

Re: [PATCH V5 4/9] Drivers: hv: ring_buffer: enhance hv_ringbuffer_read() to support hvsock

2016-01-05 Thread Vitaly Kuznetsov
Dexuan Cui writes: > To get the payload of hvsock, we need raw=0 to skip the level-1 header > (i.e., struct vmpacket_descriptor desc) and we also need to skip the > level-2 header (i.e., struct vmpipe_proto_header pipe_hdr). > > NB: if the length of the hvsock payload is not aligned with the 8-by

Re: [PATCH] cpufreq: ondemand: Set MIN_FREQUENCY_UP_THRESHOLD to 1

2016-01-05 Thread Rafael J. Wysocki
On Monday, January 04, 2016 11:26:51 AM Viresh Kumar wrote: > On 04-01-16, 12:14, Chen Yu wrote: > > Currently the minimal up_threshold is 11, and user may want to > > use a smaller minimal up_threshold for performance tuning, > > so MIN_FREQUENCY_UP_THRESHOLD could be set to 1 because: > > > > 1.

Re: [PATCH] cpufreq-dt: fix handling regulator_get_voltage result

2016-01-05 Thread Rafael J. Wysocki
On Monday, January 04, 2016 10:58:56 AM Viresh Kumar wrote: > On 30-12-15, 12:18, Andrzej Hajda wrote: > > The function can return negative values so it should be assigned > > to signed type. > > > > The problem has been detected using proposed semantic patch > > scripts/coccinelle/tests/unsigned_

Applied "MIPS: VDSO: Fix build error with binutils 2.24 and earlier" to the asoc tree

2016-01-05 Thread Mark Brown
The patch MIPS: VDSO: Fix build error with binutils 2.24 and earlier has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours)

[PATCH] scripts/bloat-o-meter: fix python3 syntax error

2016-01-05 Thread Sergey Senozhatsky
From: Sergey Senozhatsky In Python3+ print is a function so the old syntax is not correct anymore: :$ ./scripts/bloat-o-meter vmlinux.o vmlinux.o.old : File "./scripts/bloat-o-meter", line 61 :print "add/remove: %s/%s grow/shrink: %s/%s up/down: %s/%s (%s)" % \ :

Re: [PATCH] scsi: mvsas: fix indenting on return error code

2016-01-05 Thread Tomas Henzl
On 5.1.2016 12:56, Colin King wrote: > From: Colin Ian King > > The return code and error return is incorrectly indented which > may cause some confusion as it appears at first sight to be associated > with a device not ready error (with missing { } braces) rather than > a DEV_IS_GONE() failure. >

Re: [PATCH V5 5/9] Drivers: hv: vmbus: add APIs to send/recv hvsock packets

2016-01-05 Thread Vitaly Kuznetsov
Dexuan Cui writes: > This will be used by the coming net/hvsock driver. > > Signed-off-by: Dexuan Cui > --- > drivers/hv/channel.c | 59 > ++ > include/linux/hyperv.h | 9 > 2 files changed, 68 insertions(+) > > diff --git a/drivers/h

[PATCH] scsi: imm: use new parport device model

2016-01-05 Thread Sudip Mukherjee
Modify imm driver to use the new parallel port device model. Signed-off-by: Sudip Mukherjee --- I usually submit checkpatch cleanup and other modifications while converting a driver to use parport device model. For this driver i hesitated. If you want I can send a series with this modification a

Re: [RFC PATCH 0/3] x86: Add support for guest DMA dirty page tracking

2016-01-05 Thread Dr. David Alan Gilbert
* Michael S. Tsirkin (m...@redhat.com) wrote: > On Tue, Jan 05, 2016 at 10:45:25AM +, Dr. David Alan Gilbert wrote: > > * Michael S. Tsirkin (m...@redhat.com) wrote: > > > On Tue, Jan 05, 2016 at 10:01:04AM +, Dr. David Alan Gilbert wrote: > > > > * Michael S. Tsirkin (m...@redhat.com) wrot

Re: [PATCH] usb: f_fs: avoid race condition with ffs_epfile_io_complete

2016-01-05 Thread Michal Nazarewicz
On Tue, Jan 05 2016, Peter Chen wrote: > Why -EINTR, the kernel-doc said it should return -ECONNRESET for > active request, see include/linux/usb/gadget.h. Because EINTR is what read returns to the user if the operation has been interrupted by a signal, see ‘man 2 read’: EINTR The call was

Re: [PATCH v4 1/6] clk: hisilicon: add CRG driver for hi3519 soc

2016-01-05 Thread xuejiancheng
Hi Mike, I am sorry. I have to correct my answer about using CLK_OF_DECLARE. On 2016/1/5 15:21, xuejiancheng wrote: > Hi Mike, >Happy new year to you! >Thank you for taking time to reply. > > On 2015/12/31 8:23, Michael Turquette wrote: >> Hello Jiancheng Xue, >> >> Quoting J

Re: [PATCH V5 7/9] Drivers: hv: vmbus: add a mechanism to pass hvsock events to the hvsock driver

2016-01-05 Thread Vitaly Kuznetsov
Dexuan Cui writes: > For now only 1 event is defined: HVSOCK_RESCIND_CHANNEL. > We'll have more events in the future. > > Signed-off-by: Dexuan Cui > --- > drivers/hv/channel_mgmt.c | 18 ++ > include/linux/hyperv.h| 17 + > 2 files changed, 35 insertions(+)

Re: [PATCH 03/11] mmc: sdhci-msm: use sdhci_pltfm_init for private allocation

2016-01-05 Thread kbuild test robot
Hi Jisheng, [auto build test WARNING on v4.4-rc8] [also build test WARNING on next-20160105] [cannot apply to ulf.hansson-mmc/next] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Jisheng

[PATCH resend] scsi: imm: use new parport device model

2016-01-05 Thread Sudip Mukherjee
Modify imm driver to use the new parallel port device model. Signed-off-by: Sudip Mukherjee --- Resending as the first mail bounced back with the error: Delivery to the following recipient failed permanently: jbottom...@odin.com Looking at the MAINTAINERS file gives me multiple email addre

[PATCH] staging/ion: Add support to get ion handle from dma buf

2016-01-05 Thread Rohit kumar
Currently we can only import dma buf fd's to get ion_handle. Adding support to import dma buf handles to support kernel specific use cases. Signed-off-by: Rohit kumar --- Currently, ION is the memory manager for graphics in android. However, in other linux platforms such as Tizen, DRM-GEM is used

[PATCH v2 2/3] Input: cyttsp - add device tree support

2016-01-05 Thread Oreste Salerno
Add support for retrieving the platform data from the device tree. Signed-off-by: Oreste Salerno --- .../bindings/input/touchscreen/cyttsp.txt | 73 ++ drivers/input/touchscreen/cyttsp_core.c| 108 +++-- include/linux/input/cyttsp.h

[PATCH v2 0/3] Add device tree support to the cyttsp driver

2016-01-05 Thread Oreste Salerno
This set of patches adds support to the cyttsp touchscreen driver to retrieve platform data details from the device tree. Additionally, they define a default init function that performs a hard reset of the chip on boot. --- Changes in v2: - Fix err_cast.cocci warning in patch 2/3 Oreste Salerno

[PATCH v2 1/3] Input: cyttsp - remove unused irq_gpio from platform_data

2016-01-05 Thread Oreste Salerno
This field is not being used and the irq is anyway passed via the 'irq' parameter to cyttsp_probe. Signed-off-by: Oreste Salerno --- include/linux/input/cyttsp.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/input/cyttsp.h b/include/linux/input/cyttsp.h index 5af7c66..d7c2520

[PATCH v2 3/3] Input: cyttsp - add default init function

2016-01-05 Thread Oreste Salerno
When using device trees, it's not possible to assign an init() function in the platform data. In case the init function has not been assigned, attempt to perform a hard reset of the chip, using reset gpio defined in the platform data / device tree. Signed-off-by: Oreste Salerno --- drivers/input

Re: [PATCH v6] coccinelle: tests: unsigned value cannot be lesser than zero

2016-01-05 Thread Geyslan G. Bem
Hello, 2016-01-04 4:45 GMT-03:00 Andrzej Hajda : > Unsigned expressions cannot be lesser than zero. Presence of comparisons > 'unsigned (<|<=|>|>=) 0' often indicates a bug, usually wrong type of > variable. > The patch beside finding such comparisons tries to eliminate false positives, > mainly

[PATCH v2 0/4] Various R-Car PCIe patches

2016-01-05 Thread Phil Edworthy
The first patch removes code that is no longer used. The next two allow us to use runtim PM. The last patch is for PHY setup in order to get PCIe compliance apparently. For that last patch, I've been told that this is what I must set. v2: PATCH 2/4 - Use readl_poll_timeout_atomic when waiting unt

[PATCH v2 1/4] PCI: rcar: remove unused pci_sys_data structure in pcie-rcar

2016-01-05 Thread Phil Edworthy
Commit b3a72384fe29 ("ARM/PCI: Replace pci_sys_data->align_resource with global function pointer") removed the struct pci_sys_data dependency from the ARM pcibios functions, so remove it from this driver. Signed-off-by: Phil Edworthy --- v2: - No changes. --- drivers/pci/host/pcie-rcar.c | 9

[PATCH v2 2/4] PCI: rcar: Support runtime PM link state L1 handling in pcie-rcar

2016-01-05 Thread Phil Edworthy
The R-Car PCIe host controller does not handle L1 ASPM. Instead, the hardware needs assistance to transition to L1. When the controller has received a PM_ENTER_L1 DLLP, we can't access a card's config regs until we have got it out of L1 link state. The host controller will handle this as long as it

<    1   2   3   4   5   6   7   8   9   10   >