<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-dev/include/drm/ttm/ttm_set_memory.h, branch linus/master</title>
<subtitle>Linux kernel development work - see feature branches</subtitle>
<id>https://git.zx2c4.com/linux-dev/atom/include/drm/ttm/ttm_set_memory.h?h=linus%2Fmaster</id>
<link rel='self' href='https://git.zx2c4.com/linux-dev/atom/include/drm/ttm/ttm_set_memory.h?h=linus%2Fmaster'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/'/>
<updated>2020-10-07T12:10:18Z</updated>
<entry>
<title>drm/ttm: move ttm_set_memory.h out of include</title>
<updated>2020-10-07T12:10:18Z</updated>
<author>
<name>Christian König</name>
<email>christian.koenig@amd.com</email>
</author>
<published>2020-09-29T15:39:57Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=955a341f33b75b8baa6536b283e08e73f3a989da'/>
<id>urn:sha1:955a341f33b75b8baa6536b283e08e73f3a989da</id>
<content type='text'>
This is not something drivers should use.

Signed-off-by: Christian König &lt;christian.koenig@amd.com&gt;
Reviewed-by: Michael J. Ruhl &lt;michael.j.ruhl@intel.com&gt;
Link: https://patchwork.freedesktop.org/patch/393430/
</content>
</entry>
<entry>
<title>drm/ttm: stop dangerous caching attribute change</title>
<updated>2020-09-23T13:21:05Z</updated>
<author>
<name>Christian König</name>
<email>christian.koenig@amd.com</email>
</author>
<published>2020-09-18T14:34:49Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=db9c1734ad69c0ba5e5e420ba31ebc1048976be6'/>
<id>urn:sha1:db9c1734ad69c0ba5e5e420ba31ebc1048976be6</id>
<content type='text'>
When we swapout/in a BO we try to change the caching
attributes of the pages before/after doing the copy.

On x86 this is done by calling set_pages_uc(),
set_memory_wc() or set_pages_wb() for not highmem pages
to update the linear mapping of the page.

On all other platforms we do exactly nothing.

Now on x86 this is unnecessary because copy_highpage() will
either create a temporary mapping of the page which is wb
anyway and destroyed immediately again or use the linear
mapping with the correct caching attributes.

So stop this nonsense and just keep the caching as it is and
return an error when a driver tries to change the caching of
an already populated TT object.

This is much more defensive since changing caching
attributes is platform and driver specific and usually
doesn't work after the page was initially allocated.

Signed-off-by: Christian König &lt;christian.koenig@amd.com&gt;
Reviewed-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
Link: https://patchwork.freedesktop.org/patch/391293/
</content>
</entry>
<entry>
<title>drm/ttm: remove nonsense AGP handling</title>
<updated>2020-09-23T13:16:36Z</updated>
<author>
<name>Christian König</name>
<email>christian.koenig@amd.com</email>
</author>
<published>2020-09-18T14:20:20Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=4127a6204970b3d7cb140117472eb3dd99bd1a0d'/>
<id>urn:sha1:4127a6204970b3d7cb140117472eb3dd99bd1a0d</id>
<content type='text'>
map_page_into_agp() and unmap_page_from_agp() are only defined on x86.

On all other platforms they are defined as noops. So this code doesn't has any effect at all.

Signed-off-by: Christian König &lt;christian.koenig@amd.com&gt;
Reviewed-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
Link: https://patchwork.freedesktop.org/patch/391292/
</content>
</entry>
<entry>
<title>drm/ttm: Add ttm_set_pages_wc and ttm_set_pages_uc helper</title>
<updated>2018-08-01T22:23:05Z</updated>
<author>
<name>Huang Rui</name>
<email>ray.huang@amd.com</email>
</author>
<published>2018-08-01T05:49:32Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=dceb219fc60766006bfe8e53afa62816b94fcb11'/>
<id>urn:sha1:dceb219fc60766006bfe8e53afa62816b94fcb11</id>
<content type='text'>
These two helpers will be used on set page caching.

Reviewed-by: Christian König &lt;christian.koenig@amd.com&gt;
Signed-off-by: Huang Rui &lt;ray.huang@amd.com&gt;
Signed-off-by: Alex Deucher &lt;alexander.deucher@amd.com&gt;
</content>
</entry>
<entry>
<title>drm/ttm: add ttm_set_memory header (v2)</title>
<updated>2018-07-27T19:59:52Z</updated>
<author>
<name>Huang Rui</name>
<email>ray.huang@amd.com</email>
</author>
<published>2018-07-26T08:32:08Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=2ac305b7c8d7f93a6ef0018391e9865ea4ac0d65'/>
<id>urn:sha1:2ac305b7c8d7f93a6ef0018391e9865ea4ac0d65</id>
<content type='text'>
This patch moves all non-x86 abstraction to the ttm_set_memory header.
It is to make function calling more clearly.

(v2): add ttm_ prefix.

Suggested-by: Christian König &lt;christian.koenig@amd.com&gt;
Signed-off-by: Huang Rui &lt;ray.huang@amd.com&gt;
Reviewed-by: Bas Nieuwenhuizen &lt;basni@chromium.org&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>
</feed>
