From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id DD78B7803D9 for ; Wed, 3 Jan 2024 13:59:04 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=jYwxk2z6a7cp5RVcgc6IegAK4DIREyIbAuPQV5VxDzQ=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1704290343; v=1; b=PsgME6yGKD50LPxIDW6zMoxNRQreNfb4X0PXwLmBeRp817bNLNORRBhFRUxpoPscZgi+Lsty LGmfE07vtdAMPtJW7KoC6JrLAjseFPYyJ6AN+2hmCFSQwuCsGMVRlyY3X9VJB+S617irO6Mu+yT pZliSGo0TMH6MpZYFqJD7sC8= X-Received: by 127.0.0.2 with SMTP id Jdv9YY7687511xE9wglK5NsR; Wed, 03 Jan 2024 05:59:03 -0800 X-Received: from mail-io1-f44.google.com (mail-io1-f44.google.com [209.85.166.44]) by mx.groups.io with SMTP id smtpd.web10.17852.1704290342693054864 for ; Wed, 03 Jan 2024 05:59:02 -0800 X-Received: by mail-io1-f44.google.com with SMTP id ca18e2360f4ac-7bafda3999cso325151039f.0 for ; Wed, 03 Jan 2024 05:59:02 -0800 (PST) X-Gm-Message-State: q8AuBh0Sbl0IRwPhoKNiNHZbx7686176AA= X-Google-Smtp-Source: AGHT+IGrRhg3KJ3p5BWfvYOzIZOGmM18f1p7bYhU7obhyyuuZ5r94pdT9YgPvbz1mO67kozlpmwB6g== X-Received: by 2002:a5d:954f:0:b0:7bb:5ea7:86b6 with SMTP id a15-20020a5d954f000000b007bb5ea786b6mr8015381ios.23.1704290341013; Wed, 03 Jan 2024 05:59:01 -0800 (PST) X-Received: from sunil-laptop.dc1.ventanamicro.com ([106.51.188.200]) by smtp.gmail.com with ESMTPSA id w6-20020a056638378600b0046dcaba1adesm1213393jal.62.2024.01.03.05.58.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 05:59:00 -0800 (PST) From: "Sunil V L" To: devel@edk2.groups.io Cc: Sunil V L , Andrei Warkentin , Ard Biesheuvel , Gerd Hoffmann , Jiewen Yao , Laszlo Ersek , Rahul Kumar , Ray Ni , Michael D Kinney , Liming Gao , Zhiguang Liu Subject: [edk2-devel] [PATCH 0/4] RISC-V: Add support for Sstc extension Date: Wed, 3 Jan 2024 19:28:45 +0530 Message-Id: <20240103135849.127251-1-sunilvl@ventanamicro.com> MIME-Version: 1.0 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 Reply-To: devel@edk2.groups.io,sunilvl@ventanamicro.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=PsgME6yG; dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io This series adds the support for RISV-V Sstc extension in EDK2 timer implementation. Sstc extension allows S-mode software to program the timer directly without using SBI calls. Currently, PCD variable is used to detect whether feature is enabled. By default the feature is enabled and platforms need to set the PCD to disable the feature if Sstc is not supported. For RiscVVirtQemu, it is disabled by default (until extension discovery feature is enabled). Cc: Andrei Warkentin Cc: Ard Biesheuvel Cc: Gerd Hoffmann Cc: Jiewen Yao Cc: Laszlo Ersek Cc: Rahul Kumar Cc: Ray Ni Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Sunil V L (4): MdePkg.dec: RISC-V: Define override bit for Sstc extension MdePkg/BaseLib: RISC-V: Add function to update stimecmp register UefiCpuPkg/CpuTimerDxeRiscV64: Add support for Sstc OvmfPkg/RiscVVirt: Override Sstc extension MdePkg/MdePkg.dec | 2 ++ OvmfPkg/RiscVVirt/RiscVVirt.dsc.inc | 2 +- .../CpuTimerDxeRiscV64/CpuTimerDxeRiscV64.inf | 1 + MdePkg/Include/Library/BaseLib.h | 5 ++++ .../Include/Register/RiscV64/RiscVEncoding.h | 3 ++ UefiCpuPkg/CpuTimerDxeRiscV64/Timer.h | 2 ++ UefiCpuPkg/CpuTimerDxeRiscV64/Timer.c | 30 +++++++++++++++++-- MdePkg/Library/BaseLib/RiscV64/ReadTimer.S | 7 +++++ 8 files changed, 49 insertions(+), 3 deletions(-) -- 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#113092): https://edk2.groups.io/g/devel/message/113092 Mute This Topic: https://groups.io/mt/103501836/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-