summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Allow device hints to wire the unit numbers of devices.jhb2008-11-189-168/+272
| | | | | | | | | | | | | | | | | | | | - An "at" hint now reserves a device name. - A new BUS_HINT_DEVICE_UNIT method is added to the bus interface. When determining the unit number of a device, this method is invoked to let the bus driver specify the unit of a device given a specific devclass. This is the only way a device can be given a name reserved via an "at" hint. - Implement BUS_HINT_DEVICE_UNIT() for the acpi(4) and isa(4) bus drivers. Both of these busses implement this by comparing the resources for a given hint device with the resources enumerated by ACPI/PnPBIOS and wire a unit if the hint resources are a subset of the "real" resources. - Use bus_hinted_children() for adding hinted devices on isa(4) busses now instead of doing it by hand. - Remove the unit kludging from sio(4) as it is no longer necessary. Prodding from: peter, imp OK'd by: marcel MFC after: 1 month
* Grammar improvements.delphij2008-11-181-4/+4
| | | | Submitted by: kensmith
* Restore original frequency on exit.mav2008-11-181-2/+4
| | | | PR: bin/113813
* Add myselfpho2008-11-182-0/+2
| | | | Approved by: kib (mentor)
* Set of powerd enchancements:mav2008-11-182-89/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Make it more SMP polite. Previous version uses average CPU load that often leads to load underestimation. It make powerd with default configuration unusable on systems with more then 2 CPUs. I propose to use summary load instead of average one. IMO this is the best we can do without specially tuned scheduler. Also as soon as measuring total load on SMP systems is more useful then total idle, I have switched to it. 2. Make powerd's operation independent from number and size of frequency levels. I have added internal frequency counter which translated into real frequencies only on a last stage and only as good as gone. Some systems may have only several power levels, while others - many of them, so adaptation time with previous approach was completely different. 3. As part of previous I have changed adaptive mode to rise frequency on demand up to 2 times and fall on 1/8 per time internal. 4. For desktop (AC-powered) systems I have added one more mode - "hiadaptive". It rises frequency twice faster, drops it 4 times slower, prefers twice lower CPU load and has additional delay before leaving the highest frequency after the period of maximum load. This mode was specially made to improve interactivity of the systems where operation capabilities are more significant then power consumption, but keeping maximum frequency all the time is not needed. 5. I have reduced default polling interval from 1/2 to 1/4 of second. It is not so important for algorithm math now, but gives better system interactivity. Discussed on: mobile@
* - Fix two minor errors in at91 code.stas2008-11-182-2/+2
| | | | | | PR: arm/128959 Submitted by: Bjorn Konig <bkoenig@alpha-tierchen.de> Approved by: kib (mentor)
* Partition type FS_UNUSED does not mean the partition entrymarcel2008-11-181-3/+1
| | | | | | | is unused. Unused partition entries have a partition size of zero. Therefore, partitions can have type FS_UNUSED. MFC after: 3 days
* When checking to see if another CPU is running its idle thread, examinejhb2008-11-181-4/+4
| | | | | | | | the thread running on the other CPU instead of the thread being placed on the run queue. Reported by: Ravi Murty @ Intel Reviewed by: jeff
* Use humanize_number(), rather than a home-grown algorithm formarcel2008-11-182-13/+7
| | | | | | | | | | | | | formatting a number in a human-friendly way. Note that with this commit a megabyte changed from 1000000 to 1048576 and a 80G disk is now printed as being 75G in size. This is deliberate. It's consistent with the core of geom(8). However, the original choice for a megabyte being 1000000 was on purpose and matches what disk vendors put on the box. The consistency is considered more important. Submitted by: delphij
* Fix building without ZFS (can't find library)ache2008-11-181-0/+2
|
* Sort includesmarcel2008-11-181-9/+10
| | | | Submitted by: delphij
* remove a pointless prototype and static-fy the corresponding functionmatteo2008-11-181-2/+1
| | | | MFC after: 3 days
* use WARNS?= instead of WARNS=matteo2008-11-181-1/+1
| | | | MFC after: 3 days
* Be more precise and use sizeof(tn)matteo2008-11-181-1/+1
| | | | | | Pointed out by: glewis@ MFC after: 3 days
* Use WARNS?= instead of WARNS=matteo2008-11-181-1/+1
| | | | MFC after: 3 days
* Fix a warning on amd64 caused by using int for request argument instead ofpjd2008-11-182-2/+2
| | | | | | | | unsigned long: WARNING pid 12888 (zfs/zpool): ioctl sign-extension ioctl ffffffffcc285aXX Reported by: kris
* Pad the bootcode we write to the partition to a multiple of themarcel2008-11-181-1/+16
| | | | | | | | sector size. Submitted by: Alexey Shuvaev <shuvaev@physik.uni-wuerzburg.de> Prompted by: delphij MFC after: 3 days
* Obey signedness flag in %z case.delphij2008-11-181-1/+1
| | | | MFC after: 2 months
* Obey signedness flag in %z case.delphij2008-11-171-1/+1
| | | | MFC after: 2 months
* Fix the maximum transfer size for mfi(4) disk devices to not exceed thejhb2008-11-171-1/+2
| | | | | | | maximum number of scatter/gather elements supported in the bus dma tag. Reviewed by: scottl MFC after: 1 week
* make this warns=5 cleanimp2008-11-176-191/+46
|
* Move dumpcis to its own directory, start to decouple from theimp2008-11-1723-1223/+1
| | | | pccardc/pccardd history.
* Minor ANSI tweaks.imp2008-11-171-5/+2
|
* When running on a filesystem that lacks ACL support,kientzle2008-11-171-9/+9
| | | | just SKIP the test, don't report a test failure.
* Update ZFS from version 6 to 13 and bring some FreeBSD-specific changes.pjd2008-11-17341-15923/+104583
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This bring huge amount of changes, I'll enumerate only user-visible changes: - Delegated Administration Allows regular users to perform ZFS operations, like file system creation, snapshot creation, etc. - L2ARC Level 2 cache for ZFS - allows to use additional disks for cache. Huge performance improvements mostly for random read of mostly static content. - slog Allow to use additional disks for ZFS Intent Log to speed up operations like fsync(2). - vfs.zfs.super_owner Allows regular users to perform privileged operations on files stored on ZFS file systems owned by him. Very careful with this one. - chflags(2) Not all the flags are supported. This still needs work. - ZFSBoot Support to boot off of ZFS pool. Not finished, AFAIK. Submitted by: dfr - Snapshot properties - New failure modes Before if write requested failed, system paniced. Now one can select from one of three failure modes: - panic - panic on write error - wait - wait for disk to reappear - continue - serve read requests if possible, block write requests - Refquota, refreservation properties Just quota and reservation properties, but don't count space consumed by children file systems, clones and snapshots. - Sparse volumes ZVOLs that don't reserve space in the pool. - External attributes Compatible with extattr(2). - NFSv4-ACLs Not sure about the status, might not be complete yet. Submitted by: trasz - Creation-time properties - Regression tests for zpool(8) command. Obtained from: OpenSolaris
* Undo revision 185013 until better solution is found.emax2008-11-171-4/+0
| | | | Pointed out by: bde
* Fix a potential NULL-pointer dereference in padlock(4).philip2008-11-171-1/+5
| | | | | Spotted by: Coverity (via pjd) MFC after: 1 week
* gdb: Remove arm_pc_is_thumb_dummy() and related code.raj2008-11-171-36/+1
| | | | | | This is basically an import of the following gdb change: http://sourceware.org/ml/gdb-cvs/2005-03/msg00143.html (which in effect fixes problems with gracefully closing down the non-Thumb program being debugged).
* Initial gdbserver support for ARM.raj2008-11-174-4/+226
| | | | Obtained from: Juniper Networks, Semihalf
* Fix two possible (but unlikely) NULL-pointer dereferences in glxsb(4).philip2008-11-171-3/+7
| | | | | Spotted by: Coverity MFC after: 1 week
* Overhaul of CIS parsing, next step: keep a cached copy of the CIS,imp2008-11-174-73/+68
| | | | | | | | | read before we configure the card, so we can implement /dev/cardbus*.cis. Also, do this on a per-child basis, so we now have a different name than before. I think i'll have to fix that for some legacy tools to keep working. I can now do a dumpcis on my running atheros card and have it still work!
* Fix typo. It restuled in activating unwanted Rx filtering as wellyongari2008-11-171-1/+2
| | | | | | as resetting Rx threshold configuration. Submitted by: Joost Mulders < Joost.Mulders <> Sun DOT COM >
* More locking for syscons(4). This should prevent races with sckbdevent().emax2008-11-161-0/+4
| | | | | PR: kern/127446 Submitted by: Eygene Ryabinkin rea-fbsd at codelabs dot ru
* Instead of forcing vn_start_write() to reset mp back to NULL for thekib2008-11-161-2/+1
| | | | | | | | | failed calls with non-NULL vp, explicitely clear mp after failure. Tested by: stass Reviewed by: tegge PR: 123768 MFC after: 1 week
* Revert r184118. There is actually a code in the kernel, for instance inkib2008-11-161-10/+1
| | | | | | | | | | | | | | kern_unlinkat(), that expects that vn_start_write() actually fills the mp even when the call failed. As Tor noted, that pattern relies on the the type stability of the mount points, as well as that suspended mount points are never freed and V_XSLEEP is always passed to vn_start_write() when called on a freed mount point. Reported by: stass Reviewed by: tegge PR: 123768
* Fix argument layout of devfs_get_cdevpriv().ed2008-11-161-1/+1
| | | | | Right now it shows `void' and `**datap' as two different arguments, while they belong together.
* - Allow the front-end to specify that iommu(4) should disablemarius2008-11-163-19/+25
| | | | | | | | | rerun of the streaming cache for silicon bug workarounds. - Announce the presence of a streaming cache on attach for informational purposes. - For performance reasons don't do unnecessary flushes of the streaming cache when coherent mappings are synced. - Fix some minor style issues.
* Use the spitfire VIS block copy/zero functions also with cheetah-marius2008-11-161-1/+7
| | | | | | | | | | | | class CPUs. In theory one could also use versions additionally taking advantage of the prefetch cache with cheetah-class CPUs, in my worldstone runs these either didn't provide extra speedup (USIII+) in comparison to the existing spitfire versions or were even slightly slower (USIIIi) though, so they aren't committed for now. The basic problem leading to the VIS-based copy/zero functions being initially disabled for cheetah-class CPUs was solved by letting cheetah_init() clear DCR_IFPOE.
* Micro-optimize spitfire_block_{copy,zero}():marius2008-11-161-9/+4
| | | | | | - Predict the loop as taken as it's more likely that there's still data to copy and memory to zero respectively. - Don't waste the delay slot.
* Define LDBL_EPSILON, LDBL_MAX and LDBL_MIN as long double constants.marcel2008-11-161-3/+3
| | | | | Submitted by: Andreas Tobler <andreast-list@fgznet.ch> Reviewed by: das@
* - For maximum flexibility, sparc64 supports BUS_DMA_COHERENT alsomarius2008-11-161-16/+31
| | | | | | | | | | | with bus_dmamap_create() and not only bus_dmamem_alloc() so move the description of this flag up accordingly in order to document this fact. While at, it refine this description with an application example. - Reword the description of BUS_DMA_NOCACHE as this flag is also implemented on sparc64. MFC after: 1 week
* Various whitespace and style fixes.jhb2008-11-1619-284/+291
|
* In the robust futexes list head, futex_offset shall be signed,kib2008-11-163-4/+4
| | | | | | and glibc actually supplies negative offsets. Change l_ulong to l_long. Submitted by: dchagin
* Add a comment to utmp.h about the sizes of UT_HOSTSIZE and UT_LINESIZE.ed2008-11-161-0/+7
| | | | | | | | | UT_HOSTSIZE and UT_LINESIZE are too small right now. If we ever bump UT_HOSTSIZE, we must not forget to increase UT_LINESIZE as well. If we add a comment, we're pretty sure we increase both values at the same time. PR: bin/108743 (maybe others)
* Ignore absent CPUs when listing the current state of PMC hardware.jkoshy2008-11-161-1/+4
|
* Print PMC widths in the initialization announcement.jkoshy2008-11-161-1/+2
|
* On i386, the primary function that SYSCALL() generates is with thepeter2008-11-153-3/+3
| | | | | __sys_ prefix. Make END() match. This didn't cause a compile error, but the function size is attached to the .weak symbol, not the real one.
* - Document the class name prefix for these PMCs.jkoshy2008-11-151-1/+22
| | | | | - Document the "anythread" qualifier, available on Atom CPUs. - Add examples.
* Correct an oversight: call the MD finalize hook at module unloadjkoshy2008-11-151-0/+3
| | | | time.
* Fix assertions.jkoshy2008-11-151-6/+9
| | | | Reported by: keramida
OpenPOWER on IntegriCloud