Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5749788ioo; Wed, 1 Jun 2022 11:45:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6SHCKMl/8F5QYLMhByxjzWCi7GJ0EgcXaakqxa0rkS8v2CmHmgVO75wZ8x5kPMlS7rzDX X-Received: by 2002:a63:2c46:0:b0:3fb:540f:90d3 with SMTP id s67-20020a632c46000000b003fb540f90d3mr634581pgs.185.1654109129805; Wed, 01 Jun 2022 11:45:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654109129; cv=none; d=google.com; s=arc-20160816; b=PfiB9mngEzCMxl9Vey3iJwyhmjQ6V83vEG/3+D7lGz15oB2+1cB7twDvNW2Rq/0AAm JA5WsEye19rM4VI7+BBKZ680+67mAki5o8vZH+KxFqPbMVZ9svcn8a/YscWuMLQuvSd0 G3zpZkw78Egdyqx1ug84v5w71qgkrxLyXusFifToVxFSjQkYYM8ZDPahfPKypTbw2/jK uptNbqdTGPL4zkXMwEOALsGyVg1uMZcD+NplM7MS/eiaqePq89H6KZ1Q1kFax7npACHV F0Faw9CrvrVoNABiaM5OKbn0vEIFEB37+wRRsEAQ/pNkUXWI7KNvnAawfsr4FFsBGgYu JgTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=bKYxbNoDM4nFff5z/xz7MZN4pi94siKAcbuwm7LZsXI=; b=Kg9pEcYh8hGvta2Ij1mJBHuvUjJ634QXGHFvGfUOxq0/mXCHEPnvk4KRDlhwKGaZvA QjxL56pmzs7WLim8VlSzF9Vbv6CQ93sXfWT0WNOn8my3+weV4kRHU2sPcwuEuaFqFcgL DyhW8f9QqM67/s6ODtftmqvkH4nIxxTQaGGMvI/X4RUjQOhqHpi0XZbXklI+IoUOWK9q DdaAfOiIsUz7nXev4gVqctQuiKdAPj8Tajfou1EstCasV7JoVV28hyDjeoUDPXFBzsM3 KjvBj+qnQmN9xCzlcU6KLZ5R4NDjVpgUxzI+2EOPoNZq9twCXAkt99p3RoL4Oe4o8Dfc TAhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=MTyV2daK; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id p9-20020a637409000000b003ab2603ce1asi3026008pgc.262.2022.06.01.11.45.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 11:45:29 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=MTyV2daK; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A275E6D95C; Wed, 1 Jun 2022 11:40:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234822AbiE3Jh0 (ORCPT + 99 others); Mon, 30 May 2022 05:37:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234820AbiE3JhO (ORCPT ); Mon, 30 May 2022 05:37:14 -0400 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 370A575231 for ; Mon, 30 May 2022 02:37:10 -0700 (PDT) Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24U7BcHP005120; Mon, 30 May 2022 04:36:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=PODMain02222019; bh=bKYxbNoDM4nFff5z/xz7MZN4pi94siKAcbuwm7LZsXI=; b=MTyV2daKaf1XPM0ut6qXecvk8tqcJYCCf0pSocuqvTrRSSHosKwn71PCrLVHbYOVPEIh Z/blHKXVRAdusGxQ1RLCcZD1i7ehfsRaxWmRvpy3Tu10Oe1X0ALS/8zZ7dkRXiZT36zw JKB6nPgjZjBUYeoMfn89C8K7gmin0Qd+AZKGAAqeq7Uow6JCfxpz5CCbPVCiBiZwNWVz PKIkJK2MB3ekIhwairlV7SR5Rp4UuK4n2ht5lBoTpMxvMFUEiyV4eJX7LsN0eI7pgm9Q e8gXu2KtOQb0AOcrpbAa5o1VPR8vLoYPyJfAKfNKrsqMSsA9tWX/1gwrNQUN7Y7lBCQG XA== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3gbg5nhkwu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Mon, 30 May 2022 04:36:40 -0500 Received: from EDIEX01.ad.cirrus.com (198.61.84.80) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Mon, 30 May 2022 10:36:39 +0100 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.1.2375.28 via Frontend Transport; Mon, 30 May 2022 10:36:39 +0100 Received: from ediswmail.ad.cirrus.com (ediswmail.ad.cirrus.com [198.61.86.93]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 1AE57468; Mon, 30 May 2022 09:36:39 +0000 (UTC) Date: Mon, 30 May 2022 09:36:39 +0000 From: Charles Keepax To: Takashi Iwai CC: Vitaly Rodionov , Jaroslav Kysela , Takashi Iwai , Mark Brown , , , Subject: Re: [PATCH v4 00/17] ALSA: hda: cirrus: Add initial DSP support and firmware loading Message-ID: <20220530093639.GT38351@ediswmail.ad.cirrus.com> References: <20220525131638.5512-1-vitalyr@opensource.cirrus.com> <871qwf0x8t.wl-tiwai@suse.de> <20220530090846.GS38351@ediswmail.ad.cirrus.com> <87czfvxtsc.wl-tiwai@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <87czfvxtsc.wl-tiwai@suse.de> User-Agent: Mutt/1.5.21 (2010-09-15) X-Proofpoint-ORIG-GUID: HZLJ07Ac1ZXEmC-ipJehlWyWwDW3SLbV X-Proofpoint-GUID: HZLJ07Ac1ZXEmC-ipJehlWyWwDW3SLbV X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Mon, May 30, 2022 at 11:18:43AM +0200, Takashi Iwai wrote: > On Mon, 30 May 2022 11:08:46 +0200, > Charles Keepax wrote: > > > > On Fri, May 27, 2022 at 06:13:38PM +0200, Takashi Iwai wrote: > > > On Wed, 25 May 2022 15:16:21 +0200, > > > Vitaly Rodionov wrote: > > > The idea to add / delete controls by the control element change > > > doesn't sound good; as already mentioned in my reply to the previous > > > patch set, the change of the control elements can be triggered too > > > easily by any normal users who have the access to the sound devices. > > > It means thousands of additions and removals per second could be > > > attacked by any user. > > > > > > > This I am a little less sure how we handle. I mean arn't there > > already a few ways to do this? Both the existing ASoC wm_adsp > > stuff, and the topology stuff (used on all new Intel platforms, > > so very widely deployed) let you create controls by loading a > > firmware file. Also within ALSA itself can't user-space create > > user ALSA controls? Is there some rate limiting on that? How is > > this issue tackled there? > > The creation of kctls via firmware loading would be OK, as the code > path can't be triggered so frequently. Is it the case for this patch > set? There was too little information about the implementation (and > more importantly, how to use the controls), so it's hard to judge... > Yeah that should be what is happening here. Although it looks like this code might be removing all the controls if the firmware is unloaded. I will discuss that with the guys, we normal just disable the controls on the wm_adsp stuff. Thanks, Charles