[PATCH 043/196] kobject: remove kobj_set_kset_s as no one is using it anymore

2008-01-24 Thread Greg Kroah-Hartman
What a confusing name for a macro... Cc: Kay Sievers <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- include/linux/kobject.h | 18 -- 1 files changed, 0 insertions(+), 18 deletions(-) diff --git a/include/linux/kobject.h b/include/linux/kobject.h

[PATCH 044/196] kset: add kset_create_and_add function

2008-01-24 Thread Greg Kroah-Hartman
Now ksets can be dynamically created on the fly, no static definitions are required. Thanks to Miklos for hints on how to make this work better for the callers. And thanks to Kay for finding some stupid bugs in my original version and pointing out that we need to handle the fact that kobject's

[PATCH 042/196] kobject: remove struct kobj_type from struct kset

2008-01-24 Thread Greg Kroah-Hartman
We don't need a "default" ktype for a kset. We should set this explicitly every time for each kset. This change is needed so that we can make ksets dynamic, and cleans up one of the odd, undocumented assumption that the kset/kobject/ktype model has. This patch is based on a lot of help from Kay

[PATCH 040/196] kobject: add kobject_add_ng function

2008-01-24 Thread Greg Kroah-Hartman
This is what the kobject_add function is going to become. Add this to the kernel and then we can convert the tree over to use it. Cc: Kay Sievers <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- include/linux/kobject.h |3 ++ lib/kobject.c | 66

[PATCH 041/196] kobject: add kobject_init_and_add function

2008-01-24 Thread Greg Kroah-Hartman
Also add a kobject_init_and_add function which bundles up what a lot of the current callers want to do all at once, and it properly handles the memory usages, unlike kobject_register(); Cc: Kay Sievers <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> ---

[PATCH 037/196] kobject: fix up kobject_set_name to use kvasprintf

2008-01-24 Thread Greg Kroah-Hartman
Kay pointed out that kobject_set_name was being very stupid, doing two allocations for every call, when it should just be using the kernel function kvasprintf() instead. This change adds the internal kobject_set_name_vargs() function, which other follow-on patches will be using. Cc: Kay Sievers

[PATCH 038/196] kobject: make kobject_cleanup be static

2008-01-24 Thread Greg Kroah-Hartman
No one except the kobject core calls it so make the function static. Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- include/linux/kobject.h |2 -- lib/kobject.c |9 - 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/include/linux/kobject.h

[PATCH 039/196] kobject: add kobject_init_ng function

2008-01-24 Thread Greg Kroah-Hartman
This is what the kobject_init function is going to become. Add this to the kernel and then we can convert the tree over to use it. Cc: Kay Sievers <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- include/linux/kobject.h |1 + lib/kobject.c | 42

[PATCH 035/196] kobject: convert hvcs to use kref, not kobject

2008-01-24 Thread Greg Kroah-Hartman
hvcs is using a kobject only for reference counting, nothing else. So switch it to use a kref instead, which is all that is needed, and is much smaller. Cc: Anton Blanchard <[EMAIL PROTECTED]> Cc: Paul Mackerras <[EMAIL PROTECTED]> Cc: Benjamin Herrenschmidt <[EMAIL PROTECTED]> Cc: Ryan S.

[PATCH 036/196] kobject: convert icom to use kref, not kobject

