summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Rename 'status' command to 'list' and introduce new 'status' which producesmarck2013-03-142-5/+71
| | | | | | | | | | more terse output more observable for both scripts and humans. Also, it shifts hastctl closer to GEOM utilities with their list/status command pairs. Approved by: pjd MFC after: 4 weeks
* FDT_DTS_FILE is expanded in a Makefile so use :R to remove the suffixbrooks2013-03-141-2/+2
| | | | rather than using echo|cut to remove everything after the first '.'.
* Removed redundant includes.pjd2013-03-141-10/+0
|
* Add FreeBSD 9.1.joel2013-03-141-6/+9
|
* Some style fixes.kib2013-03-144-13/+11
| | | | Sponsored by: The FreeBSD Foundation
* Add currently unused flag argument to the cluster_read(),kib2013-03-1410-35/+32
| | | | | | | | cluster_write() and cluster_wbuild() functions. The flags to be allowed are a subset of the GB_* flags for getblk(). Sponsored by: The FreeBSD Foundation Tested by: pho
* When pidptr was passed as NULL to pidfile_open(3), we were returningpjd2013-03-141-13/+18
| | | | | | | | | EAGAIN/EWOULDBLOCK when another daemon was running and had the pidfile open. We should return EEXIST in that case, fix it. Reported by: Dirk Engling <erdgeist@erdgeist.org> Reviewed by: jhb, Dirk Engling <erdgeist@erdgeist.org> MFC after: 1 week
* Add pmap function pmap_copy_pages(), which copies the content of thekib2013-03-1415-1/+466
| | | | | | | | | | | | | | | | | | | | | | | | pages around, taking array of vm_page_t both for source and destination. Starting offsets and total transfer size are specified. The function implements optimal algorithm for copying using the platform-specific optimizations. For instance, on the architectures were the direct map is available, no transient mappings are created, for i386 the per-cpu ephemeral page frame is used. The code was typically borrowed from the pmap_copy_page() for the same architecture. Only i386/amd64, powerpc aim and arm/arm-v6 implementations were tested at the time of commit. High-level code, not committed yet to the tree, ensures that the use of the function is only allowed after explicit enablement. For sparc64, the existing code has known issues and a stab is added instead, to allow the kernel linking. Sponsored by: The FreeBSD Foundation Tested by: pho (i386, amd64), scottl (amd64), ian (arm and arm-v6) MFC after: 2 weeks
* Correct type for DIOCGSTRIPESIZE. Without this theredelphij2013-03-141-1/+1
| | | | | | | | | would be a stack overflow which will crash the program later. PR: bin/176953 Submitted by: r4721 tormail org MFC after: 3 days
* Sort sections.joel2013-03-141-23/+23
|
* Remove excessive and inconsistent initializers for the various kernelkib2013-03-141-4/+4
| | | | | | maps and submaps. MFC after: 2 weeks
* Rewrite the vfs_bio_clrbuf(9) to not access the b_data for B_VMIOkib2013-03-141-13/+15
| | | | | | | | | buffers directly, use pmap_zero_page_area(9) for each zeroing page region instead. Sponsored by: The FreeBSD Foundation Tested by: pho MFC after: 2 weeks
* Fix minor spelling error in a comment.joel2013-03-141-1/+1
|
* Minor mdoc fixes.joel2013-03-141-1/+4
|
* Add GEOM_* kernel options to the SYNOPSIS.joel2013-03-141-1/+36
|
* MFV r248266:mm2013-03-143-4/+9
| | | | | | | | | | Import minor ZFS changes from vendor Illumos ZFS issues: 3604 zdb should print bpobjs more verbosely (fix zdb hang) 3606 zpool status -x shouldn't warn about old on-disk format MFC after: 3 days
* Update zfs.8 manpage date (missing in r247585)mm2013-03-141-1/+1
| | | | MFC: together with r247585
* Implement "holding buffers" per TX queue rather than globally.adrian2013-03-143-49/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When working on TDMA, Sam Leffler found that the MAC DMA hardware would re-read the last TX descriptor when getting ready to transmit the next one. Thus the whole ATH_BUF_BUSY came into existance - the descriptor must be left alone (very specifically the link pointer must be maintained) until the hardware has moved onto the next frame. He saw this in TDMA because the MAC would be frequently stopping during active transmit (ie, when it wasn't its turn to transmit.) Fast-forward to today. It turns out that this is a problem not with a single MAC DMA instance, but with each QCU (from 0->9). They each maintain separate descriptor pointers and will re-read the last descriptor when starting to transmit the next. So when your AP is busy transmitting from multiple TX queues, you'll (more) frequently see one QCU stopped, waiting for a higher-priority QCU to finsh transmitting, before it'll go ahead and continue. If you mess up the descriptor (ie by freeing it) then you're short of luck. Thanks to rpaulo for sticking with me whilst I diagnosed this issue that he was quite reliably triggering in his environment. This is a reimplementation; it doesn't have anything in common with the ath9k or the Qualcomm Atheros reference driver. Now - it in theory doesn't apply on the EDMA chips, as long as you push one complete frame into the FIFO at a time. But the MAC can DMA from a list of frames pushed into the hardware queue (ie, you concat 'n' frames together with link pointers, and then push the head pointer into the TXQ FIFO.) Since that's likely how I'm going to implement CABQ handling in hostap mode, it's likely that I will end up teaching the EDMA TX completion code about busy buffers, just to be "sure" this doesn't creep up. Tested - iperf ap->sta and sta->ap (with both sides running this code): * AR5416 STA * AR9160/AR9220 hostap To validate that it doesn't break the EDMA (FIFO) chips: * AR9380, AR9485, AR9462 STA Using iperf with the -S <tos byte decimal value> to set the TCP client side DSCP bits, mapping to different TIDs and thus different TX queues. TODO: * Make this work on the EDMA chips, if we end up pushing lists of frames to the hardware (eg how we eventually will handle cabq in hostap/ibss mode.)
* Disable warning/errors for two files for now - they don't compile cleanadrian2013-03-141-0/+4
| | | | | | with clang. I'll work on this soon.
* No need to call an external program.obrien2013-03-131-2/+1
|
* vinum isn't a new product.joel2013-03-131-6/+1
|
* - Fix two possible overflows when testing if ELF program headers are ontijl2013-03-131-8/+6
| | | | | | | | | | | | | | | | | | | the first page: 1. Cast uint16_t operands in a multiplication to unsigned int because otherwise the implicit promotion to int results in a signed multiplication that can overflow and the behaviour on integer overflow is undefined. 2. Replace (offset + size > PAGE_SIZE) with (size > PAGE_SIZE - offset) because the sum may overflow. - Use the same tests to see if the path to the interpreter is on the first page. There's no overflow here because size is already limited by MAXPATHLEN, but the compiler optimises the new tests better. Also fix an off-by-one error. - Simplify tests to see if an ELF note program header is on the first page. This also fixes an off-by-one error. Reviewed by: kib MFC after: 1 week
* Revert 195703 and 195821 as this special stop handling in NFS is nowjhb2013-03-138-28/+17
| | | | | implemented via VFCF_SBDRY rather than passing PBDRY to individual sleep calls.
* Add quirk for Lenovo T530 headphone redirection.delphij2013-03-132-1/+3
| | | | MFC after: 2 weeks
* Add missed `_load' to the `if_foo_load="YES"' line.pluknet2013-03-132-2/+2
| | | | | PR: docs/176915 MFC after: 1 week
* libc: Avoid SIGPIPE when nscd closes the connection unexpectedly.jilles2013-03-131-4/+5
| | | | | | | | | It is almost always a bug if nscd closes the connection unexpectedly but programs should not be killed with SIGPIPE for it. Reviewed by: bushman Tested by: Jan Beich MFC after: 1 week
* Link getcontextx(3) to getcontext(3).pluknet2013-03-131-0/+1
| | | | | Reviewed by: kib MFC after: 1 week
* Add the getcontextx prototype to SYNOPSIS.pluknet2013-03-131-1/+3
| | | | | Reviewed by: kib MFC after: 1 week
* Fix typo.hselasky2013-03-131-2/+2
|
* - Make quirk for reading device descriptor from broken USB devices.hselasky2013-03-132-22/+40
| | | | | | | | | | | Else they won't enumerate at all: hw.usb.full_ddesc=1 - Reduce the USB descriptor read timeout from 1000ms to 500ms. Typical value for LOW speed devices is 50-100ms. - Enumerate USB device a maximum of 3 times when a port connection change event is detected, before giving up. MFC after: 1 month
* - Make the FreeBSD's USB library compile under Linux.hselasky2013-03-1315-30/+152
| | | | | | | - Fix a compile warning where the return value of a call to a write() function was ignored. - Remove redundant include files from userland USB header files. - Add some now needed include files to various C-files.
* Unlike OpenBSD's, our setusercontext() will intentionally ignore the user'sdes2013-03-131-0/+6
| | | | | | | | | own umask setting (from ~/.login.conf) unless running with the user's UID. Therefore, we need to call it again with LOGIN_SETUMASK after changing UID. PR: bin/176740 Submitted by: John Marshall <john.marshall@riverwillow.com.au> MFC after: 1 week
* Fix incorrect assertion that caused panic when periodic-only timers used.mav2013-03-131-1/+1
|
* Disable TX IP header checksum offloading on RL_HWREV_8168CP. Theyongari2013-03-131-2/+4
| | | | | | | controller generates wrong checksummed frame if the IP packet has IP options. Submitted by: Alexander Bluhm via brad@openbsd
* r241438 broke IPMI access on Sun Fire X2200 M2(BCM5715).yongari2013-03-131-3/+17
| | | | | | | | | | | | | | | | Fix the IPMI regression by sending BGE_FW_DRV_STATE_UNLOAD to ASF/IPMI firmware in driver attach phase. Sending heartheat to ASF/IPMI is enabled only after upping interface so setting driver state to BGE_FW_DRV_STATE_START in attach phase broke IPMI access. While I'm here, add NVRAM arbitration lock before performing controller reset. ASF/IPMI firmware may be able to access the NVRAM while controller reset is in progress. Without the arbitration lock before resetting the controller, ASF/IPMI may not initialize properly. Special thanks to Miroslav Lachman who provided full remote debugging environments.
* Remove pav from portmgr whom had also stepped down a few months ago.eadler2013-03-121-1/+1
| | | | | | Thank you for your years of service. Reported by: rene
* Welcome Bryan to the team.eadler2013-03-121-1/+1
|
* Revert r246917, as it is causing incorrect behaviour as reported onmarkj2013-03-121-1/+1
| | | | | | | freebsd-current. PR: bin/175213 Approved by: emaste (co-mentor)
* Bump __FreeBSD_version after r248084, breaking VM KPI to introduceattilio2013-03-121-1/+1
| | | | | | | read/write lockers. Sponsored by: EMC / Isilon storage division Requested by: flo
* Remove netncp cscope entry missed in r248097bryanv2013-03-121-1/+1
| | | | Reviewed by: attilio
* Functions m_getm2() and m_get2() have different order of arguments,glebius2013-03-129-43/+44
| | | | | | | and that can drive someone crazy. While m_get2() is young and not documented yet, change its order of arguments to match m_getm2(). Sorry for churn, but better now than later.
* Update Ruslan's last name per request.eadler2013-03-121-1/+1
| | | | Submitted by: rm
* Remove fortunes-o from the base system. Debating what does or does notjhb2013-03-124-17160/+6
| | | | | | | | | | | belong in this file is not a useful exercise or conducive to producing a high quality advanced operating system. While here, simplify the make rules to autocompute BLDS and FILES from a single DB variable. Approved by: core MFC after: 1 week
* - Use m_get2() instead of nfsm_reqhead().glebius2013-03-124-88/+45
| | | | | | - Use m_get(), m_getcl() instead of historic macros. Sponsored by: Nginx, Inc.
* Simplify vm_page_is_valid().attilio2013-03-121-4/+1
| | | | | Sponsored by: EMC / Isilon storage division Reviewed by: alc
* Use m_get2() to get mbuf of appropriate size.glebius2013-03-121-3/+1
| | | | Sponsored by: Nginx, Inc.
* Use m_get(), m_gethdr() and m_getcl() instead of historic macros.glebius2013-03-127-15/+8
| | | | Sponsored by: Nginx, Inc.
* In kern_sendfile() use m_extadd() instead of MEXTADD() macro, supplyingglebius2013-03-121-2/+8
| | | | | | | appropriate wait argument and checking return value. Before this change m_extadd() could fail, and kern_sendfile() ignored that. Sponsored by: Nginx, Inc.
* The m_extadd() can fail due to memory allocation failure, thus:glebius2013-03-122-17/+23
| | | | | | | | | - Make it return int, not void. - Add wait parameter. - Update MEXTADD() macro appropriately, defaults to M_NOWAIT, as before this change. Sponsored by: Nginx, Inc.
* Use m_get2() to get an mbuf of appropriate size.glebius2013-03-121-6/+3
| | | | | Reviewed by: marius Sponsored by: Nginx, Inc.
OpenPOWER on IntegriCloud