Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1646147pxp; Sun, 6 Mar 2022 22:07:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJz+8O0M3N5UqUKNkAFYaKqA8kEzcrVPPPjmDScdPpQPFkZcpC/EPa9Dq/adqpZx5gibC3te X-Received: by 2002:a65:48c8:0:b0:375:9c2b:ad33 with SMTP id o8-20020a6548c8000000b003759c2bad33mr8891515pgs.232.1646633253950; Sun, 06 Mar 2022 22:07:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646633253; cv=none; d=google.com; s=arc-20160816; b=YSUj9kjAlZRkDStXAsCU02YFhjra6r3Tarfz85EfPUscZVNoroRPU/knkS7xNvsE0L b1XTguNIs5Jh3eNhtdNrv0KhBlC9WzlgssEkwz7sC6/NaCnAKZ0RQWuJoVsHWACsrYTR P8Ag8oYhArP7373h1zMQoxbXyze0XebQ2ChPKkE3i9WuCRXxgFS6EY30U1cbUw+bqpUG JPONJ2EcS2RpGsl57qr+l+zvkNeECYGsuj8lXtBKm908GLgRyFrkizfRxRL+7Qcg9vgB 5PjdQJXjtdmi6M+xx9TwfC/Ra5YCe/zS1BN+bpTD1uX5g2yIGf6RbDTwyPszEOeEQaHa zwaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=FaG7xu5kBZK+ghi83/2nGLDe+EeH2jgTh0GnwUSyNyQ=; b=oTwW0732Zi8suHH3tUOHNI+wQUcXZFtMDMSsyCcAI52h697zF8OLvW6Q1w138qlGxd Srdx4pB6JsvYiAXcyEYVlIf8pLBY4b3N3nXOmlVUYCy4c37KUMIWdJF+zn0jrwHvk1Ot FXMEzsS7iW5uewgIWO5im/2xZPU50gRRUpOaW9aT01Y/NiXcVAdA3B6/Lezp0N66DcvS ocZHIaPsalRoGvh3roh8C6va90xJLpOhQD5MPLgl6F58TRDjmU80A3JBaptn9PAANuws Qy475qRWQ59yGQXQ1CU5QtmdOaycv1PEDK5rL503wmNMWvBlPKVP4LgatXPHia9fwr0U kMSA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h8-20020a170902f54800b00151d3db68d2si5733755plf.344.2022.03.06.22.07.18; Sun, 06 Mar 2022 22:07:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233751AbiCFPtK (ORCPT + 99 others); Sun, 6 Mar 2022 10:49:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230313AbiCFPtJ (ORCPT ); Sun, 6 Mar 2022 10:49:09 -0500 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [IPv6:2a01:488:42:1000:50ed:8234::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92C84E0D7; Sun, 6 Mar 2022 07:48:16 -0800 (PST) Received: from ip4d144895.dynamic.kabel-deutschland.de ([77.20.72.149] helo=[192.168.66.200]); authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1nQt7F-0006pL-Di; Sun, 06 Mar 2022 16:48:13 +0100 Message-ID: <092b825a-10ff-e197-18a1-d3e3a097b0e3@leemhuis.info> Date: Sun, 6 Mar 2022 16:48:12 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [REGRESSION] Too-low frequency limit for AMD GPU PCI-passed-through to Windows VM Content-Language: en-US To: Alex Deucher , "James D. Turner" Cc: "Lazar, Lijo" , "Deucher, Alexander" , "regressions@lists.linux.dev" , "kvm@vger.kernel.org" , Greg KH , "Pan, Xinhui" , LKML , "amd-gfx@lists.freedesktop.org" , Alex Williamson , "Koenig, Christian" References: <87ee57c8fu.fsf@turner.link> <87a6ftk9qy.fsf@dmarc-none.turner.link> <87zgnp96a4.fsf@turner.link> <87czkk1pmt.fsf@dmarc-none.turner.link> <87sftfqwlx.fsf@dmarc-none.turner.link> <87ee4wprsx.fsf@turner.link> <4b3ed7f6-d2b6-443c-970e-d963066ebfe3@amd.com> <87pmo8r6ob.fsf@turner.link> <5a68afe4-1e9e-c683-e06d-30afc2156f14@leemhuis.info> <87pmnnpmh5.fsf@dmarc-none.turner.link> From: Thorsten Leemhuis In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;regressions@leemhuis.info;1646581696;ebba6b85; X-HE-SMSGID: 1nQt7F-0006pL-Di X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, this is your Linux kernel regression tracker again. Top-posting once more, to make this easily accessible to everyone. What's the status of this? It looks stuck, or did the discussion continue somewhere else? James, it sounded like you wanted to test something, did you give it a try? Or is there some reason why I should stop tracking this regression? Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) P.S.: As the Linux kernel's regression tracker I'm getting a lot of reports on my table. I can only look briefly into most of them and lack knowledge about most of the areas they concern. I thus unfortunately will sometimes get things wrong or miss something important. I hope that's not the case here; if you think it is, don't hesitate to tell me in a public reply, it's in everyone's interest to set the public record straight. #regzbot poke On 16.02.22 17:37, Alex Deucher wrote: > On Tue, Feb 15, 2022 at 9:35 PM James D. Turner > wrote: >> >> Hi Alex, >> >>> I guess just querying the ATIF method does something that negatively >>> influences the windows driver in the guest. Perhaps the platform >>> thinks the driver has been loaded since the method has been called so >>> it enables certain behaviors that require ATIF interaction that never >>> happen because the ACPI methods are not available in the guest. >> >> Do you mean the `amdgpu_atif_pci_probe_handle` function? If it would be >> helpful, I could try disabling that function and testing again. > > Correct. > >> >>> I don't really have a good workaround other than blacklisting the >>> driver since on bare metal the driver needs to use this interface for >>> platform interactions. >> >> I'm not familiar with ATIF, but should `amdgpu_atif_pci_probe_handle` >> really be called for PCI devices which are bound to vfio-pci? I'd expect >> amdgpu to ignore such devices. >> >> As I understand it, starting with >> f9b7f3703ff9 ("drm/amdgpu/acpi: make ATPX/ATCS structures global (v2)"), >> the `amdgpu_acpi_detect` function loops over all PCI devices in the >> `PCI_CLASS_DISPLAY_VGA` and `PCI_CLASS_DISPLAY_OTHER` classes to find >> the ATIF and ATCS handles. Maybe skipping over any PCI devices bound to >> vfio-pci would fix the issue? On a related note, shouldn't it also skip >> over any PCI devices with non-AMD vendor IDs? > > The ACPI methods are global. There's only one instance of each per > system and they are relevant to add GPUs on the platform. That's why > they are a global resource in the driver. They can be hung off of the > dGPU or APU ACPI namespace, depending on the platform which is why we > check all of the display devices. Skipping them would prevent them > from being available if you later bound the amdgpu driver to the GPU > device(s) I think. > > Alex > >> >> Regards, >> James > >