Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp24715206rwd; Sun, 2 Jul 2023 03:30:44 -0700 (PDT) X-Google-Smtp-Source: APBJJlFTrFtluNUDeL0MD0AethEWgSpI86hKf5UXlcYUb2q2HgPZ42pMqtbSs2Q6DwhI26bBW2Hu X-Received: by 2002:a17:902:7b95:b0:1b7:facb:2e79 with SMTP id w21-20020a1709027b9500b001b7facb2e79mr5063932pll.18.1688293844346; Sun, 02 Jul 2023 03:30:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688293844; cv=none; d=google.com; s=arc-20160816; b=lTst4iuVY1pipZA8vtAtd+u6wMXpMBa/bgVtBSZo/tWNKU211k2CS0ewxqY27yrqrs M6OaWuUap2WLteCnkjE8JvlA7ems5Y4wmtEICBY6NAFMw0aXbZT8LytawJukuNCuArku GnfYPYnkoSrci448cOQNc4jPar0Ty7HANZs7OKupbTXex35Ca2SGEE1+TWrhLUdwvOqy 0cnyMxsxQl7uQBgIAArhZaQDwCq6Mww09U2eluuGc53dmYb2qiM89d3eHuL/BpEVUDWS 8UUwxjYC+oA7hcIpyerML2sgSWPntl1qJQYhV078uG7tZERVItMdlcs9uUx4kVF5RBp9 xOkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=kkAY8od4kopgBrvcbw1hFpjzgJzWLikggNI5ytXC3Uk=; fh=fI97KO8K/QT07pLH0ngJK3tXQari6q4ZtMqoDk0XOd0=; b=I5EBQJYOJ67gAJS7OM3lSaGta0IRhtTT3hkEQTr1+Yque7FHvcRKzFWvrZiLhfeQmq bH1euNk9wuoTJ3MkkUK3762netGrusHUrKBKzsKoBdAdJ4d6oeCJOjxJj5xlDYpB1o3A OxvWkcy1TqKyqVtWn4dsMAw3MoyOIwuOBvLx4y2gjOsI2ixkp6qOtIEmpy66jEv1sGY3 KulACljdCo6LAvga3mb+SfxnTxLFXEL230/zby/DdCMbKz/VVZ+Oz0SVS/gQfaYYahmq 8jdaOpbVbuPsXs6O5l8ch6Vwl8LAcMe+tYyD8eHG9bPnuQDmRbrQ0Hwgu3jthDTTCy+G Th+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=loY2CFs4; 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 x16-20020a170902ec9000b001b7dcf3cf30si3638433plg.80.2023.07.02.03.30.29; Sun, 02 Jul 2023 03:30:44 -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=loY2CFs4; 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 S229908AbjGBJ6O (ORCPT + 99 others); Sun, 2 Jul 2023 05:58:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229941AbjGBJ6N (ORCPT ); Sun, 2 Jul 2023 05:58:13 -0400 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BEC610D0 for ; Sun, 2 Jul 2023 02:58:10 -0700 (PDT) Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-666eba6f3d6so1684079b3a.3 for ; Sun, 02 Jul 2023 02:58:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1688291890; x=1690883890; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=kkAY8od4kopgBrvcbw1hFpjzgJzWLikggNI5ytXC3Uk=; b=loY2CFs4lCMCrbHrZ0yHjXW0d09bE4yUX16zdqny9IfQYSrLVevitIgjVjuraQ1Gi1 WAmfNin9IKUl2GQp00jw/CWIWhYqGbAHp8jvoeWHdW2tcmtEKvfGCCrVB8hx6Q4Sjqqf HIaVcB+YtGA+M3GO+XfmBpZplhMaqD7hiiyflwP4RFdvBAZ38PNOqc3mzDurTK86p+je M1nxappZcfZ3mae9G8be5IBvNUlyRsR6sVYEV+W25NJWKZ4q+aoamrJnQ3X1ZRNQGXL6 Qmj/bbGQGyhVgTzIthLGGC/bHbI5sBzTGrTmwXacCHk2kbdGKz+PNnTZBecgIiHh5zI9 UFTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688291890; x=1690883890; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kkAY8od4kopgBrvcbw1hFpjzgJzWLikggNI5ytXC3Uk=; b=LJS/movjWqoUHqTUf2XpxpuSTlC7QDb4JYRoJuFGiusbFvFrW69OLCepGGPeVvDV8Z aGG1IVBDfrS/JeqUMsclLugEUoVR/cOR8NHY1R459as6zTe9rIbJTLoDexqvLYDmzOye nWDOvZtSKcOMEX0mlXZiEv53BT3ANjreVku2AKjTVdPBG7iJo9ga22lEdKELRXGs7xJg wdXXM99awvTfeNpAY4MzyJhOXGTGSoQLuKjUJathzI3eaGIU8LN+o78V8GeuaX0YIG7m 2kJYFDLhWyyNrzHE+rTGZJGkDtH1VDLFHPLjVApoRJwexPDeH90eoHf8cTuM2rqiw5Yk QKRw== X-Gm-Message-State: ABy/qLbnEJs2nYi2KLZHfEF7i5Wj6HPv5r1BJSg5pyIp5C/Jw7+RvvYc dW0yDdkKAlPKpoNxd+/qPkF3eA== X-Received: by 2002:a05:6a00:2d87:b0:682:4de1:adcc with SMTP id fb7-20020a056a002d8700b006824de1adccmr7473435pfb.12.1688291890230; Sun, 02 Jul 2023 02:58:10 -0700 (PDT) Received: from PF2E59YH-BKX.inc.bytedance.com ([139.177.225.251]) by smtp.gmail.com with ESMTPSA id u26-20020a62ed1a000000b006827d86ca0csm1605095pfh.55.2023.07.02.02.58.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jul 2023 02:58:09 -0700 (PDT) From: Yunhui Cui To: 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, cuiyunhui@bytedance.com Subject: [PATCH v2 3/3] riscv: obtain SMBIOS entry from FFI. Date: Sun, 2 Jul 2023 17:57:34 +0800 Message-Id: <20230702095735.860-3-cuiyunhui@bytedance.com> X-Mailer: git-send-email 2.37.3.windows.1 In-Reply-To: <20230702095735.860-1-cuiyunhui@bytedance.com> References: <20230702095735.860-1-cuiyunhui@bytedance.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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=unavailable 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 When we bringup with coreboot on riscv, we need to obtain the entry address of SMBIOS through the FFI scheme. Signed-off-by: Yunhui Cui --- arch/riscv/kernel/ffi.c | 4 ++++ 1 file changed, 4 insertions(+) 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 u64 acpi_rsdp; @@ -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 } -- 2.20.1