Re: [PATCH v3 1/3] lightnvm: specify target's logical address area

2016-02-05 Thread Matias Bjørling
On 02/04/2016 12:34 PM, Wenwei Tao wrote: > We can create more than one target on a lightnvm > device by specifying its begin lun and end lun. > > But only specify the physical address area is not > enough, we need to get the corresponding non- > intersection logical address area division from > t

Re: [PATCH 2/3] lightnvm: add a bitmap of luns

2016-02-05 Thread Matias Bjørling
On 02/04/2016 12:34 PM, Wenwei Tao wrote: > Add a bitmap of luns to indicate the status > of luns: inuse/available. When create targets > do the necessary check to avoid allocating luns > that are already allocated. > > Signed-off-by: Wenwei Tao > --- > drivers/lightnvm/core.c | 5 > dri

Re: [PATCH] mm, hugetlb: don't require CMA for runtime gigantic pages

2016-02-05 Thread Vlastimil Babka
On 02/05/2016 01:14 AM, Kirill A. Shutemov wrote: >> include/linux/gfp.h | 6 +++--- >> mm/hugetlb.c| 2 +- >> mm/page_alloc.c | 2 +- >> 3 files changed, 5 insertions(+), 5 deletions(-) > > One more place missed: gigantic_pages_init() in arch/x86/mm/hugetlbpage.c > Could you relax th

Re: [RFC] why the amount of cache from "free -m" and /proc/meminfo are different?

2016-02-05 Thread Daniel K.
On 02/05/2016 07:50 AM, Xishi Qiu wrote: > [root@localhost ~]# free -m > totalusedfree shared buff/cache > available > Mem: 48295 574 41658 86062 > 46344 > Swap: 24191 0 24191 > > [root@l

Re: [PATCHv2 2/3] arm64: Add support for ARCH_SUPPORTS_DEBUG_PAGEALLOC

2016-02-05 Thread Ard Biesheuvel
Hi Laura, On 4 February 2016 at 20:43, Laura Abbott wrote: > > ARCH_SUPPORTS_DEBUG_PAGEALLOC provides a hook to map and unmap > pages for debugging purposes. This requires memory be mapped > with PAGE_SIZE mappings since breaking down larger mappings > at runtime will lead to TLB conflicts. Check

Re: [PATCHv3 3/3] arm64: ptdump: Indicate whether memory should be faulting

2016-02-05 Thread Ard Biesheuvel
On 4 February 2016 at 20:43, Laura Abbott wrote: > > With CONFIG_DEBUG_PAGEALLOC, pages do not have the valid bit > set when free in the buddy allocator. Add an indiciation to > the page table dumping code that the valid bit is not set, > 'F' for fault, to make this easier to understand. > > Signe

Re: [PATCH 2/3] lightnvm: add a bitmap of luns

2016-02-05 Thread Matias Bjørling
On 02/05/2016 01:23 PM, Wenwei Tao wrote: > Forgot to do that. > Thanks for fixing my mistake. No worries, you fixed a couple that I introduced ;)

Re: [PATCH 2/3] lightnvm: add a bitmap of luns

2016-02-05 Thread Wenwei Tao
Forgot to do that. Thanks for fixing my mistake. 2016-02-05 19:59 GMT+08:00 Matias Bjørling : > On 02/04/2016 12:34 PM, Wenwei Tao wrote: >> Add a bitmap of luns to indicate the status >> of luns: inuse/available. When create targets >> do the necessary check to avoid allocating luns >> that are a

Re: [PATCH v2] perf tools: handle spaces in file names obtained from /proc/pid/maps

2016-02-05 Thread Arnaldo Carvalho de Melo
Em Thu, Feb 04, 2016 at 11:39:25PM +0100, Marcin Ślusarz escreveu: > On Tue, Jan 19, 2016 at 08:03:03PM +0100, Marcin Ślusarz wrote: > > Steam frequently puts game binaries in folders with spaces. > > > > Note: "(deleted)" markers are now treated as part of the file name. > > > > It probably work

Re: [PATCH v3 00/10] Input: synaptics-rmi4: Synaptics RMI4 Driver

2016-02-05 Thread Linus Walleij
On Wed, Feb 3, 2016 at 2:43 AM, Andrew Duggan wrote: > This is the v3 patch series which fixes the issues identified in the > previous patch series. For the core, I2C and F01+F11 (what I'm using): Tested-by: Linus Walleij ...provided you apply something like that IRQ patch I just sent. This l

[PATCH 0/2] crypto: atmel-sha - fix resource management

2016-02-05 Thread Cyrille Pitchen
Hi all, these two small patches fix resource release and clock management in atomic context. Best regards, Cyrille Cyrille Pitchen (2): crypto: atmel-sha: fix atmel_sha_remove() crypto: atmel-sha - remove calls of clk_prepare() from atomic contexts drivers/crypto/atmel-sha.c | 23

[PATCH 1/2] crypto: atmel-sha: fix atmel_sha_remove()

2016-02-05 Thread Cyrille Pitchen
Since atmel_sha_probe() uses devm_xxx functions to allocate resources, atmel_sha_remove() should no longer explicitly release them. Signed-off-by: Cyrille Pitchen Fixes: b0e8b3417a62 ("crypto: atmel - use devm_xxx() managed function") --- drivers/crypto/atmel-sha.c | 7 --- 1 file changed, 7

[PATCH 2/2] crypto: atmel-sha - remove calls of clk_prepare() from atomic contexts

2016-02-05 Thread Cyrille Pitchen
clk_prepare()/clk_unprepare() must not be called within atomic context. This patch calls clk_prepare() once for all from atmel_sha_probe() and clk_unprepare() from atmel_sha_remove(). Then calls of clk_prepare_enable()/clk_disable_unprepare() were replaced by calls of clk_enable()/clk_disable().

Re: [PATCH V2 3/6] stm class: provision for statically assigned masterIDs

2016-02-05 Thread Alexander Shishkin
Chunyan Zhang writes: > From: Mathieu Poirier > > Some architecture like ARM assign masterIDs statically at the HW design > phase, making masterID manipulation in the generic STM core irrelevant. > > This patch adds a new 'mstatic' flag to struct stm_data that tells the > core that this specific

Re: [PATCH v3 3/3] lightnvm: add non-continuous lun target creation support

2016-02-05 Thread Matias Bjørling
On 02/05/2016 03:42 AM, Wenwei Tao wrote: > When create a target, we specify the begin lunid and > the end lunid, and get the corresponding continuous > luns from media manager, if one of the luns is not free, > we failed to create the target, even if the device's > total free luns are enough. > >

Re: [PATCH V2 1/6] stm class: Add ioctl get_options interface

2016-02-05 Thread Alexander Shishkin
Chunyan Zhang writes: > There is already an interface of set_options, but no get_options yet. > Before setting any options, one would may want to see the current > status of that option by means of get_options interface. This > interface has been used in CoreSight STM driver. > > Signed-off-by: C

Re: [PATCH v10 5/5] Watchdog: ARM SBSA Generic Watchdog half timeout panic support

2016-02-05 Thread Thomas Petazzoni
Hello, On Fri, 5 Feb 2016 17:51:52 +0800, Fu Wei wrote: > OK, my thought is > > if panic is enabled : > |WOR---WS0WOR---WS1 > |--timeout--(panic)--timeout-reset I'm quite certainly missing something completely obvious here, but how can you get the WS1 int

[PATCH 02/23] perf callchain: Check return value of add_child()

2016-02-05 Thread Namhyung Kim
The create_child() in add_child() can return NULL in case of memory allocation failure. So check the return value and bail out. The proper error handling will be added later. Acked-by: Jiri Olsa Cc: Frederic Weisbecker Signed-off-by: Namhyung Kim --- tools/perf/util/callchain.c | 8

[PATCH 03/23] perf callchain: Check return value of fill_node()

2016-02-05 Thread Namhyung Kim
Memory allocation in the fill_node() can fail so change its return type to int and check it in add_child() too. Acked-by: Jiri Olsa Cc: Frederic Weisbecker Signed-off-by: Namhyung Kim --- tools/perf/util/callchain.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff

[PATCH 09/23] perf hists: Basic support of hierarchical report view

2016-02-05 Thread Namhyung Kim
In the hierarchical view, entries will be grouped and sorted on the first key, and then second key, and so on. Add he->hroot_{in,out} field to keep lower level entries. Actually this can be shared with callchain sorted_root since the hroots are only used by non-leaf entries and callchain is only u

[PATCH 08/23] perf report: Check error during report__collapse_hists()

2016-02-05 Thread Namhyung Kim
If it returns an error, warn user and bail out instead of silently ignoring. Acked-by: Jiri Olsa Signed-off-by: Namhyung Kim --- tools/perf/builtin-report.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-repor

[PATCH 10/23] perf hists: Resort hist entries with hierarchy

2016-02-05 Thread Namhyung Kim
For hierarchical output, each entries should be sorted in their rbtree (hroot) properly. Add hists__hierarchy_output_resort() to do the job. Note that those hierarchy entries share the period counts, it'd be important to update the hists->stats only once (for leaves). Acked-by: Pekka Enberg Sig

[PATCH 15/23] perf ui/stdio: Align column header for hierarchy output

2016-02-05 Thread Namhyung Kim
The hierarchy output mode is to group entries so the existing columns won't fit to the new output. Treat all sort keys as a single column and separate headers by "/". #Overhead Command / Shared Object # ... # 15.11% swapper 1

[PATCH 17/23] perf hists browser: Support collapsing/expanding whole entries in hierarchy

2016-02-05 Thread Namhyung Kim
The 'C' and 'E' keys are to collapse/expand all hist entries. Update nr_hierarchy_entries properly in this case. Acked-by: Pekka Enberg Signed-off-by: Namhyung Kim --- tools/perf/ui/browsers/hists.c | 65 +++--- 1 file changed, 54 insertions(+), 11 deletions

[PATCH 20/23] perf ui/gtk: Implement hierarchy output mode

2016-02-05 Thread Namhyung Kim
The hierarchy output mode is to group entries for each level so that user can see higher level picture more easily. Acked-by: Pekka Enberg Signed-off-by: Namhyung Kim --- tools/perf/ui/gtk/hists.c | 161 +- 1 file changed, 160 insertions(+), 1 deletio

[PATCH 23/23] perf top: Add --hierarchy option

2016-02-05 Thread Namhyung Kim
Support hierarchy output for perf-top using --hierarchy option. Acked-by: Pekka Enberg Signed-off-by: Namhyung Kim --- tools/perf/Documentation/perf-top.txt | 3 +++ tools/perf/builtin-top.c | 15 +++ 2 files changed, 18 insertions(+) diff --git a/tools/perf/Documenta

[PATCH 22/23] perf hists: Support decaying in hierarchy mode

2016-02-05 Thread Namhyung Kim
In the hierarchy mode, hist entries should decay their children too. Also update hists__delete_entry() to be able to free child entries. Acked-by: Pekka Enberg Signed-off-by: Namhyung Kim --- tools/perf/util/hist.c | 42 ++ 1 file changed, 34 insertions(+

[PATCH 18/23] perf hists browser: Implement hierarchy output

2016-02-05 Thread Namhyung Kim
Implement hierarchy mode in TUI. The output is look like stdio but it also supports to fold/unfold children dynamically. Acked-by: Pekka Enberg Signed-off-by: Namhyung Kim --- tools/perf/ui/browsers/hists.c | 269 + 1 file changed, 247 insertions(+), 22

[PATCH 12/23] perf hists: Introduce hist_entry__filter()

2016-02-05 Thread Namhyung Kim
The hist_entry__filter() function is to filter hist entries using sort key relatd info. This is needed to support hierarchy mode since each hist entry will be associated with a hpp fmt which has a sort key. So each entry should compare to only matching type of filters. To do that, add the ->se_fi

[PATCH 19/23] perf hists browser: Align column header in hierarchy mode

2016-02-05 Thread Namhyung Kim
Like in stdio, fit column header to hierarchy output. Merge column headers with "/" as a separator. OverheadCommand / Shared Object / Symbol ... + 0.09%dwm + 0.06%emacs - 0.05%perf - 0.05%[kernel.vmlinux] + 0.03%[k]

[PATCH 21/23] perf report: Add --hierarchy option

2016-02-05 Thread Namhyung Kim
The --hierarchy option is to show output in hierarchy mode. It extends folding/unfolding in the TUI and GTK browsers to support sort items as well as callchains. Users can toggle the items to see the performance result at wanted level. $ perf report --hierarchy --tui OverheadCommand

Re: [PATCH 0/8] perf config: Document config variables in man page

2016-02-05 Thread Namhyung Kim
Hi Taeung, On Fri, Feb 05, 2016 at 08:03:30PM +0900, Taeung Song wrote: > Hi, Arnaldo > > I'm sorry I missed a thing out. > Lastly default calchain perfcent limit is changed to 0.005%. > This is a default value of call-graph.threshold. Nope, AFAICS the patch was not merged. And I decided to cha

Re: [PATCH V2 6/6] coresight-stm: adding driver for CoreSight STM component

2016-02-05 Thread Alexander Shishkin
Chunyan Zhang writes: > +#ifndef CONFIG_64BIT > +static inline void __raw_writeq(u64 val, volatile void __iomem *addr) > +{ > + asm volatile("strd %1, %0" > + : "+Qo" (*(volatile u64 __force *)addr) > + : "r" (val)); > +} Is it really ok to do this for all !

Re: [PATCH v2] vsprintf: automatic parameters for %pIS via 'a'

2016-02-05 Thread Jason A. Donenfeld
On Fri, Feb 5, 2016 at 1:06 AM, Rasmus Villemoes wrote: > First of all I don't think vsprintf.c should be extended with yet > another piece of unused code, so I hope there's an actual user coming. There is. Don't worry. > > Second, please add tests to lib/test_printf.c. Sure, no problem. I'll a

[PATCH 16/23] perf hists browser: Count number of hierarchy entries

2016-02-05 Thread Namhyung Kim
Add nr_hierarchy_entries field to keep current number of (unfolded) hist entries. And the hist_entry->nr_rows carries number of direct children. But in the hierarchy mode, entry can have grand children and callchains. So update the number properly using hierarchy_count_rows() when toggling the fol

[PATCH 13/23] perf hists: Support filtering in hierarchy mode

2016-02-05 Thread Namhyung Kim
The hists__filter_hierarchy() function implements filtering in hierarchy mode. Now we have hist_entry__filter() so use it for entries in the hierarchy. It returns 3 kind of values. A negative value means that it's not filtered by this type. It marks current entry as filtered tentatively so if a

Re: [PATCH RFC 10/11] clk: sunxi: rewrite sun6i-ar100 using factors clk

2016-02-05 Thread Chen-Yu Tsai
On Mon, Feb 1, 2016 at 12:59 AM, Paul Gortmaker wrote: > On Mon, Jan 25, 2016 at 8:15 AM, Chen-Yu Tsai wrote: >> sun6i's AR100 clock is a classic factors clk case: >> >> AR100 = ((parent mux) >> p) / (m + 1) >> >> Signed-off-by: Chen-Yu Tsai > > This patch adds a ".remove" function to a driver t

[PATCH 14/23] perf ui/stdio: Implement hierarchy output mode

2016-02-05 Thread Namhyung Kim
The hierarchy output mode is to group entries for each level so that user can see higher level picture more easily. It also helps to find out which component is most costly. The output will look like below: 15.11% swapper 14.97% [kernel.vmlinux] 0.09% [libahc

Re: [PATCH v10 5/5] Watchdog: ARM SBSA Generic Watchdog half timeout panic support

2016-02-05 Thread Timur Tabi
Thomas Petazzoni wrote: if panic is enabled : >|WOR---WS0WOR---WS1 >|--timeout--(panic)--timeout-reset I'm quite certainly missing something completely obvious here, but how can you get the WS1 interrupt*after* raising a panic? Aren't all interrupts dis

[PATCH 11/23] perf hists: Add helper functions for hierarchy mode

2016-02-05 Thread Namhyung Kim
The rb_hierarchy_{next,prev,last} functions are to traverse all hist entries in a hierarchy. They will be used by various function which supports hierarchy output. Acked-by: Pekka Enberg Signed-off-by: Namhyung Kim --- tools/perf/util/hist.c | 46 ++

[PATCH 07/23] perf hists: Return error from hists__collapse_resort()

2016-02-05 Thread Namhyung Kim
Currently hists__collapse_resort() and hists__collapse_insert_entry() don't return error code. Now callchain_merge() can check error case, abort and pass the error to the user. Later patch can add more work which can be failed too. Acked-by: Jiri Olsa Signed-off-by: Namhyung Kim --- tools/perf

[PATCH 05/23] perf callchain: Check return value of split_add_child()

2016-02-05 Thread Namhyung Kim
Now create_child() and add_child() return errors so check and pass it to the caller. Acked-by: Jiri Olsa Cc: Frederic Weisbecker Signed-off-by: Namhyung Kim --- tools/perf/util/callchain.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tools/perf/util/callchai

[PATCH 04/23] perf callchain: Add enum match_result for match_chain()

2016-02-05 Thread Namhyung Kim
The append_chain() might return either result of match_chain() or other (error) code. But match_chain() can return any value in s64 type so it's hard to check the error case. Add new enum match_result and make match_chain() return non-negative values only so that we can check the error cases. Ac

[PATCH 06/23] perf callchain: Check return value of append_chain_children()

2016-02-05 Thread Namhyung Kim
Now it can check the error case, so check and pass it to the caller. Acked-by: Jiri Olsa Cc: Frederic Weisbecker Signed-off-by: Namhyung Kim --- tools/perf/util/callchain.c | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/tools/perf/util/callchain.c b/too

[PATCH 01/23] perf hists browser: Fix percentage update on key press

2016-02-05 Thread Namhyung Kim
Currently 'perf top --tui' decrements percentage of all entries on any key press. This is because it adds total period as new samples are added to hists. As perf-top does it currently but added samples are not passed to the display thread, the percentages are decresing continuously. So separate

[PATCHSET 00/23] perf tools: Add support for hierachy view (v5)

2016-02-05 Thread Namhyung Kim
Hello, This patchset implements a new feature that collects hist entries in a hierachical manner. That means lower-level entries belong to an upper-level entry. The entry hierachy is built on the sort keys given, so users can set it whatever they want. It only shows top-level entries first, and

[PATCH v4] iio: adc: Add TI ADS1015 ADC driver support

2016-02-05 Thread Daniel Baluta
The driver has sysfs readings with runtime PM support for power saving. It also offers buffer support that can be used together with IIO software triggers. Datasheet can be found here: http://www.ti.com.cn/cn/lit/ds/symlink/ads1015.pdf Signed-off-by: Daniel Baluta --- Changes since v3:

[PATCH 0/2] xen/scsiback: correct two issues

2016-02-05 Thread Juergen Gross
Correct two issues in the Xen pvscsi backend. Juergen Gross (2): xen/scsiback: correct frontend counting xen/scsiback: avoid warnings when adding multiple LUNs to a domain drivers/xen/xen-scsiback.c | 75 ++ 1 file changed, 42 insertions(+), 33 del

Re: [PATCH] ASoC: mxs-saif: check BUSY bit in hw_params() only if not mclk_in_use

2016-02-05 Thread Mark Brown
On Wed, Feb 03, 2016 at 01:18:20PM +, Mans Rullgard wrote: > If something else, typically a codec, has enabled mclk, the BUSY > bit may be set when hw_params() is called without this being an > error. This check thus causes intermittent failures to configure > the sound device when used in suc

Re: [PATCH 4/4] ARM: davinci: make I2C support optional

2016-02-05 Thread Sekhar Nori
On Tuesday 02 February 2016 02:05 AM, Arnd Bergmann wrote: > The davinci platform has tried to get support for the EEPROM right, > but failed to get a clean build so far. At the moment, we get > a warning whenever CONFIG_SYSFS is disabled, as that is needed by > EEPROM_AT24: > > warning: (MACH_DAV

[PATCH 1/2] xen/scsiback: correct frontend counting

2016-02-05 Thread Juergen Gross
When adding a new frontend to xen-scsiback don't decrement the number of active frontends in case of no error. Not doing so results in a failure when trying to remove the xen-pvscsi nexus even if no domain is using it. Signed-off-by: Juergen Gross Cc: sta...@vger.kernel.org --- drivers/xen/xen-s

[PATCH 2/2] xen/scsiback: avoid warnings when adding multiple LUNs to a domain

2016-02-05 Thread Juergen Gross
When adding more than one LUN to a frontend a warning for a failed assignment is issued in dom0 for each already existing LUN. Avoid this warning. Signed-off-by: Juergen Gross Cc: sta...@vger.kernel.org --- drivers/xen/xen-scsiback.c | 65 ++ 1 file ch

[PATCH 2/2] crypto: testmgr: mark more algorithms as FIPS compliant

2016-02-05 Thread Marcus Meissner
Some more authenc() wrapped algorithms are FIPS compliant, tag them as such. Signed-off-by: Marcus Meissner --- crypto/testmgr.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/crypto/testmgr.c b/crypto/testmgr.c index ff6a799..b0cbad8 100644 --- a/crypto/testmgr.c +++ b/crypto/testmg

Re: [PATCHv4] mm: slab: shutdown caches only after releasing sysfs file

2016-02-05 Thread Vladimir Davydov
On Thu, Feb 04, 2016 at 07:39:48PM +0300, Dmitry Safonov wrote: ... > diff --git a/include/linux/slub_def.h b/include/linux/slub_def.h > index b7e57927..a6bf41a 100644 > --- a/include/linux/slub_def.h > +++ b/include/linux/slub_def.h > @@ -103,9 +103,10 @@ struct kmem_cache { > > #ifdef CONFIG_S

[PATCH] tty: serial: jsm_tty: fixed redundant variable issue.

2016-02-05 Thread Jakob Østergaard Jensen
Fixes unnecessary variable reassignment to a new redundant variable. Signed-off-by: Jakob Østergaard Jensen --- drivers/tty/serial/jsm/jsm_tty.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/tty/serial/jsm/jsm_tty.c b/drivers/tty/serial/jsm/jsm_tty.c index 5

Re: [PATCH] ASoC: mxs-saif: check BUSY bit in hw_params() only if not mclk_in_use

2016-02-05 Thread Måns Rullgård
Mark Brown writes: > On Wed, Feb 03, 2016 at 01:18:20PM +, Mans Rullgard wrote: >> If something else, typically a codec, has enabled mclk, the BUSY >> bit may be set when hw_params() is called without this being an >> error. This check thus causes intermittent failures to configure >> the so

[PATCH] crypto: testmgr: mark more algorithms as FIPS compliant

2016-02-05 Thread Marcus Meissner
Some more authenc() wrapped algorithms are FIPS compliant, tag them as such. Signed-off-by: Marcus Meissner --- crypto/testmgr.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/crypto/testmgr.c b/crypto/testmgr.c index ff6a799..b0cbad8 100644 --- a/crypto/testmgr.c +++ b/crypto/testmg

Re: gigaset: memory leak in gigaset_initcshw

2016-02-05 Thread Dmitry Vyukov
On Thu, Feb 4, 2016 at 4:06 PM, Paul Bolle wrote: > On do, 2016-02-04 at 15:54 +0100, Dmitry Vyukov wrote: >> One TIOCSETD is enough to trigger the leak. >> I've tested with different line disciplines and only N_GIGASET_M101 >> triggers the leak. > > So things appear to be just on my plate now. I'

[PATCH] net: ethernet: support "fixed-link" DT node on nb8800 driver

2016-02-05 Thread Sebastian Frias
Signed-off-by: Sebastian Frias --- drivers/net/ethernet/aurora/nb8800.c | 19 +++ 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/aurora/nb8800.c b/drivers/net/ethernet/aurora/nb8800.c index ecc4a33..1353fee 100644 --- a/drivers/net/ethernet

Re: [PATCH 1/2] dt/bindings: Add bindings for the PIC32 SPI peripheral

2016-02-05 Thread Sergei Shtylyov
Hello. On 2/5/2016 8:08 AM, Purna Chandra Mandal wrote: From: Purna Chandra Mandal Document the devicetree bindings for the SPI peripheral found on Microchip PIC32 class devices. Signed-off-by: Purna Chandra Mandal Signed-off-by: Joshua Henderson --- .../bindings/spi/microchip,spi-pic32.t

[PATCH v1 0/6] EC-based USB Power Delivery support for Chrome machines

2016-02-05 Thread Tomeu Vizoso
Hi, this series contains a driver that exposes a power_supply to userspace representing a port that support USB PD charging. Allows userspace to display to the user if the machine is charging and on which port, and if another device is being charged by a port. Also allows to limit the current dra

[PATCH v1 4/6] power: cros_usbpd-charger: Add EC-based USB PD charger driver

2016-02-05 Thread Tomeu Vizoso
From: Sameer Nanda This driver exposes the charger functionality in the PD EC to userspace. Signed-off-by: Tomeu Vizoso Cc: Sameer Nanda Cc: Benson Leung Cc: Shawn Nematbakhsh --- drivers/platform/chrome/cros_ec_proto.c | 37 ++ drivers/power/Kconfig | 10 + drivers/pow

[PATCH v1 2/6] mfd: cros_ec: Add MKBP event support

2016-02-05 Thread Tomeu Vizoso
From: Vic Yang Newer revisions of the ChromeOS EC add more events besides the keyboard ones. So handle interrupts in the MFD driver and let consumers register for notifications for the events they might care. To keep backward compatibility, if the EC doesn't support MKBP event, we fall back to t

Re: [PATCH v10 5/5] Watchdog: ARM SBSA Generic Watchdog half timeout panic support

2016-02-05 Thread Thomas Petazzoni
Hello, On Fri, 5 Feb 2016 07:08:23 -0600, Timur Tabi wrote: > > I'm quite certainly missing something completely obvious here, but how > > can you get the WS1 interrupt*after* raising a panic? Aren't all > > interrupts disabled and the system fully halted once you get a panic(), > > especially w

Re: fs: use-after-free in link_path_walk

2016-02-05 Thread Dmitry Vyukov
On Sat, Jan 23, 2016 at 12:08 AM, Al Viro wrote: > On Fri, Jan 22, 2016 at 11:33:09PM +0100, Dmitry Vyukov wrote: >> Hello, >> >> The following program triggers a use-after-free in link_path_walk: >> https://gist.githubusercontent.com/dvyukov/fc0da4b914d607ba8129/raw/b761243c44106d74f2173745132c82

Re: [PATCH] HID: Check whether if the hidraw is NULL pointer before release.

2016-02-05 Thread Jiri Kosina
On Tue, 2 Feb 2016, shenpen...@gmail.com wrote: > From: shenpengru > > The logic of service which operate hidraw device in user-space may > not correct, sometimes it may release hidraw dev for more than once. > In order to prevent this situation, we need to make the driver more > robust. Hmm ..

[PATCH v1 6/6] platform/chrome: Check the USB PD feature before creating a charger

2016-02-05 Thread Tomeu Vizoso
From: Vincent Palatin Use the EC_CMD_GET_FEATURES message to check the supported features for each MCU before instantied a USB-PD charger. Signed-off-by: Vincent Palatin [tomeu: adapted to changes in mainline] Signed-off-by: Tomeu Vizoso Reviewed-by: Gwendal Grignou --- drivers/platform/ch

[PATCH v1 5/6] platform/chrome: Register USB PD charger device

2016-02-05 Thread Tomeu Vizoso
Check if a EC considers EC_CMD_USB_PD_PORTS a valid command and register a USB PD charger device if so. This check is needed for older versions of the ChromeOS EC firmware that don't support the EC_CMD_GET_FEATURES command. Signed-off-by: Tomeu Vizoso --- drivers/mfd/cros_ec.c |

[PATCH v1 3/6] power_supply: Add types for USB Type C and PD chargers

2016-02-05 Thread Tomeu Vizoso
From: Benson Leung This adds power supply types for USB chargers defined in the USB Type-C Specification 1.1 and in the USB Power Delivery Specification Revision 2.0 V1.1. The following are added : POWER_SUPPLY_TYPE_USB_TYPE_C, /* Type C Port */ POWER_SUPPLY_TYPE_USB_PD, /* Type C Power

[PATCH v1 1/6] mfd: cros_ec: small kerneldoc fix

2016-02-05 Thread Tomeu Vizoso
s/cros_ec_register/cros_ec_query_all Signed-off-by: Tomeu Vizoso --- include/linux/mfd/cros_ec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/mfd/cros_ec.h b/include/linux/mfd/cros_ec.h index 494682ce4bf3..a677c2bd485c 100644 --- a/include/linux/mfd/cros_ec.

[PATCH] vsprintf: automatic parameters for %pIS via 'a'

2016-02-05 Thread Jason A. Donenfeld
This patch adds a variable 'a' which indicates that the 'p', 'f', and 's' options should active depending on whether or not those parameters are actually valid inside the passed sockaddr. Signed-off-by: Jason A. Donenfeld --- Documentation/printk-formats.txt | 7 +-- lib/test_printf.c

Re: [PATCH 3/3 v3] cpufreq: governor: Replace timers with utilization update callbacks

2016-02-05 Thread Rafael J. Wysocki
On Fri, Feb 5, 2016 at 7:50 AM, Viresh Kumar wrote: > Will suck some more blood, sorry about that :) > > On 05-02-16, 02:28, Rafael J. Wysocki wrote: >> The v3 addresses some review comments from Viresh and a couple of issues >> found >> by me. Changes from the previous version: >> - Synchronize

Re: [PATCH] ASoC: mxs-saif: check BUSY bit in hw_params() only if not mclk_in_use

2016-02-05 Thread Mark Brown
On Fri, Feb 05, 2016 at 01:23:20PM +, Måns Rullgård wrote: > Mark Brown writes: > > Please remember to CC the maintainers for the driver when sending > > patches. > I CCd everybody scripts/get_maintainers.pl suggested. How am I supposed > to know who the maintainers are if they're not lis

Re: [PATCH] hid:Add warning message if sysfs group is not created for passed kobject in the function, mt_probe

2016-02-05 Thread Jiri Kosina
On Fri, 5 Feb 2016, Benjamin Tissoires wrote: > > This adds a warning message stating that the sysfs group was not > > able to be created for the passed hid_device structure pointer > > with dev_warn. > > > > Signed-off-by: Nicholas Krause > > --- > > drivers/hid/hid-multitouch.c | 2 ++ > > 1

[PATCH v4] vsprintf: automatic parameters for %pIS via 'a'

2016-02-05 Thread Jason A. Donenfeld
This patch adds a variable 'a' which indicates that the 'p', 'f', and 's' options should active depending on whether or not those parameters are actually valid inside the passed sockaddr. Signed-off-by: Jason A. Donenfeld --- Documentation/printk-formats.txt | 7 +-- lib/test_printf.c

Re: [PATCH] net: ethernet: support "fixed-link" DT node on nb8800 driver

2016-02-05 Thread Måns Rullgård
Sebastian Frias writes: > Signed-off-by: Sebastian Frias > --- > drivers/net/ethernet/aurora/nb8800.c | 19 +++ > 1 file changed, 15 insertions(+), 4 deletions(-) > > diff --git a/drivers/net/ethernet/aurora/nb8800.c > b/drivers/net/ethernet/aurora/nb8800.c > index ecc4a33..1353

Re: [PATCH] crypto: testmgr: mark more algorithms as FIPS compliant

2016-02-05 Thread Stephan Mueller
Am Freitag, 5. Februar 2016, 14:23:33 schrieb Marcus Meissner: Hi Marcus, >Some more authenc() wrapped algorithms are FIPS compliant, tag >them as such. Acked-by: Stephan Mueller Ciao Stephan

Re: [PATCH 0/8] perf config: Document config variables in man page

2016-02-05 Thread Arnaldo Carvalho de Melo
Em Fri, Feb 05, 2016 at 10:04:39PM +0900, Namhyung Kim escreveu: > Hi Taeung, > > On Fri, Feb 05, 2016 at 08:03:30PM +0900, Taeung Song wrote: > > Hi, Arnaldo > > > > I'm sorry I missed a thing out. > > Lastly default calchain perfcent limit is changed to 0.005%. > > This is a default value of ca

Re: [PATCH v2] pinctrl: sunxi: H3 requires irq_read_needs_mux

2016-02-05 Thread Linus Walleij
On Wed, Feb 3, 2016 at 8:57 AM, Krzysztof Adamski wrote: > It seems that on H3, just like on A10, when GPIOs are configured as > external interrupt data registers does not contain their value. When > value is read, GPIO function must be temporary switched to input for > reads. > > Signed-off-by:

Re: [PATCH 2/2] crypto: testmgr: mark more algorithms as FIPS compliant

2016-02-05 Thread Stephan Mueller
Am Freitag, 5. Februar 2016, 14:22:25 schrieb Marcus Meissner: Hi Marcus, >Some more authenc() wrapped algorithms are FIPS compliant, tag >them as such. Is this patch a duplication of the first one? Ciao Stephan

Re: [PATCH 0/8] perf config: Document config variables in man page

2016-02-05 Thread Taeung Song
On 02/05/2016 10:39 PM, Arnaldo Carvalho de Melo wrote: Em Fri, Feb 05, 2016 at 10:04:39PM +0900, Namhyung Kim escreveu: Hi Taeung, On Fri, Feb 05, 2016 at 08:03:30PM +0900, Taeung Song wrote: Hi, Arnaldo I'm sorry I missed a thing out. Lastly default calchain perfcent limit is changed to 0

Re: [PATCH 2/2] crypto: testmgr: mark more algorithms as FIPS compliant

2016-02-05 Thread Marcus Meissner
On Fri, Feb 05, 2016 at 02:41:01PM +0100, Stephan Mueller wrote: > Am Freitag, 5. Februar 2016, 14:22:25 schrieb Marcus Meissner: > > Hi Marcus, > > >Some more authenc() wrapped algorithms are FIPS compliant, tag > >them as such. > > Is this patch a duplication of the first one? yes, I mistaken

Re: [PATCH] floppy: refactor open() flags handling (was Re: mm: uninterruptable tasks hanged on mmap_sem)

2016-02-05 Thread Dmitry Vyukov
On Thu, Feb 4, 2016 at 10:22 PM, Jiri Kosina wrote: > On Tue, 2 Feb 2016, Dmitry Vyukov wrote: > >> If the following program run in a parallel loop, eventually it leaves >> hanged uninterruptable tasks on mmap_sem. >> >> [ 4074.740298] sysrq: SysRq : Show Locks Held >> [ 4074.740780] Showing all l

Re: [PATCH 0/2] GPIO: Clean up asm/gpio.h

2016-02-05 Thread Linus Walleij
On Tue, Feb 2, 2016 at 8:53 PM, Bjorn Helgaas wrote: > Many arches supply an asm/gpio.h that contains only this: > > #warning Include linux/gpio.h instead of asm/gpio.h > #include > > These two patches change all the places that include asm/gpio.h > so they include linux/gpio.h instead, and

Re: [PATCH] ASoC: mxs-saif: check BUSY bit in hw_params() only if not mclk_in_use

2016-02-05 Thread Måns Rullgård
Mark Brown writes: > On Fri, Feb 05, 2016 at 01:23:20PM +, Måns Rullgård wrote: >> Mark Brown writes: > >> > Please remember to CC the maintainers for the driver when sending >> > patches. > >> I CCd everybody scripts/get_maintainers.pl suggested. How am I supposed >> to know who the main

Re: [PATCH v2] pinctrl: sunxi: H3 requires irq_read_needs_mux

2016-02-05 Thread Krzysztof Adamski
On Fri, Feb 05, 2016 at 02:39:23PM +0100, Linus Walleij wrote: On Wed, Feb 3, 2016 at 8:57 AM, Krzysztof Adamski wrote: It seems that on H3, just like on A10, when GPIOs are configured as external interrupt data registers does not contain their value. When value is read, GPIO function must be

[PATCH] vsprintf: kptr_restrict is okay in IRQ when 2

2016-02-05 Thread Jason A. Donenfeld
The kptr_restrict flag, when set to 1, only prints the kernel address when the user has CAP_SYSLOG. When it is set to 2, the kernel address is always printed as zero. When set to 1, this needs to check whether or not we're in IRQ. However, when set to 2, this check is unneccessary, and produces con

Re: [PATCH 0/8] perf config: Document config variables in man page

2016-02-05 Thread Namhyung Kim
Hi Arnaldo, On Fri, Feb 05, 2016 at 10:39:25AM -0300, Arnaldo Carvalho de Melo wrote: > Em Fri, Feb 05, 2016 at 10:04:39PM +0900, Namhyung Kim escreveu: > > Hi Taeung, > > > > On Fri, Feb 05, 2016 at 08:03:30PM +0900, Taeung Song wrote: > > > Hi, Arnaldo > > > > > > I'm sorry I missed a thing ou

Re: [PATCH v8 2/4] perf inject: add jitdump mmap injection support

2016-02-05 Thread Arnaldo Carvalho de Melo
e/.debug/jit/java-jit-20160205.XXIKKHRA/jit-27730.dump # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x7f4aaed9bb3a, pid=27730, tid=139957992613632 # # JRE version: OpenJDK Runtime Environment (8.0_71-b15) (build 1.8.0_71-b15) # Java VM: OpenJDK 64

[PATCH 1/2] printk: introduce pr_default() macro

2016-02-05 Thread Chen Yucong
Until now, we cover all log-levels by pr_ macros except KERN_DEFAULT one. Add it for convenience. Signed-off-by: Chen Yucong --- include/linux/printk.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/linux/printk.h b/include/linux/printk.h index 51dd6b8..9808130 100644 --- a/i

[PATCH 2/2] x86: use pr_default() macro

2016-02-05 Thread Chen Yucong
- convert printk(KERN_DEFAULT ...) to pr_default(...) Signed-off-by: Chen Yucong --- arch/x86/kernel/dumpstack.c| 3 +-- arch/x86/kernel/dumpstack_64.c | 4 ++-- arch/x86/kernel/process_32.c | 29 ++--- arch/x86/kernel/process_64.c | 41

[PATCH v2] net: ethernet: support "fixed-link" DT key/node on nb8800 driver

2016-02-05 Thread Sebastian Frias
Signed-off-by: Sebastian Frias --- drivers/net/ethernet/aurora/nb8800.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/aurora/nb8800.c b/drivers/net/ethernet/aurora/nb8800.c index ecc4a33..dd7bedc 100644 --- a/drivers/net/ethernet/aur

[PATCH] nbd: Fix return value check for debugfs_create_*()

2016-02-05 Thread weiyj_lk
From: Wei Yongjun In case of error, the function debugfs_create_*() returns NULL pointer not ERR_PTR() if debugfs is enabled. The IS_ERR() test in the return value check should be replaced with NULL test. Signed-off-by: Wei Yongjun --- drivers/block/nbd.c | 50 -

Re: [PATCH v8 2/4] perf inject: add jitdump mmap injection support

2016-02-05 Thread Arnaldo Carvalho de Melo
java]$ java -agentpath:/home/acme/git/linux/tools/perf/jvmti/libjvmti.so hello.java java: jvmti: jitdump in /home/acme/.debug/jit/java-jit-20160205.XXdDr2Wr/jit-28322.dump Error: Could not find or load main class hello.java [acme@jouet java]$ Do I need to set CLASSPATH or something? /me tries...

[PATCH v2] floppy: refactor open() flags handling (was Re: mm: uninterruptable tasks hanged on mmap_sem)

2016-02-05 Thread Jiri Kosina
On Fri, 5 Feb 2016, Dmitry Vyukov wrote: > > could you please feed the patch below (on top of the previous floppy fix) > > to your syzkaller machinery and test whether you are still able to > > reproduce the problem? It passess my local testing here. > > Now that open exits early with EWOULDBLOCK

Re: [PATCH 1/2] pinctrl: mediatek: fix direction control issue

2016-02-05 Thread Linus Walleij
On Thu, Feb 4, 2016 at 4:03 AM, Hongzhou Yang wrote: > On Wed, 2016-02-03 at 09:24 +0800, Biao Huang wrote: >> Since input-enable/disable and input-schmitt-enable/disable are >> workable when gpio direction is input, so add direction setting >> when do input-enable/disable and input-schmitt-enable

[PATCH] QE: Use GFP_ATOMIC under spin lock

2016-02-05 Thread weiyj_lk
From: Wei Yongjun The function cpm_muram_alloc_common() is called from several places, in some of which, such as cpm_muram_alloc(), a lock is held here, so we should use GFP_ATOMIC when a lock is held. Signed-off-by: Wei Yongjun --- drivers/soc/fsl/qe/qe_common.c | 2 +- 1 file changed, 1 inse

Re: [PATCH v2] pinctrl: sunxi: H3 requires irq_read_needs_mux

2016-02-05 Thread Chen-Yu Tsai
On Fri, Feb 5, 2016 at 9:39 PM, Linus Walleij wrote: > On Wed, Feb 3, 2016 at 8:57 AM, Krzysztof Adamski wrote: > >> It seems that on H3, just like on A10, when GPIOs are configured as >> external interrupt data registers does not contain their value. When >> value is read, GPIO function must be

Re: [PATCH 1/2] pinctrl: mediatek: fix direction control issue

2016-02-05 Thread Linus Walleij
On Wed, Feb 3, 2016 at 2:24 AM, Biao Huang wrote: > Since input-enable/disable and input-schmitt-enable/disable are > workable when gpio direction is input, so add direction setting > when do input-enable/disable and input-schmitt-enable/disable > properties. > > Signed-off-by: Biao Huang This

Re: [PATCH v8 2/4] perf inject: add jitdump mmap injection support

2016-02-05 Thread Arnaldo Carvalho de Melo
p;& file_name && j < > strlen(file_name); j++, i++) > fn[i] = file_name[j]; > fn[i] = '\0'; > } else { > ----- > > Now: > > [acme@jouet java]$ java > -agentpath:/home/acme/git/linux/tools/pe

<    1   2   3   4   5   6   7   8   >