Re: [RFC PATCH v0] Add tw5864 driver

2016-03-11 Thread Hans Verkuil
On 03/09/2016 03:29 PM, Andrey Utkin wrote: > Hi Hans! > > Some improvements took place on the driver, including cleaner > v4l2-compliance tests passing. But there's a single test failure I > don't understand. > > In the code of v4l2-compliance, it seems like an API > call CREATE_BUFS is supposed

Re: [PATCH v1 03/19] fs/anon_inodes: new interface to create new inode

2016-03-11 Thread Al Viro
On Fri, Mar 11, 2016 at 04:30:07PM +0900, Minchan Kim wrote: > From: Gioh Kim > > The anon_inodes has already complete interfaces to create manage > many anonymous inodes but don't have interface to get > new inode. Other sub-modules can create anonymous inode > without creating and mounting it's

Re: [PATCH] perf, tools, stat: Print warning when no metric with --metric-only

2016-03-11 Thread Jiri Olsa
On Thu, Mar 10, 2016 at 06:27:17AM -0800, Andi Kleen wrote: > From: Andi Kleen > > Print a warning when --metric-only is specified, but the events > define no metric. Requested by Jiri. > > % perf stat -e cycles --metric-only true > > Performance counter stats for 'true': > > No metrics defin

[patch] kexec: potetially using uninitialized variable

2016-03-11 Thread Dan Carpenter
At the end of the function we check if "ret" has a negative error code, but it seems possible that it is uninitialized. Fixes: 12db5562e035 ('kexec: load and relocate purgatory at kernel load time') Signed-off-by: Dan Carpenter diff --git a/kernel/kexec_file.c b/kernel/kexec_file.c index 503bc2d

[patch] btrfs: scrub: silence an uninitialized variable warning

2016-03-11 Thread Dan Carpenter
It's basically harmless if "ref_level" isn't initialized since it's only used for an error message, but it causes a static checker warning. Signed-off-by: Dan Carpenter diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c index e42aa27..39dbdcb 100644 --- a/fs/btrfs/scrub.c +++ b/fs/btrfs/scrub.c @@

[patch] mfd: lp8788-irq: uninitialized variable in irq handler

2016-03-11 Thread Dan Carpenter
Instead to being true/false, the "handled" is true/uninitialized. Presumably this doesn't cause that many problems in real life because normally we handle the IRQ. Fixes: eea6b7cc53aa ('mfd: Add lp8788 mfd driver') Signed-off-by: Dan Carpenter diff --git a/drivers/mfd/lp8788-irq.c b/drivers/mfd/

Re: [PATCH v1 02/19] mm/compaction: support non-lru movable page migration

