From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 10133225A39 for ; Wed, 10 Dec 2025 15:41:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765381315; cv=none; b=Lpzyw8yi4MckpOEOpeIA1axW9iGPEUXsTxBTZE6ZKCVUhPZCgkw2ok/m4aG3qrHra/HHMYD7JRFKCkfkan0/B4iK7mu77DHb6kP1223pYxU6knkNw4OXLMhTnonsAB2n16OLr4lJv4JhQs2p1O5y9SdiN7hUP5fXeE4fwfmCxMk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765381315; c=relaxed/simple; bh=H91FvXye/p3Ax3t9sUeCytkDIk7qTS9F614Mzunztpo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=q2ZF8m60GzzgRicFlnoU2WHLRo6lC5P3WegEhlS6X8b8zZGx2KrCz/WYZjQvN/RKlZYKn87iRfdPJ9XpXHKNBEJWdXJB27R4u7bru55NLgnaOc7TsRRVShS1zZuhXkQl3ulVGLwPS2AiaPCAarCci/E+pVC5KKupe1OctoZSOew= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=rS+8i8ao; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=1UJ9wEXp; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=DOgqR/IG; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=wl4Y5U40; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="rS+8i8ao"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="1UJ9wEXp"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="DOgqR/IG"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="wl4Y5U40" 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 D3C645BE5B; Wed, 10 Dec 2025 15:41:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1765381312; 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=JsVanSWTtcw6iaCOuH8gqDVVFYG/RhHuyOF27f70f18=; b=rS+8i8aoHD4NKzxH3/00EiwJI/JRyDNj/yGh0suD48hEo1xcpNt0WBgB11hMM3mTy9aYSx NOhCl2SefQ3WKaTArB1iAObREg0wUE3eWwGhrPA/iQkDl1iua2Lpd24VFIDrW5K6MltCKm Bq4k5m1hRKes1zvO9e5++iSYUwUhV9c= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1765381312; 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=JsVanSWTtcw6iaCOuH8gqDVVFYG/RhHuyOF27f70f18=; b=1UJ9wEXp1mSpeVYsb2ClLDd+/JZodpXS9/isU0B2N73KrDdBZTt1zgOLqVVK6720BVOZgs rwyMHgH22lHGvoBw== Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1765381310; 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=JsVanSWTtcw6iaCOuH8gqDVVFYG/RhHuyOF27f70f18=; b=DOgqR/IG3TYLWpi9iHm/fhXYlqgM3VHO5ZpuQQVWy+QjdTuOEo/JhE9xM941Aw/p4fihWA 8TWspmEfomY/9YLV+XoOJGWjM5Vz1uPXT2UJ2SdhwCkr5SC+IXRLvaJT1aP1X54HOpKk1M /3aEwDOKe4KgIRJFRCSfB/tf0w/b8m0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1765381310; 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=JsVanSWTtcw6iaCOuH8gqDVVFYG/RhHuyOF27f70f18=; b=wl4Y5U40ctyB4jZm0pN3aQB0yOQVwsbJm5wluoNgjyqf9f511jrWPoXsGa0qcdF47ahlRg tBAGSB50zcF2PHAw== 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 A97003EA65; Wed, 10 Dec 2025 15:41: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 Yz/OJ76UOWlFLQAAD6G6ig (envelope-from ); Wed, 10 Dec 2025 15:41:50 +0000 Message-ID: Date: Wed, 10 Dec 2025 16:41:50 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] drm/ast: Fix big-endian support To: =?UTF-8?Q?Ren=C3=A9_Rebe?= Cc: tpearson@raptorengineering.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, airlied@redhat.com References: <12407aa9-a084-46a1-98cb-9649e7f24098@suse.de> <20251209.131329.130523044849026405.rene@exactco.de> <20251210.163344.1485666712792595073.rene@exactco.de> 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 AAHNJ1Rob21hcyBaaW1tZXJtYW5uIDx0emltbWVybWFubkBzdXNlLmRlPsLAjgQTAQgAOAIb AwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgBYhBHIX+6yM6c9jRKFo5WgNwR1TC3ojBQJftODH AAoJEGgNwR1TC3ojx1wH/0hKGWugiqDgLNXLRD/4TfHBEKmxIrmfu9Z5t7vwUKfwhFL6hqvo lXPJJKQpQ2z8+X2vZm/sl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.rene@exactco.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-4.29 / 50.00]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.19)[-0.947]; MIME_GOOD(-0.10)[text/plain]; FUZZY_RATELIMITED(0.00)[rspamd.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_FIVE(0.00)[5]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; DBL_BLOCKED_OPENRESOLVER(0.00)[xcode_sparc_t4_1:email,suse.com:url,imap1.dmz-prg2.suse.org:helo,suse.de:mid,suse.de:email] X-Spam-Level: X-Spam-Flag: NO X-Spam-Score: -4.29 Hi Am 10.12.25 um 16:33 schrieb René Rebe: > Hallo, > > On Wed, 10 Dec 2025 09:55:50 +0100, Thomas Zimmermann wrote: > ... >>>> Does that fix the color corruption? >>> Following your suggestions conversion does not want to just work: >>> >>> root@XCODE_SPARC_T4_1:~# dmesg | tail >>> [ 105.444761] ast 0000:0a:00.0: AST 2200 detected >>> [ 105.444947] ast 0000:0a:00.0: [drm] dram MCLK=266 Mhz type=2 >>> bus_width=32 >>> [ 105.444963] ast 0000:0a:00.0: [drm] Using analog VGA >>> [ 105.445470] [drm] Initialized ast 0.1.0 for 0000:0a:00.0 on minor 0 >>> [ 105.673289] ast 0000:0a:00.0: [drm] format BX24 little-endian >>> (0x34325842) not supported >>> [ 105.673302] ast 0000:0a:00.0: [drm] No compatible format found >>> [ 105.673348] ast 0000:0a:00.0: [drm] *ERROR* fbdev: Failed to setup >>> emulation (ret=-22) >>> [ 105.901306] ast 0000:0a:00.0: [drm] format BX24 little-endian >>> (0x34325842) not supported >>> [ 105.901319] ast 0000:0a:00.0: [drm] No compatible format found >>> [ 105.901350] ast 0000:0a:00.0: [drm] *ERROR* fbdev: Failed to setup >>> emulation (ret=-22) >> Oh well... >> >> There's a very simple patch attach. Does it fix the problem? > Yes, only leaving the hardcoded swapping from my patch liek this fixes > the byte-swapped output as expected on the sparc64 Sun T4. Great. > > How would you like me to go from here? Just use the chip_id to force > swapping and enable hw swapper for pre-AST2400 chips or fix the > generic format selection to work as you had suggested? > > Does the ast_primary_plane_formats need to byte swapped formats for it > to work? I'll send out a full patch that implements the byte swapping. Once reviewed, it can be merged quickly. Can I add your Tested-by tag to the patch? Best regards Thomas > > Thanks for sticking with it! > > René > >> Best regards >> Thomas -- -- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstr. 146, 90461 Nürnberg, Germany, www.suse.com GF: Jochen Jaser, Andrew McDonald, Werner Knoblich, (HRB 36809, AG Nürnberg)