[Kernel-packages] [Bug 1743027] Re: error loading realtime clock since upgrading to 17.10

2018-03-06 Thread Alexandre BELLONI
The issue is caused by CONFIG_WDAT_WDT which driver is stealing the RTC
resources before the RTC driver is probed. Disabling CONFIG_WDAT_WDT
will solve that issue.

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

Title:
  error loading realtime clock since upgrading to 17.10

Status in linux package in Ubuntu:
  Triaged

Bug description:
  (originally asked over at askubuntu.com, but is still unresolved:
  https://askubuntu.com/questions/971349/problem-with-real-time-clock-
  since-upgrading-to-ubuntu-17-10)

  I recently upgraded from Ubuntu 17.04 to Ubuntu 17.10 using the
  software update process. The update completed without any errors, and
  Ubuntu 17.10 is now running without any major issues.

  However, I was running a script previously that uses rtcwake which has
  since stopped working. The script automatically hibernates my laptop
  after a set period of time in sleep mode, and was working perfectly in
  Ubuntu 17.04.

  In the process of troubleshooting, I discovered that the problem was
  with rtcwake which is complaining about /dev/rtc0 missing.

  Here is output from a sample rtcwake command:

  peter@haven:~$ rtcwake -m no -s 1300
  rtcwake: assuming RTC uses UTC ...
  rtcwake: /dev/rtc0: unable to find device: No such file or directory

  I verified that in fact, that directory is missing. Since this was
  working prior to the upgrade, I have to assume that it was there
  previously, but I don't know for sure.

  In researching the error, I found some suggestions to get further
  information with timedatectl and hwclock, so here are the results from
  those commands as well.

  Output of timedatectl:

  peter@haven:~$ timedatectl