2008-01-24 Thread Greg Kroah-Hartman
The IBM icom serial driver is using a kobject only for reference counting, nothing else. So switch it to use a kref instead, which is all that is needed, and is much smaller. Cc: Anton Blanchard <[EMAIL PROTECTED]> Cc: Paul Mackerras <[EMAIL PROTECTED]> Cc: Benjamin Herrenschmidt <[EMAIL

[PATCH 034/196] kobject: convert hvc_console to use kref, not kobject

2008-01-24 Thread Greg Kroah-Hartman
hvc_console is using a kobject only for reference counting, nothing else. So switch it to use a kref instead, which is all that is needed, and is much smaller. Cc: Anton Blanchard <[EMAIL PROTECTED]> Cc: Paul Mackerras <[EMAIL PROTECTED]> Cc: Benjamin Herrenschmidt <[EMAIL PROTECTED]> Cc: Ryan

[PATCH 033/196] kobject: convert ibmasm to use kref, not kobject

2008-01-24 Thread Greg Kroah-Hartman
The IBM asm driver is using a kobject only for reference counting, nothing else. So switch it to use a kref instead, which is all that is needed, and is much smaller. Cc: Max Asböck <[EMAIL PROTECTED]> Cc: Kay Sievers <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> ---

[PATCH 031/196] sysfs: create optimal relative symlink targets

2008-01-24 Thread Greg Kroah-Hartman
From: Kay Sievers <[EMAIL PROTECTED]> Instead of walking from the source down to the root of sysfs, and back to the target, we stop at the first directory the source and the target share. This link: /devices/pci:00/:00:1d.7/usb1/1-0:1.0/ep_81 pointed to:

[PATCH 032/196] sysfs: remove SPIN_LOCK_UNLOCKED

2008-01-24 Thread Greg Kroah-Hartman
From: Jiri Slaby <[EMAIL PROTECTED]> SPIN_LOCK_UNLOCKED is deprecated, use DEFINE_SPINLOCK instead Signed-off-by: Jiri Slaby <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Cc: Tejun Heo <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> ---

[PATCH 029/196] ecryptfs: clean up attribute mess

2008-01-24 Thread Greg Kroah-Hartman
It isn't that hard to add simple kset attributes, so don't go through all the gyrations of creating your own object type and show and store functions. Just use the functions that are already present. This makes things much simpler. Note, the version_str string violates the "one value per file"

[PATCH 030/196] driver core: Make the dev_*() family of macros in device.h complete

2008-01-24 Thread Greg Kroah-Hartman
From: Emil Medve <[EMAIL PROTECTED]> Removed duplicates defined elsewhere Signed-off-by: Emil Medve <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/i2c/chips/isp1301_omap.c |6 -- drivers/isdn/gigaset/gigaset.h |6 --

[PATCH 027/196] tifm: Convert from class_device to device for TI flash media

2008-01-24 Thread Greg Kroah-Hartman
From: Tony Jones <[EMAIL PROTECTED]> Signed-off-by: Tony Jones <[EMAIL PROTECTED]> Cc: Alex Dubov <[EMAIL PROTECTED]> Cc: Kay Sievers <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/misc/tifm_7xx1.c |4 ++-- drivers/misc/tifm_core.c | 24

[PATCH 028/196] cosa: Convert from class_device to device for cosa sync driver

2008-01-24 Thread Greg Kroah-Hartman
From: Tony Jones <[EMAIL PROTECTED]> struct class_device is going away, this converts the code to use struct device instead. Signed-off-by: Tony Jones <[EMAIL PROTECTED]> Cc: Jan "Yenya" Kasprzak <[EMAIL PROTECTED]> Cc: Kay Sievers <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL

[PATCH 025/196] paride: Convert from class_device to device for block/paride

2008-01-24 Thread Greg Kroah-Hartman
From: Tony Jones <[EMAIL PROTECTED]> struct class_device is going away, this converts the code to use struct device instead. Signed-off-by: Tony Jones <[EMAIL PROTECTED]> Cc: Tim Waugh <[EMAIL PROTECTED]> Cc: Jens Axboe <[EMAIL PROTECTED]> Cc: Kay Sievers <[EMAIL PROTECTED]> Signed-off-by: Greg

[PATCH 026/196] pktcdvd: Convert from class_device to device for block/pktcdvd

2008-01-24 Thread Greg Kroah-Hartman
From: Tony Jones <[EMAIL PROTECTED]> struct class_device is going away, this converts the code to use struct device instead. Signed-off-by: Tony Jones <[EMAIL PROTECTED]> Cc: Peter Osterlund <[EMAIL PROTECTED]> Cc: Kay Sievers <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL

[PATCH 023/196] MCP_UCB1200: Convert from class_device to device

2008-01-24 Thread Greg Kroah-Hartman
From: Tony Jones <[EMAIL PROTECTED]> struct class_device is going away, this converts the code to use struct device instead. Signed-off-by: Tony Jones <[EMAIL PROTECTED]> Cc: Russell King <[EMAIL PROTECTED]> Cc: Kay Sievers <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL

[PATCH 024/196] mtd: Convert from class_device to device for MTD/mtdchar

2008-01-24 Thread Greg Kroah-Hartman
From: Tony Jones <[EMAIL PROTECTED]> struct class_device is going away, this converts the code to use struct device instead. Signed-off-by: Tony Jones <[EMAIL PROTECTED]> Cc: David Woodhouse <[EMAIL PROTECTED]> Cc: Kay Sievers <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL

[PATCH 021/196] ISDN: Convert from class_device to device for ISDN capi

2008-01-24 Thread Greg Kroah-Hartman
From: Tony Jones <[EMAIL PROTECTED]> Signed-off-by: Tony Jones <[EMAIL PROTECTED]> Cc: Kay Sievers <[EMAIL PROTECTED]> Acked-by: Karsten Keil <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/isdn/capi/capi.c |6 +++--- 1 files changed, 3 insertions(+), 3

[PATCH 022/196] adb: Convert from class_device to device

2008-01-24 Thread Greg Kroah-Hartman
From: Tony Jones <[EMAIL PROTECTED]> struct class_device is going away, this converts the code to use struct device instead. Signed-off-by: Tony Jones <[EMAIL PROTECTED]> Cc: Joshua Thompson <[EMAIL PROTECTED]> Cc: Benjamin Herrenschmidt <[EMAIL PROTECTED]> Cc: Kay Sievers <[EMAIL PROTECTED]>

[PATCH 020/196] IDE: Convert from class_device to device for ide-tape

2008-01-24 Thread Greg Kroah-Hartman
From: Tony Jones <[EMAIL PROTECTED]> Signed-off-by: Tony Jones <[EMAIL PROTECTED]> Cc: Gadi Oxman <[EMAIL PROTECTED]> Cc: Kay Sievers <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/ide/ide-tape.c | 14 ++ 1 files changed, 6 insertions(+), 8

[PATCH 018/196] coda: convert struct class_device to struct device

2008-01-24 Thread Greg Kroah-Hartman
From: Kay Sievers <[EMAIL PROTECTED]> Signed-off-by: Kay Sievers <[EMAIL PROTECTED]> Cc: Tony Jones <[EMAIL PROTECTED]> Cc: Jan Harkes <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- fs/coda/psdev.c |8 1 files changed, 4 insertions(+), 4 deletions(-)

[PATCH 019/196] DMA: Convert from class_device to device for DMA engine

2008-01-24 Thread Greg Kroah-Hartman
From: Tony Jones <[EMAIL PROTECTED]> Signed-off-by: Tony Jones <[EMAIL PROTECTED]> Signed-off-by: Dan Williams <[EMAIL PROTECTED]> Cc: Shannon Nelson <[EMAIL PROTECTED]> Cc: Kay Sievers <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/dma/dmaengine.c | 43

[PATCH 017/196] aoechr: Convert from class_device to device

2008-01-24 Thread Greg Kroah-Hartman
From: Tony Jones <[EMAIL PROTECTED]> Signed-off-by: Tony Jones <[EMAIL PROTECTED]> Cc: Jens Axboe <[EMAIL PROTECTED]> Cc: Sam Hopkins <[EMAIL PROTECTED]> Cc: Kay Sievers <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/block/aoe/aoechr.c |7 +++ 1

[PATCH 015/196] PM: Acquire device locks on suspend

2008-01-24 Thread Greg Kroah-Hartman
From: Rafael J. Wysocki <[EMAIL PROTECTED]> This patch reorganizes the way suspend and resume notifications are sent to drivers. The major changes are that now the PM core acquires every device semaphore before calling the methods, and calls to device_add() during suspends will fail, while calls

[PATCH 016/196] kref: add kref_set()

2008-01-24 Thread Greg Kroah-Hartman
From: Evgeniy Polyakov <[EMAIL PROTECTED]> This adds kref_set() to the kref api for future use by people who really know what they are doing with krefs... From: Evgeniy Polyakov <[EMAIL PROTECTED]> Cc: Kay Sievers <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> ---

[PATCH 013/196] Documentation: Replace obsolete "driverfs" with "sysfs".

2008-01-24 Thread Greg Kroah-Hartman
From: Robert P. J. Day <[EMAIL PROTECTED]> Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- Documentation/pnp.txt |4 ++-- Documentation/s390/cds.txt |2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/pnp.txt b/Documentation/pnp.txt index

[PATCH 014/196] kobject: remove incorrect comment in kobject_rename

2008-01-24 Thread Greg Kroah-Hartman
As pointed out by Kay. Cc: Kay Sievers <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- lib/kobject.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/lib/kobject.c b/lib/kobject.c index 3590f02..9500339 100644 --- a/lib/kobject.c +++

[PATCH 012/196] nozomi driver

2008-01-24 Thread Greg Kroah-Hartman
From: Frank Seidel <[EMAIL PROTECTED]> This is a driver to control the cardbus wireless data card that works on 3g networks. Greg Kroah-Hartman <[EMAIL PROTECTED]> did the initial driver cleanup. Thanks to Arnaud Patard <[EMAIL PROTECTED]> for help with bugfixing. Thanks to Alan Cox for a lot of

[PATCH 010/196] Chinese: add translation of Codingstyle

2008-01-24 Thread Greg Kroah-Hartman
From: Zhang Le <[EMAIL PROTECTED]> Signed-off-by: Zhang Le <[EMAIL PROTECTED]> Signed-off-by: Li Yang <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- Documentation/zh_CN/CodingStyle | 701 +++ 1 files changed, 701 insertions(+),

[PATCH 011/196] sysfs: Fix a copy-n-paste typo in comment

2008-01-24 Thread Greg Kroah-Hartman
From: Jean Delvare <[EMAIL PROTECTED]> Signed-off-by: Jean Delvare <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- fs/sysfs/dir.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/sysfs/dir.c b/fs/sysfs/dir.c index f281cc6..4948d9b 100644

[PATCH 009/196] Chinese: add translation of sparse.txt

2008-01-24 Thread Greg Kroah-Hartman
From: Li Yang <[EMAIL PROTECTED]> Signed-off-by: Li Yang <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- Documentation/zh_CN/sparse.txt | 100 1 files changed, 100 insertions(+), 0 deletions(-) create mode 100644

[PATCH 007/196] Chinese: add translation of stable_kernel_rules.txt

2008-01-24 Thread Greg Kroah-Hartman
From: TripleX Chung <[EMAIL PROTECTED]> Signed-off-by: TripleX Chung <[EMAIL PROTECTED]> Signed-off-by: Li Yang <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- Documentation/zh_CN/stable_kernel_rules.txt | 66 +++ 1 files changed, 66

[PATCH 008/196] Chinese: add translation of volatile-considered-harmful.txt

2008-01-24 Thread Greg Kroah-Hartman
From: Bryan Wu <[EMAIL PROTECTED]> Signed-off-by: Bryan Wu <[EMAIL PROTECTED]> Signed-off-by: Li Yang <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- .../zh_CN/volatile-considered-harmful.txt | 113 1 files changed, 113 insertions(+),

[PATCH 005/196] Chinese: add translation of SubmittingDrivers

2008-01-24 Thread Greg Kroah-Hartman
From: Li Yang <[EMAIL PROTECTED]> Signed-off-by: Li Yang <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- Documentation/zh_CN/SubmittingDrivers | 168 + 1 files changed, 168 insertions(+), 0 deletions(-) create mode 100644

[PATCH 006/196] Chinese: add translation of oops-tracing.txt

2008-01-24 Thread Greg Kroah-Hartman
From: Dave Young <[EMAIL PROTECTED]> Signed-off-by: Dave Young <[EMAIL PROTECTED]> Signed-off-by: Li Yang <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- Documentation/zh_CN/oops-tracing.txt | 212 ++ 1 files changed, 212

[PATCH 004/196] Chinese: add translation of SubmittingPatches

2008-01-24 Thread Greg Kroah-Hartman
From: TripleX Chung <[EMAIL PROTECTED]> Signed-off-by: TripleX Chung <[EMAIL PROTECTED]> Signed-off-by: Li Yang <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- Documentation/zh_CN/SubmittingPatches | 416 + 1 files changed, 416

[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO

2008-01-24 Thread Greg Kroah-Hartman
From: Li Yang <[EMAIL PROTECTED]> Update translation for commit be3884943674f8ee7656b1d8b71c087ec900c836. Signed-off-by: Li Yang <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- Documentation/zh_CN/HOWTO |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)

[PATCH 002/196] Chinese: rephrase English introduction in HOWTO

2008-01-24 Thread Greg Kroah-Hartman
From: Li Yang <[EMAIL PROTECTED]> Rephrase the introduction as suggested by Jesper Juhl. Signed-off-by: Li Yang <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- Documentation/zh_CN/HOWTO |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git

[GIT PATCH] driver core patches against 2.6.24

2008-01-24 Thread Greg KH
Due to the low level nature of these patches, and because they touch so many different parts of the kernel, a number of the subsystem maintainers have asked me to get them in first to make merging other trees easier. Here are a pretty large number of kobject, documentation, and driver core

dm-band: The I/O bandwidth controller: Performance Report

2008-01-24 Thread Ryo Tsuruta
Hi, Now I report the result of dm-band bandwidth control test I did yesterday. I've got really good results that dm-band works as I expected. I made several band-groups on several disk partitions and gave them heavy I/O loads. Hardware Spec. == DELL Dimention E521: Linux

RE: [PATCH] PCI: modify SB700 SATA MSI quirk

2008-01-24 Thread Shane Huang
Hi Tejun: > Okay, here's reformatted in-line version. Shane, please invest some > time into setting up email environment. Sending patches via email is > an important part of the linux kernel development process and if > you're gonna submit patches, you're just gonna have to do it. Right.

[PATCH] PCI: modify SB700 SATA MSI quirk

2008-01-24 Thread Shane Huang
SB700 SATA MSI bug will be fixed in SB700 revision A21 at hardware level, but the SB700 revision older than A21 will also be found in the market. This patch modify the original quirk commit bc38b411fe696fad32b261f492cb4afbf1835256 instead of withdrawing it. The patch also removes quirk to 0x4395

[PATCH] PCI: modify SB700 SATA MSI quirk

2008-01-24 Thread Tejun Heo
From: Shane Huang <[EMAIL PROTECTED]> SB700 SATA MSI bug will be fixed in SB700 revision A21 at hardware level, but the SB700 revision older than A21 will also be found in the market. This patch modify the original quirk commit bc38b411fe696fad32b261f492cb4afbf1835256 instead of withdrawing it.

Re: [kvm-devel] [PATCH] export notifier #1

2008-01-24 Thread Avi Kivity
Christoph Lameter wrote: On Thu, 24 Jan 2008, Andrea Arcangeli wrote: I think you should consider if you can also build a rmap per-MM like KVM does and index it by the virtual address like KVM does. Yes we have that. If we have that then we do not need the mmu_notifier. We could

Re: [PATCH] Convert ext4_ioctl to an unlocked_ioctl

2008-01-24 Thread Junio C Hamano
Mathieu Segaud <[EMAIL PROTECTED]> writes: > Signed-off-by: Mathieu Segaud <[EMAIL PROTECTED]> > --- > fs/ext4/dir.c |2 +- > fs/ext4/file.c |2 +- > fs/ext4/ioctl.c | 161 > --- > include/linux/ext4_fs.h |3 +-

Re: [dm-devel] [PATCH 0/2] dm-band: The I/O bandwidth controller: Overview

2008-01-24 Thread YAMAMOTO Takashi
> Hi, > > > > > On Wed, Jan 23, 2008 at 09:53:50PM +0900, Ryo Tsuruta wrote: > > > > > Dm-band gives bandwidth to each job according to its weight, > > > > > which each job can set its own value to. > > > > > At this time, a job is a group of processes with the same pid or pgrp > > > > > or

Re: 2.6.24 Kernel oops will running kernbench regression from 2.6.24-rc8-mm1

2008-01-24 Thread Kamalesh Babulal
Paul Mackerras wrote: > Kamalesh Babulal writes: > > NIP: 4570 LR: 0fc42dc0 CTR: > REGS: c0077b6bf8c0 TRAP: 0300 Not tainted (2.6.24-rc8-mm1-autotest) > MSR: 80001000 CR: 28022422 XER: > DAR: c0077b6bfce0, DSISR:

Re: [RFC] some page can't be migrated

2008-01-24 Thread Shaohua Li
On Fri, 2008-01-25 at 15:17 +1100, Nick Piggin wrote: > On Friday 25 January 2008 15:01, Christoph Lameter wrote: > > Acked-by: Christoph Lameter <[EMAIL PROTECTED]> > > > > Nick? Ok with you too? > > Yeah, for memory hot remove that makes sense. A comment > might be in order, at least a

[patch 1/4] mmu_notifier: Core code

2008-01-24 Thread Christoph Lameter
Core code for mmu notifiers. Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> Signed-off-by: Andrea Arcangeli <[EMAIL PROTECTED]> --- include/linux/mm_types.h |8 ++ include/linux/mmu_notifier.h | 152 +++ include/linux/page-flags.h |9

[patch 4/4] MMU notifier: invalidate_page callbacks using Linux rmaps

2008-01-24 Thread Christoph Lameter
These notifiers here use the Linux rmaps to perform the callbacks. In order to walk the rmaps locks must be held. Callbacks can therefore only operate in an atomic context. Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]> --- mm/filemap_xip.c |1 + mm/fremap.c |1 + mm/memory.c

