[PATCH v3 5/7] KVM: MMU: introduce FNAME(prefetch_gpte)

2012-09-20 Thread Xiao Guangrong
The only difference between FNAME(update_pte) and FNAME(pte_prefetch) is that the former is allowed to prefetch gfn from dirty logged slot, so introduce a common function to prefetch spte Signed-off-by: Xiao Guangrong --- arch/x86/kvm/paging_tmpl.h | 58 ++--

[PATCH v3 4/7] KVM: MMU: cleanup FNAME(page_fault)

2012-09-20 Thread Xiao Guangrong
Let it return emulate state instead of spte like __direct_map Signed-off-by: Xiao Guangrong --- arch/x86/kvm/paging_tmpl.h | 31 --- 1 files changed, 12 insertions(+), 19 deletions(-) diff --git a/arch/x86/kvm/paging_tmpl.h b/arch/x86/kvm/paging_tmpl.h index 56f808

[PATCH v3 3/7] KVM: MMU: do not release pfn in mmu_set_spte

2012-09-20 Thread Xiao Guangrong
It helps us to cleanup release pfn in the later patches Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c | 29 ++--- arch/x86/kvm/paging_tmpl.h | 18 -- 2 files changed, 26 insertions(+), 21 deletions(-) diff --git a/arch/x86/kvm/mmu.c b/a

[PATCH v3 2/7] KVM: MMU: remove mmu_is_invalid

2012-09-20 Thread Xiao Guangrong
Remove mmu_is_invalid and use is_invalid_pfn instead Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c |5 - arch/x86/kvm/paging_tmpl.h |4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 0f56169..3e9728b 10

[PATCH v3 1/7] KVM: MMU: fix release noslot pfn

2012-09-20 Thread Xiao Guangrong
We can not directly call kvm_release_pfn_clean to release the pfn since we can meet noslot pfn which is used to cache mmio info into spte Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c |6 -- arch/x86/kvm/paging_tmpl.h |6 -- 2 files changed, 8 insertions(+), 4 dele

[PATCH v3 0/7] KVM: MMU: fix release pfn in mmu code

2012-09-20 Thread Xiao Guangrong
Changlog: changes from Avi's comments: - comment for FNAME(fetch) - add annotations (__acquires, __releases) for page_fault_start and page_fault_end changes from Marcelo's comments: - remove mmu_is_invalid - make release noslot pfn path more readable The last patch which introduces page_fa

linux-next: build failure after merge of the final tree (mfd and battery trees related)

2012-09-20 Thread Stephen Rothwell
Hi all, After merging the final tree, today's linux-next build (powerpc allyesconfig) failed like this: drivers/mfd/88pm860x-core.c: In function 'device_power_init': drivers/mfd/88pm860x-core.c:982:11: error: too few arguments to function 'mfd_add_devices' include/linux/mfd/core.h:100:12: note:

Re: [PATCH 09/14] userns: Convert binder ipc to use kuids

2012-09-20 Thread Greg Kroah-Hartman
On Thu, Sep 20, 2012 at 05:28:45PM -0700, Eric W. Biederman wrote: > From: "Eric W. Biederman" > > Cc: Arve Hjønnevåg > Cc: Greg Kroah-Hartman > Acked-by: Serge Hallyn > Signed-off-by: Eric W. Biederman Acked-by: Greg Kroah-Hartman -- To unsubscribe from this list: send the line "unsubscrib

Re: [PATCH] audit: define AUDIT_ARCH_OPENRISC

2012-09-20 Thread Jonas Bonn
On 09/21/2012 12:46 AM, Kees Cook wrote: When using audit on OpenRISC, an audit arch is needed. This defines it and fixes a compile-time bug uncovered in linux-next, likely from a cut/paste from an arch with 64/32-bit modes that defined arch_arch(): arch/openrisc/kernel/ptrace.c:190:2: error: im

[PATCH] clk: fix return value check in of_fixed_clk_setup()

2012-09-20 Thread Wei Yongjun
From: Wei Yongjun In case of error, the function clk_register_fixed_rate() returns ERR_PTR() not NULL pointer. The NULL test in the return value check should be replaced with IS_ERR(). dpatch engine is used to auto generated this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongj

linux-next: build failure after merge of the akpm tree

2012-09-20 Thread Stephen Rothwell
Hi Andrew, After merging the akpm tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: fs/compat_binfmt_elf.c:22:53: fatal error: asm/sigframe.h: No such file or directory Caused by commit "coredump: add a new elf note with siginfo of the signal". That include file only e

Re: [PATCH 4/5] PCI/IOV: simplify code by hotplug safe pci_get_domain_bus_and_slot()

2012-09-20 Thread Yinghai Lu
On Thu, Sep 20, 2012 at 7:56 PM, Bjorn Helgaas wrote: > This is another thing I'm curious about. How do you handle this > situation today (before host bridge hot-add)? > > The DMAR I'm not so worried about because as far as I know, there's no > such thing as a DMAR that's discovered by PCI enumer

Status of arm-soc for 3.7

2012-09-20 Thread Olof Johansson
First, a heads up for those of you who were planning on coming with late merge requests: Sorry, but we will probably hold off until 3.8. We'll still take fixes and probably some small updates. But given all the moves of platform data and other code shuffling in the tree for this next merge window,

[PATCH] ARM: imx: fix the return value check in imx_clk_busy_divider()

2012-09-20 Thread Wei Yongjun
From: Wei Yongjun In case of error, the function clk_register() returns ERR_PTR() no NULL pointer. The NULL test in the return value check should be replaced with IS_ERR(). dpatch engine is used to auto generated this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun --- arc

[PATCH] davinci: fix return value check by using IS_ERR in tnetv107x_devices_init()

2012-09-20 Thread Wei Yongjun
From: Wei Yongjun In case of error, the function clk_get() returns ERR_PTR() not NULL pointer. The NULL test in the error handling should be replaced with IS_ERR(). dpatch engine is used to auto generated this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun --- arch/arm/ma

linux-next: build failure after merge of the akpm tree

2012-09-20 Thread Stephen Rothwell
Hi Andrew, After merging the akpm tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: fs/binfmt_elf.c: In function 'fill_files_note': fs/binfmt_elf.c:1419:2: error: implicit declaration of function 'vmalloc' [-Werror=implicit-function-declaration] fs/binfmt_elf.c:1419:7: w

Re: [PATCH 1/4] usb: phy: add a new driver for usb3 phy

2012-09-20 Thread ABRAHAM, KISHON VIJAY
Hi, On Wed, Sep 19, 2012 at 8:11 PM, Marc Kleine-Budde wrote: > On 09/19/2012 01:30 PM, Kishon Vijay Abraham I wrote: >> Added a driver for usb3 phy that handles the interaction between usb phy >> device and dwc3 controller. >> >> This also includes device tree support for usb3 phy driver and >>

Re: [PATCH 01/14] userns: Convert loop to use kuid_t instead of uid_t

2012-09-20 Thread Jens Axboe
On 2012-09-21 02:28, Eric W. Biederman wrote: > From: "Eric W. Biederman" > > Cc: Signed-off-by: Jens Axboe > Acked-by: Serge Hallyn > Signed-off-by: Eric W. Biederman > --- > drivers/block/loop.c |4 ++-- > include/linux/loop.h |2 +- > init/Kconfig |1 - > 3 files change

RE: [PATCH v2] pwm_backlight: Add device tree support for Low Threshold Brightness

2012-09-20 Thread Philip, Avinash
Hi Stephen, On Fri, Sep 21, 2012 at 10:46:45, Stephen Warren wrote: > On 09/20/2012 10:51 PM, Philip, Avinash wrote: > > Some backlights perform poorly when driven by a PWM with a short > > duty-cycle. For such devices, the low threshold can be used to specify a > > lower bound for the duty-cycle

Re: [PATCH 3/7] dw_dmac: get number of channels from hardware if possible

2012-09-20 Thread viresh kumar
On Thu, Sep 20, 2012 at 3:10 PM, viresh kumar wrote: > On Thu, Sep 20, 2012 at 3:05 PM, Andy Shevchenko > wrote: >> On Tue, 2012-09-18 at 12:20 +0530, viresh kumar wrote: >>> > @@ -1392,23 +1396,32 @@ static int __devinit dw_probe(struct >>> > platform_device *pdev) >>> > + dw_params = dma

RE: [PATCH] pwm-backlight: Take over maintenance

2012-09-20 Thread Arun MURTHY
> Signed-off-by: Thierry Reding > Cc: Arun Murthy > Cc: Matthew Garrett > Cc: Robert Morell > Cc: Dilan Lee > Cc: Axel Lin > Cc: Mark Brown > Cc: Alexandre Courbot > Cc: Sachin Kamat > Cc: Andrew Morton > --- > Andrew: As previously discussed this patch makes me the new maintainer > for t

[PATCH] staging: tidspbridge: fix return value check in dsp_wdt_init()

2012-09-20 Thread Wei Yongjun
From: Wei Yongjun In case of error, the function clk_get() returns ERR_PTR() and never returns NULL pointer. The NULL test in the error handling should be replaced with IS_ERR(). dpatch engine is used to auto generated this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun --

[PATCH] ufs: fix return value check in ufs_alloc_lastblock()

2012-09-20 Thread Wei Yongjun
From: Wei Yongjun In case of error, the function ufs_get_locked_page() returns ERR_PTR() or NULL pointer. The IS_ERR() test in the error handling should be replaced with IS_ERR_OR_NULL(). dpatch engine is used to auto generated this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yo

Re: [PATCH 0/6] xfrm_user info leaks

2012-09-20 Thread Mathias Krause
On Fri, Sep 21, 2012 at 12:09 AM, David Miller wrote: > From: Mathias Krause > Date: Wed, 19 Sep 2012 23:33:37 +0200 > >> the following series fixes various info leaks in the xfrm netlink >> interface. As always, a test case can be supplied on request. >> >> Patches 1 to 5 are probably material f

[PATCH 1/4] perf header: Add struct perf_session_env

2012-09-20 Thread Namhyung Kim
From: Namhyung Kim The struct perf_session_env will preserve environment information at the time of perf record. It can be accessed anytime after parsing a perf.data file if needed. Signed-off-by: Namhyung Kim --- tools/perf/util/header.h | 24 1 file changed, 24 inse

[PATCH 3/4] perf header: Use pre-processed session env when printing

2012-09-20 Thread Namhyung Kim
>From now on each feature information is processed and saved in perf header so that it can be used for printing. The event desc and branch stack features are not touched since they're not saved. Cc: Stephane Eranian Cc: Robert Richter Signed-off-by: Namhyung Kim --- tools/perf/util/header.c |

[PATCH 4/4] perf header: Remove unused @feat arg from ->process callback

2012-09-20 Thread Namhyung Kim
From: Namhyung Kim As the @feat arg is not used anywhere, get rid of it from the signature. Cc: Stephane Eranian Cc: Robert Richter Signed-off-by: Namhyung Kim --- tools/perf/util/header.c | 70 1 file changed, 35 insertions(+), 35 deletions(-

[PATCH 0/4] perf header: Save and reuse feature information in header (v4)

2012-09-20 Thread Namhyung Kim
Hi, Currently the perf header information is used only at initial setup time and discarded. If it's saved we could reuse the information for various purpose in the future. Thanks, Namhyung v3 -> v4: * rename perf_header_info to perf_session_env (Arnaldo) v2 -> v3: * patch 1-3 in v2 merged i

[PATCH 2/4] perf header: Add ->process callbacks to most of features

2012-09-20 Thread Namhyung Kim
>From now on each feature information is processed and saved in perf header so that it can be used wherever needed. The BRANCH_STACK feature is an exception since it needs nothing to be done. Cc: Stephane Eranian Cc: Robert Richter Signed-off-by: Namhyung Kim --- tools/perf/util/header.c | 31

Re: [PATCH 0/5] charger-manager: Update charger-manager to support various charging conditions

2012-09-20 Thread Anton Vorontsov
On Tue, Aug 21, 2012 at 05:05:59PM +0900, Chanwoo Choi wrote: [...] > Chanwoo Choi (5): > charger-manager: Disable battery charging when charger cable is > detached > charger-manager: Use replacement variable to check state of battery > charger-manager: Add support sysfs entry for charger

Re: [PATCH v2] pwm_backlight: Add device tree support for Low Threshold Brightness

2012-09-20 Thread Stephen Warren
On 09/20/2012 10:51 PM, Philip, Avinash wrote: > Some backlights perform poorly when driven by a PWM with a short > duty-cycle. For such devices, the low threshold can be used to specify a > lower bound for the duty-cycle and should be chosen to exclude the > problematic range. > > This patch adds

Re: [PATCH 3/5] charger-manager: Add support sysfs entry for charger

2012-09-20 Thread Anton Vorontsov
On Tue, Aug 21, 2012 at 05:06:49PM +0900, Chanwoo Choi wrote: > This patch add support sysfs entry for each charger(regulator). > Charger-manager use one or more chargers for charging battery but > some charger isn't necessary on specific scenario. So, if some charger > isn't needed, can disable sp

Re: [PATCH 4/5] charger-manager: Check fully charged state of battery periodically

2012-09-20 Thread Anton Vorontsov
On Tue, Aug 21, 2012 at 05:06:52PM +0900, Chanwoo Choi wrote: > This patch check periodically fully charged state of battery to protect > overcharge and overheat. If battery is fully charged, stop charging > and check droped voltage with 'fullbatt_vchkdrop_ms' period. When voltage > of battery is m

Re: [PATCH 5/5] charger-manager: Support limit of maximum possible duration for charging/discharging

2012-09-20 Thread Anton Vorontsov
On Tue, Aug 21, 2012 at 05:06:57PM +0900, Chanwoo Choi wrote: > This patch check maximum possible duration of charging/discharging. > > If whole charging duration exceed 'desc->charging_max_duration_ms', > cm stop charging to prevent overcharge/overheat. And if discharging > duration exceed, charg

[PATCH v2] pwm_backlight: Add device tree support for Low Threshold Brightness

2012-09-20 Thread Philip, Avinash
Some backlights perform poorly when driven by a PWM with a short duty-cycle. For such devices, the low threshold can be used to specify a lower bound for the duty-cycle and should be chosen to exclude the problematic range. This patch adds support for an optional low-threshold-brightness property.

Re: RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02)

2012-09-20 Thread Thanasis
on 09/21/2012 02:20 AM Francois Romieu wrote the following: > > Thanasis, can you narrow down a bit the failing revision ? Sure, let me know how to do it please. FWIW , attached full lspci -k output. 00:00.0 Host bridge: Intel Corporation Mobile 945GSE Express Memory Controller Hub (rev 03)

RE: [RFC/PATCH 2/2] block: Adding ROW scheduling algorithm

2012-09-20 Thread Tanya Brokhman
Hi Jan > There seems to a bug with ROW. After about 43 hours of continued > operation, programs (./configure was what I ran at the time this > happened) first become slow, then got stuck in D state within a minute. Ctrl- > C/Z worked at first, soon not, then these messages appeared in dmesg. > >

[PATCH] hppfs: fix the return value of get_inode()

2012-09-20 Thread Wei Yongjun
From: Wei Yongjun In case of error, the function get_inode() returns ERR_PTR(). But the users hppfs_lookup() and hppfs_fill_super() use NULL test for check the return value, not IS_ERR(), so we'd better change the return value of get_inode() to NULL instead of ERR_PTR(). dpatch engine is used to

RE: [PATCH] pwm_backlight: Add device tree support for Low Threshold Brightness

2012-09-20 Thread Philip, Avinash
On Wed, Sep 19, 2012 at 12:14:25, Thierry Reding wrote: > On Wed, Aug 01, 2012 at 06:51:21AM +, Philip, Avinash wrote: > > On Mon, Jul 30, 2012 at 12:28:05, Thierry Reding wrote: > > > On Wed, Jul 25, 2012 at 05:54:02PM +0530, Philip, Avinash wrote: > > > > Low Threshold Brightness should be co

