Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4106190imw; Tue, 12 Jul 2022 01:47:06 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vggPRygwLw727zgrVdkvZX8oMJCq4J1j+sy7TbTWRJ3FYSmpxTbZQwfMxAk55PZ8BzZx1l X-Received: by 2002:a17:907:7213:b0:726:9f27:8fc8 with SMTP id dr19-20020a170907721300b007269f278fc8mr22073453ejc.523.1657615626139; Tue, 12 Jul 2022 01:47:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657615626; cv=none; d=google.com; s=arc-20160816; b=E/Fj61MSOxX7Q3qitM3IAbsSoQeiuy8r9bORQ9f2IJkDajL0OLQYbR08/DwSNYCa02 GhZ8VKboAOotpIxg/ht82XT/qMF1euyDOxbqgA/pxgcBlUjH5lJgiEpHGBP6crPY/ceY DSotQ42ctsDihBqzu8HGTe8sOEmIc148uMFNqJjmWhW+mSnjgJ54U3vt3P3/GhpFKG0q TrxAPXasltTWhCiopDZJdn34X0YxFdilURXgMrZHqxzN3yJXCE/cgBCv77o62EhMHwRv pwApvliRX55QBw8c/mbqhOmrUoISaQOTzskRvwQdFd8ZjsuGEQm2/VUxbqaH7fn7xlN1 9AUA== 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=5QOqJ4kUVcMhzsvBi2zHV3cNg0o5rdwS2uhN70OOikU=; b=rotKO2KWLTi/m11YoI1Z4CrYmW36HH0eO8mvPjYCl1y7mjhzmozP5I7wD9hK10n6d6 RrUNrvAMDmWq0+gFsLZWmL6YHbZqRq11ikiXIzl0xXrCIVZfkx+pAmXM6OzG1pzpaDFk YNWxWL6O/JnHEsGzQei0tH4ni0RNMoW8ENGxKVvLEMmeKQLIxyG4U+2L0x3pX/bpM636 B78iqPFw2Khv/qhN7cN5lEDaD2RAwmVB8IGbPQnur3jbgYblEaMU93USovkf4vCuer90 KlRXNyIh0H+ngMvrFUMK3GN5MW4J0jk2fHWME3Vbfim2bSXtl3bdtJToKmAPHDSw78lN N1Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CvCQJM9G; 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 g10-20020aa7d1ca000000b0043a14fd20cbsi126510edp.166.2022.07.12.01.46.41; Tue, 12 Jul 2022 01:47:06 -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=CvCQJM9G; 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 S232607AbiGLIjb (ORCPT + 99 others); Tue, 12 Jul 2022 04:39:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232351AbiGLIjX (ORCPT ); Tue, 12 Jul 2022 04:39:23 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E61DB87F75 for ; Tue, 12 Jul 2022 01:39:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1657615157; 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=5QOqJ4kUVcMhzsvBi2zHV3cNg0o5rdwS2uhN70OOikU=; b=CvCQJM9GWmXkTB4valhK7TKbLcHFrvjyp8cyPCs21s3H6rAMgEemqgkXnsRMhOcZfekhRT nHGgWMc34SwymupZLvCN1A3CK6iFQtNKmVLoAOJaV5B3Nq4DK6ycKGeZLCmnXu6EcErrLb yXlZGuZBEodTOGkg1jG7s0vH5ZWAMRI= 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-391-33YfUhjRPQ6V85DPpVdaIA-1; Tue, 12 Jul 2022 04:39:10 -0400 X-MC-Unique: 33YfUhjRPQ6V85DPpVdaIA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E5694801755; Tue, 12 Jul 2022 08:39:09 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.39]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B18A5C15D58; Tue, 12 Jul 2022 08:39:09 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id E9CD018000A9; Tue, 12 Jul 2022 10:39:07 +0200 (CEST) Date: Tue, 12 Jul 2022 10:39:07 +0200 From: Gerd Hoffmann To: Geert Uytterhoeven Cc: Michel =?utf-8?Q?D=C3=A4nzer?= , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Noralf =?utf-8?Q?Tr=C3=B8nnes?= , Linux Fbdev development list , Linux/m68k , DRI Development , Linux Kernel Mailing List Subject: Re: [PATCH 1/3] drm/fourcc: Add missing big-endian XRGB1555 and RGB565 formats Message-ID: <20220712083907.3ic7bltstaskz72n@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: X-Scanned-By: MIMEDefang 2.85 on 10.11.54.8 X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On Tue, Jul 12, 2022 at 10:01:15AM +0200, Geert Uytterhoeven wrote: > Hi Gerd, > > > It IMHO is not applicable to any physical hardware. It's used by > > virtio-gpu where the supported format depends on the byte order > > (it is argb8888 in native byte order). Only virtual hardware can > > have that kind of behavior. > > > > And we can probably drop the DRM_FORMAT_HOST_* variants for 1555 and > > 565, they are not used anywhere. > > Atari DRM supports (big-endian) RGB565, so it uses > DRM_FORMAT_HOST_RGB565. Fixed big endian should use 'DRM_FORMAT_RGB565 | DRM_FORMAT_BIG_ENDIAN'. As described above DRM_FORMAT_HOST_RGB565 means bigendian on bigendian hosts and little endian on little endian hosts. Which is not correct when your hardware does big endian no matter what. take care, Gerd