Age | Commit message (Collapse) | Author |
|
|
|
|
|
from Vladimir Popov <jumbo@narod.ru>
|
|
|
|
|
|
|
|
over support from netbsd; partially successfully tested by ellidz@eridu.uchicago.edu
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
Inspired by NetBSD.
|
|
|
|
|
|
|
|
(untested, but it's pretty similiar to the tested 21143 case).
|
|
dc_setfilt_21143() case at least.
XXX I'm looking at the other filter setups and they appear to need work for BE too.
|
|
misc pmap usage fixes.
|
|
(with all this, my Netra X1 is up and running with an NFS root)
|
|
NetBSD, and RX works on sparc64.
|
|
ALso, get the MAC address from myetheraddr() instead of trying to use the eeprom on sparc64.
|
|
|
|
|
|
|
|
this prevents stray interrupts and sometimes hangs,
caused by looping on stray unmapped interrupt.
|
|
(current score: 2 vtophys calls to go...)
|
|
- descriptor lists are now bus_dma allocated and manipulated
(for those keeping score: 6 vtophys dead, 4 to go)
|
|
|
|
|
|
|
|
defined in scsi_all.h.
|
|
(Look ma, I might have broken the tree)
|
|
Most work by Wilbern Cobb <vedge@csoft.org> with some fixes from me, mickey@
and drahn@.
|
|
|
|
|
|
lacked it (scr_table).
Also remove scr_table_t typedef and just use 'struct scr_table' to be
consistant with all other structures.
|
|
|
|
of vra protocol by rounding all rates to 48kHz, but some
return 0. fix this by reporting 48kHz for all codecs w/o vra.
problem (finally) identified by hunter@dg.net.ua, diff by me.
also, while here a/AC97_SOUND_ENHANCEMENT/AC97_CAPS_ENHANCEMENT/ .
|
|
at probe time, rather than allocating them dynamically as
SCSI commands are started.
This should eliminate one possible way of calling bus_dmamem_map()
while in interrupt context.
Potential problem spotted by Art@.
Inspired by changes to achieve same effect in NetBSD by bouyer@.
|
|
mini-pci cards. inspired by the netbsd's if_wi_pci.c .
rename WI_COR_* into WI_PLX_COR_*, per millert@'s suggestion.
tested by millert@ for the plx-based cards.
|
|
|
|
Correct the # of output mailboxes for EXECUTE IOCB A64.
Comment out some redundant initialization to zero.
If we get ISP_QUEUES_FULL status, remember to actually set SCSI_QFULL
since the QLogic f/w, on some cards, doesn't do so. Grumble.
|
|
|
|
|
|
tone into bass/treble
|
|
dima@m3d.dhs.org; fix by me
|
|
|
|
- free up ccb before calling scsi_done;
- remove bogus tsleep/wakeup ccb availability mechanism;
- fix an off by one size reporting in read_capacity.
huge 10x to Alan Jones <RAJones@teklinks.com> and
teklinks for providing a testbed and his time for testing.
tests sustained 34 simultaneous tar zxvp at ldav of 76.
however 36 simultaneous bonnies hang the machine,
possibly for different reasons though.
regardless, this fixed version passes an installation alright.
|