CVS commit: [netbsd-5] src/sys/dev/ic
Module Name:src Committed By: msaitoh Date: Sun Dec 21 20:49:43 UTC 2014 Modified Files: src/sys/dev/ic [netbsd-5]: rtl8169.c Log Message: Pull up following revision(s) (requested by uwe in ticket #1936): sys/dev/ic/rtl8169.c: revision 1.142 RealTek 8139C+ incorrectly identifies UDP checksum 0x as bad. Force software recalculation of UDP checksum if bad checksum is reported by the hardware. To generate a diff of this commit: cvs rdiff -u -r1.105.4.9 -r1.105.4.10 src/sys/dev/ic/rtl8169.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-5] src/sys/dev/ic
Module Name:src Committed By: bouyer Date: Sat Sep 15 09:32:36 UTC 2012 Modified Files: src/sys/dev/ic [netbsd-5]: gem.c gemreg.h gemvar.h Log Message: Pull up following revision(s) (requested by jdc in ticket #1789): sys/dev/ic/gem.c: revision 1.99 via patch sys/dev/ic/gemvar.h: revision 1.24 via patch sys/dev/ic/gemreg.h: revision 1.15 via patch Apply lockup fixes from Havard Eidnes/OpenBSD in PR port-sparc64/46260: - add an additional watchdog for RX overflow - re-initialise the chip on device timeout Also alter the interrupt blanking rate to 8 packets, as per OpenSolaris. To generate a diff of this commit: cvs rdiff -u -r1.78.4.2 -r1.78.4.3 src/sys/dev/ic/gem.c cvs rdiff -u -r1.14 -r1.14.4.1 src/sys/dev/ic/gemreg.h cvs rdiff -u -r1.18 -r1.18.20.1 src/sys/dev/ic/gemvar.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-5] src/sys/dev/ic
Module Name:src Committed By: bouyer Date: Sat Feb 4 17:05:56 UTC 2012 Modified Files: src/sys/dev/ic [netbsd-5]: mpt_netbsd.c Log Message: Pull up following revision(s) (requested by mhitch in ticket #1720): sys/dev/ic/mpt_netbsd.c: revision 1.17 Allow adapters with SAS/SATA or FC devices to use tagged queuing by the scsipi layer. Can improve write performance on SAS adapters under certain conditions when the logical drive does not have write caching enabled. Also need to reserver a couple of slots for commands for the driver to use - stops the adapter shortage messages. Multiple commands can now cause QUEUE_FULL events, so add that to the events handled, currently just ignoring it. Changes based on the thread http://mail-index.netbsd.org/tech-kern/2011/02/08/msg009946.html. cvs: -- To generate a diff of this commit: cvs rdiff -u -r1.14.14.1 -r1.14.14.2 src/sys/dev/ic/mpt_netbsd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-5] src/sys/dev/ic
Module Name:src Committed By: riz Date: Wed Jan 25 18:02:45 UTC 2012 Modified Files: src/sys/dev/ic [netbsd-5]: rtl8169.c rtl81x9reg.h rtl81x9var.h Log Message: Pull up following revision(s) (requested by garbled in ticket #1698): sys/dev/ic/rtl81x9var.h: revision 1.52 sys/dev/ic/rtl8169.c: revision 1.134 sys/dev/ic/rtl81x9reg.h: revision 1.42 Add support to recognize the 8168E model of this chip. Taken from FreeBSD To generate a diff of this commit: cvs rdiff -u -r1.105.4.8 -r1.105.4.9 src/sys/dev/ic/rtl8169.c cvs rdiff -u -r1.32.4.4 -r1.32.4.5 src/sys/dev/ic/rtl81x9reg.h cvs rdiff -u -r1.41.12.5 -r1.41.12.6 src/sys/dev/ic/rtl81x9var.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-5] src/sys/dev/ic
Module Name:src Committed By: riz Date: Wed Nov 2 19:39:43 UTC 2011 Modified Files: src/sys/dev/ic [netbsd-5]: ciss.c Log Message: Pull up following revision(s) (requested by mhitch in ticket #1674): sys/dev/ic/ciss.c: revision 1.25 I was allowing adapt_max_periph to use all available command slots, which easily exceeds the maximum of 256 tags used by the scsipi layer because the tag information from the scsipi layer was ignored and all the tagging is handled implicitly internal to ciss(4). But with the DIAGNOSTIC option, the scsipi layer does a check for > 256 tags and will panic. So, lets just limit the adapt_max_periph to 256 so the scsipi layer won't try to user more. To generate a diff of this commit: cvs rdiff -u -r1.14.4.2 -r1.14.4.3 src/sys/dev/ic/ciss.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-5] src/sys/dev/ic
Module Name:src Committed By: bouyer Date: Sat Jun 18 16:40:31 UTC 2011 Modified Files: src/sys/dev/ic [netbsd-5]: gem.c Log Message: Pull up following revision(s) (requested by jdc in ticket #1632): sys/dev/ic/gem.c: revision 1.97 Fix corrupted packet problem on 100Mb/s half duplex links. We need to set "echo disable" on the internal phy too, not just on the external phy. Tested on: SUNW,Sun-Blade-2000 gem0 at pci0 dev 5 function 1: Sun Microsystems ERI Ethernet (rev. 0x01) ukphy0 at gem0 phy 1: OUI 0x0006b8, model 0x000c, rev. 1 Setting pointed out by bad@. To generate a diff of this commit: cvs rdiff -u -r1.78.4.1 -r1.78.4.2 src/sys/dev/ic/gem.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-5] src/sys/dev/ic
Module Name:src Committed By: bouyer Date: Sun Jan 16 13:06:49 UTC 2011 Modified Files: src/sys/dev/ic [netbsd-5]: ahcisata_core.c Log Message: Pull up following revision(s) (requested by tsutsui in ticket #1530): sys/dev/ic/ahcisata_core.c: revision 1.31 Don't call bus_dmamap_load(9) and bus_dmamap_sync(9) on command xfers if (AT_READ|AT_WRITE) in ata_c->flags is set but ata_c->bcount is zero. Someone actually tries to put such a command and it causes DIAGNOSTIC panic in x86/bus_dma.c:_bus_dmamap_sync(). I think bus_dma(9) API itself may allow calls with mapsize==0 but there are many MD code that asserts offset>=mapsize or len==0. The problem is reported and fix is confirmed by Takuro KUBOTA with XEN DOM0 kernel (which has options DIAGNOSTIC). To generate a diff of this commit: cvs rdiff -u -r1.18.4.4 -r1.18.4.5 src/sys/dev/ic/ahcisata_core.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-5] src/sys/dev/ic
Module Name:src Committed By: snj Date: Thu Dec 2 23:45:59 UTC 2010 Modified Files: src/sys/dev/ic [netbsd-5]: mpt.c mpt.h mpt_debug.c mpt_netbsd.c Log Message: Pull up following revision(s) (requested by riz in ticket #1487): sys/dev/ic/mpt.c: revision 1.14 sys/dev/ic/mpt.h: revision 1.7 sys/dev/ic/mpt_debug.c: revision 1.7 sys/dev/ic/mpt_netbsd.c: revision 1.15 add byte-swapping so that this works on BE platforms. the logic is based on the current freebsd driver. fixes PR 42870. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.10.42.1 src/sys/dev/ic/mpt.c cvs rdiff -u -r1.6 -r1.6.42.1 src/sys/dev/ic/mpt.h cvs rdiff -u -r1.4 -r1.4.86.1 src/sys/dev/ic/mpt_debug.c cvs rdiff -u -r1.14 -r1.14.14.1 src/sys/dev/ic/mpt_netbsd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-5] src/sys/dev/ic
Module Name:src Committed By: snj Date: Thu Dec 2 23:42:37 UTC 2010 Modified Files: src/sys/dev/ic [netbsd-5]: iavc.c Log Message: Pull up following revision(s) (requested by riz in ticket #1418): sys/dev/ic/iavc.c: revision 1.8 Make this compile &foo[0] does not work for void * :-) Wojciech Galazka To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.7.14.1 src/sys/dev/ic/iavc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-5] src/sys/dev/ic
Module Name:src Committed By: riz Date: Sun Nov 21 21:02:49 UTC 2010 Modified Files: src/sys/dev/ic [netbsd-5]: ciss.c Log Message: Pull up following revision(s) (requested by pettai in ticket #1452): sys/dev/ic/ciss.c: revision 1.23 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. To generate a diff of this commit: cvs rdiff -u -r1.14.4.1 -r1.14.4.2 src/sys/dev/ic/ciss.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-5] src/sys/dev/ic
Module Name:src Committed By: riz Date: Sat Nov 20 20:12:57 UTC 2010 Modified Files: src/sys/dev/ic [netbsd-5]: esiop.c siop.c Log Message: Fix patch from ticket 1390; bad merge from -current to netbsd-5. To generate a diff of this commit: cvs rdiff -u -r1.42.14.1 -r1.42.14.2 src/sys/dev/ic/esiop.c cvs rdiff -u -r1.87.14.1 -r1.87.14.2 src/sys/dev/ic/siop.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-5] src/sys/dev/ic
Module Name:src Committed By: riz Date: Sat Nov 20 18:20:49 UTC 2010 Modified Files: src/sys/dev/ic [netbsd-5]: esiop.c siop.c Log Message: Pull up following revision(s) (requested by mhitch in ticket #1390): sys/dev/ic/siop.c: revision 1.95 sys/dev/ic/esiop.c: revision 1.52 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. To generate a diff of this commit: cvs rdiff -u -r1.42 -r1.42.14.1 src/sys/dev/ic/esiop.c cvs rdiff -u -r1.87 -r1.87.14.1 src/sys/dev/ic/siop.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-5] src/sys/dev/ic
Module Name:src Committed By: snj Date: Sun Mar 28 16:21:18 UTC 2010 Modified Files: src/sys/dev/ic [netbsd-5]: ahcisata_core.c Log Message: Pull up following revision(s) (requested by bouyer in ticket #1317): sys/dev/ic/ahcisata_core.c: revision 1.23, 1.24 Move ahci_channel_start() after BSY has cleared (what seems to matter here is not touching SError while BSY is asserted). Fix random behavior (serial console corruption/misfunction, misbehavior of USB controllers, crasy interrupts crashing the Xen hypervisor, ...) of Intel ESB2 controller with some brand of hitachi drives. -- ahcisata_core.c 1.23 cause long drive probe (31s, reported by Roy Marples), or other devices misbehavior probably due to interrupts issues (reported by Jukka Ruohonen). Back it out and do the following changes: - clear port interrupt register before ahci_channel_start() which enables interrupts - wait 500ms after sata_reset_interface() before touching SERROR register. This is what seems to fix the issue I'm seeming on ESB2 controller. - The 31s delay didn't cause the probe to fail because of a mismatch in loop index comparison; use a #define for delay after reset instead of numeric values, to avoid this kind of bugs in the future. To generate a diff of this commit: cvs rdiff -u -r1.18.4.3 -r1.18.4.4 src/sys/dev/ic/ahcisata_core.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.