Re: [PATCH v2 23/26] raid1: use bio_alloc_pages()

2012-09-20 Thread Kent Overstreet
On Thu, Sep 20, 2012 at 05:48:27PM -0700, Tejun Heo wrote: > On Mon, Sep 10, 2012 at 05:22:34PM -0700, Kent Overstreet wrote: > > Signed-off-by: Kent Overstreet > > CC: Jens Axboe > > CC: NeilBrown > > I think it's better to merge this and the previous patch. It's not > like we're converting a

RE: [PATCH v2] smb347_charger: fix battery status reporting logic for charger faults

2012-09-20 Thread Pallala, Ramakrishna
> On Wed, Sep 19, 2012 at 10:37:34AM +0300, Mika Westerberg wrote: > > On Tue, Sep 18, 2012 at 09:58:07PM +0530, Ramakrishna Pallala wrote: > > > This patch checks for charger status register for determining the > > > battery charging status and reports Discharing/Charging/Not > > > Charging/Full a

Re: [PATCH v2 22/26] block: Add bio_alloc_pages()

2012-09-20 Thread Kent Overstreet
On Thu, Sep 20, 2012 at 05:47:11PM -0700, Tejun Heo wrote: > On Mon, Sep 10, 2012 at 05:22:33PM -0700, Kent Overstreet wrote: > > + bio_for_each_segment_all(bv, bio, i) { > > + bv->bv_page = alloc_page(gfp_mask); > > + if (!bv->bv_page) { > > + while (bv-- !=

Re: [PATCH v3 15/16] memcg/sl[au]b: shrink dead caches

2012-09-20 Thread JoonSoo Kim
Hi Glauber. 2012/9/18 Glauber Costa : > diff --git a/mm/slub.c b/mm/slub.c > index 0b68d15..9d79216 100644 > --- a/mm/slub.c > +++ b/mm/slub.c > @@ -2602,6 +2602,7 @@ redo: > } else > __slab_free(s, page, x, addr); > > + kmem_cache_verify_dead(s); > } As far as u kn

Re: [RFC/PATCH 2/2] block: Adding ROW scheduling algorithm

2012-09-20 Thread Jan Engelhardt
On Wednesday 2012-09-19 07:29, Jan Engelhardt wrote: >On Monday 2012-08-06 18:35, Jeff Moyer wrote: >>Tatyana Brokhman writes: >> >>> This patch adds the implementation of a new scheduling algorithm - ROW. >>> The policy of this algorithm is to prioritize READ requests over WRITE >>> as much as po

Re: [PATCH 2/4] perf tools: configure shell path at compile time

2012-09-20 Thread David Ahern
On 9/20/12 4:13 PM, Irina Tirdea wrote: From: Irina Tirdea Shell path /bin/sh is hardcoded in various places in perf. Android has a different folder structure and does not have /bin/sh. Set the shell path at compile time in the Makefile by setting PERF_SHELL_PATH. By default it is set to /bin/

mm: frontswap: fix a wrong if condition in frontswap_shrink

2012-09-20 Thread Zhenzhong Duan
pages_to_unuse is set to 0 to unuse all frontswap pages But that doesn't happen since a wrong condition in frontswap_shrink cancels it. Signed-off-by: Zhenzhong Duan --- mm/frontswap.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/frontswap.c b/mm/frontswap.c ind

KGTP (Linux debugger and tracer) 20120920 release (add LKM plugin and per cpu TSV update)

2012-09-20 Thread Hui Zhu
i/HOWTO or http://code.google.com/p/kgtp/wiki/HOWTO (Chinese) to get more info about howto use KGTP. Now, KGTP 20120920 release. You can get the package for it from http://kgtp.googlecode.com/files/kgtp_20120920.tar.bz2 or svn co https://kgtp.googlecode.com/svn/tags/20120920 The main change of this relea

linux-next: manual merge of the battery tree with the mfd tree

2012-09-20 Thread Stephen Rothwell
Hi Anton, Today's linux-next merge of the battery tree got a conflict in include/linux/mfd/88pm860x.h between commit a70abacb06b8 ("mfd: 88pm860x: Use REG resource in regulator") from the mfd tree and commit a830d28b48bf ("power_supply: Enable battery-charger for 88pm860x") from the battery tree.

Re: [PATCH 1/4] module: add syscall to load module from fd

2012-09-20 Thread Mimi Zohar
On Fri, 2012-09-21 at 12:22 +1000, James Morris wrote: > On Thu, 20 Sep 2012, Kees Cook wrote: > > > Earlier proposals for appending signatures to kernel modules would not be > > useful in Chrome OS, since it would involve adding an additional set of > > keys to our kernel and builds for no good r

Re: [PATCH 1/4] module: add syscall to load module from fd

2012-09-20 Thread Kees Cook
On Thu, Sep 20, 2012 at 7:22 PM, James Morris wrote: > On Thu, 20 Sep 2012, Kees Cook wrote: > >> Earlier proposals for appending signatures to kernel modules would not be >> useful in Chrome OS, since it would involve adding an additional set of >> keys to our kernel and builds for no good reason

Re: [PATCH rcu] Move TINY_RCU quiescent state out of extended quiescent state

2012-09-20 Thread Paul E. McKenney
On Fri, Sep 21, 2012 at 10:08:56AM +0800, Li Zhong wrote: > TINY_RCU's rcu_idle_enter_common() invokes rcu_sched_qs() in order > to inform the RCU core of the quiescent state implied by idle entry. > Of course, idle is also an extended quiescent state, so that the call > to rcu_sched_qs() speeds up

Re: [PATCH] module: add finit_module syscall to asm-generic

2012-09-20 Thread Rusty Russell
Arnd Bergmann writes: > On Thursday 20 September 2012, Kees Cook wrote: >> >> This adds the finit_module syscall to the generic syscall list. >> >> Signed-off-by: Kees Cook >> --- >> This depends on the finit_module patchset in Rusty's tree, based on >> https://lkml.org/lkml/2012/9/7/559 > > A

Re: [PATCH 4/5] PCI/IOV: simplify code by hotplug safe pci_get_domain_bus_and_slot()

2012-09-20 Thread Bjorn Helgaas
On Thu, Sep 20, 2012 at 7:51 PM, Yinghai Lu wrote: > On Thu, Sep 20, 2012 at 4:59 PM, Bjorn Helgaas wrote: >> On Thu, Sep 20, 2012 at 2:38 PM, Yinghai Lu wrote: >>> in that case, VFs are stopped before PF, so they are not in device >>> tree anymore. >>> so pci_get_domain_bus_and_slot will not f

linux-next: manual merge of the md tree with the tree

2012-09-20 Thread Stephen Rothwell
Hi Neil, Today's linux-next merge of the md tree got a conflict in fs/bio.c between commit 4363ac7c13a9 ("block: Implement support for WRITE SAME") from the block tree and commit 368e564836d3 ("block: makes bio_split support bio without data") from the md tree. I fixed it up (I think - see below)

linux-next: manual merge of the md tree with the block tree

2012-09-20 Thread Stephen Rothwell
Hi Neil, Today's linux-next merge of the md tree got a conflict in drivers/md/raid0.c between commit 4363ac7c13a9 ("block: Implement support for WRITE SAME") from the block tree and commit c9264cda8f11 ("md: raid 0 supports TRIM") from the md tree. I fixed it up (see below) and can carry the fix

Re: [PATCH V3] perf: Fix parallel build

2012-09-20 Thread Namhyung Kim
On Thu, 20 Sep 2012 21:31:44 -0500, Eric Sandeen wrote: > Parallel builds of perf were failing for me on a 32p box, with: > > * new build flags or prefix > util/pmu.l:7:23: error: pmu-bison.h: No such file or directory > > ... > > make: *** [util/pmu-flex.o] Error 1 > make: *** Waiting for unfi

Re: [PATCH 2/3] clk: Add devm_clk_{register,unregister}()

2012-09-20 Thread Stephen Boyd
On 09/18/12 23:05, Stephen Boyd wrote: > +void devm_clk_unregister(struct device *dev, struct clk *clk) > +{ > + WARN_ON(devres_destroy(dev, devm_clk_release, devm_clk_match, clk)); Hm... I guess this needs to be devres_release() instead of destroy. Can you squash this in or should I resend fo

Re: [PATCH 0/2] do not disable sg when packet requires no checksum

2012-09-20 Thread David Miller
From: Ed Cashin Date: Wed, 19 Sep 2012 18:46:07 -0700 > This two-part patchset replaces an earlier net-only patch that > added an explicit check for the AoE protocol to harmonize_features > in net/core/dev.c. > > Following the suggestions of Ben Hutchings, this patchset makes > the decision in t

[PATCH V3] perf: Fix parallel build

2012-09-20 Thread Eric Sandeen
Parallel builds of perf were failing for me on a 32p box, with: * new build flags or prefix util/pmu.l:7:23: error: pmu-bison.h: No such file or directory ... make: *** [util/pmu-flex.o] Error 1 make: *** Waiting for unfinished jobs This can pretty quickly be seen by adding a sleep in f

Re: [PATCH 1/4] module: add syscall to load module from fd

2012-09-20 Thread James Morris
On Thu, 20 Sep 2012, Kees Cook wrote: > Earlier proposals for appending signatures to kernel modules would not be > useful in Chrome OS, since it would involve adding an additional set of > keys to our kernel and builds for no good reason: we already trust the > contents of our root filesystem. We

[PATCH 10/10] ARM: msm: Migrate to common clock framework

2012-09-20 Thread Stephen Boyd
Move the existing clock code in mach-msm to the common clock framework. We lose our capability to set the rate of and enable a clock through debugfs. This is ok though because the debugfs features are mainly used for testing and development of new clock code. To maintain compatibility with the ori

[PATCH 05/10] ARM: msm: Remove custom clk_set_flags() API

2012-09-20 Thread Stephen Boyd
Nobody is using this API upstream and it's just contributing cruft. Remove it so the MSM clock API is closer to the generic struct clock API. Cc: Saravana Kannan Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/clock-pcom.c | 10 -- arch/arm/mach-msm/clock.c| 8 -

[PATCH 08/10] ARM: msm: Prepare clk_get() users in mach-msm for clock-pcom driver

2012-09-20 Thread Stephen Boyd
In the near future we'll be moving clock-pcom to a platform driver, in which case these two users of clk_get() in mach-msm need to be updated. Have board-trout-panel.c make the proc_comm call directly so that we don't have to port this board specific code to the driver right now and reorder the ini

[PATCH 07/10] ARM: msm: Remove clock-7x30.h include file

2012-09-20 Thread Stephen Boyd
This file is not used outside of the two users in the clock-7x30 array. Those two clocks are virtual "source" clocks that don't really need to exist outside of the clock driver. Let's remove them from the array, since they're not doing anything anyway, and then remove the clock-7x30.h include file

[PATCH 09/10] ARM: msm: Make proc_comm clock control into a platform driver

2012-09-20 Thread Stephen Boyd
To move closer to the generic struct clock framework move the proc_comm based clock code to a platform driver. The data describing the struct clks still live in the devices-$ARCH file, but the clock initialization is done at driver binding time. Cc: Saravana Kannan Signed-off-by: Stephen Boyd --

[PATCH 03/10] msm: iommu: Convert to clk_prepare/unprepare

2012-09-20 Thread Stephen Boyd
Add calls to clk_prepare and unprepare so that MSM can migrate to the common clock framework. We never unprepare the clocks until driver remove because the clocks are enabled and disabled in irq context. Finer grained power management is possible in the future via runtime power management technique

[PATCH 00/10] Convert MSM to common clock framework

2012-09-20 Thread Stephen Boyd
This patchset moves the existing MSM clock code and affected drivers to the common clock framework. A prerequisite of moving to the common clock framework is to use clk_prepare() and clk_enable() so the first few patches migrate drivers to that call (clk_prepare() is a no-op on MSM right now). It a

[PATCH 04/10] msm: iommu: Use clk_set_rate() instead of clk_set_min_rate()

2012-09-20 Thread Stephen Boyd
Calling clk_set_min_rate() is no better than just calling clk_set_rate() because MSM clock code already takes care of calling the min_rate ops if the clock really needs clk_set_min_rate() called on it. Signed-off-by: Stephen Boyd --- drivers/iommu/msm_iommu_dev.c | 3 +-- 1 file changed, 1 inser

[PATCH 02/10] msm_sdcc: Convert to clk_prepare/unprepare

2012-09-20 Thread Stephen Boyd
Add calls to clk_prepare and unprepare so that MSM can migrate to the common clock framework. Signed-off-by: Stephen Boyd --- drivers/mmc/host/msm_sdcc.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/msm_sdcc.c b/drivers/mmc/host/msm_sdcc.c i

[PATCH 01/10] usb: otg: msm: Convert to clk_prepare/unprepare

2012-09-20 Thread Stephen Boyd
Add calls to clk_prepare and unprepare so that MSM can migrate to the common clock framework. Cc: Felipe Balbi Signed-off-by: Stephen Boyd --- drivers/usb/otg/msm_otg.c | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/drivers/usb/otg/m

[PATCH 06/10] ARM: msm: Remove custom clk_set_{max,min}_rate() API

2012-09-20 Thread Stephen Boyd
There are no users of this API anymore so let's just remove it. If a need arises in the future we can extend the common clock API to handle it. Cc: Saravana Kannan Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/clock-debug.c | 9 + arch/arm/mach-msm/clock.c| 12

Re: [PATCH V2] perf: Fix parallel build

2012-09-20 Thread Eric Sandeen
On 9/20/12 9:07 PM, Namhyung Kim wrote: > Hi again, > > On Thu, 20 Sep 2012 20:12:50 -0500, Eric Sandeen wrote: >> -$(OUTPUT)util/parse-events-flex.c: util/parse-events.l >> +$(OUTPUT)util/parse-events-flex.c: util/parse-events.l >> util/parse-events-bison.c > > I realized that the generated *-b

Re: [PATCH v6 1/6] thermal: add generic cpufreq cooling implementation

2012-09-20 Thread jonghwa3 . lee
Hi, Amit, On 2012년 08월 16일 20:41, Amit Daniel Kachhap wrote: > diff --git a/drivers/thermal/cpu_cooling.c b/drivers/thermal/cpu_cooling.c > new file mode 100644 > index 000..66cbd52 > --- /dev/null > +++ b/drivers/thermal/cpu_cooling.c > @@ -0,0 +1,586 @@ > +/** > + * cpufreq_cooling_

RE: Davicom DM9000C driver

2012-09-20 Thread Michael Chen
Dear Arnd and Linux Expert, First of all, appreciate you all for your efforts on our DM9000C driver. Davicom Semiconductor Inc. is a fabless IC design house, located in Taiwan. DM9000C is 10/100Mbps Ethernet IC with ISA-like interface. Meanwhile, to facilitate the coming works with you efficien

Re: [PATCH V2] perf: Fix parallel build

2012-09-20 Thread Namhyung Kim
Hi again, On Thu, 20 Sep 2012 20:12:50 -0500, Eric Sandeen wrote: > -$(OUTPUT)util/parse-events-flex.c: util/parse-events.l > +$(OUTPUT)util/parse-events-flex.c: util/parse-events.l > util/parse-events-bison.c I realized that the generated *-bison.c files should have $(OUTPUT) prefix since they

Re: [PATCH] mm: fix NR_ISOLATED_[ANON|FILE] mismatch

2012-09-20 Thread Johannes Weiner
On Fri, Sep 21, 2012 at 08:24:08AM +0900, Minchan Kim wrote: > On Thu, Sep 20, 2012 at 11:41:11AM -0400, Johannes Weiner wrote: > > On Thu, Sep 20, 2012 at 08:51:56AM +0900, Minchan Kim wrote: > > > From: Minchan Kim > > > Date: Thu, 20 Sep 2012 08:39:52 +0900 > > > Subject: [PATCH] mm: revert 0de

[PATCH rcu] Move TINY_RCU quiescent state out of extended quiescent state

2012-09-20 Thread Li Zhong
TINY_RCU's rcu_idle_enter_common() invokes rcu_sched_qs() in order to inform the RCU core of the quiescent state implied by idle entry. Of course, idle is also an extended quiescent state, so that the call to rcu_sched_qs() speeds up RCU's invoking of any callbacks that might be queued. This speed

Re: [PATCH 1/2] ACPI: Reorder IPMI driver before any other ACPI drivers

2012-09-20 Thread Corey Minyard
On 09/20/2012 08:26 PM, Matthew Garrett wrote: On Thu, Sep 20, 2012 at 08:19:48PM -0500, Corey Minyard wrote: On 09/20/2012 04:46 PM, Matthew Garrett wrote: Drivers may make calls that require the ACPI IPMI driver to have been initialised already, so make sure that it appears earlier in the bui

Re: [PATCH net-next] net1080: Neaten netdev_dbg use

2012-09-20 Thread David Miller
From: Joe Perches Date: Thu, 20 Sep 2012 17:10:23 -0700 > Remove unnecessary temporary variable and #ifdef DEBUG block. > > Signed-off-by: Joe Perches Applied, thanks Joe. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kern

Subject: [PATCH] drivers-core: move device_pm_remove behind bus_remove_device

2012-09-20 Thread Zhang, LongX
From: LongX Zhang device_pm_remove will call pm_runtime_remove which would disable runtime PM of the device. After that pm_runtime_get* or pm_runtime_put* will be ingored. So if we disable the runtime PM before device really be removed, drivers' _remove callback may access HW even pm_runtime_get*

Re: [PATCH 4/5] PCI/IOV: simplify code by hotplug safe pci_get_domain_bus_and_slot()

2012-09-20 Thread Yinghai Lu
On Thu, Sep 20, 2012 at 4:59 PM, Bjorn Helgaas wrote: > On Thu, Sep 20, 2012 at 2:38 PM, Yinghai Lu wrote: >> in that case, VFs are stopped before PF, so they are not in device >> tree anymore. >> so pci_get_domain_bus_and_slot will not find those VFs. >> >> So the reference to PF is not release

Re: [RFC 3/3] PCI/PM: Disable PME poll for PCIe devices

2012-09-20 Thread Huang Ying
On Thu, 2012-09-20 at 21:31 +0200, Rafael J. Wysocki wrote: > On Monday, September 17, 2012, Huang Ying wrote: > > PME poll is not necessary for PCIe devices, because PCIe devices use > > in-band PME message and IRQ on PCIe port to report PME. > > Alas, not all of them as it turns out and even if

RE: [PATCH V2] poweroff: fix bug in orderly_poweroff

2012-09-20 Thread Feng Hong
Hi, Serge, Andrew, Will following an acceptable change log ? / orderly_poweroff is trying to poweroff platform by two steps: step 1: Call user space application to poweroff step 2: If user space powero

Re: [PATCH] [V2]power: battery: Generic battery driver using IIO

2012-09-20 Thread Anton Vorontsov
On Tue, Sep 18, 2012 at 11:33:20PM +0530, anish kumar wrote: > From: anish kumar > > In last version: > Addressed concerns raised by lars: > a. made the adc_bat per device. > b. get the IIO channel using hardcoded channel names. > c. Minor issues related to gpio_is_valid and some code >refact

Re: kernel BUG at kernel/sched/core.c:1465!

2012-09-20 Thread Michael Wang
On 09/20/2012 08:58 PM, Borislav Petkov wrote: > On Thu, Sep 20, 2012 at 02:38:47PM +0800, Michael Wang wrote: >> Could you please try below patch and see whether the new WARNING >> appear or not? >> >> And cc Tejun Heo since wq_worker_sleeping() doesn't >> work as it's introduced... > > Ok, now

Re: linux-next: build failure after merge of the final tree (net-next tree related)

2012-09-20 Thread Stephen Rothwell
Hi Dave, On Thu, 20 Sep 2012 17:36:22 +1000 Stephen Rothwell wrote: > > After merging the final tree, today's linux-next build (powerpc > allyesconfig) failed like this: > > drivers/net/ethernet/i825xx/znet.c: In function 'hardware_init': > drivers/net/ethernet/i825xx/znet.c:868:2: error: impli

linux-next: manual merge of the net-next tree with the net tree

2012-09-20 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in drivers/net/usb/qmi_wwan.c between commit 9db273f45686 ("net: qmi_wwan: adding Huawei E367, ZTE MF683 and Pantech P4200") from the net tree and commit bd877e489126 ("net: qmi_wwan: use a single bind function for all device

[PATCH] backlight: platform-lcd: Add support for device tree based probe

2012-09-20 Thread Jingoo Han
This patch adds the of_match_table to platform-lcd driver to be probed when platform-lcd device node is found in the device tree. Cc: Richard Purdie Signed-off-by: Jingoo Han --- drivers/video/backlight/platform_lcd.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --gi

Re: [PATCH 1/2] ACPI: Reorder IPMI driver before any other ACPI drivers

2012-09-20 Thread Matthew Garrett
On Thu, Sep 20, 2012 at 08:19:48PM -0500, Corey Minyard wrote: > On 09/20/2012 04:46 PM, Matthew Garrett wrote: > >Drivers may make calls that require the ACPI IPMI driver to have been > >initialised already, so make sure that it appears earlier in the build > >order. > > The IPMI driver uses the

Re: [PATCH 1/3] Add a core driver for SI476x MFD

2012-09-20 Thread andrey.smir...@convergeddevices.net
On 09/13/2012 11:44 PM, Hans Verkuil wrote: > Hi Andrey! > > Thanks for posting this driver. One request for the future: please split this > patch up in smaller pieces: one for each c source for example. That makes it > easier to review. Will do for next version. > + > +/** > + * __core_send_comm

Re: [PATCH 1/2] ACPI: Reorder IPMI driver before any other ACPI drivers

2012-09-20 Thread Corey Minyard
On 09/20/2012 04:46 PM, Matthew Garrett wrote: Drivers may make calls that require the ACPI IPMI driver to have been initialised already, so make sure that it appears earlier in the build order. The IPMI driver uses the ACPI namespace as an option to know the address and characteristics of the

Re: [PATCH 00/22] lp8727_charger: clean up code

2012-09-20 Thread Anton Vorontsov
On Fri, Aug 31, 2012 at 09:22:39AM +, Kim, Milo wrote: > LP8727 driver should be fixed for several reasons. > > (a) Need to clean up _probe() and _remove() > (b) Not secure code when the platform data is NULL > (c) Improved the interrupt handling > (d) Lots of definitions should be unique. > (

[PATCH V2] perf: Fix parallel build

2012-09-20 Thread Eric Sandeen
Parallel builds of perf were failing for me on a 32p box, with: * new build flags or prefix util/pmu.l:7:23: error: pmu-bison.h: No such file or directory ... make: *** [util/pmu-flex.o] Error 1 make: *** Waiting for unfinished jobs This can pretty quickly be seen by adding a sleep in f

Re: [PATCH] perf: Fix parallel build

2012-09-20 Thread Eric Sandeen
On 9/20/12 7:24 PM, Namhyung Kim wrote: > Hi Eric, > > On Thu, 20 Sep 2012 18:53:01 -0500, Eric Sandeen wrote: >> Parallel builds of perf were failing for me on a 32p box, with: >> >> * new build flags or prefix >> util/pmu.l:7:23: error: pmu-bison.h: No such file or directory >> >> ... >> >>

[PATCH] pda_power: remove ac_draw_failed goto and label

2012-09-20 Thread Paul Parsons
A previous patch added the ac_draw_failed goto and label to pda_power_probe(). The goto would be invoked after a failed call to regulator_get(). However the way ac_draw is used - always after a check for NULL - suggests that a failed call to regulator_get() was not fatal. This patch removes the

Re: [PATCH v2 21/26] block: Convert some code to bio_for_each_segment_all()

2012-09-20 Thread Kent Overstreet
On Thu, Sep 20, 2012 at 05:38:32PM -0700, Tejun Heo wrote: > On Mon, Sep 10, 2012 at 05:22:32PM -0700, Kent Overstreet wrote: > > A few places in the code were either open coding or using the wrong > > version - fix. > > > > Signed-off-by: Kent Overstreet > > CC: Jens Axboe > > CC: NeilBrown >

Re: [PATCH v2 23/26] raid1: use bio_alloc_pages()

2012-09-20 Thread Tejun Heo
On Mon, Sep 10, 2012 at 05:22:34PM -0700, Kent Overstreet wrote: > Signed-off-by: Kent Overstreet > CC: Jens Axboe > CC: NeilBrown I think it's better to merge this and the previous patch. It's not like we're converting a lot of users. Thanks. -- tejun -- To unsubscribe from this list: send

Re: [PATCH v2 22/26] block: Add bio_alloc_pages()

2012-09-20 Thread Tejun Heo
On Mon, Sep 10, 2012 at 05:22:33PM -0700, Kent Overstreet wrote: > + bio_for_each_segment_all(bv, bio, i) { > + bv->bv_page = alloc_page(gfp_mask); > + if (!bv->bv_page) { > + while (bv-- != bio->bi_io_vec) > + __free_page(

Re: [PATCH 2/2] ARM: OMAP: hwmod: revise deassert sequence

2012-09-20 Thread Paul Walmsley
Hi On Wed, 22 Aug 2012, Omar Ramirez Luna wrote: > For a reset sequence to complete cleanly, a module needs its > associated clocks to be enabled, otherwise the timeout check > in prcm code can print a false failure (failed to hardreset) > that occurs because the clocks aren't powered ON and the

Re: [PATCH 1/2] ARM: OMAP: hwmod: partially un-reset hwmods might not be properly enabled

2012-09-20 Thread Paul Walmsley
Hi Omar On Wed, 22 Aug 2012, Omar Ramirez Luna wrote: > Some IP blocks might not be using/controlling more than one > reset line, this check loosens the restriction to fully use > hwmod framework for those drivers. > > E.g.: ipu has reset lines: mmu_cache, cpu0 and cpu1. > - As of now cpu1 is no

  1   2   3   4   5   6   7   >