Received: by 10.223.164.202 with SMTP id h10csp4695502wrb; Wed, 29 Nov 2017 10:18:33 -0800 (PST) X-Google-Smtp-Source: AGs4zMbVLMH0jBUD2eT8UpEQtcx2jMJfmEznd+FbtvUHLdA25y5AKOwiLMvyYQzUgKiBCrgI6b3W X-Received: by 10.101.96.213 with SMTP id r21mr3509888pgv.395.1511979513213; Wed, 29 Nov 2017 10:18:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511979513; cv=none; d=google.com; s=arc-20160816; b=ueuwIhCjGnZ7glPCGHmRtfkenNf6/UAx7TPYBAjwVZqPHsSTPOhSY3J97GxJe5jyUE WejUF+cfBd5SpZeohD/OHAsPm+9fCgLw1rQdf3oQzZOuK7xNz7fja8AhUz4W/Ww9pMg7 qNBiDS0bbjb/XQplBnDARe8XBpt/EBlJWcD8lHLPDwfKT2uLSt2C1InU/+klORasFOFr ztMMICqAJPt9Mr5LRPQTXXAIxwK1EFCnwpwOA4EUYCJ4EgFfVvG8XjwUyoq2Mp6BwDeP SATmNRzyaKHZOYWQ4VK1Od3f2fBf0gCgm15Y13ANvF4lRIjn7WFCkm6bgPNCNR0Q1iMc EeQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature:arc-authentication-results; bh=Xln0oqFk9lBSidtyef33RJAT/t+eYSTzjPxSU3zbPWc=; b=wsjtbQK+/CaFP3/uHzBf3KQ1BmrTXitSgtx4w2Hl3atpui+oS7yRQsz98zb5WrRZET viYUfaaoACW/Rg+s3viwcOoceJ8y+3+ZNoXTEmc2iAnnuMJc5PBruVcB/OoY8Cj24zgd agwwPvLkE13H3e4gGQwErtNLC9wyQE6545R1jirXZ+FDUku3PfPBrRfdu4ql0pyK9Mg8 LgIGV0pF2xW2GhYoC2l0TBwDtZDeOmgUAp9EgF6XobylD2XWNMkpQtiRxjg+yQYs8PZv ijpLbvEfphZxVOucKrWw5zzPcdtJ2Syg4hPyvZaubbheNZSbzSYywYgnnWi+9kdwJBxz pVxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RQ6xr9Yv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o30si1624887pgc.468.2017.11.29.10.18.23; Wed, 29 Nov 2017 10:18:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RQ6xr9Yv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754432AbdK2OPf (ORCPT + 70 others); Wed, 29 Nov 2017 09:15:35 -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-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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 From 1586323053863930275@xxx Sat Dec 09 16:05:53 +0000 2017 X-GM-THRID: 1586323053863930275 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread