Port-mips archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: X problem on PMAGB-B



On 11/17/25 14:11, David Brownlee wrote:
    But there is a strange offset to the video.  I've attached two pics
which show what I mean.  See where my pointer has grabbed the window
title bar in the second picture; I've actually grabbed the window and am
dragging it, so that's where the X server thinks the window is.  But the
actual displayed objects are shifted to the left.

Hmm, sfb_common_init() adds another 4096 to the VRAM address, let's do
the same:

Index: sfb.c
===================================================================
RCS file: /cvsroot/src/sys/dev/tc/sfb.c,v
retrieving revision 1.89
diff -u -w -r1.89 sfb.c
--- sfb.c       6 Dec 2021 16:00:07 -0000       1.89
+++ sfb.c       17 Nov 2025 10:45:52 -0000
@@ -485,9 +485,9 @@
  {
         struct sfb_softc *sc = v;

-       if (offset >= SFB_SIZE || offset < 0)
+       if (offset >= SFB_FB_SIZE || offset < 0)
                 return (-1);
-       return machine_btop(sc->sc_vaddr + offset);
+       return machine_btop(sc->sc_vaddr + SFB_FB_OFFSET + 4096 + offset);
  }

Updated builds with the + 4096 at https://sync.absd.org/pmax/  -
should only need to update the kernel :)

That's it, it works! Pic attached. Thank you to everyone involved for your input, and especially to Michael and David who did all the legwork.

This -260 is now on permanent public exhibit at the Large Scale Systems Museum in Pittsburgh, dual-booting Ultrix-32 and NetBSD 10.1, for everyone to use and enjoy.

              Thanks,
              -Dave

--
Dave McGuire, AK4HZ
New Kensington, PA

Attachment: 20251117_200623_sm.jpg
Description: JPEG image



Home | Main Index | Thread Index | Old Index