[patch 2/4] mmu_notifier: Callbacks to invalidate address ranges

2008-01-24 Thread Christoph Lameter
The invalidation of address ranges in a mm_struct needs to be performed when pages are removed or permissions etc change. invalidate_range() is generally called with mmap_sem held but no spinlocks are active. Exceptions: We hold i_mmap_lock in __unmap_hugepage_range and sometimes in

[patch 3/4] mmu_notifier: invalidate_page callbacks for subsystems with rmap

2008-01-24 Thread Christoph Lameter
Callbacks to remove individual pages if the subsystem has an rmap capability. The pagelock is held but no spinlocks are held. The refcount of the page is elevated so that dropping the refcount in the subsystem will not directly free the page. The callbacks occur after the Linux rmaps have been

[patch 0/4] [RFC] MMU Notifiers V1

2008-01-24 Thread Christoph Lameter
This is a patchset implementing MMU notifier callbacks based on Andrea's earlier work. These are needed if Linux pages are referenced from something else than tracked by the rmaps of the kernel. To do: - Make locking requirements for the callbacks consistent and document them accurately. -

[PATCH 0/6] x86: some fixes of early_ioremap and EFI runtime services

2008-01-24 Thread Huang, Ying
This patchset fixes some bugs about early_ioremap and EFI runtime services. This patchset is based on latest x86 git tree and has been tested on EFI 32 and EFI 64 platform. Best Regards, Huang Ying -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

