linux 5.2.0-8.9 disabled backlight on s390x.

Bug #1837073 reported by Gianfranco Costamagna
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ddcci-driver-linux (Ubuntu)
Fix Released
High
Unassigned
linux (Ubuntu)
Invalid
High
Seth Forshee

Bug Description

Looks like ddcci-driver-linux started to fail on s390x with the switch from kernel 5.0.0-21-generic to 5.2.0-8-generic

http://autopkgtest.ubuntu.com/packages/d/ddcci-driver-linux/eoan/s390x

According to changelog and diff:
    - [Config] CONFIG_BACKLIGHT_CLASS_DEVICE=n on s390x

from Seth Forshee.

According to the build log of ddci backlight

rm: cannot remove '.tmp_versions/ddcci-backlight.mod': No such file or directory
Makefile:227: ================= WARNING ================
Makefile:228: 'SUBDIRS' will be removed after Linux 5.3
Makefile:229: Please use 'M=' or 'KBUILD_EXTMOD' instead
Makefile:230: ==========================================
Makefile:227: ================= WARNING ================
Makefile:228: 'SUBDIRS' will be removed after Linux 5.3
Makefile:229: Please use 'M=' or 'KBUILD_EXTMOD' instead
Makefile:230: ==========================================
ERROR: "devm_backlight_device_register" [/var/lib/dkms/ddcci/0.3.2/build/ddcci-backlight/ddcci-backlight.ko] undefined!
make[3]: *** [scripts/Makefile.modpost:91: __modpost] Error 1
make[2]: *** [Makefile:1628: modules] Error 2
make[1]: *** [Makefile:37: ddcci-backlight.ko] Error 2

Tags: patch cscc s390x
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

We should
1) re-enable that on s390x

2) make the ddcci-driver-linux package stop providing binaries on s390x or hint the testsuite in case the user wants to dkms on previous kernels.

Changed in linux (Ubuntu):
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Seth Forshee (sforshee)
Revision history for this message
Seth Forshee (sforshee) wrote :

This driver is not useful for s390 so we should not change the kernel config just to get it building. An example was posted of how to disable a dkms build based on whether a required option is enabled the the kernel config, here:

https://bugs.launchpad.net/ubuntu/+source/acpi-call/+bug/1830040/comments/8

I think we should try something similar here.

Changed in ddcci-driver-linux (Ubuntu):
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Paolo Pisati (p-pisati) wrote :
Revision history for this message
Paolo Pisati (p-pisati) wrote :
tags: added: patch
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

thanks

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

@Paolo Pisati, the fix didn't work...

Changed in ddcci-driver-linux (Ubuntu):
status: Confirmed → New
Revision history for this message
Seth Forshee (sforshee) wrote :

We need a fix to the dkms test script. When the build is skipped due to the BUILD_EXCLUSIVE directive the tar command fails, causing the script to fail since it contains "set -eu". I'd suggest we do something like the attached.

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

it is still failing...

Frank Heimes (fheimes)
tags: added: s390x
Revision history for this message
Seth Forshee (sforshee) wrote :

Yes I saw, it seems to be behaving differently than when I tested those changes locally. Will try to investigate today.

Revision history for this message
Seth Forshee (sforshee) wrote :

I double checked that my dkms-autopkgtest updates work as I expect in an s390 instance against ddcci-driver-linux. My best guess is that autopkgtest is not using the dkms-autopktest script from the -proposed package, I'm inquiring to try and confirm this.

Brad Figg (brad-figg)
tags: added: cscc
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

sforshee now your fix has migrated but the dkms is still failing...

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ddcci-driver-linux - 0.3.2-2ubuntu2

---------------
ddcci-driver-linux (0.3.2-2ubuntu2) eoan; urgency=medium

  * Fix build warnings and errors with Linux 5.3 (LP: #1842671)
    - debian/patches/0003-Update-ddcci_remove_helper-prototype-for-Linux-5.3.patch
    - debian/patches/0004-Use-M-instead-of-SUBDIRS-for-specifying-module-sourc.patch

 -- Seth Forshee <email address hidden> Wed, 04 Sep 2019 09:31:18 -0500

Changed in ddcci-driver-linux (Ubuntu):
status: New → Fix Released
Revision history for this message
Seth Forshee (sforshee) wrote :

Yes, I was talking to xnox a while back and he has in mind some changes to fix the testing. I'll check in with him about the status of those, but the issue is the testing and not ddcci-driver-linux.

Revision history for this message
Seth Forshee (sforshee) wrote :

In the mean time, closing the linux bug as invalid. Backlight device support is legitimately disabled in the s390x kernel configs, no kernel changes are required.

Changed in linux (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Seth Forshee (sforshee) wrote :

Testing has been fixed now, the most recent ddcci-driver-linux tests for s390x passed.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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