Ignore:
Timestamp:
Feb 21, 2013, 10:37:43 AM (12 years ago)
Author:
rousseau
Message:

Changed the default value of the /r option (TRACK ticket #21)

Reason for the change

o Snip from the TRAC ticket

<snip>

One thing that keeps coming up in some cases is that on systems with an
Intel disc controller you need the /R option specified.
In some cases the system is able to boot with from the CD but it does
not recognize the hard disc.
Using the /R option fixes.

</snip>

o Logic suggests...

Since /r was already turned on when an Intel AHCI controller was detected
to be in SATA mode, this report seems to imply that for some obscure reason
a port reset is needed even when the BIOS programmed the controller in
AHCI mode. This would suggest some faulty BIOS initialization.

Changed behavior

o The /r option is now on by default

It can be turned off by specifying /!r on the driver command-line.
However, when the [Intel] AHCI controller was found to be initialized
by the BIOS in SATA mode, ports will always be reset, even when /!r
is specified. This seems to be an [Intel] AHCI controller requirement.

Comment reference

o From a comment in ahci.c around line 146

<snip>

Adapter is not in AHCI mode and the spec says a COMRESET is
required when switching from SATA to AHCI mode and vice versa.

</snip>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/os2ahci/os2ahci.c

    r144 r147  
    8787int             debug = 0;         /* if > 0, print debug messages to COM1 */
    8888int             thorough_scan = 1; /* if != 0, perform thorough PCI scan */
    89 int             init_reset;        /* if != 0, reset ports during init */
     89int             init_reset = 1;    /* if != 0, reset ports during init */
    9090int             force_write_cache; /* if != 0, force write cache */
    9191int             verbosity = 1;     /* == 1 -> show sign on banner
     
    265265      case 'r':
    266266        /* reset ports during initialization */
    267         init_reset = 1;
     267        init_reset = !invert_option;
    268268        break;
    269269
Note: See TracChangeset for help on using the changeset viewer.