linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] x86, iommu: Fix header comments regarding standard and _FINISH macros
@ 2015-04-08 15:46 Aravind Gopalakrishnan
  2015-04-09  7:27 ` Borislav Petkov
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Aravind Gopalakrishnan @ 2015-04-08 15:46 UTC (permalink / raw)
  To: mingo, bp; +Cc: tglx, hpa, x86, linux-kernel, konrad.wilk

The comment line regarding IOMMU_INIT and IOMMU_INIT_FINISH macros
is incorrect:
"The standard vs the _FINISH differs in that the _FINISH variant will
 continue detecting other IOMMUs in the call list..."
It should be "..the *standard* variant will continue detecting..."

Fix that.

Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>
---
 arch/x86/include/asm/iommu_table.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/include/asm/iommu_table.h b/arch/x86/include/asm/iommu_table.h
index f42a047..16845d4 100644
--- a/arch/x86/include/asm/iommu_table.h
+++ b/arch/x86/include/asm/iommu_table.h
@@ -79,7 +79,7 @@ struct iommu_table_entry {
  *  d). Similar to the 'init', except that this gets called from pci_iommu_init
  *      where we do have a memory allocator.
  *
- * The standard vs the _FINISH differs in that the _FINISH variant will
+ * The standard vs the _FINISH differs in that the standard variant will
  * continue detecting other IOMMUs in the call list after the
  * the detection routine returns a positive number. The _FINISH will
  * stop the execution chain. Both will still call the 'init' and
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH] x86, iommu: Fix header comments regarding standard and _FINISH macros
  2015-04-08 15:46 [PATCH] x86, iommu: Fix header comments regarding standard and _FINISH macros Aravind Gopalakrishnan
@ 2015-04-09  7:27 ` Borislav Petkov
  2015-04-09  7:37 ` Ingo Molnar
  2015-04-09  9:04 ` [tip:x86/cleanups] x86/iommu: " tip-bot for Aravind Gopalakrishnan
  2 siblings, 0 replies; 8+ messages in thread
From: Borislav Petkov @ 2015-04-09  7:27 UTC (permalink / raw)
  To: Aravind Gopalakrishnan; +Cc: mingo, tglx, hpa, x86, linux-kernel, konrad.wilk

On Wed, Apr 08, 2015 at 10:46:57AM -0500, Aravind Gopalakrishnan wrote:
> The comment line regarding IOMMU_INIT and IOMMU_INIT_FINISH macros
> is incorrect:
> "The standard vs the _FINISH differs in that the _FINISH variant will
>  continue detecting other IOMMUs in the call list..."
> It should be "..the *standard* variant will continue detecting..."
> 
> Fix that.
> 
> Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>
> ---
>  arch/x86/include/asm/iommu_table.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/x86/include/asm/iommu_table.h b/arch/x86/include/asm/iommu_table.h
> index f42a047..16845d4 100644
> --- a/arch/x86/include/asm/iommu_table.h
> +++ b/arch/x86/include/asm/iommu_table.h
> @@ -79,7 +79,7 @@ struct iommu_table_entry {
>   *  d). Similar to the 'init', except that this gets called from pci_iommu_init
>   *      where we do have a memory allocator.
>   *
> - * The standard vs the _FINISH differs in that the _FINISH variant will
> + * The standard vs the _FINISH differs in that the standard variant will
>   * continue detecting other IOMMUs in the call list after the
>   * the detection routine returns a positive number. The _FINISH will
>   * stop the execution chain. Both will still call the 'init' and

Applied, thanks.

-- 
Regards/Gruss,
    Boris.

ECO tip #101: Trim your mails when you reply.
--

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] x86, iommu: Fix header comments regarding standard and _FINISH macros
  2015-04-08 15:46 [PATCH] x86, iommu: Fix header comments regarding standard and _FINISH macros Aravind Gopalakrishnan
  2015-04-09  7:27 ` Borislav Petkov
@ 2015-04-09  7:37 ` Ingo Molnar
  2015-04-09  7:54   ` Borislav Petkov
  2015-04-09  9:04 ` [tip:x86/cleanups] x86/iommu: " tip-bot for Aravind Gopalakrishnan
  2 siblings, 1 reply; 8+ messages in thread
