RE: qe missing config reference to if_uba

Josh Moyer <[email protected]>
Newsgroups gmane.os.netbsd.ports.vax
Message-ID <DM6PR07MB4217C2AAC111242C6036BD4EACB82@DM6PR07MB4217.namprd07.prod.outlook.com>
Well, port VAX is slower and compiling was somewhat broken for a long time, so it may have been harder to check different device configs and corresponding kernel configs.  Perhaps no one has tried to trim down GENERIC before?  I've been able to shave off as much as 1.5MB - 2.0MB (of 4-ish MB) by eliminating devices and options that I do not use.

Several other devices (de, il, dmc) in files.uba did have preexisting references to ifuba -- although it appear on closer inspection (grep if_uba dev/qbus/*) that qt needs ifuba, too.

And, yes about other devices, probably.  For example, after I sent the below patch, I also noticed that by disabling lkkbd0 (and also wskbd*, lkms0 and wsmouse*) in the kernel config that it exposed a possible bug and undefined reference in dz_vsbus_attach (arch/vax/vsa/dz_vsbus.c:156), where dz_cdevsw is required by the code path, but is defined conditionally on line 143 and seemingly on whether lkkbd0 is enabled.  I'm less sure about this part and even more so for the fix, since I'm not yet familiar with console configuration and handling in the kernel and on VAX.

Thanks and kind regards,
Josh

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Johnny Billquist
Sent: Monday, April 21, 2025 5:04 AM
To: Josh Moyer <[email protected]>; [email protected]
Subject: Re: qe missing config reference to if_uba

I find it a bit strange that this hasn't been noticed before. And isn't 
the same problem then the case with a bunch of other devices?

   Johnny

On 2025-04-19 23:27, Josh Moyer wrote:
> Hello port-vax!
> I was trying to compile a custom kernel on my VAXserver 3x00/KA655 and found that the linking was failing due to an unavailable reference.  I propose the following patch to resolve the issue:
> 
> diff --git a/sys/dev/qbus/files.uba b/sys/dev/qbus/files.uba
> index 20c6e0c..2503b77 100644
> --- a/sys/dev/qbus/files.uba
> +++ b/sys/dev/qbus/files.uba
> @@ -38,7 +38,7 @@ attach        qt at uba
>   file   dev/qbus/if_qt.c                        qt
> 
>   # DEQNA/DELQA Ethernet controller
> -device qe: ifnet, ether, arp
> +device qe: ifnet, ether, arp, ifuba
>   attach qe at uba
>   file   dev/qbus/if_qe.c                        qe
> 
> --
> Thanks and kind regards,
>      _____
>     | * * |   Josh Moyer (he/him) <[email protected]>
>     |*(*)*|   http://jmoyer.nodomain.net/
>      \ - /    http://www.nodomain.net/
>       \//
>               Love, Responsibility, Justice
>               Liebe, Verantwortung, Gerechtigkeit
>               
>               Please don't eat the animals.
>               Thanks.

-- 
Johnny Billquist                  || "I'm on a bus
                                   ||  on a psychedelic trip
email: [email protected]             ||  Reading murder books
pdp is alive!                     ||  tryin' to stay hip" - B. Idol
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.