summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix some typos.adrian2011-01-211-3/+3
|
* Add missing getCapability call for AR5416.adrian2011-01-211-0/+1
|
* Modify the v14/v4k eeprom diag interface to return the whole eeprom.adrian2011-01-212-4/+4
| | | | | | The v1 and v3 interfaces returned the whole EEPROM but the v14/v4k interfaces just returned the base header. There's extra information outside of that which would also be nice to get access to.
* ANI changes #1 - split out the ANI polling from the RxMonitor hook.adrian2011-01-2117-31/+111
| | | | | | | | | | The rxmonitor hook is called on each received packet. This can get very, very busy as the tx/rx/chanbusy registers are thus read each time a packet is received. Instead, shuffle out the true per-packet processing which is needed and move the rest of the ANI processing into a periodic event which runs every 100ms by default.
* Some correctness and robustness fixes related to CUBIC's mean RTT estimate:lstewart2011-01-211-6/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - The mean RTT is updated at the end of each congestion epoch, but if we switch to congestion avoidance within the first epoch (e.g. if ssthresh was primed from the hostcache), we'll trigger a divide by zero panic in cubic_ack_received(). Set the mean to the min in cubic_record_rtt() if the mean is less than the min to ensure we have a sane mean for use in this situation. This fixes the panic reported by Nick Hibma. - Adjust conditions under which we update the mean RTT in cubic_post_recovery() to ensure a low latency path won't yield an RTT of less than 1. This avoids another potential divide by zero panic when running CUBIC in networks with sub-millisecond latencies. - Remove the "safety" assignment of min into mean when we don't update the mean because of failed conditions. The above change to the conditions for updating the mean ensures the safety issue is addressed and I feel it is better to keep our previous mean estimate around if we can't update than to revert to the min. - Initialise the mean RTT to 1 on connection startup to act as a safety belt if a situation we haven't considered and addressed with the above changes were to crop up in the wild. Sponsored by: FreeBSD Foundation Reported and tested by: Nick Hibma Discussed with: David Hayes <dahayes at swin edu au> MFC after: 5 weeks X-MFC with: r216114
* Add in a new tool which prints a formatted v14 eeprom from an eepromadrian2011-01-213-1/+454
| | | | | | | | | hexdump. This is a part replacement of the old athprom code, which tries to both fetch and print the contents of an eeprom dump. A tool to generate hexdumps from a running system will follow shortly.
* Remove an un-needed trailing / after OBJDIR.adrian2011-01-211-1/+1
| | | | Nitpicked by: juli
* Make the existing ath tools build again.adrian2011-01-218-3/+22
| | | | | | | | | | | * add missing includes to quieten warnings * fix an inline function decl to have a return type * since .h files are created during the build (opt_ah.h, ah_osdep.h) which modify the behaviour of the HAL include/source files, include OBJDIR in the path so the #include's work. The tools should now build when the directory is added to LOCAL_DIRS during a make buildworld.
* If there is no WQE available for a packet that needs segmentation, drop itjmallett2011-01-201-1/+6
| | | | and return.
* Remove some compile-time options from the driver, particularly async IOBDMAjmallett2011-01-204-114/+19
| | | | | support which is unused on FreeBSD and which complicates working on the code now, can easily be added back later by someone determined to use it.
* No need to list an obsolete arm compiler here.imp2011-01-202-2/+0
|
* Remove unused variables. Spotted by a cppcheckandreast2011-01-201-9/+1
| | | | | | (devel/cppcheck, http://sourceforge.net/projects/cppcheck) run. Approved by: nwhitehorn (mentor)
* Correct parsing of the grackle and uninorthpci ranges property.andreast2011-01-204-4/+10
| | | | Approved by: nwhitehorn (mentor)
* Don't need __DYNAMIC here. it is commented out and a.out only -- these are ↵imp2011-01-203-6/+0
| | | | all ELF.
* In fact, we don't need any of these __DYNAMIC. it is a.out leftover and ↵imp2011-01-204-8/+0
| | | | commented out.
* Remove commented out _DYNAMIC sections.imp2011-01-202-8/+1
|
* Use simplified ldscripts rather than specific onesimp2011-01-203-3/+3
|
* We don't need 2 versions here. One will do since binutils outputs the right ↵imp2011-01-202-324/+0
| | | | stuff now.
* Collapse all the octeon ldscripts down into one now that we don't need one ↵imp2011-01-203-123/+0
| | | | each for all the wacky ABIs
* Correct wrong definition of PM timer mask and adjust L1/PM timeryongari2011-01-202-4/+16
| | | | | | | | | value. While I'm here enable all clocks before initializing controller. This change should fix lockup issue seen on AR8152 v1.1 PCIe Fast Ethernet controller. PR: kern/154076 MFC after: 3 days
* Add myself to the list of doc commiters.ryusuke2011-01-201-0/+1
|
* Fix a stack leak in r215345 when skipping over the ACPI menu item forjhb2011-01-201-1/+1
| | | | | | machines that do not support ACPI. Submitted by: olli
* - Hide the internal scope address representation of the KAME IPv6ume2011-01-203-22/+36
| | | | | | | | stack from the output of `netstat -ani'. - The node-local multicast address in the output of `netstat -rn' should be handled as well. Spotted by: Bernd Walter <ticso__at__cicely7.cicely.de>
* ar9280SetAntennaSwitch() was using the AR5416 chainmasks (3 chains)adrian2011-01-201-2/+2
| | | | rather than the AR9280 chainmasks (2 chains)
* Correct parsing of the cpcht ranges property.nwhitehorn2011-01-201-2/+3
| | | | | Submitted by: andreast MFC after: 2 weeks
* Improve comments.tuexen2011-01-201-5/+5
| | | | MFC after: 1 week.
* Add another ID for the ZTE MF190 Surf Stickn_hibma2011-01-202-0/+2
| | | | | Submitted by: nagilum MFC after: 1 day
* Move 'cpu CPU_RMI' to std.xlr, this is common for all XLR cpus.jchandra2011-01-204-14/+4
|
* Fix it so we align with new socket API draft forrrs2011-01-203-25/+21
| | | | | | state's in destination (i.e. ACTIVE/INACTIVE/UNCONFIRMED) MFC after: 1 week
* Only enable 11n modes if the chipset suports 11n.adrian2011-01-201-2/+6
| | | | | Since the AR2427 doesn't allow 802.11n, it shouldn't have them configured.
* In tmpfs_readdir(), normalize handling of the directory entries thatkib2011-01-202-4/+5
| | | | | | | | | | either overflow the supplied buffer, or cause uiomove fail. Do not advance cached de when directory entry was not copied out. Do not return EOF when no entries could be copied due to first entry too large for supplied buffer, signal EINVAL instead. Reported by: Beat G?tzi <beat chruetertee ch> MFC after: 1 week
* Include the device ids for the AR2427.adrian2011-01-202-0/+8
| | | | | | | | This is apparently an AR9285 with the 802.11n specific bits disabled. This code is completely untested; I'm doing this in response to users who wish to test the functionality out. It's likely as buggy as the AR9285 support is in FreeBSD at the moment.
* Push the non-AR5416 related stuff into chipset specific directories.adrian2011-01-2016-21/+27
| | | | | | | | | | sys/dev/ath/ath_hal/ar5416/ is getting very crowded and further commits will make it even more crowded. Now is a good time to shuffle these files out before any more extensive work is done on them. Create an ar9003 directory whilst I'm here; ar9003 specific chipset code will eventually live there.
* Re-format XLR configuartion files and remove obsolete options.jchandra2011-01-203-104/+93
|
* Add a comment from my local HAL about what is actually going on hereadrian2011-01-201-0/+17
| | | | | | | | | | | | | | with these ADC DC Gain/Offset calibrations. The whole idea is to calibrate a pair of ADCs to compensate for any differences between them. The AR5416 returns lots of garbage, so there's no need to do the calibration there. The AR9160 returns 0 for secondary ADCs when calibrating 2.4ghz 20mhz modes. It returns valid data for the secondary ADCs when calibrating 2.4ghz HT/40 and any 5ghz mode.
* Migrate the sample rate module to the new ath_hal_gettxcompletionrates() API.adrian2011-01-202-99/+36
| | | | | | This removes the chipset-dependent TX DMA completion descriptor groveling. It should now be (more) portable to other, later atheros chipsets when the time comes.
* Add in the public method to access the tx completion rates.adrian2011-01-201-0/+2
|
* ldscript and conf cleanup for MIPSjchandra2011-01-206-619/+7
| | | | | | | | | - Remove sys/conf/ldscript.mips.64 and sys/conf/ldscript.mips.n32 and use ldscript.mips for all ABIs. The default OUTPUT_FORMAT of the toolchain is correct. - Remove LDSCRIPT_NAME entires from XLR n32 and n64 conf files. - Remove TARGET_BIG_ENDIAN from XLR conf files. - Fix machine entry in XLRN32
* Fixes in the XLR platform codejchandra2011-01-202-3/+3
| | | | | - Fix bug in pic.h, assign reg variable, before return. - In xlr_pci.c, need to ignore the result of mmio read.
* Include the initial support for external EEPROMs.adrian2011-01-2013-13/+24
| | | | | | | | | | | | | | The AR9100 at least doesn't have an external serial EEPROM attached to the MAC; it instead stores the calibration data in the normal system flash. I believe earlier parts can do something similar but I haven't experienced it first-hand. This commit introduces an eepromdata pointer into the API but doesn't at all commit to using it. A future commit will include the glue needed to allow the AR9100 support code to use this data pointer as the EEPROM.
* Port over another EEPROM option from ath9k - AR_EEP_DAC_HPWR_5Gadrian2011-01-203-0/+10
| | | | | This will be used by the temperature compensation calibration code which will shortly make an appearance.
* Add another HAL function which waits for a register for a configurable amount.adrian2011-01-202-2/+10
| | | | This will be used by some future code.
* Add a new HAL method to retrieve the completion schedule. It setsadrian2011-01-2013-0/+76
| | | | | | | | | | | the completion schedule from the hardware and returns AH_TRUE if the hardware supports multi-rate retries (AR5212 and above); and returns AH_FALSE if the hardware doesn't support multi-rate retries. The sample rate module directly reads the TX completion descriptor and extracts the TX schedule information from that. It will be updated in a future commit to instead use this method to determine the completion schedule.
* Fix build by changing format for size_t to %jdgonzo2011-01-201-14/+14
|
* Use the now-exposed diag code, rather than a hard-coded magic number.adrian2011-01-201-1/+1
|
* Break out the diagnostic codes from ah_internal.h and place them in ↵adrian2011-01-203-39/+70
| | | | | | | | | | | | ah_diagcodes.h. Since we now have the source code, there's no reason to hide the diag codes from other areas. They live in the HAL as they form part of the HAL API and should still be treate as "potentially flexible; don't publish as a public API." But since they're already used as a public API (see follow-up commit), we may as well use them in place of magic constants.
* Introduce signed and unsigned version of CTLTYPE_QUAD, renamingmdf2011-01-1912-59/+91
| | | | existing uses. Rename sysctl_handle_quad() to sysctl_handle_64().
* document that even when wakeup_one is used to wakeup, msleep and friendsjmg2011-01-191-0/+8
| | | | | | | | may still return a non-zero value... You are not guaranteed to get a one to one mapping between wakeup_one and zero return values... Reviewed by: kib MFC after: 3 days
* The output format should be determined by the ABI flags, not the ldscript.jmallett2011-01-191-4/+1
| | | | | | | | | | | | | | This ldscript is used with both little-endian and big-endian targets. This hopefully fixes MIPS universe. NB: We really should get rid of almost all of the MIPS ldscripts. There's only gratuitous differences between them, mostly because they're too specific or they do things like specify the output format rather than taking it from flags given in the kernel config file or the default output format of the compiler. Also add svn:keywords property.
* Cleanup the management of CC functions.tuexen2011-01-195-256/+68
| | | | MFC after: 3 months.
OpenPOWER on IntegriCloud