Received: by 10.223.164.202 with SMTP id h10csp5715444wrb; Tue, 21 Nov 2017 14:27:13 -0800 (PST) X-Google-Smtp-Source: AGs4zMaL9g0/kIGM3Qy/3nIc4ip07NaalzqOvqtB88CqPZz/yWjsvAONSJOqhnRO1VN+wotV3xqW X-Received: by 10.101.73.139 with SMTP id r11mr18766676pgs.411.1511303233138; Tue, 21 Nov 2017 14:27:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511303233; cv=none; d=google.com; s=arc-20160816; b=UReJ5joHINtkO7Jelpaqo0nwvnibVIE3JE4V/Ak/pXI7jhRI4iPY0EM3/XuV+7D+gT BmLUgO2xonXeahrc+2EX4s8oR79i6kcYgTzWBKYFy3A2G4Cd3msfdwyMA0/am/EdJsaT XgQcrtIiLQ6EFEhvJ14PE/u8LVxOv5nGvf6b0TEgU2ZVBJuVpF5pWBW/CL7EJl3fuOja YAGWkB4/wlK/25XM31d7wJ7R0pXTFJqStg0mcI1N6OE8PiX++gCuVcyAds7+hBltZZQE c7QJkxdV7NNsT51RGYMe3RgLvqnKHC9w7uzOswdTOkJ18HvM1T91x3bnKVJyBn6y4mFD whmA== 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=57EK22lth0ckLh4SX8//ROmAbT1FAM1FIfcJH4DQ/mc=; b=HJsobGkUTIYIx/sZjANnuDHpYc8fpeW4cwO5XwIYH1OomWtaibIsAwQdvBuKNPl3Uu BXSLyLNhunBieEOf+/jdg4ssnrSKBraw9IYosUlA9uihAjg+93KwK7EAmqzouWSPjhsv r8Feb22NjIx0skEeu5bHgTAQM+6WmLjUkdknIINeoovN04/T3Y5u7eINFlLhdC8KdQBx M5Obi0b4PLiSWuxI3Woljvsjw2W+baJ5mqrc2E4ruhAWPWDhEcsTvIleZImqiQbAdrSD kvC4QQTG+Yz3ERX4FZ5jjTVVcTddGpL9k5DSKAYxhg6cWZirp2RWZWT6vhQ1Fip//2eC HC9A== 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 j89si1036421pfa.108.2017.11.21.14.27.01; Tue, 21 Nov 2017 14:27:13 -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 S1751449AbdKUW03 (ORCPT + 76 others); Tue, 21 Nov 2017 17:26:29 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:27489 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751263AbdKUW02 (ORCPT ); Tue, 21 Nov 2017 17:26:28 -0500 Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id vALMQNPq031954 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 21 Nov 2017 22:26:23 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id vALMQMfl022294 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 21 Nov 2017 22:26:22 GMT Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id vALMQK11013713; Tue, 21 Nov 2017 22:26:21 GMT Received: from bostrovs-us.us.oracle.com (/10.152.32.65) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 21 Nov 2017 22:26:20 +0000 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 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> From: Boris Ostrovsky Message-ID: Date: Tue, 21 Nov 2017 17:26:18 -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: <3443aad0-8c3b-b97e-685a-96b0866827be@amd.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Source-IP: aserv0021.oracle.com [141.146.126.233] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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)? Thanks. -boris > > Thanks for the help, > Christian. > > Am 20.11.2017 um 17:33 schrieb Boris Ostrovsky: >> On 11/20/2017 11:07 AM, Christian König wrote: >>> Am 20.11.2017 um 16:51 schrieb Boris Ostrovsky: >>>> (and then it breaks differently as a Xen guest --- we hung on the last >>>> pci_read_config_dword(), I haven't looked at this at all yet) >>> Hui? How does this fix applies to a Xen guest in the first place? >>> >>> Please provide the output of "lspci -nn" and explain further what is >>> your config with Xen. >>> >>> >> >> This is dom0. >> >> -bash-4.1# lspci -nn >> 00:00.0 Host bridge [0600]: ATI Technologies Inc RD890 Northbridge only >> dual slot (2x16) PCI-e GFX Hydra part [1002:5a10] (rev 02) >> 00:00.2 Generic system peripheral [0806]: ATI Technologies Inc Device >> [1002:5a23] >> 00:0d.0 PCI bridge [0604]: ATI Technologies Inc RD890 PCI to PCI bridge >> (external gfx1 port B) [1002:5a1e] >> 00:11.0 SATA controller [0106]: ATI Technologies Inc SB700/SB800 SATA >> Controller [AHCI mode] [1002:4391] >> 00:12.0 USB Controller [0c03]: ATI Technologies Inc SB700/SB800 USB >> OHCI0 Controller [1002:4397] >> 00:12.1 USB Controller [0c03]: ATI Technologies Inc SB700 USB OHCI1 >> Controller [1002:4398] >> 00:12.2 USB Controller [0c03]: ATI Technologies Inc SB700/SB800 USB EHCI >> Controller [1002:4396] >> 00:13.0 USB Controller [0c03]: ATI Technologies Inc SB700/SB800 USB >> OHCI0 Controller [1002:4397] >> 00:13.1 USB Controller [0c03]: ATI Technologies Inc SB700 USB OHCI1 >> Controller [1002:4398] >> 00:13.2 USB Controller [0c03]: ATI Technologies Inc SB700/SB800 USB EHCI >> Controller [1002:4396] >> 00:14.0 SMBus [0c05]: ATI Technologies Inc SBx00 SMBus Controller >> [1002:4385] (rev 3d) >> 00:14.3 ISA bridge [0601]: ATI Technologies Inc SB700/SB800 LPC host >> controller [1002:439d] >> 00:14.4 PCI bridge [0604]: ATI Technologies Inc SBx00 PCI to PCI Bridge >> [1002:4384] >> 00:14.5 USB Controller [0c03]: ATI Technologies Inc SB700/SB800 USB >> OHCI2 Controller [1002:4399] >> 00:18.0 Host bridge [0600]: Advanced Micro Devices [AMD] Device >> [1022:1600] >> 00:18.1 Host bridge [0600]: Advanced Micro Devices [AMD] Device >> [1022:1601] >> 00:18.2 Host bridge [0600]: Advanced Micro Devices [AMD] Device >> [1022:1602] >> 00:18.3 Host bridge [0600]: Advanced Micro Devices [AMD] Device >> [1022:1603] >> 00:18.4 Host bridge [0600]: Advanced Micro Devices [AMD] Device >> [1022:1604] >> 00:18.5 Host bridge [0600]: Advanced Micro Devices [AMD] Device >> [1022:1605] >> 00:19.0 Host bridge [0600]: Advanced Micro Devices [AMD] Device >> [1022:1600] >> 00:19.1 Host bridge [0600]: Advanced Micro Devices [AMD] Device >> [1022:1601] >> 00:19.2 Host bridge [0600]: Advanced Micro Devices [AMD] Device >> [1022:1602] >> 00:19.3 Host bridge [0600]: Advanced Micro Devices [AMD] Device >> [1022:1603] >> 00:19.4 Host bridge [0600]: Advanced Micro Devices [AMD] Device >> [1022:1604] >> 00:19.5 Host bridge [0600]: Advanced Micro Devices [AMD] Device >> [1022:1605] >> 01:04.0 VGA compatible controller [0300]: Matrox Graphics, Inc. MGA >> G200eW WPCM450 [102b:0532] (rev 0a) >> 02:00.0 Ethernet controller [0200]: Intel Corporation 82576 Gigabit >> Network Connection [8086:10c9] (rev 01) >> 02:00.1 Ethernet controller [0200]: Intel Corporation 82576 Gigabit >> Network Connection [8086:10c9] (rev 01) >> -bash-4.1# >> >> >> -boris > > From 1584682903746063417@xxx Tue Nov 21 13:36:24 +0000 2017 X-GM-THRID: 1581604510312740883 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread