Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Feb 2017 11:43:45 -0700
From:      Sean Bruno <sbruno@freebsd.org>
To:        John Baldwin <jhb@freebsd.org>, freebsd-arch@freebsd.org
Subject:   Re: Thinning out GENERIC
Message-ID:  <bf4931ec-2c05-2b90-8bc6-affac684bd23@freebsd.org>
In-Reply-To: <2553875.ilSvFZYQZ6@ralph.baldwin.cx>
References:  <34e4e9bd-c7a8-e3e2-4cef-98a691ea7944@freebsd.org> <CANCZdfpGTFeyGJjjApkZhghsvRsv94Pmxv8O1Ldswa_OddaNnA@mail.gmail.com> <2553875.ilSvFZYQZ6@ralph.baldwin.cx>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--X4c1kOwengqTKbmElSGVffc32Ir950Ngj
Content-Type: multipart/mixed; boundary="pi2pJhiill10x66MmxvPcdARX0Hq0Krl7";
 protected-headers="v1"
From: Sean Bruno <sbruno@freebsd.org>
To: John Baldwin <jhb@freebsd.org>, freebsd-arch@freebsd.org
Cc: Warner Losh <imp@bsdimp.com>
Message-ID: <bf4931ec-2c05-2b90-8bc6-affac684bd23@freebsd.org>
Subject: Re: Thinning out GENERIC
References: <34e4e9bd-c7a8-e3e2-4cef-98a691ea7944@freebsd.org>
 <CANCZdfpGTFeyGJjjApkZhghsvRsv94Pmxv8O1Ldswa_OddaNnA@mail.gmail.com>
 <2553875.ilSvFZYQZ6@ralph.baldwin.cx>
In-Reply-To: <2553875.ilSvFZYQZ6@ralph.baldwin.cx>

--pi2pJhiill10x66MmxvPcdARX0Hq0Krl7
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable



On 02/13/17 11:33, John Baldwin wrote:
> On Monday, February 13, 2017 10:51:36 AM Warner Losh wrote:
>> [[ It isn't just GENERIC, it's in every single kernel ]]
>>
>> On Sun, Feb 12, 2017 at 7:59 AM, Sean Bruno <sbruno@freebsd.org> wrote=
:
>>> Index: sys/conf/files
>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>>> --- sys/conf/files      (revision 313683)
>>> +++ sys/conf/files      (working copy)
>>> @@ -2419,7 +2419,7 @@
>>>  dev/pci/pci_user.c             optional pci
>>>  dev/pci/pcib_if.m              standard
>>>  dev/pci/pcib_support.c         standard
>>> -dev/pci/vga_pci.c              optional pci
>>> +#dev/pci/vga_pci.c             optional pci
>>>  dev/pcn/if_pcn.c               optional pcn pci
>>>  dev/pdq/if_fea.c               optional fea eisa
>>>  dev/pdq/if_fpa.c               optional fpa pci
>>>
>>> I'm playing around with small x86 builds and wanted to come up with a=

>>> knob that disables the vga_pci driver.  Obviously I still want pci(4)=
 to
>>> be enabled, but I definitely do not need the vga interfaces for
>>> anything.  Any suggestions?
>>
>> You could make it dependent on vt or sc as well as pci, no?
>=20
> This is a fairly small driver:
>=20
>      6139      340         8      6487     0x1957   /usr/obj/usr/src/sy=
s/GENERIC
> /vga_pci.o
>=20
> (From an 11.0-stable build)
>=20
> device ppc and friends is a lot more for example:
>=20
>   text   data   bss    dec      hex   filename
>   6238      0     0   6238   0x185e   /usr/obj/usr/src/sys/GENERIC/ppb_=
1284.o
>   1675     28     0   1703    0x6a7   /usr/obj/usr/src/sys/GENERIC/ppb_=
base.o
>   2042      0     0   2042    0x7fa   /usr/obj/usr/src/sys/GENERIC/ppb_=
msq.o
>   6025    296     8   6329   0x18b9   /usr/obj/usr/src/sys/GENERIC/ppbc=
onf.o
>      0    168     0    168     0xa8   /usr/obj/usr/src/sys/GENERIC/ppbu=
s_if.o
>   9099     36     0   9135   0x23af   /usr/obj/usr/src/sys/GENERIC/ppc.=
o
>    495    256     0    751    0x2ef   /usr/obj/usr/src/sys/GENERIC/ppc_=
acpi.o
>   1671    256     0   1927    0x787   /usr/obj/usr/src/sys/GENERIC/ppc_=
isa.o
>   1124    208     0   1332    0x534   /usr/obj/usr/src/sys/GENERIC/ppc_=
pci.o
>    451    208     0    659    0x293   /usr/obj/usr/src/sys/GENERIC/ppc_=
puc.o
>   2751    428     8   3187    0xc73   /usr/obj/usr/src/sys/GENERIC/ppi.=
o
>=20
> It is needed for drm.
>=20

Ok, so ... make it dependant on drm, vt, sc and pci?

sean


--pi2pJhiill10x66MmxvPcdARX0Hq0Krl7--

--X4c1kOwengqTKbmElSGVffc32Ir950Ngj
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQGTBAEBCgB9FiEEuq1GMucSHejSCZfdEgHvyh5yfmQFAlinRGFfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEJB
QUQ0NjMyRTcxMjFERThEMjA5OTdERDEyMDFFRkNBMUU3MjdFNjQACgkQEgHvyh5y
fmQtfQgAp48f7hA53QPk8DwcSyuAjRvilmZiFdFV2ZpWzQh3DtTO6uwi8n11LjV/
/0pL9HXbmI6r1xLuAlk/oIGj1Die3Y/DSR+8FfMSEFBz5YFNzhXxYfCUmuSvEmrT
k27esg9rOmy/wLp9TF9dJi19XZYz6M4KmNglcjHRHNrSKKcDYbTy+KoE8Mazt14G
121Tzw54o90OxHg2FaRnL8c2Re+pqXVGNVmVgc05g7Mjn1unbTenZgxh3xnsCKvg
VaywoguQjfogt8o3XXXTBBYBmDtqPgSqIXK+MZ0sVpjXqtoNJ0+59IRknYQd1PTN
UU+OjpOrJeRHKBKVW/6qe6dDdWtuwQ==
=7AQk
-----END PGP SIGNATURE-----

--X4c1kOwengqTKbmElSGVffc32Ir950Ngj--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bf4931ec-2c05-2b90-8bc6-affac684bd23>