Rootserver Sponsor

webtropia"

Donations

Please support your operating system's further development:

donate"

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
debabaOffline
Post subject: Since Kernel 4.9 no reboot or shutdown [Solved]  PostPosted: 14.01.2017, 16:14



Joined: 2010-09-11
Posts: 51
Location: Hessen
Status: Offline
Hi,

since Kernel 4.9 i got the problem that my machine does not shutdown or reboot. Hangs in the halt and still power is on. Either hard switchoff or reset button needed to end up the way i wanted.
Waited for standard debian 4.9 kernel, but it has the same problem.

Worked without problems on 4.8 Kernels and still does with these kernels. No Hardware was changed. No errors on startup is shown. No errors in shutdown sequence is shown. No errors in logging files or journalctl.

So please, need some advice on how to get better logging or any other idea how to get the reason for this error found.

Thanks

debaba


Last edited by debaba on 29.01.2017, 14:36; edited 1 time in total
 
 View user's profile Send private message  
Reply with quote Back to top
slhOffline
Post subject: RE: Since Kernel 4.9 no reboot or shutdown  PostPosted: 15.01.2017, 00:04



Joined: 2010-08-25
Posts: 949

Status: Offline
That doesn't happen on any of the quite diverse hardware I've tested so far, so some more details would be needed.
 
 View user's profile Send private message  
Reply with quote Back to top
debabaOffline
Post subject: RE: Since Kernel 4.9 no reboot or shutdown  PostPosted: 15.01.2017, 10:15



Joined: 2010-09-11
Posts: 51
Location: Hessen
Status: Offline
Hi slh,

Machine is a debian sid with aptosid kernel. Init-system is Systemd. Logging with journald.

here you can see hwinfo --short
      Code:

cpu:                                                           
                       AMD Phenom(tm) II X4 965 Processor, 3400 MHz
                       AMD Phenom(tm) II X4 965 Processor, 3400 MHz
                       AMD Phenom(tm) II X4 965 Processor, 3400 MHz
                       AMD Phenom(tm) II X4 965 Processor, 3400 MHz
keyboard:
  /dev/input/event2    Microsoft Nano Transceiver v1.0 for Bluetooth
mouse:
  /dev/input/mice      Microsoft Nano Transceiver v1.0 for Bluetooth
monitor:
                       PHILIPS PHL 273V5
graphics card:
                       Micro-Star International Co., Ltd. [MSI] Radeon HD 5870 1 GB GDDR5
sound:
                       ATI SBx00 Azalia (Intel HDA)
                       ATI Cypress HDMI Audio [Radeon HD 5830/5850/5870 / 6850/6870 Rebrand]
storage:
                       JMicron JMB363 SATA/IDE Controller
                       ATI SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode]
                       Marvell 88SE9128 PCIe SATA 6 Gb/s RAID controller
                       JMicron JMB363 SATA/IDE Controller
                       ATI SB7x0/SB8x0/SB9x0 IDE Controller
network:
  eth1                 Gigabyte Onboard Ethernet
  eth0                 Gigabyte Onboard Ethernet
network interface:
  eth1                 Ethernet network interface
  bond0                Ethernet network interface
  eth0                 Ethernet network interface
  lo                   Loopback network interface
disk:
  /dev/sdb             Samsung SSD 850
  /dev/sda             ST32000641AS
partition:
  /dev/sdb1            Partition
  /dev/sda1            Partition
  /dev/sda2            Partition
  /dev/sda3            Partition
  /dev/sda4            Partition
  /dev/sda5            Partition
  /dev/sda6            Partition
  /dev/sda7            Partition
cdrom:
  /dev/sr0             HL-DT-ST BDDVDRW CH08LS10
usb controller:
                       ATI SB7x0/SB8x0/SB9x0 USB EHCI Controller
                       ATI SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
                       ATI SB7x0 USB OHCI1 Controller
                       ATI SB7x0 USB OHCI1 Controller
                       ATI SB7x0/SB8x0/SB9x0 USB EHCI Controller
                       ATI SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
                       ATI SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
                       NEC uPD720200 USB 3.0 Host Controller
bios:
                       BIOS
bridge:
                       ATI RD790 Host Bridge
                       AMD Family 10h Processor Link Control
                       AMD Family 10h Processor DRAM Controller
                       ATI RD790 PCI to PCI bridge (external gfx1 port A)
                       AMD Family 10h Processor HyperTransport Configuration
                       ATI SBx00 PCI to PCI Bridge
                       ATI RD790 PCI to PCI bridge (PCI express gpp port E)
                       ATI RX780/RD790 PCI to PCI bridge (PCI express gpp port B)
                       ATI RD790 PCI to PCI bridge (PCI express gpp port F)
                       AMD Family 10h Processor Miscellaneous Control
                       AMD Family 10h Processor Address Map
                       ATI RD790 PCI to PCI bridge (PCI express gpp port A)
                       ATI SB7x0/SB8x0/SB9x0 LPC host controller
                       ATI RX780/RD790 PCI to PCI bridge (PCI express gpp port D)
hub:
                       Linux Foundation 1.1 root hub
                       Linux Foundation 2.0 root hub
                       Linux Foundation 1.1 root hub
                       Linux Foundation 1.1 root hub
                       Linux Foundation 2.0 root hub
                       Linux Foundation 2.0 root hub
                       Linux Foundation 1.1 root hub
                       Linux Foundation 3.0 root hub
                       Linux Foundation 1.1 root hub
memory:
                       Main Memory
firewire controller:
                       Texas Instruments TSB43AB23 IEEE-1394a-2000 Controller (PHY/Link)
unknown:
                       FPU
                       DMA controller
                       PIC
                       Keyboard controller
  /dev/lp0             Parallel controller
                       ATI SBx00 SMBus Controller
  /dev/ttyS0           16550A
  /dev/sg3             Marvell 91xx Config
  /dev/input/event4    Microsoft Nano Transceiver v1.0 for Bluetooth


lsmod

      Code:

st                     46643  0
lp                      9948  0
parport_pc             30037  1
bnep                   10738  2
af_packet              33302  4
bonding               109624  0
pci_stub                1613  1
vboxpci                15225  0
vboxnetadp             19028  0
vboxnetflt             17886  0
vboxdrv               369794  3 vboxnetadp,vboxnetflt,vboxpci
cpufreq_conservative     3789  0
cpufreq_powersave       1192  0
bluetooth             332751  9 bnep
rfkill                 14692  5 bluetooth
joydev                  9959  0
edac_mce_amd           17286  0
edac_core              34979  0
kvm_amd              2156963  0
kvm                   343927  1 kvm_amd
irqbypass               2808  1 kvm
serio_raw               4465  0
pcspkr                  2163  0
k10temp                 3252  0
snd_hda_codec_realtek    58112  1
snd_hda_codec_generic    54474  1 snd_hda_codec_realtek
snd_hda_codec_hdmi     32929  1
sp5100_tco              5184  0
snd_hda_intel          22157  5
snd_hda_codec          84071  4 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hda_core           44481  5 snd_hda_intel,snd_hda_codec,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hwdep               5930  1 snd_hda_codec
snd_pcm                78327  4 snd_hda_intel,snd_hda_codec,snd_hda_core,snd_hda_codec_hdmi
sg                     22694  0
snd_timer              19353  1 snd_pcm
snd                    56967  18 snd_hda_intel,snd_hwdep,snd_hda_codec,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek,snd_pcm
soundcore               5283  1 snd
ip6t_REJECT             1652  1
nf_reject_ipv6          3000  1 ip6t_REJECT
nf_log_ipv6             5206  5
evdev                  12394  21
acpi_cpufreq            7627  0
it87                   33247  0
hwmon_vid               3300  1 it87
xt_hl                   1505  22
binfmt_misc             7046  1
ip6t_rt                 2280  3
nf_conntrack_ipv6       7675  8
nf_defrag_ipv6         22681  1 nf_conntrack_ipv6
ipt_REJECT              1585  1
nf_reject_ipv4          2675  1 ipt_REJECT
xt_comment              1163  14
nf_log_ipv4             4245  5
nf_log_common           3114  2 nf_log_ipv6,nf_log_ipv4
xt_LOG                  1551  10
xt_multiport            1958  12
xt_limit                2049  13
xt_tcpudp               2671  85
xt_addrtype             2957  4
nf_conntrack_ipv4       7300  8
nf_defrag_ipv4          1539  1 nf_conntrack_ipv4
xt_conntrack            3273  16
ip6table_filter         1769  1
ip6_tables             15930  1 ip6table_filter
nf_conntrack_netbios_ns     1309  0
nf_conntrack_broadcast     1421  1 nf_conntrack_netbios_ns
nf_nat_ftp              2028  0
nf_nat                 14005  1 nf_nat_ftp
nf_conntrack_ftp        6942  1 nf_nat_ftp
nf_conntrack           65399  8 nf_conntrack_ipv6,nf_conntrack_ftp,nf_conntrack_ipv4,nf_conntrack_broadcast,nf_nat_ftp,nf_conntrack_netbios_ns,xt_conntrack,nf_nat
iptable_filter          1827  1
ppdev                   6382  0
parport                32222  3 lp,parport_pc,ppdev
sunrpc                185219  1
loop                   18844  0
dm_crypt               18093  0
dm_mod                 89409  1 dm_crypt
ip_tables              15419  1 iptable_filter
x_tables               17221  15 xt_comment,xt_LOG,xt_multiport,ipt_REJECT,ip_tables,iptable_filter,xt_tcpudp,xt_limit,ip6t_REJECT,ip6table_filter,xt_addrtype,ip6t_rt,xt_conntrack,ip6_tables,xt_hl
autofs4                22865  2
ext4                  366553  2
crc16                   1591  2 bluetooth,ext4
jbd2                   58277  1 ext4
fscrypto               14523  1 ext4
mbcache                 4370  3 ext4
btrfs                 873955  0
raid10                 39339  0
raid456                78333  0
async_raid6_recov       5702  1 raid456
async_memcpy            1918  2 raid456,async_raid6_recov
async_pq                4996  2 raid456,async_raid6_recov
async_xor               3617  3 async_pq,raid456,async_raid6_recov
async_tx                2134  5 async_xor,async_pq,raid456,async_memcpy,async_raid6_recov
xor                    10424  2 async_xor,btrfs
raid6_pq              100416  4 async_pq,btrfs,raid456,async_raid6_recov
libcrc32c               1298  1 raid456
crc32c_generic          1840  2
raid1                  27652  0
raid0                   6697  0
multipath               5879  0
linear                  3448  0
md_mod                105487  6 raid1,raid10,multipath,linear,raid0,raid456
hid_generic             1385  0
usbhid                 35373  0
hid                   101330  2 hid_generic,usbhid
ata_generic             3602  0
pata_acpi               3555  0
sr_mod                 14103  0
cdrom                  26692  1 sr_mod
sd_mod                 32590  5
psmouse               105529  0
ohci_pci                3208  0
firewire_ohci          30917  0
i2c_piix4               9856  0
firewire_core          48713  1 firewire_ohci
crc_itu_t               1595  1 firewire_core
pata_atiixp             5203  0
amdkfd                 65897  1
amd_iommu_v2            6912  1 amdkfd
ehci_pci                4039  0
ohci_hcd               27214  1 ohci_pci
ehci_hcd               41822  1 ehci_pci
radeon               1397162  7
i2c_algo_bit            5328  1 radeon
ttm                    71826  1 radeon
drm_kms_helper        112613  1 radeon
syscopyarea             3262  1 drm_kms_helper
sysfillrect             3690  1 drm_kms_helper
sysimgblt               2367  1 drm_kms_helper
fb_sys_fops             1506  1 drm_kms_helper
drm                   266981  10 radeon,ttm,drm_kms_helper
i2c_core               25705  5 i2c_piix4,i2c_algo_bit,radeon,drm_kms_helper,drm
pata_jmicron            2819  0
ahci                   27158  3
libahci                21412  1 ahci
libata                175766  6 pata_atiixp,ahci,libahci,pata_jmicron,ata_generic,pata_acpi
xhci_pci                4702  0
xhci_hcd              101928  1 xhci_pci
r8169                  66771  0
mii                     4099  1 r8169
scsi_mod              151770  5 st,sd_mod,libata,sr_mod,sg
usbcore               165880  7 usbhid,ehci_hcd,ohci_pci,xhci_pci,ohci_hcd,xhci_hcd,ehci_pci
wmi                     7380  0
fjes                   21427  0
button                  5967  0


uname -r

      Code:

4.9.0-3.slh.1-aptosid-amd64


DE is KDE

appended startup log, only error i see comes from 'hwinfo --short' detection of parallel port.

Thanks



journalctl.txt.bz2
 Description:

Download
 Filename:  journalctl.txt.bz2
 Filesize:  32.56 KB
 Downloaded:  383 Time(s)

 
 View user's profile Send private message  
Reply with quote Back to top
debabaOffline
Post subject: RE: Since Kernel 4.9 no reboot or shutdown  PostPosted: 18.01.2017, 15:19



Joined: 2010-09-11
Posts: 51
Location: Hessen
Status: Offline
Little change since using 4.9.0-4.slh.1-aptosid-amd64:
now when trying to poweroff the machine reboots, but does not power off.
 
 View user's profile Send private message  
