Skip to content

Commit 97b5576

Browse files
Dongxu Sunwilldeacon
authored andcommitted
arm64/sme: Fix some comments of ARM SME
When TIF_SME is clear, fpsimd_restore_current_state will disable SME trap during ret_to_user, then SME access trap is impossible in userspace, not SVE. Besides, fix typo: alocated->allocated. Signed-off-by: Dongxu Sun <[email protected]> Reviewed-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 19e99e7 commit 97b5576

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm64/kernel/fpsimd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ void task_set_vl_onexec(struct task_struct *task, enum vec_type type,
299299
/*
300300
* TIF_SME controls whether a task can use SME without trapping while
301301
* in userspace, when TIF_SME is set then we must have storage
302-
* alocated in sve_state and sme_state to store the contents of both ZA
302+
* allocated in sve_state and sme_state to store the contents of both ZA
303303
* and the SVE registers for both streaming and non-streaming modes.
304304
*
305305
* If both SVCR.ZA and SVCR.SM are disabled then at any point we
@@ -1477,7 +1477,7 @@ void do_sve_acc(unsigned long esr, struct pt_regs *regs)
14771477
*
14781478
* TIF_SME should be clear on entry: otherwise, fpsimd_restore_current_state()
14791479
* would have disabled the SME access trap for userspace during
1480-
* ret_to_user, making an SVE access trap impossible in that case.
1480+
* ret_to_user, making an SME access trap impossible in that case.
14811481
*/
14821482
void do_sme_acc(unsigned long esr, struct pt_regs *regs)
14831483
{

0 commit comments

Comments
 (0)