Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1302741pxf; Fri, 12 Mar 2021 06:48:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzx99NtMg3BbE/at+zgHQ0vjTKnGTtiFtLoAq22FjTBL2EKt2lw6KoVX16ic2mvuQp67pQf X-Received: by 2002:a17:906:f953:: with SMTP id ld19mr8609933ejb.164.1615560516188; Fri, 12 Mar 2021 06:48:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1615560516; cv=pass; d=google.com; s=arc-20160816; b=Bjt1IEtZmt3lqm7sznvtkGvIh8lBxcRwut2k+acoDIt4nlJdRC+GYBs+iBU4ZK2Lt8 1rWIf1DROX2cFRBDZWQBTO57qOMUh+zWDuaYFfScgXBd1jcDDS4BEF2ji7W9OHz5FmGa SkQcG5crzTJN8z531VxspH3+PPYoxb8RY5Hy4VTCIBDYssAbIg4CXKsZNIUHbe5zFKRZ 1EB1BPuoO7WAdfGOG7Kmu8lOQL5lXYDW7FYd1T7yiol1HxClKl1vtfqnXuSXc4juOKjK 8vOIfzPSIG1rJKX9sWTDwpFkb9TCV/eVUMM0kVU7ojOpoC2Trtb3eIsKXzSA8jb3DmUY yIkQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=OHTMTOGJpBc+neMJ+SypQPpE4AKmcd26jDLZlOnnjIY=; b=m9v9pyVkdbsaQV88VeTw7kYwRV7EuT9hZqlKOvDubbvcRA3C93zwrBrwD6j0nN70wE 62QM9G6NCEAOeq+r37cuFGD2Turz5OtweKAJuztjm6QKkAvW83SyoJIEvNocSfQYl06X hQtDtfMqBOGvJC1+MM++E3jZZhP2AracAHYqQ3LnfYIsajwTYJRhCj1geGVqESMbZ/ew Gjmk1EEALuEAbCbJkxiY46uQQsTtQFdKnbCD5TBhtXRgtJBjSL9m4v5w3fGrr0eXstSm Df8xJCl5wUWp0YrM6bnO2zwLwEZwRd6tcj6AD1LsiDjc8jOav1nleqwn7HiMvo/CinYf NATw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=iPPe02HP; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); 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 s5si4158698ejx.287.2021.03.12.06.48.12; Fri, 12 Mar 2021 06:48:36 -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=selector2 header.b=iPPe02HP; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); 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 S230388AbhCLOpD (ORCPT + 99 others); Fri, 12 Mar 2021 09:45:03 -0500 Received: from mail-co1nam11on2059.outbound.protection.outlook.com ([40.107.220.59]:27780 "EHLO NAM11-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230072AbhCLOom (ORCPT ); Fri, 12 Mar 2021 09:44:42 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UhEFVQl13f5KSbW50YhTep792wRQLvf9rTN6pWh2cotv1OS/4NiPlzw+hfKtp0FqAiL2CtemnnfLFCgTvIKKZ3ooNes3N2m2fvVxuJ3cX+Ck+C2Nmibl6wK4c84ohtlVeHtXbwK2BOuaanPrPgTQJJeekk6zYHZJI4gSLftp1j8eSeoTzThnRkjTnmXEWWp6wVdsa6Fcau7RumGFKkbsyayjVUMemGjmr/3PFkn8mMEgNsJ/JfNdeofJHM2FYMv8h7gqg+4rqofoYQaUkmSe9CaQeZ7ykv/8s7zyaFosQvYxRdEtc5K5D46rq7S3dOmB3nBtRcb35x6M+91DXaDY0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OHTMTOGJpBc+neMJ+SypQPpE4AKmcd26jDLZlOnnjIY=; b=DSw3Dju+ltSYn5v56JOz0TNrdDLxOxB1sdIijYwPF80VxY+Qy6nRd0cFyNU6N7t762eoQoFMVGxOdLwKqRu/cUfIIMT05VpC5bui571PX3Is47UnmbhWO8I4CH7VajCaoDVggt8aXDkLLGDQocVGyL56R7jb8geHiChKpDk95pdVxAZpeYr+Yt1wZpilgMDTcxW8gfNG6LmVtmPWkCutHdBrZfz0nnFsYFtH2fOV6+S5QBZ0bISLuXeZCN5QxEmxPwQWYXaQJuGADyjuELGYQbNlz8WfQP+LEAnWKM6a6CJL005vNZBhhPs5dM6JKa8M0NdMQU6sdYKvgW88PBOybw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=suse.de smtp.mailfrom=nvidia.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OHTMTOGJpBc+neMJ+SypQPpE4AKmcd26jDLZlOnnjIY=; b=iPPe02HP08NfxAbRDMs4wert7Ki4+ZGYWQf+joKqIA61HBPlKxdpJ4zDMu1M7PDTcc3aEtj83jyG6CP4LSnO4jgZfUf2guK6WPn7XiLBhXKWFnBZZyWT++lqq6m7jg6cTxiMQ46ptW3OKCa0f7i9TErPOrVmLLKbfx1EhVuB4r3jothc1et3n/IyRaWSS7GVvuI+aBDO37b3cXW+jlvTg5XOBD7V91OLG3gyqwhHLkzrY4YtAilEQLT6FW+1paNJdtrEfQVulr5EsCgJgvCxD37RAhy0cWzIfxLKZ9YrpezJ5sDmd+BTtp/g8jxtZPQNgxYXR1z/TSzGmDmDeEAVow== Received: from MW4PR03CA0018.namprd03.prod.outlook.com (2603:10b6:303:8f::23) by BN6PR12MB1379.namprd12.prod.outlook.com (2603:10b6:404:20::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.17; Fri, 12 Mar 2021 14:44:40 +0000 Received: from CO1NAM11FT006.eop-nam11.prod.protection.outlook.com (2603:10b6:303:8f:cafe::47) by MW4PR03CA0018.outlook.office365.com (2603:10b6:303:8f::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.17 via Frontend Transport; Fri, 12 Mar 2021 14:44:40 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; suse.de; dkim=none (message not signed) header.d=none;suse.de; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by CO1NAM11FT006.mail.protection.outlook.com (10.13.174.246) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.3933.31 via Frontend Transport; Fri, 12 Mar 2021 14:44:39 +0000 Received: from [10.26.49.11] (172.20.145.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 12 Mar 2021 14:44:37 +0000 Subject: Re: [PATCH] ASoC: soc-core: fix DMI handling To: Pierre-Louis Bossart , CC: , , , Jean Delvare , Liam Girdwood , Jaroslav Kysela , Takashi Iwai References: <20210310193928.108850-1-pierre-louis.bossart@linux.intel.com> From: Jon Hunter Message-ID: <2be82024-0a0b-56d4-ec3b-2faa284df8c7@nvidia.com> Date: Fri, 12 Mar 2021 14:44:35 +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: <20210310193928.108850-1-pierre-louis.bossart@linux.intel.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [172.20.145.6] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1ddb204a-e8ff-4573-44c9-08d8e5655db7 X-MS-TrafficTypeDiagnostic: BN6PR12MB1379: X-Microsoft-Antispam-PRVS: X-MS-Exchange-Transport-Forked: True X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2bJMwXF8aXwzWMjtjrYOA7ReduxTJv0fEJ/yz8nJshOa3ryDqylc/bhrgNlSB1CpfV/0qbvtPuINYUmPEujt+rLGorWoOUyF50eS+Qj4QOmI88OyJjA+IaceYjnSDqvLWqcj3QckDNgV55EXKAih0XbY1OSrENpNSvDy/0FfIVtB0J78ORSFt4gSudpaRRyH50tVynjpaneSI+BkS2/1S+8yWNCVeUxjuKmmlntdCT2iUKSGl/wiX1e2HrhlcBRMmitWEt/UrwBIwNPf57p+fVfUCv8WA8LV43U5zbKXvcDHf45OoQa2RYECIFijoR6yUyIHTEa4oICDeELTi+nEHEkpryQ8ukwkH70WWFXaUp6Nex0+OtHSxaOPt/CpsOcJRhHcNjCtDCrxp7GYuPEdHEpc0go6YRtxXEobylVxUzqUfDidLBXQoiRV/hCKQEkxDxDDOgzpS3DRLLuACfaQ5xBiiTTLMY9TJWJFpiJhaSZtw9vxljVbCeW1e/RGoPItxtOoTzuBFxr5QTF8t4XGasM7JXk2l0BI9xWQnRr3A53rlYfq0elNuEWe3O2P4+f3q46V0TdLCoIQ5bYCW36dcz/r2mhxyaf4GEtJNpqLuFpyfhBXfHTNRzm6foD47FL+KVtFHThWJkM3UgQx9IrN4DC6AdMums7cuJSx+YpHVf1qOhB55mIiRr/vRmxUilRgsjjhOWcQq4x0rqrFW83T2Q== X-Forefront-Antispam-Report: CIP:216.228.112.34;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:schybrid03.nvidia.com;CAT:NONE;SFS:(4636009)(396003)(39850400004)(346002)(136003)(376002)(36840700001)(46966006)(8936002)(36860700001)(110136005)(70586007)(8676002)(16526019)(82740400003)(186003)(26005)(2616005)(70206006)(7636003)(4326008)(336012)(54906003)(47076005)(478600001)(36906005)(86362001)(36756003)(316002)(53546011)(16576012)(83380400001)(31686004)(426003)(2906002)(82310400003)(356005)(5660300002)(31696002)(34020700004)(43740500002);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Mar 2021 14:44:39.8615 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1ddb204a-e8ff-4573-44c9-08d8e5655db7 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.112.34];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT006.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1379 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/03/2021 19:39, Pierre-Louis Bossart wrote: > When DMI information is not present, trying to assign the card long > name results in the following warning. > > WARNING KERN tegra-audio-graph-card sound: ASoC: no DMI vendor name! > > The initial solution suggested was to test if the card device is an > ACPI one. This causes a regression visible to userspace on all Intel > platforms, with UCM unable to load card profiles based on DMI > information: the card devices are not necessarily ACPI ones, e.g. when > the parent creates platform devices on Intel devices. > > To fix this problem, this patch exports the existing dmi_available > variable and tests it in the ASoC core. > > Fixes: c014170408bc ("ASoC: soc-core: Prevent warning if no DMI table is present") > Signed-off-by: Pierre-Louis Bossart > --- > drivers/firmware/dmi_scan.c | 1 + > sound/soc/soc-core.c | 2 +- > 2 files changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/firmware/dmi_scan.c b/drivers/firmware/dmi_scan.c > index d51ca0428bb8..f191a1f901ac 100644 > --- a/drivers/firmware/dmi_scan.c > +++ b/drivers/firmware/dmi_scan.c > @@ -166,6 +166,7 @@ static int __init dmi_checksum(const u8 *buf, u8 len) > static const char *dmi_ident[DMI_STRING_MAX]; > static LIST_HEAD(dmi_devices); > int dmi_available; > +EXPORT_SYMBOL_GPL(dmi_available); > > /* > * Save a DMI string > diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c > index 16ba54eb8164..c7e4600b2dd4 100644 > --- a/sound/soc/soc-core.c > +++ b/sound/soc/soc-core.c > @@ -1574,7 +1574,7 @@ int snd_soc_set_dmi_name(struct snd_soc_card *card, const char *flavour) > if (card->long_name) > return 0; /* long name already set by driver or from DMI */ > > - if (!is_acpi_device_node(card->dev->fwnode)) > + if (!dmi_available) > return 0; > > /* make up dmi long name as: vendor-product-version-board */ > Thanks for fixing. Reviewed-by: Jon Hunter Tested-by: Jon Hunter Cheers Jon -- nvpublic