Reply with quote Back to top
debabaOffline
Post subject: RE: Since Kernel 4.9 no reboot or shutdown  PostPosted: 29.01.2017, 14:36



Joined: 2010-09-11
Posts: 51
Location: Hessen
Status: Offline
Ok,

helped myself. Maybe it helps somebody too.

Problem is the radeon driver. According to https://bugzilla.kernel.org/show_bug.cgi?id=192271 i added 'radeon.dpm=0' to kernel commandline, don't forget to update-grub

I'm still interested in how to get more detailed logs on shutdown, please.

That's all
 
 View user's profile Send private message  
Reply with quote Back to top
slhOffline
Post subject: RE: Since Kernel 4.9 no reboot or shutdown  PostPosted: 29.01.2017, 18:31



Joined: 2010-08-25
Posts: 949

Status: Offline
Hmm, that is a strange behaviour I don't see with several radeon graphics cards over here (albeit pretty old ones).
 
 View user's profile Send private message  
Reply with quote Back to top
debabaOffline
Post subject: RE: Since Kernel 4.9 no reboot or shutdown  PostPosted: 30.01.2017, 07:52



Joined: 2010-09-11
Posts: 51
Location: Hessen
Status: Offline
Hi

story goes on. Now when i use kodi, starting a video, the complete machine hangs. Only solution is reset button. does not react on Ctrl-Alt-Backspace or C-A-Del or whatever.
So switched to radeon.dpm=-1 (=auto). Will test now the shutdown.

Thanks
 
 View user's profile Send private message  
Reply with quote Back to top
debabaOffline
Post subject: RE: Since Kernel 4.9 no reboot or shutdown  PostPosted: 30.01.2017, 08:04



Joined: 2010-09-11
Posts: 51
Location: Hessen
Status: Offline
ok
as expected same behaviour. Machine reboots with reboot or power off.
But as I like watching videos, i'll live with the switchoff by hand or using 4.8 Kernel.
If you're interested in further investigation, i will test.

debaba
 
 View user's profile Send private message  
Reply with quote Back to top
debabaOffline
Post subject: RE: Since Kernel 4.9 no reboot or shutdown  PostPosted: 02.02.2017, 07:43



Joined: 2010-09-11
Posts: 51
Location: Hessen
Status: Offline
Hi,

since Version 4.9.0-6.slh.1-aptosid-amd64 computer powers off and reboots as expected.

Thanks to slh for his precious work on this wonderful kernel. Where do you drink your beer, next time i'm in Berlin, you get as much as you can or want drink.

cheers
debaba
 
 View user's profile Send private message  
Reply with quote Back to top
slhOffline
Post subject: RE: Since Kernel 4.9 no reboot or shutdown  PostPosted: 02.02.2017, 19:38



Joined: 2010-08-25
Posts: 949

Status: Offline
This seems to be fixed by:
      Code:
From b9b487e494712c8e5905b724e12f5ef17e9ae6f9 Mon Sep 17 00:00:00 2001
From: Alex Deucher <alexander>
Date: Wed, 25 Jan 2017 12:00:29 -0500
Subject: Revert "drm/radeon: always apply pci shutdown callbacks"

From: Alex Deucher <alexander>

commit b9b487e494712c8e5905b724e12f5ef17e9ae6f9 upstream.

This seems to break reboot on some evergreen systems.

bugs:
https://bugs.freedesktop.org/show_bug.cgi?id=99524
https://bugzilla.kernel.org/show_bug.cgi?id=192271

This reverts commit a481daa88fd4d6b54f25348972bba10b5f6a84d0.

Signed-off-by: Alex Deucher <alexander>
Signed-off-by: Greg Kroah-Hartman <gregkh>

---
 drivers/gpu/drm/radeon/radeon_drv.c |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

--- a/drivers/gpu/drm/radeon/radeon_drv.c
+++ b/drivers/gpu/drm/radeon/radeon_drv.c
@@ -366,11 +366,10 @@ static void
 radeon_pci_shutdown(struct pci_dev *pdev)
 {
    /* if we are running in a VM, make sure the device
-    * torn down properly on reboot/shutdown.
-    * unfortunately we can't detect certain
-    * hypervisors so just do this all the time.
+    * torn down properly on reboot/shutdown
     */
-   radeon_pci_remove(pdev);
+   if (radeon_device_is_virtual())
+      radeon_pci_remove(pdev);
 }
 
 static int radeon_pmops_suspend(struct device *dev)

Thanks for confirming the fix.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio