Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp15764831rwd; Mon, 26 Jun 2023 00:37:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5+oU8LOtOZMHMJ9Vdh131IiZZvdRCguklLnWCgebXVLH1szjTJffJl3SEhg+Et1ZPzhpeA X-Received: by 2002:a05:6a20:430c:b0:11d:2b0c:7f32 with SMTP id h12-20020a056a20430c00b0011d2b0c7f32mr36285254pzk.13.1687765025207; Mon, 26 Jun 2023 00:37:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687765025; cv=none; d=google.com; s=arc-20160816; b=QS11b8vgsBKTChio0WO1mdU4MI8XqrfYI1n0pu2TCvId8QrhVfHyviS1/Jt1Fxz2AJ G6YyqTJEFb7uMEFKWdTNZAnWr4Y5z/sDryGJiQuPBJm2AVLjulJpBb6w03rbTfIMpDZe OuMgX1IJvp+l3Ie73+fqCboNYB78mh9IqySdmiBERgCSnyseEM/M02ia7RFLpWpz6ptL MHbcmjuOTRGodcfQtK7aw0CCAhkdC3bZ9ydD+Crx7nI6tUQGR/texzQb7KXTdqPxrtt/ Vtqjw34XYf8K6U1AQXGJpWmmjLk6Lar33+7W2yH9xLCbZBZie40Z5V4EENAIBB5ODmem 9z6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=PCjX38sWy+8o+giL2BsPMNvdOxlsGH1hEh8od7hNbBM=; fh=9CU6za5ws9O5Juh3bo3vSWJwaLFvJBgb8+gxWOQR6Ao=; b=B/qDy1DLe99uIbrp4RrXBOKCrK32N1SLEFPfWT6iRhrAYuOR97Fq9N4vSFQy/YGsxL 1qC6jhx6aaNYNvdhFaBtS4/d1w1nltqcdFf+WvsPTerDk74T57lHJQJsaJWBgMtJAjKr 7pwq3DZuJucWDYvX2FwUI4fLqtURaOoJPis0PV1VAxFNk5lL/hBcEijev8P0CdEAPU43 5fAmKFR1KkLaDcZsvN3yQBBeC62zKi3dCvYaj7P/2RvYOhFo4cdC1HRvZeAvBqYl3vD5 08oVejHj5sVvFE3ANdCY0wBsqPx9w6Jnmyun1sSJbId9ndy+CnugLU5j1JTQIkXkbJne K0eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="B/6ylKyr"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b11-20020a056a000ccb00b006665e070b9csi4626102pfv.137.2023.06.26.00.36.53; Mon, 26 Jun 2023 00:37:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="B/6ylKyr"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229482AbjFZGnN (ORCPT + 99 others); Mon, 26 Jun 2023 02:43:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjFZGnM (ORCPT ); Mon, 26 Jun 2023 02:43:12 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 681A61A7; Sun, 25 Jun 2023 23:43:11 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id EEE6960C98; Mon, 26 Jun 2023 06:43:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52347C433D9; Mon, 26 Jun 2023 06:43:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687761790; bh=PCjX38sWy+8o+giL2BsPMNvdOxlsGH1hEh8od7hNbBM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=B/6ylKyrSjxVvwkGsDuP4dv8adwxtzNLvoWzhF6hEYfAJO2/faxHKtHDLXheCp99X gUUsJQKbdxA63sJGNMbccqm5qe2Cf8Nu6Hna8WSSDbRvGdX8raz+K/8cVwHiW5gsJH Tb688+3+cYoFzhr8Kis54cB8thbfCRzJiSsfsSXRV9m9Zmuzy++pDjEfhMy3LZjOxz rRY3C/kuTwzz2Pvw21ItwRk4g7g+6AnyeBk3dxP85Vrw1r7SuXzP06fjrnzzUFc5ft xoLeY8vHUlkLMPNGiFXUcXHIXFkRFvtRCtkKXtAfVNHFy07JrdnvOebIh1IdvBIcgV PjV9YW1nGyQfA== Received: by mail-lf1-f42.google.com with SMTP id 2adb3069b0e04-4fb73ba3b5dso910129e87.1; Sun, 25 Jun 2023 23:43:10 -0700 (PDT) X-Gm-Message-State: AC+VfDx5ki4TBeLHyLk0pNu3o1AdU/Kmzn1ZbxAttd02CvY6ap3h/CgV CQ1eyrE4d1J8bYRNPMFC9C3gi1g6Cjp3UaXbCsw= X-Received: by 2002:a19:6403:0:b0:4f9:567a:7a62 with SMTP id y3-20020a196403000000b004f9567a7a62mr8584473lfb.21.1687761788301; Sun, 25 Jun 2023 23:43:08 -0700 (PDT) MIME-Version: 1.0 References: <20230426034001.16-1-cuiyunhui@bytedance.com> In-Reply-To: From: Ard Biesheuvel Date: Mon, 26 Jun 2023 08:42:56 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [External] Re: [PATCH] firmware: added a firmware information passing method FFI To: =?UTF-8?B?6L+Q6L6J5bSU?= Cc: ron minnich , Mark Rutland , Lorenzo Pieralisi , rafael@kernel.org, lenb@kernel.org, jdelvare@suse.com, yc.hung@mediatek.com, angelogioacchino.delregno@collabora.com, allen-kh.cheng@mediatek.com, pierre-louis.bossart@linux.intel.com, tinghan.shen@mediatek.com, lkml - Kernel Mailing List , linux-acpi@vger.kernel.org, =?UTF-8?B?6JGb5aOr5bu6?= , =?UTF-8?B?6Z+m5Lic?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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, 26 Jun 2023 at 04:35, =E8=BF=90=E8=BE=89=E5=B4=94 wrote: > > Hi Ron, Ard, > > On Sun, Jun 25, 2023 at 11:57=E2=80=AFPM ron minnich = wrote: > > > > Hey Ard, thanks for the discussion, sounds like we are able to move for= ward now! > > > > > On Sun, Jun 25, 2023, 6:13 AM Ard Biesheuvel wrote: > >> > >> If this is only used on RISC-V, and implemented under arch/riscv, I > >> have no objections. > > Thank you for your suggestions that made us reach an agreement, let's > continue to review this patch. > > The current logic is to implement the common interface under > drivers/firmware/, if we need this function, we can call > fdt_fwtbl_init() to complete it in arch/xxx/kernel/setup.c. > > For enabling on RISC-V, we can complete it in a subsequent patch to > setup_arch-->fdt_fwtbl_init() in arch/riscv/kernel/setup.c. > > What do you think? > I think all of this belongs under arch/riscv