aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | Add information about MD_READONLY and MD_COMPRESS flags to theAndrey V. Elsukov2011-10-311-0/+5
| | | | | | | | | | | | | | | | | | configuration dump. MFC after: 1 week Notes: svn path=/head/; revision=226966
* | Put some static keywords in the source code.Ed Schouten2011-10-316-23/+23
| | | | | | | | | | | | | | | | | | For these simple utilities, it doesn't harm to make all global variables static. In fact, this allows the compiler to perform better forms of optimisation and analysis. Notes: svn path=/head/; revision=226961
* | Pull in r143305 and r143312 from upstream clang trunk, so using "clangDimitry Andric2011-10-301-3/+18
| | | | | | | | | | | | | | | | | | | | | | -march=native" on AMD K10 family processors no longer errors out with "unknown target CPU 'amdfam10'". This also enables use of SSE4A. Reported by: David Marec <david.marec@davenulle.org> MFC after: 3 days Notes: svn path=/head/; revision=226951
* | Add multiple inclusion protection.Marius Strobl2011-10-301-0/+4
| | | | | | | | Notes: svn path=/head/; revision=226950
* | Actually, limit to 32-bit DMA for the transfer buffers as the address isMarius Strobl2011-10-301-2/+2
| | | | | | | | | | | | | | written into a 32-bit register. Notes: svn path=/head/; revision=226949
* | Correct the DMA constraints, the LSI64854 isn't limited to 32-bit DMA.Marius Strobl2011-10-301-3/+3
| | | | | | | | Notes: svn path=/head/; revision=226948
* | - Use device_t rather than the NetBSDish struct device.Marius Strobl2011-10-305-217/+285
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Move esp_devclass to ncr53c9x.c in order to allow different bus front-ends to use it. - Use KOBJMETHOD_END. - Remove the gl_clear_latched_intr hook as it's not needed for any of the chips nor the front-ends supported in FreeBSD and likely never will be. - Correct the DMA constraints used in the SBus front-end, the LSI64854 isn't limited to 32-bit DMA. - The ESP200 also only supports up to 64k transfers. - Don't let the DMA and SBus front-end supply a maximum transfer size larger than MAXPHYS as that's the maximum the upper layers use and we otherwise just waste resources unnecessarily. - Initialize the ECB callout and don't zero the handle when returning ECBs to the free list so that ncr53c9x_callout() actually is called with the driver lock held. - On detach the driver lock should be held across cam_sim_free() according to isp(4) and a panic received. - Check the return value of NCRDMA_SETUP(), i.e. bus_dmamap_load(9), and try to handle failures gracefully. - In ncr53c9x_action() replace N calls to xpt_done() in a switch with just one at the end. - On XPT_PATH_INQ report "NCR" rather than "Sun" as the vendor as the former is somewhat more correct as well as the maximum supported transfer size via maxio in order to take advantage of controllers that that can handle more than DFLTPHYS. - Print the number of MESSAGE (EXTENDED) rejected. - Fix the path encoded in the multiple inclusion protection of ncr53c9xvar.h. - Correct the DMA constraints used in the LSI64854 core to not exceed the maximum supported transfer size and include the boundary so we don't need to check on every setup of a DMA transfer. - Let the bus DMA map callbacks do nothing in case of an error. - Correctly handle > 64k transfers for FAS366 in the LSI64854. A new feature flag NCR_F_LARGEXFER was introduced so we just need to check for this one and not for individual controllers supporting large transfers in several places. - Let the LSI64854 core load transfer buffers using BUS_DMA_NOWAIT as the NCR53C9x core can't handle EINPROGRESS. Due to lack of bounce buffers support, sparc64 doesn't actually use EINPROGRESS and likely never will, as an example for writing additional front-ends for the NCR53C9x core it makes sense to set BUS_DMA_NOWAIT anyway though. - Some minor cleanup. Notes: svn path=/head/; revision=226947
* | Fix typo from r226927Doug Barton2011-10-301-1/+1
| | | | | | | | | | | | | | Submitted by: scf Notes: svn path=/head/; revision=226942
* | Fix a few gratuitous library dependencies. Some of the ZFS utilitiesRobert Millan2011-10-306-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | are linked with libraries they don't use: - zinject doesn't use libavl - ztest doesn't use libz - zdb uses neither libavl nor libz - zfs uses neither libbsdxml nor libm, nor libsbuf - zpool uses neither libbsdxml nor libm, nor libsbuf In addition, libzfs needs libm because it uses pow(), however it isn't linked with -lm. This went unnoticed because all its users had -lm before. Reviewed by: pjd, mm Approved by: kib (mentor) MFC after: 1 week Notes: svn path=/head/; revision=226940
* | For processes with no controlling terminal, display "-" in the TTY columnEdward Tomasz Napierala2011-10-302-4/+8
| | | | | | | | | | | | | | | | | | instead of "?". Submitted by: arundel Notes: svn path=/head/; revision=226939
* | Add missing PF_UNLOCK in pf_testKevin Lo2011-10-301-1/+5
| | | | | | | | | | | | | | Reviewed by: bz Notes: svn path=/head/; revision=226938
* | Fix a misplaced parenthesis.Christian Brueffer2011-10-301-1/+1
| | | | | | | | | | | | | | | | | | PR: 162164 Submitted by: Henning Petersen <henning.petersen@t-online.de> MFC after: 1 week Notes: svn path=/head/; revision=226937
* | Eliminate vm_phys_bootstrap_alloc(). It was a failed attempt atAlan Cox2011-10-306-57/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | eliminating duplicated code in the various pmap implementations. Micro-optimize vm_phys_free_pages(). Introduce vm_phys_free_contig(). It is fast routine for freeing an arbitrary number of physically contiguous pages. In particular, it doesn't require the number of pages to be a power of two. Use "u_long" instead of "unsigned long". Bruce Evans (bde@) has convinced me that the "boundary" parameters to kmem_alloc_contig(), vm_phys_alloc_contig(), and vm_reserv_reclaim_contig() should be of type "vm_paddr_t" and not "u_long". Make this change. Notes: svn path=/head/; revision=226928
* | Add birth date for Ken ThompsonDoug Barton2011-10-301-1/+5
| | | | | | | | | | | | | | | | | | | | | | Add birth and death dates for Steve Jobs Update birth and add death date for Dennis Ritchie PR: bin/162157 Submitted by: Niclas Zeising <niclas.zeising@gmail.com> Notes: svn path=/head/; revision=226927
* | Revert rev. 226893: subr_syscall.c is being included from C files andMarcel Moolenaar2011-10-303-9/+14
| | | | | | | | | | | | | | | | on amd64 with FREEBSD32 enabled, this means that systrace_probe_func gets defined twice. Notes: svn path=/head/; revision=226925
* | Add a reminder about quarterly status report due datesDoug Barton2011-10-291-0/+4
| | | | | | | | | | | | | | Reviewed by: danger Notes: svn path=/head/; revision=226909
* | remove trailing whitespace...John-Mark Gurney2011-10-291-3/+3
| | | | | | | | | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=226908
* | error if /boot/mbr is empty... This can happen on a system like armJohn-Mark Gurney2011-10-291-0/+2
| | | | | | | | | | | | | | | | | | | | that doesn't have a /boot/mbr, and you touch it to get past the previous error message... MFC after: 1 week Notes: svn path=/head/; revision=226907
* | Improve USB mass storage quirk auto detection.Hans Petter Selasky2011-10-292-1/+30
| | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=226903
* | Add some new ath(4) debugging bits, from my if_ath_tx 11n TX branch.Adrian Chadd2011-10-291-0/+5
| | | | | | | | Notes: svn path=/head/; revision=226900
* | Fix the text and attribution of the poem "Youth" by Samuel Ullman.Doug Barton2011-10-291-19/+31
| | | | | | | | | | | | | | | | | | | | | | Our copy was a bastardization of the "older" (probably original?) and shorter version of the poem; and the "newer" version that is better known, and arguably more popular. Standardize on the latter. Cf. http://www.bartleby.com/73/2099.html Notes: svn path=/head/; revision=226898
* | Fix an implicit dependency between the MFI driver and CAM that had grown dueScott Long2011-10-291-1/+18
| | | | | | | | | | | | | | | | | | | | | | | | to an API change in CAM. It's once again possible to link a static kernel with 'mfi' without requiring 'scbus' as well. Ditto for KLD loading. Submitted by: kib Reviewed by: ken MFC after: 3 days Notes: svn path=/head/; revision=226896
* | Reword '}' description to sound more clear.Andrey A. Chernov2011-10-291-1/+1
| | | | | | | | | | | | | | | | Submitted by: dougb MFC after: 7 days Notes: svn path=/head/; revision=226895
* | Define systrace_probe_func in subr_syscall.c where it's used, insteadMarcel Moolenaar2011-10-293-14/+9
| | | | | | | | | | | | | | of defining it in MD code. This eliminates porting to other architectures. Notes: svn path=/head/; revision=226893
* | sh: Add test for exit status of for loop without items.Jilles Tjoelker2011-10-281-0/+4
| | | | | | | | | | | | | | | | | | POSIX says the exit status of a for loop without any items shall be 0. There are no exceptions if the exit status of the previous command was not 0 or if the item list contains a command substitution with non-zero exit status. Notes: svn path=/head/; revision=226892
* | Use "u_long" instead of "unsigned long".Alan Cox2011-10-282-5/+4
| | | | | | | | Notes: svn path=/head/; revision=226891
* | Update '}' description to reflect reality (and POSIX)Andrey A. Chernov2011-10-281-1/+1
| | | | | | | | | | | | | | | | | | PR: 96236 Submitted by: "Andreas Kohn" <andreas@syndrom23.de> MFC after: 7 days Notes: svn path=/head/; revision=226889
* | Add a few improvements to utf-8 -> cp436 console mapRobert Millan2011-10-281-5/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (mostly with Catalan characters in mind, but it probably benefits other languages). The new mappings are as follows: ▮ -> █ ÀÈÍÏÓÒÚ -> AEIIOOU ŀ / Ŀ -> l / L Reviewed by: ed Approved by: kib (mentor) Notes: svn path=/head/; revision=226888
* | Don't expose a constant array into global namespace.Xin LI2011-10-282-2/+1
| | | | | | | | | | | | | | | | Reported by: Ruslan Yakovlev <quazi bk ru> via yongari MFC after: 3 days Notes: svn path=/head/; revision=226887
* | Include the tid when printing out crypto replay errors.Adrian Chadd2011-10-281-2/+2
| | | | | | | | | | | | | | | | | | I found this useful when trying to debug the AR9160 STA RX filter issue - I'd get crypto reply errors but it wasn't entirely clear which TID it was for. Notes: svn path=/head/; revision=226885
* | When punting frames to the RX tap, free the mbufs since we've tampered withAdrian Chadd2011-10-281-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | their length. Without this, an error frame mbuf would: * have its size adjusted; * thrown at the radiotap code; * then since it's never consumed, the rxbuf/mbuf is then re-added to the RX descriptor list with the small size; * .. and the hardware ends up (sometimes) only DMA'ing part of a frame into the small buffer, chaining RX frames together (setting the more flag). I discovered this particular issue when doing some promiscuous radiotap testing; I found that I'd occasionally get rs_more set in RX descriptors w/ the first frame length being very small (sub-100 bytes.) The driver handles 2-descriptor RX frames (but not more), so this still worked; it was just odd. This is suboptimal and may benefit from being replaced with caching the m_pkthdr_len and m_len fields, then restoring them after completion. Notes: svn path=/head/; revision=226884
* | Fix arguments list for proc:::signal-discard DTrace probe.Sergey Kandaurov2011-10-281-1/+1
| | | | | | | | | | | | | | | | Reported by: Anton Yuzhaninov <citrin citrin ru> MFC after: 1 week Notes: svn path=/head/; revision=226882
* | Add the XSI option -b to show date of the last reboot.Sergey Kandaurov2011-10-282-8/+31
| | | | | | | | | | | | | | | | | | | | That required to increase the LINE field to fit the output of -b. While here, change the row() function to take a const argument. In collaboration with: ed Notes: svn path=/head/; revision=226881
* | Our geom withering function could take some time before geom with itsAndrey V. Elsukov2011-10-281-0/+4
| | | | | | | | | | | | | | | | | | | | | | providers and consumers will be destroyed. Before take some actions with a geom, check that it is not destroyed at the moment. Tested by: nwhitehorn MFC after: 1 week Notes: svn path=/head/; revision=226880
* | Fix handling of rc_force in /etc/rc.d/dhclientEygene Ryabinkin2011-10-281-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | Variable 'rc_force' is accessible only at the time of rc_run_command, so it can't be examined from the script's main code. Spotted by: hrs Reviewed by: hrs, des Approved by: des MFC after: 2 weeks Notes: svn path=/head/; revision=226879
* | Disable updating InputDiscards counter for BCM5717, BCM5718,Pyun YongHyeon2011-10-281-2/+24
| | | | | | | | | | | | | | | | BCM5719 A0 and BCM5720 A0 and add comment why driver does not try to read it. Notes: svn path=/head/; revision=226872
* | Add initial BCM5720 support.Pyun YongHyeon2011-10-282-29/+87
| | | | | | | | | | | | | | | | | | | | Many thanks to Broadcom for continuing support of FreeBSD. Submitted by: Geans Pin at Broadcom (initial version) H/W donated by: Broadcom Notes: svn path=/head/; revision=226871
* | Recognize BCM5720C PHY.Pyun YongHyeon2011-10-282-0/+2
| | | | | | | | Notes: svn path=/head/; revision=226870
* | When add a new remote address using sctp_add_remote_addr(),Michael Tuexen2011-10-271-3/+3
| | | | | | | | | | | | | | | | | | return the correct net if requested. MFC after: 3 days. Notes: svn path=/head/; revision=226869
* | Send out control chunks which have no specific destination.Michael Tuexen2011-10-271-12/+36
| | | | | | | | | | | | | | MFC after: 3 days. Notes: svn path=/head/; revision=226868
* | Define BGE_FW_HB_TIMEOUT_SEC and remove one more magic value.Pyun YongHyeon2011-10-272-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bge(4) sends BGE_FW_CMD_DRV_ALIVE command to firmware every 2 seconds. BGE_FW_CMD_DRV_ALIVE command requires 4 bytes data. This data contains timeout value in seconds until the next BGE_FW_CMD_DRV_ALIVE command. Broadcom recommends driver set the value 3 times longer than the interval that it sends BGE_FW_CMD_DRV_ALIVE. Currently bge(4) uses 3 seconds so probably we have to increase it in future and use different ALIVE command(e.g. BGE_FW_CMD_DRV_ALIVE3). No functional changes. Notes: svn path=/head/; revision=226867
* | Rename hard-coded value 1 << 14 with BGE_RX_CPU_DRV_EVENT.Pyun YongHyeon2011-10-272-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This bit(SW event 7 in publicly available data sheet) is used to make RX CPU handle a firmware command and the bit is automatically cleared after RX CPU completed the command. Generally firmware command takes the following steps. 1. Write BGE_SRAM_FW_CMD_MB with a command. 2. Write BGE_SRAM_FW_CMD_LEN_MB with the length of the command in bytes. 3. Write BGE_SRAM_FW_CMD_DATA_MB with actual command data. 4. Generate BGE_RX_CPU_EVENT and let firmware handle the command. 5. Wait for the ACK of the firmware command. No functional changes. Notes: svn path=/head/; revision=226866
* | Increase default scrub threshold from 30 days to 5 weeks. UsingXin LI2011-10-272-3/+3
| | | | | | | | | | | | | | | | | | | | whole weeks makes it easier to predicate when the scrub would happen. MFC after: 1 week Notes: svn path=/head/; revision=226865
* | Rename BGE_FW_DRV_ALIVE/BGE_FW_PAUSE to BGE_FW_CMD_DRV_ALIVE/BGE_FW_CMD_PAUSE.Pyun YongHyeon2011-10-272-4/+10
| | | | | | | | | | | | | | | | Also add more firmware commands(not used yet). No functional changes. Notes: svn path=/head/; revision=226864
* | Fix svnversion for svn 1.7.x by not looking for .svn in ${SYSDIR} (sinceDoug Barton2011-10-271-3/+7
| | | | | | | | | | | | | | | | | | | | | | it no longer exists). Instead, run svnversion if we can find the binary and test that the output looks like a version string. Reviewed by: discussion on -current@ Tested by: rodrigc for non-svn case (thanks!) Notes: svn path=/head/; revision=226863
* | Remove example for linking /dev/vga to /dev/ttyv0, this hasn't beenGavin Atkinson2011-10-271-3/+0
| | | | | | | | | | | | | | | | | | | | | | required since X version 4.3.0. PR: conf/161847 Submitted by: eadler MFC after: 2 weeks Notes: svn path=/head/; revision=226862
* | Remove redundant space.Pawel Jakub Dawidek2011-10-271-1/+1
| | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=226861
* | Update the example rules in devfs.conf to reflect the changes since ATA_CAM.Gavin Atkinson2011-10-271-1/+2
| | | | | | | | | | | | | | | | | | | | While here, add another example rule, as many applications these days expect to find /dev/dvd instead. MFC after: 3 days Notes: svn path=/head/; revision=226860
* | Implement 'async' mode for HAST.Pawel Jakub Dawidek2011-10-273-55/+81
| | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=226859
* | Minor cleanups.Pawel Jakub Dawidek2011-10-271-1/+2
| | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=226857