<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Dear Thomas<br /><br /></p>
<p>Thanks for answer and help.<br /><br />Yes, due to .date total removal in linux 6.14 (<a href="https://github.com/torvalds/linux/commit/cb2e1c2136f71618142557ceca3a8802e87a44cd">https://github.com/torvalds/linux/commit/cb2e1c2136f71618142557ceca3a8802e87a44cd</a>) the last DKMS sources are : <br /><span style="white-space: nowrap;"><a href="https://xba.soartist.net/ast-drm_nba_20250211/nba-dkms/nba_last_src_20250212/src/" target="_blank" rel="noopener noreferrer">https://xba.soartist.net/ast-drm_nba_20250211/nba-dkms/nba_last_src_20250212/src/</a></span><br /><br /></p>
<p>You can also find this sources in directory drivers/gpu/drm/ast_new of the tarball <a href="https://xba.soartist.net/ast-drm_nba_20250211/nba-kernel/linux-6.14.0.1-ast1.15.1-rc2_nba0_20250212.tar.gz">https://xba.soartist.net/ast-drm_nba_20250211/nba-kernel/linux-6.14.0.1-ast1.15.1-rc2_nba0_20250212.tar.gz</a><br /><br /></p>
<p>I'm surprised by the fact the in-kernel driver 0.1.0 is more advanced than Aspeed version 1.15.1 because on my system it has very poor rendering and is very slow, twinkle is high and had poor colors.<br />The screen flickering is high and it's like if I was using a very old cathode ray tube monitor (In fact I'm using a SAMSUNG LCD monitor which is perfectly functionnal and which display a nice and eyes confortable picture when using ast 1.15.1 driver or the video output of the Nvidia GPU ). <br /><br /><br />My testing system is a test Xeon server with an AST2400 BMC with its AST VGA card as the main video output (to be able to have a screen on the BMC KVM) +a discrete NVIDIA GPU I'm using for GPGPU and 3D rendering with Nvidia prime render offload.<br />What I constat with embed kernel driver 0.1.0 is that the Xeon processor is doing the video job for example when watching a video, and it's not the case with version 1.15.1 even when displaying on the AST VGA card a vulkan rotating cube (compute by nvidia GPU with nvidia prime but display by the AST VGA card of the AST2400). <br />Note that with in-kernel version 0.1.0 it's nearly impossible to make round the vulkan cube at more than half a round by second where it's working (very) fine for a 32MB video memory card with version 1.15.1 as you can see in the video present in the online directory <br /><br />I'm not developer or kernel developer so be sure that I wouldn't have done all this work if the in-kernel ast version 0.1.0 was usable out-of-the-box</p>
<p>Sure you can give me a patch I will test on this server (building mainline+ast_new yesterday tooks 19 minutes on this server) </p>
<p>PS: <br />here is a 'git diff linux-6.14.0.1-ast-rc2/drivers/gpu/drm/ast linux-6.14.0.1-ast-rc2/drivers/gpu/drm/ast_new'<br /><a href="https://xba.soartist.net/ast-drm_nba_20250211/nba-dump/ast-fullpatch.patch">https://xba.soartist.net/ast-drm_nba_20250211/nba-dump/ast-fullpatch.patch</a><br />Diff is about 250+ kb so the 2 drivers seems to have nothing to do with each others...<br /><br /></p>
<p><span style="font-size: 10pt;">Thanks again for help<br /><br />Kind regards<br />Nicolas </span></p>
<p><br /></p>
<p id="reply-intro">Le 2025-02-13 08:57, Thomas Zimmermann a écrit :</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"><span style="white-space: nowrap;">Hi Nicolas</span><br /><br /><span style="white-space: nowrap;">Am 12.02.25 um 19:58 schrieb Nicolas Baranger:</span>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><span style="white-space: nowrap;">Dear maintener</span></blockquote>
<br /><span style="white-space: nowrap;">That's mostly me and Jocelyn.</span><br /><br />
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><br />I did include ast-drm driver version 1.15.1 (in replacement of version 0.1.0) on the new mainline kernel too (6.14.0-rc2) and I issue a new dkms patch<br /><br /><span style="white-space: nowrap;">Last DKMS patch had been sucessfully tested on mainline.</span><br />And last ast.ko version 1.15.1 included in linux tree had also been sucessfully tested<br /><br /><span style="white-space: nowrap;">Online directory is updated with :</span><br /><span style="white-space: nowrap;">- new DKMS patch</span><br /><span style="white-space: nowrap;">- new DKMS srouces</span><br /><span style="white-space: nowrap;">- new DKMS debian package</span><br /><span style="white-space: nowrap;">- new tarball of mainline included ast_new ported in kernel tree</span><br /><span style="white-space: nowrap;">- new kernel debian package (mainline with ast_new)</span><br /><br /><br />NB: online directory is here: <a href="https://xba.soartist.net/ast-drm_nba_20250211/" target="_blank" rel="noopener noreferrer">https://xba.soartist.net/ast-drm_nba_20250211/</a><br /><br /><span style="white-space: nowrap;">Please let me know what I should do to see this change in linux-next</span></blockquote>
<br />I'm having a little trouble with figuring out which of the many driver sources is the relevant one. Am I correct to assume it's the one at<br /><br /><span style="white-space: nowrap;"><a href="https://xba.soartist.net/ast-drm_nba_20250211/nba-dkms/nba_last_src_20250212/src/" target="_blank" rel="noopener noreferrer">https://xba.soartist.net/ast-drm_nba_20250211/nba-dkms/nba_last_src_20250212/src/</a></span><br /><br /><br />About that driver: Although the official driver reports an ancient version number, it is an up-to-date driver. It is actually more up-to-date than Aspeed's package. Both drivers share source code and a few years ago there was an effort to bring the kernel's driver up to the same feature set. Since then, the kernel's driver has been updated, reworked and improved.<br /><br />About the performance: From what I can tell, the only significant difference in these drivers is memory management. Your ast_new driver uses an older algorithm that we replaced quite a few releases ago. The old version was unreliable on systems with little video memory, so we had to replace it. I don't know why the new code should be slower though.<br /><br />If I give you a patch against a recent Linux kernel, are you capable of building the patched kernel and testing that change on your system?<br /><br /><span style="white-space: nowrap;">Best regards</span><br />Thomas<br /><br /><br />
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><br /><span style="white-space: nowrap;">Thanks for help</span><br /><br /><span style="white-space: nowrap;">Kind regards</span><br /><span style="white-space: nowrap;">Nicolas Baranger</span><br /><br /><br /><span style="white-space: nowrap;">Le 2025-02-11 19:15, Nicolas Baranger a écrit :</span><br /><br />
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><span style="white-space: nowrap;">Dear maintener</span><br /><br />For my own usage, I did make work the ASPEED ast-drm 1.15.1 video driver on mainline kernel (6.13.0 + 6.13.1).<br /><br /><span style="white-space: nowrap;">ASPEED video driver is availiable here:</span><br /><span style="white-space: nowrap;"><a href="https://www.aspeedtech.com/file/support/Linux_DRM_1.15.1_4.tar.gz" target="_blank" rel="noopener noreferrer">https://www.aspeedtech.com/file/support/Linux_DRM_1.15.1_4.tar.gz</a></span><br /><br /><span style="white-space: nowrap;">But it only work for LTS kernel</span><br />So I modify the DKMS package and I build a new Debian DKMS package with the adapted source.<br /><span style="white-space: nowrap;">My patch can be find here :</span><br /><span style="white-space: nowrap;"><a href="https://xba.soartist.net/ast-drm_nba_20250211/nba-dkms/astdiff.patch" target="_blank" rel="noopener noreferrer">https://xba.soartist.net/ast-drm_nba_20250211/nba-dkms/astdiff.patch</a></span><br /><span style="white-space: nowrap;">See the README:</span><br /><span style="white-space: nowrap;"><a href="https://xba.soartist.net/ast-drm_nba_20250211/nba-dkms/README" target="_blank" rel="noopener noreferrer">https://xba.soartist.net/ast-drm_nba_20250211/nba-dkms/README</a></span><br /><br />Using this new 'ast 1.15.1' driver, performance are amazing compared to the 'ast' driver include in kernel tree, specially when using a discrete GPU and offloading VULKAN / 3D on it but using AST VGA card as the main video card and as the main and only video output (the discrete GPU is used only for offloading 3D or for cuda/opencl)<br /><br />So to make things easier, I include the new 'ast 1.15.1' driver in kernel tree as AST_NEW : linux-6.13.1-ast/drivers/gpu/drm/ast_new'<br /><span style="white-space: nowrap;">It's working fine as you can see on this video :</span><br /><a href="https://xba.soartist.net/ast-drm_nba_20250211/vulcan_nvidia_prime_render_offload_on_ast_vga_card.webm" target="_blank" rel="noopener noreferrer">https://xba.soartist.net/ast-drm_nba_20250211/vulcan_nvidia_prime_render_offload_on_ast_vga_card.webm</a> I upload all the work I've done here :<br /><span style="white-space: nowrap;"><a href="https://xba.soartist.net/ast-drm_nba_20250211/" target="_blank" rel="noopener noreferrer">https://xba.soartist.net/ast-drm_nba_20250211/</a></span><br /><br /><span style="white-space: nowrap;">See the global README :</span><br /><span style="white-space: nowrap;"><a href="https://xba.soartist.net/ast-drm_nba_20250211/README" target="_blank" rel="noopener noreferrer">https://xba.soartist.net/ast-drm_nba_20250211/README</a></span><br /><br /><span style="white-space: nowrap;">and the README in nba-kernel sub-directory :</span><br /><span style="white-space: nowrap;"><a href="https://xba.soartist.net/ast-drm_nba_20250211/nba-kernel/README" target="_blank" rel="noopener noreferrer">https://xba.soartist.net/ast-drm_nba_20250211/nba-kernel/README</a></span><br /><br />I'm not a developer so please let me know if I made the things the right way and if this new 'ast 1.15.1' driver can be ported to linux-next or linux-? ?<br />If you need more explanations, do not hesitate to contact me, I would be happy to help<br /><br /><span style="white-space: nowrap;">Kind regards</span><br /><span style="white-space: nowrap;">Nicolas Baranger</span></blockquote>
</blockquote>
</div>
</blockquote>
</body></html>