Upgrade new DellEMC platforms to bullseye kernel (#10)

* Upgrade new DellEMC platforms to Bullseye

* Update s5212f kernel module
This commit is contained in:
Aravind Mani 2021-11-02 04:06:39 +05:30 committed by Saikrishna Arcot
parent 8080a92879
commit 166efeffe2
11 changed files with 58 additions and 46 deletions

View File

@ -27,12 +27,12 @@ Description: kernel modules for platform devices such as fan, led, sfp
Package: platform-modules-s5212f
Architecture: amd64
Depends: linux-image-4.19.0-12-2-amd64-unsigned
Depends: linux-image-5.10.0-8-2-amd64-unsigned
Description: kernel modules for platform devices such as fan, led, sfp
Package: platform-modules-s5224f
Architecture: amd64
Depends: linux-image-4.19.0-12-2-amd64-unsigned
Depends: linux-image-5.10.0-8-2-amd64-unsigned
Description: kernel modules for platform devices such as fan, led, sfp
Package: platform-modules-s5232f
@ -47,7 +47,7 @@ Description: kernel modules for platform devices such as fan, led, sfp
Package: platform-modules-n3248te
Architecture: amd64
Depends: linux-image-4.19.0-12-2-amd64-unsigned
Depends: linux-image-5.10.0-8-2-amd64-unsigned
Description: kernel modules for platform devices such as fan, led, sfp
Package: platform-modules-z9332f

View File

@ -89,8 +89,6 @@ install_python_api_package() {
}
remove_python_api_package() {
rv=$(pip show sonic-platform > /dev/null 2>/dev/null)
rv=$(pip3 show sonic-platform > /dev/null 2>/dev/null)
if [ $? -eq 0 ]; then
rv=$(pip3 uninstall -y sonic-platform > /dev/null 2>/dev/null)
@ -112,7 +110,7 @@ get_reboot_cause() {
if [[ "$1" == "init" ]]; then
modprobe i2c-dev
modprobe i2c-mux-pca954x force_deselect_on_exit=1
modprobe i2c-mux-pca954x
modprobe pmbus
modprobe emc2305
modprobe dps200
@ -124,12 +122,12 @@ if [[ "$1" == "init" ]]; then
echo 0xf0 > /sys/devices/platform/dell-n3248pxe-cpld.0/sfp_txdis
install_python_api_package
platform_firmware_versions
echo -2 > /sys/class/i2c-adapter/i2c-0/0-0071/idle_state
elif [[ "$1" == "deinit" ]]; then
switch_board_sfp "delete_device"
sysdevices "delete_device"
modprobe -r dell_n3248pxe_platform
modprobe -r dps200
modprobe -r emc2305
modprobe -r pmbus

View File

@ -114,7 +114,7 @@ get_reboot_cause() {
if [[ "$1" == "init" ]]; then
modprobe i2c-dev
modprobe i2c-mux-pca954x force_deselect_on_exit=1
modprobe i2c-mux-pca954x
modprobe pmbus
modprobe emc2305
modprobe dps200
@ -126,12 +126,12 @@ if [[ "$1" == "init" ]]; then
echo 0xf0 > /sys/devices/platform/dell-n3248te-cpld.0/sfp_txdis
install_python_api_package
platform_firmware_versions
echo -2 > /sys/class/i2c-adapter/i2c-0/0-0071/idle_state
elif [[ "$1" == "deinit" ]]; then
switch_board_sfp "delete_device"
sysdevices "delete_device"
modprobe -r dell_n3248te_platform
modprobe -r dps200
modprobe -r emc2305
modprobe -r pmbus

View File

@ -1047,7 +1047,7 @@ static int map_bars(struct fpgapci_dev *fpgapci, struct pci_dev *dev)
/* map the device memory or IO region into kernel virtual
* address space */
fpgapci->bar[i] = ioremap_nocache (bar_start + FPGALOGIC_I2C_BASE, I2C_PCI_MAX_BUS * FPGALOGIC_CH_OFFSET);
fpgapci->bar[i] = ioremap(bar_start + FPGALOGIC_I2C_BASE, I2C_PCI_MAX_BUS * FPGALOGIC_CH_OFFSET);
if (!fpgapci->bar[i]) {
PRINT ( "Could not map BAR #%d.\n", i);
@ -1061,7 +1061,7 @@ static int map_bars(struct fpgapci_dev *fpgapci, struct pci_dev *dev)
{
fpga_phys_addr = bar_start;
fpga_ctl_addr = ioremap_nocache (bar_start, FPGA_CTL_REG_SIZE);
fpga_ctl_addr = ioremap(bar_start, FPGA_CTL_REG_SIZE);
fpga_base_addr = fpgapci->bar[i];
}

View File

@ -175,7 +175,7 @@ init_devnum
if [ "$1" == "init" ]; then
modprobe i2c-dev
modprobe i2c-mux-pca954x force_deselect_on_exit=1
modprobe i2c-mux-pca954x
modprobe ipmi_devintf
modprobe ipmi_si kipmid_max_busy_us=1000
modprobe i2c_ocores
@ -189,18 +189,22 @@ if [ "$1" == "init" ]; then
switch_board_led_default
install_python_api_package
platform_firmware_versions
echo -2 > /sys/bus/i2c/drivers/pca954x/603-0074/idle_state
echo -2 > /sys/bus/i2c/drivers/pca954x/604-0074/idle_state
elif [ "$1" == "deinit" ]; then
sys_eeprom "delete_device"
switch_board_qsfp "delete_device"
switch_board_sfp "delete_device"
switch_board_qsfp_mux "delete_device"
modprobe -r dell_s5212f_fpga_ocores
modprobe -r i2c_ocores
modprobe -r acpi_ipmi
modprobe -r ipmi_si
modprobe -r ipmi_devintf
modprobe -r i2c-mux-pca954x
modprobe -r i2c-dev
remove_python_api_package
modprobe -r ipmi_devintf
modprobe -r ipmi_si
else
echo "s5212f_platform : Invalid option !"
fi

View File

@ -172,7 +172,7 @@ init_devnum
if [ "$1" == "init" ]; then
modprobe i2c-dev
modprobe i2c-mux-pca954x force_deselect_on_exit=1
modprobe i2c-mux-pca954x
modprobe ipmi_devintf
modprobe ipmi_si kipmid_max_busy_us=1000
modprobe i2c_ocores
@ -186,17 +186,22 @@ if [ "$1" == "init" ]; then
install_python_api_package
#python /usr/bin/qsfp_irq_enable.py
platform_firmware_versions
echo -2 > /sys/bus/i2c/drivers/pca954x/603-0074/idle_state
echo -2 > /sys/bus/i2c/drivers/pca954x/604-0074/idle_state
echo -2 > /sys/bus/i2c/drivers/pca954x/605-0074/idle_state
echo -2 > /sys/bus/i2c/drivers/pca954x/606-0074/idle_state
elif [ "$1" == "deinit" ]; then
sys_eeprom "delete_device"
switch_board_qsfp "delete_device"
switch_board_qsfp_mux "delete_device"
modprobe -r dell_s5224f_fpga_ocores
modprobe -r i2c_ocores
modprobe -r acpi_ipmi
modprobe -r ipmi_si
modprobe -r ipmi_devintf
modprobe -r i2c-mux-pca954x
modprobe -r i2c-dev
modprobe -r acpi_ipmi
modprobe -r ipmi_devintf
modprobe -r ipmi_si
remove_python_api_package
else
echo "s5224f_platform : Invalid option !"

View File

@ -221,13 +221,14 @@ elif [ "$1" == "deinit" ]; then
switch_board_qsfp "delete_device"
switch_board_sfp "delete_device"
switch_board_qsfp_mux "delete_device"
modprobe -r dell_s5232f_fpga_ocores
modprobe -r i2c_ocores
modprobe -r acpi_ipmi
modprobe -r ipmi_si
modprobe -r ipmi_devintf
modprobe -r i2c-mux-pca954x
modprobe -r i2c-dev
modprobe -r acpi_ipmi
modprobe -r ipmi_devintf
modprobe -r ipmi_si
modprobe -r i2c_ocores
modprobe -r dell_s5232f_fpga_ocores
remove_python_api_package
else
echo "s5232f_platform : Invalid option !"

View File

@ -175,13 +175,14 @@ elif [ "$1" == "deinit" ]; then
sys_eeprom "delete_device"
switch_board_qsfp "delete_device"
switch_board_qsfp_mux "delete_device"
modprobe -r dell_s5248f_fpga_ocores
modprobe -r i2c_ocores
modprobe -r acpi_ipmi
modprobe -r ipmi_si
modprobe -r ipmi_devintf
modprobe -r i2c-mux-pca954x
modprobe -r i2c-dev
modprobe -r acpi_ipmi
modprobe -r ipmi_devintf
modprobe -r ipmi_si
modprobe -r i2c_ocores
modprobe -r dell_s5248f_fpga_ocores
remove_python_api_package
else
echo "s5248f_platform : Invalid option !"

View File

@ -180,13 +180,14 @@ elif [ "$1" == "deinit" ]; then
sys_eeprom "delete_device"
switch_board_qsfp "delete_device"
switch_board_qsfp_mux "delete_device"
modprobe -r dell_s5296f_fpga_ocores
modprobe -r i2c_ocores
modprobe -r acpi_ipmi
modprobe -r ipmi_si
modprobe -r ipmi_devintf
modprobe -r i2c-mux-pca954x
modprobe -r i2c-dev
modprobe -r acpi_ipmi
modprobe -r ipmi_devintf
modprobe -r ipmi_si
modprobe -r i2c_ocores
modprobe -r dell_s5296f_fpga_ocores
remove_python_api_package
else
echo "s5296f_platform : Invalid option !"

View File

@ -241,13 +241,14 @@ elif [ "$1" == "deinit" ]; then
switch_board_qsfp "delete_device"
switch_board_qsfp_mux "delete_device"
switch_board_sfp "delete_device"
modprobe -r dell_z9264f_fpga_ocores
modprobe -r i2c_ocores
modprobe -r acpi_ipmi
modprobe -r ipmi_si
modprobe -r ipmi_devintf
modprobe -r i2c-mux-pca954x
modprobe -r i2c-dev
modprobe -r acpi_ipmi
modprobe -r ipmi_devintf
modprobe -r ipmi_si
modprobe -r i2c_ocores
modprobe -r dell_z9264f_fpga_ocores
remove_python_api_package
else
echo "z9264f_platform : Invalid option !"

View File

@ -205,14 +205,15 @@ elif [ "$1" == "deinit" ]; then
sys_eeprom "delete_device"
switch_board_qsfp "delete_device"
switch_board_sfp "delete_device"
modprobe -r cls-i2c-mux-pca954x
modprobe -r i2c-dev
modprobe -r ipmi_devintf
modprobe -r mc24lc64t
modprobe -r cls-switchboard
modprobe -r cls-i2c-ocore
modprobe -r acpi_ipmi
modprobe -r ipmi_si
modprobe -r cls-i2c-ocore
modprobe -r cls-switchboard
modprobe -r mc24lc64t
modprobe -r ipmi_devintf
modprobe -r cls-i2c-mux-pca954x
modprobe -r i2c-dev
remove_python_api_package
else
echo "z9332f_platform : Invalid option !"