Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1576060pxb; Thu, 4 Mar 2021 15:17:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJxoSl8qrtHqZWN2Za8mZzs1kJp1FnvbKceF2kvyDVMqIqZHf+qFkcP5HR0BgiC69TVu1b8v X-Received: by 2002:a05:6602:3283:: with SMTP id d3mr5597631ioz.53.1614899830914; Thu, 04 Mar 2021 15:17:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614899830; cv=none; d=google.com; s=arc-20160816; b=v6iVRgJeFSWkqHBj4MFBagyLayEEf2ZZaGtUskMSCzWnPsqgH+7zdwcp2a1oWZYD6K vH3Fti5IB/ki9xsdUD32C/+Lzth4RS6XJ3AZhfmbDEnpABFdebdweMz3mEmeyHgeAVTB 078seTnuyRdoP1hyoR0C3S6gFBjRipwvoi6Hu7mUFYkkP+3HUewV0qis+P1mtxNrhA32 V/chuzasFxXTGY2r2UPYPtFFeAZBjPQ7dgMI+G6gJaH5kytaS3oYYLM+++hYD6ayq7np wb4nFZqjGlzUM43zBhmy0HdW9ihcrtDzOWvClARFGSZBkILeXy5vuYtAESHlEH8Giy/k xFSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=1AMVTuLDPdQruFXHSdhzo4SnKHhmVWXwXkkJpkM8YqE=; b=LjBvHKhLD1YKWx0aSQ0BAUWOmxqj0kNzwvygp4fpTUmMyrjsf/PkDxtcDDDux6O8b/ xJeZxIF56T1YkDfAo/XNIeWTUy7iQpB9DTOMCLK4DRxno8LpSMiNSHRPzSfxqPem8KtV hyKiifFWZBA+AO27n14fvRoIoCcRzzLi+JRAlx1CXq33bg8ykVNajqFUqfhdE43X5X2M QT8GTOVN40yQUzQjUMgygBsihR79lh3yZowDUo7IM/QYbP1vt7XkinphwRWbeQl86oZs +1llbfRHu4WzCLQJuslVgpgivRd5MJmwIJHe+qirTVV06fSDhvMEWDpahyluBjYa9qmT c7xA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=aCzLDb7c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n6si840633jaj.81.2021.03.04.15.16.58; Thu, 04 Mar 2021 15:17:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=aCzLDb7c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573319AbhCCQ3Y (ORCPT + 99 others); Wed, 3 Mar 2021 11:29:24 -0500 Received: from hqnvemgate24.nvidia.com ([216.228.121.143]:16409 "EHLO hqnvemgate24.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234938AbhCCLvw (ORCPT ); Wed, 3 Mar 2021 06:51:52 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Wed, 03 Mar 2021 03:51:00 -0800 Received: from DRHQMAIL107.nvidia.com (10.27.9.16) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 3 Mar 2021 11:51:00 +0000 Received: from [10.26.49.13] (172.20.145.6) by DRHQMAIL107.nvidia.com (10.27.9.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 3 Mar 2021 11:50:58 +0000 Subject: Re: [PATCH] ASoC: soc-core: Prevent warning if no DMI table is present To: Takashi Iwai , Mark Brown CC: , , "Liam Girdwood" , References: <20210302092712.310705-1-jonathanh@nvidia.com> <20210302124913.GC4522@sirena.org.uk> From: Jon Hunter Message-ID: <806466c4-4ef2-f4ba-3609-81b862810185@nvidia.com> Date: Wed, 3 Mar 2021 11:50:56 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [172.20.145.6] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To DRHQMAIL107.nvidia.com (10.27.9.16) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1614772260; bh=1AMVTuLDPdQruFXHSdhzo4SnKHhmVWXwXkkJpkM8YqE=; h=Subject:To:CC:References:From:Message-ID:Date:User-Agent: MIME-Version:In-Reply-To:Content-Type:Content-Language: Content-Transfer-Encoding:X-Originating-IP:X-ClientProxiedBy; b=aCzLDb7c2b3EmDwbw4yNcqOD0hSqFwNbIJIYrjf05IWPN5G/awnzNJUVdtSYFvU+3 vgtOdOdL1MZxMxxglgcrUrdvoPn17q5bgxrkofNX8OrRWr92nteIhiyCUmixMxNX2C 9cOYnu4mDd9POGHWj8gTLuIqfnwrpJb4WIShyqIzKjuQ26Kn/vszdjokcT3ZGrkM7F pga93684vDYKLw172v1UDsjM95syon9ibY2FE8DZR37NAAX3+GmI12vhccuM74GT9w BVL79B85Grq0G+s3YemvY6o9kd86dJsJhhmTQ7Fzu4a2PbAilflqNj57MHBMOkz9LZ h5/4m6J8NwLaQ== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/03/2021 17:23, Takashi Iwai wrote: > On Tue, 02 Mar 2021 13:49:13 +0100, > Mark Brown wrote: >> >> On Tue, Mar 02, 2021 at 09:27:12AM +0000, Jon Hunter wrote: >>> Many systems do not provide a DMI table and on these systems a warning, >>> such as the following, is printed on boot ... >>> >>> WARNING KERN tegra-audio-graph-card sound: ASoC: no DMI vendor name! >>> >>> If DMI support is enabled in the kernel, there is no simple way to >>> detect if a DMI table is table or not. Note that the variable >>> 'dmi_available' is not exported and so cannot be used by kernel modules. >> >> We could fix that, or provide an accessor function? Or only warn if >> we're on an ACPI system (which we can check from a module). This really >> does feel like something we should be warning about on systems that are >> supposed to have DMI information available as standard. > > I had the same feeling when I took a look at the patch, but later > changed mind, since the error will pop up also if a system has an > unmatured BIOS with some bogus vendor DMI string, too. That is, users > of such a machine gets always an error message although this isn't any > serious problem unless you need a dedicated UCM profile (which can't > be used on such a system in anyway). > > So, I agree that exporting dmi_avilable could improve the situation a > bit, but the error level needs still reconsideration. Thanks for the feedback. Yes it is probably better if we have a specific test. I will send out a V2 for review. Thanks Jon -- nvpublic