Commit Graph

5383 Commits

Author SHA1 Message Date
kiyohara 370119eed5 Support change Open-drain/Push-pull by bus_rod(). 2010-10-07 12:06:09 +00:00
jakllsch 563adefd93 Fix vcore readings in some cases on W83627THF by being mindful of the VRM9 mode. 2010-10-06 18:13:33 +00:00
kiyohara 40c1055637 Add some IDs. (9210/9211/9220/9221) 2010-09-27 12:29:03 +00:00
mjacob 60f1aed415 Multiple channel devices *should* be working. Remove the debug code
that was avoiding finding out.
2010-09-20 03:52:45 +00:00
ahoka 5efd7e7d21 remove debug leftover 2010-09-10 08:58:36 +00:00
jakllsch f2005c3157 Allow e?siop_dump_script() to work with on-chip RAM. Prefix
DUMP_SCRIPT with SIOP_.  Additionally, avoid undefining DEBUG,
condition on SIOP_DEBUG instead.
2010-09-09 14:50:25 +00:00
ahoka 71cf9e6085 Driver for Davicom DM9000 ethernet chips.
Written by Paul Fleischer, minor modifications by me.
2010-09-08 22:01:29 +00:00
mhitch 9c443068a6 Fix a performance problem with the ciss(4) driver. NetBSD does common
queueing at the scsipi midlayer, and if the midlayer is not requested to
enable tagged queueing, the midlayer will only queue one command to the
adapter driver for each device.  The SmartArray adapter is capable of
handling multiple commands, and in the rather common case where there is
no battery backup and no write cache, doing single write commands is very
slow.  The SmartArray adapter runs much better when several commands can
be issued to a device.

This has been observed and discussed in several list threads, notably:
http://mail-index.NetBSD.org/netbsd-users/2008/10/01/msg002083.html
http://mail-index.NetBSD.org/tech-kern/2008/11/30/msg003704.html

This also addresses PR kern/39686.

To enable tagged queueing, the adapter driver responds to the midlayer
request to set the transfer mode.  However, the SmartArray does not respond
to the SCSI INQUIRY command with an ANSII field of 2 or more, so the
scsipi midlayer will ignore the CmdQue bit in the flags3 field of the
inquiry data.  This fix will patch the inquiry data so set the ANSII field
to 2, and responds to the midlayer request to set the transfer mode by
requesting tagged queueing.

In addition, the original port of the driver did not set up the adapter
parameters correctly as mentioned in the second list thread mentioned
above.  The adapt_openings is the total number of commands that the
adapter will accept rather than the number of commands divided by the
number of logical drives.  Also, the adapt_max_periph is the maximum number
of commands which can be queued per peripheral device, not the number of
logical drives [which in the case of a single logical drive limited the
number of commands queued to 1].

I'm also suppressing an error message for invalid commands if the error
was due to the SCSI_SYNCHRONIZE_CACHE_10 command, since that command is
not supported by the SmartArray adapter, but used with wapbl(4) meta-data
journaling.  Setting the ANSII version to 2 to allow enabling tagged queueing
also enables the use of the SCSI_SYNCHRONIZE_CACHE_10 command.
2010-09-07 18:19:16 +00:00
jmcneill 0465f35ecf add suspend/resume support 2010-08-19 14:58:22 +00:00
isaki 59d7957ede white space -> tab. 2010-08-08 09:33:05 +00:00
msaitoh 08745d8602 The ETHERCAP_VLAN_HWTAGGING flag is not a member of if_cap but ec_cap,
so fix it.
2010-07-28 23:30:21 +00:00
jakllsch 5630ecd473 Support detachment of ahcisata(4).
Use use 64-bit DMA tag (where available) for ahcisata(4) at jmide(4).
Beginnings of detach/resume support for jmide(4).
Sprinkle static.  Misc. little changes.
2010-07-27 22:07:50 +00:00
jakllsch 28b0c5a3fd Make the Realtek PCI network interfaces detachable.
Use __arraycount to avoid null table entries.
Miscellaneous other touch-ups in bus front-ends.
2010-07-27 21:02:00 +00:00
jakllsch a72d5a5dfe Make debugging code compile on LP64. 2010-07-27 19:44:16 +00:00
jakllsch 792148e6de Use bus_addr_t for physical addresses.
For some reason the driver will put virtual addresses in these variables,
so I'd say this still not quite right.  Oh well, at least it compiles on LP64.
2010-07-27 19:40:16 +00:00
jakllsch b034386738 Rework debug printf invocation to not fail on LP64 so easily. 2010-07-27 19:31:55 +00:00
jakllsch 1a808dfbe7 Print size_t with 'z' in debug code. 2010-07-27 18:50:32 +00:00
jakllsch 5da0f05200 printf() size_t with 'z' format modifier in debug code. 2010-07-27 14:34:33 +00:00
martin e5dd924fda Make it compile again 2010-07-27 08:07:36 +00:00
jym da702eb93d Add PAE to ALL kernel, so that most paddr_t format string errors get caught
during compilation.

While here, fix the compilation for ALL.
2010-07-26 22:33:23 +00:00
jakllsch a08c2fef18 Store information for bus_dmamem_unmap() and bus_dmamem_free()
somewhere outside the bus_dmamap_t. The bus_dmamap_t has already
been destroyed by this time.

