Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp24887992rwd; Sun, 2 Jul 2023 06:38:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlEUwu9yA5fBUblrMtpISelV3CvV/vC+wmP4AABF7H8Sg0oQYKzInqkGSmJOtzHNqLHq3T1G X-Received: by 2002:a05:6a00:174c:b0:668:81c5:2f8d with SMTP id j12-20020a056a00174c00b0066881c52f8dmr11026150pfc.3.1688305082492; Sun, 02 Jul 2023 06:38:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688305082; cv=none; d=google.com; s=arc-20160816; b=VdGH0DTpiaWVHekauBrVuvHE8XV2fOGXz2BcFSfjX35vktpQm9vAr+RGKwF/CCat44 X9KdTPpqxWDx1HZDo/4cBmxs3UZGRrW4t7Ue7UGkIts2BEeEjY1XPskQucf8np5fj4uO 30L1LHmbm1a/uYWdtQ0Cc2D3dCYcBacwq7bL2F5lNetRxb4CrSleHebdtK3qtohxc9g7 TkQtgfS3qczmjmx6wHT7fhW0lK1NwW4B8sigkGPnT1lzNfCSXAY/cVLxkCnVd1QWXJB0 hddbw7jjp8MetPC+Ne5CpjzM7HN9SQTAGoy45gcGbyHbKp3GRQeh0TG1LmD+6N6t+E4Y 7yGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=VILemlMeSZ6rsnBJh8Nf2SNw4QCcxZbZidK8lhb0mjc=; fh=js3sZ5wp8thU5aHTXhCUVR7txo6BJVRccIGF9+z16Uc=; b=PK67J+ob/PQJOr/U7m1f6fqtCDgsUq3HtibHnoHPFXuAIxh2de4pOVy7bmjWsfHiUm i7r1SfuCAyYA2633RRezRlM7t2+cF+x9MgyCIwd0pj67CXdyjI6XMNiENUBsS7qHr9t+ APXEIuS8ErfFxUF1oPHkPsFe5PR4N+onNrwGuYxnEzJTJD50j6WSfEUi5Nhjjb6hi1Qa iy2vOYk25MmRRfmCw2z9Zn7251EEjP4dSLhDZFvOU9Qw9qdwa45SnSDAvYhkn05Pd5t3 W8eyVT6XqUu0F/ZnANcxa6Zy0DuqmzKj6htCPrfLTFRhCtMnmLBYBSyJBUyeSsQ/vY9g cIwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=etgRBNp8; 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 z11-20020aa7888b000000b0068281dbbd13si2260572pfe.76.2023.07.02.06.37.48; Sun, 02 Jul 2023 06:38:02 -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=etgRBNp8; 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 S229960AbjGBMmn (ORCPT + 99 others); Sun, 2 Jul 2023 08:42:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbjGBMmm (ORCPT ); Sun, 2 Jul 2023 08:42:42 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3ED4812A; Sun, 2 Jul 2023 05:42:42 -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 C2EB660BD8; Sun, 2 Jul 2023 12:42:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3918FC433C7; Sun, 2 Jul 2023 12:42:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688301761; bh=jVfUQVWB8u0PmmvQDyZ7KO7ngMdVLhTl+YUPfPEXFwg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=etgRBNp8U1GtrE29PKQP3Z3l+S96gV65/AkfTD5miA8hii+65r21ZygpaH4oa/xqS VD0FpE9p5jIRdEFGPQS1D0AICq7rxv0y5f/bvUqiaSL87hpivTQ/SdqvrmaQ7YGgaB 6h+1UjENycYhZ9wBlyWGHvrhtLeSvTliD6PYZU2t43XGlgI9C+gT+XvZ08nKG8NxKN oO9wGR43e29JGoaxOOjN/2Hjcz0NmWGPf9KBz9K+WiKz+LNXCxztfy7d7cRDmYzpYt f7n8CTIbVoCqzaK5zocFUDlpy5BejlA1DUts7zqhSx+YX4HrLbmMeuKKPZ/2JzPYfo X/dZEkgXcsExQ== Date: Sun, 2 Jul 2023 13:42:34 +0100 From: Conor Dooley To: Yunhui Cui Cc: ardb@kernel.org, palmer@dabbelt.com, paul.walmsley@sifive.com, aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, rminnich@gmail.com, mark.rutland@arm.com, lpieralisi@kernel.org, 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, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, geshijian@bytedance.com, weidong.wd@bytedance.com Subject: Re: [PATCH v2 3/3] riscv: obtain SMBIOS entry from FFI. Message-ID: <20230702-confiding-aqueduct-25c3c2852de3@spud> References: <20230702095735.860-1-cuiyunhui@bytedance.com> <20230702095735.860-3-cuiyunhui@bytedance.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="UYIYQ5+ccvyV+xol" Content-Disposition: inline In-Reply-To: <20230702095735.860-3-cuiyunhui@bytedance.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 --UYIYQ5+ccvyV+xol Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey, On Sun, Jul 02, 2023 at 05:57:34PM +0800, Yunhui Cui wrote: > When we bringup with coreboot on riscv, we need to obtain > the entry address of SMBIOS through the FFI scheme. What do you need it for? >=20 > Signed-off-by: Yunhui Cui > --- > arch/riscv/kernel/ffi.c | 4 ++++ > 1 file changed, 4 insertions(+) >=20 > diff --git a/arch/riscv/kernel/ffi.c b/arch/riscv/kernel/ffi.c > index c5ac2b5d9148..c44f943a1cb5 100644 > --- a/arch/riscv/kernel/ffi.c > +++ b/arch/riscv/kernel/ffi.c > @@ -8,6 +8,7 @@ > #include > #include > #include > +#include > =20 > u64 acpi_rsdp; > =20 > @@ -34,4 +35,7 @@ void __init ffi_acpi_root_pointer(void) > void __init ffi_init(void) > { > ffi_acpi_root_pointer(); > +#if CONFIG_FDT_FW_INTERFACE > + ffi_smbios_root_pointer(); > +#endif Please stub this function so that we don't need ifdeffery here. Cheers, Conor. --UYIYQ5+ccvyV+xol Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZKFwugAKCRB4tDGHoIJi 0u0QAP9PDkIgfu8QYYuLUfYPSliixPVA8qI4IFs1lvMEqm8TFQEAjpx7JLvefDUL j3QKZLxc+OyZF1oBq//GpMhDgP3T2Q0= =aVzp -----END PGP SIGNATURE----- --UYIYQ5+ccvyV+xol--