spidev0 missing on raspberrypi5 on ubuntu 23.10 server and desktop version

Bug #2045947 reported by Ajay
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
linux-raspi (Ubuntu)
Fix Released
Undecided
Unassigned
Mantic
Fix Released
Undecided
Unassigned

Bug Description

[Impact]

/dev/spidev0 not present.

[Fix]

Enable CONFIG_DW_AXI_DMAC.

[Test Case]

1) Add 'dtparam=spi=on' to /boot/firmware/config.txt.
2) Boot fixed kernel.
3) Verify /dev/spidev0 is present.

[Where Problems Could Occur]

A new kernel modules is loaded at boot so we could see hangs, freezes, stack traces or any other buggy kernel code symptoms.

[Original Description]

While trying to access spidev0 on ubuntu 23.10 server version for raspberrypi model 5 did not find spidev0.

On further debugging with raspi team it was observed that DMA is not set.
Link to the discussion: https://forums.raspberrypi.com/viewtopic.php?t=360436&start=25

ubuntu@ubuntu:~$ sudo modprobe configs
ubuntu@ubuntu:~$ zcat /proc/config.gz | grep DW_AXI_DMAC
# CONFIG_DW_AXI_DMAC is not set

Details of platform used

ubuntu@ubuntu:~$ ls -al /dev/spi*
crw------- 1 root root 153, 0 Dec 7 16:14 /dev/spidev10.0

ubuntu@ubuntu:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 23.10
Release: 23.10
Codename: mantic
ubuntu@ubuntu:~$ cat /etc/os-release
PRETTY_NAME="Ubuntu 23.10"
NAME="Ubuntu"
VERSION_ID="23.10"
VERSION="23.10 (Mantic Minotaur)"
VERSION_CODENAME=mantic
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=mantic
LOGO=ubuntu-logo

ubuntu@ubuntu:~$ cat /proc/cpuinfo | grep Model
Model : Raspberry Pi 5 Model B Rev 1.0

Manuel Diewald (diewald)
tags: added: kern-8695
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux-raspi (Ubuntu):
status: New → Confirmed
summary: - spidev0 missing on raspberrypi5 on ubuntu 23.10 server version
+ spidev0 missing on raspberrypi5 on ubuntu 23.10 server and desktop
+ version
Juerg Haefliger (juergh)
description: updated
description: updated
Juerg Haefliger (juergh)
Changed in linux-raspi (Ubuntu Mantic):
status: New → Fix Committed
Revision history for this message
Luke Howard (lukeh-padl) wrote :

Is there a way I can get a build of a kernel with the fix applied?

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote :

This bug is awaiting verification that the linux-raspi/6.5.0-1010.13 kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-mantic-linux-raspi' to 'verification-done-mantic-linux-raspi'. If the problem still exists, change the tag 'verification-needed-mantic-linux-raspi' to 'verification-failed-mantic-linux-raspi'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: kernel-spammed-mantic-linux-raspi-v2 verification-needed-mantic-linux-raspi
Revision history for this message
Juerg Haefliger (juergh) wrote :

ubuntu@rpi-5b-rev1d0-f88b:~$ uname -a
Linux rpi-5b-rev1d0-f88b 6.5.0-1010-raspi #13-Ubuntu SMP PREEMPT_DYNAMIC Thu Jan 18 09:08:04 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux
ubuntu@rpi-5b-rev1d0-f88b:~$ ls -la /dev/spidev*
crw-rw----+ 1 root dialout 153, 1 Jan 25 11:09 /dev/spidev0.0
crw-rw----+ 1 root dialout 153, 2 Jan 25 11:09 /dev/spidev0.1
crw------- 1 root root 153, 0 Jan 25 11:09 /dev/spidev10.0

tags: added: verification-done-mantic-linux-raspi
removed: verification-needed-mantic-linux-raspi
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (88.2 KiB)

