[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

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

[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

[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

[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

[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 |

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

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

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

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

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,

[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

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

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

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

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

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

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

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

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

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

2012-09-20 Thread Hui Zhu
://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 release is: C plugin

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

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

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

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 > >

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

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

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

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

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

[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

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.

[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

[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

[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

[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

[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

[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

[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

[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

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 @@ > +/** > + *

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

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

[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

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

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

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

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

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

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 >

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:

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

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. > + > +/** > + *

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

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

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:

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) > +

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

[PATCH 11/14] userns: Convert s390 getting uid and gid system calls to use kuid and kgid

2012-09-20 Thread Eric W. Biederman
From: "Eric W. Biederman" Convert getresuid, getresgid, getuid, geteuid, getgid, getegid Convert struct cred kuids and kgids into userspace uids and gids when returning them. These s390 system calls slipped through the cracks in my first round of converstions :( Cc: Martin Schwidefsky Cc:

[PATCH 13/14] userns: On ia64 deal with current_uid and current_gid being kuid and kgid

2012-09-20 Thread Eric W. Biederman
From: "Eric W. Biederman" These ia64 uses of current_uid and current_gid slipped through the cracks when I was converting everything to kuids and kgids convert them now. Cc: Tony Luck Cc: Fenghua Yu Signed-off-by: "Eric W. Biederman" --- arch/ia64/kernel/mca_drv.c |3 ++-

[PATCH 12/14] userns: On ppc convert current_uid from a kuid before printing.

2012-09-20 Thread Eric W. Biederman
From: "Eric W. Biederman" Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Signed-off-by: "Eric W. Biederman" --- arch/powerpc/mm/fault.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/mm/fault.c b/arch/powerpc/mm/fault.c index 08ffcf5..e5f028b 100644 ---

[PATCH 14/14] userns: On alpha modify linux_to_osf_stat to use convert from kuids and kgids

2012-09-20 Thread Eric W. Biederman
From: "Eric W. Biederman" Silencing build errors and potentially allowing people to use osf system calls in from processes running in a non-default user namespace. It seems this stat call was missed in my first round of converting the stat system calls, bother. Cc: Richard Henderson Cc: Ivan

Re: [PATCH] pstore: avoid recursive spinlocks in the oops_in_progress case

2012-09-20 Thread Anton Vorontsov
On Thu, Sep 20, 2012 at 11:48:32PM +, Luck, Tony wrote: > > True, but the lock is used to protect pstore->buf, I doubt that > > any backend will actually want to grab it, no? > > The lock is doing double duty to protect the buffer, and the back-end driver. > > But even if we split it into

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

2012-09-20 Thread Tejun Heo
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 > --- > --- a/drivers/md/raid1.c > +++ b/drivers/md/raid1.c > @@ -921,7

Re: [PATCH v2 20/26] block: Add bio_for_each_segment_all()

2012-09-20 Thread Tejun Heo
Hello, On Mon, Sep 10, 2012 at 05:22:31PM -0700, Kent Overstreet wrote: > This is part of the immutable bvec prep work; bio_for_each_segment() is > going to have a different implementation so these need to be split > apart. > > This change is also to better document the intent of code that's

Re: [PATCH v2 19/26] bounce: Refactor __blk_queue_bounce to not use bi_io_vec

2012-09-20 Thread Kent Overstreet
On Thu, Sep 20, 2012 at 05:27:06PM -0700, Tejun Heo wrote: > On Mon, Sep 10, 2012 at 05:22:30PM -0700, Kent Overstreet wrote: > > A bunch of what __blk_queue_bounce() was doing was problematic for the > > immutable bvec work; this cleans that up and the code is quite a bit > > smaller, too. > > >

Re: [PATCH] perf: Fix parallel build

2012-09-20 Thread Namhyung Kim
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 > > ... > > make: *** [util/pmu-flex.o] Error 1 > make: ***

Re: [PATCH v2 19/26] bounce: Refactor __blk_queue_bounce to not use bi_io_vec

2012-09-20 Thread Kent Overstreet
On Thu, Sep 20, 2012 at 05:25:55PM -0700, Tejun Heo wrote: > Hello, Kent. > > On Mon, Sep 10, 2012 at 05:22:30PM -0700, Kent Overstreet wrote: > > A bunch of what __blk_queue_bounce() was doing was problematic for the > > immutable bvec work; this cleans that up and the code is quite a bit > >

[PATCH 06/14] userns: Convert EVM to deal with kuids and kgids in it's hmac computation

2012-09-20 Thread Eric W. Biederman
From: "Eric W. Biederman" Cc: Mimi Zohar Acked-by: Serge Hallyn Signed-off-by: Eric W. Biederman --- init/Kconfig|1 - security/integrity/evm/evm_crypto.c |4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/init/Kconfig b/init/Kconfig index

Re: [PATCH] pda_power: ac_draw used before set

2012-09-20 Thread Anton Vorontsov
On Fri, Sep 21, 2012 at 01:16:38AM +0100, Paul Parsons wrote: > >>When I reboot my iPAQ hx4700 in its cradle, the battery will not begin > >>to charge even though the AC supply is connected. Charging will start > >>only after the PDA power driver is tickled by some other power event, > >>such as

[PATCH 07/14] userns: Add user namespace support to IMA

2012-09-20 Thread Eric W. Biederman
From: "Eric W. Biederman" Use kuid's in the IMA rules. When reporting the current uid in audit logs use from_kuid to get a usable value. Cc: Mimi Zohar Acked-by: Serge Hallyn Signed-off-by: Eric W. Biederman --- init/Kconfig|4

Re: [PATCH v2 2/9] ARM: OMAP3: hwmod data: add mmu data for iva and isp

2012-09-20 Thread Paul Walmsley
Hi On Wed, 12 Sep 2012, Omar Ramirez Luna wrote: > Add mmu hwmod data for iva and isp. > > Due to compatibility an ifdef CONFIG_OMAP_IOMMU_IVA2 needs to be > propagated (previously on iommu resource info) to hwmod data in OMAP3, > so users of iommu and tidspbridge can avoid issues of two

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

2012-09-20 Thread Eric W. Biederman
From: "Eric W. Biederman" Cc: Arve Hjønnevåg Cc: Greg Kroah-Hartman Acked-by: Serge Hallyn Signed-off-by: Eric W. Biederman --- drivers/staging/android/binder.c | 14 +++--- init/Kconfig |3 --- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git

[PATCH 10/14] userns: Convert s390 hypfs to use kuid and kgid where appropriate

2012-09-20 Thread Eric W. Biederman
From: "Eric W. Biederman" Cc: Martin Schwidefsky Cc: Heiko Carstens Signed-off-by: "Eric W. Biederman" --- arch/s390/hypfs/inode.c | 20 ++-- 1 files changed, 14 insertions(+), 6 deletions(-) diff --git a/arch/s390/hypfs/inode.c b/arch/s390/hypfs/inode.c index

[PATCH 08/14] userns: Teach security_path_chown to take kuids and kgids

2012-09-20 Thread Eric W. Biederman
From: "Eric W. Biederman" Don't make the security modules deal with raw user space uid and gids instead pass in a kuid_t and a kgid_t so that security modules only have to deal with internal kernel uids and gids. Cc: Al Viro Cc: James Morris Cc: John Johansen Cc: Kentaro Takeda Cc: Tetsuo

[PATCH 04/14] userns: Convert selinux to use kuid and kgid where appropriate

2012-09-20 Thread Eric W. Biederman
From: "Eric W. Biederman" Cc: Stephen Smalley Cc: James Morris Cc: Eric Paris Signed-off-by: "Eric W. Biederman" --- security/selinux/selinuxfs.c |6 +++--- security/selinux/ss/services.c |2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH 05/14] userns: Convert hostfs to use kuid and kgid where appropriate

2012-09-20 Thread Eric W. Biederman
From: "Eric W. Biederman" Cc: Jeff Dike Cc: Richard Weinberger Acked-by: Serge Hallyn Signed-off-by: Eric W. Biederman --- fs/hostfs/hostfs_kern.c |8 init/Kconfig|2 -- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/fs/hostfs/hostfs_kern.c

[PATCH 03/14] userns: Convert tomoyo to use kuid and kgid where appropriate

2012-09-20 Thread Eric W. Biederman
From: "Eric W. Biederman" Acked-by: Tetsuo Handa Acked-by: Serge Hallyn Signed-off-by: Eric W. Biederman --- init/Kconfig|3 --- security/tomoyo/audit.c | 23 --- security/tomoyo/common.c|4 +++- security/tomoyo/common.h|4 ++--

[PATCH 02/14] userns: Convert apparmor to use kuid and kgid where appropriate

2012-09-20 Thread Eric W. Biederman
From: "Eric W. Biederman" Cc: John Johansen Acked-by: Serge Hallyn Signed-off-by: Eric W. Biederman --- init/Kconfig |1 - security/apparmor/domain.c|4 ++-- security/apparmor/file.c | 12 +++- security/apparmor/include/audit.h |2

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

2012-09-20 Thread Eric W. Biederman
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 changed, 3 insertions(+), 4 deletions(-) diff --git

  1   2   3   4   5   6   7   8   9   10   >