<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c, branch linux-5.13.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.13.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.13.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2021-09-18T11:42:23Z</updated>
<entry>
<title>drm/amdgpu: Fix BUG_ON assert</title>
<updated>2021-09-18T11:42:23Z</updated>
<author>
<name>Andrey Grodzovsky</name>
</author>
<published>2021-06-22T16:23:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6fdacfc6042f1b59a059beee4bdef0e5c7216d97'/>
<id>urn:sha1:6fdacfc6042f1b59a059beee4bdef0e5c7216d97</id>
<content type='text'>
commit ea7acd7c5967542353430947f3faf699e70602e5 upstream.

With added CPU domain to placement you can have
now 3 placemnts at once.

CC: stable@kernel.org
Signed-off-by: Andrey Grodzovsky &lt;andrey.grodzovsky@amd.com&gt;
Reviewed-by: Christian König &lt;christian.koenig@amd.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20210622162339.761651-5-andrey.grodzovsky@amd.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu: use the preferred pin domain after the check</title>
<updated>2021-09-03T08:22:49Z</updated>
<author>
<name>Christian König</name>
</author>
<published>2021-08-18T12:05:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=164f7029a8ca298c8b583af3bff2ae15026065e0'/>
<id>urn:sha1:164f7029a8ca298c8b583af3bff2ae15026065e0</id>
<content type='text'>
commit 2a7b9a8437130fd328001f4edfac8eec98dfe298 upstream.

For some reason we run into an use case where a BO is already pinned
into GTT, but should be pinned into VRAM|GTT again.

Handle that case gracefully as well.

Reviewed-by: Shashank Sharma &lt;Shashank.sharma@amd.com&gt;
Reviewed-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
Signed-off-by: Christian König &lt;christian.koenig@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu: fix metadata_size for ubo ioctl queries</title>
<updated>2021-07-19T08:04:35Z</updated>
<author>
<name>Shiwu Zhang</name>
</author>
<published>2021-05-24T06:30:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3e7b75192e1500215726a2ab35f1b578b1c19840'/>
<id>urn:sha1:3e7b75192e1500215726a2ab35f1b578b1c19840</id>
<content type='text'>
[ Upstream commit eba98523724be7ad3539f2c975de1527e0c99dd6 ]

Although the kfd_ioctl_get_dmabuf_info() still fail it will indicate
the caller right metadat_size useful for the same kfd ioctl next time.

Signed-off-by: Shiwu Zhang &lt;shiwu.zhang@amd.com&gt;
Reviewed-by: Nirmoy Das &lt;nirmoy.das@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu: switch kzalloc to kvzalloc in amdgpu_bo_create</title>
<updated>2021-06-08T18:01:56Z</updated>
<author>
<name>Changfeng</name>
</author>
<published>2021-06-02T13:25:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2a48b5911cf2e111a271bffbe5cac443231a4384'/>
<id>urn:sha1:2a48b5911cf2e111a271bffbe5cac443231a4384</id>
<content type='text'>
It will cause error when alloc memory larger than 128KB in
amdgpu_bo_create-&gt;kzalloc. So it needs to switch kzalloc to kvzalloc.

Call Trace:
   alloc_pages_current+0x6a/0xe0
   kmalloc_order+0x32/0xb0
   kmalloc_order_trace+0x1e/0x80
   __kmalloc+0x249/0x2d0
   amdgpu_bo_create+0x102/0x500 [amdgpu]
   ? xas_create+0x264/0x3e0
   amdgpu_bo_create_vm+0x32/0x60 [amdgpu]
   amdgpu_vm_pt_create+0xf5/0x260 [amdgpu]
   amdgpu_vm_init+0x1fd/0x4d0 [amdgpu]

Signed-off-by: Changfeng &lt;Changfeng.Zhu@amd.com&gt;
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: Remove unused function amdgpu_bo_fbdev_mmap()</title>
<updated>2021-04-09T20:54:05Z</updated>
<author>
<name>Thomas Zimmermann</name>
</author>
<published>2021-04-06T09:08:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e90f8be3b91c99346b70b419ec6f4a3d5a4c828e'/>
<id>urn:sha1:e90f8be3b91c99346b70b419ec6f4a3d5a4c828e</id>
<content type='text'>
Remove an unused function. Mapping the fbdev framebuffer is apparently
not supported.

