Bug 198329 - 4.14.10-gentoo-r1 breaks cups functionality
Summary: 4.14.10-gentoo-r1 breaks cups functionality
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: USB (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Greg Kroah-Hartman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-01 19:46 UTC by Roman Gruber
Modified: 2018-01-03 23:17 UTC (History)
0 users

See Also:
Kernel Version: 4.14.10-gentoo-r1
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Roman Gruber 2018-01-01 19:46:06 UTC
4.14.10-gentoo-r1 breaks cups printer functinonality.
AFAIK worked with 4.12 gentoo sources and out of tree 4.13 gentoo sources.
I only print from time to time.


ASUS-G75VW /home/roman # uname -a
Linux ASUS-G75VW 4.14.10-gentoo-r1-01-01-2018 #2 SMP Mon Jan 1 18:10:06 CET 2018 x86_64 Intel(R) Core(TM) i7-3610QM CPU @ 2.30GHz GenuineIntel GNU/Linux

A test kernel works with the oldest kernel available in the portage tree: 4.1.43-gentoo-r1
emerge gentoo sources
  445  zcat /proc/config.gz > .config
make oldconfig
emerge nvidia-drivers
add it to the bootloader and booted from it

ASUS-G75VW /home/roman # cat kernel_cups_working 
Linux ASUS-G75VW 4.1.43-gentoo-r1_test #1 SMP Mon Jan 1 20:03:50 CET 2018 x86_64 Intel(R) Core(TM) i7-3610QM CPU @ 2.30GHz GenuineIntel GNU/Linux

--

Reference for full topic. What I did and such: 
https://www.linuxquestions.org/questions/linux-software-2/cups-no-printer-found-root-login-not-accepted-the-second-time-4175620647/

Linux mint works out of the box, except linux mint is unable to handle zip files. AFter unzip the ppd file it worked of course.

Linux mint test installation, for a relative, I did only test extra for myself cups and my printer: MSI CR700 notebook + linuxmint-18.3-mate-64bit.iso; install date today, fresh install from scratch; only added ppd file from kyocera homepage, and print out from gmail a file which I needed. I think mint uses kernel 4.10.x

My hardware: ASUS g75vw stock, 120 GB SSD + 20GiB of RAM, gentoo ~amd64 linux, gcc 7.2.0, eudev + openrc, desktop 17 profile


--

the printer is ~9 years old. A business printer, very expensive. less than 500 printouts on it, as i print very rarely a few pages a year.
I use gentoo longer as this printer, And this printer survived several gentoo notebooks.

--

same /etc/cups folder. basically same kernel config and cups works with older test kernel. wifi is broken, as it seems older kernel has some other symbols for wifi.

Workaround is to boot very outdated kernel to use my printer now.

--

I do not know any kernel version which is useable

4.12 broke hda_intel
4.13 had issues is out of the tree
4.10 had also issues
since ~4.12-4.13 cpupower frequency-set -f is broken. I can not set my cpu to 1200.000 to get max 3 hours of battery life out of my notebook

--

As I changed only the kernel and it works suddenly I blame therefore kernel branch 4.14.x for that bug now.

Printer also works with an out of the box new linux mint installation on a very old MSI CR-700 notebook after providing an unzipped ppd file as needed from kyocera.
Comment 1 Greg Kroah-Hartman 2018-01-01 20:00:40 UTC
On Mon, Jan 01, 2018 at 07:46:06PM +0000, bugzilla-daemon@bugzilla.kernel.org wrote:
> https://bugzilla.kernel.org/show_bug.cgi?id=198329
> 
>             Bug ID: 198329
>            Summary: 4.14.10-gentoo-r1 breaks cups functionality
>            Product: Drivers
>            Version: 2.5
>     Kernel Version: 4.14.10-gentoo-r1

All USB bugs should be sent to the linux-usb@vger.kernel.org mailing
list, and not entered into bugzilla.  Please bring this issue up there,
if it is still a problem in the latest kernel release.
Comment 2 Roman Gruber 2018-01-01 22:00:19 UTC
Homepage says https://www.kernel.org/

stable: 	4.14.10 	2017-12-29

So it is the latest kernel release of course!

I'll use a spam e-mail adress to send them those two links. Thanks for the input.
Comment 3 Roman Gruber 2018-01-02 19:36:22 UTC
I will not make another bug report. Similar issue also related to USB but not CUPS related

Same box. Reverted to newest stable kernel.org gentoo based kernel.

roman@ASUS-G75VW ~ $ uname -a
Linux ASUS-G75VW 4.9.73-gentoo-03-01-2018 #3 SMP Tue Jan 2 16:36:33 CET 2018 x86_64 Intel(R) Core(TM) i7-3610QM CPU @ 2.30GHz GenuineIntel GNU/Linux

forum: https://forum.xda-developers.com/galaxy-tab-a/help/heimdall-t3701920/page2
My user name there: __roman__

Please pay attention to post #12

I was unable to flash TWRP recovery to my SAMSUNG Tablet with heimdall.

I'm kinda certain as cups was misbehaving and also heimdall it is a kernel issue.

Heimdall is the open source software to use the SAMSUNG odin protocol to write custom software like recovery to SAMSUNG TABLETS.

Only thing I changed regarding heimdall was the Kernel.

Only changes I did because I want to enforce fixed lowest cpu frequency was: CONFIG_X86_ACPI_CPUFREQ: M; X86_PCC_CPUFREQ [=m]; X86_INTEL_PSTATE [=n] (disable that as it is broken, i want 3 hours of battery life out of my notebook when i am on the road!)

There is small chance that --no-reboot option of heimdall may be the root cause but I highly doubt it. AS heimdall and cups were "broken" in my point of view as a user. And a long term gentoo user ~12-13 years. I used linux on other distros before also like SUSE 6.2. slackware 96 and such.

I tried several times to write custom recovery with heimdall.
i used several hours to get the printer working with kernel 4.14.x
I tested all different use-flags for cups and other packages. 
new cups config folder and such.

using an older kernel + grabing /cups folder from a backup (maybe 2 weeks old backup i suppose) fixed it
gentoo does not touch config files in /etc
I did that to rule out a mistake on my side, so i grabbed from a full backup the hole cups folder in etc.

For myself the issue is resolved. Broken kernel. I had different issues with other kernel branches also, which do not exists as of a few hours ago. 4.10 / 4.12 / 4.13

I will see in a few weeks if kernel branch 4.9.x is useable for myself.
Comment 4 Roman Gruber 2018-01-03 23:17:23 UTC
Bug closed, won't fix as it is alpha status kernel release!

kernel 4.14.x breaks usb functinonality

reported back to kernel.org mailing list. All info given to the guy in question.

feature broken for

cups + business printer from kyocera
cups + brother scrapyard printer, DCP-150C
heimdall

--

works with kernel 4.1.x gentoo-sources, out of the tree taken 1-1-2018
works with kernel 4.9.7x gentoo-sources, out of the tree taken 2-1-2018

kernels higher as 4.9.x are ****, as you can see on => https://archives.gentoo.org/gentoo-d...bb2e0259f2ac3e
and other posts on the net

Kernel org better rename it to release candidate status, or alpha status: "stable:	4.14.11" or "mainline:	4.15-rc6"

only stable kernels are longterm kernels because of more strict patch requirements.

--

When only using a strict patchset kernel release, named longterm fixes 3 different software issues, it is clearly stated than it is a kernel issue!

All information was sent via e-mail to the guy in question, including dmesg, in detail descriptions. in detail explanation, which was documented in the process to find the root cause on different forums, including xda and linuxquestions. and also of course kernel.configs in use

--

personal opinion. in recent past few months i had many issues with the linux kernel. this was not the case a few years ago. I'm using gentoo for over 13 years. before i used suse 6.2, redhat, slackware96 and others. i'm on a linux only basis for a very long time. these kernel caused issues are unacceptable and will most likely cause myself to change to something else which is not such fragile in regards of stability. 
I'm using a dated gamer notebook, asus g75vw, with ivybridge 3610qm, i7 cpu.
that is dated hardware. so the software should be more stable as this

acpi is broken
snd_hda_intel is broken for certain kernel releases
ext4 is broken for certain kernel releases
cpu frequency scaling is broken because of some stupid cocky intel developer who does not craps the difference in 3 hours battery life with dated cpufrequency scaling governour who sets all cores fix to 1200000. his stupid arguement it is much better to use max frequency and than step down is nonsense when i want max juice out of my laptop battery. with that new kernel ~4.12 i get around 1 hour out of a possible 3 hours something. only because someone works at intel, does not really means he is smart in regards of this software component. 
common components as printer does not work, with a common printer software from apple, named cups. we are lucky to have a certain standard for printers which is cups. not a fragmentation like in webbrowser, desktop environments, init systems and such.

AS said, dated hardware should always works better. and thatw as always the case for many years

also there is no excuse
when 3 different things does not work. it is more than obvious it is a kernel usb stack issue, not well tested.

a hardware issue cna be ruled out, as the one kyocera printer, which has less than 500 prints total, worked instantly after i provided an unzipped ppd file from kyocera, to a virgin fresh linux mint 18.3 installation on a relative MSI-CR700 notebook. Same cables, same printer, same user. Different kernel version+ different distro+different notebook

same printer worked with downgraded kernel 4.1 or 4.9.

I now understand why slackware uses kernel 4.4 and linux mint uses dated 4.10 kernels.

--

I also tried to explain it several times, wiht screenshots, with different words so the other side knows it is a bug.

I do not get the thing to report usb bugs, which are clearly kernel related to some other mail adress. Where the admin is not able to setup properly his mailserver in regards of

please send us only text mails
plesae only answer on bottom

This only yields in fragmentation of the information in question, of the bugs in question.

--

according to the gentoo wiki, the usb printer kernel thing is something legacy, which is replaced by libusb. If that is the case, you are the specialists, than it should be marked legacy and removed. As afaik according ot the gentoo wiki the feature is now provided by cups and libusb!

Also the text should be adapted with a note at least. It does not hurt anyone when you guys at least add the following

please do not use it, as the feature is now provided with libusb and cups. it is for much older software / printers, you most likely do not want it. ...

Note You need to log in before you can comment on or make changes to this bug.