From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934417AbcAZL66 (ORCPT ); Tue, 26 Jan 2016 06:58:58 -0500 Received: from mga03.intel.com ([134.134.136.65]:44037 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933801AbcAZL64 (ORCPT ); Tue, 26 Jan 2016 06:58:56 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,350,1449561600"; d="scan'208";a="868876673" Message-ID: <1453809566.2521.239.camel@linux.intel.com> Subject: Re: [PATCH v3 3/4] x86/efi: print size in binary units in efi_print_memmap From: Andy Shevchenko To: Matt Fleming , "Elliott, Robert (Persistent Memory)" Cc: Andy Shevchenko , James Bottomley , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , "linux-efi@vger.kernel.org" , Rasmus Villemoes , Andrew Morton , "linux-kernel @ vger . kernel . org" Date: Tue, 26 Jan 2016 13:59:26 +0200 In-Reply-To: <20160126115041.GA7478@codeblueprint.co.uk> References: <1453560913-134672-1-git-send-email-andriy.shevchenko@linux.intel.com> <1453560913-134672-4-git-send-email-andriy.shevchenko@linux.intel.com> <1453567445.2470.24.camel@HansenPartnership.com> <94D0CD8314A33A4D9D801C0FE68B40295BF3B840@G9W0745.americas.hpqcorp.net> <1453748172.2363.36.camel@HansenPartnership.com> <1453751131.2363.54.camel@HansenPartnership.com> <94D0CD8314A33A4D9D801C0FE68B40295BF3BBD3@G9W0745.americas.hpqcorp.net> <20160126115041.GA7478@codeblueprint.co.uk> Organization: Intel Finland Oy Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.3-1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2016-01-26 at 11:50 +0000, Matt Fleming wrote: > On Mon, 25 Jan, at 08:37:58PM, Elliott, Robert (Persistent Memory) > wrote: > > > > For the UEFI memory map, that was indeed my intention.  I > > don't want it silently round to "20 GiB".  Even rounding > > to "19.999 GiB" is imprecise. > > OK, let's just go with your original patch Robert (minus the @ addr > bit) since it's pretty small and does what we want for this specific > case. However I am against this, but seems reviewers do not leave a chance to us, I would propose to copy-and-paste table of binary prefixes and use __ffs64(). -- Andy Shevchenko Intel Finland Oy