[PATCH 5/6] x86: use reboot_type on EFI 32

2008-01-24 Thread Huang, Ying
This patch makes reboot_type of BOOT_EFI is used on i386 too. Because correpsonding reboot code of i386 and x86_64 is merged. Signed-off-by: Huang Ying <[EMAIL PROTECTED]> --- arch/x86/kernel/efi.c |2 -- 1 file changed, 2 deletions(-) --- a/arch/x86/kernel/efi.c +++

[PATCH 3/6] x86: early_ioremap_reset fix

2008-01-24 Thread Huang, Ying
This patch fixes a bug of early_ioremap_reset. Signed-off-by: Huang Ying <[EMAIL PROTECTED]> --- arch/x86/mm/ioremap_32.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/mm/ioremap_32.c +++ b/arch/x86/mm/ioremap_32.c @@ -285,7 +285,7 @@ void __init

[PATCH 4/6] x86: fix some bugs about EFI runtime code mapping

2008-01-24 Thread Huang, Ying
This patch fixes some bugs of making EFI runtime code executable. - Use change_page_attr in i386 too. Because the runtime code may be mapped not through ioremap. - If there is no _PAGE_NX in __supported_pte_mask, the change_page_attr is not called. - Make efi_ioremap map pages as

[PATCH 1/6] x86: fix NX bit handling in change_page_attr