Signed-off-by: Thomas Zimmermann &lt;tzimmermann@suse.de&gt;
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: make BO type check less restrictive</title>
<updated>2021-04-09T20:45:37Z</updated>
<author>
<name>Nirmoy Das</name>
</author>
<published>2021-03-15T15:02:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=030bb4addb36ee94e286eb51486f990cac433825'/>
<id>urn:sha1:030bb4addb36ee94e286eb51486f990cac433825</id>
<content type='text'>
BO with ttm_bo_type_sg type can also have tiling_flag and metadata.
So so BO type check for only ttm_bo_type_kernel.

Reviewed-by: Christian König &lt;christian.koenig@amd.com&gt;
Signed-off-by: Nirmoy Das &lt;nirmoy.das@amd.com&gt;
Reported-by: Tom StDenis &lt;Tom.StDenis@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/amdgpu: use amdgpu_bo_user bo for metadata and tiling flag</title>
<updated>2021-04-09T20:45:31Z</updated>
<author>
<name>Nirmoy Das</name>
</author>
<published>2021-03-08T13:03:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cc1bcf85b0112ad660e70464d00d3e36e103cedd'/>
<id>urn:sha1:cc1bcf85b0112ad660e70464d00d3e36e103cedd</id>
<content type='text'>
Tiling flag and metadata are only needed for BOs created by
amdgpu_gem_object_create(), so we can remove those from the
base class.

v2: * squash tiling_flags and metadata relared patches into one
    * use BUG_ON for non ttm_bo_type_device type when accessing
    tiling_flags and metadata._
v3: *include to_amdgpu_bo_user

Signed-off-by: Nirmoy Das &lt;nirmoy.das@amd.com&gt;
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: introduce struct amdgpu_bo_user</title>
<updated>2021-04-09T20:45:19Z</updated>
<author>
<name>Nirmoy Das</name>
</author>
<published>2021-03-05T12:00:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9ad0d033ed4be2370bfff6589fc52ab220e7c514'/>
<id>urn:sha1:9ad0d033ed4be2370bfff6589fc52ab220e7c514</id>
<content type='text'>
Implement a new struct amdgpu_bo_user as subclass of
struct amdgpu_bo and a function to created amdgpu_bo_user
bo with a flag to identify the owner.

v2: amdgpu_bo_to_amdgpu_bo_user -&gt; to_amdgpu_bo_user()

Signed-off-by: Nirmoy Das &lt;nirmoy.das@amd.com&gt;
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: allow variable BO struct creation</title>
<updated>2021-04-09T20:45:12Z</updated>
<author>
<name>Nirmoy Das</name>
</author>
<published>2021-03-08T13:00:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9fd5543e9552acff859af7f154bd3402b7983dc5'/>
<id>urn:sha1:9fd5543e9552acff859af7f154bd3402b7983dc5</id>
<content type='text'>
Allow allocating BO structures with different structure size
than struct amdgpu_bo.

v2: Check bo_ptr_size in all amdgpu_bo_create() caller.

Signed-off-by: Nirmoy Das &lt;nirmoy.das@amd.com&gt;
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: don't evict vram on APUs for suspend to ram (v4)</title>
<updated>2021-04-09T20:36:34Z</updated>
<author>
<name>Alex Deucher</name>
</author>
<published>2021-03-10T04:20:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=48ccbf730c945c7fc86e8790a8246247a2c0478b'/>
<id>urn:sha1:48ccbf730c945c7fc86e8790a8246247a2c0478b</id>
<content type='text'>
Vram is system memory, so no need to evict.

v2: use PM_EVENT messages
v3: use correct dev
v4: use driver flags

Reviewed-by: Evan Quan &lt;evan.quan@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
</feed>
