Re: [RFC] Patch to fix cdrom being confused on using kdump



On Wed, Apr 19 2006, Rachita Kothiyal wrote:
On Wed, Apr 12, 2006 at 04:59:33PM +0530, Rachita Kothiyal wrote:

I actually tried just reading the status register and then returning
ide_stopped. It seemed to be working fine, just that there appears
a 'status error' message while booting:

<snippet>
ide0: start_request: current=0xffff8100035cba68
hda: status error: status=0x58 { DriveReady SeekComplete DataRequest }
ide: failed opcode was: unknown
hda: drive not ready for command
</snippet>

Hi Jens,

Instead of reading the status register and returning ide_stopped
from the handler, which was resulting in the 'status error', I
tried ending the request and returning ide_stopped when the drive
is in a confused state. Using this I dont see the status error.

Following is the patch, kindly review.

This looks a lot more appropriate! Thanks for following through on this.

--
Jens Axboe

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • nm256: register strangeness related to lockups
    ... module insertion I stumbled across the following register values ... tried to write back the "safer" values to the chip, but reading them ... Power Management version 1 ...
    (Linux-Kernel)
  • WRITE_REGISTER_BUFFER_UCHAR...
    ... I have a problem writting to my device, (possible also reading, not sure..): ... In my DispatchControl routine i do the following: ... // Register offset R/W Description ... I see that this is the memory resource adresse that is visable ...
    (microsoft.public.development.device.drivers)
  • Re: [RFC] Patch to fix cdrom being confused on using kdump
    ... I actually tried just reading the status register and then returning ... hda: status error: status=0x58 ... is in a confused state. ...
    (Linux-Kernel)
  • Re: [Alsa-devel] nm256: register strangeness related to lockups
    ... in the process of analyzing the frequent crashes during the snd-nm256 ... module insertion I stumbled across the following register values ... (reading 32bit words at a time in a loop with pcitweak): ...
    (Linux-Kernel)