Re: [PATCH -mm] sata_nv: add suspend/resume support

2006-12-11 Thread Jeff Garzik
Robert Hancock wrote: +static void nv_remove_one (struct pci_dev *pdev) +{ + struct ata_host *host = dev_get_drvdata(pdev-dev); + struct nv_host_priv *hpriv = host-private_data; + + kfree(hpriv); + ata_pci_remove_one(pdev); +} It is unwise to free the

[PATCH] libata: don't initialize sg in ata_exec_internal() if DMA_NONE (take #2)

2006-12-11 Thread Tejun Heo
Calling sg_init_one() with NULL buf causes oops on certain configurations. Don't initialize sg in ata_exec_internal() if DMA_NONE and make the function complain if @buf is NULL when dma_dir isn't DMA_NONE. While at it, fix comment. The problem is discovered and initial patch was submitted by

[PATCH -mm] sata_nv: fix kfree ordering in remove

2006-12-11 Thread Robert Hancock
Jeff Garzik wrote: It is unwise to free the struct before the ports are even detached. Right, theoretically something bad could happen here (though not likely). Here's a fix. Sorry for attaching with something so trivial, but Thunderbird isn't very cooperative.. --- The suspend/resume

[PATCH] kvm needs menu structure

2006-12-11 Thread Randy Dunlap
From: Randy Dunlap [EMAIL PROTECTED] KVM config items need to be inside a menu structure instead of dangling off of Device Drivers. Signed-off-by: Randy Dunlap [EMAIL PROTECTED] --- drivers/kvm/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---

Re: [PATCH] kvm needs menu structure

2006-12-11 Thread Avi Kivity
Randy Dunlap wrote: From: Randy Dunlap [EMAIL PROTECTED] KVM config items need to be inside a menu structure instead of dangling off of Device Drivers. A similar patch (kvm-put-kvm-in-a-new-virtualization-menu.patch) is already queued in -mm. Andrew, Randy's patch shouldn't be applied,

[take26-resend1 8/8] kevent: Kevent posix timer notifications.

2006-12-11 Thread Evgeniy Polyakov
Kevent posix timer notifications. Simple extensions to POSIX timers which allows to deliver notification of the timer expiration through kevent queue. Example application posix_timer.c can be found in archive on project homepage. Signed-off-by: Evgeniy Polyakov [EMAIL PROTECTED] diff --git

[take26-resend1 1/8] kevent: Description.

2006-12-11 Thread Evgeniy Polyakov
Description. diff --git a/Documentation/kevent.txt b/Documentation/kevent.txt new file mode 100644 index 000..2e03a3f --- /dev/null +++ b/Documentation/kevent.txt @@ -0,0 +1,240 @@ +Description. + +int kevent_init(struct kevent_ring *ring, unsigned int ring_size, + unsigned int

[take26-resend1 4/8] kevent: Socket notifications.

2006-12-11 Thread Evgeniy Polyakov
Socket notifications. This patch includes socket send/recv/accept notifications. Using trivial web server based on kevent and this features instead of epoll it's performance increased more than noticebly. More details about various benchmarks and server itself (evserver_kevent.c) can be found

[take26-resend1 0/8] kevent: Generic event handling mechanism.

2006-12-11 Thread Evgeniy Polyakov
Generic event handling mechanism. Kevent is a generic subsytem which allows to handle event notifications. It supports both level and edge triggered events. It is similar to poll/epoll in some cases, but it is more scalable, it is faster and allows to work with essentially eny kind of events.

[take26-resend1 5/8] kevent: Timer notifications.

2006-12-11 Thread Evgeniy Polyakov
Timer notifications. Timer notifications can be used for fine grained per-process time management, since interval timers are very inconvenient to use, and they are limited. This subsystem uses high-resolution timers. id.raw[0] is used as number of seconds id.raw[1] is used as number of

[take26-resend1 6/8] kevent: Pipe notifications.

2006-12-11 Thread Evgeniy Polyakov
Pipe notifications. diff --git a/fs/pipe.c b/fs/pipe.c index f3b6f71..aeaee9c 100644 --- a/fs/pipe.c +++ b/fs/pipe.c @@ -16,6 +16,7 @@ #include linux/uio.h #include linux/highmem.h #include linux/pagemap.h +#include linux/kevent.h #include asm/uaccess.h #include asm/ioctls.h @@ -312,6

[take26-resend1 7/8] kevent: Signal notifications.

2006-12-11 Thread Evgeniy Polyakov
Signal notifications. This type of notifications allows to deliver signals through kevent queue. One can find example application signal.c on project homepage. If KEVENT_SIGNAL_NOMASK bit is set in raw_u64 id then signal will be delivered only through queue, otherwise both delivery types are

[take26-resend1 3/8] kevent: poll/select() notifications.

2006-12-11 Thread Evgeniy Polyakov
poll/select() notifications. This patch includes generic poll/select notifications. kevent_poll works simialr to epoll and has the same issues (callback is invoked not from internal state machine of the caller, but through process awake, a lot of allocations and so on). Signed-off-by: Evgeniy

Re: [take26-resend1 0/8] kevent: Generic event handling mechanism.

2006-12-11 Thread Jeff Garzik
Comments: * [oh, everybody will hate me for saying this, but...] to me, kevent implies an internal kernel subsystem. I would rather call it uevent or anything else lacking a 'k' prefix. * I like the absolute timespec (and use of timespec itself) * more on naming: I think kevent_open

Re: [PATCH v3 00/13] 2.6.20 Chelsio T3 RDMA Driver

2006-12-11 Thread Steve Wise
On Sun, 2006-12-10 at 20:02 -0800, Roland Dreier wrote: I haven't seen any evidence of the corresponding ethernet NIC driver being merged for 2.6.20 (which is a prerequisite, right). What's the status of that? It is on its third or fourth round of review. The last driver posted on 12/7,

[git patches] net driver updates

2006-12-11 Thread Jeff Garzik
Please pull from 'upstream-linus' branch of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6.git upstream-linus to receive the following updates: drivers/net/Kconfig |8 + drivers/net/chelsio/cxgb2.c | 23 +- drivers/net/chelsio/sge.c | 115 -

Re: [take26-resend1 7/8] kevent: Signal notifications.

2006-12-11 Thread Mauricio Lin
Hi Evgeniy, I have used kobject_uevent() to notify userspace about some events. For instance, when memory comsumption reaches a predefined watermark, a signal is sent to userspace to allow applications to free resources. But I am not sure if kobject_uevent() is the more appropriate way for that

Re: [PATCH v3 00/13] 2.6.20 Chelsio T3 RDMA Driver

2006-12-11 Thread Divy Le Ray
Steve Wise wrote: On Sun, 2006-12-10 at 20:02 -0800, Roland Dreier wrote: I haven't seen any evidence of the corresponding ethernet NIC driver being merged for 2.6.20 (which is a prerequisite, right). What's the status of that? It is on its third or fourth round of review. The last

Re: [PATCH v3 00/13] 2.6.20 Chelsio T3 RDMA Driver

2006-12-11 Thread Divy Le Ray
Divy Le Ray wrote: Steve Wise wrote: On Sun, 2006-12-10 at 20:02 -0800, Roland Dreier wrote: I haven't seen any evidence of the corresponding ethernet NIC driver being merged for 2.6.20 (which is a prerequisite, right). What's the status of that? It is on its third or fourth round

Re: Broken commit: [NETFILTER]: ipt_REJECT: remove largely duplicate route_reverse function

2006-12-11 Thread David Miller
From: Herbert Xu [EMAIL PROTECTED] Date: Fri, 1 Dec 2006 15:37:55 +1100 So in general when allocating packets we have two scenarios: 1) The dst is known and fixed, i.e., all datagram protocols. This is the easy case where the headroom is known exactly beforehand. 2) The dst is unknown or

