Re: [PATCH 3/3] staging: lustre: space required after that close brace '}'

2015-03-08 Thread Alberto Pires de Oliveira Neto
it seems that I would have to move all file operations specific to proc_fs from lproc_fld to fld_request. Although the proc_fs seems to be used only from fld_request, it still seems cleaner to keep them separated than put it all together. On Sun, Mar 8, 2015 at 5:53 PM, Joe Perches wrote: >

Re: [RFC PATCH] Don't reset timestamps in include/generated if not needed

2015-03-08 Thread Linus Torvalds
On Tue, Mar 3, 2015 at 5:07 PM, Valdis Kletnieks wrote: > > Kbuild regenerates bounds.h and asm-offsets.h, resetting the timestamps > and forcing rebuilds even if the contents haven't changed. Add a bit of > shell magic to only replace the file if the contents have in fact changed, > which should

[patch] mm, hugetlb: abort __get_user_pages if current has been oom killed

2015-03-08 Thread David Rientjes
If __get_user_pages() is faulting a significant number of hugetlb pages, usually as the result of mmap(MAP_LOCKED), it can potentially allocate a very large amount of memory. If the process has been oom killed, this will cause a lot of memory to be overcharged to its memcg since it has access to m

Linux 4.0-rc3

2015-03-08 Thread Linus Torvalds
Back on track with a Sunday afternoon release schedule, since there was nothing particularly odd going on this week, and no last-minute bugs that I knew of and wanted to get fixed holding things up. Size-wise, this is also fairly normal, not as tiny as rc2. Easily explained by getting the fixes fr

Re: udiskd high CPU usage with 4.0 git

2015-03-08 Thread NeilBrown
On Sun, 08 Mar 2015 18:14:39 +0100 Prakash Punnoor wrote: > Hi, > > I noticed the udisks daemon (version 2.1.4) suddenly started using high > cpu (one core at 100%) with linux 4.0 git kernel. I bisected it to: > > 750f199ee8b578062341e6ddfe36c59ac8ff2dcb > > And reverting it from current maste

Re: [PATCH] reiserfs: fix several reiserfs_warning calls

2015-03-08 Thread Jeff Mahoney
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 3/6/15 5:41 AM, Nicolas Iooss wrote: > Since commit 45b03d5e8e67 ("reiserfs: rework reiserfs_warning"), > reiserfs_warning takes an id and a format as arguments, not a > single format argument. However 4 calls still follow the old > interface. Upd

Re: [PATCH v2] f2fs: fix max orphan inodes calculation

2015-03-08 Thread Changman Lee
--> 8 -- >From ce2462523dd5940b59f770c09a50d4babff5fcdb Mon Sep 17 00:00:00 2001 From: Changman Lee Date: Mon, 9 Mar 2015 08:07:04 +0900 Subject: [PATCH] f2fs: cleanup statement about max orphan inodes calc Through each macro, we can read the meaning easily. Signed-off-by: Changman Lee --- f

Re: [PATCH v6 0/3] irqchip: vf610-mscm: add MSCM interrupt router driver

2015-03-08 Thread Stefan Agner
On 2015-03-08 06:31, Jason Cooper wrote: > On Sun, Mar 01, 2015 at 11:41:26PM +0100, Stefan Agner wrote: > ... >> Stefan Agner (3): >> irqchip: vf610-mscm-ir: add support for MSCM interrupt router >> irqchip: vf610-mscm: dt-bindings: add MSCM bindings >> ARM: dts: vf610: add Miscellaneous Sys

[PATCH] dgnc: Remove redundant blank lines in dgnc_cls.c

2015-03-08 Thread Giedrius Statkevičius
There are a lot double of blank lines in dgnc_cls.c thus remove them to make the file follow the CodingStyle. Also, remove one blank line at the end of dgnc_cls.c. Signed-off-by: Giedrius Statkevičius --- drivers/staging/dgnc/dgnc_cls.c | 36 1 file changed,

[PATCH] dgnc: Make all lines under 80 characters in dgnc_driver.c

2015-03-08 Thread Giedrius Statkevičius
Some of the lines are over 80 characters in dgnc_driver.c so fix them by moving the comments closer to the code, tidying the comments to make them smaller, and remove a redundant space after +. Signed-off-by: Giedrius Statkevičius --- drivers/staging/dgnc/dgnc_driver.c | 15 --- 1 fi

[PATCH] dgnc: Make all lines under 80 characters in dgnc_cls.h

2015-03-08 Thread Giedrius Statkevičius
Some of the lines are over 80 characters so fix that by moving the comments before the struct definition and before #define's. Signed-off-by: Giedrius Statkevičius --- drivers/staging/dgnc/dgnc_cls.h | 40 1 file changed, 28 insertions(+), 12 deletions(-)

[PATCH 4/4] dgnc: Make all lines under 80 characters in dgnc_driver.h

2015-03-08 Thread Giedrius Statkevičius
Fix comments to make lines less than 80 characters by moving them, breaking the lines or making them neater. Signed-off-by: Giedrius Statkevičius --- drivers/staging/dgnc/dgnc_driver.h | 55 +- 1 file changed, 36 insertions(+), 19 deletions(-) diff --git a/dr

Re: [PATCH 4/4] dgnc: Make all lines under 80 characters in dgnc_driver.h

2015-03-08 Thread Giedrius Statkevičius
This one is bad. I've accidentally sent it, sorry. Don't pull/review this. On 2015.03.09 01:49, Giedrius Statkevičius wrote: > Fix comments to make lines less than 80 characters by moving them, > breaking the lines or making them neater. > [...] -- Thanks, Giedrius -- To unsubscribe from this

