summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Correct my name in the copyright statement.des2012-04-152-2/+2
|
* Improve m4 compatibility with GNU m4 extension ** (exponent)bapt2012-04-153-3/+7
| | | | | Submitted by: Marc Espie (espie@OpenBSD.org) Approved by: des@ (mentor)
* Fix the mask logic when reading PCI configuration space registers.adrian2012-04-151-2/+6
|
* Override some default values to work around various issues in the deep,adrian2012-04-151-3/+17
| | | | | | | | | | | | | | | | | | dirty and murky past. * Override the default cache line size to be something reasonable if it's set to 0. Some NICs initialise with '0' (eg embedded ones) and there are comments in the driver stating that various OSes (eg older Linux ones) would incorrectly program things and 0 out this register. * Just default to overriding the latency timer. Every other driver does this. * Use a default cache line size of 32 bytes. It should be "reasonable enough". Obtained from: Linux ath9k, Atheros
* Fix a typo.davide2012-04-141-1/+1
| | | | | Approved by: gnn (mentor) MFC after: 2 days
* Fix some style bugs introduced in a previous commit (r233045)davide2012-04-142-9/+10
| | | | | | | Reported by: glebius, jmallet Reviewed by: jmallet Approved by: gnn (mentor) MFC after: 2 days
* Send always HBs when in PF state.tuexen2012-04-141-1/+2
| | | | | MFC after: 1 week X-MFC with: r234296
* Bugfix: Don't send HBs on path which are not idle.tuexen2012-04-141-1/+16
| | | | MFC after: 1 week
* Generate an obviously missing STOP when having finished transmitting data.marius2012-04-141-0/+1
| | | | This fixes communication with PCF8563.
* Add support for the Atmel SAM9XE familiy of microcontrollers, whichmarius2012-04-141-5/+9
| | | | | | | consist of a ARM926EJ-S processor core with up to 512 Kbytes of on-chip flash. Tested with SAM9XE512. This file was missed in r234291.
* Add support for the Atmel SAM9XE familiy of microcontrollers, whichmarius2012-04-148-15/+41
| | | | | consist of a ARM926EJ-S processor core with up to 512 Kbytes of on-chip flash. Tested with SAM9XE512.
* i prefer this fix for the -Wformat warning (just one cast,luigi2012-04-141-5/+3
| | | | | all the other variables are already correct for %x). My previous attempt put the cast in the wrong place.
* Add files and directories to be cleaned up if WITHOUT_GCC is in effectdim2012-04-141-0/+36
| | | | | | to OptionalObsoleteFiles.inc. MFC after: 1 week
* Fix LINT builds after r234233; not sure why modules need DEBUG by default.bz2012-04-141-1/+1
|
* Make compile on 64bit somehow for now after a first try at r234242 onbz2012-04-141-3/+5
| | | | maybe 32bit?
* - Try to bring these files closer to style(9).marius2012-04-1412-208/+236
| | | | | - Use DEVMETHOD_END. - Use NULL instead of 0 for pointers.
* Fix !DDB build after r234190.marius2012-04-141-1/+1
|
* Catch up with Bryan Venteicher's virtio git repo:grehan2012-04-147-102/+254
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a8af6270bd96be6ccd86f70b60fa6512b710e4f0 virtio_blk: Include function name in panic string cbdb03a694b76c5253d7ae3a59b9995b9afbb67a virtio_balloon: Do the notify outside of the lock By the time we return from virtqueue_notify(), the descriptor will be in the used ring so we shouldn't have to sleep. 10ba392e60692529a5cbc1e9987e4064e0128447 virtio: Use DEVMETHOD_END 80cbcc4d6552cac758be67f0c99c36f23ce62110 virtqueue: Add support for VIRTIO_F_RING_EVENT_IDX This can be used to reduce the number of guest/host and host/guest interrupts by delaying the interrupt until a certain index value is reached. Actual use by the network driver will come along later. 8fc465969acc0c58477153e4c3530390db436c02 virtqueue: Simplify virtqueue_nused() Since the values just wrap naturally at UINT16_MAX, we can just subtract the two values directly, rather than doing 2's complement math. a8aa22f25959e2767d006cd621b69050e7ffb0ae virtio_blk: Remove debugging crud from 75dd732a There seems to be an issue with Qemu (or FreeBSD VirtIO) that sets the PCI register space for the device config to bogus values. This only seems to happen after unloading and reloading the module. d404800661cb2a9769c033f8a50b2133934501aa virtio_blk: Use better variable name 75dd732a97743d96e7c63f7ced3c2169696dadd3 virtio_blk: Partially revert 92ba40e65 Just use the virtqueue to determine if any requests are still inflight. 06661ed66b7a9efaea240f99f414c368f1bbcdc7 virtio_blk: error if allowed too few segments Should never happen unless the host provides use with a bogus seg_max value. 4b33e5085bc87a818433d7e664a0a2c8f56a1a89 virtio_blk: Sort function declarations 426b9f5cac892c9c64cc7631966461514f7e08c6 virtio_blk: Cleanup whitespace 617c23e12c61e3c2233d942db713c6b8ff0bd112 virtio_blk: Call disk_err() on error'd completed requests 081a5712d4b2e0abf273be4d26affcf3870263a9 virtio_blk: ASSERT the ready and inflight request queues are empty a9be2631a4f770a84145c18ee03a3f103bed4ca8 virtio_blk: Simplify check for too many segments At the cost of a small style violation. e00ec09da014f2e60cc75542d0ab78898672d521 virtio_blk: Add beginnings of suspend/resume Still not sure if we need to virtio_stop()/virtio_reinit() the device before/after a suspend. Don't start additional IO when marked as suspending. 47c71dc6ce8c238aa59ce8afd4bda5aa294bc884 virtio_blk: Panic when dealt an unhandled BIO cmd 1055544f90fb8c0cc6a2395f5b6104039606aafe virtio_blk: Add VQ enqueue/dequeue wrappers Wrapper functions managed the added/removing to the in-flight list of requests. Normally biodone() any completed IO when draining the virtqueue. 92ba40e65b3bb5e4acb9300ece711f1ea8f3f7f4 virtio_blk: Add in-flight list of requests 74f6d260e075443544522c0833dc2712dd93f49b virtio_blk: Rename VTBLK_FLAG_DETACHING to VTBLK_FLAG_DETACH 7aa549050f6fc6551c09c6362ed6b2a0728956ef virtio_blk: Finish all BIOs through vtblk_finish_bio() Also properly set bio_resid in the case of errors. Most geom_disk providers seem to do the same. 9eef6d0e6f7e5dd362f71ba097f2e2e4c3744882 Added function to translate VirtIO status to error code ef06adc337f31e1129d6d5f26de6d8d1be27bcd2 Reset dumping flag when given unexpected parameters 393b3e390c644193a2e392220dcc6a6c50b212d9 Added missing VTBLK_LOCK() in dump handler Obtained from: Bryan Venteicher bryanv at daemoninthecloset dot org
* Both linux ath9k and the reference driver initialises the PLL hereadrian2012-04-141-0/+1
| | | | | | during chip wakeup. Obtained from: Linux ath9k, Atheros
* Add a driver for the NXP (Philips) PCF8563 RTC.marius2012-04-133-0/+261
| | | | Obtained from: NetBSD (pcf8563reg.h)
* Merge from x86:marius2012-04-132-3/+7
| | | | | | | | | | | | | | | | | | | | | | | r233961: Fix interrupt load balancing regression, introduced in revision 222813, that left all un-pinned interrupts assigned to CPU 0. In intr_shuffle_irqs(), remove CPU_SETOF() call that initialized the "intr_cpus" cpuset to only contain CPU0. This initialization is too late and nullifies the results of calls to the intr_add_cpu() that occur much earlier in the boot process. r234074 (partial): The BSP is not added to the mask of valid target CPUs for interrupts. Fix this by adding the BSP as an interrupt target directly in r234105: Fix !SMP build after r234074. MFC after: 3 days
* Eliminate an unused parameter of static method igmp_stats_live_old().delphij2012-04-131-2/+2
| | | | MFC after: 1 month
* The scandir(3) function expects fourth parameter, compar, be in type of:delphij2012-04-131-4/+4
| | | | | | | | | | | int (*compar)(const struct dirent **, const struct dirent **) The current code defines sortq() to accept two void *, then cast them to const struct dirent **. Because the code does not really need this cast, we can eliminate the casts by changing the function prototype to match scandir(3) expectation. MFC after: 1 month
* fix build with -Wformat -Wmissing-prototypesluigi2012-04-131-2/+2
|
* Added myself to committers-src.dot.jasone2012-04-131-0/+3
|
* Flesh out the rest of the AP96 board/config.adrian2012-04-132-8/+64
|
* Change SIGUSR1 to SIGTHR to properly wake up a process that is beinggnn2012-04-131-1/+1
| | | | | | | traced. The use of SIGUSR1 caused traced processes (those attached to with dtrace -p) to exit when dtrace exited. MFC in: 1 week
* Update to version 2.3.1.0jpaetzel2012-04-1310-40/+174
| | | | Obtained from: Daniel Braniss <danny@cs.huji.ac.il>
* * Enable ATH_EEPROM_FIRMWARE, now that it's a compile time optionadrian2012-04-132-4/+6
| | | | * Tidy up things a bit.
* Upgrade ATH_EEPROM_FIRMWARE to a configuration option.adrian2012-04-132-2/+2
|
* Add myself as a new committer and add adrian as my mentor.monthadar2012-04-131-0/+2
| | | | Approved by: adrian (mentor)
* Properly disable crc stripping when operating in netmap mode.luigi2012-04-132-4/+13
| | | | | | | | Contrarily to what i wrote in my previous commit, the 82599 does include the CRC in the length. The operating mode is reset in ixgbe_init_locked() and so we need to hook into the places where the two registers (HLREG0 and RDRXCTL) are modified.
* add the new memory allocator for netmap, which allocates memoryluigi2012-04-131-0/+720
| | | | | in small clusters instead of one big contiguous chunk. This was already enabled in the previous commit.
* A bit of cleanup in the names of fields of netmap-related structures.luigi2012-04-137-58/+92
| | | | | Use the name 'ring' instead of 'queue' in all fields. Bump NETMAP_API.
* do not use a deprecated field in a structure.luigi2012-04-131-2/+2
|
* Belatedly add my entry to the calendar file, now that 30 is here and gone.gjb2012-04-131-0/+1
|
* These are uboot, so mark them as such or booting from flash will not work.adrian2012-04-132-0/+4
|
* Introduce configuration files for AP94 and AP96.adrian2012-04-134-0/+120
| | | | | | | | | | | | This uses the new firmware(9) method for squirreling away the EEPROM contents from SPI flash so ath(4) can get to them later. It won't work out of the box just yet - you have to add this to if_ath_pci.c: #define ATH_EEPROM_FIRMWARE .. until I've added it as a configuration option and updated things.
* Introduce the ability to grab local EEPROM data from the firmware(9)adrian2012-04-131-0/+46
| | | | | | | | | | | | | | | | interface. * Introduce a device hint, 'eeprom_firmware', which is the name of firmware to lookup. * If the lookup succeeds, take a copy of it and use it as the eeprom data. This isn't enabled by default - you have to define ATH_EEPROM_FIRMWARE. I'll add it to the configuration variables in a later commit. TODO: * just keep a firmware reference in ath_softc, and remove the need to waste the extra memory in having sc_eepromdata be a malloc()ed block.
* (ab)Use the firmware API to store away EEPROM calibration data foradrian2012-04-131-6/+72
| | | | | | | | | | | | | | | | | | | | | future use by the ath(4) driver. These embedded devices put the calibration/PCI bootstrap data on the on board SPI flash rather than on an EEPROM connected to the NIC. For some boards, there's two NICs and two sets of EEPROM data in the main SPI flash. The particulars: * Introduce ath_fixup_size, which is the size of the EEPROM area in bytes. * Create a firmware image with a name based on the PCI device identifier (bus/slot/device/function). * Hide some verbose debugging behind 'bootverbose'. ath(4) can then use this to load in the EEPROM data. This requires AR71XX_ATH_EEPROM to be defined.
* add actual interrupt counters to back ipi_invlcache_countsavg2012-04-132-0/+4
| | | | | | | | Otherwise one could run into a panic with COUNT_IPIS when cache invalidation actually happened. Reviewed by: jhb MFC after: 1 week
* bump INTRCNT_COUNT values to reflect actual numbers of IPI countersavg2012-04-132-4/+4
| | | | | | | Maybe the numbers should be conditionalized on COUNT_IPIS Reviewed by: jhb MFC after: 1 week
* Partially implement zipinfo (-Z) support.kevlo2012-04-131-38/+71
| | | | | | | | This fixes some test failures seen with perl 5.12 and 5.14. PR: bin/166895 Submitted by: swills MFC after: 3 days
* Remove an unused variable. Grr.adrian2012-04-131-1/+1
|
* Sync this code against what's in OpenWRT trunk.adrian2012-04-131-27/+28
| | | | | | | | | | | | | | | | | | | * the openwrt code doesn't treat 0/0/0 any differently from other bus/slot/func combinations. * A "local write" function writes to the LCONF area, and so I've added it. * The PCI workaround at attach time uses this LCONF code, which it already did .. * .. but it is a 4 byte write, not a 2 byte write. Even though it's PCIR_COMMAND which is a two byte PCI register. Tested on: AR7161 TODO: The other two AR71xx derivatives TODO: More thoroughly stare at the datasheets I do have and if it indeed is incorrect, push fixes to both FreeBSD and Linux/OpenWRT. Obtained from: Linux OpenWRT
* Apply changes from r234103 to ext2fs:jh2012-04-131-8/+4
| | | | | | | | | | | | Return EPERM from ext2_setattr() when an user without PRIV_VFS_SYSFLAGS privilege attempts to toggle SF_SETTABLE flags. Flags are now stored to ip->i_flags in one place after all checks. Also, remove SF_NOUNLINK from the checks because ext2fs doesn't support that flag. Reviewed by: bde
* Additional manual page updates for r234103.jh2012-04-131-8/+12
| | | | Submitted by: bde
* Use strdup() on the name (and free it when it's done) so non-static namesadrian2012-04-131-2/+8
| | | | can be used in firmware_register().
* Update the ddb and gdb backends for the new 'trace_thread' hook.jhb2012-04-122-2/+16
| | | | | | | | | It is implemented via db_trace_thread() for DDB and not implemented for GDB. This should have been part of r234190. Pointy hat to: jhb Reported by: jkim MFC after: 1 week
* Add myself and my relation to my mentors.madpilot2012-04-121-0/+3
| | | | Approved by: crees
OpenPOWER on IntegriCloud