2016-03-11 Thread kbuild test robot
Hi Minchan, [auto build test ERROR on v4.5-rc7] [cannot apply to next-20160310] [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/Minchan-Kim/Support-non-lru-page-migration/20160311-153649

[patch] [media] em28xx-i2c: rt_mutex_trylock() returns zero on failure

2016-03-11 Thread Dan Carpenter
The code is checking for negative returns but it should be checking for zero. Fixes: aab3125c43d8 ('[media] em28xx: add support for registering multiple i2c buses') Signed-off-by: Dan Carpenter --- Is -EBUSY correct? -EAGAIN? diff --git a/drivers/media/usb/em28xx/em28xx-i2c.c b/drivers/media/

[patch] irqchip: irq-alpine-msi: releasing the wrong variable on error

2016-03-11 Thread Dan Carpenter
The "msi_domain" variable is NULL here so it leads to a NULL dereference. It looks like we actually intended to free "middle_domain". Fixes: e6b78f2c3e14 ('irqchip: Add the Alpine MSIX interrupt controller') Signed-off-by: Dan Carpenter diff --git a/drivers/irqchip/irq-alpine-msi.c b/drivers/ir

[PATCH] proc-vmcore: wrong data type casting fix

2016-03-11 Thread Dave Young
On i686 PAE enabled machine the contiguous physical area could be large and it can cause triming down variables in below calculation in read_vmcore() and mmap_vmcore(): tsz = min_t(size_t, m->offset + m->size - *fpos, buflen); Then the real size passed down is not correct any more. Suppos

Re: [PATCH] mm: memcontrol: reclaim and OOM kill when shrinking memory.max below usage

2016-03-11 Thread Michal Hocko
On Thu 10-03-16 15:50:14, Johannes Weiner wrote: > Setting the original memory.limit_in_bytes hardlimit is subject to a > race condition when the desired value is below the current usage. The > code tries a few times to first reclaim and then see if the usage has > dropped to where we would like it

Re: [PATCH] mm: memcontrol: clarify the uncharge_list() loop

2016-03-11 Thread Michal Hocko
On Thu 10-03-16 15:50:15, Johannes Weiner wrote: > uncharge_list() does an unusual list walk because the function can > take regular lists with dedicated list_heads as well as singleton > lists where a single page is passed via the page->lru list node. > > This can sometimes lead to confusion as w

Re: [PATCH] regulator: fixed: Remove WARs for handling of_get_named_gpio() return

2016-03-11 Thread Laxman Dewangan
On Friday 11 March 2016 10:00 AM, Mark Brown wrote: * PGP Signed by an unknown key On Thu, Mar 10, 2016 at 05:42:46PM +0530, Laxman Dewangan wrote: Remove the WAR implemented in fixed regulator to handle the return of of_get_named_gpio(). You need to explain what a WAR is, I suspect it's som

Re: [PATCH] proc-vmcore: wrong data type casting fix

2016-03-11 Thread Baoquan He
On 03/11/16 at 04:15pm, Dave Young wrote: > On i686 PAE enabled machine the contiguous physical area could be large > and it can cause triming down variables in below calculation in > read_vmcore() and mmap_vmcore(): > > tsz = min_t(size_t, m->offset + m->size - *fpos, buflen); > > Then the

Re: [PATCH] mm: memcontrol: reclaim when shrinking memory.high below usage

2016-03-11 Thread Vladimir Davydov
On Thu, Mar 10, 2016 at 03:50:13PM -0500, Johannes Weiner wrote: > When setting memory.high below usage, nothing happens until the next > charge comes along, and then it will only reclaim its own charge and > not the now potentially huge excess of the new memory.high. This can > cause groups to sta

Re: [PATCH v1 02/19] mm/compaction: support non-lru movable page migration

2016-03-11 Thread Minchan Kim
; > url: > https://github.com/0day-ci/linux/commits/Minchan-Kim/Support-non-lru-page-migration/20160311-153649 > config: x86_64-nfsroot (attached as .config) > reproduce: > # save the attached .config to linux build tree > make ARCH=x86_64 > > All erro

Re: [PATCH 1/5] ftrace perf: Check sample types only for sampling events

2016-03-11 Thread Jiri Olsa
On Thu, Mar 10, 2016 at 08:25:02AM +0100, Jiri Olsa wrote: > On Thu, Mar 10, 2016 at 09:36:37AM +0900, Namhyung Kim wrote: > > Hi Jiri, > > > > On Wed, Mar 09, 2016 at 09:46:41PM +0100, Jiri Olsa wrote: > > > Currently we check sample type for ftrace:function event > > > even if it's not created a

Re: [PATCH v7 1/5] leds: core: add generic support for RGB LED's

2016-03-11 Thread Jacek Anaszewski
Hi Heiner, Thanks for the updated set. I've renamed the feature to RGB LED class and pushed out to devel branch of linux-leds.git. It will sit there till the end of the upcoming merge window. There have been some uncertainties raised related to overloading brightness syntax. so let's better have

Re: [PATCH] mfd: Fix MACRO for commonly declared MFD cell attributes

2016-03-11 Thread Lee Jones
On Wed, 09 Mar 2016, Laxman Dewangan wrote: > On Wednesday 02 March 2016 06:38 PM, Lee Jones wrote: > >On Mon, 29 Feb 2016, Laxman Dewangan wrote: > > > >>On Friday 26 February 2016 10:05 PM, Rhyland Klein wrote: > >>>Did you not see warnings like this when you compiled the kernel? Did you > >>>fin

Re: [PATCH 2/5] ftrace perf: Move exclude_kernel tracepoint check to init event

2016-03-11 Thread Jiri Olsa
On Thu, Mar 10, 2016 at 09:39:55AM +0900, Namhyung Kim wrote: > On Wed, Mar 09, 2016 at 09:46:42PM +0100, Jiri Olsa wrote: > > We suppress events with attr::exclude_kernel set when > > the event is generated, so following capture will > > give no warning but won't produce any data: > > > > $ sud

Re: [RFC PATCH v0] Add tw5864 driver

2016-03-11 Thread Andrey Utkin
On Fri, 11 Mar 2016 09:00:18 +0100 Hans Verkuil wrote: > The reason is likely to be the tw5864_queue_setup function which has > not been updated to handle CREATE_BUFS support correctly. It should > look like this: > > static int tw5864_queue_setup(struct vb2_queue *q, >

[PATCH v2] cpufreq: Make cpufreq_quick_get() safe to call.

2016-03-11 Thread Richard Cochran
The function, cpufreq_quick_get, accesses the global 'cpufreq_driver' and its fields without taking the associated lock, cpufreq_driver_lock. Without the locking, nothing guarantees that 'cpufreq_driver' remains consistent during the call. This patch fixes the issue by taking the lock before acce

Re: [PATCH] mm: memcontrol: reclaim when shrinking memory.high below usage

2016-03-11 Thread Michal Hocko
On Fri 11-03-16 11:34:40, Vladimir Davydov wrote: > On Thu, Mar 10, 2016 at 03:50:13PM -0500, Johannes Weiner wrote: > > When setting memory.high below usage, nothing happens until the next > > charge comes along, and then it will only reclaim its own charge and > > not the now potentially huge exc

[PATCH V2] proc-vmcore: wrong data type casting fix

2016-03-11 Thread Dave Young
On i686 PAE enabled machine the contiguous physical area could be large and it can cause trimming down variables in below calculation in read_vmcore() and mmap_vmcore(): tsz = min_t(size_t, m->offset + m->size - *fpos, buflen); Then the real size passed down is not correct any more. Suppo

[PATCH] Fixed 1 multiple equals checkpatch warning.

2016-03-11 Thread laerdevstudios
From: Parth Sane diff --git a/drivers/staging/netlogic/platform_net.c b/drivers/staging/netlogic/platform_net.c index 7806c2b..de2c3cb 100644 --- a/drivers/staging/netlogic/platform_net.c +++ b/drivers/staging/netlogic/platform_net.c @@ -86,7 +86,8 @@ static void xlr_resource_init(struct resourc

Re: [GIT PULL 00/19] perf/core improvements and fixes

2016-03-11 Thread Ingo Molnar
* Arnaldo Carvalho de Melo wrote: > Hi Ingo, > > Please consider pulling, > > - Arnaldo > > The following changes since commit 3a99e6db539e53cc9c79282e80f8362b0cb96ac8: > > perf bench mem: Prepare the x86-64 build for upstream memcpy_mcsafe() > changes (2016-03-09 10:40:01 +0100) >

Re: [PATCH] usb: gadget: f_midi: Fixed a bug when buflen was smaller than wMaxPacketSize

2016-03-11 Thread Clemens Ladisch
Steve Calfee wrote: > On Wed, Mar 9, 2016 at 11:39 AM, Felipe F. Tonello > wrote: >> [...] >> This patch fixes this problem by setting the minimum usb_request's buffer >> size >> for the OUT endpoint as its wMaxPacketSize. >> >> --- a/drivers/usb/gadget/function/f_midi.c >> +++ b/drivers/usb/gad

Re: [PATCH v7] scsi: ufs: add ioctl interface for query request

2016-03-11 Thread Hannes Reinecke
On 03/11/2016 02:43 AM, Martin K. Petersen wrote: >> "Arnd" == Arnd Bergmann writes: > > Arnd> Looking through what other drivers do, I've found a couple of > Arnd> patterns now. n particular, most use the SG_IO ioctl to pass down > Arnd> commands from user space into a device specific comman

[tip:perf/core] perf jitdump: DWARF is also needed

2016-03-11 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 46dad054a19297af65c417c97cb920aa5bdf7e8c Gitweb: http://git.kernel.org/tip/46dad054a19297af65c417c97cb920aa5bdf7e8c Author: Arnaldo Carvalho de Melo AuthorDate: Mon, 7 Mar 2016 18:48:45 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 9 Mar 2016 10:29:03 -0300 perf

[tip:perf/core] perf tools: Fix perf script python database export crash

2016-03-11 Thread tip-bot for Chris Phlipot
Commit-ID: 616df645d7238e45d3b369933a30fee4e4e305e2 Gitweb: http://git.kernel.org/tip/616df645d7238e45d3b369933a30fee4e4e305e2 Author: Chris Phlipot AuthorDate: Tue, 8 Mar 2016 21:11:54 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 9 Mar 2016 10:31:02 -0300 perf tools: Fix

[tip:perf/core] perf tools: Pass perf_hpp_list all the way through setup_sort_list

2016-03-11 Thread tip-bot for Jiri Olsa
Commit-ID: d7b617f51be4fffa3cbb5adf6d4258e616dce294 Gitweb: http://git.kernel.org/tip/d7b617f51be4fffa3cbb5adf6d4258e616dce294 Author: Jiri Olsa AuthorDate: Wed, 9 Mar 2016 11:04:17 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 9 Mar 2016 10:37:26 -0300 perf tools: Pass pe

[tip:perf/core] tools lib traceevent: Add '~' operation within arg_num_eval()

2016-03-11 Thread tip-bot for Steven Rostedt
Commit-ID: 9eb42dee2b11635174c74a7996934b6ca18f2179 Gitweb: http://git.kernel.org/tip/9eb42dee2b11635174c74a7996934b6ca18f2179 Author: Steven Rostedt AuthorDate: Fri, 26 Feb 2016 18:13:28 -0500 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 10 Mar 2016 16:27:41 -0300 tools lib tr

[tip:perf/core] perf tools: Omit unnecessary cast in perf_pmu__parse_scale

2016-03-11 Thread tip-bot for Jiri Olsa
Commit-ID: ea8f75f981918c5946fc4029acdc86707fa901c1 Gitweb: http://git.kernel.org/tip/ea8f75f981918c5946fc4029acdc86707fa901c1 Author: Jiri Olsa AuthorDate: Tue, 8 Mar 2016 19:42:30 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 9 Mar 2016 10:42:22 -0300 perf tools: Omit un

[tip:perf/core] perf tools: Fix hist_entry__filter() for hierarchy

2016-03-11 Thread tip-bot for Namhyung Kim
Commit-ID: f4954cfb1cda4cf0abf36d23213c702e94666c3f Gitweb: http://git.kernel.org/tip/f4954cfb1cda4cf0abf36d23213c702e94666c3f Author: Namhyung Kim AuthorDate: Wed, 9 Mar 2016 22:46:56 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 10 Mar 2016 16:45:36 -0300 perf tools: Fix

[tip:perf/core] perf jitdump: Build only on supported archs

2016-03-11 Thread tip-bot for Jiri Olsa
Commit-ID: e12b202f8fb9b62a3997cad8e93401f85293390c Gitweb: http://git.kernel.org/tip/e12b202f8fb9b62a3997cad8e93401f85293390c Author: Jiri Olsa AuthorDate: Thu, 10 Mar 2016 17:41:13 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 10 Mar 2016 16:33:19 -0300 perf jitdump: Bui

Re: [PATCH] Fixed 1 multiple equals checkpatch warning.

2016-03-11 Thread Parth Sane
Hi, Please ignore the previous patch. I’ll be sending in one soon again since the earlier one sent more warning. Apologies for any inconvenience. Regards, Parth Sane > On 11-Mar-2016, at 2:13 PM, laerdevstud...@gmail.com wrote: > > From: Parth Sane > > diff --git a/drivers/staging/netlogic/plat

[tip:perf/core] perf tools: Fix command line filters in hierarchy mode

2016-03-11 Thread tip-bot for Namhyung Kim
Commit-ID: aec13a7ec78d9322a348fb26940097b0bdfef1bd Gitweb: http://git.kernel.org/tip/aec13a7ec78d9322a348fb26940097b0bdfef1bd Author: Namhyung Kim AuthorDate: Wed, 9 Mar 2016 22:46:58 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 10 Mar 2016 16:45:48 -0300 perf tools: Fix

[tip:perf/core] perf tools: Add more sort entry check functions

2016-03-11 Thread tip-bot for Namhyung Kim
Commit-ID: 4945cf2aa1ed61994c158f22f26ea6101059a8d4 Gitweb: http://git.kernel.org/tip/4945cf2aa1ed61994c158f22f26ea6101059a8d4 Author: Namhyung Kim AuthorDate: Wed, 9 Mar 2016 22:46:57 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 10 Mar 2016 16:45:44 -0300 perf tools: Add

[tip:perf/core] perf tools: Remove hist_entry->fmt field

2016-03-11 Thread tip-bot for Namhyung Kim
Commit-ID: a515d8ff7085d5e9fde867f2048b8da36b95dc51 Gitweb: http://git.kernel.org/tip/a515d8ff7085d5e9fde867f2048b8da36b95dc51 Author: Namhyung Kim AuthorDate: Wed, 9 Mar 2016 22:46:59 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 10 Mar 2016 16:45:59 -0300 perf tools: Rem

[tip:perf/core] perf hists browser: Cleanup hist_browser__fprintf_hierarchy_entry()

2016-03-11 Thread tip-bot for Namhyung Kim
Commit-ID: 325a62834e81452d2a6e253444022cf493bbabfc Gitweb: http://git.kernel.org/tip/325a62834e81452d2a6e253444022cf493bbabfc Author: Namhyung Kim AuthorDate: Wed, 9 Mar 2016 22:47:00 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 10 Mar 2016 16:46:04 -0300 perf hists brow

[tip:perf/core] perf tools: Remove nr_sort_keys field

2016-03-11 Thread tip-bot for Namhyung Kim
Commit-ID: 86e3ee5224c17b7967aac39aa15539393c144de7 Gitweb: http://git.kernel.org/tip/86e3ee5224c17b7967aac39aa15539393c144de7 Author: Namhyung Kim AuthorDate: Wed, 9 Mar 2016 22:47:01 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 10 Mar 2016 16:46:08 -0300 perf tools: Rem

[tip:perf/core] perf tools: Recalc total periods using top-level entries in hierarchy

2016-03-11 Thread tip-bot for Namhyung Kim
Commit-ID: f7fb538afea55383a9383dac5c56887c601af5f4 Gitweb: http://git.kernel.org/tip/f7fb538afea55383a9383dac5c56887c601af5f4 Author: Namhyung Kim AuthorDate: Wed, 9 Mar 2016 22:47:02 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 10 Mar 2016 16:46:13 -0300 perf tools: Rec

[tip:perf/core] perf tools: Add sort__has_comm variable

2016-03-11 Thread tip-bot for Namhyung Kim
Commit-ID: 078b8d4a406fa8ce4a3c9d5145c27be1ed2b1dfd Gitweb: http://git.kernel.org/tip/078b8d4a406fa8ce4a3c9d5145c27be1ed2b1dfd Author: Namhyung Kim AuthorDate: Wed, 9 Mar 2016 23:20:51 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 10 Mar 2016 16:47:19 -0300 perf tools: Add

Re: [PATCH v8 00/17] add fixes, device quirks, error recovery,

2016-03-11 Thread Hannes Reinecke
On 03/11/2016 03:36 AM, Martin K. Petersen wrote: >> "Yaniv" == Yaniv Gardi writes: > > Yaniv> V8: fixed cyclic dependency by removing ufs_quirk.c that was > Yaniv> previously added in V7 06/17, and moving its code into ufshcd.c > > Patch 6 is now different yet it retains Reviewed-by: tags f

Re: [PATCH] x86: Enable full randomization on i386 and X86_32.

2016-03-11 Thread Ingo Molnar
* Hector Marco-Gisbert wrote: > Currently on i386 and on X86_64 when emulating X86_32 in legacy mode, only > the stack and the executable are randomized but not other mmapped files > (libraries, vDSO, etc.). This patch enables randomization for the > libraries, vDSO and mmap requests on i386 and

[PATCH V2 net 4/6] net: hns: adds uc match for debug port

2016-03-11 Thread Daode Huang
This patch adds uc match for debug port by: 1)Enables uc match of debug port when initializing gmac 2)Enables uc match of mac address register2 Signed-off-by: Daode Huang Signed-off-by: Peng Li --- changlog: v2: fix the SoB name and code sytle according to Sergei . --- drivers/net/ethernet/hisil

[tip:perf/core] perf hists browser: Allow thread filtering for comm sort key

2016-03-11 Thread tip-bot for Namhyung Kim
Commit-ID: 6962ccb37b50366014074aec6fd14497cf719642 Gitweb: http://git.kernel.org/tip/6962ccb37b50366014074aec6fd14497cf719642 Author: Namhyung Kim AuthorDate: Thu, 10 Mar 2016 00:14:50 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 10 Mar 2016 16:47:37 -0300 perf hists bro

[tip:perf/core] perf stat: Implement --metric-only mode

2016-03-11 Thread tip-bot for Andi Kleen
Commit-ID: 54b5091606c18f68a7fc8b4ab03ac4592c7d2922 Gitweb: http://git.kernel.org/tip/54b5091606c18f68a7fc8b4ab03ac4592c7d2922 Author: Andi Kleen AuthorDate: Thu, 3 Mar 2016 15:57:36 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 10 Mar 2016 16:49:40 -0300 perf stat: Implem

[tip:perf/core] perf stat: Document CSV format in manpage

2016-03-11 Thread tip-bot for Andi Kleen
Commit-ID: 6b45f7b2a37b0e00693985fd0abfc8e0319f91ce Gitweb: http://git.kernel.org/tip/6b45f7b2a37b0e00693985fd0abfc8e0319f91ce Author: Andi Kleen AuthorDate: Thu, 3 Mar 2016 15:57:35 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 10 Mar 2016 16:49:06 -0300 perf stat: Docume

Re: [patch] kexec: potetially using uninitialized variable

2016-03-11 Thread Xunlei Pang
Hi Dan, On 2016/03/11 at 16:07, Dan Carpenter wrote: > At the end of the function we check if "ret" has a negative error code, > but it seems possible that it is uninitialized. > > Fixes: 12db5562e035 ('kexec: load and relocate purgatory at kernel load time') > Signed-off-by: Dan Carpenter > > di

Re: [PATCH] x86: Enable full randomization on i386 and X86_32.

2016-03-11 Thread Ingo Molnar
* Kees Cook wrote: > On Thu, Mar 10, 2016 at 12:53 PM, Arjan van de Ven > wrote: > >> Arjan, or other folks, can you remember why x86_32 disabled mmap > >> randomization here? There doesn't seem to be a good reason for it that > >> I see. > > > > > > for unlimited stack it got really messy with

[tip:perf/core] perf hists browser: Check sort keys before hot key actions

2016-03-11 Thread tip-bot for Namhyung Kim
Commit-ID: 599a2f38a989a79df99838f22cb607f5e2b5b56c Gitweb: http://git.kernel.org/tip/599a2f38a989a79df99838f22cb607f5e2b5b56c Author: Namhyung Kim AuthorDate: Wed, 9 Mar 2016 23:20:53 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 10 Mar 2016 16:48:02 -0300 perf hists brow

[PATCH V2 net 6/6] net: hns: bug fix of getting hilink status

2016-03-11 Thread Daode Huang
There are some differences in hilink status defination between v1 and v2 chips. for v1 chip, all ports connected to the same hilink share the same hilink status register bit. but for v2, all ports have separately hilink status register bit. And the register addr is also changed. So this patch fixes

[tip:perf/core] perf stat: Add --metric-only support for -A

2016-03-11 Thread tip-bot for Andi Kleen
Commit-ID: 206cab651d07563d766c7f4cb73f858c5df3dec5 Gitweb: http://git.kernel.org/tip/206cab651d07563d766c7f4cb73f858c5df3dec5 Author: Andi Kleen AuthorDate: Thu, 3 Mar 2016 15:57:37 -0800 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 10 Mar 2016 16:50:47 -0300 perf stat: Add --

[PATCH V2 net 5/6] net: hns: fixed service-ges setting MAC-addr bug

2016-03-11 Thread Daode Huang
from: Sheng Li Service gmacs can not set mac add, this patch will fix the bug. Signed-off-by: Daode Huang Signed-off-by: Sheng Li --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/drivers/net/etherne

[PATCH V2 net 3/6] net: hns: fixed portid bug in sending manage pkt

2016-03-11 Thread Daode Huang
In V2 chip, when sending mamagement packets, the driver should config the port id to BD descs. Signed-off-by: Daode Huang Signed-off-by: Sheng Li --- v2: add space after /* and before */. --- drivers/net/ethernet/hisilicon/hns/hnae.h | 3 +++ drivers/net/ethernet/hisilicon/hns/hns_ae_ad

[PATCH V2 net 0/6] net: hns: hns driver updates

2016-03-11 Thread Daode Huang
Hi Dave, This patch series are hisilicon network driver bug fix. please merge them to the net repo. Thanks Daode Huang --- changlog v2: some minor change according to MBR Sergei in [patch 3/6] [patch 4/6]. v1: initial version. Daode Huang (6): net: hns: bug fix about the overflow of

[PATCH V2 net 1/6] net: hns: bug fix about the overflow of mss

2016-03-11 Thread Daode Huang
When set MTU to the minimum value 68, there are increasing number of error packets occur, which is caused by the overflowed value of mss. This patch fix the bug. Signed-off-by: Daode Huang --- drivers/net/ethernet/hisilicon/hns/hns_enet.c | 17 - 1 file changed, 8 insertions(+),

[PATCH V2 net 2/6] net: hns: fixes the hw interrupt bug in using napi

2016-03-11 Thread Daode Huang
In V1 chip, common_poll should check and clean fbd pkts, because it can not pend irq to clean them if there is no new pkt comes in. But V2 chip hw fixes this bug, and will pend irq itself to do this. So, for V2 chip, we set ring_data->fini_process to NULL. Signed-off-by: Daode Huang Signed-off-by

re

2016-03-11 Thread Ali Saeed
I need your assistance in executing a profitable project ... Please respond for detailed info

Re: [PATCH 0/5] Add Korean translation of memory-barriers.txt

2016-03-11 Thread Gioh Kim
On 10.03.2016 01:48, SeongJae Park wrote: This patchset aims to add Korean translation of memory-barriers document. The patchset starts from fixing minor and trivial problems in the original document that found during translation. After that, the final patch adds the Korean translation of the

[PATCH][RFC,v4] ACPI / PM: Introduce efi poweroff for HW-full platforms without _S5

2016-03-11 Thread Chen Yu
The problem is Linux registers pm_power_off = efi_power_off only if we are in hardware reduced mode. Actually, what we also want is to do this when ACPI S5 is simply not supported on non-legacy platforms. That should handle both the HW reduced mode, and the HW-full mode where the DSDT fails to supp

Re: [PATCH v3 net-next 0/2] net: hns: get and set RSS indirection table by using ethtool

2016-03-11 Thread Andy Shevchenko
On Fri, 2016-03-11 at 11:25 +0800, Kejian Yan wrote: > When we use ethtool to retrieves or configure the receive flow hash  > indirection table, ethtool needs to call .get_rxnfc to get the ring > number > so this patchset implements the .get_rxnfc and fixes the bug that we > can > not get the tatal

[PATCH] xen/events/fifo: Add missing hotplug notifier transition

2016-03-11 Thread Anna-Maria Gleixner
The evtchn_fifo_cpu_notification() hotplug callback lacks handling of the CPU_UP_CANCELED case. That means, if CPU_UP_PREPARE fails, the handle of the fifo events is not dropped. Add handling for CPU_UP_CANCELED transition to drop the fifo events handle. Cc: Konrad Rzeszutek Wilk Cc: Boris Ostro

Re: [PATCH 2/2] x86/mtrr: Refactor PAT initialization code

2016-03-11 Thread Ingo Molnar
* Toshi Kani wrote: > MTRR manages PAT initialization as it implements a rendezvous > handler that initializes PAT as part of MTRR initialization. > > When CPU does not support MTRR, ex. qemu32 virtual CPU, MTRR > simply skips PAT init, which causes PAT left enabled without > initialization. [.

[PATCH] staging: netlogic: Fixed 1 multiple assignment checkpatch warning.

2016-03-11 Thread laerdevstudios
From: Parth Sane diff --git a/drivers/staging/netlogic/platform_net.c b/drivers/staging/netlogic/platform_net.c index 7806c2b..daee1b2 100644 --- a/drivers/staging/netlogic/platform_net.c +++ b/drivers/staging/netlogic/platform_net.c @@ -86,7 +86,8 @@ static void xlr_resource_init(struct resourc

[PATCH v1 1/4] mfd: syscon: Introduce syscon_regmap_read_from_offset

2016-03-11 Thread Sanchayan Maity
Currently syscon does not provide an abstraction to access a register from syscon reference like below ocotp-cfg1 = <&ocotp 0x20> syscon_regmap_read_from_offset provides a generic abstraction to access a register from syscon reference as above. It allows to specify the node and node name of phand

[PATCH v1 3/4] ARM: dts: vfxxx: Add OCROM and phandle entries for Vybrid SoC bus driver

2016-03-11 Thread Sanchayan Maity
Add OCROM node and introduce phandles to OCROM, MSCM and NVMEM OCOTP for use by the Vybrid SoC bus driver. Signed-off-by: Sanchayan Maity --- arch/arm/boot/dts/vfxxx.dtsi | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/arch/arm/boot

[PATCH v1 4/4] soc: Add SoC bus driver for Freescale Vybrid Platform

2016-03-11 Thread Sanchayan Maity
This adds a SoC driver to be used by Freescale Vybrid SoC's. Driver utilises syscon and nvmem consumer API's to get the various register values needed and sysfs exposes the SoC specific properties. A sample output from Colibri Vybrid VF61 is below: root@colibri-vf:~# cd /sys/bus/soc/devices/soc0

[PATCH v1 2/4] ARM: dts: vfxxx: Add device tree node for OCOTP

2016-03-11 Thread Sanchayan Maity
Add device tree node for the OCOTP peripheral on Vybrid. Signed-off-by: Sanchayan Maity --- arch/arm/boot/dts/vfxxx.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/arch/arm/boot/dts/vfxxx.dtsi index 5e49fbd..db9157e 100644 --- a/arch/arm/

[PATCH v1 0/4] Implement SoC bus driver for Vybrid

2016-03-11 Thread Sanchayan Maity
Hello, This patchset implements SoC bus support for Freescale Vybrid platform, implementing the following https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-devices-soc This a reworked version of an older patchset series posted in June 2015 which was at v5 then [1]. Since the NVMEM framew

Re: Got FPU related warning on Intel Quark during boot

2016-03-11 Thread Ingo Molnar
* Andy Lutomirski wrote: > On Thu, Mar 10, 2016 at 6:59 AM, Borislav Petkov wrote: > > On Thu, Mar 10, 2016 at 03:31:43PM +0200, Andy Shevchenko wrote: > >> Looks like it lacks that one. > >> > >> # grep -i fxsr /proc/cpuinfo; echo $? > >> 1 > > > > Ok, so looking at where the warning comes fro

Re: [PATCH] android: lmk: add swap pte pmd in tasksize

2016-03-11 Thread Chen Feng
On 2016/3/11 15:30, yalin wang wrote: > >> On Mar 11, 2016, at 15:23, Lu Bing wrote: >> >> From: l00215322 >> >> Many android devices have zram,so we should add "MM_SWAPENTS" in tasksize. >> Refer oom_kill.c,we add pte&pmd also. >> >> Reviewed-by: Chen Feng >> Reviewed-by: Fu Jun >> Reviewed

[PATCH] net: mvneta: Add missing hotplug notifier transition

2016-03-11 Thread Anna-Maria Gleixner
The mvneta_percpu_notifier() hotplug callback lacks handling of the CPU_DOWN_FAILED case. That means, if CPU_DOWN_PREPARE failes, the driver is not well configured on the CPU. Add handling for CPU_DOWN_FAILED[_FROZEN] hotplug notifier transition to setup the driver. Cc: Thomas Petazzoni Cc: net.

Re: [PATCH v3 0/8] arm64: rockchip: Initial GeekBox enablement

2016-03-11 Thread Giuseppe CAVALLARO
On 3/10/2016 5:47 PM, Dinh Nguyen wrote: On Thu, Mar 10, 2016 at 3:13 AM, Giuseppe CAVALLARO wrote: On 3/9/2016 5:31 PM, Dinh Nguyen wrote: On Wed, Mar 9, 2016 at 8:53 AM, Giuseppe CAVALLARO wrote: Hi Tomeu, Dinh, Andreas I need a sum and help from you to go ahead on the tx timeout. The

Re: [PATCH] mfd: Fix MACRO for commonly declared MFD cell attributes

2016-03-11 Thread Laxman Dewangan
On Friday 11 March 2016 02:09 PM, Lee Jones wrote: On Wed, 09 Mar 2016, Laxman Dewangan wrote: On Wednesday 02 March 2016 06:38 PM, Lee Jones wrote: On Mon, 29 Feb 2016, Laxman Dewangan wrote: On Friday 26 February 2016 10:05 PM, Rhyland Klein wrote: Did you not see warnings like this when

Re: [PATCH 1/2] x86/mm/pat: Change pat_disable() to emulate PAT table

2016-03-11 Thread Borislav Petkov
On Thu, Mar 10, 2016 at 09:45:45PM -0700, Toshi Kani wrote: > Since 'commit 9cd25aac1f44 ("x86/mm/pat: Emulate PAT when it > is disabled")', we emulate a PAT table when PAT is disabled. > This requires pat_init() be called even if PAT is disabled, > which revealed a long standing issue that PAT is

Re: [PATCH 2/2] x86/mtrr: Refactor PAT initialization code

2016-03-11 Thread Ingo Molnar
* Ingo Molnar wrote: > > * Toshi Kani wrote: > > > MTRR manages PAT initialization as it implements a rendezvous > > handler that initializes PAT as part of MTRR initialization. > > > > When CPU does not support MTRR, ex. qemu32 virtual CPU, MTRR > > simply skips PAT init, which causes PAT l

[tip:irq/core] irqchip/irq-alpine-msi: Release the correct domain on error

2016-03-11 Thread tip-bot for Dan Carpenter
Commit-ID: 143d36a33b4d59a56bb8e913a17a105578fd3237 Gitweb: http://git.kernel.org/tip/143d36a33b4d59a56bb8e913a17a105578fd3237 Author: Dan Carpenter AuthorDate: Fri, 11 Mar 2016 11:14:43 +0300 Committer: Thomas Gleixner CommitDate: Fri, 11 Mar 2016 10:06:55 +0100 irqchip/irq-alpine-msi

Re: [PATCH] mm: memcontrol: reclaim when shrinking memory.high below usage

2016-03-11 Thread Vladimir Davydov
On Fri, Mar 11, 2016 at 09:42:39AM +0100, Michal Hocko wrote: > On Fri 11-03-16 11:34:40, Vladimir Davydov wrote: > > On Thu, Mar 10, 2016 at 03:50:13PM -0500, Johannes Weiner wrote: > > > When setting memory.high below usage, nothing happens until the next > > > charge comes along, and then it wil

[PATCH] staging: netlogic: removed 1 multiple assignment checkpatch warning

2016-03-11 Thread laerdevstudios
From: Parth Sane diff --git a/drivers/staging/netlogic/platform_net.c b/drivers/staging/netlogic/platform_net.c index 7806c2b..daee1b2 100644 --- a/drivers/staging/netlogic/platform_net.c +++ b/drivers/staging/netlogic/platform_net.c @@ -86,7 +86,8 @@ static void xlr_resource_init(struct resourc

Re: [PATCH] staging: netlogic: removed 1 multiple assignment checkpatch warning

2016-03-11 Thread Parth Sane
Hi, I forgot to add the signed off part in the patch please ignore the previous patches I have sent. Please bear with a kernel newbie. Regards, Parth Sane > On 11-Mar-2016, at 2:45 PM, laerdevstud...@gmail.com wrote: > > From: Parth Sane > > diff --git a/drivers/staging/netlogic/platform_net.c

Re: [patch] kexec: potetially using uninitialized variable

2016-03-11 Thread Dan Carpenter
On Fri, Mar 11, 2016 at 04:52:43PM +0800, Xunlei Pang wrote: > Hi Dan, > > On 2016/03/11 at 16:07, Dan Carpenter wrote: > > At the end of the function we check if "ret" has a negative error code, > > but it seems possible that it is uninitialized. > > > > Fixes: 12db5562e035 ('kexec: load and relo

Re: [PATCH v8] mtd: spi-nor: add hisilicon spi-nor flash controller driver

2016-03-11 Thread Jagan Teki
On Friday 11 March 2016 01:11 PM, Jiancheng Xue wrote: Add hisilicon spi-nor flash controller driver Signed-off-by: Binquan Peng Signed-off-by: Jiancheng Xue Acked-by: Rob Herring Reviewed-by: Ezequiel Garcia --- change log v8: Fixed issues pointed by Ezequiel Garcia and Brian Norris. Move

Re: [PATCH] mm: memcontrol: reclaim and OOM kill when shrinking memory.max below usage

2016-03-11 Thread Vladimir Davydov
On Fri, Mar 11, 2016 at 09:18:25AM +0100, Michal Hocko wrote: > On Thu 10-03-16 15:50:14, Johannes Weiner wrote: ... > > @@ -5037,9 +5040,36 @@ static ssize_t memory_max_write(struct > > kernfs_open_file *of, > > if (err) > > return err; > > > > - err = mem_cgroup_resize_limit(

[PATCH] arm/bL_switcher: Use global define for masking hotplug transition switch action argument

2016-03-11 Thread Anna-Maria Gleixner
The action argument of the hotplug transition switch case is masked with '0xf' to map CPU_XXX_FROZEN hotplug transition on corresponding non frozen hotplug transitions. There is a global define CPU_TASKS_FROZEN used as mask for frozen hotplug transitions. Use '~CPU_TASKS_FROZEN' instead of '0xf'.

Re: dynamic ftrace/recordmcount.c problem on ARMv5

2016-03-11 Thread Uwe Kleine-König
Hello, On Wed, Jan 13, 2016 at 09:51:28AM +0100, Marc Kleine-Budde wrote: > Hello, > > I'm on a ARMv5 (freescale mx25) and seeing this ftrace bug during bootup: > > > [0.059235] [ cut here ] > > [0.059449] WARNING: CPU: 0 PID: 0 at kernel/trace/ftrace.c:1938 > >

[PATCH] staging: netlogic: removed 1 multiple assignment checkpatch warning

2016-03-11 Thread laerdevstudios
From: Parth Sane Fixed netlogic checkpatch multiple assignment warning in platform_net.c Signed-off-by: Parth Sane --- drivers/staging/netlogic/platform_net.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/netlogic/platform_net.c b/drivers/staging/netlog

Re: [PATCH 2/2] x86/mtrr: Refactor PAT initialization code

2016-03-11 Thread Borislav Petkov
On Thu, Mar 10, 2016 at 09:45:46PM -0700, Toshi Kani wrote: > MTRR manages PAT initialization as it implements a rendezvous > handler that initializes PAT as part of MTRR initialization. > > When CPU does not support MTRR, ex. qemu32 virtual CPU, MTRR > simply skips PAT init, which causes PAT left

[PATCH 1/2] ARC: [BE] Select correct CROSS_COMPILE prefix

2016-03-11 Thread Vineet Gupta
This allows CONFIG_CPU_BIG_ENDIAN=y to build correctly out of the box, w/o any other tweaks. Cc: Noam Camus Cc: Alexey Brodkin Cc: Anton Kolesov Signed-off-by: Vineet Gupta --- arch/arc/Makefile | 4 1 file changed, 4 insertions(+) diff --git a/arch/arc/Makefile b/arch/arc/Makefile inde

[PATCH 0/2] Big Endian build cleanups

2016-03-11 Thread Vineet Gupta
Vineet Gupta (2): ARC: [BE] Select correct CROSS_COMPILE prefix ARC: [*defconfig] No need to specify CONFIG_CROSS_COMPILE arch/arc/Makefile | 4 arch/arc/configs/axs101_defconfig | 1 - arch/arc/configs/axs103_defconfig | 1 - arch/arc/configs/a

[PATCH 2/2] ARC: [*defconfig] No need to specify CONFIG_CROSS_COMPILE

2016-03-11 Thread Vineet Gupta
The problem is with CONFIG_CPU_BIG_ENDIAN=y we still needed .config fixup to override the the defconfig prefix to arceb-linux- So remove these from defconfig and let user pass this via CROSS_COMPILE environment var or use the default for ENDIAN (per previous patch) No other arch carries them in d

[PATCH V2] ACPI: APD: Add device HID for future AMD UART controller

2016-03-11 Thread Wang Hongcheng
Add device HID AMDI0020 to match the AMD ACPI Vendor ID (AMDI) as registered in http://www.uefi.org/acpi_id_list, and the UART controller on future AMD paltform will use the HID instead of AMD0020. Signed-off-by: Wang Hongcheng --- drivers/acpi/acpi_apd.c | 1 + 1 file changed, 1 insertion(+) d

Re: [musl] Re: [RFC PATCH] x86/vdso/32: Add AT_SYSINFO cancellation helpers

2016-03-11 Thread Ingo Molnar
* Rich Felker wrote: > No, it doesn't work. Cancellability of the target thread at the time > of the cancellation request (when you would decide whether or not to > send the signal) has no relation to cancellability at the time of > calling the cancellation point. Consider 2 threads A and B and

Re: [PATCH] dma: sun4i: expose block size and wait cycle configuration to DMA users

2016-03-11 Thread Boris Brezillon
On Fri, 11 Mar 2016 11:54:52 +0530 Vinod Koul wrote: > On Wed, Mar 09, 2016 at 11:14:34AM +0100, Boris Brezillon wrote: > > > > > > > + * struct sun4i_dma_chan_config - DMA channel config > > > > > > > + * > > > > > > > + * @para: contains information about block size and time before > > > > > >

Re: [PATCH] dma: sun4i: expose block size and wait cycle configuration to DMA users

2016-03-11 Thread Boris Brezillon
On Fri, 11 Mar 2016 11:56:07 +0530 Vinod Koul wrote: > On Wed, Mar 09, 2016 at 12:06:27PM +0100, Boris Brezillon wrote: > > On Tue, 8 Mar 2016 08:25:47 +0530 > > Vinod Koul wrote: > > > > > > Why does dmaengine need to wait? Can you explain that > > > > I don't have an answer for that one, but

Re: Got FPU related warning on Intel Quark during boot

2016-03-11 Thread Borislav Petkov
On Fri, Mar 11, 2016 at 10:08:40AM +0100, Ingo Molnar wrote: > So yes, this needs to be fixed too. Yes indeed. So the diff below seems to work with Bryan's simple test case. Bryan, can you confirm on your box pls? --- diff --git a/arch/x86/kernel/fpu/core.c b/arch/x86/kernel/fpu/core.c index dea

Re: [patch] kexec: potetially using uninitialized variable

2016-03-11 Thread walter harms
Am 11.03.2016 10:19, schrieb Dan Carpenter: > On Fri, Mar 11, 2016 at 04:52:43PM +0800, Xunlei Pang wrote: >> Hi Dan, >> >> On 2016/03/11 at 16:07, Dan Carpenter wrote: >>> At the end of the function we check if "ret" has a negative error code, >>> but it seems possible that it is uninitialized.

Re: [PATCH v6 08/11] tpm: Driver for supporting multiple emulated TPMs

2016-03-11 Thread Jarkko Sakkinen
On Thu, Mar 10, 2016 at 12:30:44PM -0500, Stefan Berger wrote: > > Some might want to use this in a way that the created virtual device > > is not closed when /dev/vtpmx is closed. > > I don't see that happening. If you want the device pair to stay around after > an application terminates, you hav

Re: [PATCH v3 00/12] pwm: add support for atomic update

2016-03-11 Thread Boris Brezillon
Hi Thierry, On Thu, 10 Mar 2016 18:54:38 +0100 Thierry Reding wrote: > On Mon, Mar 07, 2016 at 08:34:19AM -0800, Doug Anderson wrote: > > Thierry, > > > > On Thu, Feb 25, 2016 at 3:14 PM, Doug Anderson wrote: > > > So just to summarize: > > > > > > * Add pwm_get_state(), pwm_apply_state(), pwm

  1   2   3   4   5   6   7   8   >