Skip to content

Big-endian fixes

Geert Uytterhoeven dri-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 4 repliesIn review
  2. v1 RFC2 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- Consider arm, aarch64, microblaze, s390, and sh in endianness checks,
- Add Acked-by,
- Add swap32() intermediate helper,
- Fix 16 bpp formats on big-endian,
- Add support for big-endian XRGB1555 and RGB565,
- Fix printing of big-endian fourcc values,
- Fix pwetty on big-endian.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10intel: Improve checks for big-endianintel/uthash.h+1 -10 replies
2/10util: Fix 32 bpp patterns on big-endiantests/util/pattern.c+23 -90 replies
3/10util: Fix 16 bpp patterns on big-endiantests/util/pattern.c+14 -70 replies
4/10util: Add missing big-endian RGB16 frame buffer formatstests/util/format.c+3 -04 replies
5/10modetest: Fix printing of big-endian fourcc valuestests/modetest/modetest.c+6 -20 replies
6/10modetest: Add support for parsing big-endian formatstests/modetest/modetest.c+6 -60 replies
7/10util: Add test pattern support for big-endian XRGB1555/RGB565tests/util/pattern.c+21 -100 replies
8/10util: Fix pwetty on big-endiantests/util/pattern.c+48 -60 replies
9/10util: Add pwetty support for big-endian RGB565tests/util/pattern.c+1 -00 replies
10/10modetest: Add support for big-endian XRGB1555/RGB565tests/modetest/buffers.c+4 -00 replies

Reviews trailers per patch

1 of 10 patches has a Reviewed-by or Acked-by.

PatchPekka Paalanen
1/10
2/10A-b
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH libdrm v2 00/10] Big-endian fixes

Hi all,

This patch series fixes some endianness issues in libdrm.
It has been tested on ARAnyM using a work-in-progress Atari DRM driver.

Changes compared to v1:
- Consider arm, aarch64, microblaze, s390, and sh in endianness checks,
- Add Acked-by,
- Add swap32() intermediate helper,
- Fix 16 bpp formats on big-endian,
- Add support for big-endian XRGB1555 and RGB565,
- Fix printing of big-endian fourcc values,
- Fix pwetty on big-endian.

Please refer to [2] for related Linux DRM patches and background information.

Thanks for your comments!

[1] "[PATCH RFC libdrm 0/2] Big-endian fixes"

    https://lore.kernel.org/r/[email protected]
[2] "[PATCH v3 00/10] drm: Add support for low-color frame buffer formats"
    https://lore.kernel.org/r/[email protected]

Geert Uytterhoeven (11):
intel: Improve checks for big-endian
util: Fix 32 bpp patterns on big-endian
util: Fix 16 bpp patterns on big-endian
util: Add missing big-endian RGB16 frame buffer formats
modetest: Fix printing of big-endian fourcc values
modetest: Add support for parsing big-endian formats
util: Add test pattern support for big-endian XRGB1555/RGB565
util: Fix pwetty on big-endian
util: Add pwetty support for big-endian RGB565
modetest: Add support for big-endian XRGB1555/RGB565

 intel/uthash.h            |   2 +-
 tests/modetest/buffers.c  |   4 ++
 tests/modetest/modetest.c |  25 ++++---
 tests/util/format.c       |   3 +
 tests/util/pattern.c      | 115 +++++++++++++++++++++++++++++++-------
 5 files changed, 115 insertions(+), 29 deletions(-)
Signature · 12 lines
2.25.1

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

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