From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 2C573740038 for ; Thu, 8 Aug 2024 14:21:15 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=x/Mh/MqVOKC/pyRi3EcauTGtQRhnjn11AGuPnD9v4zE=; c=relaxed/simple; d=groups.io; h=From:Subject:Date:Message-Id:MIME-Version:To:Cc:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Transfer-Encoding; s=20240206; t=1723126874; v=1; b=rf3K3hRt5dHrTRKSZDxP37gWS40nNS0qDJ3fb57QbXUsjIhrbaql/HZ+v5Gzfb44SU9TUuux wZMP0cijsVEap7DsroHAOeX5ZWdtQeCNh+C+t52MMkVmviG8BGlWYNZ/1rfdu7hW0LPEUhwunth M7B+dU572trPQcCoSp/3bmPdQRbX/1Edj6Uhy0V34yjLmwC8p99nJ1io/Jh/+cspitESZaSJeSa cvjAIGb8oypYkw+JopiXIi9rJpo/5FDoYiM5mf/1A1XRug3QEghKoEh1CHSuDXGXgR3mA9cdas5 OP6cosce56MTDXX0tLpo57EOMef03tMWlPqZ7QqAXNn9A== X-Received: by 127.0.0.2 with SMTP id KRbNYY7687511xhrKesbLvVq; Thu, 08 Aug 2024 07:21:13 -0700 X-Received: from muminek.juszkiewicz.com.pl (muminek.juszkiewicz.com.pl [213.251.184.221]) by mx.groups.io with SMTP id smtpd.web11.61229.1723126872820067305 for ; Thu, 08 Aug 2024 07:21:13 -0700 X-Received: from localhost (localhost [127.0.0.1]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTP id 4123A2619A0; Thu, 8 Aug 2024 16:21:09 +0200 (CEST) X-Virus-Scanned: Debian amavis at juszkiewicz.com.pl X-Received: from muminek.juszkiewicz.com.pl ([127.0.0.1]) by localhost (muminek.juszkiewicz.com.pl [127.0.0.1]) (amavis, port 10024) with ESMTP id WRxu9DaSalH6; Thu, 8 Aug 2024 16:21:08 +0200 (CEST) X-Received: from applejack.lan (83.8.56.232.ipv4.supernova.orange.pl [83.8.56.232]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTPSA id 7BCCD26018C; Thu, 8 Aug 2024 16:21:07 +0200 (CEST) From: "Marcin Juszkiewicz" Subject: [edk2-devel] [PATCH edk2-platforms 0/3] SbsaQemu: Move from ArmSmcLib to ArmMonitorLib Date: Thu, 08 Aug 2024 16:20:56 +0200 Message-Id: <20240808-move-from-armsmclib-to-armmonitorlib-v1-0-de5f744a272c@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAEjUtGYC/x3NywrCQAyF4VcpWRsYh970VcRFTdMaMBPJlCKUv rvTLr9/cc4GmV04w73awHmVLJYKrpcK6D2kmVHGYogh1qEPPaqtjJOb4uCalT7ywsUOqCVZzI/ QEbcU66alWwNl6us8ye+8eTz3/Q9n1V8jdgAAAA== To: devel@edk2.groups.io Cc: Leif Lindholm , Ard Biesheuvel , Graeme Gregory , Marcin Juszkiewicz Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Thu, 08 Aug 2024 07:21:13 -0700 Resent-From: marcin.juszkiewicz@linaro.org Reply-To: devel@edk2.groups.io,marcin.juszkiewicz@linaro.org List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: i734xScuPtIS3VfEUvu9EVmax7686176AA= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=rf3K3hRt; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=linaro.org (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io During last weeks Ard updated ArmMonitorLib to current SMCCC specification. This allows to use 18 registers as both arguments and return values. We already have one SMC call with 5 return values (GetCpuTopology) so let move all calls to use of ArmMonitorLib to simplify code. First patch also moves all SMC calls we use into HardwareInfoLib to have all hardware related queries in one place. Signed-off-by: Marcin Juszkiewicz --- Marcin Juszkiewicz (3): SbsaQemu: move SMC calls to HardwareInfoLib SbsaQemu: move from ArmSmcLib to ArmMonitorLib SbsaQemu: drop not needed packages .../SbsaQemuPlatformDxe/SbsaQemuPlatformDxe.inf | 4 +- .../SbsaQemuHardwareInfoLib.inf | 8 +- .../Qemu/SbsaQemu/Include/Library/HardwareInfoLib.h | 31 +++++ .../SbsaQemuPlatformDxe/SbsaQemuPlatformDxe.c | 57 +++------ .../SbsaQemuHardwareInfoLib.c | 132 ++++++++++++++--= ---- 5 files changed, 145 insertions(+), 87 deletions(-) --- base-commit: a8344967ba17584c13620a639fb24990be020878 change-id: 20240808-move-from-armsmclib-to-armmonitorlib-7ce6c2456c95 Best regards, --=20 Marcin Juszkiewicz -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#120295): https://edk2.groups.io/g/devel/message/120295 Mute This Topic: https://groups.io/mt/107790445/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-