From: Ingo Molnar @ 2015-04-09  7:37 UTC (permalink / raw)
  To: Aravind Gopalakrishnan
  Cc: mingo, bp, tglx, hpa, x86, linux-kernel, konrad.wilk


* Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com> wrote:

> The comment line regarding IOMMU_INIT and IOMMU_INIT_FINISH macros
> is incorrect:
> "The standard vs the _FINISH differs in that the _FINISH variant will
>  continue detecting other IOMMUs in the call list..."
> It should be "..the *standard* variant will continue detecting..."
> 
> Fix that.
> 
> Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>
> ---
>  arch/x86/include/asm/iommu_table.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/x86/include/asm/iommu_table.h b/arch/x86/include/asm/iommu_table.h
> index f42a047..16845d4 100644
> --- a/arch/x86/include/asm/iommu_table.h
> +++ b/arch/x86/include/asm/iommu_table.h
> @@ -79,7 +79,7 @@ struct iommu_table_entry {
>   *  d). Similar to the 'init', except that this gets called from pci_iommu_init
>   *      where we do have a memory allocator.
>   *
> - * The standard vs the _FINISH differs in that the _FINISH variant will
> + * The standard vs the _FINISH differs in that the standard variant will
>   * continue detecting other IOMMUs in the call list after the
>   * the detection routine returns a positive number. The _FINISH will
>   * stop the execution chain. Both will still call the 'init' and

So while we are touching it, how about making it more readable:

    *
    * The standard vs the _FINISH variants differ in that the
    * standard variant will continue detecting other IOMMUs in the 
    * call list after the detection routine returns a positive number. 
    * The _FINISH variant will stop the execution chain. Both variants 
    * will still call the 'init' and ...
    *

I also fixed a 'the the' typo.

Thanks,

	Ingo

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] x86, iommu: Fix header comments regarding standard and _FINISH macros
  2015-04-09  7:37 ` Ingo Molnar
@ 2015-04-09  7:54   ` Borislav Petkov
  2015-04-09  8:02     ` Ingo Molnar
  2015-04-09 10:31     ` Konrad Rzeszutek Wilk
  0 siblings, 2 replies; 8+ messages in thread
From: Borislav Petkov @ 2015-04-09  7:54 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: Aravind Gopalakrishnan, mingo, tglx, hpa, x86, linux-kernel, konrad.wilk

On Thu, Apr 09, 2015 at 09:37:44AM +0200, Ingo Molnar wrote:
> So while we are touching it, how about making it more readable:
> 
>     *
>     * The standard vs the _FINISH variants differ in that the
>     * standard variant will continue detecting other IOMMUs in the 
>     * call list after the detection routine returns a positive number. 
>     * The _FINISH variant will stop the execution chain. Both variants 
>     * will still call the 'init' and ...
>     *

I went a step further :-)

---
From: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>
Date: Wed, 8 Apr 2015 10:46:57 -0500
Subject: [PATCH] x86/iommu: Fix header comments regarding standard and _FINISH
 macros

The comment line regarding IOMMU_INIT and IOMMU_INIT_FINISH macros
is incorrect:

"The standard vs the _FINISH differs in that the _FINISH variant will
continue detecting other IOMMUs in the call list..."

It should be "..the *standard* variant will continue detecting..."

Fix that. Also, make it readable while at it.

Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>
Fixes: 6e9636693373 ("x86, iommu: Update header comments with appropriate naming")
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: x86-ml <x86@kernel.org>
Cc: konrad.wilk@oracle.com
Link: http://lkml.kernel.org/r/1428508017-5316-1-git-send-email-Aravind.Gopalakrishnan@amd.com
Signed-off-by: 
---
 arch/x86/include/asm/iommu_table.h | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/arch/x86/include/asm/iommu_table.h b/arch/x86/include/asm/iommu_table.h
index f42a04735a0a..e37d6b3ad983 100644
--- a/arch/x86/include/asm/iommu_table.h
+++ b/arch/x86/include/asm/iommu_table.h
@@ -79,11 +79,12 @@ struct iommu_table_entry {
  *  d). Similar to the 'init', except that this gets called from pci_iommu_init
  *      where we do have a memory allocator.
  *
