summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* After thinking again, implement cam_ccbq_fini().mav2009-10-223-2/+11
| | | | This is effectively NULL change, but makes this API a bit more consistent.
* Prevent wraparound of the timeout variable.thompsa2009-10-221-1/+5
| | | | Submitted by: HPS
* Move comments to the beginning of the line to make it look better.edwin2009-10-221-5/+5
| | | | | | Thank to ru@ for his noticing of it. MFC after: 1 week
* Rename default to default_function, for compatibility with GNU awk.emaste2009-10-221-7/+7
| | | | (For cross-compiling out-of-tree kernel modules, for example.)
* Allow dumping the USB mouse reports via 'sysctl -b dev.ums.N.parseinfo',thompsa2009-10-221-1/+71
| | | | | | | previously only available via bootverbose. PR: usb/137191 Submitted by: Eygene Ryabinkin
* cam_ccbq_fini() declared for 11 years, but never implemented. Remove it.mav2009-10-221-2/+0
|
* Initialize rann_flags properly.rpaulo2009-10-221-0/+1
| | | | MFC after: 2 days
* Set the devclass_t pointer specified in the DRIVER_MODULE() macrojhb2009-10-221-24/+14
| | | | | | | | | | | | | | | | | | | | sooner so it is always valid when a driver's identify routine is called. Previously, new-bus would attempt to create the devclass for a newly loaded driver in two separate places, once in devclass_add_driver(), and again after devclass_add_driver() returned in driver_module_handler(). Only the second lookup attempted to set a device class' parent and set the devclass_t pointer specified in the DRIVER_MODULE() macro. However, by the time it was executed, the driver was already added to existing instances of the parent driver at which point in time the new driver's identify routine would have been invoked. The fix is to merge the two attempts and only create the devclass once in devclass_add_driver() including setting the devclass_t pointer passed to DRIVER_MODULE() before the driver is added to any existing bus devices. Reported by: avg Reviewed by: imp MFC after: 2 weeks
* Don't use BUS_DMA_ALLOCNOW as that causes the attachment to fail onrpaulo2009-10-221-1/+1
| | | | | | Cambria boards. MFC after: 2 months
* Unbreak NO_WARNS, keeping CSTD effect on CFLAGS out of its control.ru2009-10-221-1/+3
| | | | Unbreak compiles with icc.
* List more dependencies for these drivers. While here, convertbrueffer2009-10-222-2/+20
| | | | | | | | atapicam(4) to use our standard section 4 SYNOPSIS layout. PR: 132525 Submitted by: gcooper MFC after: 3 days
* Remove self-reference.pjd2009-10-221-1/+0
|
* Check pointer for NULL before dereferencing it, not after.brueffer2009-10-222-4/+9
| | | | | | PR: 138387, 138388 Submitted by: Patroklos Argyroudis <argp@census-labs.com> MFC after: 1 week
* Check pointer for NULL before dereferencing it, not after.brueffer2009-10-221-2/+2
| | | | | | PR: 138390 Submitted by: Patroklos Argyroudis <argp@census-labs.com> MFC after: 1 week
* Fix a memory leak in an error case.brueffer2009-10-221-0/+3
| | | | | | | PR: 138376 Submitted by: Patroklos Argyroudis <argp@census-labs.com> Reviewed by: scottl MFC after: 1 week
* Verify "smp_started" is true before callingqingli2009-10-221-6/+10
| | | | | | | sched_bind() and sched_unbind(). Reviewed by: kmacy MFC after: 3 days
* Make dhclient use bootpc (68) as the source port for unicast DHCPREQUESTphilip2009-10-213-18/+41
| | | | | | | | | | | | packets instead of allowing the protocol stack to pick a random source port. This fixes the behaviour where dhclient would never transition from RENEWING to BOUND without going through REBINDING in networks which are paranoid about DHCP spoofing, such as most mainstream cable-broadband ISP networks. Reviewed by: brooks Obtained from: OpenBSD (partly - I'm not convinced their solution can work) MFC after: 1 week (pending re approval)
* After the installation of the /usr/share/zoneinfo, run tzsetup ifedwin2009-10-211-0/+20
| | | | | | /var/db/zoneinfo exists. MFC after: 1 week
* - Add support for chrooted installs.edwin2009-10-212-77/+156
| | | | | | - Add examples to the man-page. MFC after: 1 week
* Move sed(1) from cross-tools to bootstrap-tools.ru2009-10-211-1/+5
|
* Don't call the newstate callback as that's dangerous. Rely no ENETRESETrpaulo2009-10-211-4/+0
| | | | | | to DTRT. MFC after: 3 days
* Change gcc to assume a default machine architecture of 486 instead of 386jhb2009-10-211-1/+1
| | | | | | | | | | on "i386". Doing it in the compiler is deemed to be less fragile then attempting to provide a default -march setting via bsd.cpu.mk. FreeBSD itself has not supported plain 386 CPUs since 5.x. Suggested by: kan Requested by: rdivacky MFC after: 1 month
* Handle the case where there is only one PMC in the system.fabient2009-10-211-4/+4
| | | | | Approved by: jkoshy (mentor) MFC after: 3 days
* Review previous change. It has no relation to the I-cache coherencymarcel2009-10-211-1/+1
| | | | | | changes and thus unintentional. Spotted by: rdivacky@
* o Introduce vm_sync_icache() for making the I-cache coherent withmarcel2009-10-2120-74/+196
| | | | | | | | | | | | | | | | | | | | | the memory or D-cache, depending on the semantics of the platform. vm_sync_icache() is basically a wrapper around pmap_sync_icache(), that translates the vm_map_t argumument to pmap_t. o Introduce pmap_sync_icache() to all PMAP implementation. For powerpc it replaces the pmap_page_executable() function, added to solve the I-cache problem in uiomove_fromphys(). o In proc_rwmem() call vm_sync_icache() when writing to a page that has execute permissions. This assures that when breakpoints are written, the I-cache will be coherent and the process will actually hit the breakpoint. o This also fixes the Book-E PMAP implementation that was missing necessary locking while trying to deal with the I-cache coherency in pmap_enter() (read: mmu_booke_enter_locked). The key property of this change is that the I-cache is made coherent *after* writes have been done. Doing it in the PMAP layer when adding or changing a mapping means that the I-cache is made coherent *before* any writes happen. The difference is key when the I-cache prefetches.
* Make input parsing in Farhenheit actually work.ed2009-10-211-5/+5
| | | | | | | | | | | | Don't clobber *p with '\0' when testing whether it has the value of 'F'. Just use the semantics of strtof() properly. If it returns p, we know that it parsed the string until it reached 'C' or 'F'. The code has not changed since it has been imported (r161951, Sep 3, 2006). Submitted by: Alexandre Perrin <kaworu@kaworu.ch> MFC after: 1 week
* PR: 139751fabient2009-10-211-1/+1
| | | | | | Approved by: des Obtained from: Xavier Heiny <xavier.heiny@netasq.com> MFC after: 3 weeks
* o Align function on a 32-byte boundary so that the core's front-endmarcel2009-10-211-3/+7
| | | | | | can deliver 2 bundles per cycle to the back-end. o Mark syscall stubs with a special unwind ABI tag so that unwind libraries know how to unwind.
* Set CSTD in all cases except when CC=icc and NO_WARNS is set. Thisrdivacky2009-10-211-1/+1
| | | | | | | | way we can set desired C standard even for cross tools etc. Tested by: make universe Approved by: ed (maintainer) OK by: das
* MFp4:mav2009-10-211-4/+4
| | | | Do not search for bus when it is not needed,
* Check pointer for NULL before dereferencing it, not after.brueffer2009-10-211-1/+2
| | | | | | | PR: 138383 Submitted by: Patroklos Argyroudis <argp@census-labs.com> Reviewed by: rnoland MFC after: 1 week
* MFp4:mav2009-10-212-174/+29
| | | | | | | Separate CAM_DEV_IDENTIFY_DATA_VALID flag from CAM_DEV_INQUIRY_DATA_VALID. Add workaround for very old devices without support for mode setting. Add some PATA bus scanning support. Remove some SCSIsms.
* Check pointer for NULL before dereferencing it, not after.brueffer2009-10-211-1/+1
| | | | | | PR: 138384 Submitted by: Patroklos Argyroudis <argp@census-labs.com> MFC after: 1 week
* MFp4:mav2009-10-211-85/+111
| | | | | | | Add support for PIO-only devices. Fix maxio values and 256 sectors transactions for 28bits commands. Implement periodic ordered commands insertion, sames as da driver does. Remove some SCSIsms.
* Add a missing free() call.brueffer2009-10-211-0/+2
| | | | | | | PR: 138379 Submitted by: Patroklos Argyroudis <argp@census-labs.com> Reviewed by: gibbs MFC after: 1 week
* MFp4:mav2009-10-213-3/+4
| | | | | Report real max_target = 15. SIM doesn't need to know that target 15 is PMP. It is XPT business.
* MFp4:mav2009-10-211-7/+26
| | | | Freeze device queue on error to permit periph driver to do proper recovery.
* - Introduce new option BCE_JUMBO_HDRSPLIT that allows user to enable headerstas2009-10-214-47/+54
| | | | | | | | splitting in bce(4) instead of (ab)using ZERO_COPY_SOCKETS that was not propagated into if_bce.c anyway. It is disabled by default. Approved by: davidch MFC after: 3 days
* MFp4:mav2009-10-212-37/+79
| | | | | | | | | | | On error, freeze device queue, to allow periph driver to do proper recovery. Freeze SIM queue only in some cases, when it is needed to protect SIM. Implement better command timeout detection logic for non-queued commands. This fixes false positives when command with short timeout waiting for the long one. For example, when hald tastes CD during burning process. Read and clear SERR register on interrupt.
* - On entrance to the rx_eof sync RX rings maps with POSTWRITE flagstas2009-10-211-4/+7
| | | | | | | | | | | | | | | | instead of POSTREAD: the hardware do not touch this memory (CPU updates it). It is already synchronized as PREWRITE after the processing is done. - Synchronize RX return ring memory in rx_eof. This is needed as the deviced updates this memory when receives packets. - Decouple the synchronization of BGE status block in the interrupt service routine: perfrom PREREAD synchronization only all accesses to this block are finished. This seems to be more natural. Reviewed by: yongari, marius MFC after: 2 weeks
* Introduce 'netDev=ANY' support for scripted (install.cfg) installs, which ↵rink2009-10-211-10/+73
| | | | | | | | results in the first ethernet interface with physical link being selected. While here, fix a minor typo causing an 'if' to be missed. Submitted by: randi
* The tunefs utility does not work on active filesystems.remko2009-10-211-2/+2
| | | | | | PR: docs/139705 Submitted by: Warren Block <wblock at wonkity dot com> Approved by: imp (mentor, implicit)
* Add empty watchdogd_flags.brueffer2009-10-211-0/+1
| | | | | | PR: 136620 Submitted by: amdmi3 MFC after: 3 days
* Improve the description of the malofw kernel module installation.brueffer2009-10-211-5/+10
| | | | | | | PR: 132193 Submitted by: Frank Staals <frank@fstaals.net> Based on a patch by: gavin MFC after: 3 days
* Change from CAM_TID_INVALID to CAM_SEL_TIMEOUT error code when the usb devicethompsa2009-10-201-2/+3
| | | | | | | | | | | | | | has been yanked, this works around a cam recounting bug when CAM_DEV_UNCONFIGURED is set late in the detach. In certain conditions the reference to the XPT device would not be released which would cause the usb explore thread to sleep forever on "simfree", preventing any new usb devices to be found/ejected on the bus. This is intended to be a quick workaround to the problem without touching CAM so it can be merged to 8.0. Suggested by: mav MFC after: 3 days
* The flow-table function flowtable_route_flush() may be calledqingli2009-10-201-7/+11
| | | | | | | | | | during system initialization time. Since the flow-table is designed to maintain per CPU flow cache, the existing code did not check whether "smp_started" is true before calling sched_bind() and sched_unbind(), which triggers a page fault. Reviewed by: jeff MFC after: immediately
* Fix a case where rename actually succeeds, which is also expected behaviourpjd2009-10-201-2/+3
| | | | | | according to POSIX. This fixes ZFS on Solaris testing. Submitted by: Milan Cermak <Milan.Cermak@Sun.COM>
* Make mxge do a better job recovering from NIC h/w faultsgallatin2009-10-201-13/+37
| | | | | | | by checking PCI config space when the NIC is not transmitting. Previously, a h/w fault would not have been detected if the NIC was down, or handling an RX only workload.
* In the ARP callout timer expiration function, the current time_secondqingli2009-10-201-9/+9
| | | | | | | | | | | | | is compared against the entry expiration time value (that was set based on time_second) to check if the current time is larger than the set expiration time. Due to the +/- timer granularity value, the comparison returns false, causing the alternative code to be executed. The alternative code path freed the memory without removing that entry from the table list, causing a use-after-free bug. Reviewed by: discussed with kmacy MFC after: immediately Verified by: rnoland, yongari
* Random number generator initialization cleanup:ru2009-10-203-2/+15
| | | | | | | | | | | | | | | | | | | | | - Introduce new SI_SUB_RANDOM point in boot sequence to make it clear from where one may start using random(9). It should be as early as possible, so place it just after SI_SUB_CPU where we have some randomness on most platforms via get_cyclecount(). - Move stack protector initialization to be after SI_SUB_RANDOM as before this point we have no randomness at all. This fixes stack protector to actually protect stack with some random guard value instead of a well-known one. Note that this patch doesn't try to address arc4random(9) issues. With current code, it will be implicitly seeded by stack protector and hence will get the same entropy as random(9). It will be securely reseeded once /dev/random is feeded by some entropy from userland. Submitted by: Maxim Dounin <mdounin@mdounin.ru> MFC after: 3 days
OpenPOWER on IntegriCloud