Re: Kevent POSIX timers support.

2006-12-11 Thread David Miller
From: Evgeniy Polyakov [EMAIL PROTECTED] Date: Tue, 28 Nov 2006 22:22:36 +0300 And, btw, last time I checked, aligned_u64 was not exported to userspace. It is in linux/types.h and not protected by __KERNEL__ ifdefs. Perhaps you mean something else? - To unsubscribe from this list: send the

Re: [RFC] rfkill - Add support for input key to control wireless radio

2006-12-11 Thread Dmitry Torokhov
Hi Ivo, On Thursday 07 December 2006 16:53, Ivo van Doorn wrote: Hi,  2 - Hardware key that does not control the hardware radio and does not report anything to userspace Kind of uninteresting button ;) And this is the button that rfkill was originally designed for.

Re: Kevent POSIX timers support.

2006-12-11 Thread Evgeniy Polyakov
On Mon, Dec 11, 2006 at 05:36:44PM -0800, David Miller ([EMAIL PROTECTED]) wrote: From: Evgeniy Polyakov [EMAIL PROTECTED] Date: Tue, 28 Nov 2006 22:22:36 +0300 And, btw, last time I checked, aligned_u64 was not exported to userspace. It is in linux/types.h and not protected by

Re: [take26-resend1 0/8] kevent: Generic event handling mechanism.

2006-12-11 Thread Evgeniy Polyakov
On Mon, Dec 11, 2006 at 10:16:30AM -0500, Jeff Garzik ([EMAIL PROTECTED]) wrote: Comments: * [oh, everybody will hate me for saying this, but...] to me, kevent implies an internal kernel subsystem. I would rather call it uevent or anything else lacking a 'k' prefix. It is kernel

Re: [take26-resend1 7/8] kevent: Signal notifications.

2006-12-11 Thread Evgeniy Polyakov
On Mon, Dec 11, 2006 at 12:32:55PM -0400, Mauricio Lin ([EMAIL PROTECTED]) wrote: Hi Evgeniy, Hi Mauricio. I have used kobject_uevent() to notify userspace about some events. For instance, when memory comsumption reaches a predefined watermark, a signal is sent to userspace to allow

[take27 8/8] kevent: Kevent posix timer notifications.

2006-12-11 Thread Evgeniy Polyakov
Kevent posix timer notifications. Simple extensions to POSIX timers which allows to deliver notification of the timer expiration through kevent queue. Example application posix_timer.c can be found in archive on project homepage. Signed-off-by: Evgeniy Polyakov [EMAIL PROTECTED] diff --git

[take27 6/8] kevent: Pipe notifications.

2006-12-11 Thread Evgeniy Polyakov
Pipe notifications. diff --git a/fs/pipe.c b/fs/pipe.c index f3b6f71..aeaee9c 100644 --- a/fs/pipe.c +++ b/fs/pipe.c @@ -16,6 +16,7 @@ #include linux/uio.h #include linux/highmem.h #include linux/pagemap.h +#include linux/kevent.h #include asm/uaccess.h #include asm/ioctls.h @@ -312,6

[take27 4/8] kevent: Socket notifications.

2006-12-11 Thread Evgeniy Polyakov
Socket notifications. This patch includes socket send/recv/accept notifications. Using trivial web server based on kevent and this features instead of epoll it's performance increased more than noticebly. More details about various benchmarks and server itself (evserver_kevent.c) can be found

[take27 0/8] kevent: Generic event handling mechanism.

2006-12-11 Thread Evgeniy Polyakov
Generic event handling mechanism. Kevent is a generic subsytem which allows to handle event notifications. It supports both level and edge triggered events. It is similar to poll/epoll in some cases, but it is more scalable, it is faster and allows to work with essentially eny kind of events.

[take27 7/8] kevent: Signal notifications.