- * The standard vs the _FINISH differs in that the _FINISH variant will
- * continue detecting other IOMMUs in the call list after the
- * the detection routine returns a positive number. The _FINISH will
- * stop the execution chain. Both will still call the 'init' and
- * 'late_init' functions if they are set.
+ * The standard IOMMU_INIT differs from the IOMMU_INIT_FINISH variant
+ * in that the former will continue detecting other IOMMUs in the call
+ * list after the detection routine returns a positive number, while the
+ * latter will stop the execution chain upon first successful detection.
+ * Both variants will still call the 'init' and 'late_init' functions if
+ * they are set.
  */
 #define IOMMU_INIT_FINISH(_detect, _depend, _init, _late_init)		\
 	__IOMMU_INIT(_detect, _depend, _init, _late_init, 1)
-- 
2.3.3

-- 
Regards/Gruss,
    Boris.

ECO tip #101: Trim your mails when you reply.
--

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH] x86, iommu: Fix header comments regarding standard and _FINISH macros
  2015-04-09  7:54   ` Borislav Petkov
@ 2015-04-09  8:02     ` Ingo Molnar
  2015-04-09 10:31     ` Konrad Rzeszutek Wilk
  1 sibling, 0 replies; 8+ messages in thread
From: Ingo Molnar @ 2015-04-09  8:02 UTC (permalink / raw)
  To: Borislav Petkov
  Cc: Aravind Gopalakrishnan, mingo, tglx, hpa, x86, linux-kernel, konrad.wilk


* Borislav Petkov <bp@suse.de> wrote:

> On Thu, Apr 09, 2015 at 09:37:44AM +0200, Ingo Molnar wrote:
> > So while we are touching it, how about making it more readable:
> > 
> >     *
> >     * The standard vs the _FINISH variants differ in that the
> >     * standard variant will continue detecting other IOMMUs in the 
> >     * call list after the detection routine returns a positive number. 
> >     * The _FINISH variant will stop the execution chain. Both variants 
> >     * will still call the 'init' and ...
> >     *
> 
> I went a step further :-)
> 
> ---
> From: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>
> Date: Wed, 8 Apr 2015 10:46:57 -0500
> Subject: [PATCH] x86/iommu: Fix header comments regarding standard and _FINISH
>  macros
> 
> The comment line regarding IOMMU_INIT and IOMMU_INIT_FINISH macros
> is incorrect:
> 
> "The standard vs the _FINISH differs in that the _FINISH variant will
> continue detecting other IOMMUs in the call list..."
> 
> It should be "..the *standard* variant will continue detecting..."
> 
> Fix that. Also, make it readable while at it.
> 
> Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>
> Fixes: 6e9636693373 ("x86, iommu: Update header comments with appropriate naming")
> Cc: Thomas Gleixner <tglx@linutronix.de>
> Cc: H. Peter Anvin <hpa@zytor.com>
> Cc: x86-ml <x86@kernel.org>
> Cc: konrad.wilk@oracle.com
> Link: http://lkml.kernel.org/r/1428508017-5316-1-git-send-email-Aravind.Gopalakrishnan@amd.com
> Signed-off-by: 
> ---
>  arch/x86/include/asm/iommu_table.h | 11 ++++++-----
>  1 file changed, 6 insertions(+), 5 deletions(-)
> 
> diff --git a/arch/x86/include/asm/iommu_table.h b/arch/x86/include/asm/iommu_table.h
> index f42a04735a0a..e37d6b3ad983 100644
> --- a/arch/x86/include/asm/iommu_table.h
> +++ b/arch/x86/include/asm/iommu_table.h
> @@ -79,11 +79,12 @@ struct iommu_table_entry {
>   *  d). Similar to the 'init', except that this gets called from pci_iommu_init
>   *      where we do have a memory allocator.
>   *
> - * The standard vs the _FINISH differs in that the _FINISH variant will
> - * continue detecting other IOMMUs in the call list after the
> - * the detection routine returns a positive number. The _FINISH will
> - * stop the execution chain. Both will still call the 'init' and
> - * 'late_init' functions if they are set.
> + * The standard IOMMU_INIT differs from the IOMMU_INIT_FINISH variant
> + * in that the former will continue detecting other IOMMUs in the call
> + * list after the detection routine returns a positive number, while the
> + * latter will stop the execution chain upon first successful detection.
> + * Both variants will still call the 'init' and 'late_init' functions if
> + * they are set.
>   */
>  #define IOMMU_INIT_FINISH(_detect, _depend, _init, _late_init)		\
>  	__IOMMU_INIT(_detect, _depend, _init, _late_init, 1)

Sounds good to me!

Thanks,

	Ingo

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [tip:x86/cleanups] x86/iommu: Fix header comments regarding standard and _FINISH macros
  2015-04-08 15:46 [PATCH] x86, iommu: Fix header comments regarding standard and _FINISH macros Aravind Gopalakrishnan
  2015-04-09  7:27 ` Borislav Petkov
  2015-04-09  7:37 ` Ingo Molnar
@ 2015-04-09  9:04 ` tip-bot for Aravind Gopalakrishnan
  2 siblings, 0 replies; 8+ messages in thread
