* [PATCH 1/2] drm/amdgpu: enable swiotlb for gmc 10.0 (V2)
@ 2022-07-25 1:59 Aaron Liu
2022-07-25 1:59 ` [PATCH 2/2] drm/amdgpu: enable swiotlb for gmc 11.0 Aaron Liu
0 siblings, 1 reply; 3+ messages in thread
From: Aaron Liu @ 2022-07-25 1:59 UTC (permalink / raw)
To: amd-gfx; +Cc: Alexander.Deucher, Ray.Huang, Aaron Liu
Enable swiotlb for gmc 10.0.
v2: include drm_cache.h to use the function ‘drm_need_swiotlb’
Signed-off-by: Aaron Liu <aaron.liu@amd.com>
---
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
index 1772f006c61a..9ae8cdaa033e 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
@@ -22,6 +22,9 @@
*/
#include <linux/firmware.h>
#include <linux/pci.h>
+
+#include <drm/drm_cache.h>
+
#include "amdgpu.h"
#include "amdgpu_atomfirmware.h"
#include "gmc_v10_0.h"
@@ -980,6 +983,8 @@ static int gmc_v10_0_sw_init(void *handle)
return r;
}
+ adev->need_swiotlb = drm_need_swiotlb(44);
+
r = gmc_v10_0_mc_init(adev);
if (r)
return r;
--
2.37.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] drm/amdgpu: enable swiotlb for gmc 11.0
2022-07-25 1:59 [PATCH 1/2] drm/amdgpu: enable swiotlb for gmc 10.0 (V2) Aaron Liu
@ 2022-07-25 1:59 ` Aaron Liu
2022-07-25 2:05 ` Huang Rui
0 siblings, 1 reply; 3+ messages in thread
From: Aaron Liu @ 2022-07-25 1:59 UTC (permalink / raw)
To: amd-gfx; +Cc: Alexander.Deucher, Ray.Huang, Aaron Liu
Enable swiotlb for gmc 11.0.
Signed-off-by: Aaron Liu <aaron.liu@amd.com>
---
drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c
index 503e40a90319..1471bfb9ae38 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c
@@ -22,6 +22,9 @@
*/
#include <linux/firmware.h>
#include <linux/pci.h>
+
+#include <drm/drm_cache.h>
+
#include "amdgpu.h"
#include "amdgpu_atomfirmware.h"
#include "gmc_v11_0.h"
@@ -775,6 +778,8 @@ static int gmc_v11_0_sw_init(void *handle)
return r;
}
+ adev->need_swiotlb = drm_need_swiotlb(44);
+
r = gmc_v11_0_mc_init(adev);
if (r)
return r;
--
2.37.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 2/2] drm/amdgpu: enable swiotlb for gmc 11.0
2022-07-25 1:59 ` [PATCH 2/2] drm/amdgpu: enable swiotlb for gmc 11.0 Aaron Liu
@ 2022-07-25 2:05 ` Huang Rui
0 siblings, 0 replies; 3+ messages in thread
From: Huang Rui @ 2022-07-25 2:05 UTC (permalink / raw)
To: Liu, Aaron; +Cc: Deucher, Alexander, amd-gfx@lists.freedesktop.org
On Mon, Jul 25, 2022 at 09:59:08AM +0800, Liu, Aaron wrote:
> Enable swiotlb for gmc 11.0.
>
> Signed-off-by: Aaron Liu <aaron.liu@amd.com>
Series are Reviewed-by: Huang Rui <ray.huang@amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c
> index 503e40a90319..1471bfb9ae38 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c
> @@ -22,6 +22,9 @@
> */
> #include <linux/firmware.h>
> #include <linux/pci.h>
> +
> +#include <drm/drm_cache.h>
> +
> #include "amdgpu.h"
> #include "amdgpu_atomfirmware.h"
> #include "gmc_v11_0.h"
> @@ -775,6 +778,8 @@ static int gmc_v11_0_sw_init(void *handle)
> return r;
> }
>
> + adev->need_swiotlb = drm_need_swiotlb(44);
> +
> r = gmc_v11_0_mc_init(adev);
> if (r)
> return r;
> --
> 2.37.0
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-07-25 2:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-25 1:59 [PATCH 1/2] drm/amdgpu: enable swiotlb for gmc 10.0 (V2) Aaron Liu
2022-07-25 1:59 ` [PATCH 2/2] drm/amdgpu: enable swiotlb for gmc 11.0 Aaron Liu
2022-07-25 2:05 ` Huang Rui
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.