Re: problems with current on a 3/80

Jeremy Cooper <[email protected]> Tue, 26 May 2026 15:49:35 -0700
Newsgroups gmane.os.netbsd.ports.sun3
Message-ID <[email protected]>
--Apple-Mail=_9291977F-4C68-49A5-AE28-882538A8A959
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Totally cromulent patch! It is informed by this comment I wrote just =
about 30 YEARS ago:
/*
 * The 3/80 is the only member of the sun3x family that has =
non-contiguous
 * physical memory.  Memory is divided into 4 banks which are physically
 * locatable on the system board.  Although the size of these banks =
varies
 * with the size of memory they contain, their base addresses are
 * permanently fixed.  The following structure, which describes these
 * banks, is initialized by pmap_bootstrap() after it reads from a =
similar
 * structure provided by the ROM Monitor.
 *
 * For the other machines in the sun3x architecture which do have =
contiguous
 * RAM, this list will have only one entry, which will describe the =
entire
 * range of available memory.
 */
I think this explains why the reporter only saw 16 MB out of 64 MB =
available.

-J

> On May 26, 2026, at 14:58, Jason Thorpe <[email protected]> wrote:
>=20
>=20
>=20
>> On May 26, 2026, at 5:55=E2=80=AFPM, Jason Thorpe <[email protected]> =
wrote:
>>=20
>>=20
>>> On May 26, 2026, at 10:30=E2=80=AFAM, Jason Thorpe <[email protected]> =
wrote:
>>>=20
>>>=20
>>>> On May 26, 2026, at 10:04=E2=80=AFAM, Jason Thorpe <[email protected]> =
wrote:
>>>>=20
>>>> This is almost certainly my fault.  I=E2=80=99ll take a look later =
this week.  (Alas, I don=E2=80=99t have a 3/80 to test on, nor do I know =
if any 3/80 emulators.)
>>>=20
>>> Ok, =E2=80=9Clater this week=E2=80=9D turned into =E2=80=9Clater =
this morning=E2=80=9D, and I see the problem.  Stay tuned.
>>=20
>> Ok, it *should* be fixed by this.  Please let me know if that=E2=80=99s=
 not the case:
>=20
> Sorry, I forgot to say - that=E2=80=99s rev v 1.130 of pmap.c.
>=20
>>=20
>> <quote>
>> Module Name: src
>> Committed By: thorpej
>> Date: Tue May 26 21:52:29 UTC 2026
>>=20
>> Modified Files:
>> src/sys/arch/sun3/sun3x: pmap.c
>>=20
>> Log Message:
>> pmap_bootstrap(): Fix an error intrduced in rev 1.127 - ensure =
pmap_membank
>> points to the first element in the array after building up the linked =
list.
>> </quote>
>>=20
>> -- thorpej
>>=20
>=20
> -- thorpej


--Apple-Mail=_9291977F-4C68-49A5-AE28-882538A8A959
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"content-type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"overflow-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;">Totally =
cromulent patch! It is informed by this comment I wrote just about 30 =
YEARS ago:<div><pre style=3D"font-variant-ligatures: normal; orphans: 2; =
widows: 2; text-decoration-thickness: initial; text-decoration-style: =
initial; text-decoration-color: initial; overflow-wrap: break-word; =
text-wrap-mode: wrap;">/*
 * The 3/80 is the only member of the sun3x family that has =
non-contiguous
 * physical memory.  Memory is divided into 4 banks which are physically
 * locatable on the system board.  Although the size of these banks =
varies
 * with the size of memory they contain, their base addresses are
 * permanently fixed.  The following structure, which describes these
 * banks, is initialized by pmap_bootstrap() after it reads from a =
similar
 * structure provided by the ROM Monitor.
 *
 * For the other machines in the sun3x architecture which do have =
contiguous
 * RAM, this list will have only one entry, which will describe the =
entire
 * range of available memory.
 */</pre><div>I think this explains why the reporter only saw 16 MB out =
of 64 MB =
available.</div><div><br></div><div>-J</div><div><br></div><div><blockquot=
e type=3D"cite"><div>On May 26, 2026, at 14:58, Jason Thorpe =
&lt;[email protected]&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div><meta charset=3D"UTF-8"><br =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: 400; =
letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;"><br =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: 400; =
letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;"><blockquote =
type=3D"cite" style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant-caps: normal; font-weight: 400; =
letter-spacing: normal; orphans: auto; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; widows: auto; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none;">On May 26, 2026, at 5:55=E2=80=AFPM, Jason Thorpe =
&lt;[email protected]&gt; wrote:<br><br><br><blockquote type=3D"cite">On =
May 26, 2026, at 10:30=E2=80=AFAM, Jason Thorpe &lt;[email protected]&gt; =
wrote:<br><br><br><blockquote type=3D"cite">On May 26, 2026, at =
10:04=E2=80=AFAM, Jason Thorpe &lt;[email protected]&gt; wrote:<br><br>This =
is almost certainly my fault. &nbsp;I=E2=80=99ll take a look later this =
week. &nbsp;(Alas, I don=E2=80=99t have a 3/80 to test on, nor do I know =
if any 3/80 emulators.)<br></blockquote><br>Ok, =E2=80=9Clater this =
week=E2=80=9D turned into =E2=80=9Clater this morning=E2=80=9D, and I =
see the problem. &nbsp;Stay tuned.<br></blockquote><br>Ok, it *should* =
be fixed by this. &nbsp;Please let me know if that=E2=80=99s not the =
case:<br></blockquote><br style=3D"caret-color: rgb(0, 0, 0); =
font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: 400; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;"><span style=3D"caret-color: rgb(0, 0, 0); =
font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: 400; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none; float: none; display: inline !important;">Sorry, =
I forgot to say - that=E2=80=99s rev v 1.130 of pmap.c.</span><br =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: 400; =
letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;"><br =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: 400; =
letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;"><blockquote =
type=3D"cite" style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant-caps: normal; font-weight: 400; =
letter-spacing: normal; orphans: auto; text-align: start; text-indent: =
0px; text-transform: none; white-space: normal; widows: auto; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none;"><br>&lt;quote&gt;<br>Module Name: src<br>Committed By: =
thorpej<br>Date: Tue May 26 21:52:29 UTC 2026<br><br>Modified =
Files:<br>src/sys/arch/sun3/sun3x: pmap.c<br><br>Log =
Message:<br>pmap_bootstrap(): Fix an error intrduced in rev 1.127 - =
ensure pmap_membank<br>points to the first element in the array after =
building up the linked list.<br>&lt;/quote&gt;<br><br>-- =
thorpej<br><br></blockquote><br style=3D"caret-color: rgb(0, 0, 0); =
font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: 400; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;"><span style=3D"caret-color: rgb(0, 0, 0); =
font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: 400; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none; float: none; display: inline !important;">-- =
thorpej</span></div></blockquote></div><br></div></body></html>=

--Apple-Mail=_9291977F-4C68-49A5-AE28-882538A8A959--