From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by ozlabs.org (Postfix) with ESMTP id 8806767B7A for ; Thu, 17 Aug 2006 08:16:36 +1000 (EST) From: Arnd Bergmann To: linuxppc-dev@ozlabs.org Subject: Re: [PATCH 1/2]: powerpc/cell spidernet bottom half Date: Thu, 17 Aug 2006 00:16:46 +0200 References: <44E38157.4070805@garzik.org> <200608162324.47235.arnd@arndb.de> <20060816.143203.11626235.davem@davemloft.net> In-Reply-To: <20060816.143203.11626235.davem@davemloft.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Message-Id: <200608170016.47072.arnd@arndb.de> Cc: akpm@osdl.org, jeff@garzik.org, netdev@vger.kernel.org, jklewis@us.ibm.com, linux-kernel@vger.kernel.org, Jens.Osterkamp@de.ibm.com, David Miller List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Am Wednesday 16 August 2006 23:32 schrieb David Miller: > Can spidernet be told these kinds of parameters? =A0"N packets or > X usecs"? It can not do exactly this but probably we can get close to it by 1.) Setting a one-time interrupt to fire x*10=B5s after putting a packet into the TX queue. and 2.a) Enabling end of TX queue interrupts whenever more than y frames have been queued for TX. or 2.b) Marking frame number y in the TX to fire an interrupt when it has been transmitted, and move the mark whenever we clean up TX descriptors. or 2.c) Marking frame number y to generate an interrupt, but counting y from the end of the queue, and update the mark whenever we add frames to the queue tail. I'm not sure which version of 2. would give us the best approximation. Arnd <>< From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751253AbWHPWRH (ORCPT ); Wed, 16 Aug 2006 18:17:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751251AbWHPWRH (ORCPT ); Wed, 16 Aug 2006 18:17:07 -0400 Received: from moutng.kundenserver.de ([212.227.126.187]:1276 "EHLO moutng.kundenserver.de") by vger.kernel.org with ESMTP id S1750730AbWHPWRF convert rfc822-to-8bit (ORCPT ); Wed, 16 Aug 2006 18:17:05 -0400 From: Arnd Bergmann To: linuxppc-dev@ozlabs.org Subject: Re: [PATCH 1/2]: powerpc/cell spidernet bottom half Date: Thu, 17 Aug 2006 00:16:46 +0200 User-Agent: KMail/1.9.1 Cc: David Miller , akpm@osdl.org, jeff@garzik.org, netdev@vger.kernel.org, jklewis@us.ibm.com, linux-kernel@vger.kernel.org, Jens.Osterkamp@de.ibm.com References: <44E38157.4070805@garzik.org> <200608162324.47235.arnd@arndb.de> <20060816.143203.11626235.davem@davemloft.net> In-Reply-To: <20060816.143203.11626235.davem@davemloft.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT Content-Disposition: inline Message-Id: <200608170016.47072.arnd@arndb.de> X-Provags-ID: kundenserver.de abuse@kundenserver.de login:bf0b512fe2ff06b96d9695102898be39 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Am Wednesday 16 August 2006 23:32 schrieb David Miller: > Can spidernet be told these kinds of parameters?  "N packets or > X usecs"? It can not do exactly this but probably we can get close to it by 1.) Setting a one-time interrupt to fire x*10µs after putting a packet into the TX queue. and 2.a) Enabling end of TX queue interrupts whenever more than y frames have been queued for TX. or 2.b) Marking frame number y in the TX to fire an interrupt when it has been transmitted, and move the mark whenever we clean up TX descriptors. or 2.c) Marking frame number y to generate an interrupt, but counting y from the end of the queue, and update the mark whenever we add frames to the queue tail. I'm not sure which version of 2. would give us the best approximation. Arnd <>< From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH 1/2]: powerpc/cell spidernet bottom half Date: Thu, 17 Aug 2006 00:16:46 +0200 Message-ID: <200608170016.47072.arnd@arndb.de> References: <44E38157.4070805@garzik.org> <200608162324.47235.arnd@arndb.de> <20060816.143203.11626235.davem@davemloft.net> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Cc: akpm@osdl.org, jeff@garzik.org, netdev@vger.kernel.org, jklewis@us.ibm.com, linux-kernel@vger.kernel.org, Jens.Osterkamp@de.ibm.com, David Miller Return-path: To: linuxppc-dev@ozlabs.org In-Reply-To: <20060816.143203.11626235.davem@davemloft.net> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linuxppc-dev-bounces+glppd-linuxppc64-dev=m.gmane.org@ozlabs.org Errors-To: linuxppc-dev-bounces+glppd-linuxppc64-dev=m.gmane.org@ozlabs.org List-Id: netdev.vger.kernel.org Am Wednesday 16 August 2006 23:32 schrieb David Miller: > Can spidernet be told these kinds of parameters? =A0"N packets or > X usecs"? It can not do exactly this but probably we can get close to it by 1.) Setting a one-time interrupt to fire x*10=B5s after putting a packet into the TX queue. and 2.a) Enabling end of TX queue interrupts whenever more than y frames have been queued for TX. or 2.b) Marking frame number y in the TX to fire an interrupt when it has been transmitted, and move the mark whenever we clean up TX descriptors. or 2.c) Marking frame number y to generate an interrupt, but counting y from the end of the queue, and update the mark whenever we add frames to the queue tail. I'm not sure which version of 2. would give us the best approximation. Arnd <><