Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29111782rwd; Wed, 5 Jul 2023 07:21:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7jYyCrfWQTmYqBQssU2b2g5LI+A49xQh0UJRHR3VWElCgzyz/Pmaxc1L2uJc/ao2OBp1zC X-Received: by 2002:a05:6830:18d2:b0:6b7:41d7:b9f with SMTP id v18-20020a05683018d200b006b741d70b9fmr18996483ote.17.1688566896553; Wed, 05 Jul 2023 07:21:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688566896; cv=none; d=google.com; s=arc-20160816; b=yAy0lpew0ccORWFR1/VumEl+xydR+kPgHnVvShB/3jMQab6aF5xvrugly8k9yt118x w9KUqbIhOvT7dYuMvddku6at4GF3Z3ORrWZMBeq/kCx2lUhlnhjZSgsmgDyOzK15p5SR Kr3/RCybfQCva+2TNOGuN/ZfHvxX1jO4HABwYtb7c0hXdiHI+uOZF4HylM21ZyeztQ/s Ttv2cZ+ezlt7ZvGpIUVWI90YtAwJe0XySuOEnxCsBCl+JMzO6YKoZnPGd92ee11ymEfh i00VL4dC34RgMa0Dwv6Ich8R1OBnQQ4bzdcoEQ5bW4vM+ClCvQT3oLOJ6r7q8WMayUn6 AHkg== 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 :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=WDWjRluYFM3mzOmtAT5NxskA0RqCR9Q0xHAxLzDYI6Q=; fh=XlwMz4U5fo55Pd/ALItupdxe2fU01OgNeOTsVldj7qY=; b=Zn2OA7tncMJXAvr02QCgeEqt/DjBrYHsYItERrZ5orpLswZbMLeFIFinfswoYnE50f RYSysnPsXajWThvt6pvYt0eqzz+uwZLdjrf0gWSGFW1CZ4Y0ff0Oqjc5A9BMZTwbICET iMPQ3UrTzzgJ01y4JBqlJ6tBONYRSc81FQHRKaWTYFFF6yvoYVoFqvCBgfHcRryLRxGq H+vUCWKtk6ukmqWOv5L0MY2hysgJg8/10s/n/zh/WpctbbqbKK4neGlvbAgtBM8oqiKN xOfggF1A2Wo22TU+8Bcim6Psajd/OzaEc045cY89EVCVjH0siNw6q8dmNaae8Q9sj2v3 D1ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20221208.gappssmtp.com header.s=20221208 header.b=1A0GhTw4; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f26-20020a63101a000000b00543c84bf588si23335204pgl.473.2023.07.05.07.21.23; Wed, 05 Jul 2023 07:21:36 -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=@dabbelt-com.20221208.gappssmtp.com header.s=20221208 header.b=1A0GhTw4; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231630AbjGEORd (ORCPT + 99 others); Wed, 5 Jul 2023 10:17:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231815AbjGEORc (ORCPT ); Wed, 5 Jul 2023 10:17:32 -0400 Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB56B12A for ; Wed, 5 Jul 2023 07:17:30 -0700 (PDT) Received: by mail-oi1-x22c.google.com with SMTP id 5614622812f47-38c35975545so5379502b6e.1 for ; Wed, 05 Jul 2023 07:17:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20221208.gappssmtp.com; s=20221208; t=1688566650; x=1691158650; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:from:to:cc:subject:date:message-id :reply-to; bh=WDWjRluYFM3mzOmtAT5NxskA0RqCR9Q0xHAxLzDYI6Q=; b=1A0GhTw4X78yyD2diHuDymDRZR0tQNRmSpxLTIj7P8axsyHpQ76WpBlK7JScRTqEyi qKZbGWOykeW46T98BwEJLH7IUhH/2PRp++x/HCuE50ZHgdwfYkF5O/jP8oo2HCTLq3iz b94mo8vfnMuT2Xuna48eP7xM7D7fVhQj+B3YOtrgKhtLPwCQbfg6LITO61uqAyARvdmV nQ3oCq/Ymh1ELjOMes6j/DOkWslMYzhlnDVb/5jSrmDkTzaNkMx4plvYBIdhf3rp1SBG Yjl7RzSl95D8GYwyXeUS/Lgssb6pbH1Le4KEg1hZf5VlIqu08eWtq/q7ZbeVHuGvt7ZR wxcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688566650; x=1691158650; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=WDWjRluYFM3mzOmtAT5NxskA0RqCR9Q0xHAxLzDYI6Q=; b=NQEI99eX3bKflzByGSXssqmmYE1FlEXKF2b6m9nKY3E1qICH/dfkKqlVB2ZT27vjKe DVWIS75fwLsrQAGiyW7Jc9rOWZgDYTv7JDGOvLLfydh7f4R0MCLnVsoMFwPuwuH4ps1b Znr5fubAMNV0L+NAUY93bkJMmJKslJFE07fQKZU+D7k/ByPiyMeQvBx3u1YOOn0tpvjZ aC2TcqVjDPf4MrH6dEAVGvQzkDc8qXOlLfC0aa1sRL8BrVLrGmsJUYAHKhQNX2qol9uM qBbV98EUYAMvaBq7KAL3t12KHp+Z5hoPeBi9UnT0rKVMIz4sNErpgMApIeWzQDVA5/dO oBpQ== X-Gm-Message-State: AC+VfDyS3IonCyvemCij0R1BnVk8u4cgzHg2dsHxlxndbfXhFTUioAYe dMOdWEoFnukHHQpxRaAH5FJ+2Q== X-Received: by 2002:a05:6808:1312:b0:3a3:6329:4cb7 with SMTP id y18-20020a056808131200b003a363294cb7mr20423361oiv.9.1688566649962; Wed, 05 Jul 2023 07:17:29 -0700 (PDT) Received: from localhost ([135.180.227.0]) by smtp.gmail.com with ESMTPSA id fe21-20020a056a002f1500b0066ebaeb149dsm16562980pfb.88.2023.07.05.07.17.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jul 2023 07:17:29 -0700 (PDT) Date: Wed, 05 Jul 2023 07:17:29 -0700 (PDT) X-Google-Original-Date: Wed, 05 Jul 2023 07:17:25 PDT (-0700) Subject: Re: [PATCH v3 0/4] Obtain SMBIOS and ACPI entry from FFI In-Reply-To: <20230705114251.661-1-cuiyunhui@bytedance.com> CC: sunilvl@ventanamicro.com, Paul Walmsley , aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, rminnich@gmail.com, Mark Rutland , 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 From: Palmer Dabbelt To: cuiyunhui@bytedance.com, Conor Dooley , Ard Biesheuvel Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Wed, 05 Jul 2023 04:42:47 PDT (-0700), cuiyunhui@bytedance.com wrote: > Here's version 3 of patch series. > > V1: The FFI (FDT FIRMWARE INTERFACE) scheme has reached a > consensus with the Maintainers. > Please refer to: > https://patches.linaro.org/project/linux-acpi/patch/20230426034001.16-1-cuiyunhui@bytedance.com/ From looking at that thread it seems that the consensus is this is a bad idea? Sorry if I'm just missing something... > Changes v1->v2: > Adjusted the code structure, put the ACPI part under the RISC-V architecture, > and put the general part of obtaining SMBIOS entry through FFI > under driver/firmware/. > Please refer to: > https://lore.kernel.org/lkml/20230703-71f67eb66a037f5c0fb825c6@orel/T/ > > Changes v2->v3: > According to the suggestions of maintainers, the code has been modified as follows: > 1. Modified the commit log. > 2. Added description of "ffitbl" subnod in dt-bindings. > 3. Add stub function to the function > 4. arch/riscv/ and driver/firmware/ use CONFIG_FDT_FW_INTERFACE to control > 5. Modified the ffi_smbios_root_pointer() function logic and printing > etc. > > Yunhui Cui (4): > riscv: obtain ACPI RSDP from devicetree > firmware: introduce FFI for SMBIOS entry > riscv: obtain SMBIOS entry from FFI > dt-bindings: firmware: Document ffitbl binding > > .../devicetree/bindings/firmware/ffitbl.txt | 27 ++++++ > MAINTAINERS | 13 +++ > arch/riscv/include/asm/acpi.h | 9 ++ > arch/riscv/include/asm/ffi.h | 14 +++ > arch/riscv/kernel/Makefile | 1 + > arch/riscv/kernel/ffi.c | 40 ++++++++ > arch/riscv/kernel/setup.c | 2 + > drivers/firmware/Kconfig | 11 +++ > drivers/firmware/Makefile | 1 + > drivers/firmware/dmi_scan.c | 97 +++++++++++-------- > drivers/firmware/ffi.c | 42 ++++++++ > include/linux/ffi.h | 29 ++++++ > 12 files changed, 246 insertions(+), 40 deletions(-) > create mode 100644 Documentation/devicetree/bindings/firmware/ffitbl.txt > create mode 100644 arch/riscv/include/asm/ffi.h > create mode 100644 arch/riscv/kernel/ffi.c > create mode 100644 drivers/firmware/ffi.c > create mode 100644 include/linux/ffi.h