Message ID | 219224e6-71f5-3209-09d5-9863a0b6fd4a@amd.com (mailing list archive) |
---|---|
State | New, archived |
Delegated to: | Bjorn Helgaas |
Headers | show
Return-Path: <linux-pci-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A400360210 for <patchwork-linux-pci@patchwork.kernel.org>; Wed, 6 Dec 2017 17:58:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9338428A5A for <patchwork-linux-pci@patchwork.kernel.org>; Wed, 6 Dec 2017 17:58:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 87EB828AC5; Wed, 6 Dec 2017 17:58:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 505C128A5A for <patchwork-linux-pci@patchwork.kernel.org>; Wed, 6 Dec 2017 17:58:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752212AbdLFR64 (ORCPT <rfc822;patchwork-linux-pci@patchwork.kernel.org>); Wed, 6 Dec 2017 12:58:56 -0500 Received: from mail-sn1nam01on0076.outbound.protection.outlook.com ([104.47.32.76]:29089 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751680AbdLFR6z (ORCPT <rfc822;linux-pci@vger.kernel.org>); Wed, 6 Dec 2017 12:58:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=oOeWU2OhvO07MOq+bFCyXmQy7YitG+ngJ5+p1rzXIog=; b=vC6jiDWa2TL9ZjktyQK+9DIc+8Kt/zxuh6k2XPQdiBK1+4OtEYcZODGtgj81IiXOmB2ny2oUbEEs3KfTD+tmqdq2VVm6ksRKk8cMkxbpsDfIZTKGMP2Ew8J4OsNgFtWknD9HXb7hKfEMXJYpuoLHGhc1ASmKoUCAvRjDkIUFxOA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Christian.Koenig@amd.com; Received: from [IPv6:2a02:908:1251:7981:4030:d3ea:de17:169b] (2a02:908:1251:7981:4030:d3ea:de17:169b) by CY4PR12MB1304.namprd12.prod.outlook.com (10.168.168.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.282.5; Wed, 6 Dec 2017 17:58:51 +0000 Subject: Re: [regression] PCI early boot hang on certain AMD systems To: Ingo Molnar <mingo@kernel.org>, Bjorn Helgaas <helgaas@kernel.org> Cc: Linus Torvalds <torvalds@linux-foundation.org>, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Shevchenko <andy.shevchenko@gmail.com>, Thomas Gleixner <tglx@linutronix.de> References: <20171115185855.GA11685@bhelgaas-glaptop.roam.corp.google.com> <20171206161649.7ievlr7adshlxlho@gmail.com> From: =?UTF-8?Q?Christian_K=c3=b6nig?= <christian.koenig@amd.com> Message-ID: <219224e6-71f5-3209-09d5-9863a0b6fd4a@amd.com> Date: Wed, 6 Dec 2017 18:58:41 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20171206161649.7ievlr7adshlxlho@gmail.com> Content-Type: multipart/mixed; boundary="------------D52FCFD4D90AE8955DEAAE55" Content-Language: en-US X-Originating-IP: [2a02:908:1251:7981:4030:d3ea:de17:169b] X-ClientProxiedBy: AM5PR0701CA0004.eurprd07.prod.outlook.com (10.168.161.14) To CY4PR12MB1304.namprd12.prod.outlook.com (10.168.168.141) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e9fc3490-24eb-4993-14a7-08d53cd302df X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(2017052603286)(49563074); SRVR:CY4PR12MB1304; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1304; 3:jibetj+LrYp2+KMF8QuZBU8gJ726NW7xOOr2Ilm9/I0ItyPhGiBHZW/oK03RJthezwg/uEesyU+fS2ltSDjS3VkE3ju6QVauS+jSnZZENYVC0LpR5E3lUYlrmxQ1b13LUVUR7SQfv6AWOW3jZr4knOtBucJk1Syr1Oxe5tyfoPER7hUKFafSU836wLYaZ09mHExsdMzJQVE9l4TZi2Qq59CKYOSx71fcsOnl90RyQfubKBhIDAQmwye0p56stywE; 25:3iAxp6V7xddguZ/9qaO9Kxv/DkYvv0jTojuulpL7Zp/0f+Heu31NFdXzgow6QW1kCgp+bEFdBPcv1h9lDLwmDFhXoJXtXpJotprlr1zaJNx+KzAtcExb6d+PLZdXeyvHRk0pwJvKFByvF3IQvvayTSWafa0HtRKVbhbp88xqr5fzQIVm/d2sx7PWlQHxsoHA4kNz7cn3Hw+mvoq4h+VJyR9kxcTnkSZ/rBkwRU8D0jzxmO/E5K43uWqGOO7iMG2DUZEWuK56EoUvelskh1ybmFa1AyskoeWWr3WT/BofqLPQzuprLdION79IKTFgoFhd8SNxsiQwtVUqPz2nyg+COA==; 31:+7xT8RczJvjsEtKTPPlMfMg0GGinNMyX4QK8Y8crXSd8nJl/KDt0Gwgu2oYsWRG2WNA9SmEs7fKuWph0ndCLP3dmx2wanoJ7D2nD5cePhYlAGlqwShpQPKKZCXKEb9rQD2HHxxshQGBPvGEcLN7xBkAPb/MGX9VOMKmiWTGFC2iO1Xvv6oAIgYPvCCo60z34MKEMnzmApa3SOKmx3uQzkA9AJxb4M3bl6JHUyBVQpq8= X-MS-TrafficTypeDiagnostic: CY4PR12MB1304: X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1304; 20:SBBCA4XDQOTZ09ZPkcXTTCWgTHGO1NPKXm6j+d9Qboo2CC1tQ2LNP5IOaR+yz6m9+lCGoPFbNgsYratdw7Ebfd9F4f8mQCxvf4tsQE1RyN8fKunuCswhYtaYSo0IWTlHYJb4mLOMg7LUogJ+60LtbEv6vo4j49usXgnseV5K7AQlw+2ThwMXg8N8ejP6FrpRMm21Sy9vrkzaCT6bE70ETz7QybOuAGhAGHKkluNcQNkhU6Q0wv0HXYqSaabhUGr8yoxeHXVSblBWmgZyQJ54abPDze6ahGh4Vx6zsCDrdIOUJfU/3zENS4BF5ixvpNYmG9durGMCk4rRlmtG8+xmCfWgDRb9EOHZQY58rKDW8wrphw273bhh7A1atzrKqvZebcNJYpjPV5dIpnnxw8n+2NNKnvXI3HuDUAPutViWRzQSBC/2UETmq/jmRfIlt2/xOC6n27PKx4bo7ql8eq2yxKgHoQvFni9LJuw5t+4rygld+dHQWVguqqYdCoqH/8qw; 4:MRxgrE23e/yhB2+DPUAQe5bqITOSRJa1JAFH7XwVsCwOSJQ5Olh/TBYtPggl9C6bqc8KrusYZ3166ttLSEqsZgUs6AedgispA0Fyty6blBX35QS1IH50ymHnPTgfa9YO1XMbuZ6om8DJVX8EaVMcmOONzhN3jIaLHo3gDeSRizeVAguAcvbVlr0Bi3n7EMMhrwGq+xOXZzEoz2UjtrV/XiAzUwRfUBZpX/yJYuLkG4gOqf+/fPJHsLqsvj+kBJCVV7eHawg3fZO2WjVgk1C2yg== X-Microsoft-Antispam-PRVS: <CY4PR12MB1304D4EB7499FD743BEBA12683320@CY4PR12MB1304.namprd12.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(102415395)(6040450)(2401047)(8121501046)(5005006)(10201501046)(3002001)(3231022)(93006095)(93001095)(6055026)(6041248)(20161123562025)(20161123564025)(20161123558100)(20161123560025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:CY4PR12MB1304; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CY4PR12MB1304; X-Forefront-PRVS: 05134F8B4F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(366004)(346002)(39860400002)(24454002)(199004)(189003)(72206003)(65826007)(16586007)(33646002)(37036004)(31686004)(58126008)(5660300001)(568964002)(54906003)(84326002)(53936002)(305945005)(2476003)(65956001)(6246003)(110136005)(316002)(7736002)(4326008)(101416001)(4810100001)(39060400002)(4610100001)(65806001)(1706002)(31696002)(97736004)(6486002)(64126003)(36756003)(6116002)(86362001)(575784001)(25786009)(105586002)(5890100001)(8676002)(83506002)(6666003)(478600001)(52396003)(52116002)(68736007)(2950100002)(2906002)(8936002)(81156014)(229853002)(81166006)(76176011)(106356001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR12MB1304; H:[IPv6:2a02:908:1251:7981:4030:d3ea:de17:169b]; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR12MB1304; 23:dGDIJUien4mi0uBGI/Jajj9kGFpA/3Pu7uvbF58//?= =?us-ascii?Q?ku72MDWnn7x0tLt4KRU9ftnut+0KzMKcHSTlg12kyZFX1cX3MlDlTp6p9NrF?= =?us-ascii?Q?uKEM9d463wGp2ckEZ5p6UMVb3mYNsVzVvowZCmjTr85GV0rMPeLbHB63vJbU?= =?us-ascii?Q?C9b1Qp5vxJ96A3L4yK5ZD8Q14J44Q2lx8tFRsDNYVzgL92ugU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otXE3nBNiPTUxbxZIvs9JvYxsfSRt7SVie02Scl?= =?us-ascii?Q?dr+9PvINCHt0oCklKHTowzyBN/acQynIRud0s3M9PcktH4sCjvywgGZkb04I?= =?us-ascii?Q?71ZFziLn941YgXwvvk6/EPhCziKr2cOBVWdUazcyvwCgQHBFPNmjcpOglx5z?= =?us-ascii?Q?oLyiNSgEZmck0NwPrvtaJABjr0OtxkNwdNploWtSmWrc2nig4buvitLjFiYD?= =?us-ascii?Q?WZxPV4cg9aeUjM4xl7vTpk/XCGJQ4oORP+X5wVsZ8fjpPdC+vECadhh66wti?= =?us-ascii?Q?YI/Y2hqAWHE2X+ntFk10pdlZ5OD8NSw5K2O9286huniT6jM?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1304; 6:+TKTNvSLheSGOJoGnqrNQoRYueWdih8o60fctvtTcuZ9eXO7+AJ/YkxbBjjQ86J3O7wpOit8GCAPiIPbt/a+GjTxG/TIY/WaKbUelPm8BmaWkQGeChQNZYKL1SJbDDqn1S2J+jGDV0InEEiajjcpBW7vPLABbRqsVzq5Zmn8xDCkb3wl3t7XCo5k+IGBtuqjqcrrvEG6vKkisxwzQGerP3Jt2t0iH56x02ZucLYvozwz0JBOBM58fhkpGhQIUFKry4cLxokjy+uY+Kz53f97MiBqlUKzOjGCGVbnmIcPCTx0T9cQlAIHeJkNir1A617er5xEAVBlv6sb9e6wBsM2AjJwy8mITXootBli2JYnz2I=; 5:YB4a55blEAGDjQICdE5Fwxdy8xoX3O1Pmxgv7/rxYBsIuJBD69tsm7TwcYw5MezudBY1fwgBzZXikG1Jt2MFwwiJPFP4e9pz+2pD2zLNbcoVAQIFlx3obrjGSGjeRxg7sl0+a+02YlnXDNzCwB3ied+GvHzTaS4W4erdVXQS8MA=; 24:38/XlbtJuO6W/5YNHNxFQboZUOtbgqDJVIDzrOSgpfBsW8tenkRdxbpKtg2uKmYVKufjras0tWlGDeA39Q0qiuwNVO3FaEZEXOIGVswQHnI=; 7:6Na6aMs38Dg8JFnm4G3u3BLI3EVupN95HnXLHBlpO4jexYoKm43azkIY7q98iYBOSU3trje+YzE6htVr7JQKfdHkEmrPviSD8RtVHgQHNa0aXMPrzLb8GEp03dq3JLCnrxx9deng9uEx5mUBNlAgHkcDIddE4RRt3z4e9Nn7tQM8cQzZfC8+eKc9OGYialzadV5Bo0gZuw1rz7tZ3NUGCuQ/axGYBW28fJzKRYmnySx5aVALHmpvtnFW7HeYUwMC SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1304; 20:dRNVJXPH1/JuMZ67qMl4SVdvJe951Km2r9m4LD5YWPvy2mFlxhU8lwA721kzkJjoKgdxK4Xa+SDmw1AQ37w9AsyHkIQ9dGT+YOik8BemSfWSg6Sza/OD5xFP6c7d2EFW/nnm93fYXC0t6mB/21MGvV7N0Ncenh41ILOBcwkyncuU0CDq6+Et6dTpxLlqkxl8b9b7SuYe/lRBkOTciczJgyNx/pMUqU4pTGDIW5y3utNnvtGRLIOdKUzEfIDBXeTx X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Dec 2017 17:58:51.1733 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e9fc3490-24eb-4993-14a7-08d53cd302df X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1304 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: <linux-pci.vger.kernel.org> X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
From e5d5c9682aa02a6b9c0c6bd446d433b924441679 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com> Date: Tue, 28 Nov 2017 10:02:35 +0100 Subject: [PATCH 3/3] x86/PCI: limit the size of the 64bit BAR to 256GB MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This avoids problems with Xen which hides some memory resources from the OS and potentially also allows memory hotplug while this fixup is enabled. Signed-off-by: Christian König <christian.koenig@amd.com> --- arch/x86/pci/fixup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/pci/fixup.c b/arch/x86/pci/fixup.c index c817ab85dc82..149adbc7f2a3 100644 --- a/arch/x86/pci/fixup.c +++ b/arch/x86/pci/fixup.c @@ -701,7 +701,7 @@ static void pci_amd_enable_64bit_bar(struct pci_dev *dev) res->name = "PCI Bus 0000:00"; res->flags = IORESOURCE_PREFETCH | IORESOURCE_MEM | IORESOURCE_MEM_64 | IORESOURCE_WINDOW; - res->start = 0x100000000ull; + res->start = 0xbd00000000ull; res->end = 0xfd00000000ull - 1; /* Just grab the free area behind system memory for this */ -- 2.11.0