Re: [patch v6 6/8] sched: compute runnable load avg in cpu_load and cpu_avg_load_per_task

2013-05-15 Thread Alex Shi
On 05/16/2013 01:49 PM, Michael Wang wrote: > On 05/14/2013 03:27 PM, Alex Shi wrote: > [snip] >> > } >> > diff --git a/kernel/sched/proc.c b/kernel/sched/proc.c > This patch seems to be based on 3.10-rc1, while below one > > [patch v6 3/8] sched: set initial value of runnable avg for new forked

[PATCH] ARM: davinci: dma: Convert to devm_* api

2013-05-15 Thread Lad Prabhakar
From: Lad, Prabhakar Use devm_ioremap_resource instead of reques_mem_region()/ioremap() and devm_request_irq() instead of request_irq(). This ensures more consistent error values and simplifies error paths. Signed-off-by: Lad, Prabhakar --- NOte:- Boot tested on Logic-PD OMAP-L138 EVM arch/

[PATCH v3] clocksource: add MVF600 pit timer support

2013-05-15 Thread Jingchang Lu
Add Freescale Vybrid MVF600 period interrupt timer support. Signed-off-by: Jingchang Lu --- v3: move the pit driver to drivers/clocksource. drivers/clocksource/Kconfig| 5 + drivers/clocksource/Makefile | 1 + drivers/clocksource/mvf600_pit_timer.c | 224

Re: [PATCH 35/39] dmaengine: ste_dma40_ll: Replace meaningless register set with comment

2013-05-15 Thread Lee Jones
> > Unsure of the author's intentions, rather than just removing the nop, > > we're replacing it with a comment containing the possible intention > > of the statement OR:ing with 0. > Would be worthwhile to check w/ Linus W on this (or check whom to blame) I did already. It was his idea to place t

Re: [PATCH 12/39] crypto: ux500/hash - Prepare clock before enabling it

2013-05-15 Thread Lee Jones
On Wed, 15 May 2013, Linus Walleij wrote: > On Wed, May 15, 2013 at 11:51 AM, Lee Jones wrote: > > > If we fail to prepare the ux500-hash clock before enabling it the > > platform will fail to boot. Here we insure this happens. > > > > Cc: Herbert Xu > > Cc: David S. Miller > > Cc: Andreas Wes

Re: [PATCH] vhost-scsi: Depend on NET for memcpy_fromiovec

2013-05-15 Thread Michael S. Tsirkin
On Wed, May 15, 2013 at 08:10:55PM -0700, David Miller wrote: > From: Rusty Russell > Date: Thu, 16 May 2013 09:05:38 +0930 > > > memcpy_fromiovec() has nothing to do with networking: that was just the > > first user. Note that crypto/algif_skcipher.c also uses it. The > > obvious answer is to

BUG: tty: memory corruption through tty_release/tty_ldisc_release

2013-05-15 Thread Alexander Holler
Hello, after some pain because the "big step" (ecbbfd4) happened while the support for my AMD CPU was broken and thus git bisect hit a series of kernels which didn't boot, I've finally found the cause for a memory corruption: tty_ldisc_release(). What happens is the following: tty_port is s

Re: [PATCH 39/39] dmaengine: ste_dma40: Fetch disabled channels from DT

2013-05-15 Thread Vinod Koul
On Wed, May 15, 2013 at 10:52:02AM +0100, Lee Jones wrote: > Some platforms have channels which are not available for normal use. > This information is currently passed though platform data in internal > BSP kernels. Once those platforms land, they'll need to configure them > appropriately, so we m

Re: [PATCH] ASoC: max98090: add digital mic mux to record path

2013-05-15 Thread Andrew Bresticker
Hi Matthew, > Default Routing: > > Of note (software can confirm) I believe the default DAPM routing for the > driver was intentional setup such that : > > Record: > > o If a headset MIC is present, record from it. > > o If not, digital MIC is the default record input. While this may have bee

Re: [PATCH] vhost-scsi: Depend on NET for memcpy_fromiovec

2013-05-15 Thread Michael S. Tsirkin
On Wed, May 15, 2013 at 03:37:30PM -0700, Nicholas A. Bellinger wrote: > On Wed, 2013-05-15 at 14:47 +0930, Rusty Russell wrote: > > Asias He writes: > > > scsi.c includes vhost.c which uses memcpy_fromiovec. > > > > > > This patch fixes this build failure. > > > > > >From Randy Dunlap: > > >

Re: [PATCH 6/7] PCI: Make sure VF's driver get attached after PF's

2013-05-15 Thread Michael S. Tsirkin
On Mon, May 13, 2013 at 07:28:25PM -0700, Yinghai Lu wrote: > Found kernel try to load mlx4 drivers for VFs before > PF's is really loaded when the drivers are built-in, and kernel > command line include probe_vfs=63, num_vfs=63. > > It turns that it also happen for hotadd path even drivers are >

Re: [PATCH] vhost-scsi: Depend on NET for memcpy_fromiovec

2013-05-15 Thread Michael S. Tsirkin
On Thu, May 16, 2013 at 01:04:58PM +0930, Rusty Russell wrote: > Asias He writes: > > On Wed, May 15, 2013 at 02:47:53PM +0930, Rusty Russell wrote: > >> Asias He writes: > >> > scsi.c includes vhost.c which uses memcpy_fromiovec. > >> > > >> > This patch fixes this build failure. > >> > > >> >

[PATCH] print sysfs attribute name when warning about bogus permissions

2013-05-15 Thread dyoung
Make it obvious to see what attribute is using bogus permissions. Signed-off-by: Dave Young Acked-by: Felipe Balbi --- drivers/base/core.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) --- linux-2.6.orig/drivers/base/core.c +++ linux-2.6/drivers/base/core.c @@ -572,9 +572,11

Re: [patch v6 3/8] sched: set initial value of runnable avg for new forked task

2013-05-15 Thread Alex Shi
On 05/10/2013 11:17 PM, Alex Shi wrote: > We need initialize the se.avg.{decay_count, load_avg_contrib} for a > new forked task. > Otherwise random values of above variables cause mess when do new task > enqueue: > enqueue_task_fair > enqueue_entity > enqueue_entity_load_avg

Re: Mount failure due to restricted access to a point along the mount path

2013-05-15 Thread Pavel Shilovsky
2013/5/14 Jeff Layton : > On Fri, 10 May 2013 10:27:54 -0400 > Jeff Layton wrote: > >> On Fri, 10 May 2013 16:13:30 +0200 >> Miklos Szeredi wrote: >> >> > Hi, >> > >> > A while ago this was discussed: >> > >> > http://thread.gmane.org/gmane.linux.kernel.cifs/7779 >> > >> > This is essentially a

Re: [PATCH] cpufreq: fix governor start/stop race condition

2013-05-15 Thread Xiaoguang Chen
On 05/13/2013 06:47 PM, Xiaoguang Chen wrote: cpufreq governor stop and start should be kept in sequence. If not, there will be unexpected behavior, for example: we have 4 cpus and policy->cpu=cpu0, cpu1/2/3 are linked to cpu0. the normal sequence is as below: 1) Current governor is userspace,

Re: linux-next: manual merge of the renesas tree with Linus' tree

2013-05-15 Thread Stephen Rothwell
Hi Simon, On Thu, 16 May 2013 14:04:53 +0900 Simon Horman wrote: > > Sorry about that. I am working on re-basing my branches on > top of v3.10-rc1 and I have confirmed that in my current local > branches the problem you describe is no longer present. > I plan to push the refreshed branches, inclu

Re: [PATCH v6 2/8] vmcore: allocate buffer for ELF headers on page-size alignment

2013-05-15 Thread Zhang Yanfei
于 2013年05月15日 17:05, HATAYAMA Daisuke 写道: > Allocate ELF headers on page-size boundary using __get_free_pages() > instead of kmalloc(). > > Later patch will merge PT_NOTE entries into a single unique one and > decrease the buffer size actually used. Keep original buffer size in > variable elfcoreb

Re: [PATCH v6 3/8] vmcore: treat memory chunks referenced by PT_LOAD program header entries in page-size boundary in vmcore_list

2013-05-15 Thread Zhang Yanfei
于 2013年05月15日 17:05, HATAYAMA Daisuke 写道: > Treat memory chunks referenced by PT_LOAD program header entries in > page-size boundary in vmcore_list. Formally, for each range [start, > end], we set up the corresponding vmcore object in vmcore_list to > [rounddown(start, PAGE_SIZE), roundup(end, PAGE

Re: [PATCH 35/39] dmaengine: ste_dma40_ll: Replace meaningless register set with comment

2013-05-15 Thread Vinod Koul
On Wed, May 15, 2013 at 10:51:58AM +0100, Lee Jones wrote: > Unsure of the author's intentions, rather than just removing the nop, > we're replacing it with a comment containing the possible intention > of the statement OR:ing with 0. Would be worthwhile to check w/ Linus W on this (or check whom t

Re: [PATCH 31/39] dmaengine: ste_dma40: Replace ST-E's home-brew DMA direction defs with generic ones

2013-05-15 Thread Vinod Koul
On Wed, May 15, 2013 at 10:51:54AM +0100, Lee Jones wrote: > STEDMA40_*_TO_* direction definitions are identical in all but name to > the pre-defined generic DMA_*_TO_* ones. Let's make things easy by not > duplicating such things. > > Cc: Vinod Koul > Cc: Dan Williams > Cc: Per Forlin > Cc: Ra

Re: [PATCH] ALSA: hda - add PCI IDs for Intel BayTrail

2013-05-15 Thread Takashi Iwai
At Thu, 16 May 2013 13:27:18 +0800, Chew Chiau Ee wrote: > > From: Chew, Chiau Ee > > Add HD Audio Device PCI ID for the Intel BayTrail platform. It's rather the successor of Oaktrail & co, right? Then put after Oaktrail entry, please. thanks, Takashi > Signed-off-by: Chew, Chiau Ee > Sign

Re: [PATCH V2 1/2] mm: hotplug: implement non-movable version of get_user_pages() called get_user_pages_non_movable()

2013-05-15 Thread Tang Chen
Hi Mel, On 05/15/2013 09:24 PM, Mel Gorman wrote: If it is to be an address space operations sturcture then you'll need a pseudo mapping structure for anonymous pages that are pinned by aio -- similar in principal to how swapper_space is used for managing PageSwapCache or how anon_vma structures

Re: [patch v6 6/8] sched: compute runnable load avg in cpu_load and cpu_avg_load_per_task

2013-05-15 Thread Michael Wang
Hi, Alex On 05/14/2013 03:27 PM, Alex Shi wrote: [snip] > } > diff --git a/kernel/sched/proc.c b/kernel/sched/proc.c This patch seems to be based on 3.10-rc1, while below one [patch v6 3/8] sched: set initial value of runnable avg for new forked task is conflict with 3.10-rc1... I think it may

Re: [PATCH 33/39] dmaengine: ste_dma40_ll: Use the BIT macro to replace ugly '(1 << x)'s

2013-05-15 Thread Vinod Koul
On Wed, May 15, 2013 at 10:51:56AM +0100, Lee Jones wrote: > The aim is to make the code that little more readable. > > Cc: Vinod Koul > Cc: Dan Williams > Cc: Per Forlin > Cc: Rabin Vincent > Signed-off-by: Lee Jones Acked-by: Vinod Koul Hopefully all the BIT conversion in the driver are d

Re: [PATCH 36/39] dmaengine: ste_dma40: Allow memcpy channels to be configured from DT

2013-05-15 Thread Vinod Koul
On Wed, May 15, 2013 at 10:51:59AM +0100, Lee Jones wrote: > At this moment in time the memcpy channels which can be used by the D40 > are fixed, as each supported platform in Mainline uses the same ones. > However, platforms do exist which don't follow this convention, so > these will need to be t

Re: [PATCH] Reset PCIe devices to stop ongoing DMA

2013-05-15 Thread Takao Indoh
(2013/05/16 1:59), Sumner, William wrote: > Thank you for sending the 2-line addition to your patch that helps me test > the suggestions in the PCIe standard. > > I started with a new Linux top-of-tree as of last week, added the patch from > late April, added these new lines of code, then tested

[PATCH 2/2] lcd: add devm_lcd_device_{register,unregister}()

2013-05-15 Thread Jingoo Han
These functions allow the driver core to automatically clean up any allocation made by lcd drivers. Thus it simplifies the error paths. Signed-off-by: Jingoo Han --- drivers/video/backlight/lcd.c | 70 + include/linux/lcd.h |5 +++ 2 files

[PATCH] ALSA: hda - add PCI IDs for Intel BayTrail

2013-05-15 Thread Chew Chiau Ee
From: Chew, Chiau Ee Add HD Audio Device PCI ID for the Intel BayTrail platform. Signed-off-by: Chew, Chiau Ee Signed-off-by: Artem Bityutskiy --- sound/pci/hda/hda_intel.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda

[PATCH 1/2] backlight: add devm_backlight_device_{register,unregister}()

2013-05-15 Thread Jingoo Han
These functions allow the driver core to automatically clean up any allocation made by backlight drivers. Thus it simplifies the error paths. Signed-off-by: Jingoo Han --- drivers/video/backlight/backlight.c | 75 +++ include/linux/backlight.h |6 +

[PATCH] jfs: Functions jfs_freeze() and jfs_unfreeze() always return 0

2013-05-15 Thread Vahram Martirosyan
The mentioned functions do not pay attention to the error codes returned by the functions updateSuper(), lmLogInit() and lmLogShutdown(). It brings to system crash later when writing to log. The patch adds corresponding code to check and return the error codes and to print correct error messages i

[PATCH] spi: coldfire-qspi: fix error return code in mcfqspi_probe()

2013-05-15 Thread Wei Yongjun
From: Wei Yongjun If pdev->dev.platform_data is not set, mcfqspi_probe() will return 0 and release all the resources, in this case, we should return a error code instead of 0. This patch fix to return -ENOENT in this case and move the check for pdev->dev.platform_data to the begin of this functio

[PATCH 3/3] cpufreq: Drop rwsem lock around CPUFREQ_GOV_POLICY_EXIT

2013-05-15 Thread Viresh Kumar
With this lock around __cpufreq_governor(policy, CPUFREQ_GOV_POLICY_EXIT), we get circular dependency when we call sysfs_remove_group(). [ 195.319079] == [ 195.337653] [ INFO: possible circular locking dependency detected ] [ 195.356497] 3.9.0

[PATCH 2/3] cpufreq: governors: Move get_governor_parent_kobj() to cpufreq.c

2013-05-15 Thread Viresh Kumar
get_governor_parent_kobj() can be used by any governor, generic cpufreq governors or platform specific ones and so must be present in cpufreq.c instead of cpufreq_governor.c. This patch moves it to cpufreq.c. This also adds EXPORT_SYMBOL_GPL(get_governor_parent_kobj) so that modules can use this f

[PATCH 1/3] cpufreq: Add EXPORT_SYMBOL_GPL for have_governor_per_policy

2013-05-15 Thread Viresh Kumar
This patch adds: EXPORT_SYMBOL_GPL(have_governor_per_policy), so that this routine can be used by modules too. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index b7acfd1..21a7fb

[PATCH 0/3] CPUFreq Fixes for 3.10-rc2

2013-05-15 Thread Viresh Kumar
Hi Rafael, Here are few more fixes for 3.10-rc2. Viresh Kumar (3): cpufreq: Add EXPORT_SYMBOL_GPL for have_governor_per_policy cpufreq: governors: Move get_governor_parent_kobj() to cpufreq.c cpufreq: Drop rwsem lock around CPUFREQ_GOV_POLICY_EXIT drivers/cpufreq/cpufreq.c | 19 +

linux-next: Tree for May 16

2013-05-15 Thread Stephen Rothwell
Hi all, Changes since 20130515: New tree: mvebu The renesas tree gained a conflict against Linus' tree. The akpm tree lost a patch that turned up elsewhere. I have created today's linux-next t

[PATCH v5 fix] mtd: gpmi: set the BCH's geometry with the ecc info

2013-05-15 Thread Huang Shijie
If the nand chip provides us the ECC info, we can use it firstly. The set_geometry_by_ecc_info() will use the ECC info, and calculate the parameters we need. Rename the old code to legacy_set_geometry() which will takes effect when there is no ECC info from the nand chip or we fails in the ECC inf

Re: linux-next: manual merge of the renesas tree with Linus' tree

2013-05-15 Thread Simon Horman
On Thu, May 16, 2013 at 01:22:53PM +1000, Stephen Rothwell wrote: > Hi Simon, > > Today's linux-next merge of the renesas tree got a conflict in > arch/arm/mach-shmobile/board-lager.c between commit 65be2de17aae ("ARM: > shmobile: use r8a7790 timer setup code on Lager") from Linus' tree and > comm

[PATCH v5 fix] mtd: get the ECC info from the Extended Parameter Page

2013-05-15 Thread Huang Shijie
Since the ONFI 2.1, the onfi spec adds the Extended Parameter Page to store the ECC info. The onfi spec tells us that if the nand chip's recommended ECC codeword size is not 512 bytes, then the @ecc_bits is 0xff. The host _SHOULD_ then read the Extended ECC information that is part of the extended

Re: [PATCH 6/7] PCI: Make sure VF's driver get attached after PF's

2013-05-15 Thread Or Gerlitz
On Thu, May 16, 2013 at 12:39 AM, Yinghai Lu wrote: > > On Wed, May 15, 2013 at 9:00 PM, Or Gerlitz wrote: > > On Tue, May 14, 2013 at 11:43 AM, Yinghai Lu wrote: > > > >> BTW, do you have any plan to make mlx4 support sriov_configure via > >> sysfs? > > > > yes we do, we're waiting for a firmwa

Re: [PATCH RFC] media: OF: add field-active and sync-on-green endpoint properties

2013-05-15 Thread Prabhakar Lad
Hi Laurent, On Wed, May 15, 2013 at 6:54 PM, Laurent Pinchart wrote: > Hi Prabhakar, > > Thank you for the patch. > > On Wednesday 15 May 2013 18:22:29 Lad Prabhakar wrote: >> From: Lad, Prabhakar >> >> This patch adds "field-active" and "sync-on-green" as part of >> endpoint properties and also

Investigating lockups on Pentium D/SiS 661FX?

2013-05-15 Thread Mikhail Ramendik
Hello, I have a SiS 661FX motherboard, which was perfectly stable with a Pentium 4 CPU (with HT). But since I installed a Pentium D (no HT), the system started to lock up several times a day. The system works fine under load tests under Windows. I have moved all processes to core 0 using /dev/cpu

Re: [PATCH] kernel/workqueue.c: need call device_remove_file() when failure occurs after called device_create_file()

2013-05-15 Thread Chen Gang
On 05/16/2013 12:16 PM, Chen Gang wrote: > On 05/16/2013 11:33 AM, Chen Gang wrote: >> On 05/16/2013 05:22 AM, Tejun Heo wrote: >>> On Wed, May 15, 2013 at 02:13:14PM +0800, Chen Gang wrote: In workqueue_sysfs_register(), when failure occurs after called device_create_file(), need ca

[PATCH v2 append] mtd: update the ABI document about the ecc step

2013-05-15 Thread Huang Shijie
We add a new sys node for ecc step. So update the ABI document about it. Signed-off-by: Huang Shijie --- Documentation/ABI/testing/sysfs-class-mtd | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/Documentation/ABI/testing/sysfs-class-mtd b/Documentation/ABI/te

Re: [PATCH 6/7] PCI: Make sure VF's driver get attached after PF's

2013-05-15 Thread Yinghai Lu
On Wed, May 15, 2013 at 9:00 PM, Or Gerlitz wrote: > On Tue, May 14, 2013 at 11:43 AM, Yinghai Lu wrote: > >> BTW, do you have any plan to make mlx4 support sriov_configure via sysfs? > > yes we do, we're waiting for a firmware change that will allow for > such a patch to get working. > > Please

Re: [PATCH] vhost-scsi: Depend on NET for memcpy_fromiovec

2013-05-15 Thread Asias He
On Thu, May 16, 2013 at 01:04:58PM +0930, Rusty Russell wrote: > Asias He writes: > > On Wed, May 15, 2013 at 02:47:53PM +0930, Rusty Russell wrote: > >> Asias He writes: > >> > scsi.c includes vhost.c which uses memcpy_fromiovec. > >> > > >> > This patch fixes this build failure. > >> > > >> >

Re: [PATCH v2 1/2] clk: Disable unused clocks after deferred probing is done

2013-05-15 Thread Saravana Kannan
On 05/09/2013 11:35 AM, Saravana Kannan wrote: With deferred probing, late_initcall() is too soon to declare a clock as unused. Wait for deferred probing to finish before declaring a clock as unused. Since deferred probing is done in late_initcall(), do the unused check to late_initcall_sync. Si

Re: [PATCH RFC] clk: Introduce userspace clock driver

2013-05-15 Thread Saravana Kannan
On 05/14/2013 09:46 PM, Mark Brown wrote: On Tue, May 14, 2013 at 02:09:47PM -0400, Philip Balister wrote: First of all, the driver that loads the bitstream into the fpga fabric does not know ANYTHING about what the bitstream does. So it cannot do any setup based on the contents of the file tha

Re: [PATCH RFC] clk: Introduce userspace clock driver

2013-05-15 Thread Saravana Kannan
On 05/11/2013 07:21 AM, Mark Brown wrote: On Fri, May 10, 2013 at 04:01:25PM -0700, Saravana Kannan wrote: On 05/10/2013 03:18 PM, Mike Turquette wrote: Guys please delete irrelevant context from replies... One way to do it is to introduce a new config option, CONFIG_COMMON_CLK_DEBUG_CONTROL

Re: [PATCH] kernel/workqueue.c: need call device_remove_file() when failure occurs after called device_create_file()

2013-05-15 Thread Chen Gang
On 05/16/2013 11:33 AM, Chen Gang wrote: > On 05/16/2013 05:22 AM, Tejun Heo wrote: >> On Wed, May 15, 2013 at 02:13:14PM +0800, Chen Gang wrote: >>> >>> In workqueue_sysfs_register(), when failure occurs after called >>> device_create_file(), need call device_remove_file() to release the >>> relat

Re: [PATCH] clk: Fix race condition between clk_set_parent and clk_enable()

2013-05-15 Thread Saravana Kannan
On 05/15/2013 12:24 PM, Ulf Hansson wrote: On 1 May 2013 06:42, Saravana Kannan wrote: - /* migrate prepare */ - if (clk->prepare_count) + /* +* Migrate prepare state between parents and prevent race with +* clk_enable(). +* +* If the clock

Re: [PATCH v2 0/3] clk: implement remuxing during set_rate

2013-05-15 Thread Saravana Kannan
On 04/19/2013 09:28 AM, James Hogan wrote: This patchset adds support for automatic selection of the best parent for a clock mux, i.e. the one which can provide the closest clock rate to that requested. It can be controlled by a new CLK_SET_RATE_REMUX flag so that it doesn't happen unless explici

[PATCH] spi: ep93xx: fix error return code in ep93xx_spi_probe()

2013-05-15 Thread Wei Yongjun
From: Wei Yongjun Fix to return -ENOMEM in the workqueue create error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun --- drivers/spi/spi-ep93xx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spi-ep93xx.c b/drivers/spi/spi-ep93xx.c

[PATCH v2] clk: Fix race condition between clk_set_parent and clk_enable()

2013-05-15 Thread Saravana Kannan
Without this patch, the following race condition is possible. * clk-A has two parents - clk-X and clk-Y. * All three are disabled and clk-X is current parent. * Thread A: clk_set_parent(clk-A, clk-Y). * Thread A: * Thread A: Grabs enable lock. * Thread A: Sees enable count of clk-A is 0, so doesn'

[PATCH v2 2/2] acer-wmi: add Acer Aspire 5750G to video vendor list but keep acpi video driver

2013-05-15 Thread Lee, Chun-Yi
After Andrzej's testing, we found the acpi backlight methods broken on Acer Aspire 5750G but the i915 backlight control works when we set to vendor mode. And, we still want to keep the acpi/video driver for transfer acpi event to key event but not unregister whole acpi/video driver. This patch int

[PATCH v2 1/2] acpi: video: add function to support unregister backlight interface

2013-05-15 Thread Lee, Chun-Yi
There have some situation we unregister whole acpi/video driver by downstream driver just want to remove backlight control interface of acpi/video. It caues we lost other functions of acpi/video, e.g. transfer acpi event to input event. So, this patch add a new function, find_video_unregister_back

Re: [PATCH 2/6] Drivers: hv: Add the GUID fot synthetic fiber channel device

2013-05-15 Thread Greg KH
On Wed, May 15, 2013 at 03:02:30PM -0700, K. Y. Srinivasan wrote: > In preparation for supporting synthetic Fiber Channel device, add the GUID for > this service. > > Signed-off-by: K. Y. Srinivasan > Reviewed-by: Haiyang Zhang > --- > include/linux/hyperv.h | 10 ++ > 1 files changed

Re: [PATCH 1/6] Drivers: hv: vmbus: Implement multi-channel support

2013-05-15 Thread Greg KH
On Wed, May 15, 2013 at 03:02:29PM -0700, K. Y. Srinivasan wrote: > +/* > + * Retrieve the (sub) channel on which to send an outgoing request. > + * When a primary channel has multiple sub-channels, we choose a > + * channel whose VCPU binding is closest to the VCPU on which > + * this call is bein

Re: [PATCH 6/7] PCI: Make sure VF's driver get attached after PF's

2013-05-15 Thread Or Gerlitz
On Tue, May 14, 2013 at 11:43 AM, Yinghai Lu wrote: > BTW, do you have any plan to make mlx4 support sriov_configure via sysfs? yes we do, we're waiting for a firmware change that will allow for such a patch to get working. Please note that this whole lockdep warning was identified as false pos

Re: [PATCH 0/6] Drivers: hv/scsi: Implement multi-channel support

2013-05-15 Thread Greg KH
On Wed, May 15, 2013 at 03:02:00PM -0700, K. Y. Srinivasan wrote: > This patch-set implements multi-channel support for Hyper-V devices. Also > support for synthetic Fiber Channel device is included. The first two > patches in the series are the foundational pieces for the remaining patches. > > J

Re: linux-next: Tree for May 15 (crypto /crct10dif)

2013-05-15 Thread Xiong Zhou
On Wed, 15 May 2013, Randy Dunlap wrote: > On 05/14/13 20:26, Stephen Rothwell wrote: > > Hi all, > > > > Changes since 20130514: > > > > on x86_64: > > crypto/built-in.o: In function `chksum_digest': > crct10dif.c:(.text+0x2789f): undefined reference to `crc_t10dif_generic' > crypto/built-i

Re: [PATCH] vhost-scsi: Depend on NET for memcpy_fromiovec

2013-05-15 Thread Joe Perches
On Thu, 2013-05-16 at 13:04 +0930, Rusty Russell wrote: > Asias He writes: > > On Wed, May 15, 2013 at 02:47:53PM +0930, Rusty Russell wrote: [] > > Other users are using memcpy_fromiovec and friends outside net. It seems > > a good idea to put it in a util library. e.g. crypto/algif_skcipher.c >

Re: PROBLEM: modprobe hang at startup (3.8.x, 3.9.x, IBM x3550)

2013-05-15 Thread Robert Norris
On Wed, May 15, 2013 at 09:49:23PM +0200, Jean Delvare wrote: > > Interrupt: pin B routed to IRQ 0 > > Hmm, this "IRQ 0" is quite odd. I'm wondering if this could be the > reason for this hang. Was it with the i2c-i801 driver loaded, or > blacklisted? Please check if it makes a difference. Th

[PATCH v2] mm, slab: moved kmem_cache_alloc_node comment to correct place

2013-05-15 Thread sanweidaying
From: Zhouping Liu After several fixing about kmem_cache_alloc_node(), its comment was splitted. This patch moved it on top of kmem_cache_alloc_node() definition. Signed-off-by: Zhouping Liu --- mm/slab.c | 23 +++ 1 file changed, 11 insertions(+), 12 deletions(-) diff --g

Re: [PATCH] vhost-scsi: Depend on NET for memcpy_fromiovec

2013-05-15 Thread Rusty Russell
Asias He writes: > On Wed, May 15, 2013 at 02:47:53PM +0930, Rusty Russell wrote: >> Asias He writes: >> > scsi.c includes vhost.c which uses memcpy_fromiovec. >> > >> > This patch fixes this build failure. >> > >> >From Randy Dunlap: >> >''' >> >on x86_64: >> > >> >ERROR: "memcpy

Re: [PATCH] kernel/workqueue.c: need call device_remove_file() when failure occurs after called device_create_file()

2013-05-15 Thread Chen Gang
On 05/16/2013 05:22 AM, Tejun Heo wrote: > On Wed, May 15, 2013 at 02:13:14PM +0800, Chen Gang wrote: >> >> In workqueue_sysfs_register(), when failure occurs after called >> device_create_file(), need call device_remove_file() to release the >> related resources, then call device_unregister(). >>

Re: [PATCH] mm, slab: corrected the comment 'kmem_cache_alloc' to 'slab_alloc_node'

2013-05-15 Thread Zhouping Liu
On 05/16/2013 02:10 AM, Pekka Enberg wrote: On Wed, May 15, 2013 at 8:10 PM, Zhouping Liu wrote: From: Zhouping Liu commit 48356303ff(mm, slab: Rename __cache_alloc() -> slab_alloc()) forgot to update the comment 'kmem_cache_alloc' to 'slab_alloc_node'. Signed-off-by: Zhouping Liu --- mm/

linux-next: manual merge of the renesas tree with Linus' tree

2013-05-15 Thread Stephen Rothwell
Hi Simon, Today's linux-next merge of the renesas tree got a conflict in arch/arm/mach-shmobile/board-lager.c between commit 65be2de17aae ("ARM: shmobile: use r8a7790 timer setup code on Lager") from Linus' tree and commit 993340a1390d ("ARM: shmobile: use r8a7790 timer setup code on Lager") from

[PATCH v4 9/9] liblockdep: Add a MAINTAINERS entry

2013-05-15 Thread Sasha Levin
Signed-off-by: Sasha Levin --- MAINTAINERS | 5 + 1 file changed, 5 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 5f5c895..0c822ef 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4856,6 +4856,11 @@ F: drivers/lguest/ F: include/linux/lguest*.h F: tools/lguest/ +

[PATCH v4 3/9] liblockdep: Add public headers for pthread_mutex_t implementation

2013-05-15 Thread Sasha Levin
These headers provide the same API as their pthread mutex counterparts. The design here is to allow to easily switch to liblockdep lock validation just by adding a "liblockdep_" to pthread_mutex_*() calls, which means that it's easy to integrate liblockdep into existing codebases. Signed-off-by:

[PATCH v4 4/9] liblockdep: Add pthread_mutex_t test suite

2013-05-15 Thread Sasha Levin
This is a rather simple and basic test suite to test common locking issues. Beyond tests, it also shows how to use the library. Signed-off-by: Sasha Levin --- tools/lib/lockdep/run_tests.sh | 27 +++ tools/lib/lockdep/tests/AA.c | 13 +

[PATCH v4 8/9] liblockdep: Add the 'lockdep' user-space utility

2013-05-15 Thread Sasha Levin
This is a simple wrapper to make using liblockdep on existing applications much easier. After running 'make && make install', it becomes quite simple to test things with liblockdep. For example, to try it on perf: lockdep perf No other integration required. Signed-off-by: Sasha Levin C

[PATCH v4 5/9] liblockdep: Add public headers for pthread_rwlock_t implementation

2013-05-15 Thread Sasha Levin
Both pthreads and lockdep support dealing with rwlocks, so here's the liblockdep implementation for those. Signed-off-by: Sasha Levin --- tools/lib/lockdep/include/liblockdep/rwlock.h | 86 +++ 1 file changed, 86 insertions(+) create mode 100644 tools/lib/lockdep/include

[PATCH v4 7/9] liblockdep: Support using LD_PRELOAD

2013-05-15 Thread Sasha Levin
This allows lockdep to be used without being compiled in the original program. Usage is quite simple: LD_PRELOAD=/path/to/liblockdep.so /path/to/my/program And magically, you'll have lockdep checking in your program! Signed-off-by: Sasha Levin --- tools/lib/lockdep/preload.c | 447 +++

[PATCH v4 2/9] liblockdep: Wrap kernel/lockdep.c to allow usage from userspace

2013-05-15 Thread Sasha Levin
kernel/lockdep.c deals with validating locking scenarios for various architectures supported by the kernel. There isn't anything kernel specific going on in lockdep, and when we compare userspace to other architectures that don't have to deal with irqs such as s390, they become all too similar. We

[PATCH v4 0/9] liblockdep: userspace lockdep

2013-05-15 Thread Sasha Levin
liblockdep is a tiny wrapper built around kernel/lockdep.c. The aim is to provide the same functionality the kernel gets from lockdep to userspace. The bulk of the code here is the LD_PRELOAD support which provides users an easy way to test their code without having to integrate liblockdep into sa

[PATCH v4 6/9] liblockdep: Add pthread_rwlock_t test suite

2013-05-15 Thread Sasha Levin
A simple test to make sure we handle rwlocks correctly. Signed-off-by: Sasha Levin --- tools/lib/lockdep/tests/WW.c | 13 + 1 file changed, 13 insertions(+) create mode 100644 tools/lib/lockdep/tests/WW.c diff --git a/tools/lib/lockdep/tests/WW.c b/tools/lib/lockdep/tests/WW.c new

[PATCH v4 1/9] lockdep: Be nice about building from userspace

2013-05-15 Thread Sasha Levin
Lockdep is an awesome piece of code which detects locking issues which are relevant both to userspace and kernelspace. We can easily make lockdep work in userspace since there is really no kernel spacific magic going on in the code. All we need is to wrap two functions which are used by lockdep an

Re: [PATCH] vhost-scsi: Depend on NET for memcpy_fromiovec

2013-05-15 Thread David Miller
From: Rusty Russell Date: Thu, 16 May 2013 09:05:38 +0930 > memcpy_fromiovec() has nothing to do with networking: that was just the > first user. Note that crypto/algif_skcipher.c also uses it. The > obvious answer is to move it into lib/. +1 -- To unsubscribe from this list: send the line "un

Re: [PATCH] Staging: add USB MTK bluetooth driver

2013-05-15 Thread AL Yu-Chen Cho
Hi Greg, On 二, 2013-05-14 at 15:27 -0400, Greg KH wrote: > On Thu, May 02, 2013 at 06:27:16PM +0800, Cho, Yu-Chen wrote: > > diff --git a/drivers/staging/Makefile b/drivers/staging/Makefile > > index fa41b04..e33cfe0 100644 > > --- a/drivers/staging/Makefile > > +++ b/drivers/staging/Makefile > >

Re: [PATCH 03/15] perf util: Save pid-cmdline mapping into tracing header

2013-05-15 Thread Namhyung Kim
On Wed, 15 May 2013 23:21:24 +0200, Jiri Olsa wrote: > On Tue, May 14, 2013 at 07:13:47PM +0900, Namhyung Kim wrote: >> +void parse_saved_cmdline(struct pevent *pevent, >> + char *file, unsigned int size __maybe_unused) > > any reason for the size parameter? I can see some other

Re: [PATCH 10/15] perf ftrace: Add 'show' sub-command

2013-05-15 Thread Namhyung Kim
On Wed, 15 May 2013 23:21:08 +0200, Jiri Olsa wrote: > On Tue, May 14, 2013 at 07:13:54PM +0900, Namhyung Kim wrote: >> +static int process_sample_show(struct perf_tool *tool, >> + union perf_event * event __maybe_unused, >> + struct perf_sample *

Re: [PATCH 09/15] perf ftrace: Add 'record' sub-command

2013-05-15 Thread Namhyung Kim
On Wed, 15 May 2013 23:21:39 +0200, Jiri Olsa wrote: > On Tue, May 14, 2013 at 07:13:53PM +0900, Namhyung Kim wrote: >> From: Namhyung Kim >> >> The ftrace record command is for saving raw ftrace buffer contents >> which can be get from per_cpu/cpuX/trace_pipe_raw. >> >> Since ftrace events are

Re: [RFC/PATCH 1/2] perf script: Add --time-filter option

2013-05-15 Thread David Ahern
On 5/15/13 7:56 PM, Namhyung Kim wrote: How about just --time? less typing. Thanks, I'm fine with '--time' too but '--time-filter' looks more yes, I just have really long command lines now. Is there a consistent single letter (X?)? obvious. What does the timehist command do, btw? ;) ta

Re: [PATCH 09/15] perf ftrace: Add 'record' sub-command

2013-05-15 Thread Namhyung Kim
On Wed, 15 May 2013 23:20:52 +0200, Jiri Olsa wrote: > On Tue, May 14, 2013 at 07:13:53PM +0900, Namhyung Kim wrote: >> +raw_data = synthesize_raw_data(evsel); >> +if (raw_data == NULL) { >> +pr_err("synthesizing raw sample failed\n"); >> +

Re: [RFC 2/4] dma: add dmaengine driver for Samsung s3c24xx SoCs

2013-05-15 Thread Jingoo Han
On Tuesday, May 14, 2013 11:22 PM Tomasz Figa wrote: > > Hi Linus, Heiko, > > On Tuesday 14 of May 2013 14:47:19 Linus Walleij wrote: > > On Sat, May 11, 2013 at 1:31 PM, Heiko St?bner wrote: > > > Conceptually the s3c24xx-dma feels like a distant relative of the pl08x > > > with numerous virtua

Re: [PATCH] vhost-scsi: Depend on NET for memcpy_fromiovec

2013-05-15 Thread Asias He
On Thu, May 16, 2013 at 09:05:38AM +0930, Rusty Russell wrote: > "Nicholas A. Bellinger" writes: > > On Wed, 2013-05-15 at 14:47 +0930, Rusty Russell wrote: > >> Asias He writes: > >> > scsi.c includes vhost.c which uses memcpy_fromiovec. > >> > > >> > This patch fixes this build failure. > >> >

Re: [PATCH v5 01/11] mtd: add datasheet's ECC information to nand_chip{}

2013-05-15 Thread Huang Shijie
于 2013年05月15日 20:11, Artem Bityutskiy 写道: On Wed, 2013-05-15 at 16:40 +0800, Huang Shijie wrote: + * @ecc_strength: [INTERN] ECC correctability from the datasheet. + * Minimum amount of bit errors per @ecc_step guaranteed to + * be correctable. If unk

Re: [PATCH 02/15] perf util: Use evsel->name to get tracepoint_paths

2013-05-15 Thread Namhyung Kim
Hi Jiri, On Wed, 15 May 2013 16:59:10 +0200, Jiri Olsa wrote: > On Tue, May 14, 2013 at 07:13:46PM +0900, Namhyung Kim wrote: >> diff --git a/tools/perf/util/trace-event-info.c >> b/tools/perf/util/trace-event-info.c >> index ab18bf12d54a..bfcaeac7ef9d 100644 >> --- a/tools/perf/util/trace-event-

Re: [PATCH] vhost-scsi: Depend on NET for memcpy_fromiovec

2013-05-15 Thread Asias He
On Wed, May 15, 2013 at 02:47:53PM +0930, Rusty Russell wrote: > Asias He writes: > > scsi.c includes vhost.c which uses memcpy_fromiovec. > > > > This patch fixes this build failure. > > > >From Randy Dunlap: > >''' > >on x86_64: > > > >ERROR: "memcpy_fromiovec" [drivers/vhost/vho

Re: [PATCH] kernel/workqueue.c: kfree issue, need check flag 'WQ_UNBOUND' when processing failure.

2013-05-15 Thread Chen Gang
On 05/16/2013 05:11 AM, Tejun Heo wrote: > On Wed, May 15, 2013 at 09:34:36AM +0800, Chen Gang wrote: >> On 05/14/2013 11:20 PM, Tejun Heo wrote: >>> On Tue, May 14, 2013 at 09:06:40PM +0800, Chen Gang wrote: err_destroy: destroy_workqueue(wq); + if (flags & WQ_UNBOUND) { +

Re: Re: [PATCH] futex: bugfix for futex-key conflict when futex use hugepage

2013-05-15 Thread zhang . yi20
Darren Hart wrote on 2013/05/16 09:30:31: > > pgoff_t is an unsigned long, and page_to_pfn() returns an unsigned long. > Since compound_idx can be assigned from page_to_pfn() and it is added > with index in the return value, unsigned long seems like a better choice > to me. Is there a specific

Re: [RFC/PATCH 1/2] perf script: Add --time-filter option

2013-05-15 Thread Namhyung Kim
Hi David, On Wed, 15 May 2013 09:16:55 -0600, David Ahern wrote: > On 5/15/13 3:23 AM, Namhyung Kim wrote: [SNIP] >> +--time-filter:: >> +Display samples within a range of time only. A time range can be given >> +like 'time1-time2' and treated as a start time and end time >> +respe

[PATCH] klist: del waiter from klist_remove_waiters before wakeup waitting process

2013-05-15 Thread wangbiao
From: "wang, biao" Date: Fri, 3 May 2013 14:18:34 +0800 Subject: [PATCH] klist: del waiter from klist_remove_waiters before wakeup waitting process There is a race between klist_remove and klist_release. klist_remove uses a local var waiter saved on stack. When klist_release calls wake_up_proces

Re: [PATCH] rtc: max8998: Check for pdata presence before dereferencing

2013-05-15 Thread 한진구
Thursday, May 16, 2013 12:16 AM, Tomasz Figa wrote: > > Currently the driver can crash with a NULL pointer dereference if no pdata > is provided, despite of successful registration of MFD part. This patch > fixes the problem by adding a NULL check before dereferencing the pdata > pointer. > > Sig

Re: [PATCH] vhost-scsi: Depend on NET for memcpy_fromiovec

2013-05-15 Thread Asias He
On Wed, May 15, 2013 at 03:37:30PM -0700, Nicholas A. Bellinger wrote: > On Wed, 2013-05-15 at 14:47 +0930, Rusty Russell wrote: > > Asias He writes: > > > scsi.c includes vhost.c which uses memcpy_fromiovec. > > > > > > This patch fixes this build failure. > > > > > >From Randy Dunlap: > > >

Re: [PATCH] futex: bugfix for futex-key conflict when futex use hugepage

2013-05-15 Thread Darren Hart
On 05/15/2013 06:16 PM, zhang.y...@zte.com.cn wrote: > > > Mel Gorman wrote on 2013/05/15 22:20:35: > > >> Re: [PATCH] futex: bugfix for futex-key conflict when futex use hugepage >> >> On Wed, May 15, 2013 at 09:57:03PM +0800, Zhang Yi wrote: >>> The futex-keys of processes share futex dete

[PATCH] cachefiles: remove unused macro list_to_page()

2013-05-15 Thread Haicheng Li
Signed-off-by: Haicheng Li --- fs/cachefiles/interface.c |2 -- 1 file changed, 2 deletions(-) diff --git a/fs/cachefiles/interface.c b/fs/cachefiles/interface.c index 746ce53..847ba6a 100644 --- a/fs/cachefiles/interface.c +++ b/fs/cachefiles/interface.c @@ -13,8 +13,6 @@ #include #inclu

Re: [PATCH 0/4] Rebase device_cgroup v2 patchset

2013-05-15 Thread Serge E. Hallyn
Quoting Serge E. Hallyn (se...@hallyn.com): > Quoting Eric W. Biederman (ebied...@xmission.com): > > Serge Hallyn writes: > > > > > Quoting Aristeu Rozanski (a...@redhat.com): > > >> On Tue, May 14, 2013 at 10:05:39AM -0500, Serge Hallyn wrote: > > >> > so now that the device cgroup properly resp

  1   2   3   4   5   6   7   >