summaryrefslogtreecommitdiffstats
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* - Move to array based indexing for TX/RX descriptor/buffer managementpdeuskar2002-12-233-545/+526
| | | | | | | | | - Added support for ITR (interrupt throttle register). This feature is available on adapters based on 82545 and above - Fixed problem with vlan support when traffic has priority bits set. (kern/45907) PR: kern/45907 MFC after: 1 week
* Fix a De Morgan bug: If we only expect a memory range OR anmarcel2002-12-231-8/+8
| | | | | | | | | | I/O port range, then we should ignore a resource if it's NOT a memory range AND NOT an I/O port range. The OR in the condition caused us to ignore perfectly valid memory addresses. While here, remove redundant parenthesis and reindent the debug print to avoid long lines.
* Revert part of the last commit. Do not fake-up the cylinders to makedillon2002-12-221-2/+1
| | | | | the sectors fit (at least, don't fake them up any more then they are already faked up).
* Be nice. There are evidentally a number of different cards thatimp2002-12-211-2/+4
| | | | | | | | | | identify themselves as serial cards that it would be desirable to attach a different driver than sio to. Since we are claiming all serial cards, this is not possible. Instead, return -100 to indicate that we're willing to take the card, but still allow other drivers to attach. Pointed out by: Maksim Yevmenkin
* Modify the fake cylinders calculation so it is >= the size of the device,dillon2002-12-201-6/+26
| | | | | | | | | | | | | | | | | | | | | | | | not < the size of the device. This avoids geom complaints. Fix a serious bug in the handling of the RS_NO_CLEAR_UA quirk. When we go and insert the test-unit-ready command the umass_cam_quirk_cb() function sets the status as if the READ_CAPACITY command suceeded when, in fact, it did not. This leads to the CAM layer trying to use garbage in the return buffer and panicing the system (or doing other bad things). Add a quirk entry for MSYSTEMS DISK-ON-KEY, which is sold under the Sony brand as a solid state disk-on-key usb device. This device requires several quirks to work properly. Note that the disk-on-key device will not work properly until CAM also gets a quirk entry for it, which has been submitted to the CAM maintainer, and you may have to temporarily uncomment the DELAY() as well. -current does not properly wait for devices to power up so you may also have to temporarily uncomment the DELAY(300000) to make your device work. A solution must be found to that issue. MFC after: 3 days X-MFC note: the quirk support must MFCd before this patch can be
* Fix two bugs in the DMA chaining code for OHCI. The first bug is thatdillon2002-12-201-5/+9
| | | | | | | | | | | | | | | | | | | the dataphysend calculation could only possibly work if the virtual buffer is also physically contiguous. Calculate dataphysend by calculating the ending virtual address first, then converting to a physical address. The second bug applies only to NetBSD and OpenBSD and involves the curlen calculation in the two-contiguous-physical-pages case (which we don't support). Also cleanup the use of the OHIC_PAGE() macro on dataphysend and add a panic if len goes negative (meaning we lost the physical page translation representing the end of the buffer). IMHO the dataphysend is still bokered since it might be misrepresented by shared userland page mappings. The whole section needs to be rewritten to use the virtual address range. MFC after: 3 days
* Fxi support for the Promise SuperTrak 100, the PCI id was wrong.sos2002-12-201-2/+2
|
* Do not return(foo()) in void function.semenu2002-12-189-23/+25
| | | | | Submitted by: marius@alchemy.franken.de MFC after: 3 days
* Fix the missspelt letter in DC_CTYPE_PUP_AUTOSENSe define.semenu2002-12-181-1/+1
| | | | | Submitted by: marius@alchemy.franken.de MFC after: 3 days
* Back out revision 1.38. disklabel now understands vinum volumes again.grog2002-12-181-5/+1
|
* Try to fix the problem with burncd blank not seeing the end ofsos2002-12-171-14/+9
| | | | the blank operation.
* This should be the way PC98 ATA disks are seen geometry wise.sos2002-12-173-4/+10
| | | | Should go into 5_0_RELEASE as well.
* Ignore IEEE1284 descriptors when looking for bidirectional mode. We don'tdes2002-12-161-2/+2
| | | | | | | really know how to talk IEEE1284, so attaching to that interface makes the printer unusable. Approved by: joe
* MFNetBSD: 1.52-1.55des2002-12-161-4/+17
| | | | | Mostly OpenBSD-related changes. Remove newline from panic string. Remove an unreachable break statement.
* Fix the panic that occurs when kldunloading trm by using the correctcognet2002-12-162-29/+51
| | | | | | | | prototype for trm_detach and freeing all resources. While I'm there, handle better errors in trm_attach and remove the PCI_BASE_ADDR0 definition, since it's what PCIR_MAPS is used for. MFC after: 3 days
* Convert the use of vtophys() for doing autosense to use busdma. Also correctscottl2002-12-142-12/+79
| | | | some error codes that get returned to CAM.
* SCARGS removal take II.alfred2002-12-141-3/+3
|
* Move the amd(4) driver to it's own directory in preparation for it growingscottl2002-12-131-1/+2
| | | | an sbus front-end.
* Backout removal SCARGS, the code freeze is only "selectively" over.alfred2002-12-131-3/+3
|
* Remove SCARGS.alfred2002-12-131-3/+3
| | | | Reviewed by: md5
* Problem: Hang while bootup on Perc2/SC.emoore2002-12-131-2/+4
| | | | | | | | Fix: Error handling wasn't implemented in newly implemented polling code for quartz controllers. Approved by: re@
* Create raw plexes and subdisks, not the old volume-related ones. Thisgrog2002-12-131-2/+2
| | | | | | | crept in in the transition to devfs, and caused a number of "device not configured" errors. Approved by: re (rwatson)
* sable the CAM interface on some more cards. It seemed to be confusing andscottl2002-12-121-5/+5
| | | | | | | | upsetting the firmware there. Thanks to imp@freebsd.org for suffering through testing with this. Approved by: re
* The uftdi driver runs with multiple instances.ticso2002-12-121-5/+0
| | | | | | | | Remove a comment claiming the opposite. Approved by: re (rwatson) gallatin (Mentor) MFC after: 1 week
* Fix a buffer overrun in /dev/random which, due to the nature of themarkm2002-12-121-3/+4
| | | | | | | | | kernel memory allocator, is harmless. This could be a problem for other systems, though. I've modified Darren's patch a little. Original patch by: Darren Schack, Isilon Systems, Inc <darrens@isilon.com> Also analysed by: SGI, and in particular Divy Le Ray of SGI OK'ed by: re(rwatson)
* revive_block: If we have an I/O error, don't forget to drop the stripe lock.grog2002-12-121-2/+4
| | | | Approved by: re (jhb)
* (1) Problem: PANIC when loading/unloading driveremoore2002-12-115-11/+95
| | | | | | | | | | | | | | | | | | | | | | as module. This also fix's issue kern/45713. Fix - polling was implemented incorrectly for adapter enquiry and adapter flush. (2) Problem: PANIC when unloading driver as module. Fix - device nodes are not destroyed for amr0, and amrd* when driver is unloaded (3) Problem: PANIC from loading driver when 3ware adapter present, error message "Warning "amrd is usurping twed's bmaj" Fix - put #idef freebsd version < 500000 for bmaj -1 -> amrd_cdevsw (4) Problem: warnings in driver when compiling with DAMR_DEBUG param enabled in Makefile Fix - fix the warnings so driver can compile when -Werror is present in Makefile. Approved by: jhb MFC: 7 days
* Add sysctl knob to stop disabling acpi on shutdown.takawata2002-12-112-2/+10
| | | | Approved by: re(jhb)
* Play nice with GEOM and use the appropriate ioctls for getting thescottl2002-12-101-20/+12
| | | | | | | | partition size and sector size. The old way of groveling through the disklabel doesn't work anymore. Noticed by: anholt Approved by: re
* Fix a panic unloading the bktr driver when devfs is in use.roger2002-12-091-10/+2
| | | | PR: kern/36413
* MFNetBSD: (partial 1.133)joe2002-12-091-0/+2
| | | | | | | - In ohci_close_pipe, wait 1ms after removing an ED to avoid possible race condition. Approved by: re (rwatson)
* MFNetBSD:joe2002-12-091-5/+0
| | | | | | | date: 2002/09/29 20:59:30; author: augustss; state: Exp; lines: +2 -7 Remove extra call to ohci_rem_ed(). From kern/18448, Takeshi Nakayama. Approved by: re (rwatson)
* Don't corrupt the ED list whilst removing an entry.joe2002-12-091-1/+1
| | | | | Submitted by: Bernd Walter <ticso@cicely8.cicely.de> Approved by: re (rwatson)
* Fix a bug which caused signals on YUV images to fail.roger2002-12-071-7/+6
| | | | | PR: i386/45678 (this also allowed kern/21305 and kern/33715 to be closed) Submitted by: Tommy Johnson <tjohnson@bobdbob.com>
* Fix linking problem when atadisk is not use in ata-all.csos2002-12-063-3/+19
| | | | | | Add dummy intr_func and lock_func to ata-card.c Dont call ad_print if the driver decided there is no disk.
* Reduce and improve debug messages.simokawa2002-12-065-30/+47
| | | | Approved by: re
* The sequencer downloading code assumes that all jumpscottl2002-12-051-3/+5
| | | | | | | | | | labels are acurate in relation to a fully compiled sequencer program (all patches downloaded). Correct a few occurances of a relative jump across a macro that ended up jumping us into the last instruction of the macro. Spproved by: re (bmah)
* Remove an unused variable that snuck in the last commit.anholt2002-12-041-1/+1
| | | | | Submitted by: Christian Brueffer <chris@unixpages.org> Approved by: re (rwatson)
* Last minute fixes to ahc and ahd:scottl2002-12-046-47/+94
| | | | | | | | | | | | | | | | | | | | | | | | | ahd_pci.c: Retrieve the allow_memio hint from the resource manager to determine whether or not to try PCI MEMIO. aic79xx_osm.h: aic7xxx_osm.h: Don't wrongly abuse the callout_reset() interface when trying to abuse timeouts generated from the CAM layer. This fixes the console freeze and lost timeout problem that many have reported, especially on SMP systems. aic79xx_pci.c aic7xxx_pci.c Rewrite the MEMIO test routine to prevent certain broken chipsets from trying to burst multiple DWORDs to the registers. Also make the routine better detect byte merging by the host bridge and deal with it. aic79xx.reg: Correct an incorrect register definition. Approved by: re (rwatson, jhb)
* Fix witness warning in DRM memory info sysctl by making a temporary copy of theanholt2002-12-041-62/+17
| | | | | | | data under the lock and outputting it to the sysctl later. Reviewed by: scottl Approved by: re
* Add support for the PC98 platform to the ATA driver.sos2002-12-038-42/+594
| | | | | | | | | | | | | | | | This mostly consists of functionality to serialize accesses to the two ATA channels (which can also be used to "fix" certain PCI based controllers). Add support for Acard controllers. Enable the ATA driver in PC98 GENERIC, and add device hints. Update man page with latest support. The PC98 core team has kindly provided me with a PC98 machine that made this all possible, thanks to all that contributed to that effort, without that this would probably newer have been possible.. Approved by: re@
* Properly account for prefetchable memory when a request is being made.imp2002-12-031-47/+112
| | | | | | | | | | | | | | | | We allow the request to go through if it matches either a prefetchable or a non-prefetchable part of the bridge. We do not check to make sure it is the right kind of memory because most drivers to not yet properly set RF_PREFETCHABLE (only cardbus seems to do so, and I'm not entirely sure it does it right). RF_PREFETCHABLE was invented for cardbus, so hasn't been properly documented yet. This is still overridable by hw.pci.allow_unsupported_io_ranges, but the need for that is greatly reduced, especially for the nvida driver. Approved by: re Reviewed by: jhb and many testers Submitted by: Matt Emmerton (although this has been reworked somewhat)
* Implement DIOCGDINFO for volumes. newfs will no longer build a filegrog2002-12-021-0/+4
| | | | | | system on a volume without a disk label. Approved by: re (rwatson)
* Don't blindly call make_dev when configuring an object: the devicegrog2002-12-021-23/+24
| | | | | | | | | could already exist, and this triggers a booby trap panic in make_dev. remove_plex_entry: Don't remove the stripe mutex here, it gets done in free_plex. Approved by: re (rwatson)
* In ata_reinit, when ata_getparam fails for a new device (indicating thatthomas2002-12-011-4/+5
| | | | | | | | | | | the device is not actually present), clear the corresponding bit in the ch->devices bitmap. This resolves a panic that occurred with ATAPI/CAM after an APM suspend/resume, when the ATA hardware would erroneously report an extra ATAPI device. Approved by: re, sos Reviewed by: roberto MFC after: 7 days
* Major update to the ahd driver to fix many bugs found in the previousscottl2002-12-014-372/+949
| | | | | | | | | | version, plus add support for the new features found in the Rev B version of the chip. The changelog is quite long and can be provided on request. Major features include vastly improved protocol violation handling, full support for the 7902 Rev B, better parity error handling, and better packetized overrun handling, to name a few. Approved by: re (blanket)
* Implement workaround for broken busfree-rev in the A4.scottl2002-12-011-69/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | HP -> CPQ Rearrange IDs to better match which chips they use. Convert to uniform product description strings. Simplify 7901A setup function. Add the NONPACKFIFO_BUG and PACED_NEGTABLE_BUG entries for the A. Add rev B bugs and features. The double write workaround for CURRSCB is only required if abort pending is set. Remove this work around and set the abort pending bug bit on the B at least until we have better confirmation that the double write is always safe. Add updated H2B identifiers Move IOCell paramters into softc and add a hook for the OSM to modify these as well as other settings prior to committing them to the chip. SLEW -> SLEWRATE PREQDIS in DEVCONFIG1 went away after the A2. Remove all code that references this bit. This is especially important since this bit was reused in the B for a different HW fix workaround. Properly set the AHD_NEW_IOCELL_OPTS and AHD_NEW_DFCNTRL_OPTS features for the B. Remove stray/random extra 7901A generic PCI table entry. Also switch the correct 7901A generic entry to use ID_ALL_MASK since we can only differentiate the 7901A from the 7902 by checking for a "type field" of 0xE. Set AHD_INTCOLLISIONT_BUG for the Rev B. Set the PREQDIS bit in DEVCONFIG1 for the B. The bit is misnamed, but seems to disable a work-around that breaks on the B on PCI busses. Add a routine for testing memory mapped register access. This will hopefully detect things like buggy via chipsets so that the OSM can fallback to using I/O mapped access when memory mapped I/O simply will not work. Approved by: re (blanket)
* Add our controller name to the front of ourscottl2002-12-011-3/+16
| | | | | | | | | | | diagnostic "Setting Mode" messages. Use a read of HCNTRL to flush our write to CLRCMDCMPLT on the RevB. This allows us to check to see if the sequencer is paused and to initiate the interrupt collision workaround without incuring an extra read. Approved by: re (blanket)
* Remove redundant check for chip type being PCI-X.scottl2002-12-011-4/+4
| | | | | | | | | PCI-X only workarounds are automatically masked out if we are operating in PCI mode. Make use of ahd_pci_test_register_access() Approved by: re (blanket)
* Update to include new ahd_scb_timer_reset APIscottl2002-12-011-3/+12
| | | | | | | | Move IOCell paramters into softc and add a hook for the OSM to modify these as well as other settings prior to committing them to the chip. Approved by: re (blanket)
OpenPOWER on IntegriCloud