| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
ok tedu@ deraadt@
|
|
|
|
| |
ok tedu
|
|
|
|
| |
after discussions with beck deraadt kettenis.
|
|
|
|
|
|
| |
we need the space in the i386 ramdisks.
ok dlg@, krw@
|
|
|
|
|
|
|
| |
one copy when both isp(4) and qla(4) are enabled. This is a temporary
measure until qla(4) takes over completely.
looked at by miod@ and kettenis@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
all nowait.
While here, plug a memory leak if one of the bus_dma calls near the
bottom of the function fails because it would fail to free the dmamap,
unmap the memory and free the memory. make that part of the code use the
standard list of goto labels for error handling that most callers of
bus_dmamem_alloc; bus_dmamem_map; bus_dmamap_creat; bus_dmamap_load()
use to clean up.
ok miod@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1) Allocating with M_WAITOK, checking for NULL, and calling panic() is
pointless (malloc() will panic if it can't allocate) so remove the check
and the call.
2) Allocating with M_WAITOK, checking for NULL, and then gracefully
handling failure to allocate is pointless. Instead also pass M_CANFAIL
so malloc() doesn't panic so we can actually handle it gracefully.
1) was done using Coccinelle.
Input from oga.
ok miod.
|
|
|
|
|
| |
not make these drivers spew millions of lines of output.
ok krw
|
|
|
|
| |
ok claudio@
|
|
|
|
|
|
| |
system type list (which really is the system family) and a subsystem type.
No functional change yet.
|
|
|
|
|
|
| |
provided.
ok dlg@, krw@
|
| |
|
| |
|
|
|
|
| |
Noticed by deraadt@.
|
|
|
|
|
| |
firmwares into the smaller (and larger) media
ok krw
|
|
|
|
|
|
|
|
|
| |
Everything that worked before should still work so in it goes. Newer
boards (2300, 2400) may now work but are still a work in progress.
Thanks to many testers but especially kettenis@ for finding a show
stopper bug and stomping it.
ok deraadt@
|
|
|
|
|
|
| |
other BUS_DMA_xxx flag names, and nothing uses it.
ok many@
|
|
|
|
| |
they don't seem to have a valid NVRAM either, override the default value.
|
|
|
|
| |
ok marco@, krw@, deraadt@
|
|
|
|
|
|
| |
a fix has been made that might make the 10160 work too, enable support again.
ok miod@
|
|
|
|
|
|
| |
another (working) isp(4) get hurt by this.
ok krw@, deraadt@
|
|
|
|
| |
ok jsing@
|
|
|
|
|
|
|
| |
idiom 'malloc(sizeof(*isp_param) ...' is not possible.
May even fix a couple of bugs. In two places 2*n was malloc'd, but
only n was bzero'd.
|
|
|
|
|
|
|
| |
Avoids the "invalid NVRAM" message on the Blade 1000 and other machines with
onboard isp(4).
ok deraadt@
|
| |
|
| |
|
|
|
|
| |
From FreeBSD
|
|
|
|
| |
ok drahn@
|
| |
|
|
|
|
|
|
|
| |
Use correct size to zero sdparam area for 12160.
Compile tested: sparc64, sparc
run tested: sparc64 (2200, 1040), sparc (sbus isp)
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
running ABOUT FIRMWARE with some that were started by BIOS downloads).
Fix the incorrect parsing of the Risc2Host isr. For RIO_16,
fast posting command completion, and fast post CTIO completion,
the upper half of Risc2Host is a copy of mailbox #1- *not*
mailbox #0.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Do not attach to AMI Raid Units (known via Sub Vendor ID) because they
really *aren't* quite a QLogic ISP device, now are they?
Split 2300 from 2312 types. Turn off pci parity for 2300s (per QLogic
errata).
Add missing ISPR2HST_RIO_16 case.
At isp_pci_reset1 time, turn on interrupts if we say it's okay to do so.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the response queue. Instead of the ad hoc ISP_SWIZZLE_REQUEST, we now have
a complete set of inline functions in isp_inline.h. Each platform is
responsible for providing just one of a set of ISP_IOX_{GET,PUT}{8,16,32}
macros.
The reason this needs to be done is that we need to have a single set of
functions that will work correctly on multiple architectures for both little
and big endian machines. It also needs to work correctly in the case that
we have the request or response queues in memory that has to be treated
specially (e.g., have ddi_dma_sync called on it for Solaris after we update
it or before we read from it).
One thing that falls out of this is that we no longer build requests in the
request queue itself. Instead, we build the request locally (e.g., on the
stack) and then as part of the swizzling operation, copy it to the request
queue entry we've allocated. I thought long and hard about whether this was
too expensive a change to make as it in a lot of cases requires an extra
copy. On balance, the flexbility is worth it. With any luck, the entry that
we build locally stays in a processor writeback cache (after all, it's only
64 bytes) so that the cost of actually flushing it to the memory area that is
the shared queue with the PCI device is not all that expensive. We may examine
this again and try to get clever in the future to try and avoid copies.
Another change that falls out of this is that MEMORYBARRIER should be taken
a lot more seriously. The macro ISP_ADD_REQUEST does a MEMORYBARRIER on the
entry being added. But there had been many other places this had been missing.
It's now very important that it be done.
For OpenSD, it does a ddi_dmamap_sync as appropriate. This gets us out of
the explicit ddi_dmamap_sync on the whole response queue that we did for SBus
cards at each interrupt. Now, because SBus/sparc doesn't use bus_dma, some
shenanigans were done to support this. But Jason was nice enough to test the
SBus/sparcv9 changes for me, and they did the right thing as well.
Set things up so that platforms that cannot have an SBus don't get a lot of
the SBus code checks (dead coded out).
Additional changes:
Fix a longstanding buglet of sorts. When we get an entry via isp_getrqentry,
the iptr value that gets returned is the value we intend to eventually plug
into the ISP registers as the entry *one past* the last one we've written-
*not* the current entry we're updating. All along we've been calling sync
functions on the wrong index value. Argh. The 'fix' here is to rename all
'iptr' variables as 'nxti' to remember that this is the 'next' pointer-
not the current pointer.
Devote a single bit to mboxbsy- and set aside bits for output mbox registers
that we need to pick up- we can have at least one command which does not
have any defined output registers (MBOX_EXECUTE_FIRMWARE).
Explicitly decode GetAllNext SNS Response back *as* a GetAllNext response.
Otherwise, we won't unswizzle it correctly.
Nuke some additional __P macros.
|
|
|
|
|
| |
Most work by Wilbern Cobb <vedge@csoft.org> with some fixes from me, mickey@
and drahn@.
|
|
|
|
| |
the target mode code.
|
|
|
|
|
|
|
| |
on some platforms, after a while they'll think it's all spurious and
disconnect the interrupt routing. Thereupon Bad Things Happen (tm).
Approved by: Theo.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add support for 2 Gigabit cards (2300/2312). This necessitated a change
in how interrupts are down- the 23XX has not only a different place to check
for an interrupt, but unlike all other QLogic cards, you have to read the
status as a 32 bit word- not 16 bit words. Rather than have device specific
functions as called from the core module (in isp_intr), it makes more sense
to have the platform/bus modules do the gruntwork of splitting out the
isr, semaphore register and the first outgoing mailbox register (if needed)
*prior* to calling isp_intr (if calling isp_intr is necessary at all).
Rearchitect how regular SCSI parameters are stored or used.
|
|
|
|
| |
conversion (luckily only sparc64 uses the 5 arg form so far =)
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
All callers actually took all arguments to pci_intr_map from pci_attach_args
structs, so this simplifies code.
This also allows more complicated interrupt assignment schemes like the one
on sparc64.
This makes sparc64 pci interrupts work.
Inspired by the same change in NetBSD.
|
| |
|
|
|
|
| |
Handles are 16 bits now.
|
| |
|
| |
|
|
|
|
|
|
| |
lack of parameter memory. Set logging defaults sanely. Set default node
&& port WWNs separate from other platforms. Make sure we set up HBA role
correctly.
|
| |
|