Skip to contentSkip to conversation

drm/radeon: Include swiotlb.h if SWIOTLB configured.

PATCH In review Huacai Chen 2 participants 6 messages Aug 13, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/radeon: Include swiotlb.h if SWIOTLB configured.

When SWIOTLB is configured, if without this patch kernel compilation fails.

---
 drivers/gpu/drm/radeon/radeon_ttm.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
drivers/gpu/drm/radeon/radeon_ttm.c +4 -0
index 5b71c71..fc3ac22 100644
@@ -41,6 +41,10 @@
 #include "radeon_reg.h"
 #include "radeon.h"
 
+#ifdef CONFIG_SWIOTLB
+#include <linux/swiotlb.h>
+#endif
+
 #define DRM_FILE_PAGE_OFFSET (0x100000000ULL >> PAGE_SHIFT)
 
 static int radeon_ttm_debugfs_init(struct radeon_device *rdev);
Signature · 1 line
1.7.7.3
Acked-by on v1 1/1
#1 lore raw

Dear Chen,

thanks for your patch.

Firstly, is Chen your first or last name? If it is your first name, your From address should be switched.

Am Montag, den 13.08.2012, 10:09 +0800 schrieb Huacai Chen:

Quoted 2 lines

When SWIOTLB is configured, if without this patch kernel compilation fails.

Secondly, could you please always paste part of the error message into the commit message so that people hitting this problem and searching for it on the WWW have a higher chance finding your patch.

Thirdly, do you know why this was not caught beforehand and compilation worked before?

Quoted 1 line

Lastly, the addresses in your From line and Signed-off-by line disagree. You can easily fix that, by adding

From: Huacai Chen <[email protected]>

to the beginning of your message.

Quoted 12 lines
---
 drivers/gpu/drm/radeon/radeon_ttm.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
drivers/gpu/drm/radeon/radeon_ttm.c +0 -0
index 5b71c71..fc3ac22 100644

drivers/gpu/drm/radeon/radeon_ttm.c line 50

Quoted 10 lines
drivers/gpu/drm/radeon/radeon_ttm.c +4 -0
@@ -41,6 +41,10 @@
 #include "radeon_reg.h"
 #include "radeon.h"
 
+#ifdef CONFIG_SWIOTLB
+#include <linux/swiotlb.h>
+#endif
+
 #define DRM_FILE_PAGE_OFFSET (0x100000000ULL >> PAGE_SHIFT)
 
 static int radeon_ttm_debugfs_init(struct radeon_device *rdev);

With the clarification above

can be added to your patch.

Thanks,

Paul

#2 lore raw
Quoted 7 lines · Paul Menzel

Dear Chen,

thanks for your patch.

Firstly, is Chen your first or last name? If it is your first name, your From address should be switched.

Chen is may last name.

Quoted 9 lines

Am Montag, den 13.08.2012, 10:09 +0800 schrieb Huacai Chen:

Quoted 2 lines

When SWIOTLB is configured, if without this patch kernel compilation fails.

Secondly, could you please always paste part of the error message into the commit message so that people hitting this problem and searching for it on the WWW have a higher chance finding your patch.

OK, I'll paste error message.

Quoted 2 lines

Thirdly, do you know why this was not caught beforehand and compilation worked before?

Maybe radeon is mostly used on X86 and swiotlb.h is included indirectly on X86 platform. This patch is split from my MIPS patchset, on MIPS machines compilation always failed.

Quoted 5 lines
Quoted 2 lines

Lastly, the addresses in your From line and Signed-off-by line disagree. You can easily fix that, by adding

My patch is generated by git format-patch and there is surely a From line in the beginning (from [email protected]), but the mail is sent out by gmail, so I don't know how to make From line and Signed-off-by agree.

Quoted 38 lines

From: Huacai Chen <[email protected]>

to the beginning of your message.

Quoted 12 lines
---
 drivers/gpu/drm/radeon/radeon_ttm.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
drivers/gpu/drm/radeon/radeon_ttm.c +0 -0
index 5b71c71..fc3ac22 100644

drivers/gpu/drm/radeon/radeon_ttm.c line 50

Quoted 10 lines
drivers/gpu/drm/radeon/radeon_ttm.c +4 -0
@@ -41,6 +41,10 @@
 #include "radeon_reg.h"
 #include "radeon.h"
 
+#ifdef CONFIG_SWIOTLB
+#include <linux/swiotlb.h>
+#endif
+
 #define DRM_FILE_PAGE_OFFSET (0x100000000ULL >> PAGE_SHIFT)
 
 static int radeon_ttm_debugfs_init(struct radeon_device *rdev);

With the clarification above

can be added to your patch.

Thanks,

Paul

#3 lore raw

Dear Huacai,

Am Montag, den 13.08.2012, 15:16 +0800 schrieb Huacai Chen:

Quoted 7 lines · Paul Menzel
Quoted 5 lines

thanks for your patch.

Firstly, is Chen your first or last name? If it is your first name, your From address should be switched.

Chen is may last name.

I am sorry then.

Quoted 8 lines
Quoted 8 lines

Am Montag, den 13.08.2012, 10:09 +0800 schrieb Huacai Chen:

Quoted 2 lines

When SWIOTLB is configured, if without this patch kernel compilation fails.

Secondly, could you please always paste part of the error message into the commit message so that people hitting this problem and searching for it on the WWW have a higher chance finding your patch.

Quoted 7 lines

OK, I'll paste error message.

Quoted 2 lines

Thirdly, do you know why this was not caught beforehand and compilation worked before?

Maybe radeon is mostly used on X86 and swiotlb.h is included indirectly on X86 platform. This patch is split from my MIPS patchset, on MIPS machines compilation always failed.

Ah, I thought your patches had already been submitted.

Quoted 6 lines
Quoted 4 lines
Quoted 1 line

Lastly, the addresses in your From line and Signed-off-by line disagree. You can easily fix that, by adding

My patch is generated by git format-patch and there is surely a From line in the beginning (from [email protected]),

It should be From: Huacai Chen <[email protected]>.

Quoted 2 lines

but the mail is sent out by gmail, so I don't know how to make From line and Signed-off-by agree.

Do you copy the content of the file created by git format-patch into the Gmail Web compositor?

If yes, just do not delete the From *and* Date lines from the beginning as for example Alex Deucher is doing [1].

[…]

Thanks,

Paul

[1] http://lists.freedesktop.org/archives/dri-devel/2012-July/025200.html

#4 lore raw
Quoted 24 lines · Paul Menzel

Dear Huacai,

Am Montag, den 13.08.2012, 15:16 +0800 schrieb Huacai Chen:

Quoted 7 lines · Paul Menzel
Quoted 5 lines

thanks for your patch.

Firstly, is Chen your first or last name? If it is your first name, your From address should be switched.

Chen is may last name.

I am sorry then.

Quoted 10 lines
Quoted 8 lines

Am Montag, den 13.08.2012, 10:09 +0800 schrieb Huacai Chen:

Quoted 2 lines

When SWIOTLB is configured, if without this patch kernel compilation fails.

Secondly, could you please always paste part of the error message into the commit message so that people hitting this problem and searching for it on the WWW have a higher chance finding your patch.

OK, I'll paste error message.

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

Thirdly, do you know why this was not caught beforehand and compilation worked before?

Maybe radeon is mostly used on X86 and swiotlb.h is included indirectly on X86 platform. This patch is split from my MIPS patchset, on MIPS machines compilation always failed.

Ah, I thought your patches had already been submitted.

My MIPS patchset is under review (not accepted now), I think this drm patch is important and should be accept first, so sent it independently.

Quoted 9 lines
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

Lastly, the addresses in your From line and Signed-off-by line disagree. You can easily fix that, by adding

My patch is generated by git format-patch and there is surely a From line in the beginning (from [email protected]),

It should be From: Huacai Chen <[email protected]>.

Yes, git format-patch generate From: Huacai Chen <[email protected]>

Quoted 9 lines
Quoted 3 lines

but the mail is sent out by gmail, so I don't know how to make From line and Signed-off-by agree.

Do you copy the content of the file created by git format-patch into the Gmail Web compositor?

If yes, just do not delete the From *and* Date lines from the beginning as for example Alex Deucher is doing [1].

No, I use git send-email to send the patch but use gmail's server (mail server of lemote.com is too weak). The original patch is begin with:
-----
From 70e1e058da3d39c52b7dba3e8fa754e7ed41828c Mon Sep 17 00:00:00 2001
From: Huacai Chen <[email protected]>
Date: Thu, 2 Aug 2012 17:02:59 +0800
Subject: [PATCH] drm/radeon: Include swiotlb.h if SWIOTLB configured.

When SWIOTLB is configured, if without this patch kernel compilation fails with error messages:
----
Do you means I need to copy the From line and paste it after the Subject line?

Quoted 10 lines

[…]

Thanks,

Paul

[1] http://lists.freedesktop.org/archives/dri-devel/2012-July/025200.html

#5 lore raw

Am Montag, den 13.08.2012, 16:04 +0800 schrieb Huacai Chen:

Quoted 4 lines · Paul Menzel
Quoted 3 lines

Am Montag, den 13.08.2012, 15:16 +0800 schrieb Huacai Chen:

Quoted 1 line · Paul Menzel

[…]

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Am Montag, den 13.08.2012, 10:09 +0800 schrieb Huacai Chen:

[…]

Quoted 28 lines
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 1 line

Lastly, the addresses in your From line and Signed-off-by line disagree. You can easily fix that, by adding

My patch is generated by git format-patch and there is surely a From line in the beginning (from [email protected]),

It should be From: Huacai Chen <[email protected]>.

Yes, git format-patch generate From: Huacai Chen <[email protected]>

Quoted 9 lines
Quoted 3 lines

but the mail is sent out by gmail, so I don't know how to make From line and Signed-off-by agree.

Do you copy the content of the file created by git format-patch into the Gmail Web compositor?

If yes, just do not delete the From *and* Date lines from the beginning as for example Alex Deucher is doing [1].

No, I use git send-email to send the patch but use gmail's server (mail server of lemote.com is too weak). The original patch is begin with:
-----
From 70e1e058da3d39c52b7dba3e8fa754e7ed41828c Mon Sep 17 00:00:00 2001
From: Huacai Chen <[email protected]>
Date: Thu, 2 Aug 2012 17:02:59 +0800
Subject: [PATCH] drm/radeon: Include swiotlb.h if SWIOTLB configured.

Quoted 4 lines

When SWIOTLB is configured, if without this patch kernel compilation fails with error messages:
----
Do you means I need to copy the From line and paste it after the Subject line?

wereHamster on #git suggested to use

    git send-email --from 'Huacai Chen <[email protected]>'

and it should do the right thing.

Thanks,

Paul

Quoted 1 line
Quoted 1 line

[1] http://lists.freedesktop.org/archives/dri-devel/2012-July/025200.html