summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove use of non-ISO-C integer types from system call tables.ed2012-05-253-41/+41
| | | | | These files already use ISO-C-style integer types, so make them less inconsistent by preferring the standard types.
* Update HID defines for E500mc and E5500 CPU cores.raj2012-05-251-0/+53
| | | | Obtained from: Freescale, Semihalf
* Import DTS files for the upcoming DPAA QorIQ (PowerPC) support.raj2012-05-256-567/+5498
| | | | | | | | - P2041RDB - P3041DS - P5020DS Obtained from: Freescale
* Add a partition type for nandfs to the apm, bsd, gpt and vtoc8 schemes.marcel2012-05-2510-2/+35
| | | | The gpart alias for these partition types is "freebsd-nandfs".
* init: Remove unnecessary 2-second delay before calling reboot(2).jilles2012-05-251-2/+0
|
* Fix physical address type to vm_paddr_t also for powerpc64.raj2012-05-251-11/+11
|
* Add some AR5416/AR5418 WAR's for power-on and suspend/resume:adrian2012-05-251-3/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Now that ah_configPCIE is called for both power on and suspend/resume, make sure the right bit(s) are cleared and set when suspending and resuming. Specifically: + force disable/enable the PCIe PHY upon suspend/resume; + reprogram the PCIe WAR register when resuming and upon power-on. * Add a recipe which powers down any PCIe PHY hardware inside the AR5416 (which is the PCI variant) to save on power. I have (currently) no way to test exactly how much power is saved, if any. Tested on: * AR5416 cardbus - although unfortunately pccard/cbb/cardbus currently detaches the NIC upon suspend, I don't think it's a proper test case. * AR5418 PCIe attached to expresscard - since we're not doing PCIe APSM, it's also not likely a full/good test case. In both instances I went through a handful of suspend/resume cycles and ensured that the STA vap reassociated correctly. TODO: * Setup a laptop to simply sit in a suspend/resume loop, making sure that the NIC always correctly comes back; * Start doing suspend/resume tests with actual traffic going on in the background, as I bet this process is all quite racy at the present; * Test adhoc/hostap mode, just to be completely sure it's working correctly; * See if I can jury rig an external power source to an AR5416 to test out whether ah_disablePCIE() works. Obtained from: Qualcomm Atheros
* Correct error message.pjd2012-05-251-1/+1
| | | | MFC after: 3 days
* * According to the reference code, AR_WA_D3_L1_DISBABLE is bit 14.adrian2012-05-251-1/+5
| | | | | | | * Add some other WAR bits (very usefully described too) in preparation for porting over some suspend/resume fixes from ath9k/Atheros. Obtained from: Qualcomm Atheros
* Doh... Don't add __eabi to an old version tag (i.e. FBSD_1.0). Add it to themarcel2012-05-251-1/+4
| | | | | | current one (= FBSD_1.3). Pointed out by: kib
* Missing vm_paddr_t bits which should have been part of r235936.raj2012-05-251-4/+4
|
* More Cicada/Vitesse PHY ids.raj2012-05-252-1/+10
| | | | Obtained from: Semihalf
* Merge from x86: r232521marius2012-05-251-28/+0
| | | | Exclude USB drivers (except umass and ukbd) from main kernel image.
* Undefine SCTP_PACKED before including sctp_uio.h, which doesn'ttuexen2012-05-251-3/+2
| | | | | | use it. Spotted by Irene Ruengeler. MFC after: 3 days
* Revert r235918 for now and add comment explaining the reason for thetrasz2012-05-251-3/+9
| | | | size check.
* Use 32-bit ufs_ino_t instead of ino_t to keep boot2 small and preventgleb2012-05-258-31/+26
| | | | | | unnecessary 64-bit math on 32-bit machines. Sponsored by: Google Summer of Code 2011
* - Only use multi-threading for large filesgabor2012-05-257-23/+90
| | | | | | | | - Do not use mmap() by default; it can be enabled by --mmap - Add some minor optimizations for -u - Update manual page according to the changes Submitted by: Oleg Moskalenko <oleg.moskalenko@citrix.com>
* MFp4 bz_ipv6_fast:bz2012-05-251-18/+15
| | | | | | | | | | | | | | | | | | | | | Use M_ZERO with malloc rather than calling bzero() ourselves. Change if () panic() checks to KASSERT()s as they are only catching invariants in code flow but not dependent on network input/output. Move initial assigments indirecting pointers after the lock has been aquired. Passing layer boundries, reset M_PROTOFLAGS. Remove a NULL assignment before free. Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems Reviewed by: gnn (as part of the whole) MFC After: 3 days
* MFp4 bz_ipv6_fast:bz2012-05-251-1/+3
| | | | | | | | | | | | | | | Properly protect the inp read access when handling the control code. In the past this was expensive but given the rlock it's not so much anymore. Spotted while: optimizing udp6 Discussed with: rwatson (a few months ago) Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems Reviewed by: gnn (as part of the whole) MFC After: 3 days
* Use C99-style initialization for struct dirent in preparation forgleb2012-05-252-8/+29
| | | | | | changing the structure. Sponsored by: Google Summer of Code 2011
* Add tunable/sysctl kern.cam.pmp.hide_special, controlling whether specialmav2012-05-251-17/+35
| | | | | | | | PMP ports such as PMP configuration or SEMB should be exposed or hidden. These ports were always hidden before as useless and sometimes promatic. But with updated ses driver supporting SEMB it is no longer so straight. Keep ports hidden by default to avoid probe request ttimeouts if SEP is not connected to PMP's SEMB via I2C, that is very often situation.
* In case forwarding is turned on for a given address family, refuse tobz2012-05-251-0/+11
| | | | | | | | | | | | | queue the packet for LRO and tell the driver to directly pass it on. This avoids re-assembly and later re-fragmentation problems when forwarding. It's not the best solution but the simplest and most effective for the moment. Should have been done: ages ago Discussed with and by: many MFC after: 3 days
* Remove sleep() from invalidate call in ses driver, waiting for daemonmav2012-05-251-10/+8
| | | | | | | | | process exit. Instead use CAM's standard reference counting to prevent periph going away until process won't complete. I think that sleep in single CAM SWI thread is not a good idea and may lead to deadlocks if daemon process waits for some command completion. Combined with recent patch avoiding use of CAM SWI for ATA it just causes panics because of sleeps prohibited in interrupt thread context.
* Revert my local not yet properly tested changes, that leaked inglebius2012-05-251-16/+23
| | | | with r235923.
* device_add_child: protect against child device with no driver but fixed unit ↵avg2012-05-251-0/+2
| | | | | | | | | | | number This combination doesn't make sense, unit numbers should be hardwired only in context of a known driver. The wildcard devices should have wildcard unit numbers. Reviewed by: jhb MFC after: 2 weeks
* Fix resolving symbol names on ARM.gber2012-05-251-0/+6
| | | | | | | | | | | On ARM, binutils are adding '$a' symbols in the symbol table for every function (in addition to normal symbol). When gprof(1) looks up symbol name, it often reads '$a' instead of proper function name, because it find it first. With this fix, when read symbol name begins with '$' and previous symbol has the same address, it will use previous symbol name (which is proper function name). Obtained from: Semihalf
* Correct an error in pmap_pv_reclaim(). In a rare case, when it should havealc2012-05-251-9/+9
| | | | | returned NULL, it might instead return a pointer to a page that it had just unmapped.
* oops - ath_hal_disablepcie is actually destined for another purpose,adrian2012-05-2511-25/+40
| | | | | | | not to disable the PCIe PHY in prepration for reset. Extend the enablepci method to have a "poweroff" flag, which if equal to true means the hardware is about to go to sleep.
* Fixes to man8 groff mandoc style, usage mistakes, or typos.wblock2012-05-251-1/+1
| | | | | | | PR: 168016 Submitted by: Nobuyuki Koganemaru Approved by: gjb MFC after: 3 days
* MFp4 bz_ipv6_fast:bz2012-05-252-29/+80
| | | | | | | | | | | | Add TSO6 and LRO/IPv6 support. Fix the module Makefile to at least properly inlcude opt_inet6.h and allow builds without INET or INET6. Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems Reviewed by: gnn (as part of the whole) MFC After: 3 days
* MFp4 bz_ipv6_fast:bz2012-05-252-7/+23
| | | | | | | | | | | | Allow LRO to work on IPv6 as well. Fix the module Makefile to at least properly inlcude opt_inet6.h and allow builds without INET or INET6. Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems Reviewed by: gnn (as part of the whole) MFC After: 3 days
* MFp4 bz_ipv6_fast:bz2012-05-251-63/+80
| | | | | | | | | | | | Factor out Hop-By-Hop option processing. It's still not heavily used, it reduces the footprint of ip6_input() and makes ip6_input() more readable. Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems Reviewed by: gnn (as part of the whole) MFC After: 3 days
* MFp4 bz_ipv6_fast:bz2012-05-255-25/+45
| | | | | | | | | | | | | | | | | | Add code to handle pre-checked TCP checksums as indicated by mbuf flags to save the entire computation for validation if not needed. In the IPv6 TCP output path only compute the pseudo-header checksum, set the checksum offset in the mbuf field along the appropriate flag as done in IPv4. In tcp_respond() just initialize the IPv6 payload length to 0 as ip6_output() will properly set it. Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems Reviewed by: gnn (as part of the whole) MFC After: 3 days
* MFp4 bz_ipv6_fast:bz2012-05-251-1/+1
| | | | | | | | | | | Simple yet effective change enabling checksum "offload" on loopback for IPv6 to avoid expensive computations. Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems Reviewed by: gnn (as part of the whole) MFC After: 3 days
* MFp4 bz_ipv6_fast:bz2012-05-251-5/+16
| | | | | | | | | | | | Defer checksum calulations on UDP6 output and respect the mbuf flags set by NICs having done checksum validation for us already, thus saving the computing time in the input path as well. Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems Reviewed by: gnn (as part of the whole) MFC After: 3 days
* MFp4 bz_ipv6_fast:bz2012-05-252-12/+63
| | | | | | | | | | | | | | | | Add support for delayed checksum calculations in the IPv6 output path. We currently cannot offload to the card if we add extension headers (which incl. fragmentation). Fix two SCTP offload support copy&paste bugs: calculate checksums if fragmenting and no need to flag IPv4 header checksums in the IPv6 forwarding path. Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems Reviewed by: gnn (as part of the whole) MFC After: 3 days
* Prepare for improved (read: pcie) suspend/resume support.adrian2012-05-256-0/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Flesh out the pcie disable method for 11n chips, as they were defaulting to the AR5212 (empty) PCIe disable method. * Add accessor macros for the HAL PCIe enable/disable calls. * Call disable on ath_suspend() * Call enable on ath_resume() NOTE: * This has nothing to do with the NIC sleep/run state - the NIC still will stay in network-run state rather than supporting network-sleep state. This is preparation work for supporting correct suspend/resume WARs for the 11n PCIe NICs. TODO: * It may be feasible at this point to keep the chip powered down during initial probe/attach and only power it up upon the first configure/reset pass. This however would require correct (for values of "correct") tracking of the NIC power configuration state from the driver and that just isn't attempted at the moment. Tested: * AR9280 on my Lenovo T60, but with no suspend/resume pass (yet).
* MFp4 bz_ipv6_fast:bz2012-05-252-5/+8
| | | | | | | | | | | | | Hide the ip6aux functions. The only one referenced outside ip6_input.c is not compiled in yet (__notyet__) in route6.c (r235954). We do have accessor functions that should be used. Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems Reviewed by: gnn (as part of the whole) MFC After: 3 days X-MFC: KPI?
* MFp4 bz_ipv6_fast:bz2012-05-251-2/+1
| | | | | | | | | | | Simplify the code removing a return from an earlier else case, not differing from the default function return called now. Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems Reviewed by: gnn (as part of the whole) MFC After: 3 days
* MFp4 bz_ipv6_fast:bz2012-05-251-0/+2
| | | | | | | | | | | We currently nowhere set IP6A_SWAP making the entire check useless with the current code. Keep around but do not compile in. Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems Reviewed by: gnn (as part of the whole) MFC After: 3 days
* MFp4 bz_ipv6_fast:bz2012-05-251-2/+2
| | | | | | | | | | No need to hold the (expensive) rt lock over (expensive) logging. Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems Reviewed by: gnn (as part of the whole) MFC After: 3 days
* MFp4 bz_ipv6_fast:bz2012-05-251-2/+4
| | | | | | | | | | | | Factor out the tcp_hc_getmtu() call. As the comments say it applies to both v4 and v6, so only write it once making it easier to read the protocol family specifc code. Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems Reviewed by: gnn (as part of the whole) MFC After: 3 days
* Don't try to set a null TERM environment.jamie2012-05-251-1/+2
| | | | Submitted by: Mateusz Guzik <mjguzik gmail.com>
* Catch up with realpath(3) changes (r235266) and unbreak acpidump(8).jkim2012-05-251-3/+3
|
* Add a missing " to get closer to compiling.bz2012-05-241-1/+1
|
* Merge ACPICA 20120518.jkim2012-05-2430-97/+542
|
* MFp4 bz_ipv6_fast:bz2012-05-244-321/+541
| | | | | | | | | | | | | | | | | | | | | | Significantly update tcp_lro for mostly two things: 1) introduce basic support for IPv6 without extension headers. 2) try hard to also get the incremental checksum updates right, especially also in the IPv4 case for the IP and TCP header. Move variables around for better locality, factor things out into functions, allow checksum updates to be compiled out, ... Leave a few comments on further things to look at in the future, though that is not the full list. Update drivers with appropriate #includes as needed for IPv6 data type in LRO. Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems Reviewed by: gnn (as part of the whole) MFC After: 3 days
* Atomic operation acquire barriers also need to be isync on 64-bit systems.nwhitehorn2012-05-241-1/+1
|
* Revert isync for ILP32 to sync as per my original change that I discussedmarcel2012-05-241-4/+4
| | | | with Nathan. Leave __ATOMIC_ACQ as an isync as per Nathan.
* MFp4 bz_ipv6_fast:bz2012-05-247-0/+28
| | | | | | | | | | | | | | | | | | | | in_cksum.h required ip.h to be included for struct ip. To be able to use some general checksum functions like in_addword() in a non-IPv4 context, limit the (also exported to user space) IPv4 specific functions to the times, when the ip.h header is present and IPVERSION is defined (to 4). We should consider more general checksum (updating) functions to also allow easier incremental checksum updates in the L3/4 stack and firewalls, as well as ponder further requirements by certain NIC drivers needing slightly different pseudo values in offloading cases. Thinking in terms of a better "library". Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems Reviewed by: gnn (as part of the whole) MFC After: 3 days
OpenPOWER on IntegriCloud