From owner-svn-src-head@freebsd.org Tue Sep 22 00:07:29 2015 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E7345A066F4 for ; Tue, 22 Sep 2015 00:07:29 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BC33C11D4 for ; Tue, 22 Sep 2015 00:07:29 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: by padhy16 with SMTP id hy16so130310743pad.1 for ; Mon, 21 Sep 2015 17:07:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to; bh=kZDosOQH4cCHDkQue4WDZ2IlFQ8yQwwL5WM0dfBq7rA=; b=PPCYgRix+8pyxSGLGscqXt2wls4DjigrK6iyN3CMnW9Qxgk0tkyMm15JYMiqSqkTv1 OynXYZBi9D4INX/u7TlRHwz3uGuDFHj+UMZdXPox3TfAQJun5GbMztRI1RfEIuSrD5ju FJQyuz+2sTHd1yAPYV+3+qsgX4+aTnyS9Q7vNcdLTJoE+XtQg2Y6jqHkyX7Ub+d8JpQZ dp35ZxyL1UumWNVDZ8mLik6ZeAyMM/hbcOHm5lD3YggnYYKgIIiPWclv4WzoyBdrZtWc gfBHLYbS4JzwpXG99Fx6TiIK+Eno1/Fou+gMfcrCFoEdazWqsZ/0Jm8I5VHc1LK1De7y PLBA== X-Gm-Message-State: ALoCoQkD+huCFn0FkSat9tMz4VTGgB/HpwrdlnKcg1u6ClGlsWjX7SJ+o406SANJtvf4NB6ERJzd X-Received: by 10.68.102.225 with SMTP id fr1mr27999640pbb.65.1442879991784; Mon, 21 Sep 2015 16:59:51 -0700 (PDT) Received: from ip-100-127-128-187.compute.internal.netflix.com ([69.53.245.18]) by smtp.gmail.com with ESMTPSA id cn4sm26649068pbc.94.2015.09.21.16.59.50 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Sep 2015 16:59:51 -0700 (PDT) Sender: Warner Losh Subject: Re: svn commit: r287934 - head/sys/boot/efi/loader Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Content-Type: multipart/signed; boundary="Apple-Mail=_866F59F0-1E14-4EC5-BE5A-1CCF664C119E"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5 From: Warner Losh In-Reply-To: <35a0f1b6-0236-4b0e-b919-00cab07429be@me.com> Date: Mon, 21 Sep 2015 17:59:48 -0600 Cc: Adrian Chadd , jhb@freebsd.org, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Message-Id: <5427AC7C-1B0B-4273-B758-DB0C1BDF656F@bsdimp.com> References: <35a0f1b6-0236-4b0e-b919-00cab07429be@me.com> To: Rui Paulo X-Mailer: Apple Mail (2.2104) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Sep 2015 00:07:30 -0000 --Apple-Mail=_866F59F0-1E14-4EC5-BE5A-1CCF664C119E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Apart from the inlining issue John raised (which I agree with his = solution on, btw) and the one cam ctl module, what other modules are meaningfully = different when compiled as modules. Assume that the auto-loading bit is solved, at least for devices on = self-enumerating busses. Warner > On Sep 21, 2015, at 4:53 PM, Rui Paulo wrote: >=20 > No, that doesn't work very well. Not only the modules don't = auto-load, the way the modules are compiled is different. See, for = example, cam ctl which doesn't compile the sg code when it's built into = the kernel, but compiles it when it's built as a module. The sg code is = currently buggy and causes insta-panics with GNOME 3 (perhaps the = auto-mounter in hald (?)). > -- > Rui Paulo >=20 >=20 > On Sep 21, 2015, at 11:24 AM, Adrian Chadd = 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 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 wrote: >>>=20 >>> Author: jhb >>> Date: Thu Sep 17 20:36:46 2015 >>> New Revision: 287934 >>> URL: https://svnweb.freebsd.org/changeset/base/287934 >>>=20 >>>=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 >>>=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 >>>=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 --Apple-Mail=_866F59F0-1E14-4EC5-BE5A-1CCF664C119E 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 iQIcBAEBCgAGBQJWAJn0AAoJEGwc0Sh9sBEANREP/iu9rtcXKEXWoA/cjk7SKUFs CZcKGlqWU62fIGR/EcZ4jiXQjUHkC7XW/I+91jZr/DXQMCWYhJ5HKza2gmb53yKG QS8lZsqt0bACMKrRS3QP9G0SpR+oGFVIx7eCUHBeTGbHzxCbuAqYN+fPV45843TH e7mo/Om6aOrrXg6lLueWttuqN4l+I11BBALULXytEnypMXgF/eVbBl5MMHVTgd+J 9sMLFMnZmLjZ+pzS1mPf7oJPWK+OjlMrzc1tKKc+itg9ZsP1BNhZR0OPNp1CkAiL cV4JwlrnIBb2aFBTyzGL2KelcxcG8XqSGbVWeQqVL6iXmh/O3c0zh9CI+fkgWCJz iDykOc7Z/SWrPG7N3V13JP7ICgO8qXvtZO58Li69zTm0CfdDX/i9d7qTDWax2oHm 5NrhIpxRg18s8DSCWJh/dVuC3P8IAW0Poa3twkoHZTxh2p3VXxQJpgPNPp8t6fLY qaNTPNfPsAuC3cVZTCnoQcYM1gK5gKYkJ2o/ImF4R/QylH2AD0LxAZbcUDaLFxlw jiljctlhtpW1s9JsbT704K0RrNI8W22PVni0NnfCmeGfT/6T2ZHQHV3yotTzcvCq mZ9xDwmX21Y5pNGG8xI08i9aAosH/NLUFg1YoI7m8pfRGYfUq27FbEiRrko5fKk4 7hpVjXKKXMqDDZ7LhHGS =DoMH -----END PGP SIGNATURE----- --Apple-Mail=_866F59F0-1E14-4EC5-BE5A-1CCF664C119E--