[PATCH 4/4] perf, tools, stat: Always correctly indent ratio column

2015-03-08 Thread Andi Kleen
From: Andi Kleen When cycles or instructions do not print anything, as in being, --per-socket or --per-core modi, the ratio column was not correctly indented for them. This lead to some ratios not lining up with the others. Always indent correctly when nothing is printed. Signed-off-by: Andi Kle

[PATCH 1/4] perf, tools: Output running time and run/enabled ratio in CSV mode

2015-03-08 Thread Andi Kleen
From: Andi Kleen The information how much a counter ran in perf stat can be quite interesting for other tools to judge how trustworthy a measurement is. Currently it is only output in non CSV mode. This patches make perf stat always output the running time and the enabled/running ratio in CSV m

A number of perf stat improvements

2015-03-08 Thread Andi Kleen
Here are a number of perf stat improvements I had lying around in various branches. Two are bug fixes, and two others are (minor) new features. -Andi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo in

[PATCH 2/4] perf, tools: Fix metrics calculation with event qualifiers

2015-03-08 Thread Andi Kleen
From: Andi Kleen Currently in perf IPC and other metrics cannot be directly shown separately for both user and kernel in a single run. The problem was that the metrics matching code did not check event qualifiers. With this patch the following case works correctly. % perf stat -e cycles:k,cycle

[PATCH 3/4] perf, tools, stat: Fix IPC and other formulas with -A

2015-03-08 Thread Andi Kleen
From: Andi Kleen perf stat didn't compute the IPC and other formulas for individual CPUs with -A. Fix this for the easy -A case. As before, --per-core and --per-socket do not handle it, they simply print nothing. Signed-off-by: Andi Kleen --- tools/perf/builtin-stat.c | 36 +++-

Re: [PATCH v2 3/7] zsmalloc: support compaction

