Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

c908x: Add fastmem setting support #3

Open
wants to merge 2 commits into
base: linux-6.6
Choose a base branch
from

Conversation

cp0613
Copy link
Collaborator

@cp0613 cp0613 commented Dec 23, 2024

Xuantie C908X supports fast memory configuration vector and scalar
memory access instructions to access external SRAM.
Configure the starting address and size through CSR_MFASTMBA. For
specific settings, please refer to the datasheet.
Dynamic configuration is achieved by parsing dts through opensbi.
The dts reference configuration is as follows:

/ {
	compatible = "xuantie,c908x";
	model = "xuantie,c908x";

	fastmem {
		mfastmba = <0x12 0x34567890>;
	};
};

cyyself and others added 2 commits December 23, 2024 14:21
As Guo Ren said from the kernel mailing list [1], future T-Head CPUs,
including the newer versions of T-Head C908, will feature standard
Sscofpmf extension. For these CPUs, T-Head's implementation of PMU
Overflow Interrupts may not needed anymore. In this case, we shouldn't
apply T-Head PMU for all T-Head CPUs. Thus, this patch separated T-Head PMU
errata.

[1] https://lore.kernel.org/linux-riscv/[email protected]/

Signed-off-by: Yangyu Chen <[email protected]>
Reviewed-by: Inochi Amaoto <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Xuantie C908X supports fast memory configuration vector and scalar
memory access instructions to access external SRAM.
Configure the starting address and size through CSR_MFASTMBA. For
specific settings, please refer to the datasheet.
Dynamic configuration is achieved by parsing dts through opensbi.
The dts reference configuration is as follows:
```
/ {
	compatible = "xuantie,c908x";
	model = "xuantie,c908x";

	fastmem {
		mfastmba = <0x12 0x34567890>;
	};
};
```

Signed-off-by: hanyu.cp <[email protected]>
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