Port-vax archive

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

Re: DSSI (SII) driver for KA640 MicroVAX 3300/3400



Hi,

the current mscp code was a result of abstracting it to be able to handle both different device types and different transport layers. It plays well with adding DSSI stuff; I did that many years ago (to talk with RF73 on a 4000/300 IIRC). I didn't check it in though, I really do not remember why but it might been that there were some outstanding bugs and then I got distracted by other things.

I think that I mostly added a mscp_dssi.c file that handled the transport layer, and that was it.

-- Ragge

On 12/1/26 01:54, Johnny Billquist wrote:

Hi.

Yeah, I know the current code isn't that well structured. This should be reworked, and that should really be a part of the whole DSSI work.

Because, as you note, the driver should really be split into two parts. The port and driver. The driver part should be all the same, and then you should just have different port backends that transports the MSCP packets back and forth.

I was sortof thinking about doing this many years ago, based on the drivers in Ultrix, but I got distracted by other things. But it would be crazy to add a second MSCP driver, just because the transport is different. It's still just MSCP at the higher level.

But you have my moral support. :-) Afraid I'm a bit distracted by other things, as well as not having any hardware available right now to test things even if I did write something.

  Johnny

On 2026-12-01 01:26, ian%2lostkiwis.com@localhost wrote:
Hi Jonny,

Unfortunately, the existing MSCP code isn't very generic and lacks recovery functionality. Probably the correct way forward is quite a lot of restructuring of that existing NetBSD code. That is not the path I took, but it's the right goal for the end result. This SII driver is a step towards that.

As for the existing MSCP code:
- It assumes the wrong kind of controller. dev/mscp expects a controller that shares command and response rings with the host in memory and is driven through IP/SA registers, as UDA50, KDA50 and KFQSA are. The KA640's SII works differently. MSCP goes over a DSSI virtual circuit and an SCS connection to each disk, the way DEC's own drivers split it into PIDRIVER (port) and DUDRIVER (class). - It has almost no recovery. In NetBSD's code, mscp_requeue() panics, and controller re-initialisation is commented out. The developed SII driver has timeouts, a GET COMMAND STATUS progress check, port reset and reconnect, reads re-sent and lost writes failed rather than replayed.

I'm still optimistic and I will see this to completion... it's been an interesting learning process. I'm glad that it might be of more use than I might have guessed.

Cheers, Ian.

-----Original Message-----
From: Johnny Billquist <bqt%softjar.se@localhost>
Sent: Tuesday, 1 December 2026 1:02 pm
To: ian%2lostkiwis.com@localhost; 'Jan-Benedict Glaw' <jbglaw%lug-owl.de@localhost>
Cc: port-vax%netbsd.org@localhost
Subject: Re: DSSI (SII) driver for KA640 MicroVAX 3300/3400

If you've done this the right way, this should be tied in with the MSCP code in NetBSD, and should also be a significant stepping stone for CI support. So there might be more interest/demand than you think.

    Johnny




Home | Main Index | Thread Index | Old Index