<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">Den tis 15 maj 2018 16:50Alex Deucher <<a href="mailto:alexdeucher@gmail.com">alexdeucher@gmail.com</a>> skrev:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Feifei Xu <<a href="mailto:Feifei.Xu@amd.com" target="_blank" rel="noreferrer">Feifei.Xu@amd.com</a>><br>
<br>
Use module parameter passed from user to initialize zfb start address<br>
and size.<br>
<br>
Signed-off-by: Feifei Xu <<a href="mailto:Feifei.Xu@amd.com" target="_blank" rel="noreferrer">Feifei.Xu@amd.com</a>><br>
Signed-off-by: Hawking Zhang <<a href="mailto:Hawking.Zhang@amd.com" target="_blank" rel="noreferrer">Hawking.Zhang@amd.com</a>><br>
Acked-by: John Bridgman <<a href="mailto:john.bridgman@amd.com" target="_blank" rel="noreferrer">john.bridgman@amd.com</a>><br>
Reviewed-by: Alex Deucher <<a href="mailto:alexander.deucher@amd.com" target="_blank" rel="noreferrer">alexander.deucher@amd.com</a>><br>
Signed-off-by: Alex Deucher <<a href="mailto:alexander.deucher@amd.com" target="_blank" rel="noreferrer">alexander.deucher@amd.com</a>><br>
---<br>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 9 +++++++++<br>
1 file changed, 9 insertions(+)<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c<br>
index 887f7c9e84e0..b175178345aa 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c<br>
@@ -1010,6 +1010,15 @@ static void amdgpu_device_check_arguments(struct amdgpu_device *adev)<br>
}<br>
<br>
adev->firmware.load_type = amdgpu_ucode_get_load_type(adev, amdgpu_fw_load_type);<br>
+<br>
+ if (amdgpu_zfb[0] > 0) {<br>
+ dev_warn(adev->dev, "Zero Fram Buffer is enabled\n");<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">s/Fram/Frame/</div><div dir="auto"><br></div><div dir="auto">BR</div><div dir="auto">Nils</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
+ adev->gmc.zfb_phys_addr = amdgpu_zfb[1] << 20;<br>
+ adev->gmc.zfb_size = amdgpu_zfb[0] << 20;<br>
+ } else {<br>
+ adev->gmc.zfb_phys_addr = 0;<br>
+ adev->gmc.zfb_size = 0;<br>
+ }<br>
}<br>
<br>
/**<br>
-- <br>
2.13.6<br>
<br>
_______________________________________________<br>
amd-gfx mailing list<br>
<a href="mailto:amd-gfx@lists.freedesktop.org" target="_blank" rel="noreferrer">amd-gfx@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a><br>
</blockquote></div></div></div>