HomeFreeBSD

agp: Handle multiple devices more gracefully

Description

agp: Handle multiple devices more gracefully

Currently agp(4) effectively assumes that only one driver instance
exists, as the generic attach routine attempts to create /dev/agpgart
and triggers a panic if it already exists. Instead, handle this
situation by creating /dev/agpgart<unit> and making /dev/agpgart an
alias of /dev/agpgart0 for compatibility.

PR: 187015
Reviewed by: imp, kib
Tested by: Yoshihiro Ota <ota@j.email.ne.jp> (earlier version)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D33068

Details

Provenance
markjAuthored on Nov 25 2021, 4:27 PM
Reviewer
imp
Differential Revision
D33068: agp: Gracefully handle make_dev() errors if /dev/agpgart already exists
Parents
rG52d973f52c07: libpmc: Update some x86 event definitions.
Branches
Unknown
Tags
Unknown