Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4717912pxb; Tue, 28 Sep 2021 02:27:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9jekqUCzGZk5VdjdzBYnPNWF4ZiVweguxFeeyxDJpfrvr7PqQOzZER2/TRUlRsCqWoZWT X-Received: by 2002:a17:90b:1712:: with SMTP id ko18mr4340479pjb.187.1632821245374; Tue, 28 Sep 2021 02:27:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632821245; cv=none; d=google.com; s=arc-20160816; b=feHZsd/ReSsG4JDx96RMUKn07BUUPFoSAyTJ5XZ1gE4UcPYldhBcJYEihENrEJGXgJ uFIGWwsTFjqMTWPrhY759SOd4UbWOjTU+zbzSBPF/BdwmgmaNB/DL/MsFgeV+XLbzFgg OVf/JqWWtJhpxZruJqj3TWJxRlYtV6L4CqNOCD0m31K9gZD4lh+OXiOY4yRc/pqflzON eK0ZOZw6IDG8wjRvJzosK0FylKKROWtLuk1Y2Cs4O6cRQeYdMEg5ufcKx7WdUNJ0pDn3 0HDMI7W4fulCvnZLG5TQd6QyECGxRiv68TU10Fw0pfDxBT1EkWQMKOGMv31bJmSsvK+8 OhEQ== 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=9VqIQz/1HqDmwPai2TYqvrCqYupABpAsyUut7dZ736M=; b=GxVEVlNqhUQxi3JEDKgNCR4v02ntc0MUzKms7GMrDKBMprRHLH2Bxd79fFsFbusKck ryU/KMdotlBV625PUq6SBTtZXIzpkgeI8xHdFOw+F1R1Z6vl2Zx706ioY2yyvZxfdYjj i68VN3ZW+zF0EiApwX9UiC5vziZI7GmYMZrshI+TrMUxUN8NJlXrWY+6JrTUYSVEXC6s XJN7BOToEgrMdW9NNI8zuZtP/8hJoUGOiMpi9gGM3YoljHaslHbiwk3edyRJwnCArUq3 q543spOcHFAhUuZ5ur5/OCjY0O9I2X9MLLrjpC2mGU1pGccAdLbkSrWt7GQZzs7qDYOd 1G8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=pFLUqA3r; 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=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f7si7885422pln.47.2021.09.28.02.27.11; Tue, 28 Sep 2021 02:27:25 -0700 (PDT) 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=@cirrus.com header.s=PODMain02222019 header.b=pFLUqA3r; 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=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239826AbhI1J01 (ORCPT + 99 others); Tue, 28 Sep 2021 05:26:27 -0400 Received: from mx0a-001ae601.pphosted.com ([67.231.149.25]:10400 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S239708AbhI1J00 (ORCPT ); Tue, 28 Sep 2021 05:26:26 -0400 Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 18S8A28M025160; Tue, 28 Sep 2021 04:24:02 -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=9VqIQz/1HqDmwPai2TYqvrCqYupABpAsyUut7dZ736M=; b=pFLUqA3rP6s9vALO1j4rVtdJ880oQlmw2WpBASjERkcmuXEDpPkdh+ZRgwwaSlJs6zie Ku0jyFaBkG78xmZ+YdNpQYf9Y0IvyZersPlmkBZvWSk5BWHPJhkyUWaCc2DEq07T/x2t c9X+xgK1iGXLPaf9qxoQAdBob6A1fkXIHKS2EFEKp1kNeOZDMcvesRyq3z4j6MP2yVX3 xnglaL2IGW9Vuej4mAqb/8jcF23TAbO2fBwKx/ExVJ6YnKlppjFEq0DcZBYWcSO/8Len K3JfFxKn7BFWETUi9snqgpJ5rk+cxe1A7HLWXdcPu3PJS1nxcAWPYrcKtx3NieBHHj6A Mw== Received: from ediex01.ad.cirrus.com ([87.246.76.36]) by mx0a-001ae601.pphosted.com with ESMTP id 3bbgmygx4j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 28 Sep 2021 04:24:02 -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.2242.12; Tue, 28 Sep 2021 10:24:00 +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.2242.12 via Frontend Transport; Tue, 28 Sep 2021 10:24:00 +0100 Received: from ediswmail.ad.cirrus.com (ediswmail.ad.cirrus.com [198.61.86.93]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 318DD11AF; Tue, 28 Sep 2021 09:24:00 +0000 (UTC) Date: Tue, 28 Sep 2021 09:24:00 +0000 From: Charles Keepax To: Arnd Bergmann CC: Bjorn Andersson , Arnd Bergmann , Mark Brown , Liam Girdwood , Simon Trimmer , Michael Ellerman , Russell King , Catalin Marinas , Will Deacon , Thomas Bogendoerfer , "James E.J. Bottomley" , Helge Deller , Paul Walmsley , Palmer Dabbelt , Albert Ou , Thomas Gleixner , Ingo Molnar , Borislav Petkov , the arch/x86 maintainers , "H. Peter Anvin" , Geert Uytterhoeven , Linus Walleij , Andrew Morton , Greg Kroah-Hartman , Linux ARM , Linux Kernel Mailing List , , "open list:BROADCOM NVRAM DRIVER" , Parisc List , linux-riscv Subject: Re: [PATCH 1/2] firmware: include drivers/firmware/Kconfig unconditionally Message-ID: <20210928092400.GH9223@ediswmail.ad.cirrus.com> References: <20210928075216.4193128-1-arnd@kernel.org> <20210928083751.GG9223@ediswmail.ad.cirrus.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Proofpoint-ORIG-GUID: Pzx4P-PCvsYzz7bz1-hxMXEM9-0MDlJo X-Proofpoint-GUID: Pzx4P-PCvsYzz7bz1-hxMXEM9-0MDlJo X-Proofpoint-Spam-Reason: safe Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 28, 2021 at 10:51:36AM +0200, Arnd Bergmann wrote: > On Tue, Sep 28, 2021 at 10:37 AM Charles Keepax > wrote: > > I guess the question might be where else would said code go? > > drivers/firmware seemed most obvious, all the other locations > > I can think of don't really make sense. Can't really put it a bus > > like spi/i2c etc. because we have parts on many buses. Can't > > really put it in a functional subsystem (audio/input etc.) since > > the whole idea was to try and get some independence from that so > > we don't have parts including subsystems they don't use. Could > > maybe put it in MFD, but no hard guarantee every part using it > > will be an MFD device and I am fairly confident Lee will feel it > > isn't MFD code as it doesn't relate to managing multiple devices. > > Only other option I can think of would be to make some sort of > > drivers/dsp or maybe drivers/cs_dsp, but not clear to me that is > > obviously better than using drivers/firmware. > > Other DSPs use the drivers/remoteproc/ subsystem, but that > is more for general-purpose DSPs that can load application > specific firmware rather than loading a single firmware blob > as you'd normally do with the request_firmware() style interface. > > Not sure if that fits what you do. Can you point to a high-level > description of what this DSP does besides audio, and how > flexible it is? That might help find the right place for this. Hm... wasn't aware of that one, we should probably investigate that a little more at this end. From a quick look, seems a bit more like it is designed for much larger more general purpose probably memory mapped DSPs. I guess our code is a little more firmware parsing and loading, and a bit less generic remote proceedure call stuff. I am not sure there is great deal available publically on the DSP core. It is talked about in a few of our datasheets, see section 4.4 in [1]. But a basic description might be it is a signal processing focused, very small DSP core. If can be loaded with different firmwares at runtime, and indeed might be doing say echo cancellation in one use-case, or always on voice detect in another. Functionally it is very unlikely to be used for anything besides signal processing inside the device it is in, since it is typically quite integrated with that hardware and will be sitting behind a slow bus, like I2C or SPI. Current users are all audio, planning to upstream some haptics parts soon, with possible other uses in the future. [1] https://statics.cirrus.com/pubs/proDatasheet/CS48L32_DS1219F4.pdf Thanks, Charles