Return-Path: Received: from cpout2.tiscali.be (cpout2.tiscali.be [62.235.13.194]) by dsl2.external.hp.com (Postfix) with ESMTP id DBD0A48C3 for ; Tue, 7 Oct 2003 01:26:03 -0600 (MDT) Date: Tue, 7 Oct 2003 09:25:57 +0200 Message-ID: <3F5CC41F0000E8B7@ocpmta3.freegates.net> In-Reply-To: <20031006172856.GB19370@dsl2.external.hp.com> From: "Joel Soete" Subject: Re: [parisc-linux] traps.c 2.4 alignement [was: 2.6.0-test6-pa6 on b2k finaly crash] To: "Grant Grundler" Cc: "Carlos O'Donell" , "M. Grabert" , parisc-linux@lists.parisc-linux.org MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Sender: parisc-linux-admin@lists.parisc-linux.org Errors-To: parisc-linux-admin@lists.parisc-linux.org List-Help: List-Post: List-Subscribe: , List-Id: parisc-linux developers list List-Unsubscribe: , List-Archive: Grant, As mentionned I couldn't reproduced just after this panic. If the event re-occurs I will try first chaning 'ccio_mem_ratio' and let you inform of progress. Thanks a lot, Joel >-- Original Message -- >Date: Mon, 6 Oct 2003 11:28:56 -0600 >From: Grant Grundler >To: Joel Soete >Cc: Carlos O'Donell , > "M. Grabert" , parisc-linux@lists.parisc-linux.org >Subject: Re: [parisc-linux] traps.c 2.4 alignement [was: 2.6.0-test6-pa6 >on b2k finaly crash] > > >On Sun, Oct 05, 2003 at 05:07:21PM +0000, Joel Soete wrote: > hmm don't think if it's related but just in case: > I was just copying my kernel tree with 'tar cslpf - > linux-2.6.0-test6-pa6 | ( cd Work ; tar xslpf -)' when > > Kernel panic: driv >rs/parisc/ccio-dma.c: ccio_alloc_range() I/O M. You ran out of mapping resources. panic(__FILE__ ": %s() I/O MMU is out of mapping resources.\n", __FUNCTION__); > I just retry same operation on the same system with same k >rnel but > doesn't occurs a second time? Not surprising. The bitmap search will fail if everything gets mapped "sparsely" or we try to search for a large mapping (>32K, ie more than 8 pages) but can't find it. If this is repeatible problem, chan >e /* Ratio of Host MEM to IOV Space size */ static unsigned long ccio_mem_ratio = 4; in drivers/parisc/ccio-dma.c (2.6 kernel) to 2. One patch would be welcome here: figure out a threshold when allocations for single pages should share an >-page "chunk" (effectively one TLB entry). E.g. differentiate between LAN and SCSI requests. LAN typically wants 1 entry (1500 byte MTU) unless someone starts testing "Large Send" and is very "linear" in it's DMA behavior (one DMA stream at a tim >). SCSI typically wants 64k/128k (16 or 32 entries), has lots of those, and any one of those could be the "next" DMA stream. ie thrashing the IO TLB is much more likely with SCSI than LAN and we should allocate entries differently based on that. > The patch might be something like: if ((pci_dev->class & MASK) == PCI_BASE_CLASS_NETWORK) { ... in the right places to use a different (and new?) search loop. grant ------------------------------------------------------------------------- L'Internet rapide, c'est pour tout le monde. Tiscali ADSL, 19,50 Euro pendant 3 mois! http://reg.tiscali.be/default.asp?lg=fr