Local time: Fri 2017-10-27 19:06:26 EDT
Universal time: Fri 2017-10-27 23:06:26 UTC
  RTC time: n/a
 Time zone: America/New_York (EDT, -0400)
   Network time on: yes
  NTP synchronized: yes
   RTC in local TZ: no

  Output of hwclock --debug:

  peter@haven:~$ sudo hwclock --debug
  [sudo] password for peter: 
  hwclock from util-linux 2.30.1
  Trying to open: /dev/rtc0
  Trying to open: /dev/rtc
  Trying to open: /dev/misc/rtc
  No usable clock interface found.
  hwclock: Cannot access the Hardware Clock via any known method.

  UPDATE

  When I boot with my old kernel, 4.10.0-37-generic the real-time clock
  works fine.

  I get the following RTC messages in dmesg when I boot the
  4.13.0-16-generic kernel:

  peter@haven:~$ dmesg | grep -i rtc
  [0.089393] RTC time: 17:03:55, date: 11/01/17
  [1.238784] rtc_cmos 00:01: RTC can wake from S4
  [1.238794] rtc_cmos: probe of 00:01 failed with error -16
  [1.295459] hctosys: unable to open rtc device (rtc0)

  UPDATE #2

  Well, I was starting to believe that I had a hardware issue, since
  discovering I was unable to save changes to my BIOS and could not boot
  from USB. As it turns out, my laptop was bitten by this bug:
  https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1734147 causing
  my BIOS to be locked in a read-only state.

  Once I resolved the BIOS issue, and fixed the USB boot problem, I did
  a live boot of Ubuntu 17.10. The issue with my real time clock still
  exists under this clean boot scenario, yet when I boot other distros,
  like Linux Mint 18.3 and the real time clock works fine. I feel this
  definitely has something to do with the Ubuntu install, perhaps even a
  kernel bug.

  UPDATE #3

  More evidence to suggest this is a kernel bug: I live-booted a copy of
  Antergos Linux, which was using the Arch kernel 4.14.12-1-ARCH and it
  exhibited the same problem with the real time clock as Ubuntu 17.10.
  In addition, I confirmed that the Linux Mint version I booted earlier
  (see Update #2) was on the Ubuntu kernel 4.10.0-38-generic.

  So, I suspect that sometime between kernels 4.10 and 4.13 this bug was 
introduced.
  --- 
  ApportVersion: 2.20.7-0ubuntu3.7
  Architecture: amd64
  AudioDevicesInUse:
   USERPID ACCESS COMMAND
   /dev/snd/controlC0:  peter  1832 F pulseaudio
   /dev/snd/controlC1:  peter  1832 F pulseaudio
  CurrentDesktop: ubuntu:GNOME
  DistroRelease: Ubuntu 17.10
  HibernationDevice: RESUME=UUID=a602efe1-467d-4ac4-806f-1b931c91cdad
  InstallationDate: Installed on 2017-04-05 (292 days ago)
  InstallationMedia: Ubuntu 16.10 "Yakkety Yak" - Release amd64 (20161012.2)
  MachineType: LENOVO 20354
  Package: linux (not installed)
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 inteldrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.13.0-25-generic.efi.signed 
root=UUID=fa5454aa-9072-475d-b515-acd51a6166cc ro quiet splash vt.handoff=7
  ProcVersionSignature: Ubuntu 4.13.0-25.29-generic 4.13.13
  RelatedPackageVersions:
   linux-restricted-modules-4.13.0-25-generic N/A
   

[Kernel-packages] [Bug 1218804] [NEW] usb mass storage devices not working in 3.8.0-29

2013-08-30 Thread Alexandre BELLONI
Public bug reported:

Hi,

I got some usb keys that are not working anymore since upgrading to
3.8.0-29. I can confirm they are working fine when using 3.8.0-27.

dmesg excerpt:
Aug 30 11:02:56 ney kernel: [  859.220974] usb 1-1.2: new high-speed USB device 
number 5 using ehci-pci
Aug 30 11:02:56 ney kernel: [  859.315898] usb 1-1.2: New USB device found, 
idVendor=1516, idProduct=1226
Aug 30 11:02:56 ney kernel: [  859.315905] usb 1-1.2: New USB device strings: 
Mfr=1, Product=2, SerialNumber=3
Aug 30 11:02:56 ney kernel: [  859.315909] usb 1-1.2: Product: USB Drive
Aug 30 11:02:56 ney kernel: [  859.315912] usb 1-1.2: Manufacturer: SKYMEDI
Aug 30 11:02:56 ney kernel: [  859.315915] usb 1-1.2: SerialNumber: ^FK
Aug 30 11:02:56 ney kernel: [  859.317060] scsi15 : usb-storage 1-1.2:1.0
Aug 30 11:02:57 ney kernel: [  861.004413] scsi 15:0:0:0: Direct-Access 
  1.00 PQ: 0 ANSI: 4
Aug 30 11:02:57 ney kernel: [  861.006099] sd 15:0:0:0: Attached scsi generic 
sg1 type 0
Aug 30 11:02:57 ney kernel: [  861.006798] sd 15:0:0:0: [sdb] 15204352 512-byte 
logical blocks: (7.78 GB/7.25 GiB)
Aug 30 11:02:57 ney kernel: [  861.010550] sd 15:0:0:0: [sdb] Write Protect is 
off
Aug 30 11:02:57 ney kernel: [  861.010559] sd 15:0:0:0: [sdb] Mode Sense: 2f 00 
00 00
Aug 30 11:02:57 ney kernel: [  861.013025] sd 15:0:0:0: [sdb] Write cache: 
disabled, read cache: enabled, doesn't support DPO or FUA

Then , there is no sdb appearing in /proc/partitions and /dev/sdb is not
created.

After a while (30s), I get:

Aug 30 11:03:28 ney kernel: [  891.254466] usb 1-1.2: reset high-speed USB 
device number 5 using ehci-pci
Aug 30 11:03:28 ney kernel: [  891.347004] usb 1-1.2: device firmware changed
Aug 30 11:03:28 ney kernel: [  891.347173] sd 15:0:0:0: Device offlined - not 
ready after error recovery
Aug 30 11:03:28 ney kernel: [  891.347266] usb 1-1.2: USB disconnect, device 
number 5
Aug 30 11:03:28 ney kernel: [  891.347963] sd 15:0:0:0: [sdb] Attached SCSI 
removable disk
Aug 30 11:03:28 ney kernel: [  891.426368] usb 1-1.2: new high-speed USB device 
number 6 using ehci-pci
Aug 30 11:03:28 ney kernel: [  891.519897] usb 1-1.2: New USB device found, 
idVendor=1516, idProduct=1226
Aug 30 11:03:28 ney kernel: [  891.519905] usb 1-1.2: New USB device strings: 
Mfr=1, Product=2, SerialNumber=3
Aug 30 11:03:28 ney kernel: [  891.519909] usb 1-1.2: Product: USB Drive
Aug 30 11:03:28 ney kernel: [  891.519912] usb 1-1.2: Manufacturer: SKYMEDI
Aug 30 11:03:28 ney kernel: [  891.519915] usb 1-1.2: SerialNumber: ^GK
Aug 30 11:03:28 ney kernel: [  891.520758] scsi16 : usb-storage 1-1.2:1.0
Aug 30 11:03:29 ney kernel: [  892.522516] scsi 16:0:0:0: Direct-Access 
  1.00 PQ: 0 ANSI: 4
Aug 30 11:03:29 ney kernel: [  892.523984] sd 16:0:0:0: Attached scsi generic 
sg1 type 0
Aug 30 11:03:29 ney kernel: [  892.524777] sd 16:0:0:0: [sdb] 15204352 512-byte 
logical blocks: (7.78 GB/7.25 GiB)
Aug 30 11:03:29 ney kernel: [  892.527323] sd 16:0:0:0: [sdb] Write Protect is 
off
Aug 30 11:03:29 ney kernel: [  892.527330] sd 16:0:0:0: [sdb] Mode Sense: 2f 00 
00 00
Aug 30 11:03:29 ney kernel: [  892.529763] sd 16:0:0:0: [sdb] Write cache: 
disabled, read cache: enabled, doesn't support DPO or FUA


And so on.

Using 3.8.0-27, I get:
[ 1166.848466] usb 3-2.1.1: new high-speed USB device number 10 using xhci_hcd
[ 1166.866354] usb 3-2.1.1: New USB device found, idVendor=1516, idProduct=1226
[ 1166.866361] usb 3-2.1.1: New USB device strings: Mfr=1, Product=2, 
SerialNumber=3
[ 1166.866365] usb 3-2.1.1: Product: USB Drive
[ 1166.866368] usb 3-2.1.1: Manufacturer: SKYMEDI
[ 1166.866371] usb 3-2.1.1: SerialNumber: 
[ 1166.866371] K
[ 1166.867162] scsi9 : usb-storage 3-2.1.1:1.0
[ 1169.303686] scsi 9:0:0:0: Direct-Access   1.00 
PQ: 0 ANSI: 4
[ 1169.304967] sd 9:0:0:0: Attached scsi generic sg1 type 0
[ 1169.305291] sd 9:0:0:0: [sdb] 15204352 512-byte logical blocks: (7.78 
GB/7.25 GiB)
[ 1169.308129] sd 9:0:0:0: [sdb] Write Protect is off
[ 1169.308138] sd 9:0:0:0: [sdb] Mode Sense: 2f 00 00 00
[ 1169.310052] sd 9:0:0:0: [sdb] Write cache: disabled, read cache: enabled, 
doesn't support DPO or FUA
[ 1169.316515]  sdb: sdb1
[ 1169.322861] sd 9:0:0:0: [sdb] Attached SCSI removable disk
[ 1170.150762] EXT4-fs (sdb1): recovery complete
[ 1170.154789] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: 
(null)

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: linux-image-3.8.0-27-generic 3.8.0-27.40
ProcVersionSignature: Ubuntu 3.8.0-27.40-generic 3.8.13.4
Uname: Linux 3.8.0-27-generic x86_64
ApportVersion: 2.9.2-0ubuntu8.3
Architecture: amd64
AudioDevicesInUse:
 USERPID ACCESS COMMAND
 /dev/snd/controlC0:  alex   2510 F pulseaudio
Date: Fri Aug 30 11:31:10 2013
HibernationDevice: RESUME=UUID=0cf2483e-c441-45a0-858d-b7bef8435676
InstallationDate: Installed on 2013-03-15 (167 days ago)
InstallationMedia: Ubuntu 12.10 Quantal Quetzal - Release 

[Kernel-packages] [Bug 1218804] Re: usb mass storage devices not working in 3.8.0-29

2013-08-30 Thread Alexandre BELLONI
Actually, I tried with another usb keys and it is working fine on
3.8.0-29. The affected ones are all Kingston DT101 G2. Some of those
report Manufacturer: SKYMEDI with a broken SerialNumber: ^FK, others are
reporting Product: DT 101 G2 Manufacturer: KINGSTON SerialNumber:
001CC0EC350DACB0270B4EB7 but still, they don't work anymore on 3.8.0-29.

If necessary, I can try 3.8.0-28

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

Title:
  usb mass storage devices not working in 3.8.0-29

Status in “linux” package in Ubuntu:
  Confirmed

Bug description:
  Hi,

  I got some usb keys that are not working anymore since upgrading to
  3.8.0-29. I can confirm they are working fine when using 3.8.0-27.

  dmesg excerpt:
  Aug 30 11:02:56 ney kernel: [  859.220974] usb 1-1.2: new high-speed USB 
device number 5 using ehci-pci
  Aug 30 11:02:56 ney kernel: [  859.315898] usb 1-1.2: New USB device found, 
idVendor=1516, idProduct=1226
  Aug 30 11:02:56 ney kernel: [  859.315905] usb 1-1.2: New USB device strings: 
Mfr=1, Product=2, SerialNumber=3
  Aug 30 11:02:56 ney kernel: [  859.315909] usb 1-1.2: Product: USB Drive
  Aug 30 11:02:56 ney kernel: [  859.315912] usb 1-1.2: Manufacturer: SKYMEDI
  Aug 30 11:02:56 ney kernel: [  859.315915] usb 1-1.2: SerialNumber: ^FK
  Aug 30 11:02:56 ney kernel: [  859.317060] scsi15 : usb-storage 1-1.2:1.0
  Aug 30 11:02:57 ney kernel: [  861.004413] scsi 15:0:0:0: Direct-Access   
1.00 PQ: 0 ANSI: 4
  Aug 30 11:02:57 ney kernel: [  861.006099] sd 15:0:0:0: Attached scsi generic 
sg1 type 0
  Aug 30 11:02:57 ney kernel: [  861.006798] sd 15:0:0:0: [sdb] 15204352 
512-byte logical blocks: (7.78 GB/7.25 GiB)
  Aug 30 11:02:57 ney kernel: [  861.010550] sd 15:0:0:0: [sdb] Write Protect 
is off
  Aug 30 11:02:57 ney kernel: [  861.010559] sd 15:0:0:0: [sdb] Mode Sense: 2f 
00 00 00
  Aug 30 11:02:57 ney kernel: [  861.013025] sd 15:0:0:0: [sdb] Write cache: 
disabled, read cache: enabled, doesn't support DPO or FUA

  Then , there is no sdb appearing in /proc/partitions and /dev/sdb is
  not created.

  After a while (30s), I get:

  Aug 30 11:03:28 ney kernel: [  891.254466] usb 1-1.2: reset high-speed USB 
device number 5 using ehci-pci
  Aug 30 11:03:28 ney kernel: [  891.347004] usb 1-1.2: device firmware changed
  Aug 30 11:03:28 ney kernel: [  891.347173] sd 15:0:0:0: Device offlined - not 
ready after error recovery
  Aug 30 11:03:28 ney kernel: [  891.347266] usb 1-1.2: USB disconnect, device 
number 5
  Aug 30 11:03:28 ney kernel: [  891.347963] sd 15:0:0:0: [sdb] Attached SCSI 
removable disk
  Aug 30 11:03:28 ney kernel: [  891.426368] usb 1-1.2: new high-speed USB 
device number 6 using ehci-pci
  Aug 30 11:03:28 ney kernel: [  891.519897] usb 1-1.2: New USB device found, 
idVendor=1516, idProduct=1226
  Aug 30 11:03:28 ney kernel: [  891.519905] usb 1-1.2: New USB device strings: 
Mfr=1, Product=2, SerialNumber=3
  Aug 30 11:03:28 ney kernel: [  891.519909] usb 1-1.2: Product: USB Drive
  Aug 30 11:03:28 ney kernel: [  891.519912] usb 1-1.2: Manufacturer: SKYMEDI
  Aug 30 11:03:28 ney kernel: [  891.519915] usb 1-1.2: SerialNumber: ^GK
  Aug 30 11:03:28 ney kernel: [  891.520758] scsi16 : usb-storage 1-1.2:1.0
  Aug 30 11:03:29 ney kernel: [  892.522516] scsi 16:0:0:0: Direct-Access   
1.00 PQ: 0 ANSI: 4
  Aug 30 11:03:29 ney kernel: [  892.523984] sd 16:0:0:0: Attached scsi generic 
sg1 type 0
  Aug 30 11:03:29 ney kernel: [  892.524777] sd 16:0:0:0: [sdb] 15204352 
512-byte logical blocks: (7.78 GB/7.25 GiB)
  Aug 30 11:03:29 ney kernel: [  892.527323] sd 16:0:0:0: [sdb] Write Protect 
is off
  Aug 30 11:03:29 ney kernel: [  892.527330] sd 16:0:0:0: [sdb] Mode Sense: 2f 
00 00 00
  Aug 30 11:03:29 ney kernel: [  892.529763] sd 16:0:0:0: [sdb] Write cache: 
disabled, read cache: enabled, doesn't support DPO or FUA

  
  And so on.

  Using 3.8.0-27, I get:
  [ 1166.848466] usb 3-2.1.1: new high-speed USB device number 10 using xhci_hcd
  [ 1166.866354] usb 3-2.1.1: New USB device found, idVendor=1516, 
idProduct=1226
  [ 1166.866361] usb 3-2.1.1: New USB device strings: Mfr=1, Product=2, 
SerialNumber=3
  [ 1166.866365] usb 3-2.1.1: Product: USB Drive
  [ 1166.866368] usb 3-2.1.1: Manufacturer: SKYMEDI
  [ 1166.866371] usb 3-2.1.1: SerialNumber: 
  [ 1166.866371] K
  [ 1166.867162] scsi9 : usb-storage 3-2.1.1:1.0
  [ 1169.303686] scsi 9:0:0:0: Direct-Access   1.00 
PQ: 0 ANSI: 4
  [ 1169.304967] sd 9:0:0:0: Attached scsi generic sg1 type 0
  [ 1169.305291] sd 9:0:0:0: [sdb] 15204352 512-byte logical blocks: (7.78 
GB/7.25 GiB)
  [ 1169.308129] sd 9:0:0:0: [sdb] Write Protect is off
  [ 1169.308138] sd 9:0:0:0: [sdb] Mode Sense: 2f 00 00 00
  [ 1169.310052] sd 9:0:0:0: [sdb] Write cache: disabled, read cache: enabled, 
doesn't support DPO or FUA
  [ 1169.316515]  sdb: sdb1