VOGONS


Chrome9 (VX800/820/855/875/900) Windows 98 Driver

Topic actions

Reply 80 of 83, by 360alaska2

User metadata
Rank Newbie
Rank
Newbie

He’ll certainly be welcome to integrate my source, but I’m focusing on this platform until it is really fast and really stable, the next thing I might work on would be geode gx/nx drivers.

I want to see if I can make olpc run w98.

Reply 81 of 83, by 360alaska2

User metadata
Rank Newbie
Rank
Newbie

I just spent about five hours on an edge case in the OpenGL driver. Any OpenGL program that read the picture back (glReadPixels) and then called SwapBuffers froze solid about 20 seconds after it started, every time. Meanwhile Quake 2 and the GL screensavers ran all night, so it looked like a hardware problem. It turned out to be a deadlock. DirectX 9's DDRAW leaves a driver-certification thread behind (WINTRUST/CRYPT32), and with an unsigned driver on the VX855's slow storage it exits about 20 s later holding the program's loader lock. Windows 98's GDI32 SwapBuffers calls GetProcAddress("wglSwapBuffers") on every frame, which needs that same lock. My OpenGL driver was still holding its DirectDraw surface locks from the readback, kept between calls for speed, so neither side could finish. Releasing the locks after a readback, or calling wglSwapBuffers directly as Quake 2 does, never locked. The fix is to stop holding DirectDraw locks between OpenGL calls.

Reply 82 of 83, by 360alaska2

User metadata
Rank Newbie
Rank
Newbie

R8111E98 is a new Windows 98 SE driver for Realtek RTL8111E gigabit Ethernet, written from scratch. Realtek's last Windows 98 driver (5.708) never supported the 8111E, and the newer XP-era drivers hang Windows 98 at boot and shutdown, so cards and onboard LAN built around this chip were stuck without a network on 98. This is a native NDIS 5 miniport that only uses NDIS functions Realtek's own 98 driver uses, and its chip setup follows Realtek's reference sequences for the 8111E, including the PHY microcode. It negotiates 10/100/1000 full and half duplex with flow control, tells Windows when the cable is plugged in or pulled, and has a timer that keeps the card working if the board's interrupt routing is broken. It also fixes interrupt routing on VIA VX900 boards, where Windows 98 can't route interrupts from the PCIe slots and onboard devices; without that fix the card crawls at under 1 KB/s. A small diagnostic tool, RTLDIAG, is included. It shows the card's state and whether interrupts are getting through, which helps if something doesn't work. On a VX900 test board it does about 4.5 MB/s with Windows 98's default TCP settings.

Supported: the Realtek RTL8111E / RTL8168E (PCI ID 10EC:8168, revision 06) on PCIe add-in cards or as onboard LAN. It's the gigabit chip found on many motherboards from around 2010 to 2012 and on cheap PCIe x1 network cards. Not supported: the RTL8111E-VL, which also reports revision 06 but is a different chip inside, and the other members of the family (8111B/C/D/F/G/H, 8168B and so on). On an unsupported chip the driver refuses to start rather than guessing. Older 8111B/C/D chips are covered by Realtek's own 5.708 driver.

Before posting, check that RTLDIAG names your chip "RTL8111E (CFG_METHOD_14)" or "(CFG_METHOD_15)". That tells someone their card is the right one before they install.

The attachment Untitled.png is no longer available

Reply 83 of 83, by 360alaska2

User metadata
Rank Newbie
Rank
Newbie

My new bug-hunting method: the Continuous Improvement Program

My old way of getting more out of ChatGPT was to invent some urgency. I'd tell it I was tied to a set of train tracks, or covered in honey with a swarm of bees on the way, and that only more bug findings could save me. That's stopped working. ChatGPT seems to have started believing me, and now it worries about me instead of reading my code.

So I've switched to something I call the Continuous Improvement Program:

Grok runs the reviews. I give Grok my source and have it keep sending it to Gemini and ChatGPT for review, pass after pass. Grok writes the prompts itself, which saves me a lot of effort. Driver code is full of ring-0 calls and raw memory access, so ChatGPT sometimes mistakes it for something sketchy and refuses on security grounds. When that happens, Grok rewords the request to make it clear it's a display driver.
The results go straight into a text file. Grok doesn't filter or summarize them. Everything is passed along as is.
A Claude reviewer checks every finding against the actual source. Anything it can't confirm in the code gets dropped.
The confirmed findings go to the builder, which makes the fixes.

The attachment CEP.jpg is no longer available

For those that want something to play with, I'm going to go ahead and give you this build. I provide no warranties. If you do find any bugs, feel free to comment or open a GitHub request. But suffice it to say, we are still building out the pixel shader, and the vertex shader is probably 10% complete. On the other hand, DirectX 8 support seems to work well.

The attachment VIA_Chrome9_850_full.zip is no longer available