Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6478343ybi; Wed, 31 Jul 2019 15:20:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5rqC2oBCKrAwRaJtsfTFH2G4SNKQlOu+59Qf1O5E2oYAL8UBX02lk47Iy47CIiJu6goCb X-Received: by 2002:a17:90a:9905:: with SMTP id b5mr5232452pjp.70.1564611638710; Wed, 31 Jul 2019 15:20:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564611638; cv=none; d=google.com; s=arc-20160816; b=NlfiHu5ey5zPLutvjsQea4AkH3vgBPgz51QzvfeLSjotm660JakJWtbnuSCKnUy+8p wIy3ejapPy3QLEJx9I5PJT0tmLh/xuprkTp65x6stK8EjLrB2LK3yj7/QlmtTolGfwbz Po7c0J4tGlek4Moy68fB1lHe11Q8DfeiJ4Rxy4zt84Vc6gX+Zc3PLVyDhMvksdHpF+lo 9GQK9AsRz9wZSN3yGvuoOCtgrb34TnuKUbUTvuy0T0mWv+6heL/Ym0CJ/CxWM+ECj86A FkMOuYY4nnMP3C2+6VHeGRUXVZgYP0ir76jfLzsYjGHBfHbxqQW3POgHyPspI3pMVHiO wu/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=tIGma61wLHtzNprRff+9TEgirnDHGnLDSLV4ZUKzd0A=; b=cALZnNfRJaLHEMIdSFAptCV/l5dpjkh+HaQ7D6RXQEyuhVV8uSYzWP1riTnE2ZCqbk FiqQjDACLEhK1Y7lGTIKof1dun8Yy8dEgy6FDBrqKS98X8q2z36LUuBnt97rGvbcfsCP EwlyBLmqSnFBN6zqqtYfLtfLfrnE4KLprog3osxH4WjRzAwNqViGcPjgQdYv9PoEuYPN yu0C/UVVVD25KZUNIc6rYatjkbuNMgDjKwYmxhqMJ+qP0lKzJdFKsVXVGazqjwVJziXv 90/IldgayzTGJjFwWqU62mxHpzrrLRyGBgb8dvEB+UFBeySN4A/815vupW2oDJWyXHQ7 isQQ== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q67si46393223pgq.83.2019.07.31.15.20.23; Wed, 31 Jul 2019 15:20:38 -0700 (PDT) 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730507AbfGaV0v (ORCPT + 99 others); Wed, 31 Jul 2019 17:26:51 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:32798 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730439AbfGaV0v (ORCPT ); Wed, 31 Jul 2019 17:26:51 -0400 Received: by mail-io1-f68.google.com with SMTP id z3so20708937iog.0 for ; Wed, 31 Jul 2019 14:26:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tIGma61wLHtzNprRff+9TEgirnDHGnLDSLV4ZUKzd0A=; b=lanLuKcthDT11oc0RMkGBwHg6SZ7Sl1NcUvD3kuQpSPKgOJ5dbnNzein5OSLnBeyEe e1gLLXmVN9lRav9MK8ThH5/qmGHbB44cAH2ZJy3xJFXh8DwKBAJbVLyz436Dg+hFmwh0 Kgo/YoMrkYAfavEZUjzBzCUpgmfjLDdR37JNan4wJfLZUEWuK+T++Bvik40eubnBrkPp s65550GdJCglreBet3ja+Lm8pG3x+OHDJ7Ei3YVGA9JzqN/IQeLzNbi9VIhvMKR35Rcz oFrntxBRQKeg8pAAK8ugYCA/Sx1R+aTILFgomA2kqzP1T/8DgUUsed5xEgDikTQ7xC6t VHgQ== X-Gm-Message-State: APjAAAUkiDGG+PSbnSxA7r8+p9jXjtxsNr/1+s4CXELOAaYMS8WyjRU8 cB5nn4YeNUoWsD2UpaYZlVpGyjjQIzCOOKd6C0EB7A== X-Received: by 2002:a02:230a:: with SMTP id u10mr46030961jau.117.1564608410139; Wed, 31 Jul 2019 14:26:50 -0700 (PDT) MIME-Version: 1.0 References: <20190731201927.22054-1-lyude@redhat.com> <20190731211842.befvpoyudrm2subf@wunner.de> In-Reply-To: <20190731211842.befvpoyudrm2subf@wunner.de> From: Karol Herbst Date: Wed, 31 Jul 2019 23:26:39 +0200 Message-ID: Subject: Re: [PATCH] Revert "PCI: Enable NVIDIA HDA controllers" To: Lukas Wunner Cc: Lyude Paul , nouveau , Linux PCI , Daniel Drake , Bjorn Helgaas , Aaron Plattner , Peter Wu , Ilia Mirkin , Maik Freudenberg , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 31, 2019 at 11:18 PM Lukas Wunner wrote: > > On Wed, Jul 31, 2019 at 04:19:27PM -0400, Lyude Paul wrote: > > While this fixes audio for a number of users, this commit has the > > sideaffect of breaking the BIOS workaround that's required to make the > > GPU on the nvidia P50 work, by causing the GPU's PCI device function to > > stop working after it's been set to multifunction mode. > > This is missing a reference to the commit introducing the P50 quirk, > which is e0547c81bfcf ("PCI: Reset Lenovo ThinkPad P50 nvgpu at boot > if necessary"). > > Please describe in more detail how the GPU's PCI function stops working. > Does it respond with "all ones" when accessing MMIO? > Do MMIO accesses cause the system to hang? > > Could you provide lspci -vvxx output for the GPU and its associated > HDA controller with and without b516ea586d71? > > Does this machine have external display connectors via which audio > can be streamed? > > > > I'm not really holding my breath on this patch to being accepted: > > there's a good chance there's a better solution for this (and I'm going > > to continue investigating for one after sending this patch), this is > > more just to start a conversation on what the proper way to fix this is. > > Posting as an RFC might have been more appropriate then. > no, a revert is actually appropriate. If a commit fixes something, but breaks something else, it gets either reverted or fixed. If nobody fixes it, then revert it is. > > > So, I'm kind of confused about why exactly this was implemented as an > > early boot quirk in the first place. If we're seeing the GPU's PCI > > device, we already know the GPU is there. Shouldn't we be able to check > > for the existence of the HDA device once we probe the GPU in nouveau? > > I think a motivation to keep this generic was to make it work with > other drivers besides nouveau, specifically Nvidia's proprietary driver. > nouveau might not even be enabled. > > > > that still doesn't explain why this was implemented as an early quirk > > This isn't an early quirk. Those live in arch/x86/kernel/early-quirks.c. > This is just a PCI quirk executed on device enumeration and on resume. > Devices aren't necessarily enumerated only on boot, e.g. think Thunderbolt. > > Thanks, > > Lukas