Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B851AC282C5 for ; Mon, 3 Mar 2025 08:19:56 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 34F0E10E36A; Mon, 3 Mar 2025 08:19:56 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=suse.de header.i=@suse.de header.b="u8fuELkU"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="wo7Vx9o5"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="u8fuELkU"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="wo7Vx9o5"; dkim-atps=neutral Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2E2B410E367 for ; Mon, 3 Mar 2025 08:19:52 +0000 (UTC) Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id CDD381F393; Mon, 3 Mar 2025 08:19:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1740989990; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=ORlfyk39AIV6h64GBVHzsD+5cvr6Fba5/2zuRmyxY7Y=; b=u8fuELkUc5f1gDkwpnL2vJY2+JROpF7sC+DdZRGRWBRRKnAx0DBf+jv4/bSWAUuD4PIgJf o276bKBiJkwyicbqSGM9I7y7spcc4VdWBpLxs/B92kHJY+wtwVqeow9F2G4plaKX6ZPG78 J7XzBmfkiI0hp6gAqj52mSCqMTfGk5E= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1740989990; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=ORlfyk39AIV6h64GBVHzsD+5cvr6Fba5/2zuRmyxY7Y=; b=wo7Vx9o5FT5bjwLiMKOikvrACbj/iOFflXJbwksPHTNlxIHp1fhlfMo2P7YWGQcVSZdwZv pioY9NGx2HidHjDA== Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1740989990; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=ORlfyk39AIV6h64GBVHzsD+5cvr6Fba5/2zuRmyxY7Y=; b=u8fuELkUc5f1gDkwpnL2vJY2+JROpF7sC+DdZRGRWBRRKnAx0DBf+jv4/bSWAUuD4PIgJf o276bKBiJkwyicbqSGM9I7y7spcc4VdWBpLxs/B92kHJY+wtwVqeow9F2G4plaKX6ZPG78 J7XzBmfkiI0hp6gAqj52mSCqMTfGk5E= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1740989990; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=ORlfyk39AIV6h64GBVHzsD+5cvr6Fba5/2zuRmyxY7Y=; b=wo7Vx9o5FT5bjwLiMKOikvrACbj/iOFflXJbwksPHTNlxIHp1fhlfMo2P7YWGQcVSZdwZv pioY9NGx2HidHjDA== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id B16E413939; Mon, 3 Mar 2025 08:19:50 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id 1Wn5KSZmxWcEaQAAD6G6ig (envelope-from ); Mon, 03 Mar 2025 08:19:50 +0000 Message-ID: <17888ffd-4311-436b-9fec-dfb041268643@suse.de> Date: Mon, 3 Mar 2025 09:19:50 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Include ASPEED ast-drm 1.15.1 video driver in kernel tree To: Nicolas Baranger Cc: dri-devel@lists.freedesktop.org, airlied@redhat.com References: <183881a57671db7eebada5ac8cbcb8cf@3xo.fr> Content-Language: en-US From: Thomas Zimmermann Autocrypt: addr=tzimmermann@suse.de; keydata= xsBNBFs50uABCADEHPidWt974CaxBVbrIBwqcq/WURinJ3+2WlIrKWspiP83vfZKaXhFYsdg XH47fDVbPPj+d6tQrw5lPQCyqjwrCPYnq3WlIBnGPJ4/jreTL6V+qfKRDlGLWFjZcsrPJGE0 BeB5BbqP5erN1qylK9i3gPoQjXGhpBpQYwRrEyQyjuvk+Ev0K1Jc5tVDeJAuau3TGNgah4Yc hdHm3bkPjz9EErV85RwvImQ1dptvx6s7xzwXTgGAsaYZsL8WCwDaTuqFa1d1jjlaxg6+tZsB 9GluwvIhSezPgnEmimZDkGnZRRSFiGP8yjqTjjWuf0bSj5rUnTGiyLyRZRNGcXmu6hjlABEB AAHN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KP4A SAQO9xD1Zk9/61JWk8OysuIh7MXkl0fxbRKWE93XeQBhIJHQfnc+YBLprdnxR446Sh8Wn/2D Ya8cavuWf2zrB6cZurs048xe0UbSW5AOSo4V9M0jzYI4nZqTmPxYyXbm30Kvmz0rYVRaitYJ 4kyYYMhuULvrJDMjZRvaNe52tkKAvMevcGdt38H4KSVXAylqyQOW5zvPc4/sq9c= In-Reply-To: <183881a57671db7eebada5ac8cbcb8cf@3xo.fr> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-4.30 / 50.00]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_TLS_ALL(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:mid,imap1.dmz-prg2.suse.org:helo] X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi Am 03.03.25 um 09:07 schrieb Nicolas Baranger: > Dear Thomas > >> You are using NVidia's proprietary driver, right? Did you reach out >> to them wrt this problem? Or searched their support forums, online >> help, etc? If so, what are the results? > > Yes I'm using NVidia propriétary driver. > Maybe I'm wrong but I did not ask their support directly because > first, for me it seems that there is no issue with the NVidia driver > and unfortunately NVidia is not as opensource mind as Linux kernel > community (as an example you can have a look on my last PR here > https://github.com/NVIDIA/open-gpu-kernel-modules/pull/783 which had > not been reviewed since 3+ weeks... and without this PR, it's > impossible to build open or closed source NVidia drivers on mainline) I see. I do have an idea what might be happening here. You are using 6.13.1, right?  If I give you a patch file for this kernel, are you able to apply it (with 'git am') for testing and report the kernel's logging output? Best regards Thomas > > Second, I thought I already report it here but on my system using a > recent kernel and embeded ast 0.1.0 driver has a very poor rendering > and graphic is very slow, twinkle is high, had poor colors and it's > happenning even if the NVidia driver is unloaded > The screen flickering is high too and it's like if I was using an old > cathode ray tube monitor (I'm using an LCD monitor which display a > nice and eyes confortable picture when using ast 1.15.1 driver or when > displaying directly the video output of the Nvidia GPU(using HDMI > output)). > Third, approximately from Linux 6.10+ using the embeded ast driver I > have some lag when sliding a window on Gnome desktop (Xorg not > Wayland) and CPU is highly used (some coreS at 100%), but I do not > have those lag with ast 1.15.1 and CPU is less used (1 core at less > than 80% max) > For the moment, I think Linux 6.12.9 is the worst I constat > > Last, I found that Linux 6.1.128 is working perfectly out of the box > with embeded ast 0.1.0 driver and there is a manifest lost of > performances with Vulkan and Nvidia prime render offload when > upgrading to Linux 6.2 (using same NVidia driver version, I did test > those 3 versions  535.216.01, 550.142, and 550.144.03 with similar > results). > But in Linux 6.2, except the lost of performances, I did not constat > the poor rendering and twinkle on the screen nor lag when sliding a > window on the desktop or too high CPU usage. > > So I suspect there is something else introduced between Linux 6.2 and > mainline which cause this behavior. > > I'm continuing bissection and I'm sorry, it's not as fast as I would > as each tests tooks some times and I must never tell something wrong > to git if I don't want to restart all the work... > > Thanks again for answer and help > > Kind regards > Nicolas Baranger > > > Le 2025-02-28 11:06, Thomas Zimmermann a écrit : > >> Hi >> >> Am 11.02.25 um 19:15 schrieb Nicolas Baranger: >> >>> Dear maintener >>> >>> 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). >>> >>> ASPEED video driver is availiable here: >>> https://www.aspeedtech.com/file/support/Linux_DRM_1.15.1_4.tar.gz >>> >>> But it only work for LTS kernel >>> So I modify the DKMS package and I build a new Debian DKMS package >>> with the adapted  source. >>> My patch can be find here : >>> https://xba.soartist.net/ast-drm_nba_20250211/nba-dkms/astdiff.patch >>> See the README: >>> https://xba.soartist.net/ast-drm_nba_20250211/nba-dkms/README >>> >>> 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) >> >> You are using NVidia's proprietary driver, right? Did you reach out >> to them wrt this problem? Or searched their support forums, online >> help, etc? If so, what are the results? >> >> Best regards >> Thomas >> >>> 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' >>> It's working fine as you can see on this video : >>> https://xba.soartist.net/ast-drm_nba_20250211/vulcan_nvidia_prime_render_offload_on_ast_vga_card.webm >>> I upload all the work I've done here : >>> https://xba.soartist.net/ast-drm_nba_20250211/ >>> >>> See the global README : >>> https://xba.soartist.net/ast-drm_nba_20250211/README >>> >>> and the README in nba-kernel sub-directory : >>> https://xba.soartist.net/ast-drm_nba_20250211/nba-kernel/README >>> >>> 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-? ? >>> If you need more explanations, do not hesitate to contact me, I >>> would be happy to help >>> >>> Kind regards >>> Nicolas Baranger -- -- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstrasse 146, 90461 Nuernberg, Germany GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman HRB 36809 (AG Nuernberg)