* [PATCH 05/13] drm/amdgpu/gmc9: populate xgmi info for vega20
@ 2018-09-05 15:30 shaoyunl
[not found] ` <1536161413-4329-1-git-send-email-Shaoyun.Liu-5C7GfCeVMHo@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: shaoyunl @ 2018-09-05 15:30 UTC (permalink / raw)
To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Alex Deucher
From: Alex Deucher <alexander.deucher@amd.com>
Call the new gfxhub 1.1 function to get the xgmi info.
Acked-by: Huang Rui <ray.huang@amd.com>
Acked-by: Slava Abramov <slava.abramov@amd.com>
Reviewed-by :Shaoyun liu <Shaoyun.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
index 0da89ba..b1c8489 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
@@ -43,6 +43,7 @@
#include "gfxhub_v1_0.h"
#include "mmhub_v1_0.h"
+#include "gfxhub_v1_1.h"
#include "ivsrcid/vmc/irqsrcs_vmc_1_0.h"
@@ -991,6 +992,12 @@ static int gmc_v9_0_sw_init(void *handle)
}
adev->need_swiotlb = drm_get_max_iomem() > ((u64)1 << dma_bits);
+ if (adev->asic_type == CHIP_VEGA20) {
+ r = gfxhub_v1_1_get_xgmi_info(adev);
+ if (r)
+ return r;
+ }
+
r = gmc_v9_0_mc_init(adev);
if (r)
return r;
--
2.7.4
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 05/13] drm/amdgpu/gmc9: populate xgmi info for vega20
[not found] ` <1536161413-4329-1-git-send-email-Shaoyun.Liu-5C7GfCeVMHo@public.gmane.org>
@ 2018-09-06 7:40 ` Christian König
0 siblings, 0 replies; 2+ messages in thread
From: Christian König @ 2018-09-06 7:40 UTC (permalink / raw)
To: shaoyunl, amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Alex Deucher
Am 05.09.2018 um 17:30 schrieb shaoyunl:
> From: Alex Deucher <alexander.deucher@amd.com>
>
> Call the new gfxhub 1.1 function to get the xgmi info.
>
> Acked-by: Huang Rui <ray.huang@amd.com>
> Acked-by: Slava Abramov <slava.abramov@amd.com>
> Reviewed-by :Shaoyun liu <Shaoyun.liu@amd.com>
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>, could probably
be squashed into patch #3.
> ---
> drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
> index 0da89ba..b1c8489 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
> @@ -43,6 +43,7 @@
>
> #include "gfxhub_v1_0.h"
> #include "mmhub_v1_0.h"
> +#include "gfxhub_v1_1.h"
>
> #include "ivsrcid/vmc/irqsrcs_vmc_1_0.h"
>
> @@ -991,6 +992,12 @@ static int gmc_v9_0_sw_init(void *handle)
> }
> adev->need_swiotlb = drm_get_max_iomem() > ((u64)1 << dma_bits);
>
> + if (adev->asic_type == CHIP_VEGA20) {
> + r = gfxhub_v1_1_get_xgmi_info(adev);
> + if (r)
> + return r;
> + }
> +
> r = gmc_v9_0_mc_init(adev);
> if (r)
> return r;
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-09-06 7:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-05 15:30 [PATCH 05/13] drm/amdgpu/gmc9: populate xgmi info for vega20 shaoyunl
[not found] ` <1536161413-4329-1-git-send-email-Shaoyun.Liu-5C7GfCeVMHo@public.gmane.org>
2018-09-06 7:40 ` Christian König
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.