Skip to content

Commit 73c4b5d

Browse files
committed
s390: Add Dat-Enhancement facility 1 to architecture level set
Add the Dat-Enhancement facility 1 to the list of facilities which are required to start the kernel. The facility provides the CSPG and IDTE instructions. In particular the CSPG instruction can be used to replace a valid page table entry with a different page table entry, which also differs in the page frame real address. Without the CSPG instruction it is possible to use the CSP instruction to change valid page table entries, however it only allows to change the lower or higher 32 bits of such entries, which means it cannot be used to change the page frame real address of valid page table entries. Given that there is code around (e.g. HugeTLB vmemmap optimization) which requires to change valid page table entries of the kernel mapping, without the detour over an invalid page table entry, make the CSPG instruction unconditionally available. The Dat-Enhancement facility 1 is available since z990, which is older than the currently supported minimum architecture (z10). Therefore adding this to the architecture level set shouldn't cause any problems. Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com> Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
1 parent 211ddde commit 73c4b5d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

arch/s390/tools/gen_facilities.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ static struct facility_def facility_defs[] = {
2929
.bits = (int[]){
3030
0, /* N3 instructions */
3131
1, /* z/Arch mode installed */
32+
3, /* dat-enhancement 1 */
3233
18, /* long displacement facility */
3334
21, /* extended-immediate facility */
3435
25, /* store clock fast */

0 commit comments

Comments
 (0)