Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4138886imw; Tue, 12 Jul 2022 02:34:41 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sl647icadiVnlpJA9B4uRYlUo3F0svIgkcSf4iIkFowV0+qJlKdlL3m0PqcuDlXlyXoeJd X-Received: by 2002:a17:90b:384f:b0:1ef:e95d:de66 with SMTP id nl15-20020a17090b384f00b001efe95dde66mr3134844pjb.174.1657618481028; Tue, 12 Jul 2022 02:34:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657618481; cv=none; d=google.com; s=arc-20160816; b=CDyYsTbDaHM9ck4Lt8EHFgPBG8AU7Pu92mWAJ/onZjofJslIrpoe3ZCOfmbYD3VXyE y/WOykpPX5b+sxfuiBRnXUoZzQ6j3v6VKirYecRY9m7zL1z9zX0twVQt1gjVIBfaiQud tKnLUDZMZBXnl8ySciFDdyv7gPr8rPeUS/SmHXHq06RIDwvKrf2xQg5/ROL8/GLLfmrU kALLn/qpPtXFHgfXt7T4En7fMdTQ0MK1oQTq2m0CAXAnS7Fpi/HxjhHB/skBpszkl6OV mpc5zBV3M6TWTxzul42JsyaSoXsj69ZUKcMMtti/ibKRIiS1IgGjPq3cV0ld1zOaVrjC V/yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=eOWDCv9A9OzGANt1LYD/apCww3Zg3y5nXWFDxBFBkYA=; b=wmdH9In/SsH3p45gX6DKplb/BVrpuitYthr/Lkr/s96LVYHzpQOhFYUxP9K43UIdsk wgnnkKe7cC4oXYb0B1wSFUyAf6Vw0ajl29qYHdxCboU1CY5BqPx0jH4XyFm6pww1sdQa 4moZFtRiSNDnM53rw7eefhBdyV1Knje3HN3qcbK/PQgwOlm43LEb1XFQcSphv4ZsUbIA As/zrNlTjX82d9Zp9VYziLgoiC9FctZwuqexM+0xMRjMEXmV9DoB5O1V6X7aAOQokaam SvN/FxuCBd9jzui9vL15bz+4t5RpFvduKxJ9aN0egBh0XYZeJnvNMFNTHZ0REpJ1kBBF qPRw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r16-20020a632b10000000b0040d44d5eb03si13259264pgr.630.2022.07.12.02.34.28; Tue, 12 Jul 2022 02:34:41 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232129AbiGLJK6 convert rfc822-to-8bit (ORCPT + 99 others); Tue, 12 Jul 2022 05:10:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229621AbiGLJK5 (ORCPT ); Tue, 12 Jul 2022 05:10:57 -0400 Received: from mail-qt1-f180.google.com (mail-qt1-f180.google.com [209.85.160.180]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 573F99CE1C; Tue, 12 Jul 2022 02:10:56 -0700 (PDT) Received: by mail-qt1-f180.google.com with SMTP id ck6so8903898qtb.7; Tue, 12 Jul 2022 02:10:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ogZIuR/DNUWYAnvjSDu9n0AhaTeKYHQRl89eLWPlDEo=; b=LuOleYcdeHnvbeF4+x6flEaNrBNwKMUHbUSbpcs/5g9PEwrySYPAnXFdEo7HEWbztp Bfxqv+GALPjapKa0Q2A5x1iN3FJAfhgixuuU9j+IxMgiiHCHMuGzSSq83OCk6SS1aCJy jTe4XjnRz//eVrWyeofe+EUP3Q1OMS1k7AoomtwSPP8nU+PMp9h3p2vIRbWal0Pdc4ld dFcQHK6BY87mLcLte9DdCbvhw8SZY4n5L0+Fr/ER5hfQR93+04g50SOXXXKrxIfaK8c2 bZyxHtJwxUrohZ85VoXcKZqXNtsN05JQQ7rKfbUZLpSOaIuHn3oTv1YKRzMhcLrqMAQr gOUA== X-Gm-Message-State: AJIora/rdgB/36xYDKlvw4UEtdFHwVyAuwGAGZchdR7JuititvGEE+Tm bg+7Waavy35R+FQh6J1ix8UWoGyoWYGsNQ== X-Received: by 2002:a05:622a:60f:b0:31c:c5da:eb49 with SMTP id z15-20020a05622a060f00b0031cc5daeb49mr16659451qta.443.1657617055390; Tue, 12 Jul 2022 02:10:55 -0700 (PDT) Received: from mail-yb1-f171.google.com (mail-yb1-f171.google.com. [209.85.219.171]) by smtp.gmail.com with ESMTPSA id u20-20020a05622a011400b0031ea53f4c5esm7264192qtw.83.2022.07.12.02.10.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 Jul 2022 02:10:54 -0700 (PDT) Received: by mail-yb1-f171.google.com with SMTP id g4so12882139ybg.9; Tue, 12 Jul 2022 02:10:54 -0700 (PDT) X-Received: by 2002:a05:6902:701:b0:66e:a06d:53d7 with SMTP id k1-20020a056902070100b0066ea06d53d7mr20639488ybt.604.1657617053347; Tue, 12 Jul 2022 02:10:53 -0700 (PDT) MIME-Version: 1.0 References: <0744671ac096a12f0d538906bd324efa71b11400.1657300532.git.geert@linux-m68k.org> <96a87833-d878-dde9-e335-9ea51a4ba406@mailbox.org> <20220712074715.kopstlvz4q6npaye@sirius.home.kraxel.org> <20220712083907.3ic7bltstaskz72n@sirius.home.kraxel.org> <20220712090305.44jq3olwhwypisoc@sirius.home.kraxel.org> <69a6aac7-0d48-7361-9750-8f242d374d60@mailbox.org> In-Reply-To: <69a6aac7-0d48-7361-9750-8f242d374d60@mailbox.org> From: Geert Uytterhoeven Date: Tue, 12 Jul 2022 11:10:41 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/3] drm/fourcc: Add missing big-endian XRGB1555 and RGB565 formats To: =?UTF-8?Q?Michel_D=C3=A4nzer?= Cc: Gerd Hoffmann , Linux Fbdev development list , Thomas Zimmermann , David Airlie , "Linux/m68k" , Linux Kernel Mailing List , =?UTF-8?Q?Noralf_Tr=C3=B8nnes?= , DRI Development Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Michel, On Tue, Jul 12, 2022 at 11:09 AM Michel Dänzer wrote: > On 2022-07-12 11:03, Gerd Hoffmann wrote: > >>> 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. > >> > >> But (a) drm_driver_legacy_fb_format() uses DRM_FORMAT_HOST_RGB565 > >> if quirk_addfb_prefer_host_byte_order is set, > > > > Ah, right. Missed that in 'git grep' output. Given that traditional > > fbdev behavior is to expect native byte order using > > DRM_FORMAT_HOST_RGB565 there makes sense indeed. > > > > Scratch my comment about it being unused then ;) > > DRM_FORMAT_RGB565 | DRM_FORMAT_BIG_ENDIAN is still what the driver should use conceptually, and should match DRM_FORMAT_HOST_RGB565 in drm_driver_legacy_fb_format on a big endian host (which is presumably always the case for the atari driver). Sure, I'll update the patch accordingly. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds