Re: [PATCH v6 07/13] block: Avoid deadlocks with bio allocation by stacking drivers

2012-08-23 Thread Kent Overstreet
On Wed, Aug 22, 2012 at 01:30:03PM -0700, Tejun Heo wrote: > This description needs to be several times more descriptive than it > currently is. The deadlock issue at hand is very unobvious. Please > explain it so that someone who isn't familiar with the problem can > understand it by reading

Re: [alsa-devel] linux-next: Tree for Aug 23 (sound/isa/cmi)

2012-08-23 Thread Takashi Iwai
At Thu, 23 Aug 2012 09:56:34 -0700, Randy Dunlap wrote: > > On 08/22/2012 10:22 PM, Stephen Rothwell wrote: > > > Hi all, > > > > Changes since 20120822: > > > > > > on i386: > > CC sound/isa/cmi8328.o > sound/isa/cmi8328.c: In function 'snd_cmi8328_remove': >

Re: [PATCH v2] staging: r8712u: rtl871x_mlme.c: use is_zero_ether_addr() instead of memcmp()

2012-08-23 Thread Larry Finger
On 08/24/2012 12:29 AM, Wei Yongjun wrote: From: Wei Yongjun Using is_zero_ether_addr() instead of directly use memcmp() to determine if the ethernet address is all zeros. spatch with a semantic match is used to found this problem. (http://coccinelle.lip6.fr/) Signed-off-by: Wei Yongjun ---

Re: [PATCH v2] net: add new QCA alx ethernet driver

2012-08-23 Thread Luis R. Rodriguez
On Fri, Aug 24, 2012 at 8:32 AM, Luis R. Rodriguez wrote: > It would be useful for you to describe the exact functionality, > perhaps in a separate thread or maybe even just RFC patches which you > have to be simply ready for may just be just that -- RFC patches which > we flush down the v2

[PATCH v2] staging: r8712u: rtl871x_mlme.c: use is_zero_ether_addr() instead of memcmp()

2012-08-23 Thread Wei Yongjun
From: Wei Yongjun Using is_zero_ether_addr() instead of directly use memcmp() to determine if the ethernet address is all zeros. spatch with a semantic match is used to found this problem. (http://coccinelle.lip6.fr/) Signed-off-by: Wei Yongjun --- drivers/staging/rtl8712/rtl871x_mlme.c | 5

Re: [PATCH v2 09/11] memcg: propagate kmem limiting information to children

2012-08-23 Thread Glauber Costa
On 08/24/2012 09:06 AM, Greg Thelen wrote: > On Thu, Aug 23 2012, Glauber Costa wrote: > >> On 08/23/2012 03:23 AM, Greg Thelen wrote: >>> On Wed, Aug 22 2012, Glauber Costa wrote: >>> >>> >>> I am fine with either, I just need a clear sign from you guys so I don't >>> keep

Re: [PATCH can-next v6] can: add tx/rx LED trigger support

2012-08-23 Thread Kurt Van Dijck
Hello, I find the CAN led triggers an interesting thing. And then, this scenario fell crossed my mind: Imagine I do: [insert CAN device: can0] $ ip link set can0 name helga [insert another CAN device: again 'can0'] Registering 'can0-tx' led trigger will fail for the second CAN device, since

Re: [PATCH v6 05/13] block: Kill bi_destructor

2012-08-23 Thread Kent Overstreet
On Wed, Aug 22, 2012 at 01:00:32PM -0700, Tejun Heo wrote: > Hello, > > On Wed, Aug 22, 2012 at 10:04:02AM -0700, Kent Overstreet wrote: > > +#define BIO_KMALLOC_POOL NULL > > I would much prefer just doing > > if (!bs) { > /* do kmalloc/kfree thing */ > } else { >

Re: [PATCH v2 09/11] memcg: propagate kmem limiting information to children

2012-08-23 Thread Greg Thelen
On Thu, Aug 23 2012, Glauber Costa wrote: > On 08/23/2012 03:23 AM, Greg Thelen wrote: >> On Wed, Aug 22 2012, Glauber Costa wrote: >> >> >> I am fine with either, I just need a clear sign from you guys so I don't >> keep deimplementing and reimplementing this forever. > > I

Re: [PATCH v6 06/13] block: Consolidate bio_alloc_bioset(), bio_kmalloc()

2012-08-23 Thread Kent Overstreet
On Wed, Aug 22, 2012 at 01:17:30PM -0700, Tejun Heo wrote: > Hello, > > On Wed, Aug 22, 2012 at 10:04:03AM -0700, Kent Overstreet wrote: > > Previously, bio_kmalloc() and bio_alloc_bioset() behaved slightly > > different because there was some almost-duplicated code - this fixes > > that issue. >

Re: [PATCH RFC 0/3] Add guest cpu_entitlement reporting

2012-08-23 Thread Glauber Costa
On 08/24/2012 03:14 AM, Michael Wolf wrote: > This is an RFC regarding the reporting of stealtime. In the case of > where you have a system that is running with partial processors such as > KVM the user may see steal time being reported in accounting tools such > as top or vmstat. This can cause

Re: [GIT PULL] KVM fixes for 3.6-rc3

2012-08-23 Thread Linus Torvalds
On Thu, Aug 23, 2012 at 12:30 AM, Marcelo Tosatti wrote: > > Please pull from > > git://git.kernel.org/pub/scm/virt/kvm/kvm.git master > > To receive the following KVM bug fixes: I'm not seeing what you claim is there. This commit seems to be missing: forgot to push? > Avi Kivity (1): >

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

2012-08-23 Thread Pallala, Ramakrishna
> > > > This patch checks for charger status register for determining the > > > > battery charging status and reports Discharing/Charging/Not > > > > Charging/Full accordingly. > > > > > > > > This patch also adds the interrupt support for Safety Timer Expiration. > > > > This interrupt is helpful

Re: [PATCH 3/3] HWPOISON: prevent inode cache removal to keep AS_HWPOISON sticky

2012-08-23 Thread Dave Chinner
On Thu, Aug 23, 2012 at 10:39:32PM -0400, Naoya Horiguchi wrote: > On Fri, Aug 24, 2012 at 11:31:18AM +1000, Dave Chinner wrote: > > On Wed, Aug 22, 2012 at 11:17:35AM -0400, Naoya Horiguchi wrote: > > > "HWPOISON: report sticky EIO for poisoned file" still has a corner case > > > where we have

[v3 1/1] driver-core: Shut up dev_dbg_reatelimited() without DEBUG

2012-08-23 Thread Hiroshi Doyu
dev_dbg_reatelimited() without DEBUG printed "217078 callbacks suppressed". This shouldn't print anything without DEBUG. With CONFIG_DYNAMIC_DEBUG, the print should be configured as expected. Signed-off-by: Hiroshi Doyu Reported-by: Hin-Tak Leung Tested-by: Antti Palosaari Acked-by: Hin-Tak

Re: [PATCH v2] net: add new QCA alx ethernet driver

2012-08-23 Thread Luis R. Rodriguez
On Fri, Aug 24, 2012 at 6:39 AM, Huang, Xiong wrote: It would be useful for you to keep the tag of who wrote what if you are trimming the e-mails, like in the above you removed the option for me to easily discover who wrote what. >> If you want to implement a more sophisticated packet matching

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

2012-08-23 Thread Anton Vorontsov
On Fri, Aug 24, 2012 at 04:25:15AM +, Pallala, Ramakrishna wrote: > > On Thu, Aug 23, 2012 at 07:19:18AM +0530, Ramakrishna Pallala wrote: > > > This patch checks for charger status register for determining the > > > battery charging status and reports Discharing/Charging/Not > > >

Re: [PATCH 1/1] clk: add DT support for clock gating control

2012-08-23 Thread Tony Prisk
On Thu, 2012-08-23 at 19:31 -0700, Mike Turquette wrote: > Quoting Sebastian Hesselbarth (2012-07-08 10:15:26) > > This patch adds support for using clock gates (clk-gate) from DT based > > on Rob Herrings DT clk binding support for 3.6. > > > > It adds a helper function to clk-gate to allocate

"Trapping" hard drive errors ( "ata***** failed command: READ FPDMA QUEUED")

2012-08-23 Thread Mouse Dresden
Hello I hope that this question is not to mundane. A while ago I encountered this error message on a hard drive of mine. I managed to clean up the problem and run smartctl and the disk is clean, but such errors can be very problematic. I think one of the reasons is that the hard drive gets "bogs

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

2012-08-23 Thread Pallala, Ramakrishna
Hi Anton, > On Thu, Aug 23, 2012 at 07:19:18AM +0530, Ramakrishna Pallala wrote: > > This patch checks for charger status register for determining the > > battery charging status and reports Discharing/Charging/Not > > Charging/Full accordingly. > > > > This patch also adds the interrupt support

Re: [PATCH v3 1/4] pinctrl: add samsung pinctrl and gpiolib driver

2012-08-23 Thread Thomas Abraham
On 24 August 2012 04:42, Stephen Warren wrote: > On 08/23/2012 05:15 AM, Thomas Abraham wrote: >> Add a new device tree enabled pinctrl and gpiolib driver for Samsung >> SoC's. This driver provides a common and extensible framework for all >> Samsung SoC's to interface with the pinctrl and

[RFC] mm: support MIGRATE_DISCARD

2012-08-23 Thread Minchan Kim
This patch introudes MIGRATE_DISCARD mode in migration. It drops *unmapped clean cache pages* instead of migration so that migration latency could be reduced by avoiding (memcpy + page remapping). It's useful for CMA because latency of migration is very important rather than eviction of background

Re: [RFC][PATCH 0/3] c-state governor changes

2012-08-23 Thread Matthew Garrett
On Thu, Aug 23, 2012 at 02:54:05PM -0700, Arjan van de Ven wrote: > On 8/23/2012 2:11 PM, Rik van Riel wrote: > > This patch set is mostly there to kick off a discussion in time > > for Kernel Summit. When running it on my laptop, with acpi_idle, > > I see a promising change in powertop. > > be

[PATCH 1/1 v1] leds: Add new LED driver for lm355x chips

2012-08-23 Thread G.Shark Jeong
From: "G.Shark Jeong" LM3554 and LM3556 have similar functions but very different register map. This driver is a general version for LM355x,lm3554 and lm3556,led chips of TI. lm3556 driver can be replaced by this driver. LM3554 : The LM3554 is a 2 MHz fixed-frequency synchronous boost converter

[PATCH 0/1 v1] leds: Add new LED driver for lm355x chips

2012-08-23 Thread G.Shark Jeong
From: "G.Shark Jeong" LM3554 and LM3556 have similar functions but very different register map. This driver is a general version for LM355x,lm3554 and lm3556,led chips of TI. lm3556 driver can be replaced by this driver. LM3554 : The LM3554 is a 2 MHz fixed-frequency synchronous boost converter

Re: [PATCH V3 1/4] EFI: Stash ROMs if they're not in the PCI BAR

2012-08-23 Thread Matthew Garrett
On Thu, Aug 23, 2012 at 05:44:22PM -0600, Bjorn Helgaas wrote: > On Thu, Aug 23, 2012 at 10:36 AM, Matthew Garrett wrote: > > EFI provides support for providing PCI ROMs via means other than the ROM > > BAR. This support vanishes after we've exited boot services, so add support > > for stashing

Re: [PATCHv2 1/1] perf: Port to Android

2012-08-23 Thread Matthew Garrett
On Thu, Aug 23, 2012 at 03:32:50PM -0600, David Ahern wrote: > Why not add support for the missing functions (on_exit, getsid, > psignal and getline) to Bionic instead of perf? Many vendors need to target existing Android platforms and don't have the luxury of waiting for code to get through

Re: [PATCH 07/19] Input: evdev - Add the events() callback

2012-08-23 Thread Daniel Kurtz
On Mon, Aug 13, 2012 at 5:42 AM, Henrik Rydberg wrote: > By sending a full frame of events at the same time, the irqsoff > latency at heavy load is brought down from 200 us to 100 us. > > Signed-off-by: Henrik Rydberg > --- > drivers/input/evdev.c | 68 >

Re: [PATCH 06/19] Input: Send events one packet at a time

2012-08-23 Thread Daniel Kurtz
On Mon, Aug 13, 2012 at 5:42 AM, Henrik Rydberg wrote: > On heavy event loads, such as a multitouch driver, the irqsoff latency > can be as high as 250 us. By accumulating a frame worth of data > before passing it on, the latency can be dramatically reduced. As a > side effect, the special

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

2012-08-23 Thread Stephen Rothwell
'cdv_intel_dp_set_m_n' [-Werror=implicit-function-declaration] Introducd by commit 220801bdb53c ("gma500/cdv: add the bits that don't need the new code") and exposed by commit f76c0dde78fb ("gma500/cdv: Fix call to cdv_intel_dp_set_m_n"). I have used the drm tree form next-20120823 for today.

Re: [PATCH v2 1/9] pinctrl: mvebu: pinctrl driver core

2012-08-23 Thread Stephen Warren
On 08/23/2012 05:01 PM, Sebastian Hesselbarth wrote: > On 08/23/2012 11:26 PM, Stephen Warren wrote: >> As you may have guessed, I strongly prefer the hard-coded static table >> based approach, or at least separating the definition of known >> pins/groups/functions from the configuration nodes

Re: [PATCH v8 1/5] mm: introduce a common interface for balloon pages mobility

2012-08-23 Thread Rik van Riel
On 08/23/2012 07:36 PM, Michael S. Tsirkin wrote: ---> virtio-balloon: replace page->lru list with page->private. The point is to free up page->lru for use by compaction. Warning: completely untested, will provide tested version if we agree on this direction. A singly linked list is not

[RFC PATCH] perf: add SLANG_INC for slang.h

2012-08-23 Thread Liang Li
CFLAGS was previously hard coded to contain "-I/usr/include/slang" to work with hosts that have "/usr/include/slang/slang.h" as well as hosts that have "/usr/include/slang.h". This path can cause compile warnings like: cc1: warning: '/usr/include/slang' doesn't exists. or cc1: warning: include

[PATCH v2] mm/ia64: fix a memory block size bug

2012-08-23 Thread wujianguo
From: Jianguo Wu I found following definition in include/linux/memory.h, in my IA64 platform, SECTION_SIZE_BITS is equal to 32, and MIN_MEMORY_BLOCK_SIZE will be 0. #define MIN_MEMORY_BLOCK_SIZE (1 << SECTION_SIZE_BITS) Because MIN_MEMORY_BLOCK_SIZE is int type and length of 32bits, so

Re: [PATCH] kconfig: replace 'oldnoconfig' with 'olddefconfig', what it really does

2012-08-23 Thread Adam Lee
On Thu, Aug 23, 2012 at 04:10:01PM -0400, Steven Rostedt wrote: > Sorry for the late reply. > > On Fri, 2012-08-17 at 15:16 +0800, Adam Lee wrote: > > As 67d34a6a391369269a2e5dba8a5f42cc4cd50231 said, 'oldnoconfig' doesn't > > set new symbols to 'n', but instead sets it to their default values. >

Re: [RFC][PATCH 0/3] c-state governor changes

2012-08-23 Thread Rik van Riel
On 08/23/2012 05:54 PM, Arjan van de Ven wrote: On 8/23/2012 2:11 PM, Rik van Riel wrote: This patch set is mostly there to kick off a discussion in time for Kernel Summit. When running it on my laptop, with acpi_idle, I see a promising change in powertop. be careful with acpi_idle... that

Re: [PATCH 4/7] regulator: anatop-regulator: convert to use imx-syscon to access anatop register

2012-08-23 Thread Dong Aisheng
On Fri, Aug 24, 2012 at 01:56:58AM +0800, Stephen Warren wrote: > On 08/23/2012 12:12 AM, Richard Zhao wrote: > > On Wed, Aug 22, 2012 at 11:21:03PM -0600, Stephen Warren wrote: > >> On 08/22/2012 01:18 AM, Dong Aisheng wrote: > >>> Signed-off-by: Dong Aisheng > >> > >>> diff --git

Re: [PATCH v7 0/12] x86: Arbitrary CPU hot(un)plug support

2012-08-23 Thread H. Peter Anvin
Hi Fenghua, This patchset breaks compiling with Xen enabled on 64 bits: /home/hpa/kernel/tip.x86-hotplug/arch/x86/xen/smp.c: In function ‘cpu_bringup’: /home/hpa/kernel/tip.x86-hotplug/arch/x86/xen/smp.c:75:2: error: too few arguments to function ‘smp_store_cpu_info’ In file included from

Re: [PATCH 4/7] regulator: anatop-regulator: convert to use imx-syscon to access anatop register

2012-08-23 Thread Dong Aisheng
On Thu, Aug 23, 2012 at 07:17:41PM +0800, Mark Brown wrote: > On Thu, Aug 23, 2012 at 03:15:04PM +0800, Dong Aisheng wrote: > > On Wed, Aug 22, 2012 at 11:59:53PM +0800, Mark Brown wrote: > > > > With the conversion to regmap it'd also be good to convert the driver to > > > use the regmap helper

Re: [PATCH 1/7] mfd: add imx syscon driver based on regmap

2012-08-23 Thread Dong Aisheng
On Thu, Aug 23, 2012 at 07:06:47PM +0800, Mark Brown wrote: > On Thu, Aug 23, 2012 at 03:26:30PM +0800, Dong Aisheng wrote: > > On Thu, Aug 23, 2012 at 12:02:41AM +0800, Mark Brown wrote: > > > > It'd be good to provide a way of retrieving the regmap so that drivers > > > for subsystems with

Re: [PATCH 3/3] HWPOISON: prevent inode cache removal to keep AS_HWPOISON sticky

2012-08-23 Thread Naoya Horiguchi
On Fri, Aug 24, 2012 at 11:31:18AM +1000, Dave Chinner wrote: > On Wed, Aug 22, 2012 at 11:17:35AM -0400, Naoya Horiguchi wrote: > > "HWPOISON: report sticky EIO for poisoned file" still has a corner case > > where we have possibilities of data lost. This is because in this fix > > AS_HWPOISON is

RE: [PATCH v2] net: add new QCA alx ethernet driver

2012-08-23 Thread Huang, Xiong
> > If you want to implement a more sophisticated packet matching mode that > requires more details than struct ethtool_wolinfo, then you may need to > define new operations. > It's great ! Is it ok for ethtool to define a new operation with a sophisticated structure (like ethtool_eee) ?

Re: [PATCH] mm/ia64: fix a memory block size bug

2012-08-23 Thread wujianguo
Hi Michal, Thanks for your comments and review. On 2012-8-23 23:48, Michal Hocko wrote: > [Fixed gregkh email address] > > On Tue 21-08-12 11:46:10, wujianguo wrote: >> From: Jianguo Wu >> >> Hi all, >> I found following definition in include/linux/memory.h, in my IA64 >> platform,

Re: [PATCH 1/1] clk: add DT support for clock gating control

2012-08-23 Thread Mike Turquette
Quoting Sebastian Hesselbarth (2012-07-08 10:15:26) > This patch adds support for using clock gates (clk-gate) from DT based > on Rob Herrings DT clk binding support for 3.6. > > It adds a helper function to clk-gate to allocate all resources required by > a set of individual clock gates, i.e.

Re: [PATCH]mm: fix-up zone present pages

2012-08-23 Thread wujianguo
On 2012-8-21 11:55, Petr Tesarik wrote: > Dne Po 20. srpna 2012 08:38:10 wujianguo napsal(a): >> From: Jianguo Wu >> >> Hi all, >> I think zone->present_pages indicates pages that buddy system can >> management, it should be: >> zone->present_pages = spanned pages - absent pages -

Re: [PATCH v6 11/13] block: Rework bio_pair_split()

2012-08-23 Thread Martin K. Petersen
> "Tejun" == Tejun Heo writes: Tejun> I complained about this in the last posting and in the previous Tejun> patch. Please respond. Martin, are you okay with these Tejun> integrity changes? I missed the first several iterations of all this while I was out on vacation. I'll have to try to

Re: [PATCH 0/2] revert changes to zcache_do_preload()

2012-08-23 Thread Xiao Guangrong
On 08/24/2012 07:28 AM, Minchan Kim wrote: > On Thu, Aug 23, 2012 at 05:10:00PM -0500, Seth Jennings wrote: >> On 08/23/2012 03:56 PM, Minchan Kim wrote: >>> Hi Seth, >>> >>> On Thu, Aug 23, 2012 at 10:33:09AM -0500, Seth Jennings wrote: This patchset fixes a regression in 3.6 by reverting

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

2012-08-23 Thread Stephen Rothwell
Hi Dave, Today's linux-next merge of the drm tree got a conflict in drivers/gpu/drm/i915/i915_gem.c between commit b6c7488df68a ("drm/i915/contexts: fix list corruption") from Linus' tree and commit 69c2fc891343 ("drm/i915: Remove the per-ring write list") from the drm tree. Just context

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

2012-08-23 Thread Stephen Rothwell
Hi Dave, Today's linux-next merge of the drm tree got a conflict in drivers/gpu/drm/i915/intel_modes.c between commit 4eab81366465 ("drm/i915: extract connector update from intel_ddc_get_modes() for reuse") from Linus' tree and commit 451023dc32d4 ("drm: remove the raw_edid field from struct

RE: [PATCH v2] net: add new QCA alx ethernet driver

2012-08-23 Thread Ben Hutchings
On Fri, 2012-08-24 at 01:55 +, Huang, Xiong wrote: > Thanks for all your feedback. I have another question need your help. > > This NIC has special function that could receive/transmit simple > packet when it's in sleep (D3) state. > It will help someone wakeup his/her machine even it's

Re: Fixup the page of buddy_higher address's calculation

2012-08-23 Thread Li Haifeng
2012/8/23 Michal Hocko : > On Thu 23-08-12 20:30:34, Gavin Shan wrote: >> On Thu, Aug 23, 2012 at 06:21:06PM +0800, Li Haifeng wrote: > [...] >> >>> From d7cd78f9d71a5c9ddeed02724558096f0bb4508a Mon Sep 17 00:00:00 2001 >> >>> From: Haifeng Li >> >>> Date: Thu, 23 Aug 2012 16:27:19 +0800 >> >>>

Re: [PATCH v4] clock: max77686: Add driver for Maxim 77686 32KHz crystal oscillator

2012-08-23 Thread Mike Turquette
Hello Jonghwa, Quoting Jonghwa Lee (2012-06-27 03:31:17) > +#include > +#include > +#include > +#include > +#include > +#include > +#include Please use clk-provider.h. I don't see any reason for this code to need clk-private.h. > +#include > +#include > + > +#define

Re: [Memory Leak] free kprobe before optimized_kprobe free

2012-08-23 Thread Masami Hiramatsu
(2012/08/24 2:05), akhilesh kumar wrote: > From a77438899c7295299b59cdca8d1816ea69d6ed8e Mon Sep 17 00:00:00 2001 > From: Akhilesh Kumar > Date: Fri, 10 Aug 2012 14:02:07 +0530 > Subject:[Memory Leak] free kprobe before optimized_kprobe free > > Free *ap before *op otherwise ap pointer will be

RE: [PATCH v2] net: add new QCA alx ethernet driver

2012-08-23 Thread Huang, Xiong
Thanks for all your feedback. I have another question need your help. This NIC has special function that could receive/transmit simple packet when it's in sleep (D3) state. It will help someone wakeup his/her machine even it's behind a router. This function is disabled by default. To enable it,

Re: [PATCH RFC] sta2x11 common clock framework implementation

2012-08-23 Thread Mike Turquette
Quoting Davide Ciminaghi (2012-06-20 18:29:25) > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > index 7b989ca..72013efe 100644 > --- a/arch/x86/Kconfig > +++ b/arch/x86/Kconfig > @@ -497,6 +497,9 @@ config STA2X11 > depends on X86_32_NON_STANDARD && PCI > select X86_DEV_DMA_OPS

Re: [PATCH] KVM: trace the events of mmu_notifier

2012-08-23 Thread Xiao Guangrong
On 08/23/2012 09:08 PM, Marcelo Tosatti wrote: > On Thu, Aug 23, 2012 at 08:30:15PM +0800, Xiao Guangrong wrote: >> On 08/23/2012 05:24 PM, Marcelo Tosatti wrote: >>> On Tue, Aug 21, 2012 at 05:51:35PM +0800, Xiao Guangrong wrote: mmu_notifier is the interface to broadcast the mm events to

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

2012-08-23 Thread Stephen Rothwell
allow max_beb_per1024 on NOR flash"). I have used the ubi tree from next-20120823 for today. -- Cheers, Stephen Rothwells...@canb.auug.org.au pgpaTtvHCfG1I.pgp Description: PGP signature

Re: [PATCH v4 2/2] powerpc: Uprobes port to powerpc

2012-08-23 Thread Michael Ellerman
On Thu, 2012-08-23 at 11:02 +0530, Srikar Dronamraju wrote: > > > > These seem to be duplicated in kprobes.h, can we consolidate them. > > > > > +struct arch_uprobe { > > > + u8 insn[MAX_UINSN_BYTES]; > > > +}; > > > > Why not uprobe_opcode_t insn ? > > > > insn is updated/accessed in

Re: [PATCH 3/3] HWPOISON: prevent inode cache removal to keep AS_HWPOISON sticky

2012-08-23 Thread Dave Chinner
On Wed, Aug 22, 2012 at 11:17:35AM -0400, Naoya Horiguchi wrote: > "HWPOISON: report sticky EIO for poisoned file" still has a corner case > where we have possibilities of data lost. This is because in this fix > AS_HWPOISON is cleared when the inode cache is dropped. > > For example, consider an

Re: [PATCH 2/2] devfreq: exynos4: Support initialization of freq_table and max_state of devfreq's profile.

2012-08-23 Thread jonghwa3 . lee
On 2012년 08월 24일 07:22, Rafael J. Wysocki wrote: > On Thursday, August 16, 2012, Jonghwa Lee wrote: >> This patch initializes freq_table and max_state of devfreq's profile. >> They will be used for creating transition table. >> >> Signed-off-by: Jonghwa Lee > Does that depend on [1/2]? > > Rafael

Re: [PATCH 1/2] devfreq: Add sysfs node for representing frequency transition information.

2012-08-23 Thread jonghwa3 . lee
Hi, Rafael. On 2012년 08월 24일 07:21, Rafael J. Wysocki wrote: > On Thursday, August 16, 2012, Jonghwa Lee wrote: >> This patch adds sysfs node which can be used to get information of frequency >> transition. It represents transition table which contains total number of >> transition of >> each

[PATCH v7 1/3] KVM: x86: export svm/vmx exit code and vector code to userspace

2012-08-23 Thread Dong Hao
From: Xiao Guangrong Exporting KVM exit information to userspace to be consumed by perf. [ Dong Hao : rebase it on acme's git tree ] Signed-off-by: Xiao Guangrong Signed-off-by: Dong Hao --- arch/x86/include/asm/kvm_host.h | 36 --- arch/x86/include/asm/svm.h | 205

[PATCH v7 3/3] KVM: perf: kvm events analysis tool

2012-08-23 Thread Dong Hao
From: Xiao Guangrong Add 'perf kvm stat' support to analyze kvm vmexit/mmio/ioport smartly Usage: - kvm stat run a command and gather performance counter statistics, it is the alias of perf stat - trace kvm events: perf kvm stat record, or, if other tracepoints are interesting as well,

[PATCH v7 2/3] KVM: x86: trace mmio begin and complete

2012-08-23 Thread Dong Hao
From: Xiao Guangrong 'perf kvm stat record/report' will use kvm_exit and kvm_mmio(read...) to calculate mmio read emulated time for the old kernel, in order to trace mmio read event more exactly, we add kvm_mmio_begin to trace the time when mmio read begins, also, add kvm_io_done to trace the

[PATCH v7 0/3] KVM: perf: kvm events analysis tool

2012-08-23 Thread Dong Hao
From: Xiao Guangrong Changelog: - rebased it on Arnaldo's git tree perf/core branch the change from Arnaldo's comments: - directly get event from evsel->tp_format - remove die() and return the proper error code - rename thread->private to thread->priv the change from David's comments: - use

Fwd: [PATCH] tty: Added a CONFIG_TTY option to allow removal of TTY

2012-08-23 Thread Joe Millenbach
-- Forwarded message -- From: Joe Millenbach Date: Thu, Aug 23, 2012 at 5:56 PM Subject: Re: [PATCH] tty: Added a CONFIG_TTY option to allow removal of TTY To: Alan Cox Cc: Greg Kroah-Hartman , Alan Cox , linux-ser...@vger.kernel.org, linux-kernel@vger.kernel.org, Josh Triplett ,

[PATCH v7 05/12] Because x86 BIOS requires CPU0 to resume from sleep, suspend or hibernate can't be executed if CPU0 is detected offline. To make suspend or hibernate and further resume succeed, CPU0

2012-08-23 Thread Fenghua Yu
From: Fenghua Yu Signed-off-by: Fenghua Yu --- arch/x86/power/cpu.c | 44 1 files changed, 44 insertions(+), 0 deletions(-) diff --git a/arch/x86/power/cpu.c b/arch/x86/power/cpu.c index 218cdb1..3338609 100644 --- a/arch/x86/power/cpu.c +++

[PATCH v7 06/12] start_cpu0() is defined in head_64.S for 64-bit. The function sets up stack and jumps to start_secondary() for CPU0 wake up.

2012-08-23 Thread Fenghua Yu
From: Fenghua Yu Signed-off-by: Fenghua Yu --- arch/x86/kernel/head_64.S | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/arch/x86/kernel/head_64.S b/arch/x86/kernel/head_64.S index 94bf9cc..3faac8a 100644 --- a/arch/x86/kernel/head_64.S +++

[PATCH v7 07/12] start_cpu0() is defined in head_32.S for 32-bit. The function sets up stack and jumps to start_secondary() for CPU0 wake up.

2012-08-23 Thread Fenghua Yu
From: Fenghua Yu Signed-off-by: Fenghua Yu --- arch/x86/kernel/head_32.S | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/arch/x86/kernel/head_32.S b/arch/x86/kernel/head_32.S index d42ab17..964f87a 100644 --- a/arch/x86/kernel/head_32.S +++

[PATCH v7 03/12] x86/topology.c: Support functions for CPU0 online/offline

2012-08-23 Thread Fenghua Yu
From: Fenghua Yu If CONFIG_BOOTPARAM_HOTPLUG_CPU is turned on, CPU0 hotplug feature is enabled by default. If CONFIG_BOOTPARAM_HOTPLUG_CPU is not turned on, CPU0 hotplug feature is not enabled by default. The kernel parameter cpu0_hotplug can enable CPU0 hotplug feature at boot. Signed-off-by:

[PATCH v7 02/12] x86/Kconfig: Add config switch for CPU0 hotplug

2012-08-23 Thread Fenghua Yu
From: Fenghua Yu New config switch CONFIG_BOOTPARAM_HOTPLUG_CPU0 sets default state of whether the CPU0 hotplug is on or off. If the switch is off, CPU0 is not hotpluggable by default. But the CPU0 hotplug feature can still be turned on by kernel parameter cpu0_hotplug at boot. If the switch

[PATCH v7 09/12] During CPU0 online, enable x2apic, set_numa_node.

2012-08-23 Thread Fenghua Yu
From: Fenghua Yu Signed-off-by: Fenghua Yu --- arch/x86/kernel/cpu/common.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index 2ea24da..ce8b772 100644 --- a/arch/x86/kernel/cpu/common.c +++

Re: [PATCH v4 2/2] powerpc: Uprobes port to powerpc

2012-08-23 Thread Michael Ellerman
On Thu, 2012-08-23 at 11:28 +0530, Ananth N Mavinakayanahalli wrote: > On Thu, Aug 23, 2012 at 02:28:20PM +1000, Michael Ellerman wrote: > > On Wed, 2012-08-22 at 13:57 +0530, Ananth N Mavinakayanahalli wrote: > > > From: Ananth N Mavinakayanahalli > > > > > > This is the port of uprobes to

[PATCH] x86, apm: Make on_cpu0() use workqueue instead of work_on_cpu()

2012-08-23 Thread Tejun Heo
Make APM schedule a work item on CPU0 instead of using the expensive work_on_cpu(); hopefully, this is the last user of work_on_cpu() and we can take out work_on_cpu() in not too distant future. Tested both paths. Seems to work fine. Signed-off-by: Tejun Heo --- arch/x86/kernel/apm_32.c |

[PATCH v7 12/12] x86/topology.c: debug CPU0 hotplug

2012-08-23 Thread Fenghua Yu
From: Fenghua Yu CONFIG_DEBUG_HOTPLUG_CPU0 is for debuging the CPU0 hotplug feature. The switch offlines CPU0 as soon as possible and boots userspace up with CPU0 offlined. User can online CPU0 back after boot time. The default value of the switch is off. To debug CPU0 hotplug, you need to

[PATCH v7 11/12] x86/i387.c: Thread xstate is initialized only on CPU0 once

2012-08-23 Thread Fenghua Yu
From: Fenghua Yu init_thread_xstate() is only called once to avoid overriding xstate_size during boot time or during CPU hotplug. Signed-off-by: Fenghua Yu --- arch/x86/kernel/i387.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/arch/x86/kernel/i387.c

[PATCH v7 08/12] Instead of waiting for STARTUP after INITs, BSP will execute the BIOS boot-strap code which is not a desired behavior for waking up BSP. To avoid the boot-strap code, wake up CPU0 by

2012-08-23 Thread Fenghua Yu
From: Fenghua Yu This works to wake up soft offlined CPU0 only. If CPU0 is hard offlined (i.e. physically hot removed and then hot added), NMI won't wake it up. We'll change this code in the future to wake up hard offlined CPU0 if real platform and request are available. AP is still waken up as

[PATCH v7 10/12] Ask the first online CPU to save mtrr instead of asking BSP. BSP could be offline when mtrr_save_state() is called.

2012-08-23 Thread Fenghua Yu
From: Fenghua Yu Signed-off-by: Fenghua Yu --- arch/x86/kernel/cpu/mtrr/main.c |9 +++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/cpu/mtrr/main.c b/arch/x86/kernel/cpu/mtrr/main.c index 6b96110..e4c1a41 100644 --- a/arch/x86/kernel/cpu/mtrr/main.c

[PATCH v7 04/12] Don't offline CPU0 if any PIC irq can not be migrated out of it.

2012-08-23 Thread Fenghua Yu
From: Fenghua Yu Change smp_store_cpu_info() to store cpu info for a CPU when it's brought up. This includes bringing up CPU0 or AP after it's offline. But don't store cpu info when BSP first boots during boot time. Continue to online CPU0 in native_cpu_up(). Signed-off-by: Fenghua Yu ---

[PATCH v7 01/12] Documentations/cpu-hotplug.tx, kernel-parameters.txt: Add x86 CPU0 online/offline feature

2012-08-23 Thread Fenghua Yu
From: Fenghua Yu If CONFIG_BOOTPARAM_HOTPLUG_CPU0 is turned on, CPU0 is hotpluggable. Otherwise, by default CPU0 is not hotpluggable and kernel parameter cpu0_hotplug enables CPU0 online/offline feature. The documentations point out two known CPU0 dependencies. First, resume from hibernate or

[PATCH v7 0/12] x86: Arbitrary CPU hot(un)plug support

2012-08-23 Thread Fenghua Yu
From: Fenghua Yu CPU0 or BSP (Bootstrap Processor) has been the last processor that can not be hot removed on x86. This patch set implements CPU0 or BSP online and offline and removes this obstacle to CPU hotplug. RAS needs the feature. If socket0 needs to be hotplugged for any reason (any

Re: mgag200 hang on boot

2012-08-23 Thread Andy Lutomirski
On Thu, Aug 23, 2012 at 4:22 PM, Dave Airlie wrote: > On Fri, Aug 24, 2012 at 7:51 AM, Andy Lutomirski wrote: >> mgag200 hangs like this on startup, on a Dell PowerEge 12g box. The >> serial console says: > > You can apply this > > https://patchwork.kernel.org/patch/1298651/ Works for me.

Re: [PATCH 2/3] kmemleak: replace list_for_each_continue_rcu with new interface

2012-08-23 Thread Michael Wang
On 08/17/2012 12:33 PM, Michael Wang wrote: > From: Michael Wang > > This patch replaces list_for_each_continue_rcu() with > list_for_each_entry_continue_rcu() to save a few lines > of code and allow removing list_for_each_continue_rcu(). Hi, Catalin Could I get some comments on this patch?

Re: [PATCH 1/3] raid: replace list_for_each_continue_rcu with new interface

2012-08-23 Thread Michael Wang
On 08/17/2012 12:33 PM, Michael Wang wrote: > From: Michael Wang > > This patch replaces list_for_each_continue_rcu() with > list_for_each_entry_continue_rcu() to save a few lines > of code and allow removing list_for_each_continue_rcu(). > Hi, Neil Could I get some comments on this patch?

Re: [PATCH v8 1/5] mm: introduce a common interface for balloon pages mobility

2012-08-23 Thread Rafael Aquini
On Thu, Aug 23, 2012 at 09:38:48PM -0300, Rafael Aquini wrote: > On Thu, Aug 23, 2012 at 09:33:53PM -0300, Rafael Aquini wrote: > > On Fri, Aug 24, 2012 at 02:36:16AM +0300, Michael S. Tsirkin wrote: > > > I would wake it each time after adding a page, then it > > > can stop waiting when it leaks

Re: [PATCH] tools lib traceevent: Fix off-by-one bug in pevent_strerror()

2012-08-23 Thread Namhyung Kim
Hi, Steve On Thu, 23 Aug 2012 05:30:23 -0400, Steven Rostedt wrote: > On Thu, 2012-08-23 at 16:37 +0900, Namhyung Kim wrote: >> From: Namhyung Kim >> >> As pevent_errno is defined using PEVENT_ERRORS which uses _PE macro >> magic, the first errno is bigger than __PEVENT_ERRNO_START by 1. So we

Re: [PATCH v8 1/5] mm: introduce a common interface for balloon pages mobility

2012-08-23 Thread Rafael Aquini
On Thu, Aug 23, 2012 at 09:33:53PM -0300, Rafael Aquini wrote: > On Fri, Aug 24, 2012 at 02:36:16AM +0300, Michael S. Tsirkin wrote: > > I would wake it each time after adding a page, then it > > can stop waiting when it leaks enough. > > But again, it's cleaner to just keep tracking all > >

Re: [PATCH v8 1/5] mm: introduce a common interface for balloon pages mobility

2012-08-23 Thread Rafael Aquini
On Fri, Aug 24, 2012 at 02:36:16AM +0300, Michael S. Tsirkin wrote: > I would wake it each time after adding a page, then it > can stop waiting when it leaks enough. > But again, it's cleaner to just keep tracking all > pages, let mm hang on to them by keeping a reference. > Here is a rough idea

Re: Build regressions/improvements in v3.6-rc3

2012-08-23 Thread Guenter Roeck
On Thu, Aug 23, 2012 at 03:18:11PM -0700, Randy Dunlap wrote: > On 08/23/2012 01:46 PM, Geert Uytterhoeven wrote: > > > *** ERRORS *** > > > > 54 regressions: > > > > + drivers/net/can/usb/peak_usb/pcan_usb_core.c: error: conflicting types > > for 'dump_mem': => 56:6 > > +

[PATCH] x86, acpi: Make acpi_processor_ffh_cstate_probe() use a work item instead of work_on_cpu()

2012-08-23 Thread Tejun Heo
Workqueue is guaranteed to be available on the target CPU by the time acpi_processor_ffh_cstate_probe() is invoked for it. There's no reason to use costly work_on_cpu() which involves creating and tearing down a full kthread on each invocation to execute the probing function on the target CPU.

Re: [PATCH v8 1/5] mm: introduce a common interface for balloon pages mobility

2012-08-23 Thread Rafael Aquini
On Fri, Aug 24, 2012 at 02:36:16AM +0300, Michael S. Tsirkin wrote: > On Thu, Aug 23, 2012 at 02:28:45PM -0300, Rafael Aquini wrote: > > On Thu, Aug 23, 2012 at 07:25:05PM +0300, Michael S. Tsirkin wrote: > > > On Thu, Aug 23, 2012 at 04:53:28PM +0300, Michael S. Tsirkin wrote: > > > > Basically

Looking for multi-function driver infrastructure resources

2012-08-23 Thread Guenter Roeck
Hi all, I am looking for resources describing Multi-function driver infrastructure and development in the Linux kernel. Unfortunately, information seems to be scarce. Does anyone, by any chance, have some pointers ? Documentation, presentations ? Thanks, Guenter -- To unsubscribe from this

Re: [PATCH v6 3/4] cgroup: add xattr support

2012-08-23 Thread Eric W. Biederman
Lennart Poettering writes: > Heya, > > (sorry for the late reply) > > On 16.08.2012 22:00, Tejun Heo wrote: >> On Thu, Aug 16, 2012 at 01:44:56PM -0400, a...@redhat.com wrote: > Attaching meta information to services, in an easily discoverable way. For example, in systemd we create one

Re: [PATCH 3/4] x86: Only direct map addresses that are marked as E820_RAM

2012-08-23 Thread H. Peter Anvin
On 08/23/2012 03:35 PM, Jacob Shin wrote: > > I looked into this a bit more, and I think what's happening is that this > user defined memory map leaves out the region where the kernel is loaded on > to during the boot process. The kernel and the direct mapped page tables up > to initial

Re: [PATCH 3/4] x86: Only direct map addresses that are marked as E820_RAM

2012-08-23 Thread Yinghai Lu
On Thu, Aug 23, 2012 at 3:35 PM, Jacob Shin wrote: >> >So I believe in V2 of the patchset this was done, however, Dave Young >> >from redhat reported that it broke their KVM guest with a user supplied >> >memory map that looked like this: >> > >> >>>[0.00] e820: user-defined physical RAM

Re: [PATCH V3 1/4] EFI: Stash ROMs if they're not in the PCI BAR

2012-08-23 Thread Bjorn Helgaas
On Thu, Aug 23, 2012 at 10:36 AM, Matthew Garrett wrote: > EFI provides support for providing PCI ROMs via means other than the ROM > BAR. This support vanishes after we've exited boot services, so add support > for stashing copies of the ROMs in setup_data if they're not otherwise > available.

Re: [PATCH v8 1/5] mm: introduce a common interface for balloon pages mobility

2012-08-23 Thread Michael S. Tsirkin
On Thu, Aug 23, 2012 at 02:28:45PM -0300, Rafael Aquini wrote: > On Thu, Aug 23, 2012 at 07:25:05PM +0300, Michael S. Tsirkin wrote: > > On Thu, Aug 23, 2012 at 04:53:28PM +0300, Michael S. Tsirkin wrote: > > > Basically it was very simple: we assumed page->lru was never > > > touched for an

Re: [PATCH 0/2] revert changes to zcache_do_preload()

2012-08-23 Thread Minchan Kim
On Thu, Aug 23, 2012 at 05:10:00PM -0500, Seth Jennings wrote: > On 08/23/2012 03:56 PM, Minchan Kim wrote: > > Hi Seth, > > > > On Thu, Aug 23, 2012 at 10:33:09AM -0500, Seth Jennings wrote: > >> This patchset fixes a regression in 3.6 by reverting two dependent > >> commits that made changes to

Re: mgag200 hang on boot

2012-08-23 Thread Dave Airlie
On Fri, Aug 24, 2012 at 7:51 AM, Andy Lutomirski wrote: > mgag200 hangs like this on startup, on a Dell PowerEge 12g box. The > serial console says: You can apply this https://patchwork.kernel.org/patch/1298651/ it should be in stable at some point, I expect its the same bug, it not get back

[PATCH RFC 2/3] Add a hypercall to retrieve the cpu entitlement value from the host.

2012-08-23 Thread Michael Wolf
If the hypercall is not implemented on the host a default value of 100 will be used. This value will be stored in /proc/sys/kernel/cpu_entitlements. Signed-off-by: Michael Wolf --- arch/x86/kvm/x86.c |8 fs/proc/stat.c |9 + include/linux/kvm.h |

  1   2   3   4   5   6   7   8   9   10   >