From: Greg Weeks <greg.weeks@timesys.com>
To: linux-mips@linux-mips.org
Subject: [patch] malta bus error
Date: Tue, 05 Apr 2005 15:28:27 -0400 [thread overview]
Message-ID: <4252E6DB.7050307@timesys.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 281 bytes --]
Here's the ugly hack I used to get around the bus error on the malta
board because of the memcpy prefetch bug. I'm still looking at the
memcpy.S code to figure out how to get it to stop prefetching past the
end of the copy.
Signed-off-by: Greg Weeks <greg.weeks@timesys.com>
[-- Attachment #2: malta.memcpy.prefetch.hack.patch --]
[-- Type: text/x-patch, Size: 778 bytes --]
--- mips/arch/mips/Kconfig-orig
+++ mips/arch/mips/Kconfig
@@ -46,6 +46,7 @@
select SYS_SUPPORTS_64BIT_KERNEL
select SYS_SUPPORTS_BIG_ENDIAN
select SYS_SUPPORTS_LITTLE_ENDIAN
+ select BOARD_HAS_MEMCPY_PREFETCH_BUG
help
This enables support for the MIPS Technologies Malta evaluation
board.
@@ -777,6 +778,10 @@
config CPU_HAS_PREFETCH
bool
+config BOARD_HAS_MEMCPY_PREFETCH_BUG
+ bool
+ default n
+
config SB1_PASS_1_WORKAROUNDS
bool
depends on CPU_SB1_PASS_1
--- mips/arch/mips/lib/memcpy.S-orig
+++ mips/arch/mips/lib/memcpy.S
@@ -17,6 +17,11 @@
#include <asm/offset.h>
#include <asm/regdef.h>
+#ifdef CONFIG_BOARD_HAS_MEMCPY_PREFETCH_BUG
+#undef PREF
+#define PREF(hint,addr)
+#endif
+
#define dst a0
#define src a1
#define len a2
reply other threads:[~2005-04-05 19:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4252E6DB.7050307@timesys.com \
--to=greg.weeks@timesys.com \
--cc=linux-mips@linux-mips.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox