aboutsummaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Rename BUS_SPACE_IO and BUS_SPACE_MEM defines to BUS_SPACE_TAG_IO andYoshihiro Takahashi2010-10-312-10/+10
| | | | | | | BUS_SPACE_TAG_MEM respectively to avoid conflict with nexus.c. Notes: svn path=/head/; revision=214584
* Add another safety belt to pmap_demote_DMAP().Alan Cox2010-10-301-1/+1
| | | | Notes: svn path=/head/; revision=214576
* Allow access to the HT I/O port space on the IBM CPC9X5 northbridge chips.Nathan Whitehorn2010-10-301-1/+22
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=214575
* Restructure the way the copyin/copyout segment is stored to prevent aNathan Whitehorn2010-10-3012-41/+60
| | | | | | | | | | | | | | | | | | | | concurrency bug. Since all SLB/SR entries were invalidated during an exception, a decrementer exception could cause the user segment to be invalidated during a copyin()/copyout() without a thread switch that would cause it to be restored from the PCB, potentially causing the operation to continue on invalid memory. This is now handled by explicit restoration of segment 12 from the PCB on 32-bit systems and a check in the Data Segment Exception handler on 64-bit. While here, cause copyin()/copyout() to check whether the requested user segment is already installed, saving some pipeline flushes, and fix the synchronization primitives around the mtsr and slbmte instructions to prevent accessing stale segments. MFC after: 2 weeks Notes: svn path=/head/; revision=214574
* Correct a bug in r213893; within a PHY driver MIIF_PHYPRIVn should be usedMarius Strobl2010-10-301-1/+1
| | | | | | | instead of MIIF_MACPRIVn. This didn't make a functional difference though. Notes: svn path=/head/; revision=214566
* Announce both IPsec and UDP Encap (NAT-T) if available forBjoern A. Zeeb2010-10-301-0/+5
| | | | | | | | | | | | | feature_present(3) checks. This will help to run-time detect and conditionally handle specific optionas of either feature in user space (i.e. in libipsec). Descriptions read by: rwatson MFC after: 2 weeks Notes: svn path=/head/; revision=214565
* Correct some format strings used by sysctls.Alan Cox2010-10-302-3/+3
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=214564
* Don't demote in pmap_demote_DMAP() if the specified length is zero.Alan Cox2010-10-301-0/+5
| | | | Notes: svn path=/head/; revision=214563
* Remove sysctl debug.ncnegfactor, it is renamed to vfs.ncnegfactor.Konstantin Belousov2010-10-301-2/+0
| | | | | | | MFC: do not Notes: svn path=/head/; revision=214556
* Don't bother to enable ASPM L1 to save more power. Even though I amPyun YongHyeon2010-10-301-1/+1
| | | | | | | | | | | | | not able to trigger the issue with sample boards, some users seems to suffer from freeze/lockup when system is booted without UTP cable plugged in. I'm not sure whether this is BIOS issue or controller bug. This change fixes AR8132 lockup issue seen on EEE PC. Reported by: kmoore Tested by: kmoore Notes: svn path=/head/; revision=214542
* - When resetting pm_active and pm_context of a pmap in pmap_pinit() weMarius Strobl2010-10-291-4/+7
| | | | | | | | | | need locking as otherwise we may race against the other parts of the MD code which expects a consistent state of these. While at it move the resetting of the pmap before entering it in the TSB. - Spell a 0 as TLB_CTX_KERNEL. Notes: svn path=/head/; revision=214528
* Partially revert r203829; as it turns out what the PowerPC OFW loader didMarius Strobl2010-10-291-4/+4
| | | | | | | | | | | was incorrect as further down the road cons_probe() calls malloc() so the former can't be called before init_heap() has succeed. Instead just exit to the firmware in case init_heap() fails like OF_init() does when hitting a problem as we're then likely running in a very broken environment where hardly anything can be trusted to work. Notes: svn path=/head/; revision=214526
* Fix uninitialized variable.Edward Tomasz Napierala2010-10-291-1/+1
| | | | | | | | Found with: Coverity Prevent(tm) CID: 8632 Notes: svn path=/head/; revision=214522
* Sync DLTs with the latest pcap version.Rui Paulo2010-10-291-0/+137
| | | | Notes: svn path=/head/; revision=214517
* Merging mptable under x86 left this option undefined for amd64 case.Attilio Rao2010-10-291-0/+1
| | | | | | | | | | Fix that. Sponsored by: Sandvine Incorporated Reported by: jkim Notes: svn path=/head/; revision=214516
* - Merge ram_attach() implementation for i386 and amd64Attilio Rao2010-10-291-42/+39
| | | | | | | | | | | - Rename RES_BUS_SPACE_* into BUS_SPACE_* for consistency - Trim out an unnecessary checking condition Sponsored by: Sandvine Incorporated Requested and reviewed by: jhb Notes: svn path=/head/; revision=214515
* Modify nfs_open() in the experimental NFS client to be compatibleRick Macklem2010-10-291-46/+40
| | | | | | | | | with the regular NFS client. Also, fix a couple of mutex lock issues. MFC after: 1 week Notes: svn path=/head/; revision=214513
* Add a call for nfsrpc_close() to ncl_reclaim() in the experimentalRick Macklem2010-10-291-0/+9
| | | | | | | | | | | NFSv4 client, since the call in ncl_inactive() might be missed because VOP_INACTIVE() is not guaranteed to be called before VOP_RECLAIM(). MFC after: 1 week Notes: svn path=/head/; revision=214511
* Add sysctl kern.sched.cpusetsize to export the size of kernel cpuset,David Xu2010-10-291-0/+11
| | | | | | | | | also add sysconf() key _SC_CPUSET_SIZE to get sysctl value. Submitted by: gcooper Notes: svn path=/head/; revision=214510
* Remove meaningless XXXXX, that is a remain of comment, removed in r186200.Gleb Smirnoff2010-10-291-2/+0
| | | | Notes: svn path=/head/; revision=214509
* Revert a small part of the r198301, that is entirely unrelated to theGleb Smirnoff2010-10-291-1/+1
| | | | | | | | | | | r198301 itself. It also broke the logic of not sending more than one ARP request per second, that consequently lead to a potential problem of flooding network with broadcast packets. MFC after: 1 week Notes: svn path=/head/; revision=214508
* Fix the printf() in init_heap so that it can run before the console is up.Nathan Whitehorn2010-10-291-1/+5
| | | | | | | Pointed out by: marius Notes: svn path=/head/; revision=214495
* Fix netboot on some Apple machines on which calling dma-free on theNathan Whitehorn2010-10-291-0/+3
| | | | | | | | network device can hang the machine. This causes the loss of 64 KB of accessible memory on netbooted machines. Notes: svn path=/head/; revision=214494
* Fix some memory management issues discovered when trying to boot the PPCNathan Whitehorn2010-10-283-28/+35
| | | | | | | | | | | OF loader on systems where address cells and size cells are both 2 (the Mambo simulator) and fix an error where cons_probe() was called before init_heap() but used malloc() to set environment variables. MFC after: 1 month Notes: svn path=/head/; revision=214493
* Merge nexus.c from amd64 and i386 to x86 subtree.Attilio Rao2010-10-285-709/+61
| | | | | | | | Sponsored by: Sandvine Incorporated Tested by: gianni Notes: svn path=/head/; revision=214457
* Set bootverbose directly in mi_startup() rather than via a SYSINIT. ThisJohn Baldwin2010-10-281-9/+3
| | | | | | | | | | ensures 'bootverbose' is in a valid state for all SYSINITs. Reported by: avg MFC after: 1 week Notes: svn path=/head/; revision=214449
* Use 'PCPU_GET(apic_id)' to determine the BSP's APIC ID on a UP machineJohn Baldwin2010-10-282-2/+2
| | | | | | | | | | | | | | when routing interrupts instead of cpu_apic_ids[0] since cpu_apic_ids[] is only populated for multiple-CPU machines. This also matches what the code does when SMP is not enabled. PR: bin/151616 Tested by: "Damian S. Kolodziejczyk" damkol | gmail Submitted by: avg MFC after: 1 week Notes: svn path=/head/; revision=214448
* Merge the mptable support from MD bits to x86 subtree.Attilio Rao2010-10-287-1225/+10
| | | | | | | | Sponsored by: Sandvine Incorporated Discussed with: jhb Notes: svn path=/head/; revision=214446
* sys/dev/xen/blkback/blkback.c:Justin T. Gibbs2010-10-281-2/+5
| | | | | | | | | | | | | In xbb_detach() only perform cleanup of our taskqueue and device statistics structures if they have been initialized. This avoids a panic when xbb_detach() is called on a partially initialized device instance, due to an early failure in attach. Sponsored by: Spectra Logic Corporation Notes: svn path=/head/; revision=214444
* In the data setup code for doing offloads theJack F Vogel2010-10-281-1/+6
| | | | | | | | | | ip and tcp pointers were not reset after some pullups. In practice this led to an NFS mount failure when using UDP reported by Kevin Lo, thanks Kevin. Fix from yongari, thank you! Notes: svn path=/head/; revision=214441
* Add support for setting per-interface PnP information.Hans Petter Selasky2010-10-273-6/+53
| | | | | | | | Submitted by: Nick Hibma Approved by: thompsa (mentor) Notes: svn path=/head/; revision=214429
* Add initial BCM5718 family support. The BCM5718 family includesPyun YongHyeon2010-10-272-69/+290
| | | | | | | | | | | | | | | | | | | | | | | | | | the dual port BCM5717 and BCM5718 devices which are intended for mainstream workstation and entry-level server designs and represents the twelfth generation of NetXtreme Ethernet controllers. This family is the successor to the BCM5714/BCM5715 family and supports IPv4/IPv6 checksum offloading, TSO, VLAN hardware tagging, jumbo frames, MSI/MSIX, IOV, RSS and TSS. This change set supports all hardware features except IOV and RSS/TSS. Unlike its predecessors, only extended RX buffer descriptors can be posted to the jumbo producer ring. Single RX buffer descriptors for jumbo frame are not supported. RSS requires a more substantial set of changes and will apply to a larger set of NetXtreme devices so RSS/TSS multi-queue support will be implemented in a future releases. Special thanks to Broadcom who kindly sent a sample board to me and to davidch who gave provided the initial support code. Submitted by: davidch (initial version) HW donated by: Broadcom Notes: svn path=/head/; revision=214428
* Add BCM5717C 10/100/1000TX PHY id.Pyun YongHyeon2010-10-272-0/+7
| | | | Notes: svn path=/head/; revision=214427
* [1] According to the x86 architectural specifications, no virtual-to-Alan Cox2010-10-273-6/+90
| | | | | | | | | | | | | | | | | physical page mapping should span two or more MTRRs of different types. Add a pmap function, pmap_demote_DMAP(), by which the MTRR module can ensure that the direct map region doesn't have such a mapping. [2] Fix a couple of nearby style errors in amd64_mrset(). [3] Re-enable the use of 1GB page mappings for implementing the direct map. (See also r197580 and r213897.) Tested by: kib@ on a Westmere-family processor [3] MFC after: 3 weeks Notes: svn path=/head/; revision=214425
* Add missing "readahead" to the nfs_opts list.Jaakko Heinonen2010-10-271-4/+4
| | | | | | | | | PR: 151321 Tested by: Simon Walton MFC after: 2 weeks Notes: svn path=/head/; revision=214418
* - Revert r214409.David Xu2010-10-271-4/+0
| | | | | | | - Use long word to figure out sizeof kernel cpuset, hope it works. Notes: svn path=/head/; revision=214412
* If input parameter cpusetsize is zero, give userland size of cpuset maskDavid Xu2010-10-271-0/+4
| | | | | | | kernel is using. Notes: svn path=/head/; revision=214409
* Add a flag to the experimental NFSv4 client to indicate whenRick Macklem2010-10-262-22/+24
| | | | | | | | | | | | | | | | delegations are being returned for reasons other than a Recall. Also, re-organize nfscl_recalldeleg() slightly, so that it leaves clearing NMODIFIED to the ncl_flush() call and invalidates the attribute cache after flushing. It is hoped that these changes might fix the problem others have seen when using the NFSv4 client with delegations enabled, since I can't reliably reproduce the problem. These changes only affect the client when doing NFSv4 mounts with delegations enabled. MFC after: 10 days Notes: svn path=/head/; revision=214406
* Add two new loader tunables 'hw.acpi.install_interface' andJung-uk Kim2010-10-261-0/+106
| | | | | | | | | | | | | | | | | | | | | | 'hw.acpi.remove_interface'. hw.acpi.install_interface lets you install new interfaces. Conversely, hw.acpi.remove_interface lets you remove OS interfaces from the pre-defined list in ACPICA. For example, hw.acpi.install_interface="FreeBSD" lets _OSI("FreeBSD") method to return 0xffffffff (or success) and hw.acpi.remove_interface="Windows 2009" lets _OSI("Windows 2009") method to return zero (or failure). Both are comma-separated lists and leading white spaces are ignored. For example, the following examples are valid: hw.acpi.install_interface="Linux, FreeBSD" hw.acpi.remove_interface="Windows 2006, Windows 2006.1" Notes: svn path=/head/; revision=214390
* Style fix.Attilio Rao2010-10-261-2/+2
| | | | | | | Reported by: bde, dim Notes: svn path=/head/; revision=214386
* Remove usage of PRI* macro for style compliancy.Attilio Rao2010-10-261-4/+3
| | | | | | | | Requested by: bde, jhb Sponsored by: Sandvine Incorporated Notes: svn path=/head/; revision=214380
* Bugfix merge from OpenSolaris:Martin Matuska2010-10-263-6/+28
| | | | | | | | | | | | | | OpenSolaris onnv-revision: 10209:91f47f0e7728 6830541 zfs_get_data_trips on a verify 6696242 multiple zfs_fillpage() zfs: accessing past end of object panics 6785914 zfs fails to drop dn_struct_rwlock in recovery code path Approved by: delphij (mentor) Obtained from: OpenSolaris (Bug ID 6830541, 6696242, 6785914) MFC after: 2 weeks Notes: svn path=/head/; revision=214378
* Merge dump_machdep.c i386/amd64 under the x86 subtree.Attilio Rao2010-10-265-370/+18
| | | | | | | | Sponsored by: Sandvine Incorporated Tested by: gianni Notes: svn path=/head/; revision=214373
* Bug fix delta to the em driver:Jack F Vogel2010-10-262-118/+259
| | | | | | | | | | | | | | | | - Chasin down bogus watchdogs has led to an improved design to this handling, the hang decision takes place in the tx cleanup, with only a simple report check in local_timer. Our tests have shown no false watchdogs with this code. - VLAN fixes from jhb, the shadow vfta should be per interface, but as global it was not. Thanks John. - Bug fixes in the support for new PCH2 hardware. - Thanks for all the help and feedback on the driver, changes to lem with be coming shortly as well. Notes: svn path=/head/; revision=214363
* Bring vfs.ufs.dirhash_maxmem into the age of the fruitbat and make itIvan Voras2010-10-251-1/+5
| | | | | | | | | | | autotuned. It is only an upper bound (the memory is not always allocated) and the system contains a vm_lowmem handler so nothing will crash and burn if it's tuned too high. Reviewed by: mckusick Notes: svn path=/head/; revision=214359
* - Given that in one-shot mode tick_et_start() also is called frequentlyMarius Strobl2010-10-251-113/+103
| | | | | | | | | | | | | | | introduce function pointers once set up to the respective implementation for reading the (S)TICK and writing the (S)STICK_COMPARE registers as a compromise between duplicating code and selecting between different implementations during execution over and over again, similar to what is done elsewhere in the MD in order to support different CPU models that won't ever change at runtime. - In the remaining tick interrupt handler further push down disabling of interrupts to the periodic case as it isn't necessary here in one-shot mode at all. Notes: svn path=/head/; revision=214358
* Reimplemented "gpart destroy -F". Now it does all work in kernel.Andrey V. Elsukov2010-10-254-22/+168
| | | | | | | | | | | | | | | | | | | | This was needed for recover implementation. Implement the recover command for GPT. Now GPT will marked as corrupt when any of three types of corruption will be detected: 1. Damaged primary GPT header or table 2. Damaged secondary GPT header or table 3. Secondary header is not located in the last LBA Marked GPT becomes read-only. Any changes with corrupt table are prohibited. Only "destroy" and "recover" commands are allowed. Discussed with: geom@ (mostly silence) Tested by: Ilya A. Arhipov Approved by: mav (mentor) MFC after: 2 weeks Notes: svn path=/head/; revision=214352
* Fix typo in comment.Thomas Quinot2010-10-251-1/+1
| | | | Notes: svn path=/head/; revision=214351
* The EHCI_CAPLENGTH and EHCI_HCIVERSION registers are actually sub-registersNathan Whitehorn2010-10-253-6/+10
| | | | | | | | | | within the first 4 bytes of the EHCI memory space. For controllers that use big-endian MMIO, reading them with 1- and 2-byte reads would then return the wrong values. Instead, read the combined register with a 4-byte read and mask out the interesting quantities. Notes: svn path=/head/; revision=214349
* Don't create spurious /dev entries.Nathan Whitehorn2010-10-251-1/+0
| | | | | | | Submitted by: andreast Notes: svn path=/head/; revision=214348