Received: by 10.223.185.111 with SMTP id b44csp1291491wrg; Sat, 10 Mar 2018 02:39:25 -0800 (PST) X-Google-Smtp-Source: AG47ELsbNO9dQQJ9my9pxx/zZVEFY9tQRXFoNLLy+OgNCMHCjolD0592DrtkjnvhQkwICA4eq1hB X-Received: by 10.99.124.14 with SMTP id x14mr1370356pgc.290.1520678365085; Sat, 10 Mar 2018 02:39:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520678365; cv=none; d=google.com; s=arc-20160816; b=HpoPUqbFNJPEZxXrU9D6asl1zp/Gq5u4Nrn+pz/BhUZXuITyL89fp6Uu7b4ntQXvCD GKdt2bLiokciXd6+K5rZWakJ9ask4VlkM5q4pZVM1bOSOfVlukRpcwtm427e1ZwrMAFT rX+PGgsgIM9T3f7E4W7OjsQvz6IBRA1LzpLbj6XbfiJ3cVlPYRFts63Y6ufISDaW9iPu x8yUuTtDUy3DdPS5PpIxyuW/BlOYuCIAHN106kzXSDXwkUH3bUvR7ll4RlGPonJoeIW8 w8tAkc79efn+wthOm2rlrtwEfjb5HaWVZq/v/ZksbJcE4jH6AqsY4ShL2Kkt2dP7/1d1 bMdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=PosDxEWB13kTuN5IzBhQrpI2lfx7ljmOpxfM7omkA+k=; b=BSgGLfWzy23fl3RePT7LmC/gepRWIBXMhQFN6i5bMZxOc1ASfP+kLLoneeGaRRHkDl 7uUpXr1XkRCH/JNRPnH2BEE0qGjNXxViTYt9yVgiFGgyrzhcQi5J19qqxziMhQwg0Mpa DxYunrtcJDJQf6M7LQg5tSP4G17Ld59KCe2o/+qGu1NYcMEpGk9dpIE3wuhGRhfORjUF ABgkc0lRdHDsoOaZBuuer13GkxDh1nIPd0VDoVtpuUrae2q9Uj4JAmBnmp8ULtQmQ+3d +60hHdfrPWu19qzeZldO9cn9Mu9Kq6ZshHM9v+Gufh7rfNcspoQ4oicM5l7rF3sI4ESV D9qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=auM8DUos; 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=QUARANTINE 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 n4si2179261pgt.712.2018.03.10.02.39.09; Sat, 10 Mar 2018 02:39:25 -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=auM8DUos; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752000AbeCJKiP (ORCPT + 99 others); Sat, 10 Mar 2018 05:38:15 -0500 Received: from mail-wm0-f43.google.com ([74.125.82.43]:56244 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751434AbeCJKiN (ORCPT ); Sat, 10 Mar 2018 05:38:13 -0500 Received: by mail-wm0-f43.google.com with SMTP id q83so8165528wme.5; Sat, 10 Mar 2018 02:38:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=PosDxEWB13kTuN5IzBhQrpI2lfx7ljmOpxfM7omkA+k=; b=auM8DUosnotQ0BReLto6Lv42PBSs64dARP46GAgzvsh/Ls07p1y+dIpz5dI1FtGhQY a5N0gGkkWwymgzMrH8Wd3rXAhbB9nXd9duKlaJVR7p43DsuapZwHgkeP0kM3AHkeHHzr S1Wba8SFWgur9tDQAHWgAsybPQ8hhkr+TKAoe9Lb4TuID7XVIIwcBz4UOev0e8OPyn/z QTl+Z5Ydkrsv2UYwYeE47j1fGPzH7qNU8HEJB7Q5zmEgfiDTI1I8yYw6I846JzLAvV6b 3xR4CRvbc38jrpZxHcTno0xvjCJQuuPS594+0vYHuD8LL+bcOTk5Jw+dqgjqVCjEsj2b bS7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=PosDxEWB13kTuN5IzBhQrpI2lfx7ljmOpxfM7omkA+k=; b=W8HHYLDXvRu7XSjcJ1kdsuQXbnrOAuU4QvY7caKUACXCpJjw9x01jWwvstJtKO+NH4 gYcUpVSWnz3RqtLvr4b9IZnmJgxeZs5V8HlYhr6CXu52YweH3jDSN0Z+T4cSAig48Bml rlNqrbYV8DfVhlGO0hVtw7RAkqhFR68IPR9XpHwujyBWbYz5sIXwklczHLHnDQmip2wq skHoaApsOJJpNMUvzOdR8c2ZyqLNnmoMakn5CRhYAgVE1PC2oAjG8fupO1nfCxyW4gat c+xtHV4RfD/jtuteSPvJpy+Ckg4R5sYp7i4hBcNu9bfNVM5ZSvosflLdrgRptF+Po7Ru /AMw== X-Gm-Message-State: AElRT7FMeu0DFw09vC8FQUv2/EGTuij7Xi6/t4MY9uui36fsBymJNknW i5NMVQTS48rl1BkFIdI7FFvMUg== X-Received: by 10.28.174.11 with SMTP id x11mr876492wme.124.1520678291789; Sat, 10 Mar 2018 02:38:11 -0800 (PST) Received: from pali ([2a02:2b88:2:1::5cc6:2f]) by smtp.gmail.com with ESMTPSA id s125sm639505wmf.4.2018.03.10.02.38.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 10 Mar 2018 02:38:10 -0800 (PST) Date: Sat, 10 Mar 2018 11:38:09 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Mario.Limonciello@dell.com Cc: kai.heng.feng@canonical.com, mjg59@srcf.ucam.org, dvhart@infradead.org, andy@infradead.org, tiwai@suse.com, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org Subject: Re: [PATCH v2 3/3] ALSA: hda: Disabled unused audio controller for Dell platforms with Switchable Graphics Message-ID: <20180310103809.5nnwoulua2u64rku@pali> References: <20180308091023.9061-1-kai.heng.feng@canonical.com> <20180308091023.9061-3-kai.heng.feng@canonical.com> <20180309090223.xb55ltac4pfesdrh@pali> <723DA929-C9FA-4F69-8D3A-03D8A75D09A6@canonical.com> <014795f5a3014cd3bf55de26f76a5af8@ausx13mpc124.AMER.DELL.COM> <20180309094600.m24d3zbzdsmls7aw@pali> <09eadabb264f401a88b427744505adf8@ausx13mpc124.AMER.DELL.COM> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xmle47knctbp44v4" Content-Disposition: inline In-Reply-To: <09eadabb264f401a88b427744505adf8@ausx13mpc124.AMER.DELL.COM> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --xmle47knctbp44v4 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Friday 09 March 2018 09:59:39 Mario.Limonciello@dell.com wrote: > > > Pali is your concern that this code for matching vendor/subsystem is = running > > > on non-Dell too? The only other recommendation I think that can be t= o restrict > > > to matching Dell OEM strings in SMBIOS table, but I don't think that'= s any better > > > than the matching for VID/SSVID. > >=20 > > My concern is about adding a new machine specific code into generic > > driver, which check is done just by PCI vendor and subvendor. > >=20 > > In future there can be new models or other PCI devices which matches > > above condition even they would not have any switchable graphics, nor > > they would manufactured by Dell. >=20 > Uh Dell subsystem ID means it's Dell no? What would prevent you to take PCI device marked with Dell ID and put it into non-Dell computer? I do not believe that Dell PCI devices are configured to work only in Dell branded devices and refuse to power up in others. If there is Dell ID then it just means that PCI device itself is Dell's. And not that machine in which that device is plugged is also Dell. > > Also I can imagine that in future (or maybe already now?) it is possible > > to find PCI device which pass above checks and connect this PCI device > > into desktop /server / any non-laptop device. > >=20 > > If this switchable graphics solution is specific to dell laptops, then > > rather checking for PCI vendor/subvevendor main check, there should be > > main check via DMI strings. >=20 > Right now this is affected to both AIO desktop and laptops. >=20 > IIRC you won't end up with switchable graphics in traditional desktop tha= t you > can remove PCI card. If this code was run on a traditional desktop with = a=20 > AMD PCI card that BIOS query result should be invalid token (which will i= nfer > switchable off to this routine). >=20 > >=20 > > Hardware is changing relatively quickly and there is absolutely no > > guarantee that e.g. NVIDIA would not start providing audio controller in > > similar like AMD and it would be put in those Dell machines. >=20 > Kai Heng can explain exactly why NVIDIA isn't affected. > This is probably good information to include in the commit message too. Yes, extending commit message is a good idea. But here I'm talking about future, NVIDIA cards could be in future. I still think that whitelisting devices based on vendor ID by some measurements at one time is a bad idea. It is fragile which can stop working in the future. > >=20 > > > > > > > > > > Interesting question would be, how handle this situation Windows? > > > > > > > > I don't know how this platform handles this on Windows, I guess we = need > > > > Mario to shed some lights here. > > > > > > Sorry I don't have this information to share. I don't think it's to= o useful here > > > anyway though because Windows driver architecture is much different i= n this > > > area. > > > > > > > >=20 > > -- > > Pali Roh=C3=A1r > > pali.rohar@gmail.com --=20 Pali Roh=C3=A1r pali.rohar@gmail.com --xmle47knctbp44v4 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQS4VrIQdKium2krgIWL8Mk9A+RDUgUCWqO1jwAKCRCL8Mk9A+RD UjWiAJoC8sd+feNPyg2NBQm6WK3W1QAW0QCgk2dEp4gnIcfgUOUIm84cFuuYfXQ= =mCrW -----END PGP SIGNATURE----- --xmle47knctbp44v4--