summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Avoid accidental conflicts with C++ operator keywords.jkim2011-09-271-0/+4
| | | | MFC after: 1 week
* Followup to r225599: the fseek() was a no-op since the file was openeddes2011-09-271-8/+8
| | | | | | | | | in append mode. Open it in read-write mode instead. Also move the fseek up one level to cover the (unlikely but not impossible) case where the server accepts ranges but does not send a Content-Size header. PR: bin/117277 MFC after: 3 weeks
* Improve battery capacity reportingemaste2011-09-271-10/+15
| | | | | | | | | | | | | | | | | | When a status pointer is passed in mfi_dcmd_command does not return an errno (if the ioctl is successful), so move the test for NO_HW_PRESENT outside of the error case. This should fix incorrect reporting for systems with a dead or no battery. Additionally, handle error codes other than NO_HW_PRESENT by omitting the battery capacity display. LSI's supercap-based parts (CV series) report their data using the same interface as battery-based parts, except that they do not include the capacity stats (state of charge, cumulative charge cycles, etc.) Reviewd by: jhb, bz Tested by: pluknet@, Garrett Cooper PR: bin/160581 MFC after: 1 week
* Revert r225372:attilio2011-09-271-14/+0
| | | | | | | | | | | | | | wdog_kern_pat() acquires eventhandler mutex, thus it cannot work in kernel context (from where kdb_trap() runs). The right way to fix this is both offering the cpu-stop-on-panic-and-skip-locking logic and also a context for KDB to officially run. We can re-enable this (or a similar) improvement when these 2 patches hit the tree. Sponsored by: Sandvine Incorporated Discussed with: emaste, rstone MFC after: immediately
* Unbreak no-ip and no-inet6 module builds with ipfw. For now continue tobz2011-09-272-4/+8
| | | | | | | | | | | build the ip_fw_pfil.c hooks and ipfw even in case of no-ip under the assumption that the private L2 hook (which hopefully eventually will be a pfil hook as well) can still be useful. Allow building the module without inet as well. Glanced at by: jhb MFC after: 3 days
* Do not deliver SIGTRAP on exec as the normal signal, use ptracestop() onkib2011-09-272-11/+9
| | | | | | | | | | syscall exit path. Otherwise, if SIGTRAP is ignored, that tdsendsignal() do not want to deliver the signal, and debugger never get a notification of exec. Found and tested by: Anton Yuzhaninov <citrin citrin ru> Discussed with: jhb MFC after: 2 weeks
* Install ciss(4) ioctl header (together with other .h files from sys/dev/ciss).kib2011-09-272-1/+3
| | | | | | | PR: kern/109813 Discussued with: Alex Samorukov <samm os2 kiev ua> (smartmontools maintainer) MFC after: 1 week
* Add one more ID for the Marvell 88SE9128 6Gbps SATA controller.mav2011-09-271-0/+1
| | | | MFC after: 3 days
* Fix interrupt counters dumping on SW_WATCHDOG fire.mav2011-09-271-1/+1
|
* Use PJDLOG_ASSERT() and PJDLOG_ABORT() everywhere instead of assert().pjd2011-09-279-161/+192
| | | | MFC after: 3 days
* No need to wrap pjdlog functions around with KEEP_ERRNO() macro.pjd2011-09-271-2/+1
| | | | MFC after: 3 days
* Prefer PJDLOG_ASSERT()/PJDLOG_ABORT() over assert().pjd2011-09-271-6/+5
| | | | MFC after: 3 days
* - Convert some impossible conditions into assertions.pjd2011-09-271-11/+10
| | | | | | - Add missing 'if' in comment. MFC after: 3 days
* Correct two mistakes when converting asserts to PJDLOG_ASSERT()/PJDLOG_ABORT().pjd2011-09-271-4/+2
| | | | MFC after: 3 days
* Prefer PJDLOG_ASSERT() and PJDLOG_ABORT() over assert() and abort().pjd2011-09-273-33/+31
| | | | | | | pjdlog versions will log problem to syslog when application is running in background. MFC after: 3 days
* No need to use KEEP_ERRNO() macro around pjdlog functions, as they don'tpjd2011-09-272-23/+20
| | | | | | modify errno. MFC after: 3 days
* - Add missing interdependencies to kerberos libraries. Some of thestas2011-09-2714-9/+50
| | | | | | | | | kerberos libraries were not linked properly (missing dependencies), which causes 3rd party applications linking to fail when --as-needed ld flag is used. I also added the --no-undefined ld(1) flag to make sure that there're no missing dependencies. MFC after: 3 days
* Add quirks for some USB mass storage devices which doesn't respondhselasky2011-09-272-0/+9
| | | | | | | | | after trying to query the synchronize cache support. Submitted by: Keith White PR: usb/160911 Approved by: re (kensmith) MFC after: 1 week
* Fix typo in OSIOCGIFADDR.pluknet2011-09-271-1/+1
| | | | MFC after: 3 days
* - Move misplaced reference [1]gabor2011-09-271-7/+6
| | | | | | | | | - Sort references [1] - s/Since/Because/ [2] Submitted by: arundel [1], Chad Perrin <perrin@apotheon.com> [2] MFC after: 3 days
* Ensure that pjdlog functions don't modify errno.pjd2011-09-271-0/+25
| | | | MFC after: 3 days
* Add myself to committers-src.dot.rmh2011-09-271-0/+3
| | | | Approved by: kib (mentor)
* Forgot to add "RELENG_8" to list of CVS tags.kensmith2011-09-261-1/+1
| | | | | Submitted by: Mamontov Roman <mr.xanto at gmail.com> Approved by: re (implicit)
* Shift head from 9.0-CURRENT to 10.0-CURRENT in preparation for releasingkensmith2011-09-267-16/+23
| | | | | | it from the 9.0-RELEASE release cycle code freeze. Approved by: re (implicit)
* Update netfront so that it queries and honors publishedgibbs2011-09-211-16/+52
| | | | | | | | | | | | | | | | | | | | back-end features. sys/dev/xen/netfront/netfront.c: o Add xn_query_features() which reads the XenStore and records the TSO, LRO, and chained ring-request support of the backend. o Rename xn_configure_lro() to xn_configure_features() and use this routine to manage the setup of TSO, LRO, and checksum offload. o In create_netdev(), initialize if_capabilities and if_hwassist to the capabilities found on all backends. Delegate configuration of if_capenable and the TSO flag if if_hwassist to xn_configure_features(). Reported by: Hugo Silva (fix inspired by patch provided) Approved by: re MFC after: 1 week
* Modify the netfront driver so it can successfully attach togibbs2011-09-211-11/+29
| | | | | | | | | | | | | | | | | PV devices with the ioemu attribute set. sys/dev/xen/netfront/netfront.c: o If a mac address for the interface cannot be found in the front-side XenStore tree, look for an entry in the back-side tree. With ioemu devices, the emulator does not populate the front side tree and neither does Xend. o Return an error rather than panic when an attach attempt fails. Reported by: Janne Snabb (fix inspired by patch provided) PR: kern/154302 Approved by: re
* Correct suspend/resume support in the Netfront driver.gibbs2011-09-211-26/+54
| | | | | | | | | | | | | | | | | | | | | Sponsored by: BQ Internet sys/dev/xen/netfront/netfront.c: o Implement netfront_suspend(), a specialized suspend handler for the netfront driver. This routine simply disables the carrier so the driver is idle during system suspend processing. o Fix a leak when re-initializing LRO during a link reset. o In netif_release_tx_bufs(), when cleaning up the grant references for our TX ring, use gnttab_end_foreign_access_ref instead of attempting to grant the page again. o In netif_release_tx_bufs(), we do not track mbufs associated with mbuf chains, but instead just free each mbuf directly. Use m_free(), not m_freem(), to avoid double frees of mbufs. o Refactor some code to enhance clarity. Approved by: re MFC after: 1 week
* [ Forced commit. Actual changes accidentally included in r225704 ]gibbs2011-09-210-0/+0
| | | | | | | | | | | sys/dev/xen/control/control.c: Fix locking violations in Xen HVM suspend processing and have it perform similar actions to those performed during an ACPI triggered suspend. Sponsored by: BQ Internet Approved by: re MFC after: 1 week
* Add suspend/resume support to the Xen blkfront driver.gibbs2011-09-212-46/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: BQ Internet sys/dev/xen/blkfront/block.h: sys/dev/xen/blkfront/blkfront.c: Remove now unused blkif_vdev_t from the blkfront soft. sys/dev/xen/blkfront/blkfront.c: o In blkfront_suspend(), indicate the desire to suspend by changing the softc connected state to SUSPENDED, and then wait for any I/O pending on the remote peer to drain. Cancel suspend processing if I/O does not drain within 30 seconds. o Enable and update blkfront_resume(). Since I/O is drained prior to the suspension of the VM, the complicated recovery process performed by other Xen blkfront implementations is avoided. We simply tear down the connection to our old peer, and then re-connect. o In blkif_initialize(), fix a resource leak and botched return if we cannot allocate shadow memory for our requests. o In blkfront_backend_changed(), correct our response to the XenbusStateInitialised state. This state indicates that our backend peer has published sufficient data for blkfront to publish ring information and other XenStore data, not that a connection can occur. Blkfront now will only perform connection processing in response to the XenbusStateConnected state. This corrects an issue where blkfront connected before the backend was ready during resume processing. Approved by: re MFC after: 1 week
* Properly handle suspend/resume events in the Xen devicegibbs2011-09-205-18/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | framework. Sponsored by: BQ Internet sys/xen/xenbus/xenbusb.c: o In xenbusb_resume(), publish the state transition of the resuming device into XenbusStateIntiailising so that the remote peer can see it. Recording the state locally is not sufficient to trigger a re-connect sequence. o In xenbusb_resume(), defer new-bus resume processing until after the remote peer's XenStore address has been updated. The drivers may need to refer to this information during resume processing. sys/xen/xenbus/xenbusb_back.c: sys/xen/xenbus/xenbusb_front.c: Register xenbusb_resume() rather than bus_generic_resume() as the handler for device_resume events. sys/xen/xenstore/xenstore.c: o Fix grammer in a comment. o In xs_suspend(), pass suspend events on to the child devices (e.g. xenbusb_front/back, that are attached to the XenStore. Approved by: re MFC after: 1 week
* Use nowait sync request for a vnode when doing softdep cleanup. We possiblykib2011-09-201-1/+1
| | | | | | | own the unrelated vnode lock, doing waiting sync causes deadlocks. Reported and tested by: pho Approved by: re (bz)
* Restore the writing of the .bss sections of the dsos (not the mainkib2011-09-201-2/+3
| | | | | | | | | | | | | | executable) after r190885. The whole region for the dso is mmaped with MAP_NOCORE flag, doing only mprotect(2) over .bss prevented it from writing .bss to core files. Revert the optimization of using mprotect(2) to establish .bss, overlap the section with mmap(2). Reported by: attilio Reviewed by: attilio, emaste Approved by: re (bz) MFC after: 2 weeks
* Make KBI changes required for future MFCing of inpcb rtentry / llentry caching.kmacy2011-09-204-2/+9
| | | | | Reviewed by: rwatson, bz Approved by: re (kib)
* Avoid starting the USB transfer if an error is already pending.hselasky2011-09-201-4/+6
| | | | | | | | | This change fixes a race in device side mode during clear-stall from host, which can cause data to be sent too early on the given endpoint. Approved by: re (kib) MFC after: 1 week
* Manually set the channel when using monitor mode - the firmwareadrian2011-09-201-0/+12
| | | | | | | | | doesn't select it automatically. Submitted by: nox Reviewed by: bschmidt Approved by: re PR: kern/160815
* Use REQUIRE: line to reorder rc.d/bridge instead of BEFORE: line.hrs2011-09-202-2/+1
| | | | | Pointed out by: dougb Approved by: re (bz)
* Remove RA timer on an interface with !IFF_UP actively after starting to sendhrs2011-09-201-0/+15
| | | | | | | | | clean-up RA messages for shutting down. The RA timers could prevent the rtadvd daemon from shutting down because ra_output() just ignored !IFF_UP interfaces and TRANSITIVE->UNCONFIGURED state transition never happened due to it. Spotted by: kib Approved by: re (bz)
* Copy ip6po_minmtu and ip6po_prefer_tempaddr in ip6_copypktopts(). This fixeshrs2011-09-201-0/+2
| | | | | | | | inconsistency when options are specified by both setsockopt() and ancillary data types. PR: kern/158307 Approved by: re (bz)
* - Fix a trivial bug in iconv. When there is no space to perform thegabor2011-09-191-2/+1
| | | | | | | | | conversion, conversion must fail and errno must be set to E2BIG. PR: standards/160673 Submitted by: Henning Petersen <henning.petersen@t-online.de> Reviewed by: pluknet Approved by: re (kib), delphij (mentor)
* Do not overallocate on the stack. Threaded code might use custom stackkib2011-09-191-43/+69
| | | | | | | | | | size. Reported by: many Tested by: Jeremie Le Hen <jeremie@le-hen.org> (previous version) Reviewed by: jilles Approved by: re (bz) MFC after: 2 weeks
* Cleanup the iterator code, remove code that is never executed.tuexen2011-09-193-38/+8
| | | | | Approved by: re MFC after: 1 month.
* It is safe to initialize locks even on early boot (and it is the sameattilio2011-09-192-8/+1
| | | | | | | | | | | thing all the other architectures already do) thus just initialize kernel_pmap in pmap_bootstrap(). Reported by: alc Reviewed by: alc, marius Tested by: flo, marius Approved by: re (kib) MFC after: 1 week
* - Document inet6 no_radr flag.hrs2011-09-191-1/+26
| | | | | | | - Add descriptions of sysctl(8) variables which can control the default configuration of the inet6 flags. Approved by: re (kib)
* - Document $ipv6_cpe_wanif.hrs2011-09-191-26/+116
| | | | | | | | | - Emphasize $ipv6_enable and $ipv6_prefer are deprecated. - Add more detail descriptions about $ipv6_activate_all_interfaces. - Add some more examples of $ifconfig_IF_ipv6. - rtsold(8) and rtadvd(8) can be used even when ipv6_gateway_enable=NO now. Approved by: re (kib)
* Use resolvconf(8) to create /etc/resolv.conf, not directly overwrite it.hrs2011-09-191-7/+7
| | | | Approved by: re (kib)
* Fix the script order to run rc.d/bridge after the initial networkhrs2011-09-191-1/+2
| | | | | | interface configuration and before running network daemons. Approved by: re (kib)
* #PROCHOT assertion is sticky after reading the MSR (accordingly withattilio2011-09-191-1/+4
| | | | | | | | | | | Intel manuals) it must be cleared by writing a 0. Fix that. Sponsored by: Sandvine Incorporated Reported by: rstone Reviewed by: delphij, emaste, rstone Approved by: re (kib) MFC after: 1 week
* Implement missing USB debug information functions.hselasky2011-09-197-4/+184
| | | | | Approved by: re (kib) MFC after: 1 week
* Fix a logic bug in pc-sysinstall creating partitions.jpaetzel2011-09-1911-36/+60
| | | | | | | | | | | | | Improve exit when an error occurs. Fix parsing to grab values which contain extra '=' signs. Fix a bug setting the timezone properly. Fix a usage bug when setting up with gmirror. Allow a uzip file from local media to be used. Allow specifying flags for "newfs" when using UFS as the file system. Run custom commands after doing final cleanup / fstab generation and such. Also fix using relative path for config file. Approved by: re (bz)
* Bump .Dd date for previous revision.delphij2011-09-171-1/+1
| | | | Approved by: re (follow up commit fixing trivial issue)
OpenPOWER on IntegriCloud