2008-01-24 Thread Huang, Ying
This patch fixes a bug of change_page_attr/change_page_attr_addr on Intel i386/x86_64 CPUs. After changing page attribute to be executable with these functions, the page remains un-executable on Intel i386/x86_64 CPU. Because on Intel i386/x86_64 CPU, only if the "NX" bits of all three level

[PATCH 2/6] x86: make early_ioremap_debug early_param

2008-01-24 Thread Huang, Ying
This patch makes "early_ioremap_debug" a early parameter, because "early_ioreamp/early_iounmap" is only used during early boot stage. Signed-off-by: Huang Ying <[EMAIL PROTECTED]> --- arch/x86/mm/ioremap_32.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---

[PATCH 6/6] x86: fixes some bugs about EFI memory map handling

2008-01-24 Thread Huang, Ying
This patch fixes some bugs of EFI memory handing code. - On x86_64, it is possible that EFI memory map can not be mapped via identity map, so efi_map_memmap is removed, just use early_ioremap. - On i386, the EFI memory map mapping take effect cross paging_init, so it is not necessary to use

Re: [PATCH] x86: trim ram need to check if mtrr is there v2

2008-01-24 Thread H. Peter Anvin
Yinghai Lu wrote: H. Peter Anvin wrote: Looks like the code doesn't check that the CPU *has* MTRRs... so check it mtrr is there, also check if mem less 4G and is AMD as early Why the check for < 4 GB? The same thing applies to memory below the 4 GB limit -- in fact, we've had a number of

