From patchwork Wed Dec 6 17:58:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Christian_K=C3=B6nig?= X-Patchwork-Id: 10096717 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: 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 ; 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 ; 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 ; Wed, 6 Dec 2017 17:58:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752212AbdLFR64 (ORCPT ); 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 ); 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 , Bjorn Helgaas Cc: Linus Torvalds , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Shevchenko , Thomas Gleixner References: <20171115185855.GA11685@bhelgaas-glaptop.roam.corp.google.com> <20171206161649.7ievlr7adshlxlho@gmail.com> From: =?UTF-8?Q?Christian_K=c3=b6nig?= 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-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: 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?C9b1Qp5vxJ96A3L4yK5ZD8Q14J44Q2lx8tFRsDNYVzgL92ugUe/PZQwYnAg1?= =?us-ascii?Q?RZTDXFk6EVE/SY0Oltm95qdymSKhD6mnLx2RD/SJFbSKf3SralgksAFQXwoI?= =?us-ascii?Q?XRWI4d/1DSWU23XS3Tc+l2PqQY7A4crR+rx//5hyZqOdXrA/Qr8gZDrZPuzo?= =?us-ascii?Q?wfzYdEGYMP0larbg8EbXDXtjd4zDwsMpXDhiFCVVxHEU6tIPUvm/tFvzEqqb?= =?us-ascii?Q?SmwoJ4PsCSIKvcodXLwTdkqLXfiNw9xDvJZas/RTh4PVC5fnv3fo93vQXA7P?= =?us-ascii?Q?aoQP4eXXl51HfS63wKoJqKzLg7EsWRBuWHWCyT8p/E3s/CrHdC3J+kDRGkzN?= =?us-ascii?Q?N663JWDEuRJXI+1lm4eT3EYL0WpVbOwoozEO+v3R53oOLkVtMjY5FztlA0Fs?= =?us-ascii?Q?N+T0nnvCLkRfTVf0FTdjKR2nJV8E+rd6RUTQr95zMG0EAXeKuyhzCUKg92Yb?= =?us-ascii?Q?GrgRCucxOoWFacfuK+eH3jHwLPVva/wjIZIM9j5pgCUcvVtJe1RQILg2wnfo?= =?us-ascii?Q?nCohomb8hgSQKxxXP2S/UyPS7dEJHTPcM93bOHTuKWx/IbscSg7L+IeBEs4t?= =?us-ascii?Q?kiOOQz+azyUe8Y4d4GlPrxtPw08vWiWHWrj1xhfGro0mrWjPAbgDjYaoBcFW?= =?us-ascii?Q?T2W/5O4O8WTlS9wJSiximvjeaTSskhIheZheYTkGeBY3X/9NEaMeKUcu2SGS?= =?us-ascii?Q?F4tLTdv32oNSHdR72POzjwW+zyuAE+fIsg0+pwfefw7Sh21ic+beyoho8+xs?= =?us-ascii?Q?jF19ILTOZtMIA7p6FE5dGNno/rSffGtmIS8qG+6TCW/OypbM9CYYyT6/0/5d?= =?us-ascii?Q?cgCu0GTiZe9XbWpRNie2ebuhAa4g/Vg8ZH6OSwcxB7YlYDg6cEWlqYUCx5gD?= =?us-ascii?Q?LsFuu6EiFvHuxStr2rLukotXE3nBNiPTUxbxZIvs9JvYxsfSRt7SVie02Scl?= =?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: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Ingo, known issue with multi socket systems and the patch in question. The attached set of patches should fix the issue and are already send to Bjorn for inclusion in the next rc. Sorry for the noise, Christian. Am 06.12.2017 um 17:16 schrieb Ingo Molnar: > Hi, > > * Bjorn Helgaas wrote: > >> PCI changes: >> Christian König (4): >> x86/PCI: Enable a 64bit BAR on AMD Family 15h (Models 00-1f, 30-3f, 60-7f) > In v4.15 one of my test systems broke, it hangs in early bootup, during early PCI > setup: > > [ 2.262005] pci 0000:00:18.1: adding root bus resource [mem 0x1027000000-0xfcffffffff 64bit pref window] <--- new resource > [ 2.270081] pci 0000:00:18.2: [1022:1602] type 00 class 0x060000 > [ 2.271081] pci 0000:00:18.3: [1022:1603] type 00 class 0x060000 > [ 2.272083] pci 0000:00:18.4: [1022:1604] type 00 class 0x060000 > [ 2.273079] pci 0000:00:18.5: [1022:1605] type 00 class 0x060000 > [ 2.274083] pci 0000:00:19.0: [1022:1600] type 00 class 0x060000 > [ 2.275089] pci 0000:00:19.1: [1022:1601] type 00 class 0x060000 > [ hard hang ] > > I have bisected the hang to: > > fa564ad96366: x86/PCI: Enable a 64bit BAR on AMD Family 15h (Models 00-1f, 30-3f, 60-7f) > > Reverting the commit makes the system boot again. The 'new resource' line above is > I believe the new BAR added by the commit. > > I've attached the earlyprintk boot log of the hang, with a few printks added to > pci_amd_enable_64bit_bar() of the relevant fields: > > + printk("res->start: %016llx\n", res->start); > + printk("res->end: %016llx\n", res->end); > + printk("base: %08x\n", base); > + printk("high: %08x\n", high); > + printk("limit: %08x\n", limit); > + printk("slot: %d\n", i); > > [ 2.261090] pci 0000:00:18.1: [1022:1601] type 00 class 0x060000 > [ 2.262005] pci 0000:00:18.1: adding root bus resource [mem 0x1027000000-0xfcffffffff 64bit pref window] > [ 2.264001] res->start: 0000001027000000 > [ 2.265001] res->end: 000000fcffffffff > [ 2.266001] base: 10270003 > [ 2.267001] high: 00000000 > [ 2.268001] limit: fd000000 > [ 2.269001] slot: 1 > [ 2.270081] pci 0000:00:18.2: [1022:1602] type 00 class 0x060000 > [ 2.271081] pci 0000:00:18.3: [1022:1603] type 00 class 0x060000 > [ 2.272083] pci 0000:00:18.4: [1022:1604] type 00 class 0x060000 > [ 2.273079] pci 0000:00:18.5: [1022:1605] type 00 class 0x060000 > [ 2.274083] pci 0000:00:19.0: [1022:1600] type 00 class 0x060000 > [ 2.275089] pci 0000:00:19.1: [1022:1601] type 00 class 0x060000 > > On a sucessful bootup the system would continue with: > > [ 0.583060] pci 0000:00:19.2: [1022:1602] type 00 class 0x060000 > [ 0.584079] pci 0000:00:19.3: [1022:1603] type 00 class 0x060000 > [ 0.585084] pci 0000:00:19.4: [1022:1604] type 00 class 0x060000 > [ 0.586079] pci 0000:00:19.5: [1022:1605] type 00 class 0x060000 > [ 0.588039] pci 0000:00:1a.0: [1022:1600] type 00 class 0x060000 > [ 0.589090] pci 0000:00:1a.1: [1022:1601] type 00 class 0x060000 > [ 0.590079] pci 0000:00:1a.2: [1022:1602] type 00 class 0x060000 > [ 0.591080] pci 0000:00:1a.3: [1022:1603] type 00 class 0x060000 > [ 0.593006] pci 0000:00:1a.4: [1022:1604] type 00 class 0x060000 > [ 0.594079] pci 0000:00:1a.5: [1022:1605] type 00 class 0x060000 > [ 0.595082] pci 0000:00:1b.0: [1022:1600] type 00 class 0x060000 > [ 0.596087] pci 0000:00:1b.1: [1022:1601] type 00 class 0x060000 > [ 0.597083] pci 0000:00:1b.2: [1022:1602] type 00 class 0x060000 > [ 0.598080] pci 0000:00:1b.3: [1022:1603] type 00 class 0x060000 > [ 0.599085] pci 0000:00:1b.4: [1022:1604] type 00 class 0x060000 > [ 0.600079] pci 0000:00:1b.5: [1022:1605] type 00 class 0x060000 > [ 0.601124] pci 0000:03:00.0: [1000:0072] type 00 class 0x010700 > [ 0.602037] pci 0000:03:00.0: reg 0x10: [io 0xe000-0xe0ff] > [ 0.603010] pci 0000:03:00.0: reg 0x14: [mem 0xdff3c000-0xdff3ffff 64bit] > [ 0.604009] pci 0000:03:00.0: reg 0x1c: [mem 0xdff40000-0xdff7ffff 64bit] > [ 0.605011] pci 0000:03:00.0: reg 0x30: [mem 0xdff80000-0xdfffffff pref] > ... > > cpuinfo: > > processor : 31 > vendor_id : AuthenticAMD > cpu family : 21 > model : 1 > model name : AMD Opteron(tm) Processor 6278 > stepping : 2 > microcode : 0x6000626 > cpu MHz : 1427.124 > cache size : 2048 KB > physical id : 1 > siblings : 16 > core id : 7 > cpu cores : 8 > > board: > > Manufacturer: Supermicro > Product Name: H8DG6/H8DGi > > BIOS: > > Vendor: American Megatrends Inc. > Version: 2.0b > Release Date: 03/01/2012 > > I've attached the lspci -v output and a successful full bootlog as well, with > various debugging options enabled. Let me know if you need any other info. > > Thanks, > > Ingo From e5d5c9682aa02a6b9c0c6bd446d433b924441679 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= 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 --- 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