Skip to content

Conversation

@cp0613
Copy link
Collaborator

@cp0613 cp0613 commented Aug 14, 2025

No description provided.

guoren83 and others added 3 commits July 25, 2025 19:16
Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
The Sscofpmf spec does not define overflow interrupts for cycles & instructions [1].
But this is indispensable in performance profiling.

Xuantie added registers mhpmevent0 and mhpmevent2, with addresses 0x7E0 and 0x7E1
respectively, which are used to configure cycles & instructions.

At the same time, mxstatus[8] is newly defined as ofint to control whether the
cycles and instructions events of HPCP can generate interrupt 13 (lcofip). When
it is 1, an interrupt can be generated, and when it is 0, an interrupt cannot be
generated.

This patch is used to support the above functions.

[1] riscvarchive/riscv-count-overflow#5

Signed-off-by: Chen Pei <cp0613@linux.alibaba.com>
@github-actions
Copy link

We have mailing list based patch review so it would be great if you can send these patchs to OpenSBI mailing list.

You need to join OpenSBI mailing list using following link
http://lists.infradead.org/mailman/listinfo/opensbi

Make sure you use "git send-email" to send the patches.

Thanks for your contribution to OpenSBI project.

@github-actions github-actions bot closed this Aug 14, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Aug 14, 2025
@XUANTIE-RV XUANTIE-RV unlocked this conversation Aug 14, 2025
@cp0613 cp0613 reopened this Aug 14, 2025
cp0613 added 2 commits August 14, 2025 17:23
This is an example implementation of power management using C907 PMC, which mainly implements sbi_hsm_device, sbi_system_reset_device and sbi_system_suspend_device defined by opensbi.

DTS example:
```
{
	model = "xuantie,dummy";
	compatible = "xuantie,dummy";

	pmc: xuantie_pmc@26900000 {
		compatible = "xuantie,pmc";
		status = "okay";
		reg = <0x00000000 0x26900000 0x00000000 0x00001000>;
	};
}
```

Signed-off-by: Chen Pei <cp0613@linux.alibaba.com>
Signed-off-by: Chen Pei <cp0613@linux.alibaba.com>
@cp0613 cp0613 merged commit 6234d69 into XUANTIE-RV:opensbi-v1.7-dev Aug 14, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants