Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Booting hangs at "Freeing unused kernel memory" (ahci) FIXED
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
e3k
Guru
Guru


Joined: 01 Oct 2007
Posts: 515
Location: Quantum Flux

PostPosted: Wed Oct 24, 2007 12:40 pm    Post subject: Booting hangs at "Freeing unused kernel memory" (a Reply with quote

it does not happen everytime, and if it happens i press ctrl-alt-del and have a 50% chance that it boots successfully.
i think i have this after kernel rebuild with sata ahci driver support.
is this a known issue?

ps: the sata dvdburner for which i need the drivers works fine


Last edited by e3k on Sun Dec 30, 2007 8:30 pm; edited 2 times in total
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Wed Oct 24, 2007 1:40 pm    Post subject: Reply with quote

Problems like that can be difficult to diagnose, but if you think it might be due to that driver, try removing it from the kernel and see if it helps. At least once it's narrowed down, you could try making it a module and seeing if it works better that way (provided you don't need it to boot the system).
Back to top
View user's profile Send private message
e3k
Guru
Guru


Joined: 01 Oct 2007
Posts: 515
Location: Quantum Flux

PostPosted: Wed Oct 24, 2007 2:07 pm    Post subject: Reply with quote

thanks i try to use the driver as module when i get back home. the system booted fine without the driver, so i assume the module should not be a problem. i think i could also try the other sata driver, the one designed for chipset of my mother board, but i am lazy to experiment when i know that my dvd works fine with the acpi driver.

by the way, there is realy no possibility to to turn on some more verbose output for the memory freeing process?
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Wed Oct 24, 2007 2:19 pm    Post subject: Reply with quote

Ahh, I would definitely avoid using the AHCI driver if there's one for your particular chipset available. Not sure what chipset you use, but the VIA driver works great for me.
Back to top
View user's profile Send private message
e3k
Guru
Guru


Joined: 01 Oct 2007
Posts: 515
Location: Quantum Flux

PostPosted: Wed Oct 24, 2007 8:40 pm    Post subject: Reply with quote

i am also not quite sure, so its time to figure out... ;)

i have buildi the kernel with ahci as module and now i have not a hanging on freeing memory issue but a :'scanning for ahci devices...' isue which comes later when loading the modules.

************************updated below
with this kernel i had 0 successful boots out of 8 tries. after unpluging the dvd sata cable (the only sata device in my pc) the system booted fine.
**************************
with this kernel i have allways a delay in booting (1min) and then the system boots fine but w/o dvd rom support.


i will do some research on this and report back.


Last edited by e3k on Tue Oct 30, 2007 6:44 pm; edited 1 time in total
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Wed Oct 24, 2007 11:43 pm    Post subject: Reply with quote

Again, I'd recommend avoiding AHCI entirely when there's a chipset specific driver available.
Back to top
View user's profile Send private message
e3k
Guru
Guru


Joined: 01 Oct 2007
Posts: 515
Location: Quantum Flux

PostPosted: Thu Oct 25, 2007 9:00 am    Post subject: Reply with quote

i have this mobo: MSI K9N Neo-F V3 - nForce560, DualCh DDR2 800, PCIe x16, SATA II RAID, GLAN, 8ch audio, scAM2 (and this dvd: PLEXTOR PX-810SA SATA)
i will first try to rebuild the kernel with the nforce drivers inside kernel.
Back to top
View user's profile Send private message
e3k
Guru
Guru


Joined: 01 Oct 2007
Posts: 515
Location: Quantum Flux

PostPosted: Fri Oct 26, 2007 8:44 am    Post subject: Reply with quote

did remove the ahci driver from kernel - replaced by nvidia driver: now i have a successfull boot but the dvd does not work.

i will now try it with ahci driver and diverse grub boot options i have found.
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5947

PostPosted: Fri Oct 26, 2007 8:59 am    Post subject: Reply with quote

e3k wrote:
did remove the ahci driver from kernel - replaced by nvidia driver: now i have a successfull boot but the dvd does not work.

i will now try it with ahci driver and diverse grub boot options i have found.


did you accidentally turn off sata or scsi emulation or something? perhaps a peek at your .config would help. mind pastebinning it along with a lspci?
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
e3k
Guru
Guru


Joined: 01 Oct 2007
Posts: 515
Location: Quantum Flux

PostPosted: Fri Oct 26, 2007 10:03 pm    Post subject: Reply with quote

lspci
http://pastebin.com/m41527b0f

2.6.22-gentoo-r5.config - where the problem initially occured
http://pastebin.com/m36ff5146

2.6.22-gentoo-r8 - i did install a new kernel using a similar but not equal .config
http://pastebin.com/m4ee2c8a3


now with the r8 kernel it booted 3 times without hangup with ahci drivers and without the nvidia chipset drivers.
Back to top
View user's profile Send private message
e3k
Guru
Guru


Joined: 01 Oct 2007
Posts: 515
Location: Quantum Flux

PostPosted: Sun Oct 28, 2007 5:33 pm    Post subject: Reply with quote

i had together 8 boots w/o problems with the R8 kernel and new .config . now i got again a hangup. after pressing ctrl-alt-del he successfully went trough the memory freeing.
Back to top
View user's profile Send private message
e3k
Guru
Guru


Joined: 01 Oct 2007
Posts: 515
Location: Quantum Flux

PostPosted: Tue Oct 30, 2007 6:05 pm    Post subject: Reply with quote

