From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9A382C47DD9 for ; Fri, 22 Mar 2024 07:15:23 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rnZ6n-0001YZ-2x; Fri, 22 Mar 2024 03:14:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rnZ6k-0001Xq-Pe for qemu-devel@nongnu.org; Fri, 22 Mar 2024 03:14:30 -0400 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rnZ6i-00066G-7M for qemu-devel@nongnu.org; Fri, 22 Mar 2024 03:14:30 -0400 Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-563c595f968so2293667a12.0 for ; Fri, 22 Mar 2024 00:14:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711091666; x=1711696466; darn=nongnu.org; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=2SMFmlKvi3XK+b9AwqD4mM21rYhCikFTvlns1pr8FQ8=; b=RjgO1tEBk4iPl+d+YUSOWqD+85hlK4VYH8DS8TutXkLuNIrkUqzeYYrXdBEcXC2QmG NHrW33mFabWm5J/gn2UcpaQ++FQvmK/PZDY0iwPlcjNpc3Ca3J6GHnbYgq2DF/xM5+lV +D+unIPPEb4OUDbba9jUYkr9owmdD7PysNPS2JhAmYTMEqdgMAI74y+SuH4vw0S0MyKK FQl5+4hGHR41OZ9i5Ph/i3UTNdphhL4g88nX9E9LpV1j4KohmgKW8JYHoh4gfXsyHVrX Z4I+y4HS3IvLv8WJZl/JawRA0/Ggg7K23RkLknMjAg9KWfg3sdlbcDO0gHLI6C1mD0qx ZGvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711091666; x=1711696466; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2SMFmlKvi3XK+b9AwqD4mM21rYhCikFTvlns1pr8FQ8=; b=ZqDsu90b29VFMtpUMGzvx9abdFuNRDi4rivduRYrY/G2D80ZpAPI89dPFgEpFWp3aM X0PpYRwbXcLhMsdSRS7Y68d2tD/jQy4jtuxErCYLT2AITTWEwDGd2H4iY1W4FVos/IYl lOSI7rjTNsLCipP6Ok4WxVfd+kiF0A9hDFbuYF5PcaauFFRCZ2iDnlxCAm+nDtQj+xCN wIZuNRxfz6OvCakYG44PeRxiTvd5yNmH8sNx6lRAye6XHObYz6Hn+TCNNtrKFUFBR0rE HzB0EBIM70d65Q7hBdSBWE/y0Fcp0sxSnsjTW+iPw43Aiu7XfaemYkfaIftK4rraO0/6 MVHA== X-Forwarded-Encrypted: i=1; AJvYcCXpy9HIOcEtAh0QT2Mv7zCfoNH0oDxbCWnWy7jczIos11xXxwoznclzFiKg+MeBqftCxCCoFYMe+PTazZaBJSIWsTs85DU= X-Gm-Message-State: AOJu0Ywm/oL3EWUfglR7roSrsNrz8xhbKKoo8P+V+LD5Q+jUirNQJW9m a9ATVb5N5hrjk0FxNoPK0rsjsbOdVz9vFXpI5de4pTkDPnblc4Avi2t1ZVVuDT8= X-Google-Smtp-Source: AGHT+IFgT1c3Ls4XRxrWt1YwlmPa5s+ga1yFCAE2BBDrP31IhbtrImytLfsrkuv0Ach5QYBdF0OX/w== X-Received: by 2002:a17:906:34c5:b0:a47:153b:45cb with SMTP id h5-20020a17090634c500b00a47153b45cbmr835977ejb.30.1711091665883; Fri, 22 Mar 2024 00:14:25 -0700 (PDT) Received: from [192.168.200.106] (83.11.22.169.ipv4.supernova.orange.pl. [83.11.22.169]) by smtp.gmail.com with ESMTPSA id ch11-20020a170906c2cb00b00a47090964casm690605ejb.184.2024.03.22.00.14.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 Mar 2024 00:14:25 -0700 (PDT) Message-ID: Date: Fri, 22 Mar 2024 08:14:22 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC v2 2/2] hw/riscv: Add server platform reference machine Content-Language: pl-PL, en-GB, en-HK To: Alistair Francis , Fei Wu Cc: pbonzini@redhat.com, palmer@dabbelt.com, alistair.francis@wdc.com, bin.meng@windriver.com, liwei1518@gmail.com, dbarboza@ventanamicro.com, zhiwei_liu@linux.alibaba.com, qemu-devel@nongnu.org, qemu-riscv@nongnu.org, andrei.warkentin@intel.com, shaolin.xie@alibaba-inc.com, ved@rivosinc.com, sunilvl@ventanamicro.com, haibo1.xu@intel.com, evan.chai@intel.com, yin.wang@intel.com, tech-server-platform@lists.riscv.org, tech-server-soc@lists.riscv.org, atishp@rivosinc.com, ajones@ventanamicro.com, conor@kernel.org, heinrich.schuchardt@canonical.com References: <20240312135222.3187945-1-fei2.wu@intel.com> <20240312135222.3187945-3-fei2.wu@intel.com> From: Marcin Juszkiewicz Organization: Linaro In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::52c; envelope-from=marcin.juszkiewicz@linaro.org; helo=mail-ed1-x52c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org W dniu 22.03.2024 o 05:55, Alistair Francis pisze: > I see no mention of device trees in the spec, but I do see ACPI. Do we > really expect a server platform to use DTs? This platform "kind of" follows sbsa-ref where we have very minimalistic device tree sharing information qemu->firmware. libfdt is small, format is known and describes hardware. Firmware is free to make use of it in any way it wants. On sbsa-ref we parse DT in TF-A (base firmware) and provide hardware information to higher level (edk2) via SMC mechanism. Then EDK2 creates ACPI tables and provide them to the Operating System. In physical system some parts of information provided in DT would be read by firmware from onboard Embedded Controller chip. > These functions should be shared with the virt machine if we really do > want DTs, but I'm not convinced we do