This bug was fixed in the package linux-raspi - 6.5.0-1010.13

---------------
linux-raspi (6.5.0-1010.13) mantic; urgency=medium

  * mantic/linux-raspi: 6.5.0-1010.13 -proposed tracker (LP: #2048364)

  * Packaging resync (LP: #1786013)
    - debian/dkms-versions -- update from kernel-versions (main/2024.01.08)

  * vc4-drm gpu: [drm] *ERROR* Failed to allocate DLIST entry: -28
    (LP: #2046584)
    - drm: Look for an alias for the displays to use as the DRM device name
    - vc4/drm: Remove the clear of SCALER_DISPBKGND_FILL
    - drm/vc4: Correct address offset for planes with src_[xy] offsets
    - fbdev: Allow client to request a particular /dev/fbN node
    - drm/fb-helper: Look up preferred fbdev node number from DT
    - drm/connector: Change DRM card alias from underscore to hyphen
    - drm/fb_helper: Change query for FB designation from drm_fb to drm-fb
    - drm/vc4: Correct logic on stopping an HVS channel
    - drm/vc4: Drop WARN for HVS FIFOs not being empty
    - drm/vc4: Free all stale dlists if channel is disabled
    - drm/vc4: Add hvs_dlist_allocs debugfs function.
    - drm/vc4: Log the size of the dlist allocation that was attempted
    - drm/vc4: crtc: Support odd horizontal timings on BCM2712
    - drm/vc4: Drop planes that are completely off-screen
    - drm/bridge: display-connector: Select DRM_KMS_HELPER
    - drm: vc4: Free the dlist alloc immediately if it never hit the hw
    - drm: vc4: Block swiotlb bounce buffers being imported as dmabuf
    - drm/vc4: vec: Add the margin properties to the connector
    - drm: panel: jdi-lt070me05000: Add prepare_upstream_first flag
    - drm/panel: add panel-dsi
    - drm/vc4: Correct HVS muxing setup for the moplet
    - drm/vc4: Mop and moplet have different register offsets for high addr
    - drm/vc4: Fix reading of frame count on GEN5 / Pi4
    - drm/vc4: Fixup of patches adding debugfs functions
    - drm/vc4: hvs: Fix compile warnings

  * spidev0 missing on raspberrypi5 on ubuntu 23.10 server and desktop version
    (LP: #2045947)
    - [Config] raspi: Set DW_AXI_DMAC=m

  * Fan toggles on/off repeatedly (LP: #2044341)
    - Fix hysteresis support in gov_step_wise.c (#5736)

  [ Ubuntu: 6.5.0-17.17 ]

  * mantic/linux: 6.5.0-17.17 -proposed tracker (LP: #2049026)
  * [UBUNTU 23.04] Regression: Ubuntu 23.04/23.10 do not include uvdevice
    anymore (LP: #2048919)
    - [Config] Enable S390_UV_UAPI (built-in)

  [ Ubuntu: 6.5.0-16.16 ]

  * mantic/linux: 6.5.0-16.16 -proposed tracker (LP: #2048372)
  * Packaging resync (LP: #1786013)
    - [Packaging] resync git-ubuntu-log
    - [Packaging] resync update-dkms-versions helper
    - [Packaging] remove helper scripts
    - [Packaging] update annotations scripts
    - debian/dkms-versions -- update from kernel-versions (main/2024.01.08)
  * Add missing RPL P/U CPU IDs (LP: #2047398)
    - drm/i915/rpl: Update pci ids for RPL P/U
  * Fix BCM57416 lost after resume (LP: #2047518)
    - bnxt_en: Clear resource reservation during resume
  * Hotplugging SCSI disk in QEMU VM fails (LP: #2047382)
    - Revert "PCI: acpiphp: Reassign resources on bridge if necessary"
  * Update bnxt_en with bug fixes and support for Broadcom 5760...

Changed in linux-raspi (Ubuntu Mantic):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (49.6 KiB)

This bug was fixed in the package linux-raspi - 6.7.0-1001.1

---------------
linux-raspi (6.7.0-1001.1) noble; urgency=medium

  * noble/linux-raspi: 6.7.0-1001.1 -proposed tracker (LP: #2051136)

  * Packaging resync (LP: #1786013)
    - [Packaging] update Ubuntu.md
    - [Packaging] update update.conf
    - debian/dkms-versions -- update from kernel-versions (main/d2024.01.02)

  * Remove linux-modules-extra (LP: #2048862)
    - [Packaging] raspi: Remove linux-modules-extra package

  * Make dwc2 the default (LP: #2048861)
    - SAUCE: ARM: dts: bcm27xx: Make dwc2 the default

  * Raspberry Pi 3B+ doesnt boot from USB on 23.10 Mantic (LP: #2039786)
    - SAUCE: Revert "usb: misc: onboard-hub: add support for Microchip USB2514B
      USB 2.0 hub"

  * Missing overlays/README (LP: #1954757)
    - SAUCE: (no-up) Install overlays/README

  * [Raspberry Pi/lunar] systemd-oomd fails with
    "ConditionControlGroupController=memory was not met" (LP: #2017209)
    - SAUCE: Revert "cgroup: Disable cgroup "memory" by default"

  * Remove armhf support (LP: #2048864)
    - [Packaging] raspi: Remove armhf packages
    - [Packaging] raspi: Remove armhf ABI files

  * Miscellaneous Ubuntu changes
    - [Packaging] raspi: Initial import of debian.raspi from mantic:linux-raspi
      (6.5.0-1010.13)
    - [Packaging] raspi: Sync packaging files from debian.master
    - [Packaging] raspi: Initial version of linux-raspi for Noble
    - [Config] raspi: updateconfigs after rebase to Ubuntu-6.7.0-2.2
    - [Config] raspi: Include master annotations
    - [Packaging] raspi: Disable all ABI checks
    - SAUCE: Revert "iommu: Retire map/unmap ops"
    - [Packaging] raspi: Import of upstream raspberrypi patchset
    - [Config] raspi: updateconfigs after import of rpi-6.6.y patchset
    - [Config] raspi: Set SWIOTLB_DYNAMIC=n
    - SAUCE: arm64: dts: broadcom: Remove downstream dt overlay support
    - SAUCE: (no-up) ARM: dts: Disable unsupported Raspberry Pi DTBs
    - SAUCE: ARM: dts: Fix broken symlinks
    - SAUCE: ARM: dts: overlays: Fix file permissions
    - [Packaging] raspi: Update reconstruct script

  * Miscellaneous upstream changes
    - raspberrypi-firmware: Update mailbox commands
    - drm/vc4: Add FKMS as an acceptable node for dma ranges.
    - drm/atomic: Don't fixup modes that haven't been reset
    - drm/vc4: Allow setting the TV norm via module parameter
    - drm/vc4: Add firmware-kms mode
    - drm/vc4: Add support for gamma on BCM2711
    - drm/vc4: Add debugfs node that dumps the vc5 gamma PWL entries
    - drm/vc4: hvs: Force modeset on gamma lut change
    - drm/vc4: Relax VEC modeline requirements and add progressive mode support
    - drm/vc4: Make VEC progressive modes readily accessible
    - drm: Check whether the gamma lut has changed before updating
    - drm/vc4: Enable gamma block only when required.
    - drm/vc4: Only add gamma properties once.
    - drm/vc4: Validate the size of the gamma_lut
    - drm/vc4: Disable Gamma control on HVS5 due to issues writing the table
    - drm/dsi: Document the meaning and spec references for MIPI_DSI_MODE_*
    - drm/bridge: tc358762: Ignore EPROBE_DEFER when logging errors
    - vc4/drm: vc...

Changed in linux-raspi (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.