summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Kinard <kumba@gentoo.org>2003-08-30 10:14:27 +0000
committerJoshua Kinard <kumba@gentoo.org>2003-08-30 10:14:27 +0000
commit4efc0d3a5c9aaa3324f3c5b0424097b6d7a9f7b3 (patch)
tree121e9a8f9d810beec9a29aa928783aa9dd5423bb /sys-kernel/mips-sources/files
parentAdded a patch to fix a bug in the SGI WD scsi driver. Allows the kernel to b... (diff)
downloadgentoo-2-4efc0d3a5c9aaa3324f3c5b0424097b6d7a9f7b3.tar.gz
gentoo-2-4efc0d3a5c9aaa3324f3c5b0424097b6d7a9f7b3.tar.bz2
gentoo-2-4efc0d3a5c9aaa3324f3c5b0424097b6d7a9f7b3.zip
Added a patch to fix a bug in the SGI WD scsi driver. Allows the kernel to boot.
Diffstat (limited to 'sys-kernel/mips-sources/files')
-rw-r--r--sys-kernel/mips-sources/files/mipscvs-2.4.22-20030825-sgiwd-fix.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/sys-kernel/mips-sources/files/mipscvs-2.4.22-20030825-sgiwd-fix.patch b/sys-kernel/mips-sources/files/mipscvs-2.4.22-20030825-sgiwd-fix.patch
new file mode 100644
index 000000000000..37b13c8f9d8b
--- /dev/null
+++ b/sys-kernel/mips-sources/files/mipscvs-2.4.22-20030825-sgiwd-fix.patch
@@ -0,0 +1,41 @@
+Index: drivers/scsi/sgiwd93.c
+===================================================================
+RCS file: /home/cvs/linux/drivers/scsi/sgiwd93.c,v
+retrieving revision 1.28.2.8
+diff -u -r1.28.2.8 sgiwd93.c
+--- drivers/scsi/sgiwd93.c 14 Aug 2003 15:32:13 -0000 1.28.2.8
++++ drivers/scsi/sgiwd93.c 20 Aug 2003 16:08:59 -0000
+@@ -92,7 +92,7 @@
+ unsigned long physaddr;
+ unsigned long count;
+
+- physaddr = virt_to_bus(addr);
++ physaddr = PHYSADDR(addr);
+ while (len) {
+ /*
+ * even cntinfo could be up to 16383, without
+@@ -141,7 +141,7 @@
+ DPRINTK(" HPCGO\n");
+
+ /* Start up the HPC. */
+- hregs->ndptr = virt_to_bus(hdata->dma_bounce_buffer);
++ hregs->ndptr = PHYSADDR(hdata->dma_bounce_buffer);
+ if (datainp) {
+ dma_cache_inv((unsigned long) cmd->SCp.ptr,
+ cmd->SCp.this_residual);
+@@ -197,13 +197,13 @@
+ start = (unsigned long) buf;
+ end = start + PAGE_SIZE;
+ while (start < end) {
+- hcp->desc.pnext = virt_to_bus(hcp + 1);
++ hcp->desc.pnext = PHYSADDR(hcp + 1);
+ hcp->desc.cntinfo = HPCDMA_EOX;
+ hcp++;
+ start += sizeof(struct hpc_chunk);
+ };
+ hcp--;
+- hcp->desc.pnext = virt_to_bus(buf);
++ hcp->desc.pnext = PHYSADDR(buf);
+
+ /* Force flush to memory */
+ dma_cache_wback_inv((unsigned long) buf, PAGE_SIZE);