From: Bob Breuer <breuerr@mc.net>
To: sparclinux@vger.kernel.org
Subject: Fix for HyperSPARC DMA errors
Date: Wed, 10 Nov 2004 03:18:56 +0000 [thread overview]
Message-ID: <419188A0.3010307@mc.net> (raw)
I found a solution for the HyperSPARC DMA problems in 2.6. This allows
my SS20 with HyperSPARCs to boot to single user. It's not efficient,
but I hope it points out whats needed for a proper fix. Seems that the
iotlb entries need to flushed to ram or uncached since the iommu changes
between 2.5.60 and 2.5.70.
The second part seems to be needed to allow consistent sbus dma mappings
to be cached on HyperSPARC. I have also tested this change on 2.4.27
with no noticeable difference. Can anyone prove if it helps or hurts?
Bob
--- linux-2.6.9/arch/sparc/mm/iommu.c.orig 2004-10-18 16:55:29.000000000 -0500
+++ linux-2.6.9/arch/sparc/mm/iommu.c 2004-11-07 17:25:24.000000000 -0600
@@ -173,6 +173,7 @@ static u32 iommu_get_one(struct page *pa
}
iommu_viking_flush_iotlb(iopte0, npages);
+ flush_cache_all(); // hack to fix dma errors with hypersparc
return busa0;
}
--- linux-2.6.9/arch/sparc/mm/srmmu.c.orig 2004-10-18 16:54:32.000000000 -0500
+++ linux-2.6.9/arch/sparc/mm/srmmu.c 2004-11-07 13:15:57.000000000 -0600
@@ -1463,6 +1463,7 @@ static void __init poke_hypersparc(void)
static void __init init_hypersparc(void)
{
srmmu_name = "ROSS HyperSparc";
+ srmmu_modtype = HyperSparc;
init_vac_layout();
next reply other threads:[~2004-11-10 3:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-10 3:18 Bob Breuer [this message]
2004-11-10 3:30 ` Fix for HyperSPARC DMA errors William Lee Irwin III
2004-11-10 4:55 ` David S. Miller
2004-11-10 5:23 ` William Lee Irwin III
2004-11-10 5:30 ` David S. Miller
2004-11-10 5:59 ` Bob Breuer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=419188A0.3010307@mc.net \
--to=breuerr@mc.net \
--cc=sparclinux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.