2015-03-08 Thread Minchan Kim
Hello Heesub, On Thu, Mar 05, 2015 at 02:18:17PM +0900, Heesub Shin wrote: > Hello Minchan, > > Nice work! Thanks. :) > > On 03/04/2015 02:01 PM, Minchan Kim wrote: > > +static void putback_zspage(struct zs_pool *pool, struct size_class *class, > > + struct page *firs

Re: twl4030_charger: need changes to get probed?

2015-03-08 Thread NeilBrown
On Sat, 7 Mar 2015 22:01:02 +0100 Sebastian Reichel wrote: > Hi, > > On Fri, Mar 06, 2015 at 10:24:17PM +0100, Pavel Machek wrote: > > According to n900 dts, twl4030-bci (aka charger) should be > > included. > > its part of twl, but not used on N900 afaik. > > > (But it does not seem to do any

Re: [PATCH v3 1/8] x86: Kill E820_RESERVED_KERN

2015-03-08 Thread joeyli
On Sat, Mar 07, 2015 at 05:59:14PM -0800, David Rientjes wrote: > On Sat, 7 Mar 2015, Yinghai Lu wrote: > > > Now we are using memblock to do early resource reserver/allocation > > instead of using e820 map directly, and setup_data is reserved in > > memblock early already. > > Also kexec generate

Re: [PATCH v2 02/18] ARM: ARMv7M: Enlarge vector table to 256 entries

2015-03-08 Thread Stefan Agner
On 2015-02-20 19:01, Maxime Coquelin wrote: > From Cortex-M reference manuals, the nvic supports up to 240 interrupts. > So the number of entries in vectors table is up to 256. > > This patch adds a new config flag to specify the number of external > interrupts. > Some ifdeferies are added in ord

RE: [PATCH v5] modify the IO_TLB_SEGSIZE and IO_TLB_DEFAULT_SIZE configurable as flexible requirement about SW-IOMMU.

2015-03-08 Thread Wang, Xiaoming
> -Original Message- > From: Konrad Rzeszutek Wilk [mailto:konrad.w...@oracle.com] > Sent: Friday, March 6, 2015 11:20 PM > To: Wang, Xiaoming > Cc: Jan Beulich; l...@aserp2030.oracle.com; zh...@aserp2030.oracle.com; > ch...@chris-wilson.co.uk; david.vra...@citrix.com; lau...@codeaurora.o

Re: [PATCH v7 2/5] power: max77843_charger: Add Max77843 charger device driver

2015-03-08 Thread Beomho Seo
On 03/08/2015 05:13 AM, Sebastian Reichel wrote: > On Mon, Mar 02, 2015 at 07:10:35PM +0900, Jaewon Kim wrote: >> From: Beomho Seo >> >> This patch adds device driver of max77843 charger. This driver provide >> initialize each charging mode(e.g. fast charge, top-off mode and constant >> charging m

Re: [PATCH v2 2/2] livepatch/module: Correctly handle going modules

2015-03-08 Thread Rusty Russell
Petr Mladek writes: > Existing live patches are removed from going modules using a notify handler. > There are two problems with the current implementation. > > First, new patch could still see the module in the GOING state even after > the notifier has been called. It will try to initialize the r

Re: [PATCH v7 3/5] power: max77843_battery: Add Max77843 fuel gauge device driver

2015-03-08 Thread Beomho Seo
On 03/08/2015 05:14 AM, Sebastian Reichel wrote: > Hi, > > On Mon, Mar 02, 2015 at 07:10:36PM +0900, Jaewon Kim wrote: >> From: Beomho Seo >> >> This patch adds device driver of max77843 fuel gauge. >> The driver support for battery fuel gauge in Maxim Max77843. >> It is fuel-gauge systems for li

Re: + zram-support-compaction.patch added to -mm tree

2015-03-08 Thread Minchan Kim
Hello Sergey, On Thu, Mar 05, 2015 at 02:29:42PM +0900, Sergey Senozhatsky wrote: > On (03/04/15 14:02), a...@linux-foundation.org wrote: > > +What: /sys/block/zram/compact > > +Date: August 2015 > > +Contact: Minchan Kim > > +Description: > > + The compact f

Re: + zram-support-compaction.patch added to -mm tree

2015-03-08 Thread Sergey Senozhatsky
On (03/09/15 09:49), Minchan Kim wrote: > > rather a discussion question. > > > > Minchan, do you want to provide num_migrated as part of zsmalloc stats > > rather > > than having yet another zram attr? we already provide zsmalloc stats and > > this > > type of information seems to belong there.

Re: [RFC V3] mm: change mm_advise_free to clear page dirty

2015-03-08 Thread Minchan Kim
Hello Michal, On Thu, Mar 05, 2015 at 04:35:05PM +0100, Michal Hocko wrote: > On Tue 03-03-15 12:25:51, Minchan Kim wrote: > [...] > > From 30c6d5b35a3dc7e451041183ce5efd6a6c42bf88 Mon Sep 17 00:00:00 2001 > > From: Minchan Kim > > Date: Tue, 3 Mar 2015 10:06:59 +0900 > > Subject: [RFC] mm: make

Re: + zram-support-compaction.patch added to -mm tree

2015-03-08 Thread Minchan Kim
On Mon, Mar 09, 2015 at 09:57:18AM +0900, Sergey Senozhatsky wrote: > On (03/09/15 09:49), Minchan Kim wrote: > > > rather a discussion question. > > > > > > Minchan, do you want to provide num_migrated as part of zsmalloc stats > > > rather > > > than having yet another zram attr? we already pro

Re: [f2fs-dev] [PATCH 1/3] f2fs:remove unnecessary condition judgment

2015-03-08 Thread Changman Lee
Hi Yuan, On Sat, Mar 07, 2015 at 10:05:25AM +, Yuan Zhong wrote: > Remove the unnecessary condition judgment, because > 'max_slots' has been initialized to '0' at the beginging > of the function, as following: > if (max_slots) >max_len = 0; There is wrong statement. It should be fix

[PATCH v5 0/2] power: rt5033: Add Richtek RT533 drivers

2015-03-08 Thread Beomho Seo
This patchset adds driver for Richtek rt5033 chip The chip contains switching charge mode Li-Ion/Li-Polymer battery charger, fuelgauge. Additionally, This includes document for device tree of RT5033 device. RT5033 charger driver and DT documentation merged by Sebastian. But now, removed both patch

[PATCH v5 1/2] power: rt5033_charger: Add RT5033 charger device driver

2015-03-08 Thread Beomho Seo
This patch add device driver of Richtek RT5033 PMIC. The driver support switching charger. rt5033 charger provide three charging mode. Three charging mode are pre charge mode, fast cahrge mode and constant voltage mode. They are have vary charge rate, charge parameters. The charge parameters can be

[PATCH 2/2] Documentation: Add documentation for rt5033 multifunction device

2015-03-08 Thread Beomho Seo
This patch device tree binding documentation for rt5033 multifunction device. Cc: Sebastian Reichel Cc: Lee Jones Cc: Mark Brown Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Ian campbell Cc: Kumar Gala Signed-off-by: Beomho Seo Acked-by: Chanwoo Choi --- Changes in v5 - Remove wro

Re: + zram-support-compaction.patch added to -mm tree

2015-03-08 Thread Sergey Senozhatsky
On (03/09/15 10:05), Minchan Kim wrote: > > well, to be fair, compaction is a zsmalloc internal. zram has nothing to do > > with > > it. > > > > but do we we even need this stat? it seems that > > > >mem_total_used (before compaction) - mem_total_user (after comapction) > > > > will give us

Re: [PATCH Resend] cpufreq: Set cpufreq_cpu_data to NULL before putting kobject

2015-03-08 Thread Ethan Zhao
Viresh, Got that box and did some debug, found the policy->kobj is not initialized. So the race happened between cpufreq_cpu_get() and __cpufreq_add_dev(), and verified 'this' race could be fixed by commit 6d4e81e cpufreq: Ref the policy object sooner I have reboot the box with crond for

Re: [PATCH v6 0/3] irqchip: vf610-mscm: add MSCM interrupt router driver

2015-03-08 Thread Jason Cooper
On Mon, Mar 09, 2015 at 12:43:56AM +0100, Stefan Agner wrote: > On 2015-03-08 06:31, Jason Cooper wrote: > > On Sun, Mar 01, 2015 at 11:41:26PM +0100, Stefan Agner wrote: > > ... > >> Stefan Agner (3): > >> irqchip: vf610-mscm-ir: add support for MSCM interrupt router > >> irqchip: vf610-mscm:

Re: [PATCH v2] mtd:spi-nor: Add Altera EPCQ Driver

2015-03-08 Thread Viet Nga Dao
Hi Brian, I understand that you are busy but is it possible if you could spend some time to help me review my patch? My work progress really depends on your review. Thanks, Viet Nga On Tue, Feb 24, 2015 at 11:59 AM, Brian Norris wrote: > On Mon, Feb 23, 2015 at 09:30:09AM +0800, Viet Nga Dao wrot

Re: + zram-support-compaction.patch added to -mm tree

2015-03-08 Thread Minchan Kim
On Mon, Mar 09, 2015 at 10:27:28AM +0900, Sergey Senozhatsky wrote: > On (03/09/15 10:05), Minchan Kim wrote: > > > well, to be fair, compaction is a zsmalloc internal. zram has nothing to > > > do with > > > it. > > > > > > but do we we even need this stat? it seems that > > > > > >mem_tota

Re: [PATCH v2 2/2] cgroups: add an nproc subsystem

2015-03-08 Thread Zefan Li
Hi Tejun, On 2015/3/2 23:22, Tejun Heo wrote: > Hello, > > On Fri, Feb 27, 2015 at 03:17:19PM +1100, Aleksa Sarai wrote: >> +config CGROUP_NPROC >> +bool "Process number limiting on cgroups" >> +depends on PAGE_COUNTER >> +help >> + This options enables the setting of process num

Re: [PATCH v5 1/2] power: rt5033_charger: Add RT5033 charger device driver

2015-03-08 Thread Sebastian Reichel
Hi Beomho, On Mon, Mar 09, 2015 at 10:23:10AM +0900, Beomho Seo wrote: > This patch add device driver of Richtek RT5033 PMIC. The driver support > switching charger. rt5033 charger provide three charging mode. > Three charging mode are pre charge mode, fast cahrge mode and constant voltage > mode.

[PATCH] Documentation/email-clients.txt: Fix one grammar mistake, add extra info about TB

2015-03-08 Thread Giedrius Statkevičius
Fix one grammar mistake (Allows->Allow) and add extra information about the external editor add-on of Thunderbird: the developer must make sure that their editor doesn't fork (IOW it mustn't return before closing) thus they should be careful how they configure the addon. Furthermore, add a tip how

Re: [PATCH] power: generic-adc-battery: Fix power_supply_property returned value

2015-03-08 Thread Sebastian Reichel
Hi, On Sun, Mar 08, 2015 at 07:21:20PM +, nicolassae...@gmail.com wrote: > From: Nicolas Saenz Julienne > > The POWER_SUPPLY_PROP_STATUS case in gab_get_property() wasn't providing any > value. Thanks, queued: http://git.infradead.org/battery-2.6.git/commit/0595439a0a8740f776a0ae367a4c7f24

Re: + zram-support-compaction.patch added to -mm tree

2015-03-08 Thread Sergey Senozhatsky
On (03/09/15 10:47), Minchan Kim wrote: > > > > > > It's not enough. What I want to know is compaction efficiency per client > > > of > > > zsmalloc(ie, zram). > > > > > > > so what a typical user can do with this information? isn't it an entirely > > debug info that makes some hidden sense onl

Re: [PATCH v3] PM-Trace: add pm-trace support for suspending phase

2015-03-08 Thread Fu, Zhonghui
Any comments about this patch? Thanks, Zhonghui On 2015/3/3 22:11, Fu, Zhonghui wrote: > Occasionally, the system can't come back up after suspend/resume > due to problems of device suspending phase. This patch make > PM_TRACE infrastructure cover device suspending phase of > suspend/resume pro

[PATCH perf/core ] perf-probe: Fix to track down unnamed union/structure members

2015-03-08 Thread Masami Hiramatsu
Fix perf probe to track down unnamed union/structure members. perf probe did not track down the tree of unnamed union/structure members, since it just failed to find given "name" in a parent structure/union. To solve this issue, I've introduced 2 changes. - Fix die_find_member() to track down the

Re: + zram-support-compaction.patch added to -mm tree

2015-03-08 Thread Minchan Kim
On Mon, Mar 09, 2015 at 11:07:17AM +0900, Sergey Senozhatsky wrote: > On (03/09/15 10:47), Minchan Kim wrote: > > > > > > > > It's not enough. What I want to know is compaction efficiency per > > > > client of > > > > zsmalloc(ie, zram). > > > > > > > > > > so what a typical user can do with th

Re: [PATCH 0/9] Support follow_link in RCU-walk.

2015-03-08 Thread NeilBrown
On Thu, 5 Mar 2015 06:05:20 + Al Viro wrote: > On Thu, Mar 05, 2015 at 04:21:21PM +1100, NeilBrown wrote: > > Hi Al (and others), > > > > I wonder if you could look over this patchset. > > It allows RCU-walk to follow symlinks in many common cases, > > thus removing a surprising performan

[PATCH v2 2/2] Documentation: rename of_selftest.txt to of_unittest.txt

2015-03-08 Thread Wang Long
Since the test of the devicetree's OF api use unittest as its name. so we should rename of_selftest.txt to of_unittest.txt. Signed-off-by: Wang Long --- Documentation/devicetree/of_selftest.txt | 197 --- Documentation/devicetree/of_unittest.txt | 197

[PATCH v2 1/2] Documentation: update the of_selftest.txt

2015-03-08 Thread Wang Long
Since the directory "drivers/of/testcase-data" is renamed to "drivers/of/unittest-data". so we should update the path in the of_selftest.txt. When the kernel is built with OF_SELFUNIT enabled, the output dtb is testcases.dtb instead of testcase.dtb, also update it (s/testcase/testcases/). Signed-

RE: [PATCH] f2fs: fix to truncate inline data past EOF

2015-03-08 Thread Chao Yu
Hi Jaegeuk, > -Original Message- > From: Jaegeuk Kim [mailto:jaeg...@kernel.org] > Sent: Friday, March 06, 2015 5:34 AM > To: Chao Yu > Cc: Changman Lee; linux-f2fs-de...@lists.sourceforge.net; > linux-kernel@vger.kernel.org > Subject: Re: [PATCH] f2fs: fix to truncate inline data past EO

Re: [PATCH] Documentation: update the of_selftest.txt

2015-03-08 Thread long.wanglong
On 2015/3/6 22:40, Rob Herring wrote: > On Mon, Mar 2, 2015 at 9:56 PM, Wang Long wrote: >> Since the directory "drivers/of/testcase-data" is renamed >> to "drivers/of/unittest-data". so we should update the path >> in the of_selftest.txt. >> >> When the kernel is build with OF_SELFTEST enabled, t

RE: [PATCH 1/2] f2fs: fix extent cache memory leak

2015-03-08 Thread Chao Yu
Hi Wanpeng, > -Original Message- > From: Wanpeng Li [mailto:wanpeng...@linux.intel.com] > Sent: Friday, March 06, 2015 3:01 PM > To: Jaegeuk Kim > Cc: Changman Lee; Chao Yu; linux-f2fs-de...@lists.sourceforge.net; > linux-fsde...@vger.kernel.org; linux-kernel@vger.kernel.org; Wanpeng Li >

Re: [PATCH v2 2/2] cgroups: add an nproc subsystem

2015-03-08 Thread Tejun Heo
Hello, Li. On Mon, Mar 09, 2015 at 09:49:45AM +0800, Zefan Li wrote: > Seems we are going to accept this feature. Is it because kmemcg won't be able > to fullfill this requirement? And that's because kmemcg can only and will only Yeah, pretty much. > be able to control global kernel memory usage

Re: [PATCH] drivers: hwspinlock: add CSR atlas7 implementation

2015-03-08 Thread Barry Song
2015-03-07 21:42 GMT+08:00 Paul Bolle : > One license nit. > > Barry Song schreef op vr 06-03-2015 om 16:30 [+0800]: >> --- /dev/null >> +++ b/drivers/hwspinlock/sirf_hwspinlock.c >> @@ -0,0 +1,151 @@ >> +/* >> + * SIRF hardware spinlock driver >> + * >> + * Copyright (c) 2014 Cambridge Silicon Rad

Re: Re: [f2fs-dev] [PATCH 1/3] f2fs:remove unnecessary condition judgment

2015-03-08 Thread Yuan Zhong
Hi Lee, >On Sat, Mar 07, 2015 at 10:05:25AM +, Yuan Zhong wrote: >> Remove the unnecessary condition judgment, because >> 'max_slots' has been initialized to '0' at the beginging >> of the function, as following: >> if (max_slots) >>max_len = 0; > >There is wrong statement. It should

[PATCH v6 01/30] PCI: Rip out pci_bus_add_devices() from pci_scan_bus()

2015-03-08 Thread Yijing Wang
Pci_bus_add_devices() should not be placed in pci_scan_bus(). Now pci device will be added to driver core once its creation. All things left in pci_bus_add_devices() are driver attachment and other trivial sysfs things. Pci_scan_bus() should be the function responsible for scanning PCI devices, not

[PATCH v6 16/30] powerpc/pci: Rename pcibios_root_bridge_prepare()

2015-03-08 Thread Yijing Wang
Pcibios_root_bridge_prepare() in powerpc is used to set root bus speed. Rename it to pcibios_set_root_bus_speed() for better readability. Signed-off-by: Yijing Wang CC: Benjamin Herrenschmidt CC: linuxppc-...@lists.ozlabs.org Signed-off-by: Bjorn Helgaas --- arch/powerpc/include/asm/machdep.h

[PATCH v6 30/30] PCI: Remove pci_bus_assign_domain_nr()

2015-03-08 Thread Yijing Wang
Now we save the domain number in pci_host_bridge, we could remove pci_bus_assign_domain_nr() and clean the domain member in pci_bus. Signed-off-by: Yijing Wang Signed-off-by: Bjorn Helgaas --- drivers/pci/pci.c |5 - drivers/pci/probe.c | 12 include/linux/pci.h |3

[PATCH v6 20/30] sparc/PCI: Use pci_scan_host_bridge() for simplicity

2015-03-08 Thread Yijing Wang
Now we could use pci_scan_host_bridge() to scan pci buses, provide sparc specific pci_host_bridge_ops. Signed-off-by: Yijing Wang CC: "David S. Miller" CC: sparcli...@vger.kernel.org Signed-off-by: Bjorn Helgaas --- arch/sparc/kernel/pci.c | 32 ++-- 1 files chang

[PATCH v6 19/30] sparc/PCI: Claim bus resources before pci_bus_add_devices()

2015-03-08 Thread Yijing Wang
Pci_claim_bus_resources() should be called before pci_bus_add_devices(), or driver may failed to load, because the resources had not claimed. Signed-off-by: Yijing Wang --- arch/sparc/kernel/pci.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/arch/sparc/kernel/pci.c

[PATCH v6 06/30] PCI: Combine PCI domain and bus number in u32 arg

2015-03-08 Thread Yijing Wang
Currently, we use int type for bus number in pci_create_root_bus(), pci_scan_root_bus() and pci_scan_bus_legacy. Because PCI bus number always <= 255, so we could change the bus number argument type to u32, and combine PCI domain and bus number in one. Also add a domain member in pci_host_bridge to

[PATCH v6 07/30] PCI: Pass PCI domain number combined with root bus number

2015-03-08 Thread Yijing Wang
Now we could pass PCI domain combined with bus number in u32 argu. Because in arm/arm64, PCI domain number is assigned by pci_bus_assign_domain_nr(). So we leave pci_scan_root_bus() and pci_create_root_bus() in arm/arm64 unchanged. A new function pci_host_assign_domain_nr() will be introduced for a

[PATCH v6 27/30] PCI: Rename __pci_create_root_bus() to pci_create_root_bus()

2015-03-08 Thread Yijing Wang
Now no one use pci_create_root_bus(), we could remove it and rename __pci_create_root_bus() to pci_create_root_bus(). Signed-off-by: wangyij...@huawei.com Signed-off-by: Bjorn Helgaas --- drivers/pci/probe.c | 27 --- include/linux/pci.h |3 --- 2 files changed, 8 i

[PATCH v6 26/30] PCI/xgene: Use pci_scan_root_bus() instead of pci_create_root_bus()

2015-03-08 Thread Yijing Wang
Use pci_scan_root_bus() instead of pci_create_root_bus() + pci_scan_child_bus() for simplicity. Signed-off-by: Yijing Wang CC: Tanmay Inamdar Signed-off-by: Bjorn Helgaas --- drivers/pci/host/pci-xgene.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/pci/hos

[PATCH v6 02/30] PCI: Rip out pci_bus_add_devices() from pci_scan_root_bus()

2015-03-08 Thread Yijing Wang
Just like pci_scan_bus(), we also should rip out pci_bus_add_devices() from pci_scan_root_bus(). Lots platforms first call pci_scan_root_bus(), but after that, they call pci_bus_size_bridges() and pci_bus_assign_resources(). Place pci_bus_add_devices() in pci_scan_root_bus() hurts PCI scan logic. F

[PATCH v6 15/30] ia64/PCI: Refine pci_acpi_scan_root() with generic pci_host_bridge

2015-03-08 Thread Yijing Wang
From: Yijing Wang Signed-off-by: Yijing Wang CC: Tony Luck CC: Fenghua Yu CC: linux-i...@vger.kernel.org Signed-off-by: Bjorn Helgaas --- arch/ia64/pci/pci.c | 34 ++ 1 files changed, 18 insertions(+), 16 deletions(-) diff --git a/arch/ia64/pci/pci.c b/arch

[PATCH v6 12/30] PCI: Introduce pci_host_bridge_ops to support host specific operations

2015-03-08 Thread Yijing Wang
Now we have weak functions like pcibios_root_bridge_prepare() to setup pci host bridge, We could introduce pci_host_bridge_ops which contain host bridge specific ops to setup pci_host_bridge. Then host bridge driver could add pci_host_bridge_ops hooks intead of weak function to setup pci_host_bridg

[f2fs-dev] [PATCH 1/3 v2] f2fs:remove unnecessary condition judgment

2015-03-08 Thread Yuan Zhong
Remove the unnecessary condition judgment, because 'max_slots' has been initialized to '0' at the beginging of the function, as following: if (max_slots) *max_slots = 0; Signed-off-by: Yuan Zhong --- fs/f2fs/dir.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -

[PATCH v6 08/30] PCI: Introduce pci_host_assign_domain_nr() to assign domain

2015-03-08 Thread Yijing Wang
Introduce pci_host_assign_domain_nr() to assign domain number for pci_host_bridge. Later we will remove pci_bus_assign_domain_nr(). Signed-off-by: Yijing Wang Signed-off-by: Bjorn Helgaas --- drivers/pci/pci.c | 20 +++- include/linux/pci.h |4 2 files changed, 19 i

[PATCH v6 05/30] PCI: Remove deprecated pci_scan_bus_parented()

2015-03-08 Thread Yijing Wang
No one uses pci_scan_bus_parented() any more, remove it. Signed-off-by: Yijing Wang Signed-off-by: Bjorn Helgaas --- drivers/pci/probe.c | 19 --- include/linux/pci.h |2 -- 2 files changed, 0 insertions(+), 21 deletions(-) diff --git a/drivers/pci/probe.c b/drivers/pci/p

[PATCH v6 29/30] PCI: Remove platform specific pci_domain_nr()

2015-03-08 Thread Yijing Wang
Now pci_host_bridge holds the domain number, so we could eliminate all platform specific pci_domain_nr(). Signed-off-by: Yijing Wang Signed-off-by: Bjorn Helgaas --- arch/alpha/include/asm/pci.h |2 -- arch/ia64/include/asm/pci.h |1 - arch/microblaze/pci/pci-common.c | 11 --

[PATCH v6 28/30] PCI: Export find_pci_host_bridge() and rename to pci_find_host_bridge()

2015-03-08 Thread Yijing Wang
Signed-off-by: Yijing Wang Signed-off-by: Bjorn Helgaas --- drivers/pci/host-bridge.c |6 +++--- drivers/pci/pci.h |2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/pci/host-bridge.c b/drivers/pci/host-bridge.c index bc1de59..51f0a82 100644 --- a/drive

[PATCH v6 21/30] PCI: Introduce pci_bus_child_max_busnr()

2015-03-08 Thread Yijing Wang
Sometimes, we need to know the highest reserved busnr for children bus. Because parent's bus->busn_res could have padding in it. This function return the max child busnr as pci_scan_child_bus(). Signed-off-by: Yijing Wang Signed-off-by: Bjorn Helgaas Signed-off-by: Fengguang Wu --- drivers/pci

[PATCH v6 11/30] PCI: Save sysdata in pci_host_bridge drvdata

2015-03-08 Thread Yijing Wang
Save platform specific sysdata in pci_host_bridge drvdata, host bridge specific operation need to access it before the pci bus creation. Signed-off-by: Yijing Wang Signed-off-by: Bjorn Helgaas --- drivers/pci/host-bridge.c |4 +++- drivers/pci/pci.h |4 +++- drivers/pci/probe.c

Re: [PATCH v5 16/29] powerpc/pci: Use pci_scan_host_bridge() for simplicity

2015-03-08 Thread Yijing Wang
On 2015/3/6 22:19, Rob Herring wrote: > On Fri, Mar 6, 2015 at 3:33 AM, Yijing Wang wrote: >> Now we could use pci_scan_host_bridge() to scan >> pci buses, provide powerpc specific pci_host_bridge_ops. >> >> Suggested-by: Arnd Bergmann >> Signed-off-by: Yijing Wang >> CC: Benjamin Herrenschmidt

[PATCH v6 22/30] parisc/PCI: Use pci_scan_root_bus() for simplicity

2015-03-08 Thread Yijing Wang
From: Yijing Wang Now pci_bus_add_devices() has been ripped out from pci_scan_root_bus(), we could use pci_scan_root_bus() instead of pci_create_root_bus() + pci_scan_child_bus() for simplicity. Signed-off-by: Yijing Wang CC: "James E.J. Bottomley" CC: linux-par...@vger.kernel.org Signed-off-b

[PATCH v6 17/30] powerpc/pci: Use pci_scan_host_bridge() for simplicity

2015-03-08 Thread Yijing Wang
Now we could use pci_scan_host_bridge() to scan pci buses, provide powerpc specific pci_host_bridge_ops. Suggested-by: Arnd Bergmann Signed-off-by: Yijing Wang CC: Benjamin Herrenschmidt CC: linuxppc-...@lists.ozlabs.org Signed-off-by: Bjorn Helgaas --- arch/powerpc/include/asm/machdep.h

Re: intel_soc_dts_thermal binding issues

2015-03-08 Thread Pandruvada, Srinivas
On Fri, 2015-03-06 at 08:51 -0500, Josh Boyer wrote: > On Thu, Mar 5, 2015 at 8:37 PM, Zhang, Rui wrote: > > Please attach the acpidump output. > > Attached for my machine. > There is no INT3401 in the acpi dump. Also no one registered IRQ 86. So the request_irq failing. It is not a problem, thi

[PATCH v6 24/30] PCI/tegra: Remove redundant tegra_pcie_scan_bus()

2015-03-08 Thread Yijing Wang
Now pci_scan_root_bus() is almost similar to pci_create_root_bus() + pci_scan_child_bus(). So we could use common pci_scan_root_bus() in pci_common_init_dev() to scan pci busses. tegra_pcie_scan_bus() is redundant, remove it. Signed-off-by: Yijing Wang CC: Thierry Reding CC: linux-te...@vger.ker

[PATCH v6 25/30] PCI/designware: Use pci_scan_root_bus() for simplicity

2015-03-08 Thread Yijing Wang
Use pci_scan_root_bus() instead of pci_create_root_bus() + pci_scan_child_bus() for simplicity. Signed-off-by: Yijing Wang CC: Mohit Kumar CC: Jingoo Han Signed-off-by: Bjorn Helgaas --- drivers/pci/host/pcie-designware.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --g

[PATCH v6 00/30] Refine PCI scan interfaces and make generic pci host bridge

2015-03-08 Thread Yijing Wang
v5->v6: Fix cross building errors found by kbuild test. Export busn_resource to Xen pcifront driver. v4->v5: Fix some code style issues and rename some functions suggested by Bjorn. Fix some code flaw(Eg. call pci_bus_add_devices() before resources claim or l

[PATCH v6 18/30] PCI: Remove weak pcibios_root_bridge_prepare()

2015-03-08 Thread Yijing Wang
Now no one use weak pcibios_root_bridge_prepare(), we could remove it. Signed-off-by: Yijing Wang Signed-off-by: Bjorn Helgaas --- drivers/pci/probe.c | 16 +--- include/linux/pci.h |2 -- 2 files changed, 1 insertions(+), 17 deletions(-) diff --git a/drivers/pci/probe.c b/dr

[PATCH v6 14/30] x86/PCI: Refine pci_acpi_scan_root() with generic pci_host_bridge

2015-03-08 Thread Yijing Wang
Signed-off-by: Yijing Wang CC: Thomas Gleixner CC: x...@kernel.org Signed-off-by: Bjorn Helgaas --- arch/x86/pci/acpi.c | 36 1 files changed, 20 insertions(+), 16 deletions(-) diff --git a/arch/x86/pci/acpi.c b/arch/x86/pci/acpi.c index ad0e926..e730d31

[PATCH v6 13/30] PCI: Introduce new scan function pci_scan_host_bridge()

2015-03-08 Thread Yijing Wang
Introduce new scan function pci_scan_host_bridge() to support host bridge drivers that need to provide platform own pci_host_bridge_ops. Signed-off-by: Yijing Wang Signed-off-by: Bjorn Helgaas --- drivers/pci/probe.c | 22 ++ include/linux/pci.h |4 2 files change

[PATCH v6 09/30] PCI: Separate pci_host_bridge creation out of pci_create_root_bus()

2015-03-08 Thread Yijing Wang
This patch separate pci_host_bridge creation out of pci_create_root_bus(), and try to make a generic pci_host_bridge, then we could place generic PCI infos like domain number in it. Also Ripping out pci_host_bridge creation from pci_create_root_bus() make code more better readability. Further more,

[PATCH v6 23/30] PCI/mvebu: Use pci_common_init_dev() to simplify code

2015-03-08 Thread Yijing Wang
Mvebu_pcie_scan_bus() is not necessary, we could use pci_common_init_dev() instead of pci_common_init(), and pass the device pointer as the parent. Then pci_scan_root_bus() will be called to scan the pci busses. Signed-off-by: Yijing Wang CC: Thomas Petazzoni CC: Jason Cooper Signed-off-by: Bjo

[PATCH v6 10/30] PCI: Introduce pci_host_bridge_list to manage host bridges

2015-03-08 Thread Yijing Wang
Introduce pci_host_bridge_list to manage pci host bridges in system, so we could detect whether the host in domain:bus is alreay registered. Then we could remove bus alreay exist test in __pci_create_root_bus(). Signed-off-by: Yijing Wang Signed-off-by: Bjorn Helgaas --- drivers/pci/host-bridge

[PATCH v6 04/30] xen/PCI: Don't use deprecated function pci_scan_bus_parented()

2015-03-08 Thread Yijing Wang
From: Arnd Bergmann Use pci_scan_root_bus() instead of deprecated function pci_scan_bus_parented(). Signed-off-by: Arnd Bergmann Signed-off-by: Yijing Wang CC: Konrad Rzeszutek Wilk CC: xen-de...@lists.xenproject.org Signed-off-by: Bjorn Helgaas --- drivers/pci/xen-pcifront.c | 12 +++

[PATCH v6 03/30] PCI: Export busn_resource to drivers/pci

2015-03-08 Thread Yijing Wang
Export out busn_resource. Xen pcifront module need it. Signed-off-by: Yijing Wang --- drivers/pci/pci.h |2 ++ drivers/pci/probe.c |3 ++- 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index 4091f82..eeacab9 100644 --- a/drivers/pc

Re: [PATCHv2 net-next] net: stmmac: make reset control an optional requirement

2015-03-08 Thread David Miller
From: Date: Fri, 6 Mar 2015 17:48:28 -0600 > From: Dinh Nguyen > > Not having a reset control line to the ethernet controller should not be a > hard failure. Instead, add support for deferred probing and just print out > a debug statement. > > Signed-off-by: Dinh Nguyen Applied, thanks. -- T

Re: [PATCH V2] bgmac: Clean warning messages

2015-03-08 Thread David Miller
From: Peter Senna Tschudin Date: Sat, 7 Mar 2015 12:10:26 +0100 > On my test environment the throughput of a file transfer drops > from 4.4MBps to 116KBps due the number of repeated warning > messages. This patch removes the warning messages as DMA works > correctly with addresses using 0xC0

Re: [PATCH] net/macb: Update DT bindings documentation

2015-03-08 Thread David Miller
From: Boris Brezillon Date: Sat, 7 Mar 2015 07:37:06 +0100 > Add missing "cdns,at91sam9260-macb", "atmel,sama5d3-gem" and > "atmel,sama5d4-gem" compatible strings. > > Signed-off-by: Boris Brezillon > Reviewed-by: Alexandre Belloni > Acked-by: Nicolas Ferre Applied to net-next, thanks. -- T

Re: [PATCH] Drivers: net: ieee802154: mrf24j40: fix some space around operator coding style issues

2015-03-08 Thread David Miller
From: weizhewang Date: Sun, 8 Mar 2015 11:34:01 +0800 > Fixed some codeing style issues. > > Signed-off-by: hmsjwzb Your real name is not hmsjwzb, and there should be a space between your real name and your email address. -- To unsubscribe from this list: send the line "unsubscribe linux-ker

Re: [PATCH v2 1/2] cgroups: allow a cgroup subsystem to reject a fork

2015-03-08 Thread Tejun Heo
On Fri, Feb 27, 2015 at 03:17:18PM +1100, Aleksa Sarai wrote: ... > In order for can_fork to deal with a task that has an accurate css_set, > move the css_set updating to cgroup_fork (where it belongs). Hmmm? So, now the task is visible on cgroup side before the point of no return? What happens

Re: [PATCH v4 0/2] cgroup: add pids subsystem

2015-03-08 Thread Tejun Heo
On Fri, Mar 06, 2015 at 12:45:55PM +1100, Aleksa Sarai wrote: > This is a checkpatch'd version of the pids patchset[1]. It fixes some > style problems, as well as switch to using need_canfork_callback inside > kernel/cgroup.c. Also remove the dependency on PAGE_COUNTER (because > pids now uses an i

Re: Qemu e1000 broken in -rc1 and -rc2 : bisected

2015-03-08 Thread Chen, Tiejun
On 2015/3/7 3:27, Ken Moffat wrote: On Fri, Mar 06, 2015 at 12:02:40AM +, Ken Moffat wrote: I have a very recent qemu i686 image, using a 3.19.0 kernel and dhclient, which works fine if the host is running a 3.19.0 kernel, but breaks when the host runs 4.0.0-rc1 or -rc2. On those, dhcli

Re: [RFC 0/6] the big khugepaged redesign

2015-03-08 Thread Vlastimil Babka
On 02/23/2015 11:46 PM, Davidlohr Bueso wrote: On Mon, 2015-02-23 at 13:58 +0100, Vlastimil Babka wrote: Recently, there was concern expressed (e.g. [1]) whether the quite aggressive THP allocation attempts on page faults are a good performance trade-off. - THP allocations add to page fault lat

[PATCH 1/3] f2fs: guarantee node/meta inode number won't be reused

2015-03-08 Thread Wanpeng Li
Node/Meta inode numbers are also should not be reused, this patch guarantee it. Signed-off-by: Wanpeng Li --- fs/f2fs/node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index 4687eae..1a7e925 100644 --- a/fs/f2fs/node.c +++ b/fs/f2fs/node.c

[PATCH 3/3] f2fs: fix unlocked nat set cache operation

2015-03-08 Thread Wanpeng Li
nm_i->nat_tree_lock is used to sync both the operations of nat entry cache tree and nat set cache tree, however, it isn't held when flush nat entries during checkpoint which lead to potential race, this patch fix it by holding the lock when gang lookup nat set cache and delete item from nat set

<    1   2   3   4   >