From patchwork Sun Jul 2 09:57:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: yunhui cui X-Patchwork-Id: 115080 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp11485350vqr; Sun, 2 Jul 2023 03:33:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7EnZw/9JMhr4RQuuNKhkcD9PlMG3ihC/eGbSx7cMra08mE8LsQagtqj4VusVgD2PK8HB8y X-Received: by 2002:a05:6a20:4322:b0:122:cb38:636a with SMTP id h34-20020a056a20432200b00122cb38636amr7241277pzk.33.1688293984335; Sun, 02 Jul 2023 03:33:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688293984; cv=none; d=google.com; s=arc-20160816; b=l61OBCvZE83ZFu30KwvcrsBSxaWKYqhQ5jqqLafMVxvAt2Kj6+YMwSOY2gLg4g/8tq HhAXba2dx+RoOynoaPHuggOFB9IXEyMjLsqqoR4JmvFBCe/JdBgu1wQGOyKbkWsy1bT1 5iYxkP8Zl4J7M2Z4iFBvOnQIji0Qya3oe7dP8i6nbwbttkYU7DbzyUvu9Vc4bVYZGV+2 E+kA3NR9ZSo2S6J9WBOjlRJ/T3HhICs0v01FBJHsXeMEMqgND4mgf5hi/ezLXDbqxpy4 uDCHvICAi2cCKcn60LXJAAW1JZYxKRKKEcS5Ny2P2eKvRHeSyif+3XXn21g/imstcmGz 0AMg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w10-20020a056a0014ca00b006828c76a9f1si661473pfu.74.2023.07.02.03.32.49; Sun, 02 Jul 2023 03:33:04 -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 S229913AbjGBJ6O (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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770304553050678317?= X-GMAIL-MSGID: =?utf-8?q?1770304553050678317?= 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 }