** Description changed:

+ [Impact]
+ 
+ /dev/spidev0 not present.
+ 
+ [Test Case]
+ 
+ 1) Add 'dtparam=spi=on' to /boot/firmware/config.txt.
+ 2) Boot fixed kernel.
+ 3) Verify /dev/spidev0 is present.
+ 
+ [Fix]
+ 
+ Enable CONFIG_DW_AXI_DMAC.
+ 
+ [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

** Also affects: linux-raspi (Ubuntu Mantic)
   Importance: Undecided
       Status: New

** Description changed:

  [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.
- 
- [Fix]
- 
- Enable CONFIG_DW_AXI_DMAC.
  
  [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

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-raspi in Ubuntu.
https://bugs.launchpad.net/bugs/2045947

Title:
  spidev0 missing on raspberrypi5 on ubuntu 23.10 server and desktop
  version

Status in linux-raspi package in Ubuntu:
  Confirmed
Status in linux-raspi source package in Mantic:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-raspi/+bug/2045947/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to