<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c, branch v4.7</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v4.7</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v4.7'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2016-06-20T21:09:39Z</updated>
<entry>
<title>drm/amdgpu: initialize amdgpu_cgs_acpi_eval_object result value</title>
<updated>2016-06-20T21:09:39Z</updated>
<author>
<name>Nicolas Iooss</name>
<email>nicolas.iooss_linux@m4x.org</email>
</author>
<published>2016-06-18T20:55:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=29b9c528b8c295911e8b1e515273e89a2b7fa2d8'/>
<id>urn:sha1:29b9c528b8c295911e8b1e515273e89a2b7fa2d8</id>
<content type='text'>
amdgpu_cgs_acpi_eval_object() returned the value of variable "result"
without initializing it first.

This bug has been found by compiling the kernel with clang.  The
compiler complained:

    drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c:972:14: error: variable
    'result' is used uninitialized whenever 'for' loop exits because its
    condition is false [-Werror,-Wsometimes-uninitialized]
            for (i = 0; i &lt; count; i++) {
                        ^~~~~~~~~
    drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c:1011:9: note: uninitialized
    use occurs here
            return result;
                   ^~~~~~
    drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c:972:14: note: remove the
    condition if it is always true
            for (i = 0; i &lt; count; i++) {
                        ^~~~~~~~~
    drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c:864:12: note: initialize the
    variable 'result' to silence this warning
            int result;
                      ^
                       = 0

Fixes: 3f1d35a03b3c ("drm/amdgpu: implement new cgs interface for acpi
function")
Signed-off-by: Nicolas Iooss &lt;nicolas.iooss_linux@m4x.org&gt;
Cc: stable@vger.kernel.org
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu: add release firmware for cgs</title>
<updated>2016-06-09T14:49:13Z</updated>
<author>
<name>Monk Liu</name>
<email>Monk.Liu@amd.com</email>
</author>
<published>2016-05-31T05:44:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a392746a8c38de494a1a2d00c5cfd34a05449e35'/>
<id>urn:sha1:a392746a8c38de494a1a2d00c5cfd34a05449e35</id>
<content type='text'>
Powerplay uses cgs to load the firmware so add a function
to release it as well to avoid leaking it on driver unload.

Signed-off-by: Monk Liu &lt;Monk.Liu@amd.com&gt;
Reviewed-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu: fetch cu_info once at init</title>
<updated>2016-05-11T16:31:21Z</updated>
<author>
<name>Alex Deucher</name>
<email>alexander.deucher@amd.com</email>
</author>
<published>2016-05-03T20:25:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=7dae69a2905c34a97678645c8e4c95095f5390b8'/>
<id>urn:sha1:7dae69a2905c34a97678645c8e4c95095f5390b8</id>
<content type='text'>
Fetch this info once at init and just store the results
for future requests.

Reviewed-by: Christian König &lt;christian.koenig@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu: fix memory leak in CGS (FW info)</title>
<updated>2016-05-05T00:29:20Z</updated>
<author>
<name>Mykola Lysenko</name>
<email>Mykola.Lysenko@amd.com</email>
</author>
<published>2016-03-30T09:50:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=0b45541df37295e97216f8d45ae583a78ea31416'/>
<id>urn:sha1:0b45541df37295e97216f8d45ae583a78ea31416</id>
<content type='text'>
Previously requested FW pointer should not be
overwritten on a subsequent call.

Reviewed-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
Signed-off-by: Mykola Lysenko &lt;Mykola.Lysenko@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu: change ELM/BAF to Polaris10/Polaris11</title>
<updated>2016-05-05T00:27:57Z</updated>
<author>
<name>Flora Cui</name>
<email>Flora.Cui@amd.com</email>
</author>
<published>2016-03-14T22:33:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=2cc0c0b5cd4d07a65267c28a4f7b68134abff472'/>
<id>urn:sha1:2cc0c0b5cd4d07a65267c28a4f7b68134abff472</id>
<content type='text'>
Adjust to preferred code names.

Signed-off-by: Flora Cui &lt;Flora.Cui@amd.com&gt;
Reviewed-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amd/amdgpu: add query GFX cu info in CGS query system info</title>
<updated>2016-05-05T00:26:55Z</updated>
<author>
<name>Eric Huang</name>
<email>JinHuiEric.Huang@amd.com</email>
</author>
<published>2016-03-17T22:29:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=bacec8985f596a6c6fadb63966f52501d2ed2367'/>
<id>urn:sha1:bacec8985f596a6c6fadb63966f52501d2ed2367</id>
<content type='text'>
Needed for per CU powergating.

Reviewed-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
Acked-by: Christian König &lt;christian.koenig@amd.com&gt;
Signed-off-by: Eric Huang &lt;JinHuiEric.Huang@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amd/amdgpu: Add smc_sk firmware in baffin &amp; ellesmere.</title>
<updated>2016-05-05T00:26:19Z</updated>
<author>
<name>yanyang1</name>
<email>Young.Yang@amd.com</email>
</author>
<published>2016-02-05T09:39:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=735f002b14b4f532348cabddddc003c7858e8f30'/>
<id>urn:sha1:735f002b14b4f532348cabddddc003c7858e8f30</id>
<content type='text'>
add CGS_UCODE_ID_SMU_SK.

Signed-off-by: yanyang1 &lt;Young.Yang@amd.com&gt;
Reviewed-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amd/powerplay: add smu support for ellesmere/baffin</title>
<updated>2016-05-05T00:25:43Z</updated>
<author>
<name>rezhu</name>
<email>Rex.Zhu@amd.com</email>
</author>
<published>2015-11-10T02:26:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=c81726252ec99f375a226005b4e0277df3601d66'/>
<id>urn:sha1:c81726252ec99f375a226005b4e0277df3601d66</id>
<content type='text'>
Signed-off-by: Rex Zhu &lt;Rex.Zhu@amd.com&gt;
Reviewed-by: Jammy Zhou &lt;Jammy.Zhou@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amd: make a type-safe cgs_device struct. (v2)</title>
<updated>2016-05-05T00:20:28Z</updated>
<author>
<name>Dave Airlie</name>
<email>airlied@redhat.com</email>
</author>
<published>2016-04-12T03:25:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=110e6f26af80dfd90b6e5c645b1aed7228aa580d'/>
<id>urn:sha1:110e6f26af80dfd90b6e5c645b1aed7228aa580d</id>
<content type='text'>
This is just a type-safety things to avoid everyone taking void *,
it doesn't change anything.

v2: agd5f: split out the dal changes into a separate patch.

Signed-off-by: Dave Airlie &lt;airlied@redhat.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu: add an cgs interface to notify amdgpu the dpm state.</title>
<updated>2016-04-01T14:08:27Z</updated>
<author>
<name>Rex Zhu</name>
<email>Rex.Zhu@amd.com</email>
</author>
<published>2016-03-29T06:20:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=4c90080b19aad59c3a4a91a0a2d68fdee0643c37'/>
<id>urn:sha1:4c90080b19aad59c3a4a91a0a2d68fdee0643c37</id>
<content type='text'>
Signed-off-by: Rex Zhu &lt;Rex.Zhu@amd.com&gt;
Reviewed-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
</feed>
