* [PATCH 1/1] x86/entry: remove unused argument %rsi passed to exc_nmi()
@ 2023-09-26 6:13 xin
2023-09-27 8:06 ` Ingo Molnar
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: xin @ 2023-09-26 6:13 UTC (permalink / raw)
To: linux-kernel; +Cc: luto, tglx, mingo, bp, dave.hansen, x86, hpa
From: "Xin Li (Intel)" <xin@zytor.com>
exc_nmi() only takes one argument of type struct pt_regs *, but
asm_exc_nmi() calls it with 2 arguments. The second one passed
in %rsi seems a leftover, so simply remove it.
BTW, fix 2 slips in the comments.
Signed-off-by: Xin Li (Intel) <xin@zytor.com>
Acked-by: H. Peter Anvin (Intel) <hpa@zytor.com>
---
arch/x86/entry/entry_64.S | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/arch/x86/entry/entry_64.S b/arch/x86/entry/entry_64.S
index f71664dea1a3..9b4b512f2a75 100644
--- a/arch/x86/entry/entry_64.S
+++ b/arch/x86/entry/entry_64.S
@@ -1163,8 +1163,8 @@ SYM_CODE_START(asm_exc_nmi)
* anyway.
*
* To handle this case we do the following:
- * Check the a special location on the stack that contains
- * a variable that is set when NMIs are executing.
+ * Check a special location on the stack that contains a
+ * variable that is set when NMIs are executing.
* The interrupted task's stack is also checked to see if it
* is an NMI stack.
* If the variable is not set and the stack is not the NMI
@@ -1237,7 +1237,6 @@ SYM_CODE_START(asm_exc_nmi)
*/
movq %rsp, %rdi
- movq $-1, %rsi
call exc_nmi
/*
@@ -1295,8 +1294,8 @@ SYM_CODE_START(asm_exc_nmi)
* end_repeat_nmi, then we are a nested NMI. We must not
* modify the "iret" frame because it's being written by
* the outer NMI. That's okay; the outer NMI handler is
- * about to about to call exc_nmi() anyway, so we can just
- * resume the outer NMI.
+ * about to call exc_nmi() anyway, so we can just resume
+ * the outer NMI.
*/
movq $repeat_nmi, %rdx
@@ -1451,7 +1450,6 @@ end_repeat_nmi:
UNWIND_HINT_REGS
movq %rsp, %rdi
- movq $-1, %rsi
call exc_nmi
/* Always restore stashed SPEC_CTRL value (see paranoid_entry) */
--
2.40.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 1/1] x86/entry: remove unused argument %rsi passed to exc_nmi()
2023-09-26 6:13 [PATCH 1/1] x86/entry: remove unused argument %rsi passed to exc_nmi() xin
@ 2023-09-27 8:06 ` Ingo Molnar
2023-09-27 8:12 ` Xin Li
2023-09-27 19:15 ` H. Peter Anvin
2023-09-27 8:11 ` [tip: x86/asm] x86/entry: Remove " tip-bot2 for Xin Li (Intel)
2023-09-27 8:11 ` [tip: x86/asm] x86/entry: Fix typos in comments tip-bot2 for Xin Li (Intel)
2 siblings, 2 replies; 6+ messages in thread
From: Ingo Molnar @ 2023-09-27 8:06 UTC (permalink / raw)
To: xin; +Cc: linux-kernel, luto, tglx, mingo, bp, dave.hansen, x86, hpa
* xin@zytor.com <xin@zytor.com> wrote:
> From: "Xin Li (Intel)" <xin@zytor.com>
>
> exc_nmi() only takes one argument of type struct pt_regs *, but
> asm_exc_nmi() calls it with 2 arguments. The second one passed
> in %rsi seems a leftover, so simply remove it.
>
> BTW, fix 2 slips in the comments.
>
> Signed-off-by: Xin Li (Intel) <xin@zytor.com>
> Acked-by: H. Peter Anvin (Intel) <hpa@zytor.com>
> ---
> arch/x86/entry/entry_64.S | 10 ++++------
> 1 file changed, 4 insertions(+), 6 deletions(-)
I've split this into two patches, because the comment fixes
are entirely unrelated to this patch.
[ I've propagated the SOBs and Acked-by's to the two patches,
as I presume is fine by everyone involved? ]
Thanks,
Ingo
^ permalink raw reply [flat|nested] 6+ messages in thread
* [tip: x86/asm] x86/entry: Remove unused argument %rsi passed to exc_nmi()
2023-09-26 6:13 [PATCH 1/1] x86/entry: remove unused argument %rsi passed to exc_nmi() xin
2023-09-27 8:06 ` Ingo Molnar
@ 2023-09-27 8:11 ` tip-bot2 for Xin Li (Intel)
2023-09-27 8:11 ` [tip: x86/asm] x86/entry: Fix typos in comments tip-bot2 for Xin Li (Intel)
2 siblings, 0 replies; 6+ messages in thread
From: tip-bot2 for Xin Li (Intel) @ 2023-09-27 8:11 UTC (permalink / raw)
To: linux-tip-commits
Cc: Xin Li (Intel), Ingo Molnar, H. Peter Anvin (Intel), x86,
linux-kernel
The following commit has been merged into the x86/asm branch of tip:
Commit-ID: da4aff622a7ae424a0292d7288744692fca34319
Gitweb: https://git.kernel.org/tip/da4aff622a7ae424a0292d7288744692fca34319
Author: Xin Li (Intel) <xin@zytor.com>
AuthorDate: Mon, 25 Sep 2023 23:13:19 -07:00
Committer: Ingo Molnar <mingo@kernel.org>
CommitterDate: Wed, 27 Sep 2023 10:04:54 +02:00
x86/entry: Remove unused argument %rsi passed to exc_nmi()
exc_nmi() only takes one argument of type struct pt_regs *, but
asm_exc_nmi() calls it with 2 arguments. The second one passed
in %rsi seems to be a leftover, so simply remove it.
Signed-off-by: Xin Li (Intel) <xin@zytor.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Link: https://lore.kernel.org/r/20230926061319.1929127-1-xin@zytor.com
---
arch/x86/entry/entry_64.S | 2 --
1 file changed, 2 deletions(-)
diff --git a/arch/x86/entry/entry_64.S b/arch/x86/entry/entry_64.S
index 43606de..fb8dd56 100644
--- a/arch/x86/entry/entry_64.S
+++ b/arch/x86/entry/entry_64.S
@@ -1237,7 +1237,6 @@ SYM_CODE_START(asm_exc_nmi)
*/
movq %rsp, %rdi
- movq $-1, %rsi
call exc_nmi
/*
@@ -1451,7 +1450,6 @@ end_repeat_nmi:
UNWIND_HINT_REGS
movq %rsp, %rdi
- movq $-1, %rsi
call exc_nmi
/* Always restore stashed SPEC_CTRL value (see paranoid_entry) */
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [tip: x86/asm] x86/entry: Fix typos in comments
2023-09-26 6:13 [PATCH 1/1] x86/entry: remove unused argument %rsi passed to exc_nmi() xin
2023-09-27 8:06 ` Ingo Molnar
2023-09-27 8:11 ` [tip: x86/asm] x86/entry: Remove " tip-bot2 for Xin Li (Intel)
@ 2023-09-27 8:11 ` tip-bot2 for Xin Li (Intel)
2 siblings, 0 replies; 6+ messages in thread
From: tip-bot2 for Xin Li (Intel) @ 2023-09-27 8:11 UTC (permalink / raw)
To: linux-tip-commits
Cc: Xin Li (Intel), Ingo Molnar, H. Peter Anvin (Intel), x86,
linux-kernel
The following commit has been merged into the x86/asm branch of tip:
Commit-ID: 1882366217757d3549e48a833bf9a5799b172251
Gitweb: https://git.kernel.org/tip/1882366217757d3549e48a833bf9a5799b172251
Author: Xin Li (Intel) <xin@zytor.com>
AuthorDate: Mon, 25 Sep 2023 23:13:19 -07:00
Committer: Ingo Molnar <mingo@kernel.org>
CommitterDate: Wed, 27 Sep 2023 10:05:04 +02:00
x86/entry: Fix typos in comments
Fix 2 typos in the comments.
Signed-off-by: Xin Li (Intel) <xin@zytor.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Link: https://lore.kernel.org/r/20230926061319.1929127-1-xin@zytor.com
---
arch/x86/entry/entry_64.S | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/x86/entry/entry_64.S b/arch/x86/entry/entry_64.S
index fb8dd56..b940e92 100644
--- a/arch/x86/entry/entry_64.S
+++ b/arch/x86/entry/entry_64.S
@@ -1163,8 +1163,8 @@ SYM_CODE_START(asm_exc_nmi)
* anyway.
*
* To handle this case we do the following:
- * Check the a special location on the stack that contains
- * a variable that is set when NMIs are executing.
+ * Check a special location on the stack that contains a
+ * variable that is set when NMIs are executing.
* The interrupted task's stack is also checked to see if it
* is an NMI stack.
* If the variable is not set and the stack is not the NMI
@@ -1294,8 +1294,8 @@ SYM_CODE_START(asm_exc_nmi)
* end_repeat_nmi, then we are a nested NMI. We must not
* modify the "iret" frame because it's being written by
* the outer NMI. That's okay; the outer NMI handler is
- * about to about to call exc_nmi() anyway, so we can just
- * resume the outer NMI.
+ * about to call exc_nmi() anyway, so we can just resume
+ * the outer NMI.
*/
movq $repeat_nmi, %rdx
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 1/1] x86/entry: remove unused argument %rsi passed to exc_nmi()
2023-09-27 8:06 ` Ingo Molnar
@ 2023-09-27 8:12 ` Xin Li
2023-09-27 19:15 ` H. Peter Anvin
1 sibling, 0 replies; 6+ messages in thread
From: Xin Li @ 2023-09-27 8:12 UTC (permalink / raw)
To: Ingo Molnar; +Cc: linux-kernel, luto, tglx, mingo, bp, dave.hansen, x86, hpa
On 9/27/2023 1:06 AM, Ingo Molnar wrote:
>
> * xin@zytor.com <xin@zytor.com> wrote:
>
>> From: "Xin Li (Intel)" <xin@zytor.com>
>>
>> exc_nmi() only takes one argument of type struct pt_regs *, but
>> asm_exc_nmi() calls it with 2 arguments. The second one passed
>> in %rsi seems a leftover, so simply remove it.
>>
>> BTW, fix 2 slips in the comments.
>>
>> Signed-off-by: Xin Li (Intel) <xin@zytor.com>
>> Acked-by: H. Peter Anvin (Intel) <hpa@zytor.com>
>> ---
>> arch/x86/entry/entry_64.S | 10 ++++------
>> 1 file changed, 4 insertions(+), 6 deletions(-)
>
> I've split this into two patches, because the comment fixes
> are entirely unrelated to this patch.
>
> [ I've propagated the SOBs and Acked-by's to the two patches,
> as I presume is fine by everyone involved? ]
surely no problem at all!
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/1] x86/entry: remove unused argument %rsi passed to exc_nmi()
2023-09-27 8:06 ` Ingo Molnar
2023-09-27 8:12 ` Xin Li
@ 2023-09-27 19:15 ` H. Peter Anvin
1 sibling, 0 replies; 6+ messages in thread
From: H. Peter Anvin @ 2023-09-27 19:15 UTC (permalink / raw)
To: Ingo Molnar, xin; +Cc: linux-kernel, luto, tglx, mingo, bp, dave.hansen, x86
On September 27, 2023 1:06:23 AM PDT, Ingo Molnar <mingo@kernel.org> wrote:
>
>* xin@zytor.com <xin@zytor.com> wrote:
>
>> From: "Xin Li (Intel)" <xin@zytor.com>
>>
>> exc_nmi() only takes one argument of type struct pt_regs *, but
>> asm_exc_nmi() calls it with 2 arguments. The second one passed
>> in %rsi seems a leftover, so simply remove it.
>>
>> BTW, fix 2 slips in the comments.
>>
>> Signed-off-by: Xin Li (Intel) <xin@zytor.com>
>> Acked-by: H. Peter Anvin (Intel) <hpa@zytor.com>
>> ---
>> arch/x86/entry/entry_64.S | 10 ++++------
>> 1 file changed, 4 insertions(+), 6 deletions(-)
>
>I've split this into two patches, because the comment fixes
>are entirely unrelated to this patch.
>
>[ I've propagated the SOBs and Acked-by's to the two patches,
> as I presume is fine by everyone involved? ]
>
>Thanks,
>
> Ingo
Perfect, thanks!
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-09-27 19:16 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-26 6:13 [PATCH 1/1] x86/entry: remove unused argument %rsi passed to exc_nmi() xin
2023-09-27 8:06 ` Ingo Molnar
2023-09-27 8:12 ` Xin Li
2023-09-27 19:15 ` H. Peter Anvin
2023-09-27 8:11 ` [tip: x86/asm] x86/entry: Remove " tip-bot2 for Xin Li (Intel)
2023-09-27 8:11 ` [tip: x86/asm] x86/entry: Fix typos in comments tip-bot2 for Xin Li (Intel)
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.