From patchwork Fri Jul 8 18:21:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 12911616 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 62009CCA47F for ; Fri, 8 Jul 2022 18:21:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239299AbiGHSVr (ORCPT ); Fri, 8 Jul 2022 14:21:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239200AbiGHSVc (ORCPT ); Fri, 8 Jul 2022 14:21:32 -0400 Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [IPv6:2a02:1800:120:4::f00:14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A20FF82385 for ; Fri, 8 Jul 2022 11:21:30 -0700 (PDT) Received: from ramsan.of.borg ([84.195.186.194]) by xavier.telenet-ops.be with bizsmtp id siMU270024C55Sk01iMU6C; Fri, 08 Jul 2022 20:21:30 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1o9sbX-002fJc-Ez; Fri, 08 Jul 2022 20:21:27 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1o9sbW-00BtNQ-Kk; Fri, 08 Jul 2022 20:21:26 +0200 From: Geert Uytterhoeven To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , =?utf-8?q?Noralf_Tr=C3=B8nnes?= , Gerd Hoffmann Cc: dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-m68k@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 0/3] drm: Endianness fixes Date: Fri, 8 Jul 2022 20:21:06 +0200 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org Hi all, This patch series contains several endianness fixes for the DRM subsystem. This has been tested on ARAnyM using a work-in-progress Atari DRM driver, which supports (a.o.) big-endian RGB565 (more info and related patches can be found in [1]). Thanks for your comments! [1] "[PATCH v3 00/10] drm: Add support for low-color frame buffer formats" https://lore.kernel.org/r/cover.1657294931.git.geert@linux-m68k.org Geert Uytterhoeven (3): drm/fourcc: Add missing big-endian XRGB1555 and RGB565 formats drm/format-helper: Fix endianness in drm_fb_*_to_*() conversion helpers drm/gud: Fix endianness in gud_xrgb8888_to_color() helper drivers/gpu/drm/drm_format_helper.c | 80 +++++++++++++++++------------ drivers/gpu/drm/drm_fourcc.c | 4 ++ drivers/gpu/drm/gud/gud_pipe.c | 14 ++--- 3 files changed, 58 insertions(+), 40 deletions(-)