From patchwork Wed Nov 29 14:12:29 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: 10082337 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 66F7A60353 for ; Wed, 29 Nov 2017 14:15:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5F497298F2 for ; Wed, 29 Nov 2017 14:15:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 53D71298F5; Wed, 29 Nov 2017 14:15:50 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=unavailable 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 D443B298F4 for ; Wed, 29 Nov 2017 14:15:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752496AbdK2OPe (ORCPT ); Wed, 29 Nov 2017 09:15:34 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:40391 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755177AbdK2OMi (ORCPT ); Wed, 29 Nov 2017 09:12:38 -0500 Received: by mail-wm0-f65.google.com with SMTP id v19so6219827wmh.5; Wed, 29 Nov 2017 06:12:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=Xln0oqFk9lBSidtyef33RJAT/t+eYSTzjPxSU3zbPWc=; b=RQ6xr9Yvo6hd3aKZb/OJlI+FN5pNtIdOHpkjzAPBx2u9/ReoaHla3V0D/pRJYw5oyN FHgdnyg/d4oef0VxxaGyXyj5BF10ldpSZqdL8mQS7JQqS7bWADlGa+aevBZXBHZGsM4q vpGsnemS93+swk3me60slGa8G5QrmLaLGXmyUpP2Wq6ffmcSO7jbFJxcPvN90jG8+RgF 0X/AnjEhUU5vlyrF7ZCYzpNsiv9wXtmuXWGHJ9ocXssqErMadYpntshZyHNYzB4lwXpx 2iO7c37R1tffU5K9tPe25Ysfk1zo6eB+Rx1KKP7P/13Pf+5NMWyw2ZdAA/WxwRkllpD/ +0/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Xln0oqFk9lBSidtyef33RJAT/t+eYSTzjPxSU3zbPWc=; b=rDVbGg3Adb3hvJVcUkj5QStzYvFX4cZGJTiOBB2pcc9s/2y4xEmr5rhaPqN4KGtrmJ sy8RkLyXe/pc6m0nwOq3aapYwx6/698rfLv09Vm3ErOJASwzJ/32XvfqCHEUa/czILvT XJKhxE6FyUcAyCxtvpLh4tFrzZVRM1tc2gTvZAfXx99fNnJUV8thmBraVRP4iyZ35mhy VKfAjeDLxf9fhI8Q02IhPtaOUsuwcq/0dqnlldnoU6dQTywhe8c/tGLsfLwedFSRP9Je upCP+M7MxidF6QX4cmwagDadhbAjMInRC/23uxLJCncV5HDE/jf7BBeU/xDhBhWJJzTP IF+w== X-Gm-Message-State: AJaThX57F+DI7P2dmpSTscb9ieodrSxwHLLXOOuWbjgiqUHK+VoOgmSr 6c2zs78arahWnNyY4xKsf1JIFg== X-Google-Smtp-Source: AGs4zMYgpAQ+Tvky5g3i8WaeFV7KXGE9yfk2E0gfofVRfKW1BHQxVjD0viXjYSHjEeRlMqYHyPPKUw== X-Received: by 10.28.144.67 with SMTP id s64mr2812204wmd.83.1511964757438; Wed, 29 Nov 2017 06:12:37 -0800 (PST) Received: from localhost.localdomain ([2a02:908:1251:7981:a0f4:e653:80fe:4e7d]) by smtp.gmail.com with ESMTPSA id n12sm2533445wrn.76.2017.11.29.06.12.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Nov 2017 06:12:36 -0800 (PST) From: "=?UTF-8?q?Christian=20K=C3=B6nig?=" X-Google-Original-From: =?UTF-8?q?Christian=20K=C3=B6nig?= To: helgaas@kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] x86/PCI: limit the size of the 64bit BAR to 256GB Date: Wed, 29 Nov 2017 15:12:29 +0100 Message-Id: <20171129141229.6107-4-christian.koenig@amd.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171129141229.6107-1-christian.koenig@amd.com> References: <20171129141229.6107-1-christian.koenig@amd.com> MIME-Version: 1.0 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 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 */