7890/aic7xxx 5.1.0pre5 part. success

Thomas Brezing tb at roesle.arbach.de
Thu Jul 30 04:31:23 PDT 1998


Hi!

I got the thing running!
On an Asus P2B-DS Mainbord ( 7890 onboard) and Linux 2.0.35 with
a little patch in the aic_outb - function:

static inline void
aic_outb(struct aic7xxx_host *p, unsigned char val, long port)
{
  if(p->maddr)
    p->maddr[port] = val;
  else
    outb(val, p->base + port);
  mb();

  udelay ( 500); /* new!                                       @tb@ */
}

Further I made the following changes:

static void
aic7xxx_reset_current_bus(struct aic7xxx_host *p)
{
  unsigned char scsiseq;

  /* Disable reset interrupts. */
  aic_outb(p, aic_inb(p, SIMODE1) & ~ENSCSIRST, SIMODE1);

  /* Turn on the bus reset. */
  scsiseq = aic_inb(p, SCSISEQ);
  aic_outb(p, scsiseq | SCSIRSTO, SCSISEQ);

  aic7xxx_delay ( 1); /* was: udelay(5000);                     @tb@ */

  /* Turn off the bus reset. */
  aic_outb(p, scsiseq & ~SCSIRSTO, SCSISEQ);

  aic7xxx_clear_intstat(p);

  /* Re-enable reset interrupts. */
  aic_outb(p, aic_inb(p, SIMODE1) | ENSCSIRST, SIMODE1);

  udelay(20000); /* was: udelay ( 2000);                        @tb@ */
}

The System is up now for 6 days under havy load as archive server with
2 LVD Disks, 2 SE Disk, 1 SE CDROM and 1 SE DAT Streamer.


Anybody out there to verify my patches?


Thomas.


-- 
Ing.-Buero
Thomas Brezing             Xlink PoP              email: hallo at arbach.de
Burgstr. 24           Reutlingen/Tuebingen        phone: +49 7121 9890 90
D-72800 Eningen                                   fax:   +49 7121 9890 60

To Unsubscribe: send mail to majordomo at FreeBSD.org
with "unsubscribe aic7xxx" in the body of the message



More information about the aic7xxx mailing list