From: tip-bot for Aravind Gopalakrishnan @ 2015-04-09  9:04 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: bp, tglx, linux-kernel, mingo, hpa, Aravind.Gopalakrishnan

Commit-ID:  b44915927ca88084a7292e4ddd4cf91036f365e1
Gitweb:     http://git.kernel.org/tip/b44915927ca88084a7292e4ddd4cf91036f365e1
Author:     Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>
AuthorDate: Thu, 9 Apr 2015 10:51:48 +0200
Committer:  Ingo Molnar <mingo@kernel.org>
CommitDate: Thu, 9 Apr 2015 10:56:31 +0200

x86/iommu: Fix header comments regarding standard and _FINISH macros

The comment line regarding IOMMU_INIT and IOMMU_INIT_FINISH
macros is incorrect:

  "The standard vs the _FINISH differs in that the _FINISH variant
  will continue detecting other IOMMUs in the call list..."

It should be "..the *standard* variant will continue
detecting..."

Fix that. Also, make it readable while at it.

Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: konrad.wilk@oracle.com
Fixes: 6e9636693373 ("x86, iommu: Update header comments with appropriate naming")
Link: http://lkml.kernel.org/r/1428508017-5316-1-git-send-email-Aravind.Gopalakrishnan@amd.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
 arch/x86/include/asm/iommu_table.h | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/arch/x86/include/asm/iommu_table.h b/arch/x86/include/asm/iommu_table.h
index f42a047..e37d6b3 100644
--- a/arch/x86/include/asm/iommu_table.h
+++ b/arch/x86/include/asm/iommu_table.h
@@ -79,11 +79,12 @@ struct iommu_table_entry {
  *  d). Similar to the 'init', except that this gets called from pci_iommu_init
  *      where we do have a memory allocator.
  *
- * The standard vs the _FINISH differs in that the _FINISH variant will
- * continue detecting other IOMMUs in the call list after the
- * the detection routine returns a positive number. The _FINISH will
- * stop the execution chain. Both will still call the 'init' and
- * 'late_init' functions if they are set.
+ * The standard IOMMU_INIT differs from the IOMMU_INIT_FINISH variant
+ * in that the former will continue detecting other IOMMUs in the call
+ * list after the detection routine returns a positive number, while the
+ * latter will stop the execution chain upon first successful detection.
+ * Both variants will still call the 'init' and 'late_init' functions if
+ * they are set.
  */
 #define IOMMU_INIT_FINISH(_detect, _depend, _init, _late_init)		\
 	__IOMMU_INIT(_detect, _depend, _init, _late_init, 1)

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH] x86, iommu: Fix header comments regarding standard and _FINISH macros
  2015-04-09  7:54   ` Borislav Petkov
  2015-04-09  8:02     ` Ingo Molnar
@ 2015-04-09 10:31     ` Konrad Rzeszutek Wilk
  2015-04-09 10:38       ` Borislav Petkov
  1 sibling, 1 reply; 8+ messages in thread
From: Konrad Rzeszutek Wilk @ 2015-04-09 10:31 UTC (permalink / raw)
  To: Borislav Petkov, Ingo Molnar
  Cc: Aravind Gopalakrishnan, mingo, tglx, hpa, x86, linux-kernel

