Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp15520410rwd; Sun, 25 Jun 2023 19:39:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5i8m4wJD2MDVM2GAfRRbG2T9DfzRBz3eV3yxqXmhmb4VlbX9Nok8ZgsGcxSPMRUXRVTelB X-Received: by 2002:a17:902:eccd:b0:1b5:522a:1578 with SMTP id a13-20020a170902eccd00b001b5522a1578mr8637998plh.29.1687747177830; Sun, 25 Jun 2023 19:39:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687747177; cv=none; d=google.com; s=arc-20160816; b=0hGdDRobbmLzNpIQa6I+3pJs5W9WedT3I/g9LombWD1mhtwk2jQ0p38ybNjf8YyI/6 iDRWdPCgktEToAhffE7ugEFYtSENJFW6jiSdXJ3YxayG83PHiVUNpE5THgiVxPqAktOU 5R/Y1aRVqcpwuf7Pn/NrQf0wEUZ5Sf8Cz9wfO79lwmYMrGK+kmz9Naoz0iWPYzvxBPx2 6iY486th4m5nLVSdQNCmIFlOBcublti5DbVC3FoVWV+O5fu1oBOVWmwhTyfyXsfTH0qh D4+3UOpVlUQ3tn8scAkjm5BmwpAfjVHAmZZ+rOwnzqy8uHC1P8QbSoKFuI0QpFcH4Z44 O9Fg== 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=pqmKGWm+jTRona2CHbfUBt+oTaSkdVF8E4LHvdIFA7g=; fh=8Lg65P0xVgiE3C2KTfz29wZLurX8FJv6d5/ExbX6k4E=; b=IANcp/Jqu4S4DzIHP7g2T0yCsrOEun7EpvZlTgFfGywZ//sUDaBUouci4mhjqrHjH+ w+HMOL867DNoWB2A0Yc4N04ZW3U+JeEevMa5rJk2MOScrJL9czIPnK0TQuQfhy67tTAc vewLEW92ajCS/p2nME1Fx6M8bcA/8ACInzNVbPlCDVN7DV21pMG1zXcVbF0/aC7vKay6 YFXmEyhJcShzR/2+F0L3W9y2Aa9q50VvjxyFQ/Szat+RSfon3O+zXIv1hyXksCQn3/+X C/Hp40qKuLWx/368snUANFV4vxlkA5LMSMIn0ZuqwRG1wtGO6f/SDCD7+7trOCCWmoKr QVbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=Ev4VR3zX; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l18-20020a170903245200b001b199c98cf4si3123464pls.280.2023.06.25.19.39.26; Sun, 25 Jun 2023 19:39:37 -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=@bytedance.com header.s=google header.b=Ev4VR3zX; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230179AbjFZCfS (ORCPT + 99 others); Sun, 25 Jun 2023 22:35:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229965AbjFZCfP (ORCPT ); Sun, 25 Jun 2023 22:35:15 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 594D5193 for ; Sun, 25 Jun 2023 19:35:14 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-313e2fdd186so2066814f8f.2 for ; Sun, 25 Jun 2023 19:35:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1687746913; x=1690338913; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=pqmKGWm+jTRona2CHbfUBt+oTaSkdVF8E4LHvdIFA7g=; b=Ev4VR3zX+egrC1GzP9vmnumQaLWsYIafaGn+QD/sP/4VF6EghP+tjQfgzC5y4yoDu1 a1gHI7iCwh4bPx7dizJwA06GOvJd3aR5dmvglJkssGJ6e4okEY7JvDvms8inTTMu3oC9 r1Vdj7bESbqlJ0zEQ05OvYP/QD+52cZofITWGipeWInLyhCzB2l/ikiRk2Q9eWyNWE/F QyKDUqiXU0wy5HUnG8O1Y92DYbF0uqjYO+i4O3VtdjfeuDgHj6pGSBMbHtJprbIMtwJ2 mao2ZV9q9w5UmnrJMvns85fztj9Z5ihPbBbzV8YBnpxH5lcwJ2BlgQ15pOxEXwGahrrN 3bPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687746913; x=1690338913; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pqmKGWm+jTRona2CHbfUBt+oTaSkdVF8E4LHvdIFA7g=; b=HO/TaubDp4v+edV5hSdKAnxBcgye0c0GOyK70EXlGeDT3EapsIk5A4Wj5Ik8euuD/e ZMsYCWTF00QhqPQ7nutHfVPbguRmvw2plhvo5BJAF7DI5dCzg3tDuc5iKpL8Utg/O7WV 8e3ut3Bkj1kNCyJTXExzvACdbOi0vRUD1hlbz/lhzspjjh2dR59HhFt+c04zObzsVtwS xzKYwDnEb3UZ6OuTkYg3imTeFHWkgg3Pxut1GvGNNMnB0gsFHmlsskSyVxDAoyvrj5/7 fUnyhRcCZh3bLRabfrgvV++p8IWUmSxNMGlN/ctUdbUJdFkXNW2YhDEzuLUsoHNzoyxI AQQA== X-Gm-Message-State: AC+VfDw+XmrHmAiCYQSZnkHvmVBsBl7ihAqEFY38R23o2wt2rgUeyX97 9GDEibSei8Nsnshjf99MhpJziAKaZos5oEFLIrUKDQ== X-Received: by 2002:a5d:6a91:0:b0:311:1128:9634 with SMTP id s17-20020a5d6a91000000b0031111289634mr23631699wru.54.1687746912806; Sun, 25 Jun 2023 19:35:12 -0700 (PDT) MIME-Version: 1.0 References: <20230426034001.16-1-cuiyunhui@bytedance.com> In-Reply-To: From: =?UTF-8?B?6L+Q6L6J5bSU?= Date: Mon, 26 Jun 2023 10:35:01 +0800 Message-ID: Subject: Re: [External] Re: [PATCH] firmware: added a firmware information passing method FFI To: ron minnich Cc: Ard Biesheuvel , 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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 Hi Ron, Ard, On Sun, Jun 25, 2023 at 11:57=E2=80=AFPM ron minnich w= rote: > > Hey Ard, thanks for the discussion, sounds like we are able to move forwa= rd 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? Thanks, Yunhui