Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp619432rwr; Thu, 27 Apr 2023 06:11:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4bSMRhqpB9rrjfnsVYZHqU5y7aulV/OOrBs4WVW5sYGP7IJxCh8/+R1GuzAv1XWsPIdkJi X-Received: by 2002:a05:6a20:7f99:b0:f6:d60d:dbc8 with SMTP id d25-20020a056a207f9900b000f6d60ddbc8mr1506962pzj.2.1682601066415; Thu, 27 Apr 2023 06:11:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682601066; cv=none; d=google.com; s=arc-20160816; b=rJ0B5XEI7OdxoTR9Pe7ZH7vFYwByb+FhrWSyrNfd/iup4bmX1qPLOUim0AdSUinBfP jj1dNWSPN0CyZOjbuDbyev7tql8C3K/whaYOZRuU2SU6mdDFbDAPmjNG9HJ+MKw7HUP1 RbZJ9ZXcuZKWCD8YP904elhLtVZWErbUYiDGqT+oRYBXcGQCXsGFUKOY8BauRIPofPSw nVFRZg6sdKXeJSHtrg4fy6AiLL13NKPc1yEa0y0WQCX2FUmWH7TkDdB/L0IJv2pF0dLB 9zwzFThQHnVBjQRiAu/XhRoinmcT0gupNgbor1yeKfOWu4GAIX9a0/KVzqYkGr2T/qpU rARw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=8nCNeq6AXVBJ5EROWgVt9eA0zo+3/yxMzOW0CgJVVkg=; b=xCbuvO3OisLeyPO5ebzD4n5u8I/3NQ0aZ/UK2Gdbcd0Qmog+D5ofFYKhM6WxQnTrok hk8l93P0mQlPIFbXyBSDTdHtrj1WgJW97t78lLHkV2NZBDdz4iUCgaEdCioAlN3sYKvR d7i0W+bSd4zstV8VIaI3MBkDFdZL4mriTWIqqw1B5vNAOago+CYIcoDWcyNXfmKaduqI xVwkqOXd/MT9GLpwiuSI2yq6b/3QLbziBxiPxn7MoQ3HrMN4Y5TCt2xzbcGasAC14Pfw x1gWHIjoBJX23NVELD3hTisuBMbad3XlECmym47Hd/jZ4pShuHsQlJagTDjODiDpkuot vNgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W9Jr6Lin; 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 r23-20020a63e517000000b004fbd7827010si18604335pgh.263.2023.04.27.06.10.52; Thu, 27 Apr 2023 06:11:06 -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=W9Jr6Lin; 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 S243731AbjD0Mwm (ORCPT + 99 others); Thu, 27 Apr 2023 08:52:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242895AbjD0Mwl (ORCPT ); Thu, 27 Apr 2023 08:52:41 -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 232F519F; Thu, 27 Apr 2023 05:52:40 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B880863D3F; Thu, 27 Apr 2023 12:52:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2124DC433A0; Thu, 27 Apr 2023 12:52:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682599959; bh=8nCNeq6AXVBJ5EROWgVt9eA0zo+3/yxMzOW0CgJVVkg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=W9Jr6LinDCp6loRDPYjnwFahHKlZBM0EppmUJaEtSplytrgAKoTIssQ8IiJaZIhJR DO+uJZh9Oi8Jbf6tTg0krQWH+hWRFCuH39VCwzIh5W57KXwglXMW4qLFqYz5QEi0AZ CeENXRSE7b4Kmi6t5jeLiS6YlxSF8cFyMnklZZouaYeS1I0IEErQgyTn9/woNtlfuf hxSpEYDCGom5bps2STBCdfJGx+02xE+L74FSFDW/bfi01aMGyh3AGDJDJxp8xEIdIn HyscRKkNvl6h8pgBCg0VKbSl40jPtxR5RlOrxs/zrlPSK/wNX7Qc+uWqq0Zj855WpZ WPUJ3fgr/2oZA== Received: by mail-lj1-f182.google.com with SMTP id 38308e7fff4ca-2a8c30ac7e3so78988101fa.1; Thu, 27 Apr 2023 05:52:39 -0700 (PDT) X-Gm-Message-State: AC+VfDwpESBzebk+b5Mru0vYZR7APrlbeDsVVvTVcaAPou+8mkjcGHC6 MoYljJ3AKOqH7igEugY57kXE1h0jSbFbWsaeVLE= X-Received: by 2002:a2e:9c81:0:b0:2a7:9cd3:3cc4 with SMTP id x1-20020a2e9c81000000b002a79cd33cc4mr517784lji.15.1682599957062; Thu, 27 Apr 2023 05:52:37 -0700 (PDT) MIME-Version: 1.0 References: <20230426034001.16-1-cuiyunhui@bytedance.com> In-Reply-To: From: Ard Biesheuvel Date: Thu, 27 Apr 2023 13:52:25 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [External] Re: [PATCH] firmware: added a firmware information passing method FFI To: Mark Rutland Cc: ron minnich , =?UTF-8?B?6L+Q6L6J5bSU?= , 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, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-4.6 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 On Thu, 27 Apr 2023 at 12:24, Mark Rutland wrote: > > On Wed, Apr 26, 2023 at 09:04:56PM -0700, ron minnich wrote: > > The device tree is self describing data. Adding new information is easy. If you > > add new information to a node, and older software does not know about it, it is > > no big deal. > > It's true that it's easy to add fields to an extensible format, but that wasn't > my point of contention. The *semantic* (e.g. all of the relevant DT bindings) > and *consumption* of that data is the important part, and that's what I was > referring to, though I appreciate my wording did not make that clear. > > > So I can't agree with this comment: "We'd have to create entirely new ways to > > pass that information, which is not > > very desirable." > > > > The whole point of the dt is that you can always add new ways to pass > > information, by design. > > > > Adding memory attributes would be quite easy. > > I don't disagree that is physically possible, and in isolation adding > properties to a DT is trivial, but the approach proposed is not "easy" unless > you ignore the cost of specifying analogues for all the EFI portions that you > plan to omit, ensuring that those stay functionally equivalent to their EFI > analogues as EFI and ACPI evolve over time, developing and maintaining the code > which must consume that, avoiding the issues that will arise due to novel > interactions (as e.g. DT and ACPI are mutually exclusive today, by design), > etc. > Indeed. Currently, Linux/arm64 supports two boot methods - direct kernel boot - EFI boot and two types of hardware descriptions - device tree (DT) - ACPI and the only combination we do not support is ACPI without EFI, as ACPI on arm64 depends on the EFI memory map. What this patch seems to be proposing is a combination of all of these, i.e., doing a pseudo-EFI direct kernel boot where the EFI dependencies of ACPI are being fulfilled by ad-hoc descriptions passed in via DT. I am concerned that this will result in a maintenance burden for Linux with very little gain, so I feel we should not go down this road.