[parisc-linux-cvs] [PATCH] ccio-dma typo and small memory configs

Ryan Bradetich rbradetich@uswest.net
Fri, 21 Sep 2001 17:52:00 -0600


--Kj7319i9nmIyA2yE
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

This patch fixes a typo in the ccio_proc_info function, and
should fix the problem people are seeing when running out of
mapping resources.  I do not think it is the proper fix, but
that is the value used for the sba_iommu code, so I'll use it
until I have a chance to investigate further.

- Ryan

--Kj7319i9nmIyA2yE
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="ccio-dma.c.patch"

Index: ccio-dma.c
===================================================================
RCS file: /home/cvs/parisc/linux/arch/parisc/kernel/ccio-dma.c,v
retrieving revision 1.39
diff -u -p -r1.39 ccio-dma.c
--- ccio-dma.c	2001/08/31 06:02:17	1.39
+++ ccio-dma.c	2001/09/21 23:43:13
@@ -176,7 +176,7 @@ struct ioc {
 
 
 /* Ratio of Host MEM to IOV Space size */
-static unsigned long ccio_mem_ratio = 32;
+static unsigned long ccio_mem_ratio = 4;
 static struct ioc *ioc_list;
 static int ioc_count;
 
@@ -1075,7 +1075,7 @@ ccio_proc_info(char *buf, char **start, 
 		sprintf(buf, "%sCujo 2.0 bug    : %s\n",
 			buf, (ioc->cujo20_bug ? "yes" : "no"));
 
-		sprintf(buf, "%sIO PDIR size    : %ld bytes (%ud entries)\n",
+		sprintf(buf, "%sIO PDIR size    : %ld bytes (%d entries)\n",
 			buf, ((ioc->res_size << 3) * sizeof(u64)), total_pages);
 
 		sprintf(buf, "%sIO PDIR entries : %ld free  %ld used (%d%%)\n", buf,

--Kj7319i9nmIyA2yE--