here some dmesg information. i will keep searching in the meantime ;)
e





**************************************************
with Nvidia Sata support in kernel (dvd does not work)
**************************************************

dmesg | grep scsi
..nothihg

dmesg | grep SCSI
SCSI subsystem initialized

dmesg | grep ata
..nothing
**************************************************





**************************************************
with ahci as module (booting is delayed, dvd does not work)
**************************************************
dmesg | grep ahci

ahci 0000:00:0a.0: version 2.2
ahci 0000:00:0a.0: AHCI 0001.0100 32 slots 4 ports 3 Gbps 0xf impl SATA mode
ahci 0000:00:0a.0: flags: 64bit ncq pm led clo pmp pio
scsi0 : ahci
scsi1 : ahci
scsi2 : ahci
scsi3 : ahci

dmesg | grep ata

ata1: SATA max UDMA/133 cmd 0xffffc20000a9c100 ctl 0x0000000000000000 bmdma 0x0000000000000000 irq 1275
ata2: SATA max UDMA/133 cmd 0xffffc20000a9c180 ctl 0x0000000000000000 bmdma 0x0000000000000000 irq 1275
ata3: SATA max UDMA/133 cmd 0xffffc20000a9c200 ctl 0x0000000000000000 bmdma 0x0000000000000000 irq 1275
ata4: SATA max UDMA/133 cmd 0xffffc20000a9c280 ctl 0x0000000000000000 bmdma 0x0000000000000000 irq 1275
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata1.00: ATAPI: PLEXTOR DVDR PX-810SA, 1.00, max UDMA/66
ata1.00: qc timeout (cmd 0xef)
ata1.00: failed to set xfermode (err_mask=0x4)
ata1: failed to recover some devices, retrying in 5 secs
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata1.00: qc timeout (cmd 0xef)
ata1.00: failed to set xfermode (err_mask=0x4)
ata1.00: limiting speed to UDMA/66:PIO3
ata1: failed to recover some devices, retrying in 5 secs
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata1.00: qc timeout (cmd 0xef)
ata1.00: failed to set xfermode (err_mask=0x4)
ata1.00: disabled
ata2: SATA link down (SStatus 0 SControl 300)
ata3: SATA link down (SStatus 0 SControl 300)
ata4: SATA link down (SStatus 0 SControl 300)
**************************************************




**************************************************
with ahci in kernel (boot sporadicaly hangs when freeing memory, dvd works)
**************************************************
dmesg | grep scsi

scsi0 : ahci
scsi1 : ahci
scsi2 : ahci
scsi3 : ahci
scsi 0:0:0:0: CD-ROM PLEXTOR DVDR PX-810SA 1.00 PQ: 0 ANSI: 5
sr0: scsi3-mmc drive: 94x/94x writer dvd-ram cd/rw xa/form2 cdda tray
sr 0:0:0:0: Attached scsi CD-ROM sr0
sr 0:0:0:0: Attached scsi generic sg0 type 5

dmesg | grep ata
ata1: SATA max UDMA/133 cmd 0xffffc20000a98100 ctl 0x0000000000000000 bmdma 0x0000000000000000 irq 1275
ata2: SATA max UDMA/133 cmd 0xffffc20000a98180 ctl 0x0000000000000000 bmdma 0x0000000000000000 irq 1275
ata3: SATA max UDMA/133 cmd 0xffffc20000a98200 ctl 0x0000000000000000 bmdma 0x0000000000000000 irq 1275
ata4: SATA max UDMA/133 cmd 0xffffc20000a98280 ctl 0x0000000000000000 bmdma 0x0000000000000000 irq 1275
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata1.00: ATAPI: PLEXTOR DVDR PX-810SA, 1.00, max UDMA/66
ata1.00: configured for UDMA/66
ata2: SATA link down (SStatus 0 SControl 300)
ata3: SATA link down (SStatus 0 SControl 300)
ata4: SATA link down (SStatus 0 SControl 300)
ata1: soft resetting port
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata1.00: configured for UDMA/66
ata1: EH complete
**************************************************
Back to top
View user's profile Send private message
e3k
Guru
Guru


Joined: 01 Oct 2007
Posts: 515
Location: Quantum Flux

PostPosted: Tue Oct 30, 2007 7:17 pm    Post subject: Reply with quote

with google("qc timeout" xfermode "sata dvd") i could find a few hits but no real solutions. i will continue later.
Back to top
View user's profile Send private message
e3k
Guru
Guru


Joined: 01 Oct 2007
Posts: 515
Location: Quantum Flux

PostPosted: Sun Nov 04, 2007 10:43 am    Post subject: Reply with quote

noacpi noapic acpi=null did not help in the grub boot line
i did also try to turn off acpi in bios. did not affect the behavior of the system.
Back to top
View user's profile Send private message
e3k
Guru
Guru


Joined: 01 Oct 2007
Posts: 515
Location: Quantum Flux

PostPosted: Tue Nov 06, 2007 4:42 pm    Post subject: Reply with quote

https://bugs.gentoo.org/show_bug.cgi?id=198041
Back to top
View user's profile Send private message
e3k
Guru
Guru


Joined: 01 Oct 2007
Posts: 515
Location: Quantum Flux

PostPosted: Sun Dec 30, 2007 8:29 pm    Post subject: Reply with quote

fixed with using 2.6.24-rc6 kernel. thanks for troubleshooting guidance at bugs.gentoo.org
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum