Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4104504imw; Tue, 12 Jul 2022 01:43:55 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sF9O+JVw483hGfW7F++JI84qOn1dHk8y19qQnOaicgETKU/BSCUDeMTCCJ0Ve1aA3KppWv X-Received: by 2002:a17:907:3e11:b0:72b:49d1:2054 with SMTP id hp17-20020a1709073e1100b0072b49d12054mr12731386ejc.78.1657615435310; Tue, 12 Jul 2022 01:43:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657615435; cv=none; d=google.com; s=arc-20160816; b=B8YHu3zx+U+Ds72YD03Ai5+1mqV4fFRO+Le4aNzVUKpxRb5m/yKraenXQWjA6H3Yji R1uh3ITifdaW6jVueVh4LVuwqnbPnyUvon8LFcHFnmULeHoGCe4PhJtTlK94V5HsouBu L7BowV80YYGjUf97M1KZgs01R5yzF07bG0ToKNaQxJR4oNkXxkhsa0DJg+4VB8WEUjhx UoekT1E42Ar5juhx0r/Aa5jipPG0hdYaXQ4VUrur9eGJ4Y/G19RkOd8dUfhgVSoe4gvX N/YR72XiW5Bwyvj3mTP/EUbz+scwo/7Ea1Z/8r9zsDNUr5kftNlIhtHx5cWrHJ7Eeiv8 +gug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=tQxIBj6PcKC66/v1neohOf1D/KG+opt9mK5QyhmwE5w=; b=ydlu4AOv3nxf97rmdoRhFF5tz0K3UiMlHFZsR+qGaO6w0EIpIQyd0Gt30kKTnVDhbW 3czvL2iyrY/Ow476Bi6GtgthXgL8STFLBauC2K6r0irLTlKUt6n0+a0TkBuqWPxD8WC6 TMHxVObmMs0TaenqGP8FRXSIbMHNdSn8gmczRyghFvzRAk3KukkoYoyfcO/nlt6M7+WD Cx07oE+I19Kks+NUgfBUvXokdimX5iLvXp2VLTlRmVJxmq+3bsgVy8pjmlrVOGIQ+oUi WzNDjBGw8146GU6UomMODA+7M1FY/xJTN/RmHSuHZ0kHlM2qOHqE2978pgHlDZh006VG HmjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Z6cwDODO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ne35-20020a1709077ba300b0072b87a1f123si399228ejc.511.2022.07.12.01.43.29; Tue, 12 Jul 2022 01:43:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Z6cwDODO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232786AbiGLIcj (ORCPT + 99 others); Tue, 12 Jul 2022 04:32:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232724AbiGLIc3 (ORCPT ); Tue, 12 Jul 2022 04:32:29 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 94CF7A5E55 for ; Tue, 12 Jul 2022 01:32:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1657614729; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=tQxIBj6PcKC66/v1neohOf1D/KG+opt9mK5QyhmwE5w=; b=Z6cwDODOb4PxM9FKaLNotLpBIjTfuxVxCwKqpW/jrVTZO7y531yK+TO1XZHgKPsb+w4JIo 8uFc6Nf4cDwlErMbJHVnCch1yjm5G/o/XUfTabyZQiYWepxqZIMfOZG+tNJBZLJ4gqpAjy ksILufxKoJKqeQ0Qq5LGAM1loU3xDZA= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-16-97XA7a_IMQmseuEGgQzkuw-1; Tue, 12 Jul 2022 04:32:00 -0400 X-MC-Unique: 97XA7a_IMQmseuEGgQzkuw-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 087E1185A7B2; Tue, 12 Jul 2022 08:32:00 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.39]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C06E8492C3B; Tue, 12 Jul 2022 08:31:59 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id EF3FC18000A9; Tue, 12 Jul 2022 10:31:57 +0200 (CEST) Date: Tue, 12 Jul 2022 10:31:57 +0200 From: Gerd Hoffmann To: Geert Uytterhoeven Cc: Linux Fbdev development list , Thomas Zimmermann , Michel =?utf-8?Q?D=C3=A4nzer?= , David Airlie , Linux/m68k , Linux Kernel Mailing List , Noralf =?utf-8?Q?Tr=C3=B8nnes?= , DRI Development Subject: Re: [PATCH 1/3] drm/fourcc: Add missing big-endian XRGB1555 and RGB565 formats Message-ID: <20220712083157.wtujadjcyboerxcl@sirius.home.kraxel.org> References: <0744671ac096a12f0d538906bd324efa71b11400.1657300532.git.geert@linux-m68k.org> <96a87833-d878-dde9-e335-9ea51a4ba406@mailbox.org> <20220712074715.kopstlvz4q6npaye@sirius.home.kraxel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220712074715.kopstlvz4q6npaye@sirius.home.kraxel.org> X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > So adding support for bigendian formats to the driver shouldn't be > much of a problem. The vram will continue to run in little endian > RGB565, the shadow will be big endian RGB565, and the driver must > byteswap when copying. For completeness: The other obvious option (for fbcon) would be to handle the byteswapping in the generic drm fbdev emulation, which would have the advantage that it would be more generic and would not depend on the drm driver supporting the bigendian rgb565 formats ... take care, Gerd