Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2709059pxb; Tue, 12 Oct 2021 11:50:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1S7XsY/aysbzGjBIzYcaFSmv4O1S0fdQ7oJk9iUR4sGKh9hCGzRelZ+yYDud9ViOxID7j X-Received: by 2002:a17:90b:33c7:: with SMTP id lk7mr8007644pjb.172.1634064644936; Tue, 12 Oct 2021 11:50:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634064644; cv=none; d=google.com; s=arc-20160816; b=p2ngOQKSk5KoItCCAfMjFF8B52lkTxmUR4Sm8BM9Gi3jz+eS6x/LSwpfKwfcP0ZFUl w3O00+PtsWCpGQ+HMl/FSfUN+7T4cA0g3GrPTcPGtYRFw0r4l/kwoYfZmQNrAKj/RPU0 F7D35G/A8qtico+ky1iywnmStmglQSvxwSxCTvmBemsmWJQPcGmhLOjseOalh6pUwFUV 5FArPMegEoxrXa52dH5pyWBLVhknaZM5BGUDVix6EeWt5E9sQJvQfIO4SqlxZcr5ZUep P3ECHU5cFWA3GtVtFiaBfyZ3j5DAPLM92LKFx49QA0LOX5UJynt3b9wcHdPQyj6GZTLI evkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=BRgWR8lx5kzfJiT+7Xm3RqkM5hK1PNQJn+4YW223XJk=; b=0s6WdLWujOf6PLZZi8tU62ji4DN083WZM0DfiVXSqT8qlqPIDySeGwf/e3qSAlIMnW IocSeKDV5GTi3sbeq+o5niSg1UePsXManWOOx4dEYN8na9oXh9BDhDbAGmdvP44Z7ESO Wc//ReRp0n3+3WRDoG4zJNNhF+qkSCXHEKwyyEKTgwtRfCgHE3o5oCgky1ySFenOtldJ dOhBdvPrAcI5sG7hwPGFJFiBNQ1XI8HJP1FudfAuIwt/jSWHdzOEuwPOyccns1xmJ2Ef 6OHudTGlS19Y71y8IXMF+b5yQWROH+mCZfmWJ3V/j7nAGQLEgorZHwBpxcTLFsFc0w7B PjDA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m19si8926506pfk.333.2021.10.12.11.50.32; Tue, 12 Oct 2021 11:50:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234844AbhJLSlN (ORCPT + 99 others); Tue, 12 Oct 2021 14:41:13 -0400 Received: from mga07.intel.com ([134.134.136.100]:3810 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234738AbhJLSlN (ORCPT ); Tue, 12 Oct 2021 14:41:13 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10135"; a="290731356" X-IronPort-AV: E=Sophos;i="5.85,368,1624345200"; d="scan'208";a="290731356" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Oct 2021 11:38:55 -0700 X-IronPort-AV: E=Sophos;i="5.85,368,1624345200"; d="scan'208";a="562781011" Received: from akleen-mobl1.amr.corp.intel.com (HELO [10.209.115.208]) ([10.209.115.208]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Oct 2021 11:38:53 -0700 Message-ID: Date: Tue, 12 Oct 2021 11:38:53 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [PATCH v5 12/16] PCI: Add pci_iomap_host_shared(), pci_iomap_host_shared_range() Content-Language: en-US To: "Reshetova, Elena" , "Williams, Dan J" , "Michael S. Tsirkin" Cc: Kuppuswamy Sathyanarayanan , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Peter Zijlstra , "Lutomirski, Andy" , Bjorn Helgaas , Richard Henderson , Thomas Bogendoerfer , James E J Bottomley , Helge Deller , "David S . Miller" , Arnd Bergmann , Jonathan Corbet , Paolo Bonzini , David Hildenbrand , Andrea Arcangeli , Josh Poimboeuf , Peter H Anvin , "Hansen, Dave" , "Luck, Tony" , Kirill Shutemov , Sean Christopherson , Kuppuswamy Sathyanarayanan , X86 ML , Linux Kernel Mailing List , Linux PCI , "linux-alpha@vger.kernel.org" , "linux-mips@vger.kernel.org" , "linux-parisc@vger.kernel.org" , "sparclinux@vger.kernel.org" , linux-arch , Linux Doc Mailing List , "virtualization@lists.linux-foundation.org" References: <20211009003711.1390019-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20211009003711.1390019-13-sathyanarayanan.kuppuswamy@linux.intel.com> <20211009053103-mutt-send-email-mst@kernel.org> <0e6664ac-cbb2-96ff-0106-9301735c0836@linux.intel.com> From: Andi Kleen In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/12/2021 11:36 AM, Reshetova, Elena wrote: >> The 5.15 tree has something like ~2.4k IO accesses (including MMIO and >> others) in init functions that also register drivers (thanks Elena for >> the number) > To provide more numbers on this. What I can see so far from a smatch-based > analysis, we have 409 __init style functions (.probe & builtin/module_ > _platform_driver_probe excluded) for 5.15 with allyesconfig. The number of > distinct individual IO reads (MSRs included) is much higher than 2.4k and on the > range of 30k because quite often there are more than a single IO read in the > same source function. The full list of accesses and the possible call paths is huge > for manually looking at, but here is the list of the 409 functions if anyone wants > to take a look: Thanks Elena. I suspect the true number is even higher because that doesn't include IO inside calls to other modules and indirect pointers, correct? -Andi