Port-mips archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: X problem on PMAGB-B
Hello,
On Mon, 17 Nov 2025 22:08:46 -0500
Dave McGuire <mcguire%neurotica.com@localhost> wrote:
> 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.
Alright, I'll commit the change and have it pulled into 10
have fun
Michael
Home |
Main Index |
Thread Index |
Old Index