Re: bluetooth : lockdep warning on rfcomm

2008-01-24 Thread Dave Young
On Jan 24, 2008 5:25 PM, Dave Young <[EMAIL PROTECTED]> wrote: > > On Jan 24, 2008 11:02 AM, Dave Young <[EMAIL PROTECTED]> wrote: > > = > > [ INFO: possible recursive locking detected ] > > 2.6.24-rc8-mm1 #8 > >

Re: [PATCH] 2.4: fix memory corruption from misinterpreted bad_inode_ops return values

2008-01-24 Thread Willy Tarreau
On Thu, Jan 24, 2008 at 04:48:10PM -0600, Eric Sandeen wrote: > dann frazier wrote: > > > Thanks Eric. Sounds like my comment about exercising these code paths > > wasn't too clear - the comments with your patch do make the issue > > clear, and this program demonstrates the void cast promotion

[PATCH] x86: ioremap_nocache fix

2008-01-24 Thread Huang, Ying
This patch fixes a bug of ioremap_nocache. ioremap_nocache() will call __ioremap() with flags != 0 to do the real work, which will call change_page_attr_addr() if phys_addr + size - 1 < (end_pfn_map << PAGE_SHIFT). But some pages between 0 ~ end_pfn_map << PAGE_SHIFT are not mapped by identity

Re: [RFC] some page can't be migrated

2008-01-24 Thread Nick Piggin
On Friday 25 January 2008 14:09, Shaohua Li wrote: > On Fri, 2008-01-25 at 14:03 +1100, Nick Piggin wrote: > > On Wednesday 23 January 2008 17:22, Shaohua Li wrote: > > > Anonymous page might have fs-private metadata, the page is truncated. > > > As the page hasn't mapping, page migration refuse

[PATCH 1/3] exporting capability code/name pairs (try 2nd)

2008-01-24 Thread Kohei KaiGai
We can apply this patch to kernel-2.6.24. It enables to export code/name pairs of capabilities at /sys/kernel/capability/, as follows: [EMAIL PROTECTED] ~]# ls /sys/kernel/capability/ cap_audit_controlcap_kill cap_setgid cap_sys_ptrace cap_audit_write cap_lease

[PATCH 2/3] exporting capability code/name pairs (try 2nd)

2008-01-24 Thread Kohei KaiGai
We can apply this patch to libcap. It enables to obtain the list of capabilities running kernel supported dynamically, from /sys/kernel/capability. When we use libcap with this patch on the previous kernel, it apply static list of capabilities instead. Thanks, Signed-off-by: KaiGai Kohei

[PATCH 3/3] exporting capability code/name pairs (try 2nd)

