From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C61BBC4332F for ; Mon, 17 Oct 2022 06:26:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229895AbiJQG0w (ORCPT ); Mon, 17 Oct 2022 02:26:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230104AbiJQG0w (ORCPT ); Mon, 17 Oct 2022 02:26:52 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AE872E69B; Sun, 16 Oct 2022 23:26:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=bMvF5Nhdo+jnm47wBDRGsad0a/S1qc9SVkdHSXSEiAc=; b=RG1DTM3Yne7/F9AIu+aH5R1SaE ahv2TsuEeSe6ETKaosVTsnBQD/+ytEtQWC14ffCHOmEcAkK4MYExkuQ/qjKxNUN72/5hyvLI+XlAT GTB4RrX6TSkE/UqvetGBgeKBsRCdl9nnVqq/1ELWDk8tFiBvVpPjPcSXJuHIXtk3IIdyELqkXlE8U hYVTTodbZwWwgfCaRvInFknnhKlC5b6MsVbpgbOAKBTPZ9Hh2rCWlmYLPZNTsCdcPbXHurGrmGSu+ Q+kFpMpc3E53HAjF1lFyttOYDy+CMblSOBZfpcvziLwCM2HxVYFBzCo+o0bOyoWdq5vZoDMbT/nee aFeyWPYQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1okJaK-007uUt-7G; Mon, 17 Oct 2022 06:26:48 +0000 Date: Sun, 16 Oct 2022 23:26:48 -0700 From: Christoph Hellwig To: Rui Ma Cc: helgaas@kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Alexander.Deucher@amd.com, bhelgaas@google.com Subject: Re: [PATCH] PCI/IOV: Decrease VF memory BAR size to save host memory occupied by PTEs Message-ID: References: <20221011112325.992317-1-Rui.Ma@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221011112325.992317-1-Rui.Ma@amd.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Besides the various style issues: I don't think we can just hardcode specific devices in the PCIe core. If we want to do this we'll need something like PCIe extended capabilities or ACPI tables to describe the behavior in a standardized way.