svn commit: r287934 - head/sys/boot/efi/loader

Warner Losh imp at bsdimp.com
Tue Sep 22 00:20:09 UTC 2015


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’s pure grunt work.
I’ve done all the USB and (less relevantly) PC Card.

Warner


> On Sep 21, 2015, at 12:24 PM, Adrian Chadd <adrian.chadd at gmail.com> wrote:
> 
> Hi,
> 
> 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..
> 
> 
> -a
> 
> 
> On 21 September 2015 at 11:02, Rui Paulo <rpaulo at 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.
>> 
>> --
>> Rui Paulo
>> 
>> 
>> On Sep 17, 2015, at 01:36 PM, John Baldwin <jhb at FreeBSD.org> wrote:
>> 
>> Author: jhb
>> Date: Thu Sep 17 20:36:46 2015
>> New Revision: 287934
>> URL: https://svnweb.freebsd.org/changeset/base/287934
>> 
>> 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.
>> 
>> 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.
>> 
>> PR:                201679
>> Reviewed by:        imp
>> MFC after:  1 week
>> Differential Revision:        https://reviews.freebsd.org/D3666
>> 
>> Modified:
>> head/sys/boot/efi/loader/copy.c
>> 
>> Modified: head/sys/boot/efi/loader/copy.c
>> ==============================================================================
>> --- 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>
>> 
>> #ifndef EFI_STAGING_SIZE
>> -#define      EFI_STAGING_SIZE    32
>> +#define    EFI_STAGING_SIZE        48
>> #endif
>> 
>> #define    STAGE_PAGES  ((EFI_STAGING_SIZE) * 1024 * 1024 / 4096)
>> 
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20150921/2ed649f6/attachment.bin>


More information about the svn-src-head mailing list