Bug 73642 - More AHC_ALLOW_MEMIO
Summary: More AHC_ALLOW_MEMIO
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 4.10-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: Justin T. Gibbs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-07 15:40 UTC by wkwu
Modified: 2004-11-07 16:53 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wkwu 2004-11-07 15:40:27 UTC
The adaptec SCSI controller such as Aic7892 (29160 SCSI adapter) uses "ahc"
driver which has an option "AHC_ALLOW_MEMIO".
The AHC_ALLOW_MEMIO enhances the I/O performance a lot compared with those 
SCSI drivers have no MEMIO option.
I have tried Adaptec AIC7902 Ultra320 SCSI adapter (which has no MEMIO option),
and the performance is really bad compared with Aic7892 MEMIO option.
I doubt why there is no MEMIO option for other SCSI controllers?
Comment 1 Xin LI freebsd_committer freebsd_triage 2004-11-07 15:47:52 UTC
Responsible Changed
From-To: freebsd-advocacy->gibbs

Over to ahc/ahd maintainer
Comment 2 Justin T. Gibbs freebsd_committer freebsd_triage 2004-11-07 16:47:51 UTC
State Changed
From-To: open->closed

The AHC_ALLOW_MEMIO option was introduced at a time when the driver did 
not have a robust method for detecting a failure when memory mapping 
controller registers on some "cheap" x86 machines (typically those 
with VIA chipsets).  Since that time, a test was devised that catches 
these issues.  This is why the aic79xx driver does not have an option 
to enable/disable memory mapped I/O.  It will use memory mapped I/O 
if possible on your system.  Similar tests can be introduced in other 
drivers so this type of option should not be necessary there either. 

I would be interested in understanding your performance problems with 
the ahd driver.  Please submit a different PR for that issue should 
it continue to occur.