Received: from list by lists.gnu.org with archive (Exim 4.71) id 1e4orw-00035R-NR for mharc-grub-devel@gnu.org; Wed, 18 Oct 2017 09:58:48 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57652) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4oru-00034M-SQ for grub-devel@gnu.org; Wed, 18 Oct 2017 09:58:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e4ors-0005fi-AX for grub-devel@gnu.org; Wed, 18 Oct 2017 09:58:46 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:34849) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e4ors-0005eT-3A for grub-devel@gnu.org; Wed, 18 Oct 2017 09:58:44 -0400 Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v9IDwe5D012501 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 18 Oct 2017 13:58:40 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id v9IDwcgf018527 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 18 Oct 2017 13:58:39 GMT Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id v9IDwbKr014970; Wed, 18 Oct 2017 13:58:37 GMT Received: from olila.local.net-space.pl (/10.175.209.112) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 18 Oct 2017 06:58:37 -0700 Date: Wed, 18 Oct 2017 15:58:28 +0200 From: Daniel Kiper To: "Vladimir 'phcoder' Serbinenko" Cc: Daniel Kiper , eric.snowberg@oracle.com, grub-devel@gnu.org Subject: Re: [PATCH v2] sparc64: Add blocklist GPT support for SPARC Message-ID: <20171018135828.GC7593@olila.local.net-space.pl> References: <1494552324-191766-1-git-send-email-eric.snowberg@oracle.com> <20171006140421.GA2075@router-fw-old.local.net-space.pl> <20171009115742.GA1111@router-fw-old.local.net-space.pl> <20171012120030.GA3950@router-fw-old.local.net-space.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] X-Received-From: 141.146.126.69 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Oct 2017 13:58:48 -0000 On Thu, Oct 12, 2017 at 12:02:42PM +0000, Vladimir 'phcoder' Serbinenko wrote: > On Thu, Oct 12, 2017, 14:00 Daniel Kiper wrote: > > > On Mon, Oct 09, 2017 at 08:42:04AM -0600, Eric Snowberg wrote: > > > > On Oct 9, 2017, at 5:57 AM, Daniel Kiper wrote: > > > > On Fri, Oct 06, 2017 at 02:58:30PM -0600, Eric Snowberg wrote: > > > >>> On Oct 6, 2017, at 8:04 AM, Daniel Kiper > > wrote: > > > >>> On Thu, May 11, 2017 at 06:25:24PM -0700, Eric Snowberg wrote: > > > >>>> Add block-list GPT support for SPARC. The OBP "load" and "boot" > > methods > > > >>>> are partition aware and neither command can see the partition > > table. Also > > > >>>> neither command can address the entire physical disk. When the > > install > > > >>>> happens, grub generates the block-list entries based on the > > beginning of the > > > >>>> physical disk, not the beginning of the parition. This patch fixes > > the > > > >>>> block-list entries so they match what OBP expects during boot for a > > GPT > > > >>>> disk. > > > >>>> > > > >>>> T5 and above now supports GPT as well as VTOC. > > > >>>> > > > >>>> This patch has been tested on T5-2 and newer SPARC systems. > > > >>>> > > > >>>> Signed-off-by: Eric Snowberg > > > >>>> --- > > > >>>> Changes in v2: > > > >>>> Do all GPT offset calculations in setup > > > >>>> --- > > > >>>> util/setup.c | 26 +++++++++++++++++++++++--- > > > >>>> 1 files changed, 23 insertions(+), 3 deletions(-) > > > >>>> > > > >>>> diff --git a/util/setup.c b/util/setup.c > > > >>>> index 8aa5a39..8036307 100644 > > > >>>> --- a/util/setup.c > > > >>>> +++ b/util/setup.c > > > >>>> @@ -138,6 +138,9 @@ struct blocklists > > > >>>> #ifdef GRUB_SETUP_BIOS > > > >>>> grub_uint16_t current_segment; > > > >>>> #endif > > > >>>> +#ifdef GRUB_SETUP_SPARC64 > > > >>>> + grub_uint64_t gpt_offset; > > > >>>> +#endif > > > >>> > > > >>> This does not seem to be used below??? > > > >> > > > >> After looking into this further, I don???t see a problem... > > > > > > > > Sorry, it is a problem. It declares the gpt_offset variable here??? > > > > > > No, it is not declaring a variable here. It is adding a member > > > to a structure, the same way x86 does with current_segment. > > > > Ugh... Sorry, you are right. Patch is formated in a bit unfortunate way > > and I have to look at original file to spot it. So, in this situation LGTM. > > If there are no objections then I will apply it in a week or so. > > > I'd like to review this particular patch first Vladimir, are you OK with that patch? I am going to apply this by the end of this week. Daniel