On April 9, 2015 3:54:08 AM EDT, Borislav Petkov <bp@suse.de> wrote:
>On Thu, Apr 09, 2015 at 09:37:44AM +0200, Ingo Molnar wrote:
>> So while we are touching it, how about making it more readable:
>> 
>>     *
>>     * The standard vs the _FINISH variants differ in that the
>>     * standard variant will continue detecting other IOMMUs in the 
>>     * call list after the detection routine returns a positive
>number. 
>>     * The _FINISH variant will stop the execution chain. Both
>variants 
>>     * will still call the 'init' and ...
>>     *
>
>I went a step further :-)
>
>---
>From: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>
>Date: Wed, 8 Apr 2015 10:46:57 -0500
>Subject: [PATCH] x86/iommu: Fix header comments regarding standard and
>_FINISH
> macros
>
>The comment line regarding IOMMU_INIT and IOMMU_INIT_FINISH macros
>is incorrect:
>
>"The standard vs the _FINISH differs in that the _FINISH variant will
>continue detecting other IOMMUs in the call list..."
>
>It should be "..the *standard* variant will continue detecting..."
>
>Fix that. Also, make it readable while at it.
>
>Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>
>Fixes: 6e9636693373 ("x86, iommu: Update header comments with
>appropriate naming")
>Cc: Thomas Gleixner <tglx@linutronix.de>
>Cc: H. Peter Anvin <hpa@zytor.com>
>Cc: x86-ml <x86@kernel.org>
>Cc: konrad.wilk@oracle.com
>Link:
>http://lkml.kernel.org/r/1428508017-5316-1-git-send-email-Aravind.Gopalakrishnan@amd.com
>Signed-off-by: 

What is with that empty SoB?


Otherwise Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
>---
> arch/x86/include/asm/iommu_table.h | 11 ++++++-----
> 1 file changed, 6 insertions(+), 5 deletions(-)
>
>diff --git a/arch/x86/include/asm/iommu_table.h
>b/arch/x86/include/asm/iommu_table.h
>index f42a04735a0a..e37d6b3ad983 100644
>--- a/arch/x86/include/asm/iommu_table.h
>+++ b/arch/x86/include/asm/iommu_table.h
>@@ -79,11 +79,12 @@ struct iommu_table_entry {
>*  d). Similar to the 'init', except that this gets called from
>pci_iommu_init
>  *      where we do have a memory allocator.
>  *
>- * The standard vs the _FINISH differs in that the _FINISH variant
>will
>- * continue detecting other IOMMUs in the call list after the
>- * the detection routine returns a positive number. The _FINISH will
>- * stop the execution chain. Both will still call the 'init' and
>- * 'late_init' functions if they are set.
>+ * The standard IOMMU_INIT differs from the IOMMU_INIT_FINISH variant
>+ * in that the former will continue detecting other IOMMUs in the call
>+ * list after the detection routine returns a positive number, while
>the
>+ * latter will stop the execution chain upon first successful
>detection.
>+ * Both variants will still call the 'init' and 'late_init' functions
>if
>+ * they are set.
>  */
> #define IOMMU_INIT_FINISH(_detect, _depend, _init, _late_init)		\
> 	__IOMMU_INIT(_detect, _depend, _init, _late_init, 1)



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] x86, iommu: Fix header comments regarding standard and _FINISH macros
  2015-04-09 10:31     ` Konrad Rzeszutek Wilk
@ 2015-04-09 10:38       ` Borislav Petkov
  0 siblings, 0 replies; 8+ messages in thread
From: Borislav Petkov @ 2015-04-09 10:38 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk
  Cc: Ingo Molnar, Aravind Gopalakrishnan, mingo, tglx, hpa, x86, linux-kernel

On Thu, Apr 09, 2015 at 06:31:17AM -0400, Konrad Rzeszutek Wilk wrote:
> >http://lkml.kernel.org/r/1428508017-5316-1-git-send-email-Aravind.Gopalakrishnan@amd.com
> >Signed-off-by: 
> 
> What is with that empty SoB?

I'm invisible :-)

Anyway, Ingo applied the correct version.

-- 
Regards/Gruss,
    Boris.

ECO tip #101: Trim your mails when you reply.
--

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-04-09 10:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-08 15:46 [PATCH] x86, iommu: Fix header comments regarding standard and _FINISH macros Aravind Gopalakrishnan
2015-04-09  7:27 ` Borislav Petkov
2015-04-09  7:37 ` Ingo Molnar
2015-04-09  7:54   ` Borislav Petkov
2015-04-09  8:02     ` Ingo Molnar
2015-04-09 10:31     ` Konrad Rzeszutek Wilk
2015-04-09 10:38       ` Borislav Petkov
2015-04-09  9:04 ` [tip:x86/cleanups] x86/iommu: " tip-bot for Aravind Gopalakrishnan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).