2008-01-24 Thread Kohei KaiGai
We can apply this patch to libcap. This patch enables setcap command to print the list of capabilities running kernel supported, if the kernel exports capability code/name pairs. It is useful to confirm the name of capability when setting. Thanks, Signed-off-by: KaiGai Kohei <[EMAIL

Re: [patch 06/26] mount options: fix autofs4

2008-01-24 Thread Ian Kent
On Thu, 2008-01-24 at 20:33 +0100, Miklos Szeredi wrote: > plain text document attachment (autofs4_opts.patch) > From: Miklos Szeredi <[EMAIL PROTECTED]> > > Add uid= and gid= options to /proc/mounts for autofs4 filesystems. Apologies, I did say I would do this but have been quite busy. > >

Re: [PATCH for mm] Remove iBCS support

2008-01-24 Thread Valdis . Kletnieks
On Fri, 25 Jan 2008 12:44:05 +1030, David Newall said: > The benefit is not zero. Repeating myself: While the code is there, it > encourages either removal or repair. If the option to remove is taken > off the table then it will eventually be repaired. Well, if the 2.4 version hasn't been

Re: [RFC] some page can't be migrated

2008-01-24 Thread Christoph Lameter
On Fri, 25 Jan 2008, Nick Piggin wrote: > Yeah, for memory hot remove that makes sense. A comment > might be in order, at least a reference to the orphaned > page code in vmscan.c. Right. The surrounding comments in mm/migrate.c also need to be made consistent. The comment before is now

Re: [PATCH] x86: Construct 32 bit boot time page tables in native format.

2008-01-24 Thread Jeremy Fitzhardinge
Eric W. Biederman wrote: Note. I don't believe we use either trampoline (cpu startup or acpi wakeup) in the hypervisor case (esp Xen). So we should be able to completely ignore Xen and do the memcpy of pgd entries. Indeed. The alias mapping can be set up in native_pagetable_setup_done()

[PATCH] x86: Remove nx_enabled from fault.c

2008-01-24 Thread Harvey Harrison
On !PAE 32-bit, _PAGE_NX will be 0, making is_prefetch always return early. The test is sufficient on PAE as __supported_pte_mask is updated in the same places as nx_enabled in init_32.c which also takes disable_nx into account. Signed-off-by: Harvey Harrison <[EMAIL PROTECTED]> ---

Re: [patch] PCI: modify SB700 SATA MSI quirk

2008-01-24 Thread Greg KH
On Fri, Jan 25, 2008 at 11:48:29AM +0800, Shane Huang wrote: > Hi Tejun: > > > > You need to merge the above two messages into one patch description. > > > > After S-O-B, you can put --- and between it and the patch > > body, you can say things which you wanna mention but don't > > think

Re: [RFC] some page can't be migrated

2008-01-24 Thread Nick Piggin
On Friday 25 January 2008 15:01, Christoph Lameter wrote: > Acked-by: Christoph Lameter <[EMAIL PROTECTED]> > > Nick? Ok with you too? Yeah, for memory hot remove that makes sense. A comment might be in order, at least a reference to the orphaned page code in vmscan.c. Otherwise, it is OK by me.

RE: [PATCH UCC TDM 1/3 Updated] Platform changes for UCC TDM driver for MPC8323eRDB. Also includes related QE changes and dts entries.

2008-01-24 Thread Aggrwal Poonam
Hello Anton/Tabi I am not sure which is the best place to configure the pins. Because some drivers do it in one way and some in the other. I actually tried to make the driver similar to ucc_geth because it is a QE driver. The driver has no platform code in the platform files similar to ucc_geth.

Re: [RFC] some page can't be migrated

2008-01-24 Thread Christoph Lameter
Acked-by: Christoph Lameter <[EMAIL PROTECTED]> Nick? Ok with you too? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at

RE: [PATCH UCC TDM 3/3 ] Modified Documentation to explain dtsentries for TDM driver

2008-01-24 Thread Aggrwal Poonam
Hi Scott The device tree already has a brg-frequency property in qe node which is the value of BRGCLK. The function get_brg_clk uses this property to find the value of BRGCLK. In case this value is 0(some older u-boots populate bus-frequency property of qe and not the brg-frequency), get_brg_clk

Re: [RFC] some page can't be migrated

2008-01-24 Thread Shaohua Li
On Thu, 2008-01-24 at 19:37 -0800, Christoph Lameter wrote: > On Wed, 23 Jan 2008, Shaohua Li wrote: > > > + > > + /* > > +* See truncate_complete_page(). Anonymous page might have > > +* fs-private metadata, the page is truncated. Such page can't be > > +* migrated. Try to free

RE: [patch] PCI: modify SB700 SATA MSI quirk

2008-01-24 Thread Shane Huang
Hi Tejun: > You need to merge the above two messages into one patch description. > > After S-O-B, you can put --- and between it and the patch > body, you can say things which you wanna mention but don't > think should be included in commit message. OK, I'll have to submit another update

Re: [PATCH 9/10] introduce intel_menlow platform specific driver

2008-01-24 Thread Zhang Rui
On Mon, 2008-01-21 at 13:45 +0800, Li Zefan wrote: > >>> +static int __init intel_menlow_module_init(void) > >>> +{ > >>> + int result = -ENODEV; > >>> + acpi_status status; > >>> + unsigned long enable; > >>> + > >>> + if (acpi_disabled) > >>> + return result; > >>> + > >>> +

[PATCH] x86: trim ram need to check if mtrr is there v2

2008-01-24 Thread Yinghai Lu
[PATCH] x86: trim ram need to check if mtrr is there v2 > >Jeremy Fitzhardinge wrote: > > When booting a current x86.git kernel under kvm, I get this: > > > > (qemu) Linux version 2.6.24-rc8 ([EMAIL PROTECTED]) (gcc version 4.1.2 > > 20070925 > > (Red Hat 4.1.2-33)) #1928 SMP PREEMPT Thu Jan

Re: [RFC] some page can't be migrated

2008-01-24 Thread Christoph Lameter
On Wed, 23 Jan 2008, Shaohua Li wrote: > + > + /* > + * See truncate_complete_page(). Anonymous page might have > + * fs-private metadata, the page is truncated. Such page can't be > + * migrated. Try to free metadata, so the page can be freed. > + */ Well maybe you

Re: [patch] PCI: modify SB700 SATA MSI quirk

2008-01-24 Thread Tejun Heo
Shane Huang wrote: > I did some modification to this patch and send it again, Please check > it. > The quirk to 0x4395 has been removed because 0x4395 only belongs to > SB800. > >> SB700 SATA MSI bug will be fixed in SB700 revision A21 at >> hardware level, >> but the SB700 revision older than

Re: [RFC][PATCH 3/8] mem_notify v5: introduce /dev/mem_notify new device (the core of this patch series)

2008-01-24 Thread KOSAKI Motohiro
Hi Daniel > > +#define PROC_WAKEUP_GUARD (10*HZ) > [...] > > + timeout = info->last_proc_notify + PROC_WAKEUP_GUARD; > > If only one or a few processes are using the system I think 10 seconds > is a little long time to wait before they get the notification again. > Can we decrease this

RE: [patch] PCI: modify SB700 SATA MSI quirk

2008-01-24 Thread Shane Huang
I did some modification to this patch and send it again, Please check it. The quirk to 0x4395 has been removed because 0x4395 only belongs to SB800. Thanks Shane > -Original Message- > From: Shane Huang > > SB700 SATA MSI bug will be fixed in SB700 revision A21 at > hardware level,

Re: [RFC] some page can't be migrated

2008-01-24 Thread Shaohua Li
On Thu, 2008-01-24 at 19:12 -0800, Christoph Lameter wrote: > On Fri, 25 Jan 2008, Shaohua Li wrote: > > > the page is still in lru list. Memory hot remove will try to migrate the > > page. > > So this is an abandoned page with a refcount that only exists because of > fs private data? Yes,

Re: [RFC] some page can't be migrated

2008-01-24 Thread Christoph Lameter
On Fri, 25 Jan 2008, Shaohua Li wrote: > the page is still in lru list. Memory hot remove will try to migrate the > page. So this is an abandoned page with a refcount that only exists because of fs private data? Truncate race? -- To unsubscribe from this list: send the line "unsubscribe

Re: [RFC] some page can't be migrated

2008-01-24 Thread Christoph Lameter
On Fri, 25 Jan 2008, Nick Piggin wrote: > On Wednesday 23 January 2008 17:22, Shaohua Li wrote: > > Anonymous page might have fs-private metadata, the page is truncated. As > > the page hasn't mapping, page migration refuse to migrate the page. It > > appears the page is only freed in page

Re: [RFC] some page can't be migrated

2008-01-24 Thread Shaohua Li
On Fri, 2008-01-25 at 14:03 +1100, Nick Piggin wrote: > On Wednesday 23 January 2008 17:22, Shaohua Li wrote: > > Anonymous page might have fs-private metadata, the page is truncated. As > > the page hasn't mapping, page migration refuse to migrate the page. It > > appears the page is only freed

Re: [agp-mm][PATCH 1/4][intel_iommu] explicit export current graphics dmar status

2008-01-24 Thread Zhenyu Wang
Mark, sorry for missing this for long time... On 2008.01.08 12:44:20 -0800, mark gross wrote: > > > > > > [agp-mm] [intel_iommu] explicit export current graphics dmar status > > > > > > To make it possbile to tell other modules about curent > > > graphics dmar engine status, that could decide

Re: [RFC] some page can't be migrated

2008-01-24 Thread Nick Piggin
On Wednesday 23 January 2008 17:22, Shaohua Li wrote: > Anonymous page might have fs-private metadata, the page is truncated. As > the page hasn't mapping, page migration refuse to migrate the page. It > appears the page is only freed in page reclaim and if zone watermark is > low, the page is

Re: [PATCH 09/26] atl1: refactor tx processing

2008-01-24 Thread Jeff Garzik
Jay Cliburn wrote: On Tue, 22 Jan 2008 18:31:09 -0600 Jay Cliburn <[EMAIL PROTECTED]> wrote: On Tue, 22 Jan 2008 04:58:17 -0500 Jeff Garzik <[EMAIL PROTECTED]> wrote: [...] for such a huge patch, this description is very tiny. [describe] what is refactored, and why. Is this one any

Re: [PATCH] x86: Construct 32 bit boot time page tables in native format.

2008-01-24 Thread Eric W. Biederman
"H. Peter Anvin" <[EMAIL PROTECTED]> writes: > Jeremy Fitzhardinge wrote: >> H. Peter Anvin wrote: >>> No, if Xen wasn't an issue there wouldn't be anything to do for the PAE case >>> at all (since the PGD is trivial.) >>> >>> Copying PMDs is more or less an analogous case of the !PAE case, once

Re: [PATCH] x86: Construct 32 bit boot time page tables in native format.

2008-01-24 Thread H. Peter Anvin
Eric W. Biederman wrote: We already do this on the 64bit side. We reuse the kernel and the identity parts from the core kernel page tables but it is actually a distinct page table. x86_64 has not had the identity mappings mapped in any of the normal page tables since the relocatable kernel

  1   2   3   4   5   6   7   8   9   10   >