Re: [edk2-devel] [PATCH 3/4] UefiCpuPkg/CpuTimerDxeRiscV64: Add support for Sstc

2024-01-05 Thread Laszlo Ersek
On 1/4/24 16:46, Sunil V L wrote: > On Thu, Jan 04, 2024 at 03:38:17PM +0100, Laszlo Ersek wrote: >> On 1/3/24 14:58, Sunil V L wrote: >>> Sstc extension allows to program the timer and receive the interrupt >>> without using an SBI call. This reduces the latency to generate the timer >>> interrupt

Re: [edk2-devel] [PATCH 3/4] UefiCpuPkg/CpuTimerDxeRiscV64: Add support for Sstc

2024-01-05 Thread Laszlo Ersek
On 1/4/24 16:01, Sunil V L wrote: > Hi Laszlo, > > Thank you very much for the review!. > > On Thu, Jan 04, 2024 at 03:38:17PM +0100, Laszlo Ersek wrote: >> On 1/3/24 14:58, Sunil V L wrote: >>> Sstc extension allows to program the timer and receive the interrupt >>> without using an SBI call. Th

Re: [edk2-devel] [PATCH 3/4] UefiCpuPkg/CpuTimerDxeRiscV64: Add support for Sstc

2024-01-04 Thread Sunil V L
On Thu, Jan 04, 2024 at 03:38:17PM +0100, Laszlo Ersek wrote: > On 1/3/24 14:58, Sunil V L wrote: > > Sstc extension allows to program the timer and receive the interrupt > > without using an SBI call. This reduces the latency to generate the timer > > interrupt. So, detect whether Sstc extension i

Re: [edk2-devel] [PATCH 3/4] UefiCpuPkg/CpuTimerDxeRiscV64: Add support for Sstc

2024-01-04 Thread Sunil V L
Hi Laszlo, Thank you very much for the review!. On Thu, Jan 04, 2024 at 03:38:17PM +0100, Laszlo Ersek wrote: > On 1/3/24 14:58, Sunil V L wrote: > > Sstc extension allows to program the timer and receive the interrupt > > without using an SBI call. This reduces the latency to generate the timer

Re: [edk2-devel] [PATCH 3/4] UefiCpuPkg/CpuTimerDxeRiscV64: Add support for Sstc

2024-01-04 Thread Laszlo Ersek
On 1/3/24 14:58, Sunil V L wrote: > Sstc extension allows to program the timer and receive the interrupt > without using an SBI call. This reduces the latency to generate the timer > interrupt. So, detect whether Sstc extension is supported and use the > stimecmp register directly to program the ti

[edk2-devel] [PATCH 3/4] UefiCpuPkg/CpuTimerDxeRiscV64: Add support for Sstc

2024-01-03 Thread Sunil V L
Sstc extension allows to program the timer and receive the interrupt without using an SBI call. This reduces the latency to generate the timer interrupt. So, detect whether Sstc extension is supported and use the stimecmp register directly to program the timer interrupt. Cc: Gerd Hoffmann Cc: Rah