<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/drivers/gpu/drm/via, branch v6.1.168</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v6.1.168</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v6.1.168'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2022-09-07T05:01:16+00:00</updated>
<entry>
<title>drm/via: Add new condition to via_dma_cleanup()</title>
<updated>2022-09-07T05:01:16+00:00</updated>
<author>
<name>Alisa Khabibrakhmanova</name>
<email>khabibrakhmanova@ispras.ru</email>
</author>
<published>2022-07-29T09:06:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=5e1bfb277d3b87bc580735564eb487c0be3848b3'/>
<id>urn:sha1:5e1bfb277d3b87bc580735564eb487c0be3848b3</id>
<content type='text'>
Pointer dev_priv-&gt;mmio, which was checked for NULL at via_do_init_map(),
is passed to via_do_cleanup_map() and is dereferenced there without check.

The patch adds the condition in via_dma_cleanup() which prevents potential NULL
pointer dereference.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 22f579c621e2 ("drm: Add via unichrome support")
Signed-off-by: Alisa Khabibrakhmanova &lt;khabibrakhmanova@ispras.ru&gt;
Signed-off-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20220729090643.240778-1-khabibrakhmanova@ispras.ru
</content>
</entry>
<entry>
<title>drm/via: use idr_init_base() to initialize dev_priv-&gt;object_idr</title>
<updated>2022-07-28T14:36:49+00:00</updated>
<author>
<name>Danilo Krummrich</name>
<email>dakr@redhat.com</email>
</author>
<published>2022-07-01T19:02:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=b765bc9968de022cc7dfc745d23de595fcc2b6cd'/>
<id>urn:sha1:b765bc9968de022cc7dfc745d23de595fcc2b6cd</id>
<content type='text'>
idr_init_base(), implemented by commit 6ce711f27500 ("idr: Make 1-based
IDRs more efficient"), let us set an arbitrary base other than
idr_init(), which uses base 0.

Since, for this IDR, no ID &lt; 1 is ever requested/allocated, using
idr_init_base(&amp;idr, 1) avoids unnecessary tree walks.

Signed-off-by: Danilo Krummrich &lt;dakr@redhat.com&gt;
Signed-off-by: Maxime Ripard &lt;maxime@cerno.tech&gt;
Link: https://lore.kernel.org/r/20220701190227.284783-2-dakr@redhat.com
</content>
</entry>
<entry>
<title>drm/via: Fix style issues in via_3d_reg header</title>
<updated>2022-07-16T07:32:20+00:00</updated>
<author>
<name>Sam Ravnborg</name>
<email>sam@ravnborg.org</email>
</author>
<published>2022-07-13T17:02:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=5f9cfd8243ee6f69e0d82519bae463e81411f439'/>
<id>urn:sha1:5f9cfd8243ee6f69e0d82519bae463e81411f439</id>
<content type='text'>
- Fix comments using wrong style
- Drop repeated word

This fixes all checkpatch complains and makes the file a little
bit easier to read - as the eye is not distracted by the style
violations.

Suggested-by: Thomas Zimmermann &lt;tzimmermann@suse.de&gt;
Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
Acked-by: Thomas Zimmermann &lt;tzimmermann@suse.de&gt;
Cc: Kevin Brace &lt;kevinbrace@bracecomputerlab.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20220713170202.1798216-14-sam@ravnborg.org
</content>
</entry>
<entry>
<title>drm/via: Make macros readable in the via_3d_reg header</title>
<updated>2022-07-16T07:32:13+00:00</updated>
<author>
<name>Sam Ravnborg</name>
<email>sam@ravnborg.org</email>
</author>
<published>2022-07-13T17:02:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=3579ca95759e40f3868ad5a75b4c34710858ad2b'/>
<id>urn:sha1:3579ca95759e40f3868ad5a75b4c34710858ad2b</id>
<content type='text'>
The macros for texture 1 setting all used continuation on a new line,
resulting in a highly ureadable definition.
Merge the lines so they are each on a single line.

As a nice side-effect this fixes a number of checkpatch warnings:
"WARNING: please, no spaces at the start of a line".

Suggested-by: Thomas Zimmermann &lt;tzimmermann@suse.de&gt;
Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
Acked-by: Thomas Zimmermann &lt;tzimmermann@suse.de&gt;
Cc: Kevin Brace &lt;kevinbrace@bracecomputerlab.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20220713170202.1798216-13-sam@ravnborg.org
</content>
</entry>
<entry>
<title>drm/via: Use SPDX tag for MIT license in via_3d_reg header</title>
<updated>2022-07-16T07:27:17+00:00</updated>
<author>
<name>Sam Ravnborg</name>
<email>sam@ravnborg.org</email>
</author>
<published>2022-07-13T17:02:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=e1df7580bb2947a2fcff80d4342eb4ededbf4873'/>
<id>urn:sha1:e1df7580bb2947a2fcff80d4342eb4ededbf4873</id>
<content type='text'>
The license for the via_3d_reg header is MIT - so use the
shorter SPDX tag to identify the license.

Suggested-by: Thomas Zimmermann &lt;tzimmermann@suse.de&gt;
Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
Acked-by: Thomas Zimmermann &lt;tzimmermann@suse.de&gt;
Cc: Kevin Brace &lt;kevinbrace@bracecomputerlab.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20220713170202.1798216-12-sam@ravnborg.org
</content>
</entry>
<entry>
<title>drm/via: Update to the latest via_3d_reg header</title>
<updated>2022-07-16T07:27:11+00:00</updated>
<author>
<name>Sam Ravnborg</name>
<email>sam@ravnborg.org</email>
</author>
<published>2022-07-13T17:01:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=e0a49c786766ebb804592e536dab2eb97da5533f'/>
<id>urn:sha1:e0a49c786766ebb804592e536dab2eb97da5533f</id>
<content type='text'>
Updated the 3d_reg header file to match what is used by the openchrome
driver.
This verifies that the two drivers can use the same header file.

The file is a verbatim copy from the openchrome repo - a few style
issues will be fixed in following commits.

Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
Acked-by: Thomas Zimmermann &lt;tzimmermann@suse.de&gt;
Cc: Kevin Brace &lt;kevinbrace@bracecomputerlab.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20220713170202.1798216-11-sam@ravnborg.org
</content>
</entry>
<entry>
<title>drm/via: Embed via_drv.h in via_dri1</title>
<updated>2022-07-16T07:26:21+00:00</updated>
<author>
<name>Sam Ravnborg</name>
<email>sam@ravnborg.org</email>
</author>
<published>2022-07-13T17:01:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=685bf9f58dd9624af93d9e20e7d5353b06966a7e'/>
<id>urn:sha1:685bf9f58dd9624af93d9e20e7d5353b06966a7e</id>
<content type='text'>
With this change the driver is now a signle file driver.
The only remaning heder file describes the HW and can be shared with the
new openchrome driver.

Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
Acked-by: Thomas Zimmermann &lt;tzimmermann@suse.de&gt;
Cc: Kevin Brace &lt;kevinbrace@bracecomputerlab.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20220713170202.1798216-10-sam@ravnborg.org
</content>
</entry>
<entry>
<title>drm/via: Embed via_verifier in via_dri1</title>
<updated>2022-07-16T07:26:19+00:00</updated>
<author>
<name>Sam Ravnborg</name>
<email>sam@ravnborg.org</email>
</author>
<published>2022-07-13T17:01:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=8f8ed7f8384f71f841bc70cbdbc2dbeeb7f4bcd5'/>
<id>urn:sha1:8f8ed7f8384f71f841bc70cbdbc2dbeeb7f4bcd5</id>
<content type='text'>
Embed the header file in via_drv.h and the code in via_dri1.
All functions are made static as there are no more external users.

Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
Acked-by: Thomas Zimmermann &lt;tzimmermann@suse.de&gt;
Cc: Kevin Brace &lt;kevinbrace@bracecomputerlab.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20220713170202.1798216-9-sam@ravnborg.org
</content>
</entry>
<entry>
<title>drm/via: Embed via_dmablit in via_dri1</title>
<updated>2022-07-16T07:26:18+00:00</updated>
<author>
<name>Sam Ravnborg</name>
<email>sam@ravnborg.org</email>
</author>
<published>2022-07-13T17:01:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=f99995a4d79b630d39541b1b053f4102f8594caf'/>
<id>urn:sha1:f99995a4d79b630d39541b1b053f4102f8594caf</id>
<content type='text'>
Embed some of the header file in via_drv.h and
the rest in via_dri1.c
While embedding deleted extra empty lines and functions that
has no external users are made static.

Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
Acked-by: Thomas Zimmermann &lt;tzimmermann@suse.de&gt;
Cc: Kevin Brace &lt;kevinbrace@bracecomputerlab.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20220713170202.1798216-8-sam@ravnborg.org
</content>
</entry>
<entry>
<title>drm/via: Embed via_irq in via_dri1</title>
<updated>2022-07-16T07:26:17+00:00</updated>
<author>
<name>Sam Ravnborg</name>
<email>sam@ravnborg.org</email>
</author>
<published>2022-07-13T17:01:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=b0b3a879258ef43cf15b0bac30b92e7c1c4ebbae'/>
<id>urn:sha1:b0b3a879258ef43cf15b0bac30b92e7c1c4ebbae</id>
<content type='text'>
All functions are made static as there are no more external users.
The file had new copyrights that are kept.

Signed-off-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
Acked-by: Thomas Zimmermann &lt;tzimmermann@suse.de&gt;
Cc: Kevin Brace &lt;kevinbrace@bracecomputerlab.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20220713170202.1798216-7-sam@ravnborg.org
</content>
</entry>
</feed>
