<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
see here, I already find dis-advance:<br>
enum amd_ip_block_type {<br>
<font color="#cc0000"> AMD_IP_BLOCK_TYPE_COMMON,<br>
AMD_IP_BLOCK_TYPE_GMC,</font><br>
AMD_IP_BLOCK_TYPE_IH,<br>
AMD_IP_BLOCK_TYPE_SMC,<br>
AMD_IP_BLOCK_TYPE_PSP, <br>
AMD_IP_BLOCK_TYPE_DCE,<br>
AMD_IP_BLOCK_TYPE_GFX,<br>
AMD_IP_BLOCK_TYPE_SDMA,<br>
AMD_IP_BLOCK_TYPE_UVD,<br>
AMD_IP_BLOCK_TYPE_VCE,<br>
AMD_IP_BLOCK_TYPE_ACP,<br>
<font color="#cc0000"> AMD_IP_BLOCK_TYPE_GFXHUB,<br>
AMD_IP_BLOCK_TYPE_MMHUB</font><br>
};<br>
resume will follow this sequence.<br>
but initial sequence is :<br>
amdgpu_ip_block_add(adev,
&vega10_common_ip_block);<br>
<font color="#cc0000"> amdgpu_ip_block_add(adev,
&gfxhub_v1_0_ip_block);<br>
amdgpu_ip_block_add(adev,
&mmhub_v1_0_ip_block);<br>
amdgpu_ip_block_add(adev, &gmc_v9_0_ip_block);</font><br>
amdgpu_ip_block_add(adev, &vega10_ih_ip_block);<br>
if (amdgpu_fw_load_type == 2 || amdgpu_fw_load_type
== -1)<br>
amdgpu_ip_block_add(adev,
&psp_v3_1_ip_block);<br>
if (!amdgpu_sriov_vf(adev))<br>
amdgpu_ip_block_add(adev,
&amdgpu_pp_ip_block);<br>
if (adev->enable_virtual_display ||
amdgpu_sriov_vf(adev))<br>
amdgpu_ip_block_add(adev,
&dce_virtual_ip_block);<br>
#if defined(CONFIG_DRM_AMD_DC)<br>
else if (amdgpu_device_has_dc_support(adev))<br>
amdgpu_ip_block_add(adev, &dm_ip_block);<br>
#else<br>
# warning "Enable CONFIG_DRM_AMD_DC for display support on
SOC15."<br>
#endif<br>
amdgpu_ip_block_add(adev, &gfx_v9_0_ip_block);<br>
amdgpu_ip_block_add(adev, &sdma_v4_0_ip_block);<br>
amdgpu_ip_block_add(adev, &uvd_v7_0_ip_block);<br>
amdgpu_ip_block_add(adev, &vce_v4_0_ip_block);<br>
<br>
<br>
They are different. I remember I asked you if they are same, don't
know why you answer 'yes'.<br>
<br>
With s3 problem still in there, please do this improvement asap.<br>
<br>
Regards,<br>
David Zhou<br>
<br>
<div class="moz-cite-prefix">On 2017年05月17日 16:11, zhoucm1 wrote:<br>
</div>
<blockquote cite="mid:591C05B5.4090902@amd.com" type="cite">
<br>
<br>
On 2017年05月17日 15:55, Huang Rui wrote:
<br>
<blockquote type="cite">On Wed, May 17, 2017 at 03:43:47PM +0800,
Zhou, David(ChunMing) wrote:
<br>
<blockquote type="cite">By this change, I suggest to remove
mmhub/gfxhub_v1_0_ip_funcs and their
<br>
IP block, unify them to gmc ip block, this way we cannot lost
setting
<br>
when resume back.
<br>
<br>
</blockquote>
From hw side, wo won't have real gmc since this chip, mmhub and
gfxhub(gc)
<br>
instead of it. Maybe we would better to align with hw desgin.
<br>
</blockquote>
I don't see any advance, as you said, we still have gmc block in
soc15, why not unify mmhub/gfxhub calls to gmc block?
<br>
We can keep mmhub/gfxhub_xxx.c file, but ip_funciton isn't
necessary.
<br>
<br>
Regards,
<br>
David Zhou
<br>
<blockquote type="cite">
<br>
Thanks,
<br>
Rui
<br>
<br>
<blockquote type="cite">Regards,
<br>
David Zhou
<br>
<br>
On 2017年05月17日 15:38, Huang Rui wrote:
<br>
<blockquote type="cite">Signed-off-by: Huang Rui
<a class="moz-txt-link-rfc2396E" href="mailto:ray.huang@amd.com"><ray.huang@amd.com></a>
<br>
---
<br>
drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c | 2 +-
<br>
1 file changed, 1 insertion(+), 1 deletion(-)
<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c
b/drivers/gpu/drm/amd/
<br>
</blockquote>
amdgpu/gfxhub_v1_0.c
<br>
<blockquote type="cite">index 005075f..41313514 100644
<br>
--- a/drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c
<br>
+++ b/drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c
<br>
@@ -368,7 +368,7 @@ static int gfxhub_v1_0_suspend(void
*handle)
<br>
static int gfxhub_v1_0_resume(void *handle)
<br>
{
<br>
- return 0;
<br>
+ return gfxhub_v1_0_hw_init(handle);
<br>
}
<br>
static bool gfxhub_v1_0_is_idle(void *handle)
<br>
</blockquote>
</blockquote>
_______________________________________________
<br>
amd-gfx mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a>
<br>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a>
<br>
</blockquote>
<br>
_______________________________________________
<br>
amd-gfx mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a>
<br>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a>
<br>
</blockquote>
<br>
</body>
</html>