2018-04-10 21:14:46 |
Adam Smith |
bug |
|
|
added bug |
2018-04-10 21:42:16 |
Adam Smith |
attachment added |
|
dmesg.txt https://bugs.launchpad.net/ubuntu/+source/linux-raspi2/+bug/1762835/+attachment/5109819/+files/dmesg.txt |
|
2018-04-10 21:42:39 |
Adam Smith |
attachment added |
|
config-4.13.0-1008-raspi2 https://bugs.launchpad.net/ubuntu/+source/linux-raspi2/+bug/1762835/+attachment/5109820/+files/config-4.13.0-1008-raspi2 |
|
2018-04-10 21:43:34 |
Adam Smith |
attachment added |
|
Results of running lsmod https://bugs.launchpad.net/ubuntu/+source/linux-raspi2/+bug/1762835/+attachment/5109821/+files/lsmod.txt |
|
2018-04-10 21:47:15 |
Adam Smith |
attachment added |
|
modules.builtin https://bugs.launchpad.net/ubuntu/+source/linux-raspi2/+bug/1762835/+attachment/5109822/+files/modules.builtin |
|
2018-04-10 21:58:18 |
Adam Smith |
attachment added |
|
4.15 lsmod results https://bugs.launchpad.net/ubuntu/+source/linux-raspi2/+bug/1762835/+attachment/5109826/+files/lsmod.txt |
|
2018-04-10 21:59:42 |
Adam Smith |
attachment added |
|
config-4.15.0-1005-raspi2 https://bugs.launchpad.net/ubuntu/+source/linux-raspi2/+bug/1762835/+attachment/5109827/+files/config-4.15.0-1005-raspi2 |
|
2018-04-10 22:00:07 |
Adam Smith |
attachment added |
|
4.15 dmesg https://bugs.launchpad.net/ubuntu/+source/linux-raspi2/+bug/1762835/+attachment/5109828/+files/dmesg.txt |
|
2018-04-10 22:05:47 |
Ubuntu QA Website |
tags |
|
iso-testing |
|
2018-04-11 22:58:31 |
Adam Smith |
attachment added |
|
mmc_config.patch https://bugs.launchpad.net/ubuntu/+source/linux-raspi2/+bug/1762835/+attachment/5111407/+files/mmc_config.patch |
|
2018-04-12 00:22:41 |
Ubuntu Foundations Team Bug Bot |
tags |
iso-testing |
iso-testing patch |
|
2018-04-12 00:22:42 |
Ubuntu Foundations Team Bug Bot |
bug |
|
|
added subscriber Joseph Salisbury |
2018-04-16 06:44:24 |
Adam Smith |
description |
Linux-raspi2 has both the upstream and downstream pi mmc modules enabled. In dmesg I get this error:
Error: Driver 'sdhost-bcm2835' is already registered, aborting...
I asked on the Raspberry Pi forums [1] about this and PhilE (Raspberry Pi engineer) answered:
"For general guidance, in the Raspberry Pi kernels we use the bcm2835-sdhost driver for the SD card or EMMC interface and bcm2835-mmc for SDIO to the WiFi chip. Upstream uses bcm2835 for SD and sdhci-iproc for SDIO."
I'm not entirely sure what the config used in raspbian is, but I think it is this:
#
# MMC/SD/SDIO Host Controller Drivers
#
CONFIG_MMC_BCM2835_MMC=y
CONFIG_MMC_BCM2835_DMA=y
CONFIG_MMC_BCM2835_PIO_DMA_BARRIER=2
CONFIG_MMC_BCM2835_SDHOST=y
# CONFIG_MMC_DEBUG is not set
# CONFIG_MMC_ARMMMCI is not set
CONFIG_MMC_SDHCI=y
CONFIG_MMC_SDHCI_PLTFM=y
# CONFIG_MMC_SDHCI_OF_ARASAN is not set
# CONFIG_MMC_SDHCI_OF_AT91 is not set
# CONFIG_MMC_SDHCI_CADENCE is not set
# CONFIG_MMC_SDHCI_F_SDH30 is not set
# CONFIG_MMC_SDHCI_IPROC is not set
CONFIG_MMC_SPI=m
# CONFIG_MMC_DW is not set
# CONFIG_MMC_VUB300 is not set
# CONFIG_MMC_USHC is not set
# CONFIG_MMC_USDHI6ROL0 is not set
# CONFIG_MMC_BCM2835 is not set
# CONFIG_MMC_MTK is not set
# CONFIG_MMC_SDHCI_XENON is not set
# CONFIG_MEMSTICK is not set
CONFIG_NEW_LEDS=y
CONFIG_LEDS_CLASS=y
# CONFIG_LEDS_CLASS_FLASH is not set
# CONFIG_LEDS_BRIGHTNESS_HW_CHANGED is not set
I'll run apport to collect the Ubuntu configs and dmesg logs etc.
[1] https://www.raspberrypi.org/forums/viewtopic.php?f=71&t=210225 |
SRU Justification
[Impact]
The Bionic Linux-raspi2 kernel has both the upstream and downstream pi mmc modules enabled. Running the latest server image users can see this error in dmesg:
Error: Driver 'sdhost-bcm2835' is already registered, aborting...
Due to this error the pi server image is failing a testcase on the iso tracker.
It is also not clear to users what mmc modules are in use.
The attached patch removes the upstream mmc modules from the kernel config.
[Test Case]
The bug can be reproduced by running the latest bionic 'classic' raspberrypi server image - http://cdimage.ubuntu.com/ubuntu-server/daily-preinstalled/current/bionic-preinstalled-server-armhf+raspi2.img.xz
Inspect the dmesg and observe the error.
To check this is fixed, once the patched kernel has been installed, reboot, inspect the dmesg again and the error should be gone.
[Regression potential]
This should be low. This config is the default used by raspbian and recommended by the pi foundation, and is therefore well tested.
The patch changes the mmc modules, so if things go wrong the pi may not boot or the wifi on the pi3 may not work.
I've built the kernel with the patch and everything still works.
[Other Info]
I think it is important to get this change in before the server images are released.
Note the pi3 wifi doesn't work out-of-the-box, there is a missing brcmfmac43430-sdio.txt file.
---
Original description:
Linux-raspi2 has both the upstream and downstream pi mmc modules enabled. In dmesg I get this error:
Error: Driver 'sdhost-bcm2835' is already registered, aborting...
I asked on the Raspberry Pi forums [1] about this and PhilE (Raspberry Pi engineer) answered:
"For general guidance, in the Raspberry Pi kernels we use the bcm2835-sdhost driver for the SD card or EMMC interface and bcm2835-mmc for SDIO to the WiFi chip. Upstream uses bcm2835 for SD and sdhci-iproc for SDIO."
I'm not entirely sure what the config used in raspbian is, but I think it is this:
#
# MMC/SD/SDIO Host Controller Drivers
#
CONFIG_MMC_BCM2835_MMC=y
CONFIG_MMC_BCM2835_DMA=y
CONFIG_MMC_BCM2835_PIO_DMA_BARRIER=2
CONFIG_MMC_BCM2835_SDHOST=y
# CONFIG_MMC_DEBUG is not set
# CONFIG_MMC_ARMMMCI is not set
CONFIG_MMC_SDHCI=y
CONFIG_MMC_SDHCI_PLTFM=y
# CONFIG_MMC_SDHCI_OF_ARASAN is not set
# CONFIG_MMC_SDHCI_OF_AT91 is not set
# CONFIG_MMC_SDHCI_CADENCE is not set
# CONFIG_MMC_SDHCI_F_SDH30 is not set
# CONFIG_MMC_SDHCI_IPROC is not set
CONFIG_MMC_SPI=m
# CONFIG_MMC_DW is not set
# CONFIG_MMC_VUB300 is not set
# CONFIG_MMC_USHC is not set
# CONFIG_MMC_USDHI6ROL0 is not set
# CONFIG_MMC_BCM2835 is not set
# CONFIG_MMC_MTK is not set
# CONFIG_MMC_SDHCI_XENON is not set
# CONFIG_MEMSTICK is not set
CONFIG_NEW_LEDS=y
CONFIG_LEDS_CLASS=y
# CONFIG_LEDS_CLASS_FLASH is not set
# CONFIG_LEDS_BRIGHTNESS_HW_CHANGED is not set
I'll run apport to collect the Ubuntu configs and dmesg logs etc.
[1] https://www.raspberrypi.org/forums/viewtopic.php?f=71&t=210225 |
|
2018-04-17 20:23:18 |
Adam Smith |
attachment added |
|
ubuntu-patched-dmesg.txt https://bugs.launchpad.net/ubuntu/+source/linux-raspi2/+bug/1762835/+attachment/5120013/+files/ubuntu-patched-dmesg.txt |
|
2018-04-17 20:27:00 |
Adam Smith |
attachment added |
|
ubuntu-upstream-dmesg.txt https://bugs.launchpad.net/ubuntu/+source/linux-raspi2/+bug/1762835/+attachment/5120014/+files/ubuntu-upstream-dmesg.txt |
|
2018-04-17 21:16:38 |
Adam Smith |
attachment added |
|
rasp-dmesg.txt https://bugs.launchpad.net/ubuntu/+source/linux-raspi2/+bug/1762835/+attachment/5120090/+files/rasp-dmesg.txt |
|
2018-04-20 15:00:36 |
Joshua Powers |
bug |
|
|
added subscriber Joshua Powers |
2018-12-23 21:55:34 |
Anthony Wong |
bug |
|
|
added subscriber Anthony Wong |
2019-10-09 06:32:03 |
Juerg Haefliger |
nominated for series |
|
Ubuntu Bionic |
|
2019-10-09 06:32:03 |
Juerg Haefliger |
bug task added |
|
linux-raspi2 (Ubuntu Bionic) |
|
2019-10-09 06:32:16 |
Juerg Haefliger |
linux-raspi2 (Ubuntu Bionic): status |
New |
Confirmed |
|
2019-10-09 06:33:02 |
Launchpad Janitor |
linux-raspi2 (Ubuntu): status |
New |
Confirmed |
|
2019-10-09 08:24:04 |
Ubuntu Foundations Team Bug Bot |
bug |
|
|
added subscriber Terry Rudd |
2019-10-10 11:07:13 |
Juerg Haefliger |
linux-raspi2 (Ubuntu Bionic): assignee |
|
Juerg Haefliger (juergh) |
|
2019-10-25 07:33:55 |
Philip Vanloo |
bug |
|
|
added subscriber Philip Vanloo |
2019-11-04 13:31:01 |
Juerg Haefliger |
nominated for series |
|
Ubuntu Eoan |
|
2019-11-04 13:31:01 |
Juerg Haefliger |
bug task added |
|
linux-raspi2 (Ubuntu Eoan) |
|
2019-11-04 13:31:11 |
Juerg Haefliger |
nominated for series |
|
Ubuntu Disco |
|
2019-11-04 13:31:11 |
Juerg Haefliger |
bug task added |
|
linux-raspi2 (Ubuntu Disco) |
|
2019-11-20 21:42:40 |
Connor Kuehl |
linux-raspi2 (Ubuntu Bionic): status |
Confirmed |
In Progress |
|
2019-11-20 21:42:43 |
Connor Kuehl |
linux-raspi2 (Ubuntu Disco): status |
New |
In Progress |
|
2019-11-20 21:42:45 |
Connor Kuehl |
linux-raspi2 (Ubuntu Eoan): status |
New |
In Progress |
|
2019-11-20 21:42:47 |
Connor Kuehl |
linux-raspi2 (Ubuntu Bionic): importance |
Undecided |
Medium |
|
2019-11-20 21:42:49 |
Connor Kuehl |
linux-raspi2 (Ubuntu Disco): importance |
Undecided |
Medium |
|
2019-11-20 21:42:51 |
Connor Kuehl |
linux-raspi2 (Ubuntu Eoan): importance |
Undecided |
Medium |
|
2019-11-20 21:42:57 |
Connor Kuehl |
linux-raspi2 (Ubuntu Disco): assignee |
|
Juerg Haefliger (juergh) |
|
2019-11-20 21:43:05 |
Connor Kuehl |
linux-raspi2 (Ubuntu Eoan): assignee |
|
Juerg Haefliger (juergh) |
|
2019-11-22 01:58:03 |
Khaled El Mously |
linux-raspi2 (Ubuntu Bionic): status |
In Progress |
Fix Committed |
|
2019-11-22 01:58:22 |
Khaled El Mously |
linux-raspi2 (Ubuntu Disco): status |
In Progress |
Fix Committed |
|
2019-11-22 01:58:38 |
Khaled El Mously |
linux-raspi2 (Ubuntu Eoan): status |
In Progress |
Fix Committed |
|
2020-01-06 12:54:28 |
Launchpad Janitor |
linux-raspi2 (Ubuntu Eoan): status |
Fix Committed |
Fix Released |
|
2020-01-06 12:54:28 |
Launchpad Janitor |
cve linked |
|
2019-14895 |
|
2020-01-06 12:54:28 |
Launchpad Janitor |
cve linked |
|
2019-14896 |
|
2020-01-06 12:54:28 |
Launchpad Janitor |
cve linked |
|
2019-14897 |
|
2020-01-06 12:54:28 |
Launchpad Janitor |
cve linked |
|
2019-14901 |
|
2020-01-06 12:54:28 |
Launchpad Janitor |
cve linked |
|
2019-18660 |
|
2020-01-06 12:54:28 |
Launchpad Janitor |
cve linked |
|
2019-19055 |
|
2020-01-06 12:54:28 |
Launchpad Janitor |
cve linked |
|
2019-19072 |
|
2020-01-06 13:15:05 |
Launchpad Janitor |
linux-raspi2 (Ubuntu Disco): status |
Fix Committed |
Fix Released |
|
2020-01-06 13:15:05 |
Launchpad Janitor |
cve linked |
|
2019-2214 |
|
2020-01-06 13:36:26 |
Launchpad Janitor |
linux-raspi2 (Ubuntu Bionic): status |
Fix Committed |
Fix Released |
|
2020-01-06 13:36:26 |
Launchpad Janitor |
cve linked |
|
2019-19083 |
|
2020-01-14 16:12:15 |
Launchpad Janitor |
linux-raspi2 (Ubuntu): status |
Confirmed |
Fix Released |
|