Re: [PATCH] Sanely size hash tables when using large base pages.

2006-12-25 Thread Fengguang Wu
Hi Paul, On Tue, Dec 26, 2006 at 03:16:52PM +0900, Paul Mundt wrote: > pidhash_shift = max(4, fls(megabytes * 4)); > pidhash_shift = min(12, pidhash_shift); > pidhash_size = 1 << pidhash_shift; > > + size = pidhash_size * sizeof(struct hlist_head); > + if (unlikely(size

[PATCH] Sanely size hash tables when using large base pages.

2006-12-25 Thread Paul Mundt
At the moment both the pidhash and inode/dentry cache hash tables (common by way of alloc_large_system_hash()) are incorrectly sized by their respective detection logic when we attempt to use large base pages on systems with little memory. This results in odd behaviour when using a 64kB PAGE_SIZE,

RE: Binary Drivers

2006-12-25 Thread David Schwartz
> I have no idea why you assume that "having the right to do X" implies > "must be told how to do X". The have the right (except as laws > prohibit it) to modify the car's systems, but (except for some > specific legal requirements) the manufacturer is not required to > explain anything, even basi

Re: selinux networking: sleeping functin called from invalid context in 2.6.20-rc[12]

2006-12-25 Thread Paul Moore
-Original Message- From: Andrew Morton <[EMAIL PROTECTED]> Date: Sunday, Dec 24, 2006 7:25 pm Subject: Re: selinux networking: sleeping functin called from invalid context in 2.6.20-rc[12] On Mon, 25 Dec 2006 05:21:24 +0800 >"Adam J. Richter" <[EMAIL PROTECTED]> wrote: > >> Under 2.

[RFC][PATCH -mm take2 5/5] add "add" element in /sys/class/misc/netconsole

2006-12-25 Thread Keiichi KII
From: Keiichi KII <[EMAIL PROTECTED]> This patch contains switch function of netpoll. If "enabled" attribute of certain port is '1', this port is used and the configurations of this port are uable to change. If "enabled" attribute of certain port is '0', this port isn't used and the configuratio

[RFC][PATCH -mm take2 4/5] switch function of netpoll

2006-12-25 Thread Keiichi KII
From: Keiichi KII <[EMAIL PROTECTED]> This patch contains switch function of netpoll. If "enabled" attribute of certain port is '1', this port is used and the configurations of this port are uable to change. If "enabled" attribute of certain port is '0', this port isn't used and the configuratio

[RFC][PATCH -mm take2 3/5] add interface for netconsole using sysfs

2006-12-25 Thread Keiichi KII
From: Keiichi KII <[EMAIL PROTECTED]> This patch contains the following changes. create a sysfs entry for netconsole in /sys/class/misc. This entry has elements related to netconsole as follows. You can change configuration of netconsole(writable attributes such as IP address, port number and so

[RFC][PATCH -mm take2 1/5] marking __init

2006-12-25 Thread Keiichi KII
From: Keiichi KII <[EMAIL PROTECTED]> This patch contains the following cleanups. - add __init for initialization functions(option_setup() and init_netconsole()). Signed-off-by: Keiichi KII <[EMAIL PROTECTED]> Signed-off-by: Takayoshi Kochi <[EMAIL PROTECTED]> --- --- linux-mm/drivers/net/net

[PATCH -mm take2 0/5] proposal for dynamic configurable netconsole

2006-12-25 Thread Keiichi KII
From: Keiichi KII <[EMAIL PROTECTED]> The netconsole is a very useful module for collecting kernel message under certain circumstances(e.g. disk logging fails, serial port is unavailable). But current netconsole is not flexible. For example, if you want to change ip address for logging agent, in

Re: [RFC][PATCH -mm 3/5] add interface for netconsole using sysfs

2006-12-25 Thread Keiichi KII
Thank you for your replies and reviews. I will follow your advices. static LIST_HEAD(target_list); static DEFINE_SPINLOCK(target_list_lock); +static ssize_t show_local_ip(struct netconsole_target *nt, char *buf) +{ + return sprintf(buf, "%d.%d.%d.%d\n", HIPQUAD(nt->np.local_ip));

Re: [RFC][PATCH -mm 0/5] proposal for dynamic configurable netconsole

2006-12-25 Thread Keiichi KII
Thank you for your comments. So, I propose the following extended features for netconsole. 1) support for multiple logging agents. 2) add interface to access each parameter of netconsole using sysfs. This patch is for linux-2.6.20-rc1-mm1 and is divided to each function. Your comments are v

Re: ebtables problems on 2.6.19.1 *and* 2.6.16.36

2006-12-25 Thread Chuck Ebbert
In-Reply-To: <[EMAIL PROTECTED]> On Sat, 23 Dec 2006 22:07:46 -0500, Christopher S. Aker wrote: > We're hitting this too, on both 2.6.16.36 and 2.6.19.1. > > BUG: unable to handle kernel paging request at virtual address f8cec008 > printing eip: > c0462272 > *pde = > Oops: [#1] >

What's in git.git (stable) and announcing GIT 1.5.0 preview

2006-12-25 Thread Junio C Hamano
GIT v1.5.0 preview This is not yet -rc1 where all new topics close, but I think it is getting pretty closer. I'd still want to merge updates to fsck/prune to honor reflog entries before -rc1. I think there are quite a lot of documentation updates remaining after that. There is no patch for "fix

Re: Kernel 2.6.17.13: eth2: TX underrun, threshold adjusted.

2006-12-25 Thread Robert Hancock
Justin Piszcz wrote: I am using a dual port Intel NIC on an A-Bit IC7-G; any reason why I get these? [4298634.444000] eth2: TX underrun, threshold adjusted. [4299146.645000] eth2: TX underrun, threshold adjusted. ... I am using the e100 driver, MAC addr commented out with **. [4294675.2080

Re: Binary Drivers

2006-12-25 Thread Scott Preece
On 12/25/06, David Schwartz <[EMAIL PROTECTED]> wrote: If I bought the car from the manufacturer, it also must include any rights the manufacturer might have to the car's use. That includes using the car to violate emission control measures. If I didn't buy the right to use the car that way (

Re: Linux 2.6.20-rc2

2006-12-25 Thread Florin Iucha
On Tue, Dec 26, 2006 at 12:06:58AM +0100, Trond Myklebust wrote: > On Mon, 2006-12-25 at 16:56 -0600, Florin Iucha wrote: > > BTW, I am using NFSv4 exported async from the server and mounted > > without any extra options on the client. > > Doesn't look like it has much to do with NFS. The Oopses a

Re: Putting the sdhci to sleep safely [with attachments]

2006-12-25 Thread Tony Mobily
Hi, > (Please always cc: linux-kernel@ with such stuff). Gosh, alright. I am gonna embarrass myself here, but I guess this is part of the game...! :-D >> I am the Editor In Chief of Free Software Magazine >> (http://www.freesoftwaremagazine.com) >> I am in a bit of a mission: I would like to see

Re: [PATCH 6/6] containers: BeanCounters over generic process containers

2006-12-25 Thread Paul Menage
On 12/25/06, Kirill Korotaev <[EMAIL PROTECTED]> wrote: > also note that certain limits are much more > complicated than the (very simple) file limits > and the code will be called at higher frequency Agree with this. This patch doesn't prove that BCs can be integrated to the containers infrastru

Kernel 2.6.17.13: eth2: TX underrun, threshold adjusted.

2006-12-25 Thread Justin Piszcz
I am using a dual port Intel NIC on an A-Bit IC7-G; any reason why I get these? [4298634.444000] eth2: TX underrun, threshold adjusted. [4299146.645000] eth2: TX underrun, threshold adjusted. [4299146.645000] eth2: TX underrun, threshold adjusted. [4299147.437000] eth2: TX underrun, threshold adj

RE: Binary Drivers

2006-12-25 Thread David Schwartz
> > Now, let's try it another way: Are they allowed to sell a car that > > incorporates a computer that uses a trade-secret algorithm for > > controlling > > the fuel injection to get 20 more horsepower and 5% better > > mileage if it's > > impossible to *start* the car without knowing that algori

Regression in kernel linux-2.6.20-rc1/2: Problems with poweroff

2006-12-25 Thread Berthold Cogel
Hello! 'shutdown -h now' doesn't work for my system (Acer Extensa 3002 WLMi) with linux-2.6.20-rc kernels. The system reboots instead. I've checked linux-2.6.19.1 with an almost identical .config file (differences because of new or changed options). For pre 2.6.20 kernels shutdown works for my com

tty->low_latency + irq context

2006-12-25 Thread Jiri Slaby
Hi! * tty_flip_buffer_push- terminal * @tty: tty to push * * Queue a push of the terminal flip buffers to the line discipline. This * function must not be called from IRQ context if tty->low_latency is set. But some drivers (mxser, nozomi, hvsi...) sets low_late

Re: [PATCH] powerpc: linkstation uses uimage style zImages

2006-12-25 Thread Guennadi Liakhovetski
On Mon, 25 Dec 2006, Mark Glines wrote: > Guennadi Liakhovetski wrote: > > Yes, I do very much intend to test it on real hardware. I have a couple of > Kurobox HGs which desperately need a 21st century kernel. I still need to Ah, what a pity:-) I mean, it is good, but it's exactly the same har

Re: [PATCH] powerpc: linkstation uses uimage style zImages

2006-12-25 Thread Mark Glines
Guennadi Liakhovetski wrote: Mark Thanks for the patch. Are you actually going to test this kernel on a real hardware or just testing builds? If it is going to be a real life test, I'd be interested to know what exactly hardware, U-boot version, dts, and what results. Yes, I do very much in

Re: Linux 2.6.20-rc2

2006-12-25 Thread Trond Myklebust
On Mon, 2006-12-25 at 16:56 -0600, Florin Iucha wrote: > > The dmesg from the client machine is attached. > > Now, really. > > BTW, I am using NFSv4 exported async from the server and mounted > without any extra options on the client. > > florin Doesn't look like it has much to do with NFS. The

Linux 2.6.20-rc2

2006-12-25 Thread Florin Iucha
I've got an oops or two while copying 60 Gb of files over NFS then comparing them using diff. The client is AMD64 running Debian testing/unstable with the shinny new 2.6.20-rc2 kernel. The server is Debian testing with 2.6.18-3 distribution kernel. The source filesystem is ext3. I left the mach

Re: Linux 2.6.20-rc2

2006-12-25 Thread Florin Iucha
> The dmesg from the client machine is attached. Now, really. BTW, I am using NFSv4 exported async from the server and mounted without any extra options on the client. florin -- Bruce Schneier expects the Spanish Inquisition. http://geekz.co.uk/schneierfacts/fact/163 [ 2844.871895] BUG:

Re: [PATCH] powerpc: linkstation uses uimage style zImages

2006-12-25 Thread Guennadi Liakhovetski
Mark Thanks for the patch. Are you actually going to test this kernel on a real hardware or just testing builds? If it is going to be a real life test, I'd be interested to know what exactly hardware, U-boot version, dts, and what results. BTW, ack-ing your patch would be a bit easier if you s

[PATCH] powerpc: linkstation uses uimage style zImages

2006-12-25 Thread Mark Glines
Guennadi Liakhovetski wrote: On Mon, 25 Dec 2006, Mark Glines wrote: Followup: Yeah, it looks like it just doesn't know which format of zImage to produce for linkstation. I'm not sure what image should be used by default. I guess it depends on the bootloader. Maybe default to uImage, as uBoo

Re: Putting the sdhci to sleep safely [with attachments]

2006-12-25 Thread Pavel Machek
Hi! (Please always cc: linux-kernel@ with such stuff). > I am the Editor In Chief of Free Software Magazine > (http://www.freesoftwaremagazine.com) > I am in a bit of a mission: I would like to see the module sdhci put my > card reader to sleep without getting the system highly > unstable. This i

swsusp testing wanted (was Re: Linux 2.6.20-rc2)

2006-12-25 Thread Pavel Machek
Hi! > Rafael J. Wysocki (1): > ACPI: S4: Use "platform" rather than "shutdown" mode by default ...platform is right thing to do, but it is also "more aggresive" than "shutdown" -- it needs bigger chunk of ACPI BIOS to work properly. So, it would be nice to test 2.6.20-rc2 on your favourite

Re: Linux 2.6.20-rc2: forgot how to make a zImage on powerpc?

2006-12-25 Thread Guennadi Liakhovetski
On Mon, 25 Dec 2006, Mark Glines wrote: > Mark Glines wrote: > > Hmm. I'm trying to build 2.6.20-rc2 on a little powerpc box with > > arch/powerpc/configs/linkstation_defconfig, and I get: > ... > > MODPOST vmlinux > > ln: accessing `arch/powerpc/boot/zImage': No such file or directory > > make

Re: Linux 2.6.20-rc2: forgot how to make a zImage on powerpc?

2006-12-25 Thread Mark Glines
Mark Glines wrote: Hmm. I'm trying to build 2.6.20-rc2 on a little powerpc box with arch/powerpc/configs/linkstation_defconfig, and I get: ... MODPOST vmlinux ln: accessing `arch/powerpc/boot/zImage': No such file or directory make[1]: *** [arch/powerpc/boot/zImage] Error 1 make: *** [zImage

Re: BUG: scheduling while atomic - Linux 2.6.20-rc2-ga3d89517

2006-12-25 Thread Fabio Comolli
OK, I applied your patch to yesterday's Linus' GIT. I will run it for some days and will let you know if the problem represents. Please note that it happened only twice and I don't have any clue on how to reproduce it. I added Pavel and Rafael to CC-list because for the first time in at least six

Re: [PATCH -mm] MMCONFIG: Fix x86_64 ioremap base_address

2006-12-25 Thread OGAWA Hirofumi
Arjan van de Ven <[EMAIL PROTECTED]> writes: >> Current workaround is the following (both of linus and -mm), >> >> if (pci_mmcfg_config_num == 1 && >> cfg->pci_segment_group_number == 0 && >> (cfg->start_bus_number | cfg->end_bus_number) == 0) >> /*

Re: [PATCH -mm] MMCONFIG: Fix x86_64 ioremap base_address

2006-12-25 Thread OGAWA Hirofumi
Olivier Galibert <[EMAIL PROTECTED]> writes: > Sorry I missed the original email, but what is the chipset (name, pci > ID) of the board(s) with the problematic bios? I don't know, here is a comment of current code. /* Handle more broken MCFG tables on Asus etc. They only conta

Re: moxa serial driver testing

2006-12-25 Thread Sergei Organov
Jiri Slaby <[EMAIL PROTECTED]> writes: > Sergei Organov wrote: >> Jiri Slaby <[EMAIL PROTECTED]> writes: >> >>> [EMAIL PROTECTED] wrote: Hi Jiri, I've figured out that both old and new mxser drivers have two similar problems: 1. When there are data coming to a port,

Re: moxa serial driver testing

2006-12-25 Thread Jiri Slaby
Sergei Organov wrote: > Jiri Slaby <[EMAIL PROTECTED]> writes: > >> [EMAIL PROTECTED] wrote: >>> Hi Jiri, >>> >>> I've figured out that both old and new mxser drivers have two similar >>> problems: >>> >>> 1. When there are data coming to a port, sometimes opening of the port >>>entirely locks

Re: moxa serial driver testing (oopses)

2006-12-25 Thread Sergei Organov
Jiri Slaby <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] wrote: >> Hi Jiri, >> >> I've figured out that both old and new mxser drivers have two similar >> problems: >> >> 1. When there are data coming to a port, sometimes opening of the port >>entirely locks the box. This is quite reproduci

Re: [PATCH -mm] MMCONFIG: Fix x86_64 ioremap base_address

2006-12-25 Thread Olivier Galibert
Sorry I missed the original email, but what is the chipset (name, pci ID) of the board(s) with the problematic bios? OG. - 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/majordo

Re: [ANNOUNCE] RAIF: Redundant Array of Independent Filesystems

2006-12-25 Thread Nikolai Joukov
> > Every stackable file system caches the data at its own level and > > copies it from/to the lower file system's cached pages when necessary. > > ... > > this effectively reduces the system's cache memory size by two or more > > times. > > It should not be that bad with a decent cache replacement

Re: moxa serial driver testing

2006-12-25 Thread Sergei Organov
Jiri Slaby <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] wrote: >> Hi Jiri, >> >> I've figured out that both old and new mxser drivers have two similar >> problems: >> >> 1. When there are data coming to a port, sometimes opening of the port >>entirely locks the box. This is quite reproduc

[PATCH] Consolidate default sched_clock()

2006-12-25 Thread Alexey Dobriyan
Signed-off-by: Alexey Dobriyan <[EMAIL PROTECTED]> --- arch/alpha/kernel/time.c | 11 --- arch/arm/kernel/time.c | 10 -- arch/arm26/kernel/time.c |8 arch/avr32/kernel/time.c |9 - arch/cris/kernel/time.c |8 arch/h

Re: [PATCH -mm] MMCONFIG: Fix x86_64 ioremap base_address

2006-12-25 Thread Arjan van de Ven
> Current workaround is the following (both of linus and -mm), > > if (pci_mmcfg_config_num == 1 && > cfg->pci_segment_group_number == 0 && > (cfg->start_bus_number | cfg->end_bus_number) == 0) > /* Assume it can access 256M range */ > > But, if

Re: moxa serial driver testing

2006-12-25 Thread Sergei Organov
Jiri Slaby <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] wrote: >> Hi Jiri, >> >> I've figured out that both old and new mxser drivers have two similar >> problems: >> >> 1. When there are data coming to a port, sometimes opening of the port >>entirely locks the box. This is quite reproduc

Re: [PATCH 6/6] containers: BeanCounters over generic process containers

2006-12-25 Thread Pavel Emelianov
Herbert Poetzl wrote: > On Fri, Dec 22, 2006 at 06:14:48AM -0800, Paul Menage wrote: >> This patch implements the BeanCounter resource control abstraction >> over generic process containers. It contains the beancounter core >> code, plus the numfiles resource counter. It doesn't currently contain >

Re: [PATCH 6/6] containers: BeanCounters over generic process containers

2006-12-25 Thread Kirill Korotaev
Herbert, >>This patch implements the BeanCounter resource control abstraction >>over generic process containers. It contains the beancounter core >>code, plus the numfiles resource counter. It doesn't currently contain >>any of the memory tracking code or the code for switching beancounter >>conte

Re: [PATCH -mm] ehca: avoid crash on kthread_create() failure

2006-12-25 Thread Akinobu Mita
On Mon, Dec 25, 2006 at 11:41:32AM +0200, Muli Ben-Yehuda wrote: > On Mon, Dec 25, 2006 at 06:35:57PM +0900, Akinobu Mita wrote: > > On Mon, Dec 25, 2006 at 10:55:51AM +0200, Muli Ben-Yehuda wrote: > > > This is correct because cct is allocated via alloc_percpu, which in > > > turn calls kzalloc, w

Re: [PATCH -mm] ehca: avoid crash on kthread_create() failure

2006-12-25 Thread Muli Ben-Yehuda
On Mon, Dec 25, 2006 at 06:35:57PM +0900, Akinobu Mita wrote: > On Mon, Dec 25, 2006 at 10:55:51AM +0200, Muli Ben-Yehuda wrote: > > This is correct because cct is allocated via alloc_percpu, which in > > turn calls kzalloc, which means cct->task is NULL by default, but it's > > a little too obscur

Re: [PATCH -mm] ehca: avoid crash on kthread_create() failure

2006-12-25 Thread Akinobu Mita
On Mon, Dec 25, 2006 at 10:55:51AM +0200, Muli Ben-Yehuda wrote: > This is correct because cct is allocated via alloc_percpu, which in > turn calls kzalloc, which means cct->task is NULL by default, but it's > a little too obscure for me. How about making it explicit? > > task = kthread_create(...

Re: [PATCH] Update Documentation/pci.txt v7

2006-12-25 Thread Kenji Kaneshige
Grant Grundler wrote: On Sat, Dec 23, 2006 at 11:07:26PM -0700, Grant Grundler wrote: "final" patch v7 and commit log entry appended below. :) v8 adds 2cd round of feedback from Randy Dunlap. Going once...twice... ;) Full pci.txt text is easier to review at: http://www.parisc-linux.org/~

Re: [PATCH -mm] ehca: avoid crash on kthread_create() failure

2006-12-25 Thread Muli Ben-Yehuda
On Mon, Dec 25, 2006 at 05:30:23PM +0900, Akinobu Mita wrote: > On Mon, Dec 25, 2006 at 05:12:57PM +0900, Akinobu Mita wrote: > > Index: 2.6-mm/drivers/infiniband/hw/ehca/ehca_irq.c > > === > > --- 2.6-mm.orig/drivers/infiniband/hw/ehc

Re: [PATCH -mm] ehca: avoid crash on kthread_create() failure

2006-12-25 Thread Akinobu Mita
On Mon, Dec 25, 2006 at 05:12:57PM +0900, Akinobu Mita wrote: > Index: 2.6-mm/drivers/infiniband/hw/ehca/ehca_irq.c > === > --- 2.6-mm.orig/drivers/infiniband/hw/ehca/ehca_irq.c > +++ 2.6-mm/drivers/infiniband/hw/ehca/ehca_irq.c > @@ -

[PATCH] module: fix mod_sysfs_setup() return value

2006-12-25 Thread Akinobu Mita
mod_sysfs_setup() doesn't return error when kobject_add_dir() failed. Signed-off-by: Akinobu Mita <[EMAIL PROTECTED]> --- kernel/module.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) Index: 2.6-mm/kernel/module.c ===

[PATCH -mm] ehca: fix memleak on module unloading

2006-12-25 Thread Akinobu Mita
Subject: [PATCH] ehca: fix memleak on module unloading percpu data is not freed on module unloading. Cc: Heiko Carstens <[EMAIL PROTECTED]> Cc: Hoang-Nam Nguyen <[EMAIL PROTECTED]> Cc: Christoph Raisch <[EMAIL PROTECTED]> Signed-off-by: Akinobu Mita <[EMAIL PROTECTED]> --- drivers/infiniband/hw

[PATCH -mm] return error on create_comp_task() failure

2006-12-25 Thread Akinobu Mita
On Thu, Dec 21, 2006 at 10:22:02PM +0100, Heiko Carstens wrote: > > @@ -730,7 +732,7 @@ int ehca_create_comp_pool(void) > > > > for_each_online_cpu(cpu) { > > task = create_comp_task(pool, cpu); > > - if (task) { > > + if (!IS_ERR(task)) { > >

[PATCH -mm] ehca: avoid crash on kthread_create() failure

2006-12-25 Thread Akinobu Mita
On Thu, Dec 21, 2006 at 10:22:02PM +0100, Heiko Carstens wrote: > > Index: 2.6-mm/drivers/infiniband/hw/ehca/ehca_irq.c > > === > > --- 2.6-mm.orig/drivers/infiniband/hw/ehca/ehca_irq.c > > +++ 2.6-mm/drivers/infiniband/hw/ehca/ehca_ir

Re: [PATCH] Update Documentation/pci.txt v7

2006-12-25 Thread Grant Grundler
On Mon, Dec 25, 2006 at 01:06:35AM -0700, Grant Grundler wrote: > On Sat, Dec 23, 2006 at 11:07:26PM -0700, Grant Grundler wrote: > > "final" patch v7 and commit log entry appended below. :) > > v8 adds 2cd round of feedback from Randy Dunlap. Obviously the subject line is stale...it's really v8

Re: [PATCH] Update Documentation/pci.txt v7

2006-12-25 Thread Grant Grundler
On Sat, Dec 23, 2006 at 11:07:26PM -0700, Grant Grundler wrote: > "final" patch v7 and commit log entry appended below. :) v8 adds 2cd round of feedback from Randy Dunlap. Going once...twice... ;) > Full pci.txt text is easier to review at: > http://www.parisc-linux.org/~grundler/Documentatio

Re: [PATCH] Update Documentation/pci.txt v7

2006-12-25 Thread Grant Grundler
On Sun, Dec 24, 2006 at 11:16:22AM -0800, Randy Dunlap wrote: > On Sat, 23 Dec 2006 23:07:26 -0700 Grant Grundler wrote: > > > +10. Legacy I/O port free driver > > +~~~ > > That subject (and patches with similar subject) confuses me. > It's difficult to associate the a