Fixes DMA memory leak at siisata_detach() time.
2010-07-26 15:41:33 +00:00
jakllsch 1bccaf8fad Finish cleaning up pchb from recent change.
Use fewer magic numbers in ichlpcib.
Slightly improve style conformance.
Update paths in cpp re-inclusion guards.
2010-07-23 02:23:58 +00:00
jakllsch a3d0188791 Prepare ahcisata(4) to work with 64-bit bus_dma_tag_t. 2010-07-20 19:24:11 +00:00
jakllsch a8cb5ed6da Convert ahcisata(4) to C99 exact-width integer types. 2010-07-20 18:50:48 +00:00
jklos 644246af8b Add support for 16650's prescaler from Frank Wille. Tested with
IOblix on Amiga.
2010-07-20 06:17:20 +00:00
kiyohara 3a80d8ba65 Fix wrong ifdef. 2010-07-13 12:57:22 +00:00
kiyohara 66dad59009 Move to pci/mvsata_pci.c (marvell/mvsata_mv.c) splitting mvsata_products[].
mvsata(4) uses these to match.
2010-07-13 12:53:42 +00:00
pgoyette 5738004561 Fix logic error in detecting length of DDR3 SPD covered by CRC check.
Reported by Jonathan Gray in private email - thanks!
2010-06-29 04:42:30 +00:00
macallan 108405a01e register definitions for Brooktree Bt461 and Bt462 RAMDACs, used on CG12 and
others
2010-06-24 03:30:36 +00:00
tsutsui 5a93b5b6c1 No need to include PCI header files in bus independent code. 2010-06-13 03:08:15 +00:00
macallan 2b22cbf04c set RI_NO_AUTO then attaching early, clear it otherwise 2010-05-12 20:58:52 +00:00
martin 1205a48106 Use callout_halt() instead of callout_stop() - otherwise gem_detach() might
be too fast and run callout_destroy() while another cpu is still busy
in the callout.
2010-05-12 10:25:23 +00:00
isaki d4edb08e10 Move "opt_slhci.h" from .h to .c
to avoid link error (multiple definition of _KERNEL_OPT_foo).
2010-05-08 01:33:00 +00:00
tsutsui 7ea90218ce Make local functions static. 2010-05-04 15:38:04 +00:00
jakllsch 488f603517 Add (missing) newlines to error messages. 2010-05-02 17:37:52 +00:00
chs b95f5863b7 add byte-swapping so that this works on BE platforms.
the logic is based on the current freebsd driver.
fixes PR 42870.
2010-04-28 22:45:27 +00:00
rmind 84b7918250 Fix KASSERTMSG() to be consistent with KASSERT() logic, not inverted.
Hi matt@!
2010-04-25 15:39:41 +00:00
dyoung bac6fbbd00 Don't printf bus_space_tag_t's in a MI driver. 2010-04-21 21:49:53 +00:00
dyoung ad6e139a80 Add default implementations for bus_space_is_equal(9),
bus_space_tag_create(9), and bus_space_tag_destroy(9).  Use
bus_space_is_equal(9) throughout the kernel to compare
bus_space_tag_t's.  Tested on i386 and on sparc64.
2010-04-19 18:24:26 +00:00
dyoung 7916748801 #include <sys/bus.h> instead of <machine/bus.h>. No functional change
intended.
2010-04-16 18:58:39 +00:00
tsutsui dc04f4f064 Fix botched logic in ipkdb part in rev 1.77 (KNF misc). 2010-04-11 09:58:36 +00:00
jakllsch 295766de32 Improve error paths in (e)siop_scsipi_request():
- When terminating the adapter request after the cmd has been removed
   from the free list, put that cmd back on the free list before returing.
 - Correctly indicate which bus_dma_load() failed.

Analysis and fix from Michael L. Hitch in PR/42844.
2010-04-09 19:25:52 +00:00
nonaka a314257ee8 Added 8110SBL support. 2010-04-09 10:40:59 +00:00
nonaka 38ac2371ac Added PCA9564 I2C Controller driver. 2010-04-09 10:09:49 +00:00
jakllsch 9d1be6b12e satafis:
- Add function to parse RDH FIS for use in implementing AT_READREG.
- Correct and clean up some structure definitions.
- Sprinkle a bit of const.
- Remove dependency on <dev/ic/wdcreg.h>, WDCTL_4BIT doesn't seem
  to be specified by any recent ATA standard, and it seems to make
  no difference in practice.
- Stop using WDSD_IBM, these bits have been obsolete since before SATA.

siisata:
- Implement AT_READREG.
- Reap now-unneeded <dev/ic/wdcreg.h>.
- Whitespace and slight debug code cleanup.
- Some possibly-uncessary code reordering.

ahcisata:
- Implement AT_READREG.
- Reap now-unneeded <dev/ic/wdcreg.h>.
2010-04-07 17:51:16 +00:00
nonaka 8dfa6d1a29 Added support RICOH 5C316. 2010-04-06 15:29:19 +00:00
joerg 58e867556f Push the bpf_ops usage back into bpf.h. Push the common ifp->if_bpf
check into the inline functions as well the fourth argument for
bpf_attach.
2010-04-05 07:19:28 +00:00
macallan 87ba095012 remove a now useless bus_space_barrier() 2010-03-31 21:01:03 +00:00
macallan 38fe6d6284 Do as OpenSolaris does and read the status register after each write.
Now this driver works on my Blade 2500.
2010-03-31 05:09:41 +00:00
tsutsui dd38ae84c7 Don't warn about DMA timeout during probe. 2010-03-29 15:51:03 +00:00