Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3228248rwb; Fri, 9 Dec 2022 11:34:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf7T6treKZjxjKeZ+RUfDKuFj5GxWC6UhOXhaRqd2Mw86nk4xBBmPIjjpeV9CXLDW8pP0b9w X-Received: by 2002:a17:907:2994:b0:7c0:e535:13fd with SMTP id eu20-20020a170907299400b007c0e53513fdmr5070437ejc.70.1670614494945; Fri, 09 Dec 2022 11:34:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670614494; cv=none; d=google.com; s=arc-20160816; b=XAMjHNlk/txqiEPhwdx5lR0rOh4qQvz1LGo/02ihBafFuXqcdFrD6Iq0//RoctAB3s ct1K3uie7V1j+J2AZjIeTPin1GdOUkm/1+U7GRWUTEvQG3/33Vz0GLm29ZwXtDyygrM/ CbqIbkBPItDHusCjRfubYPATcLPpH6LEPYA5uIOnU2KMassVcxQqcGni8FkHUwBcgAYN kdANu8/pUtX64/UPXobO4RVNIiPBqCk9ostiAhNhYe3jYkHhzsrKLZfn0GGVCxuUCaVO YJClIqg7lF1XxbYWdPsMiRzU6m/eGF74GgXBIgwN25T3nec7eg259GU22qHHzA49inP9 RHeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=awAHUvAUQwkibaUthtUJk/OU8GTKSxjuS6B7PhGWjUE=; b=PnJw91sKyN72frpexCJJVQmHkBf/DChZ8NpefyfbcVby55YTez8/ssaxc9zQ4laUT0 4suy//P/fgv1j3nJJd/uribDOAMvDvTYp9cl4GR16ycuDbNLtUd6sOl4poCfFFp0Wmww ZYj6Agn4DX4osWSetLV+q3LXBoEx8XP+0MZH+neieUgdAhdliKEoUoxkL9lxmfy5qiw2 d74+uozpgX2+Wm7RrQr7dKfrB7olb2F56CiTYPOP1+leQJEgkznpkylWCAkq3fDG8FCB 0m6YhZY/UhdRa2n8vjpsiHUACH6s4dbAjKXYQd8sggTxaTsFzeHOgtHm812EDVuToJ9m fYiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Z9cOOdps; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b93-20020a509f66000000b0046cf2a9bb1csi1851778edf.209.2022.12.09.11.34.37; Fri, 09 Dec 2022 11:34:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Z9cOOdps; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229962AbiLISmd (ORCPT + 74 others); Fri, 9 Dec 2022 13:42:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229762AbiLISmb (ORCPT ); Fri, 9 Dec 2022 13:42:31 -0500 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3F035B59C; Fri, 9 Dec 2022 10:42:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1670611351; x=1702147351; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=n0tWGGZDbd5iBdvKg5QC1cQ6LSUj5SaZ5KFci2+KPTE=; b=Z9cOOdps1fvgaAwdT+4OrAqcSqf/OD4M6ih2CDAkXuR7TGDXm/x9OY6Q iAunoxPoK9B+EFGCp5J6Q22q4ecKXnk5LMXKWjZH5jLfS1LhtELZIqgXL mOwsw1yL696INgrZ+zb0xkEf6iaZwoBw2T9sBkuZOqE2exi1a2nH8wjhP GjqnV8c3x5dpZHVqy7kqVuAZbtCS4YY4d/BF8wvEWqoEaQiFNUEPpyq9j T3grapRFgDY1xB8XbVDvczr7TwHyfNRvQCP+s7EFd3lWM27vAg5/FOvvS Rynk7GlI+OY51uyrmgahfP1Zc27Vigi8MTNdhsxGScWr5mcrEiG6i5+GK w==; X-IronPort-AV: E=McAfee;i="6500,9779,10556"; a="403779567" X-IronPort-AV: E=Sophos;i="5.96,232,1665471600"; d="scan'208";a="403779567" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Dec 2022 10:42:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10556"; a="647488707" X-IronPort-AV: E=Sophos;i="5.96,232,1665471600"; d="scan'208";a="647488707" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga002.jf.intel.com with ESMTP; 09 Dec 2022 10:42:09 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1p3iJz-0077mF-0r; Fri, 09 Dec 2022 20:42:07 +0200 Date: Fri, 9 Dec 2022 20:42:06 +0200 From: Andy Shevchenko To: Bjorn Helgaas Cc: linux-pci@vger.kernel.org, Hans de Goede , Florent DELAHAYE , Konrad J Hambrick , Matt Hansen <2lprbe78@duck.com>, Benoit =?iso-8859-1?Q?Gr=E9goire?= , Nicholas Johnson , Mika Westerberg , Werner Sembach , mumblingdrunkard@protonmail.com, linux-kernel@vger.kernel.org, Bjorn Helgaas Subject: Re: [PATCH v2 3/4] x86/PCI: Tidy E820 removal messages Message-ID: References: <20221208190341.1560157-1-helgaas@kernel.org> <20221208190341.1560157-4-helgaas@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221208190341.1560157-4-helgaas@kernel.org> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 08, 2022 at 01:03:40PM -0600, Bjorn Helgaas wrote: > From: Bjorn Helgaas > > These messages: > > clipped [mem size 0x00000000 64bit] to [mem size 0xfffffffffffa0000 64bit] for e820 entry [mem 0x0009f000-0x000fffff] > > aren't as useful as they could be because (a) the resource is often > IORESOURCE_UNSET, so we print the size instead of the start/end and (b) we > print the available resource even if it is empty after removing the E820 > entry. > > Print the available space by hand to avoid the IORESOURCE_UNSET problem and > only if it's non-empty. No functional change intended. ... > + if (avail->end > avail->start) > + pr_info("resource: remaining [mem %#010llx-%#010llx] available\n", > + (unsigned long long) avail->start, > + (unsigned long long) avail->end); Is there any point why we do not use %pa for resource_size_t parameters? -- With Best Regards, Andy Shevchenko