Subject: AMD Geode GX reboot workaround
To: None <tech-kern@netbsd.org>
From: Juan RP <juan@xtrarom.org>
List: tech-kern
Date: 06/26/2007 19:33:58
This is a multi-part message in MIME format.
--Multipart=_Tue__26_Jun_2007_19_33_58_+0200_qmSriCgbxq7/.=7a
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Hey folks...
I got a new toy (thanks Swifft), a decTOP. This uses an AMD Geode GX 533
CPU (366MHz), 128MB RAM, 10GB HD and 4 USB 1.1 ports.
The problem is that all netbsd versions just after the kernel is loaded
there's a spontaneous reboot. I tracked it down, starting from the
bootloader until machdep.c:init386().
When mem_cluster_cnt is 2, the system triggers a reboot.
Here's a picture of the memory entries reported by the bootloader code:
http://www.xtrarom.org/~juan/DSC00320.JPG
So I tried to use add_mem_cluster() for this region with the attached patch
and it works, at least there's no reboot anymore and it detects 107MB RAM
in total.
More pictures:
http://www.xtrarom.org/~juan/DSC00318.JPG
http://www.xtrarom.org/~juan/DSC00319.JPG
Can anyone explain why this patch works? and how to fix it properly?
--
Juan Romero Pardines - The NetBSD Project
http://plog.xtrarom.org - NetBSD/pkgsrc news in Spanish
--Multipart=_Tue__26_Jun_2007_19_33_58_+0200_qmSriCgbxq7/.=7a
Content-Type: application/octet-stream;
name="amd_geode_gx_fix.diff"
Content-Disposition: attachment;
filename="amd_geode_gx_fix.diff"
Content-Transfer-Encoding: base64
SW5kZXg6IG1hY2hkZXAuYwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAvY3Zzcm9vdC9zcmMvc3lzL2Fy
Y2gvaTM4Ni9pMzg2L21hY2hkZXAuYyx2CnJldHJpZXZpbmcgcmV2aXNpb24gMS42MDMKZGlmZiAt
YiAtdSAtcjEuNjAzIG1hY2hkZXAuYwotLS0gbWFjaGRlcC5jCTE3IE1heSAyMDA3IDE0OjUxOjIx
IC0wMDAwCTEuNjAzCisrKyBtYWNoZGVwLmMJMjYgSnVuIDIwMDcgMTc6MDA6MjcgLTAwMDAKQEAg
LTE2MzIsNiArMTYzMiwxMSBAQAogCQkJCSAgICBiaW0tPmVudHJ5W3hdLnR5cGUpOwogCQkJCWFk
ZF9tZW1fY2x1c3RlcigweDEwMDAwMCwgc2VnX2VuZCwKIAkJCQkgICAgYmltLT5lbnRyeVt4XS50
eXBlKTsKKwkJCX0gZWxzZSBpZiAoc2VnX3N0YXJ0IDwgMHg2ZmZmZmZmICYmIHNlZ19lbmQgPiAw
eDZmZmZmZikgeworCQkJCWFkZF9tZW1fY2x1c3RlcihzZWdfc3RhcnQsIDB4NmZmYjAwLAorCQkJ
CSAgICBiaW0tPmVudHJ5W3hdLnR5cGUpOworCQkJCWFkZF9tZW1fY2x1c3RlcigweDcxMDAwMCwg
c2VnX2VuZCwKKwkJCQkgICAgYmltLT5lbnRyeVt4XS50eXBlKTsKIAkJCX0gZWxzZQogCQkJCWFk
ZF9tZW1fY2x1c3RlcihzZWdfc3RhcnQsIHNlZ19lbmQsCiAJCQkJICAgIGJpbS0+ZW50cnlbeF0u
dHlwZSk7Cg==
--Multipart=_Tue__26_Jun_2007_19_33_58_+0200_qmSriCgbxq7/.=7a--