Skip to content

sh1106-spi invalid buffer alignment on 6.12 kernel #6733

Closed
@gtrainavicius

Description

@gtrainavicius

Describe the bug

Trying to load the DT overlay and module for sh1106 display (possibly other SPI displays are affected too), fails with invalid buffer alignment.

It is not necessary to have the actual display to be hooked up to reproduce the problem.

Doesn't happen on 6.6 kernel versions.

Steps to reproduce the behaviour

Execute:

sudo dtoverlay sh1106-spi,reset_pin=17,dc_pin=27

Device (s)

Raspberry Pi 5

System

patch@patchbox:~ $ cat /etc/rpi-issue
Raspberry Pi reference 2024-04-04
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 64e3efc023558a4d4634a702c467f513d5b2bca1, stage-patchbox
patch@patchbox:~ $ vcgencmd version
2025/03/19 13:41:26
Copyright (c) 2012 Broadcom
version cec1d3ae (release) (embedded)
patch@patchbox:~ $ uname -a
Linux patchbox 6.12.19-v8-16k+ #1865 SMP PREEMPT Wed Mar 19 13:48:20 GMT 2025 aarch64 GNU/Linux

Logs

6.12_error.log

6.6 success log for comparison:

6.6_success.log

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions