Received: by 10.223.164.202 with SMTP id h10csp438604wrb; Wed, 22 Nov 2017 09:29:04 -0800 (PST) X-Google-Smtp-Source: AGs4zMaKX8y4kPyHpDclaYypKrJZCFCatf3YD87JqdkXPkE5F6iGMUF9nNmJGnztwsZ2LpxtthHY X-Received: by 10.84.128.77 with SMTP id 71mr22157883pla.197.1511371744608; Wed, 22 Nov 2017 09:29:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511371744; cv=none; d=google.com; s=arc-20160816; b=LYsQvyYWiIvKyngkYDts74BDf1kFZMRFlLVOYqLGW6rnOSAXim7ktxkD6NXzIZLcrB 01t7DKUTB8qJaId7GxUGIVmy6VPLiSGhFb8gasRNkLp+Pt4y0LlUZmdmGbOaRSwSaDJ9 n57ihR/u3PP06T7EQtNSr65U/xwHeADoqHoDPf6XWbG6L6NPImWp92Jg3OhDeRh2Rthp A+4sT/rD4hmpdB7JKY95Eh2EWlUgstZFZOe/8ZjtAWw9Ol8gEaho76TiQ3Q8bmMqeYUK uGfADXqh0jHD3kMqh+OYoY0iXPBCMQLzo2JOoDcmWWb7sWfQvWwpWOzXXdZ2m6hSqfFo gsnA== 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:in-reply-to :mime-version:user-agent:date:message-id:from:references:to:subject :arc-authentication-results; bh=v7Xa23Xk5yuG2tBiHN0Li8k6Kp3UDMVzh1nR7bO7Miw=; b=t4Em0oBj0RDFlcN0px+AnHNyJbys5cjZGTnBoFjn0vXJlAVf77sf7Sep91ThcdsPvR Y9fyIftm4lFy785chdbuEg5tRGSvHYVkr1L2yLrMUeD/2sCJ2k2ZtVNne/+V8GItA5tU dB6R6bN9Nv737mdR77lez2jU27yyrdlXJx2FRWLYqmjzMMZoBAq6rJ3LkAubOvi6+z3E t2YwkuirYg0wNDhsWGi2OWBrgW37BR9Hm2ikT21W72JPoeqVTvxAzPjaxgyhJHKI7QPQ eXTTb4EVh2SGPdgcs1ROjOBHJVfN688YR7r8S0Mqe/3AhUx3rJXqlTgASHm6hb7HcG5K emgA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n10si13672193plp.150.2017.11.22.09.28.52; Wed, 22 Nov 2017 09:29:04 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751965AbdKVR2N (ORCPT + 78 others); Wed, 22 Nov 2017 12:28:13 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:26806 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751554AbdKVR2L (ORCPT ); Wed, 22 Nov 2017 12:28:11 -0500 Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id vAMHRxUv018602 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 22 Nov 2017 17:28:00 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id vAMHRxxr031064 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 22 Nov 2017 17:27:59 GMT Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id vAMHRwgg024351; Wed, 22 Nov 2017 17:27:58 GMT Received: from bostrovs-us.us.oracle.com (/10.152.32.65) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 22 Nov 2017 09:27:58 -0800 Subject: Re: [PATCH v9 4/5] x86/PCI: Enable a 64bit BAR on AMD Family 15h (Models 30h-3fh) Processors v5 To: =?UTF-8?Q?Christian_K=c3=b6nig?= , helgaas@kernel.org, linux-pci@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, xen-devel References: <20171018135821.3248-1-deathsimple@vodafone.de> <20171018135821.3248-5-deathsimple@vodafone.de> <26df0a78-8028-e42c-ce50-4cefe612a7e1@oracle.com> <3443aad0-8c3b-b97e-685a-96b0866827be@amd.com> <7936fdd3-1615-ac1f-7b75-330ccb6a1a3f@amd.com> From: Boris Ostrovsky Message-ID: <0bb468d9-bc1d-e3c5-e313-1cf9408380f0@oracle.com> Date: Wed, 22 Nov 2017 12:27:55 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <7936fdd3-1615-ac1f-7b75-330ccb6a1a3f@amd.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Source-IP: userv0022.oracle.com [156.151.31.74] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/22/2017 11:54 AM, Christian König wrote: > Am 22.11.2017 um 17:24 schrieb Boris Ostrovsky: >> On 11/22/2017 05:09 AM, Christian König wrote: >>> Am 21.11.2017 um 23:26 schrieb Boris Ostrovsky: >>>> On 11/21/2017 08:34 AM, Christian König wrote: >>>>> Hi Boris, >>>>> >>>>> attached are two patches. >>>>> >>>>> The first one is a trivial fix for the infinite loop issue, it now >>>>> correctly aborts the fixup when it can't find address space for the >>>>> root window. >>>>> >>>>> The second is a workaround for your board. It simply checks if there >>>>> is exactly one Processor Function to apply this fix on. >>>>> >>>>> Both are based on linus current master branch. Please test if they >>>>> fix >>>>> your issue. >>>> Yes, they do fix it but that's because the feature is disabled. >>>> >>>> Do you know what the actual problem was (on Xen)? >>> I still haven't understood what you actually did with Xen. >>> >>> When you used PCI pass through with those devices then you have made a >>> major configuration error. >>> >>> When the problem happened on dom0 then the explanation is most likely >>> that some PCI device ended up in the configured space, but the routing >>> was only setup correctly on one CPU socket. >> The problem is that dom0 can be (and was in my case() booted with less >> than full physical memory and so the "rest" of the host memory is not >> necessarily reflected in iomem. Your patch then tried to configure that >> memory for MMIO and the system hang. >> >> And so my guess is that this patch will break dom0 on a single-socket >> system as well. > > Oh, thanks! > > I've thought about that possibility before, but wasn't able to find a > system which actually does that. > > May I ask why the rest of the memory isn't reported to the OS? That memory doesn't belong to the OS (dom0), it is owned by the hypervisor. > > Sounds like I can't trust Linux resource management and probably need > to read the DRAM config to figure things out after all. My question is whether what you are trying to do should ever be done for a guest at all (any guest, not necessarily Xen). -boris From 1584786040022427199@xxx Wed Nov 22 16:55:43 +0000 2017 X-GM-THRID: 1581604510312740883 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread