<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/gpu/drm/ast/ast_mm.c, branch linux-rolling-stable</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-rolling-stable</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-rolling-stable'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2025-03-12T07:38:12Z</updated>
<entry>
<title>drm/ast: Remove vram_fb_available from struct ast_device</title>
<updated>2025-03-12T07:38:12Z</updated>
<author>
<name>Thomas Zimmermann</name>
</author>
<published>2025-03-05T16:30:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e5f953b8eae7249bf50f86d79f80327621edc2d5'/>
<id>urn:sha1:e5f953b8eae7249bf50f86d79f80327621edc2d5</id>
<content type='text'>
Helpers compute the offset and size of the available framebuffer
memory. Remove the obsolete field vram_fb_available from struct
ast_device. Also define the cursor-signature size next to its only
user.

v2:
- initialize plane size

Signed-off-by: Thomas Zimmermann &lt;tzimmermann@suse.de&gt;
Reviewed-by: Jocelyn Falempe &lt;jfalempe@redhat.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20250305163207.267650-7-tzimmermann@suse.de
</content>
</entry>
<entry>
<title>drm/ast: Add VGACR99 register constants</title>
<updated>2025-03-12T07:38:10Z</updated>
<author>
<name>Thomas Zimmermann</name>
</author>
<published>2025-03-05T16:30:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a958c7f13b0b4ffd41384293d307b9d6218fcc87'/>
<id>urn:sha1:a958c7f13b0b4ffd41384293d307b9d6218fcc87</id>
<content type='text'>
Add register constants for VGACR99 and use them when detecting the
size of the VGA memory. Aligns the code with the programming manual.
Also replace literal size values with Linux' SZ_ size constants.

Signed-off-by: Thomas Zimmermann &lt;tzimmermann@suse.de&gt;
Reviewed-by: Jocelyn Falempe &lt;jfalempe@redhat.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20250305163207.267650-4-tzimmermann@suse.de
</content>
</entry>
<entry>
<title>drm/ast: Add VGACRAA register constants</title>
<updated>2025-03-12T07:38:10Z</updated>
<author>
<name>Thomas Zimmermann</name>
</author>
<published>2025-03-05T16:30:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9f711d1877e052171ae21da4cb831e7184b9872e'/>
<id>urn:sha1:9f711d1877e052171ae21da4cb831e7184b9872e</id>
<content type='text'>
Add register constants for VGACRAA and use them when detecting the
size of the VGA memory. Aligns the code with the programming manual.

Signed-off-by: Thomas Zimmermann &lt;tzimmermann@suse.de&gt;
Reviewed-by: Jocelyn Falempe &lt;jfalempe@redhat.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20250305163207.267650-3-tzimmermann@suse.de
</content>
</entry>
<entry>
<title>drm/ast: Replace AST_VIDMEM_SIZE_ with Linux SZ_ constants</title>
<updated>2025-03-12T07:38:09Z</updated>
<author>
<name>Thomas Zimmermann</name>
</author>
<published>2025-03-05T16:30:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2b7970e9a632b1e45ccf52b620079ab9ea5cad1a'/>
<id>urn:sha1:2b7970e9a632b1e45ccf52b620079ab9ea5cad1a</id>
<content type='text'>
Ast's AST_VIDMEM_SIZE_ constants enumerate supported video-memory
sizes from 8 MiB to 128 MiB. Replace them with Linux' SZ_ constants
of the same value. When expanded, the literal values remain the same.

The size constant for 128 MiB is unused and the default size is not
necessary. Remove both of them.

Signed-off-by: Thomas Zimmermann &lt;tzimmermann@suse.de&gt;
Reviewed-by: Jocelyn Falempe &lt;jfalempe@redhat.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20250305163207.267650-2-tzimmermann@suse.de
</content>
</entry>
<entry>
<title>drm/ast: Rename AST_IO_CRTC_PORT to AST_IO_VGACRI</title>
<updated>2023-10-19T11:55:33Z</updated>
<author>
<name>Thomas Zimmermann</name>
</author>
<published>2023-10-17T08:32:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c79479fa215c56b4bf59add12e1a92ca6310e611'/>
<id>urn:sha1:c79479fa215c56b4bf59add12e1a92ca6310e611</id>
<content type='text'>
Rename AST_IO_CRTC_PORT to AST_IO_VGACRI to align naming
in the driver with documentation. No functional changes.

Signed-off-by: Thomas Zimmermann &lt;tzimmermann@suse.de&gt;
Reviewed-by: Jocelyn Falempe &lt;jfalempe@redhat.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20231017083653.10063-10-tzimmermann@suse.de
</content>
</entry>
<entry>
<title>drm/ast: Enable and unlock device access early during init</title>
<updated>2023-06-27T12:26:32Z</updated>
<author>
<name>Thomas Zimmermann</name>
</author>
<published>2023-06-21T12:53:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5b71707dd13cb611bba07ab5f38f92b8f7859d6e'/>
<id>urn:sha1:5b71707dd13cb611bba07ab5f38f92b8f7859d6e</id>
<content type='text'>
POST and memory management contains code to enable access to the
device's memory spaces. This is too late. Consolidate this code at
the beginning of the device initialization.

