Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5927323rdb; Thu, 14 Dec 2023 03:58:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IFJLTtoT9AjeuesAeo/H76x0jXRYdLTPhr9DcwHX6I7uVTeGrrpW00pufQ8Z3RSbLg6sVxN X-Received: by 2002:a17:903:41c3:b0:1d0:45bb:aa08 with SMTP id u3-20020a17090341c300b001d045bbaa08mr4948147ple.7.1702555087604; Thu, 14 Dec 2023 03:58:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702555087; cv=none; d=google.com; s=arc-20160816; b=N6z+9gn2sb6RbkTu0XGWRGQk/GI9rIeSwzgo3L73oqT6KFT85aFqxKiCN7fc9ARCxv laH2mALHQMgV9BTYPWSKSA3IHhST7pSSRQEMyprgs7rkUiagYXbpeGlyvwiG6NPZ66TK 8q+Gg0bfk0I1mlS7RZj8SDmD/PHyGAYg2Rf9NLKOKCAovtrIyTlH2Ul/H4qDyw8D4qFE yY//5QqG1awqmH4S27E55UePAd+WfVLhp1mqHYjlqTL50T0aa+O46NLRFufxlxVbx9jD /W1CwWfdcndG0rgQyUJhCTrSI4j8afVOhtZFaDIRhgPw1fS3W2BTnOXXza1CPVUZPD4Q kxwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=RCKM8IFWKACN/Ti8IUvLFtXw1w6HbQLMsuo+l5UgS8Y=; fh=TWvNbF3qbz9nZMPwh8YLwN/dHIu23v3jRY26gft6Gq0=; b=jMXVWSyQ1i60vh4bBhYClBROph35/L6xaZYBSmP9Xq2Uik4nWtkGgiQi+bbKMX0qSQ eovp+XTLJzq+xtgxKv79i6Hj4LUzTkFjxEbt11EXJBj5ecouUtuJsALGCKoPQdN0ksgN sKaSoIjZR/DviejqCrE/RBnzOYW5NJnVUnI6EDC/aeF8/vr9s/NSiG6KYIAnZkVFSYBa s5UnBWdtxQwZyVfn7Ytgngef5b8XVvD8UqDgNFXuCFzDoawBIxW1RBnZSitX1uj8hEgE xjQ8L/TXFbh9shC3bE/BYd/AYkxdVyiYxxj3plw+yPntl6GhbivUqOA4pP8OdhGmTbqH Exlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Z301Fv0v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id bj3-20020a170902850300b001d092e9cbbfsi11138638plb.445.2023.12.14.03.58.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 03:58:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Z301Fv0v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id DA2B8810F6C6; Thu, 14 Dec 2023 03:57:20 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1444211AbjLNL5E (ORCPT + 99 others); Thu, 14 Dec 2023 06:57:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1444112AbjLNL5D (ORCPT ); Thu, 14 Dec 2023 06:57:03 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C27BF113; Thu, 14 Dec 2023 03:57:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702555029; x=1734091029; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=EwxAgDZ2DcIp4KgA/vqROZ9HGMY7XaC0XxVc24lvUAQ=; b=Z301Fv0vlF1HRppWHOE6G9Gn6WfyHOmXqIoGk/z1s8a0UZd8SKC4NOGr 9lz9368DxqiKJifwwHsySR5hJUg1JYvThvo8huA7DLxezmUOEfRoyYKoG byEti6HevEFzvzT2qFbG/MR17vyHwES+/x9k7FAfnG0OtBrp0pkruw8L9 oXRv+HX7X4PIByovA9krpmYaoJiRHJvU8gEDuEZwM5w+uTWnsymrEye1S tuWoNSN2s9QesyY1kzSKVSWVU3wMNrQT18yXRYBixBxF0ntqrZ71cpIX2 ioGQO2GITVyHscEpPbWbTK93/uk1E3eb3bjjNFbTXNjykOlBgtU12o9/4 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10923"; a="392283392" X-IronPort-AV: E=Sophos;i="6.04,275,1695711600"; d="scan'208";a="392283392" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Dec 2023 03:57:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,275,1695711600"; d="scan'208";a="15826348" Received: from eborisov-mobl2.ger.corp.intel.com (HELO [10.249.34.72]) ([10.249.34.72]) by orviesa002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Dec 2023 03:57:03 -0800 Message-ID: <2c09e01b-777b-48ac-adf9-63d61e1a36fc@linux.intel.com> Date: Thu, 14 Dec 2023 13:57:44 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 07/11] ASoC: SOF: core: Skip firmware test for undefined fw_name Content-Language: en-US To: Venkata Prasad Potturu , Cristian Ciocaltea , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Pierre-Louis Bossart , Bard Liao , Ranjani Sridharan , Daniel Baluta , Kai Vehmanen , Alper Nebi Yasak , Syed Saba Kareem , Kuninori Morimoto , Marian Postevca , Vijendar Mukunda , V sujith kumar Reddy , Mastan Katragadda , Ajit Kumar Pandey , "Hiregoudar, Basavaraj" , "Dommati, Sunil-kumar" Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, sound-open-firmware@alsa-project.org, kernel@collabora.com References: <20231209205351.880797-1-cristian.ciocaltea@collabora.com> <20231209205351.880797-8-cristian.ciocaltea@collabora.com> <6e52c5a2-24d5-422a-9a40-a0053729c98e@linux.intel.com> From: =?UTF-8?Q?P=C3=A9ter_Ujfalusi?= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 14 Dec 2023 03:57:21 -0800 (PST) On 14/12/2023 12:58, Venkata Prasad Potturu wrote: > > On 12/14/23 16:18, Péter Ujfalusi wrote: > Thanks for your time Peter! >> >> On 09/12/2023 22:53, Cristian Ciocaltea wrote: >>> Some SOF drivers like AMD ACP do not always rely on a single static >>> firmware file, but may require multiple files having their names >>> dynamically computed on probe time, e.g. based on chip name. >> I see, AMD vangogh needs two binary files to be loaded sometimes, it >> is not using the default name as it hints via the sof_dev_desc >> ("sof-vangogh.ri"). >> >> The constructed names for the two files are just using different pattern: >> sof-%PLAT%.ri >> vs >> sof-%PLAT%-code.bin >> sof-%PLAT%-data.bin >> >> iow, instead of the combined .ri file which includes the code and data >> segment it has 'raw' bin files and cannot use the core for loading the >> firmware. >> >> What is the reason for this? an .ri file can have two 'modules' one to >> be written to IRAM the other to DRAM. >> sof_ipc3_load_fw_to_dsp() > > For AMD Vangogh platform devices signed firmware image is required, so > split .ri image into code and data images. > > Only Code.bin will be signed and loaded into corresponding IRAM location. This is not different than what the Intel .ri files are made of. The module which is to be loaded to IRAM is signed code the module which goes to DRAM is not signed. The loader itself is not looking into the sections of the .ri image, it just parses the header and copies them where they belong. if the issue is name collision then you could try to put the signed firmware file under 'signed' folder (fw_path_postfix) of the platform like Intel does with the community signed ones? It would be great if somehow we can handle all of these in core, have shared code and familiar prints among vendors, platforms.. Fwiw, I'm planning the path, filename creation to be moved to core for the current platforms, but it implies that they do use single firmware file. struct sof_dev_desc would only have two strings: vendor - AMD / iMX / Intel / Mediatek platform - tgl, vaggogh, etc I need to adjust it based on what I have learned today about vangogh. -- Péter