2006-12-11 Thread Evgeniy Polyakov
Signal notifications. This type of notifications allows to deliver signals through kevent queue. One can find example application signal.c on project homepage. If KEVENT_SIGNAL_NOMASK bit is set in raw_u64 id then signal will be delivered only through queue, otherwise both delivery types are

[take27 3/8] kevent: poll/select() notifications.

2006-12-11 Thread Evgeniy Polyakov
poll/select() notifications. This patch includes generic poll/select notifications. kevent_poll works simialr to epoll and has the same issues (callback is invoked not from internal state machine of the caller, but through process awake, a lot of allocations and so on). Signed-off-by: Evgeniy

[take27 5/8] kevent: Timer notifications.

2006-12-11 Thread Evgeniy Polyakov
Timer notifications. Timer notifications can be used for fine grained per-process time management, since interval timers are very inconvenient to use, and they are limited. This subsystem uses high-resolution timers. id.raw[0] is used as number of seconds id.raw[1] is used as number of

[take27 1/8] kevent: Description.

2006-12-11 Thread Evgeniy Polyakov
Description. diff --git a/Documentation/kevent.txt b/Documentation/kevent.txt new file mode 100644 index 000..2e03a3f --- /dev/null +++ b/Documentation/kevent.txt @@ -0,0 +1,240 @@ +Description. + +int kevent_init(struct kevent_ring *ring, unsigned int ring_size, + unsigned int

Re: [RFC] rfkill - Add support for input key to control wireless radio

2006-12-11 Thread Ivo Van Doorn
Hi, 2 - Hardware key that does not control the hardware radio and does not report anything to userspace Kind of uninteresting button ;) And this is the button that rfkill was originally designed for. Laptops with integrated WiFi cards from Ralink have a hardware button

Re: [PATCH v2] libata: Simulate REPORT LUNS for ATAPI devices

2006-12-11 Thread Jeff Garzik
Darrick J. Wong wrote: The Quantum GoVault SATAPI removable disk device returns ATA_ERR in response to a REPORT LUNS packet. If this happens to an ATAPI device that is attached to a SAS controller (this is the case with sas_ata), the device does not load because SCSI won't touch a SCSI device

Re: [PATCH v2] libata: Simulate REPORT LUNS for ATAPI devices

2006-12-11 Thread James Bottomley
On Mon, 2006-12-11 at 11:24 -0500, Jeff Garzik wrote: Darrick J. Wong wrote: The Quantum GoVault SATAPI removable disk device returns ATA_ERR in response to a REPORT LUNS packet. If this happens to an ATAPI device that is attached to a SAS controller (this is the case with sas_ata), the

Re: [PATCH v2] libata: Simulate REPORT LUNS for ATAPI devices

2006-12-11 Thread Jeff Garzik
James Bottomley wrote: On Mon, 2006-12-11 at 11:24 -0500, Jeff Garzik wrote: Darrick J. Wong wrote: The Quantum GoVault SATAPI removable disk device returns ATA_ERR in response to a REPORT LUNS packet. If this happens to an ATAPI device that is attached to a SAS controller (this is the case

[PATCH] [FS_ENET] OF-related update for FEC and SCC MAC's

2006-12-11 Thread Vitaly Bordug
Updated direct resource pass with ioremap call, make it grant proper IRQ mapping, stuff incompatible with the new approach were respectively put under #ifndef CONFIG_PPC_MERGE. --- drivers/net/fs_enet/mac-fec.c | 13 + drivers/net/fs_enet/mac-scc.c |6 --

Re: [PATCH] [FS_ENET] OF-related update for FEC and SCC MAC's

2006-12-11 Thread Vitaly Bordug
On Mon, 11 Dec 2006 21:00:49 +0300 Vitaly Bordug [EMAIL PROTECTED] wrote: Updated direct resource pass with ioremap call, make it grant proper IRQ mapping, stuff incompatible with the new approach were respectively put under #ifndef CONFIG_PPC_MERGE. Hrm, Signed-off-by: missed, I'll

<    3   4   5   6   7   8