Re: removing the agp(4) driver

From: Emmanuel Vadot <manu_at_bidouilliste.com>
Date: Fri, 06 Sep 2024 06:35:45 UTC
On Fri, 6 Sep 2024 07:40:09 +0200
Andre Albsmeier <Andre.Albsmeier@siemens.com> wrote:

> On Thu, 05-Sep-2024 at 12:34:20 -0400, Ed Maste wrote:
> > On Thu, 5 Sept 2024 at 09:43, Mark Johnston <markj@freebsd.org> wrote:
> > >
> > > I'd like to propose removing the agp(4) driver in FreeBSD 15.0.
> > 
> > It looks like there are some recent NYC*BUG dmesgd submissions showing
> > currently supported versions of FreeBSD running on agp hardware. Most
> > are i386 but there's at least one amd64 case.
> > 
> > Despite that I think it makes sense to remove agp for FreeBSD 15. The
> > hardware was already being phased out of mainstream systems two
> > decades ago and is now obsolete. I don't imagine the development
> > effort to move the driver out from Giant is worth the cost and folks
> > with old hardware who need agp graphics can continue to use FreeBSD
> > 14.x. It's supported through 2028.
> 
> Hmm, probably I am missing something but I tried a kernel without agp and
> i915kms.ko complained with:
> 
> KLD i915kms.ko: depends on agp - not available or version mismatch
> 
> I recompiled drm-61-kmod but this didn't change anything. This is on
> 14.1-STABLE / amd64 (25 machines, some only 3-4 years old).
> 

 This is due to
https://github.com/freebsd/drm-kmod/blob/master/drivers/gpu/drm/i915/i915_module.c#L156
 This should be under an #ifdef _i386_ as we only set CONFIG_AGP for
this arch, I'll commit something later today in all supported branches.

 Cheers,

-- 
Emmanuel Vadot <manu@bidouilliste.com> <manu@freebsd.org>