Signed-off-by: Thomas Zimmermann &lt;tzimmermann@suse.de&gt;
Reviewed-by: Jocelyn Falempe &lt;jfalempe@redhat.com&gt;
Tested-by: Jocelyn Falempe &lt;jfalempe@redhat.com&gt; # AST2600
Link: https://patchwork.freedesktop.org/patch/msgid/20230621130032.3568-8-tzimmermann@suse.de
</content>
</entry>
<entry>
<title>drm/ast: Rename struct ast_private to struct ast_device</title>
<updated>2023-03-01T09:28:42Z</updated>
<author>
<name>Thomas Zimmermann</name>
</author>
<published>2023-02-21T15:57:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=37b42cf904e2ed92a612aa09481385cc9eb2a6ce'/>
<id>urn:sha1:37b42cf904e2ed92a612aa09481385cc9eb2a6ce</id>
<content type='text'>
The data structure struct ast_private represents an AST device. Its
name comes from the time when it was allocated and stored separately
in struct drm_device.dev_private. The DRM device is now embedded, so
rename struct ast_private to struct ast_device.

Signed-off-by: Thomas Zimmermann &lt;tzimmermann@suse.de&gt;
Reviewed-by: Javier Martinez Canillas &lt;javierm@redhat.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20230221155745.27484-4-tzimmermann@suse.de
</content>
</entry>
<entry>
<title>drm/ast: Convert ast to SHMEM</title>
<updated>2022-10-16T09:16:50Z</updated>
<author>
<name>Thomas Zimmermann</name>
</author>
<published>2022-10-13T11:29:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f2fa5a99ca81ce1056539e83c705f3d6bec62e31'/>
<id>urn:sha1:f2fa5a99ca81ce1056539e83c705f3d6bec62e31</id>
<content type='text'>
Replace GEM VRAM helpers with GEM SHMEM helpers in ast. Avoids OOM
errors when allocating video memory. Also adds support for dma-buf
functionality.

Aspeed display hardware supports display resolutions of FullHD and
higher at 32-bit pixel depth. But the amount of video memory is in
the range of 8 MiB to 32 MiB, which adds constraints to the actually
available resolutions. As atomic modesetting with VRAM helpers
requires double buffering in video memory, ast fails to pageflip
in some configurations. For example, FullHD with an active cursor
plane does not work on devices with 16 MiB of video memory.

Resolve this problem by converting the ast driver to GEM SHMEM helpers.
Keep the buffer objects in system memory and copy to video memory
on pageflips via shadow-plane helpers. Userspace used to require shadow
planes for decent performance, but that's now provided by the driver.
To replace the memory management, the patch also implements damage
handling for the primary plane.

With GEM SHMEM helpers, dma-buf import and export is now supported
by ast. This allows easier screen mirroring across devices or with
an Aspeed-based BMC. A corresponding feature request is available
at [1].

v2:
	* fix typos in commit message (Jocelyn)

Signed-off-by: Thomas Zimmermann &lt;tzimmermann@suse.de&gt;
Reviewed-by: Jocelyn Falempe &lt;jfalempe@redhat.com&gt;
Tested-by: Jocelyn Falempe &lt;jfalempe@redhat.com&gt;
Link: https://lore.kernel.org/dri-devel/20220901124451.2523077-1-oushixiong@kylinos.cn/ # [1]
Link: https://patchwork.freedesktop.org/patch/msgid/20221013112923.769-8-tzimmermann@suse.de
</content>
</entry>
<entry>
<title>drm/ast: Use managed interfaces for framebuffer write combining</title>
<updated>2021-09-23T07:26:09Z</updated>
<author>
<name>Thomas Zimmermann</name>
</author>
<published>2021-09-16T18:15:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=23b405bff2216aff9d498c6031405e0ed8908ae3'/>
<id>urn:sha1:23b405bff2216aff9d498c6031405e0ed8908ae3</id>
<content type='text'>
Replace arch_phys_wc_add() and arch_io_reserve_memtype_wc() with
the rsp managed functions. Allows for removing the cleanup code
for memory management

Signed-off-by: Thomas Zimmermann &lt;tzimmermann@suse.de&gt;
Reviewed-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20210916181601.9146-4-tzimmermann@suse.de
</content>
</entry>
<entry>
<title>drm/ast: Remove references to struct drm_device.pdev</title>
<updated>2021-01-06T14:38:30Z</updated>
<author>
<name>Thomas Zimmermann</name>
</author>
<published>2020-12-01T10:35:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=46fb883c3d0d8a823ef995ddb1f9b0817dea6882'/>
<id>urn:sha1:46fb883c3d0d8a823ef995ddb1f9b0817dea6882</id>
<content type='text'>
Using struct drm_device.pdev is deprecated. Convert ast to struct
drm_device.dev. No functional changes.

Signed-off-by: Thomas Zimmermann &lt;tzimmermann@suse.de&gt;
Acked-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20201201103542.2182-4-tzimmermann@suse.de
</content>
</entry>
</feed>
