Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Sep 2015 17:57:56 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Adrian Chadd <adrian.chadd@gmail.com>
Cc:        Rui Paulo <rpaulo@me.com>, John Baldwin <jhb@freebsd.org>, "src-committers@freebsd.org" <src-committers@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>
Subject:   Re: svn commit: r287934 - head/sys/boot/efi/loader
Message-ID:  <4103BB2E-6B7B-4AC9-8F7F-06F30717867E@bsdimp.com>
In-Reply-To: <CAJ-Vmok6%2B2vcekUZLU0uRSGqQtgNqmBQBu82sOiSMR_BPy0U2w@mail.gmail.com>
References:  <13e1fdb2-6e22-4371-95e4-a556c357fa8d@me.com> <CAJ-Vmok6%2B2vcekUZLU0uRSGqQtgNqmBQBu82sOiSMR_BPy0U2w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_F8E1F80B-230E-49C1-9DC4-2A9A640EE68A
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

I have both a modules-only kernel (checked in as MINIMAL, but it
needs a little love).

I also have most of the modules loading automatically infrastructure
in place, except for some code to parse data and create devd.conf
scripts on boot. Konstantin asked that I write this before pushing
the bulk of my work in.

There will be a chore to convert all the PCI drivers in the tree to
mark the PNP data (maybe tweaking it a bit), but it=E2=80=99s pure grunt =
work.
I=E2=80=99ve done all the USB and (less relevantly) PC Card.

Warner


> On Sep 21, 2015, at 12:24 PM, Adrian Chadd <adrian.chadd@gmail.com> =
wrote:
>=20
> Hi,
>=20
> Warner has been working on the modular kernel thing. But honestly, I
> think we should just start biting that bullet and ship a modules-only
> GENERIC by default..
>=20
>=20
> -a
>=20
>=20
> On 21 September 2015 at 11:02, Rui Paulo <rpaulo@me.com> wrote:
>> So, we're going to keep ignoring the problem and keep patching things =
up?
>> It's a bit sad that a single driver (pmspcv) is able to cause so much
>> problems.
>>=20
>> --
>> Rui Paulo
>>=20
>>=20
>> On Sep 17, 2015, at 01:36 PM, John Baldwin <jhb@FreeBSD.org> wrote:
>>=20
>> Author: jhb
>> Date: Thu Sep 17 20:36:46 2015
>> New Revision: 287934
>> URL: https://svnweb.freebsd.org/changeset/base/287934
>>=20
>> Log:
>> The EFI boot loader allocates a single chunk of contiguous memory to
>> hold the kernel, modules, and any other loaded data. This memory =
block
>> is relocated to the kernel's expected location during the transfer of
>> control from the loader to the kernel.
>>=20
>> The GENERIC kernel on amd64 has recently grown such that a kernel + =
zfs.ko
>> no longer fits in the default staging size. Bump the default size =
from
>> 32MB to 48MB to provide more breathing room.
>>=20
>> PR:                201679
>> Reviewed by:        imp
>> MFC after:  1 week
>> Differential Revision:        https://reviews.freebsd.org/D3666
>>=20
>> Modified:
>> head/sys/boot/efi/loader/copy.c
>>=20
>> Modified: head/sys/boot/efi/loader/copy.c
>> =
=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=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
>> --- head/sys/boot/efi/loader/copy.c      Thu Sep 17 20:36:34 2015
>> (r287933)
>> +++ head/sys/boot/efi/loader/copy.c        Thu Sep 17 20:36:46 2015
>> (r287934)
>> @@ -38,7 +38,7 @@ __FBSDID("$FreeBSD$");
>> #include <efilib.h>
>>=20
>> #ifndef EFI_STAGING_SIZE
>> -#define      EFI_STAGING_SIZE    32
>> +#define    EFI_STAGING_SIZE        48
>> #endif
>>=20
>> #define    STAGE_PAGES  ((EFI_STAGING_SIZE) * 1024 * 1024 / 4096)
>>=20
>=20


--Apple-Mail=_F8E1F80B-230E-49C1-9DC4-2A9A640EE68A
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJWAJmEAAoJEGwc0Sh9sBEAMdYQAKDgS4AzjsJRjbq4NX8f7Yqk
ZrpfmL7uUMCMPrCrH8qFkzr4DuDyMmsO81RtiOLR3c0M2WmQ3aH5TFlUBLpWKIR5
MgLSP7dDf60HIa/II24Oj0ahMcrHNQ6UJ2yoK6guAorf8ahe47vZk9/+4D+xJL79
y+4m+/Z/upM64qYTKKBLS0+LX8qegbDv0LlfJ4ZN5rUE1zNqyM8zMROmfRnfBZLd
4icLD4GdOVzqvnK+sNt6HU/yzp7s1nFFZvks86IJxiPq1Lr4r0XqiyNQ/pJoIUcF
aPave073rfxlfRIeuB+dSdjLVV64IY1d0gFJKiDnI1oUizcom/Bpzjn6QOaYGwju
kK4L9rZBzNEosrXB/0bQXs9JJ3ydk2T/8c1SlYS23piuUJvDuj+cCn2xKKtmsFQt
gQQdR6Zfy3oT3V+PMiV2rBnV+oQw52GA21sc5P/Xrs1VbafJeSvlwyfAwPI3H/L/
YI20x2/YAcL+mvgxIYKKGtDkyW3nhQZcH4eaLhf9qBnIlZCnb0X5ivB32dIok9Bn
7pQaAOHbUFLsx7/Z5QUTHfw1KRCe+XQVwFh4+3iAwd6f2FA22zUp2HloKSgYU8Vr
96njOkPFcEjo6/LrcLSaXeq6la2oBFtYbKHwg3D/713XIRarzp1QoZQQlGetrEMN
UfgzriVats2VXxe6LAkT
=bGen
-----END PGP SIGNATURE-----

--Apple-Mail=_F8E1F80B-230E-49C1-9DC4-2A9A640EE68A--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4103BB2E-6B7B-4AC9-8F7F-06F30717867E>