[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adaptec scsi driver OBSD 3.3 question



At 01:12 PM 05/03/2003, Marco Peereboom wrote:
>Try printf(" Enabling Memory Mapping ");

Looks like a winner :)

ahc0 at pci0 dev 12 function 0 "Adaptec AIC-7896/7 U2" rev 0x00 Enabling 
Memory Mapping : irq 11
ahc1 at pci0 dev 12 function 1 "Adaptec AIC-7896/7 U2" rev 0x00 Enabling 
Memory Mapping : irq 11

Thanks :)



> > -----Original Message-----
> > From: J.D. Bronson [mailto:jeff@xpec.com]
> > Sent: Saturday, May 03, 2003 13:09
> > To: slash@peereboom.us; tech@openbsd.org
> > Subject: RE: Adaptec scsi driver OBSD 3.3 question
> >
> >
> > At 12:16 PM 05/03/2003, Marco Peereboom wrote:
> > >The code is not verbose enough and it won't tell you what it did.
> > >
> > >Add a printf after /* Using memory mapping ... */ saying
> > memory mapping
> > >enabled or something. The code will try to go back to IO
> > mappings when
> > >it didn't work though.
> > >
> > >What I don't get is why is this such a big deal for you?
> > What's wrong
> > >with IO mapping instead of memory mapping?
> > >
> > >/marco
> >
> >
> > Well I tried this idea, but since I know very little about
> > code, it ended
> > up panicing on boot and dropping to ddb>
> >
> >                  if (ioh_valid) {
> >                          /*
> >                           * Do a quick test to see if memory mapped
> >                           * I/O is functioning correctly.
> >                           */
> >                          ahc->tag = iot;
> >                          ahc->bsh = ioh;
> >                          if (ahc_inb(ahc, HCNTRL) == 0xFF) {
> >                                  /* nope, use I/O mapping */
> >                                  ioh_valid = 0;
> >                          } else {
> >                                  /* Using memory mapping, disable I/O
> > mapping */
> >   ---->                          printf("%s: Enabling Memory
> > Mapping\n");
> >                                  command &= ~PCI_COMMAND_IO_ENABLE;
> >                                  ahc_pci_write_config(ahc->dev_softc,
> >
> > PCI_COMMAND_STATUS_REG,
> >                                                       command, 4);
> >                          }
> >
> > Did I make a typo?
> > Thanks for any continued help guys...Especially Marco!
> >
> >
> >
> >
> > --
> > J.D. Bronson
> > Aurora Health Care
> > Information Services
> > Milwaukee, Wisconsin USA
> > Main Office: 414.978.3000
> >




-- 
J.D. Bronson
Aurora Health Care
Information Services
Milwaukee, Wisconsin USA
Main Office: 414.978.3000