<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/gpu/drm/ttm/ttm_range_manager.c, branch linux-5.10.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.10.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.10.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2021-07-31T06:16:12Z</updated>
<entry>
<title>drm/ttm: add a check against null pointer dereference</title>
<updated>2021-07-31T06:16:12Z</updated>
<author>
<name>Zheyu Ma</name>
</author>
<published>2021-07-14T14:54:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5c3d753b872a706af9317fef4edfb6b640d8a71e'/>
<id>urn:sha1:5c3d753b872a706af9317fef4edfb6b640d8a71e</id>
<content type='text'>
[ Upstream commit 9e5c772954406829e928dbe59891d08938ead04b ]

When calling ttm_range_man_fini(), 'man' may be uninitialized, which may
cause a null pointer dereference bug.

Fix this by checking if it is a null pointer.

This log reveals it:

[    7.902580 ] BUG: kernel NULL pointer dereference, address: 0000000000000058
[    7.905721 ] RIP: 0010:ttm_range_man_fini+0x40/0x160
[    7.911826 ] Call Trace:
[    7.911826 ]  radeon_ttm_fini+0x167/0x210
[    7.911826 ]  radeon_bo_fini+0x15/0x40
[    7.913767 ]  rs400_fini+0x55/0x80
[    7.914358 ]  radeon_device_fini+0x3c/0x140
[    7.914358 ]  radeon_driver_unload_kms+0x5c/0xe0
[    7.914358 ]  radeon_driver_load_kms+0x13a/0x200
[    7.914358 ]  ? radeon_driver_unload_kms+0xe0/0xe0
[    7.914358 ]  drm_dev_register+0x1db/0x290
[    7.914358 ]  radeon_pci_probe+0x16a/0x230
[    7.914358 ]  local_pci_probe+0x4a/0xb0

Signed-off-by: Zheyu Ma &lt;zheyuma97@gmail.com&gt;
Reviewed-by: Christian König &lt;christian.koenig@amd.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/1626274459-8148-1-git-send-email-zheyuma97@gmail.com
Signed-off-by: Christian König &lt;christian.koenig@amd.com&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>drm/ttm: remove available_caching</title>
<updated>2020-09-15T14:05:19Z</updated>
<author>
<name>Christian König</name>
</author>
<published>2020-09-11T14:01:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9c3006a4cc1b165652a07727caf7926054f9aa9f'/>
<id>urn:sha1:9c3006a4cc1b165652a07727caf7926054f9aa9f</id>
<content type='text'>
Instead of letting TTM make an educated guess based on
some mask all drivers should just specify what caching
they want for their CPU mappings.

Signed-off-by: Christian König &lt;christian.koenig@amd.com&gt;
Reviewed-by: Dave Airlie &lt;airlied@redhat.com&gt;
Link: https://patchwork.freedesktop.org/patch/390207/
</content>
</entry>
<entry>
<title>drm/ttm: remove default caching</title>
<updated>2020-09-15T14:03:44Z</updated>
<author>
<name>Christian König</name>
</author>
<published>2020-09-11T13:06:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0fe438cec9e1d263a831e62a0499e14ee228fb30'/>
<id>urn:sha1:0fe438cec9e1d263a831e62a0499e14ee228fb30</id>
<content type='text'>
As far as I can tell this was never used either and we just
always fallback to the order cached &gt; wc &gt; uncached anyway.

Signed-off-by: Christian König &lt;christian.koenig@amd.com&gt;
Reviewed-by: Dave Airlie &lt;airlied@redhat.com&gt;
Link: https://patchwork.freedesktop.org/patch/390142/
</content>
</entry>
<entry>
<title>drm/ttm: rename ttm_resource_manager_func callbacks</title>
<updated>2020-08-12T13:50:51Z</updated>
<author>
<name>Christian König</name>
</author>
<published>2020-08-03T13:06:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e92ae67d6ed881e9c6d6d432eb6b5817f150a115'/>
<id>urn:sha1:e92ae67d6ed881e9c6d6d432eb6b5817f150a115</id>
<content type='text'>
The names get/put are associated with reference counting
in the Linux kernel, use alloc/free instead.

Signed-off-by: Christian König &lt;christian.koenig@amd.com&gt;
Reviewed-by: Dave Airlie &lt;airlied@redhat.com&gt;
Link: https://patchwork.freedesktop.org/patch/384340/?series=80346&amp;rev=1
</content>
</entry>
<entry>
<title>drm/ttm: rename ttm_mem_reg to ttm_resource.</title>
<updated>2020-08-06T03:19:21Z</updated>
<author>
<name>Dave Airlie</name>
</author>
<published>2020-08-04T02:56:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2966141ad2dda23d1b37997de6a4389b7864c169'/>
<id>urn:sha1:2966141ad2dda23d1b37997de6a4389b7864c169</id>
<content type='text'>
This name better reflects what the object does. I didn't rename
all the pointers it seemed too messy.

Signed-off-by: Dave Airlie &lt;airlied@redhat.com&gt;
Acked-by: Christian König &lt;christian.koenig@amd.com&gt;
Reviewed-by: Ben Skeggs &lt;bskeggs@redhat.com&gt;
Signed-off-by: Dave Airlie &lt;airlied@redhat.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20200804025632.3868079-60-airlied@gmail.com
</content>
</entry>
<entry>
<title>drm/ttm: rename ttm_mem_type_manager -&gt; ttm_resource_manager.</title>
<updated>2020-08-06T03:12:40Z</updated>
<author>
<name>Dave Airlie</name>
</author>
<published>2020-08-04T02:56:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9de59bc201496f28bb8835c2bcbae3ddb186b548'/>
<id>urn:sha1:9de59bc201496f28bb8835c2bcbae3ddb186b548</id>
<content type='text'>
This name makes a lot more sense, since these are about managing
driver resources rather than just memory ranges.

Acked-by: Christian König &lt;christian.koenig@amd.com&gt;
Reviewed-by: Ben Skeggs &lt;bskeggs@redhat.com&gt;
Signed-off-by: Dave Airlie &lt;airlied@redhat.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20200804025632.3868079-59-airlied@gmail.com
</content>
</entry>
<entry>
<title>drm/ttm: rename bo manager to range manager.</title>
<updated>2020-08-06T03:12:40Z</updated>
<author>
<name>Dave Airlie</name>
</author>
<published>2020-08-04T02:56:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=80938c28ee67bad05b2982410440b5a2d200a2f5'/>
<id>urn:sha1:80938c28ee67bad05b2982410440b5a2d200a2f5</id>
<content type='text'>
The generic manager is called the range manager now, rename
the file and some internals.

Reviewed-by: Christian König &lt;christian.koenig@amd.com&gt;
Reviewed-by: Ben Skeggs &lt;bskeggs@redhat.com&gt;
Signed-off-by: Dave Airlie &lt;airlied@redhat.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20200804025632.3868079-58-airlied@gmail.com
</content>
</entry>
</feed>
