Re: [PATCH v4] RISC-V: Provide the frequency of time CSR via hwprobe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Punit Agrawal <punit.agrawal@xxxxxxxxxxxxx> writes:

> Hi,
>
> Yunhui Cui <cuiyunhui@xxxxxxxxxxxxx> writes:
>
>> From: Palmer Dabbelt <palmer@xxxxxxxxxxxx>
>>
>> The RISC-V architecture makes a real time counter CSR (via RDTIME
>> instruction) available for applications in U-mode but there is no
>> architected mechanism for an application to discover the frequency
>> the counter is running at. Some applications (e.g., DPDK) use the
>> time counter for basic performance analysis as well as fine grained
>> time-keeping.
>>
>> Add support to the hwprobe system call to export the time CSR
>> frequency to code running in U-mode.
>>
>> Signed-off-by: Palmer Dabbelt <palmer@xxxxxxxxxxxx>
>> Signed-off-by: Yunhui Cui <cuiyunhui@xxxxxxxxxxxxx>
>> Reviewed-by: Evan Green <evan@xxxxxxxxxxxx>
>> Reviewed-by: Anup Patel <anup@xxxxxxxxxxxxxx>
>> Acked-by: Punit Agrawal <punit.agrawal@xxxxxxxxxxxxx>
>> ---
>>  Documentation/arch/riscv/hwprobe.rst  | 2 ++
>>  arch/riscv/include/asm/hwprobe.h      | 2 +-
>>  arch/riscv/include/uapi/asm/hwprobe.h | 1 +
>>  arch/riscv/kernel/sys_hwprobe.c       | 5 +++++
>>  4 files changed, 9 insertions(+), 1 deletion(-)
>
> The commit looks ready to be merged. Will this picked up for the 6.11
> release?
>
> Once this is merged, we can send out the DPDK change relying on the
> newly added key.

I see the first part of RISC-V patches got merged for 6.11. Any chance
for this patch to still make it for this cycle?




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux