From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Garrett Subject: Re: [PATCH 0/4] EFI 1:1 mapping Date: Mon, 3 Jun 2013 22:29:30 +0100 Message-ID: <20130603212930.GA28955@srcf.ucam.org> References: <20130603143010.GA20252@srcf.ucam.org> <1370270282.2910.9.camel@dabdike> <20130603152122.GA21312@srcf.ucam.org> <1370276286.2910.29.camel@dabdike> <20130603162435.GA22563@srcf.ucam.org> <1370277307.2910.39.camel@dabdike> <20130603164237.GA23146@srcf.ucam.org> <1370282703.9888.5.camel@dabdike> <20130603181110.GA25060@srcf.ucam.org> <1370294345.9888.12.camel@dabdike> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1370294345.9888.12.camel@dabdike> Sender: linux-efi-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: James Bottomley Cc: Borislav Petkov , Linux EFI , Matt Fleming , Jiri Kosina , X86-ML , LKML , Borislav Petkov List-Id: linux-efi@vger.kernel.org On Mon, Jun 03, 2013 at 02:19:05PM -0700, James Bottomley wrote: > On Mon, 2013-06-03 at 19:11 +0100, Matthew Garrett wrote: > > No. I'm saying that calling it with the 1:1 map is something very > > different to the behaviour of Windows, and I'm saying that doing so is > > known to cause variable writes on some Apple hardware to stop working. > > If we're aiming for maximum compatibility, we need to call > > SetVirtualAddressMap() with addresses above the canonicalisation hole. > > OK, so tell me this problem: it's a new one one me. I think you're > saying if we don't call SetVirtualAddressMap with a mapping above a > certain value, some Apple system breaks somehow? (how?). SetVariable() returns an error. Digging through disassembly of the code generating the error got me to the point of realising it was doing some sort of pointer arithmetic and then giving up. -- Matthew Garrett | mjg59-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org