Bug 428023 - [sata_nv 4GB] System hangs or reboots when CD media is loaded in drive
[sata_nv 4GB] System hangs or reboots when CD media is loaded in drive
Product: Fedora
Classification: Fedora
Component: kernel (Show other bugs)
x86_64 Linux
low Severity medium
: ---
: ---
Assigned To: Alan Cox
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2008-01-08 14:00 EST by Stewart Williams
Modified: 2008-05-14 07:22 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-05-14 07:22:29 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
lspci -vvxx output (16.44 KB, text/plain)
2008-01-08 14:02 EST, Stewart Williams
no flags Details
'dmesg' output (27.93 KB, text/plain)
2008-01-08 14:02 EST, Stewart Williams
no flags Details

  None (edit)
Description Stewart Williams 2008-01-08 14:00:39 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20071213 Fedora/ Firefox/

Description of problem:
If I boot Fedora and there is a CD/DVD in the drive, the system reboots just before GDM login appears.

If the drive is empty on boot, it completes OK. Then if I insert a disc while X is running, the system hangs/freezes and I have to do a hard reset. Or if at a VT/Console it reboots upon insertion.

I have tried booting to runlevel 3 and disabling RHGB and watching the system start and it reboots right at the point of the HAL daemon loading.

If I do an interactive boot and choose not to start 'haldaemon' the system boots with a disc in the drive. As soon as 'hald' is started from the console, it reboots.

I tried running hal-disable-polling --udi /org/freedesktop/Hal/devices/storage_model_DVDRAM_GSA_H66N

then starting /sbin/service hald --daemon=yes and it works as expected apart from the media in the DVD-RW drive is not recognised.

The drive in question has a SATA interface and make is LG (DVD-RW)

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Boot with CD media in drive
2. System reboots at haldaemon startup
3. Take out CD, system boots as expected

Actual Results:
System rebooted

Expected Results:
GDM login screen should appear and media should be accessible after insertion

Additional info:
I have attached the output of lspci -vvxx and dmesg
Comment 1 Stewart Williams 2008-01-08 14:02:11 EST
Created attachment 291077 [details]
lspci -vvxx output
Comment 2 Stewart Williams 2008-01-08 14:02:39 EST
Created attachment 291078 [details]
'dmesg' output
Comment 3 Alan Cox 2008-01-08 16:25:38 EST
Claiming this as while the trigger is udev polling the problem appears to be
kernel related

DavidZ - is there an easy way to run the polling in init 3 and see if we get a
trace before the crash ?
Comment 4 Alan Cox 2008-01-08 16:29:01 EST
Looks related to the sata_nv 4GB crash

Can you boot with mem=3G on the boot line and see if that cures it ?

Comment 5 Stewart Williams 2008-01-08 16:40:38 EST
Adding mem=3G to the grub boot line has cured the problem.
Comment 6 Alan Cox 2008-01-08 16:51:07 EST
Great. I now know which kernel problem this is.
Comment 7 Stewart Williams 2008-01-08 17:04:17 EST
Strange thing is, it also cures another problem I had, in which when X loads, if
I press ctrl+alt+f{x} to switch to a VT, the monitor goes into power save mode,
and all I can do is switch back to X on VT7.

I don't know if that is related or not. But my video card is a NVIDIA also.
Comment 8 Alan Cox 2008-01-08 17:14:05 EST
It may be a side effect. Once the disk bug is fixed in a newer kernel then we
can find out - it may be another bug tripped by the magic 4G B boundary
Comment 9 Alan Cox 2008-01-14 05:59:06 EST
A fix for this is targetted for 2.6.24
Comment 10 Stewart Williams 2008-03-10 18:12:29 EDT

I have upgraded to kernel and it looks like the problem still
remains, however I don't know if an attempt to fix the bug has been made yet.

I removed mem=3G from the boot line and booted. This time instead of a reboot,
my system just hung on the RHGB fedora boot screen. Adding the parameter back on
the boot line cures the problem immediately.
Comment 11 Ufa 2008-03-16 15:14:54 EDT
I have exactly the same problem. I found that I can burn cd/dvd normally,
without the reboot issue. It only affect dvd/cd with data.
Comment 12 Ufa 2008-03-16 17:03:09 EDT
Hello again,
Someone on irc channel advised me to use this kernel, to see if it fix the problem:


But is does not! I am using the mem=3G hack for now!
Thx for the efforts!
Comment 13 Ufa 2008-03-18 09:20:13 EDT
Just to let you know, this issue DOES affect the burning process too, although
it appears it was successful. 
Comment 14 Ufa 2008-04-17 17:28:16 EDT
"sata_nv: fix ATAPI issues with memory over 4GB (v7)
    This fixes some problems with ATAPI devices on nForce4 controllers in ADMA mode
    on systems with memory located above 4GB. We need to delay setting the 64-bit
    DMA mask until the PRD table and padding buffer are allocated so that they don't
    get allocated above 4GB and break legacy mode (which is needed for ATAPI
    devices). Also, if either port is in ATAPI mode we need to set the DMA mask
    for the PCI device to 32-bit to ensure that the IOMMU code properly bounces
    requests above 4GB, as it appears setting the bounce limit does not guarantee
    that we will not try to map requests above this point.
    Reported to fix https://bugzilla.redhat.com/show_bug.cgi?id=351451"

I dont know if it will fix our issue (maybe is the same as
https://bugzilla.redhat.com/show_bug.cgi?id=351451), but I will test it as soon
as my distro release this new kernel. :)

See you soon!
Comment 15 Alan Cox 2008-05-14 07:22:29 EDT
Fix now upstream - it is the same fix yes

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