Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp787453imw; Fri, 8 Jul 2022 11:42:40 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sKaq/9filWM9wjQccAmKK328J0BYr4KJX9+9wrj6q1q+jDtv9r+eXZnR3TUl93fzkwne+x X-Received: by 2002:aa7:8294:0:b0:528:2a54:49a5 with SMTP id s20-20020aa78294000000b005282a5449a5mr5241493pfm.3.1657305760096; Fri, 08 Jul 2022 11:42:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657305760; cv=none; d=google.com; s=arc-20160816; b=Yw8Joq+TZGgwNyFAtW3SNNylpkVB5RmKbUP9p9n7EU8mR1hsfEY0s1wlOwJSaDurlw 5B/cxHzDGhfUwgQF6vsjmKEEJDdjHG6R6DPpC65dA0R7Gc3xU2nc2GtcWyA3nTn+1x6v qWlSfjBpy+doWWPh5Y2l2okhCPlgxBhG9OfRW8vbdTxG2WhFzBvvhrB01gzfJAnqU7Dz J/NnGkC4ial2vXvWle9qi17F1uswUfEXVRKJIHGAwa+qCwe7nUjvx4PqzBWMpONnIVep 5DUrIJ752Mv3zmp2ykg780a/dHbrPrAhwclRknZAR34mccy140Nx7s39uKAPe3W4dsw+ Q7Aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=frCW0bIIPfSFopKm8k9qSQcMpHJcZGQw/cIg77VsvBY=; b=efpmbvQCfepNV2wjmHoZNx8R20KLl3mgrVMyTRKIm+xUN0CjNtL/xYHbDUIMFaG6sB a9iEoYaZ7j64/7W78Zx119v77+8dQjph1KviHtTfhHhwlN7r9K2m1ibHf12ZQVJoCuAZ RXQm+KqhLAtRlkYLvWz1VEk0tHpobsX8g3WA0blM+Y5jigIN+RbCPjBxjfxEGLBw3l/b xdyVnkf89YxejLHvj8fAA50fYNHyi6nut8jVsPgI0Vc/5BC1FusxDqdonVUQn8v+C2pR p6uzqRZ/KauBRokkRny3jYmojXfxq/YQMDfHO4PoFa0n6xcjnse5RJ9YRRzccLcOeOpR ZTjg== 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 n9-20020a170903110900b001631214cc97si5517178plh.350.2022.07.08.11.42.23; Fri, 08 Jul 2022 11:42:40 -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 S239370AbiGHSV4 (ORCPT + 99 others); Fri, 8 Jul 2022 14:21:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239201AbiGHSVc (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 A20068048A 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=20Tr=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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, 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 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(-) -- 2.25.1 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