summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Revert previous change and fix misalignment by using bcopy()marcel2009-11-151-6/+1
| | | | | | | to copy the file handle from fid_data into fh. This eliminates conditional compilation. Pointed out by: imp
* sh: Allow a newline before "in" in a for command, as required by POSIX.jilles2009-11-142-1/+32
|
* MFp4:mav2009-11-143-7/+6
| | | | Some more missed parts from previous commits.
* MFp4:mav2009-11-141-37/+3
| | | | | | Remove code that years ago was closing race between request submission to SIM and device/SIM freeze. That race become impossible after moving from spl to mutex locking, while this workaround causes some unexpected effects.
* MFp4:mav2009-11-143-26/+42
| | | | Fix several device freeze counting bugs.
* MFp4:mav2009-11-141-2/+6
| | | | Check SNCQ HBA capability bit when reporting NCQ support to CAM.
* Fix an obvious panic by not casting from a pointer that is 4-bytesmarcel2009-11-141-1/+6
| | | | | | | alignment to a type that needs 8-byte alignment, and thus causing misaligned memory references. MFC after: 1 week
* Previous solution appeared to be unsufficient. After additional testingmav2009-11-141-18/+18
| | | | | | | | | | | | | I have found that it is not only desktop CPUs problem. but mobile also. Probably AP on laptops just started initially at lower frequency, hiding the problem. Disable frequency validation by default, for systems with more then one CPU, until we can implement it properly. It looks like making more harm now then benefits. Add 'hw.est.strict' loader tunable to control it. Now my iXsystems Invincibook is able to run at 800MHz lowest frequency, instead of 1200MHz before, when 800MHz was incorrectly reported invalid.
* Since %b contains unit, %b is not suitable for c_fmt, now. Use %_mume2009-11-143-3/+3
| | | | instead.
* Fix white space in rtld runtime error printf.rwatson2009-11-141-1/+1
| | | | MFC after: 3 days
* Retry only once, if BIOS is completely broken and gives zero freqs.mav2009-11-141-1/+1
|
* Desktop Core2Duo/Core2Quad CPUs are unable to control frequency of singlemav2009-11-141-3/+12
| | | | | | | | | | | CPU core, only pair of them. As result, both cores are running on highest one of requested frequencies, and that is reported by status register. Such behavior confuses frequency validation logic, as it runs on only one core, as SMP is not yet launched, making EIST completely unusable. To workaround this, add check for validation result. If we haven't found at least two usable frequencies, then probably we are looking bad and have to trust data provided by BIOS as-is.
* Update malloc utrace structure parsing to reflect the change (r199265)cperciva2009-11-141-11/+8
| | | | | | | | in how malloc_init is logged from (0, 0, 0) to (-1, 0, 0). While we're here, simplify the logic. Reviewed by: jhb (earlier version)
* Change the utrace log entry for malloc_init from (0, 0, 0) to (-1, 0, 0)cperciva2009-11-141-1/+1
| | | | | | in order to distinguish it from free(NULL), which is logged as (0, 0, 0). Reviewed by: jhb
* MFp4:mav2009-11-141-1/+2
| | | | Do not enable tagged queueing if controller reports 0 tags support.
* Disable PMP probing for Marvell AHCI controllers.mav2009-11-141-3/+6
| | | | It is not working for some reason. Linux does the same.
* Add sysctls in ahd(4) in order to keep track of different classes ofattilio2009-11-135-2/+197
| | | | | | | | | | errors. So far 3 different classes are present (correctable, uncorrectable and fatal) but more can be added easilly. Obtained from: Sandvine Incorporated Reviewed by: emase, gibbs Sponsored by: Sandvine Incorporated MFC: 2 weeks
* Add support for SATA ports on SATA+PATA Marvell controllers.mav2009-11-132-25/+72
| | | | | | These controllers provide combination of AHCI for SATA and legacy PCI ATA for PATA. Use same solution as used for JMicron controllers. Add IDs of Marvell 88SX6102, 88SX6111. 88SX6141 alike controllers
* Add more codec IDs.mav2009-11-131-1/+23
|
* Remove a note about vfork(4) going to be eliminated, it's here to stay.brueffer2009-11-131-8/+0
| | | | | Submitted by: kib MFC after: 1 week
* Improved the manpage description. The committed wordingbrueffer2009-11-131-2/+2
| | | | | | | | | was provided by jhb. PR: 140528 Submitted by: Chris Petrik <chris@officialunix.com> Discussed with: remko, jhb and the submitter MFC after: 1 week
* Amd64 init_secondary() calls initializecpu() while curthread is stillkib2009-11-133-0/+7
| | | | | | | | | | | | | | | | not properly set up. r199067 added the call to TUNABLE_INT_FETCH() to initializecpu() that results in hang because AP are started when kernel environment is already dynamic and thus needs to acquire mutex, that is too early in AP start sequence to work. Extract the code that should be executed only once, because it sets up global variables, from initializecpu() to initializecpucache(), and call the later only from hammer_time() executed on BSP. Now, TUNABLE_INT_FETCH() is done only once at BSP at the early boot stage. In collaboration with: Mykola Dzham <freebsd levsha org ua> Reviewed by: jhb Tested by: ed, battlez
* Use cons25w on pc98.ed2009-11-131-9/+9
| | | | Discussed with: nyan
* Convert {small prefix}BSD to TERM=xterm as well.ed2009-11-134-36/+36
| | | | | | Clean up the ttys files shipped with PicoBSD, NanoBSD and TinyBSD. While there, it seems one of them still had references to sio(4). Make it in sync with what we do in the base system.
* Convert syscons on i386 to TERM=xterm.ed2009-11-137-40/+18
| | | | | TEKEN_XTERM is now gone. Because we always use xterm mode now, we only need a TEKEN_CONS25 switch to go back to cons25.
* Split up etc.i386/ttys into a PC98 version as well.ed2009-11-132-2/+314
| | | | | | This means I can now convert syscons on i386 to xterm as well. Discussed with: nyan
* Note that nullok should not be used by processes that can't access thedes2009-11-131-0/+11
| | | | | | | password database. PR: bin/126650, misc/140514 MFC after: 1 week
* Remove part that HDMI is not implemented. It had different meaning andmav2009-11-131-2/+16
| | | | | | confuse users. Extend BUGS section. Add some supported chipsets.
* Fix the grammar in the isprint(3) description.roam2009-11-131-1/+1
| | | | | PR: 140456 Submitted by: Jeremy Huddleston <jeremyhu@apple.com>
* Fix the grammar in the isgraph(3) description, almost as per the PR.roam2009-11-131-1/+1
| | | | | | PR: 140455 Submitted by: Jeremy Huddleston <jeremyhu@apple.com> MFC after: 2 weeks
* Switch the default terminal emulation style to xterm for most platforms.ed2009-11-1315-54/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Right now syscons(4) uses a cons25-style terminal emulator. The disadvantages of that are: - Little compatibility with embedded devices with serial interfaces. - Bad bandwidth efficiency, mainly because of the lack of scrolling regions. - A very hard transition path to support for modern character sets like UTF-8. Our terminal emulation library, libteken, has been supporting xterm-style terminal emulation for months, so flip the switch and make everyone use an xterm-style console driver. I still have to enable this on i386. Right now pc98 and i386 share the same /etc/ttys file. I'm not going to switch pc98, because it uses its own Kanji-capable cons25 emulator. IMPORTANT: What to do if things go wrong (i.e. graphical artifacts): - Run the application inside script(1), try to reduce the problem and send me the log file. - In the mean time, you can run `vidcontrol -T cons25' and `export TERM=cons25' so you can run applications the same way you did before. You can also build your kernel with `options TEKEN_CONS25' to make all virtual terminals use the cons25 emulator by default. Discussed on: current@
* Use ncursesw to output the date field of vmstat displayume2009-11-132-2/+2
| | | | with multi-byte string, correctly.
* Correct another case of not doing 64bit math. This allows mine andps2009-11-131-1/+2
| | | | | | other raidz2 volumes to boot. Submitted by: Matt Reimer <mattjreimer@gmail.com>
* Don't disable the XGMAC's tx on ifconfig down. It is unnecessarynp2009-11-131-3/+3
| | | | | and can cause false backpressure in the chip. Fix a us/ms mixup while here.
* The 10GBASE-T card should use an IPG of 1. Also enable the checknp2009-11-132-3/+1
| | | | for low power startup on this card.
* Make sure *some* edc is setup even for an unknown transceiver (assumenp2009-11-131-2/+2
| | | | it is optical).
* sc->rev and is_offload(sc) will always be 0 during probe. Wait tillnp2009-11-131-6/+3
| | | | attach to get correct values.
* Although the file has "ex:ts=4", do some " " -> \t translationsedwin2009-11-121-23/+23
| | | | so that it is also nicely readable with ts=8.
* Add a missing check for Apple HFS partitions.rpaulo2009-11-121-0/+2
| | | | MFC after: 1 week
* Revert revision 199201 for now as it has introduced a kernel vulnerabilitydelphij2009-11-1211-146/+8
| | | | and requires more polishing.
* - Remove a redundant check for dpms(4).jkim2009-11-122-8/+4
| | | | - Test a cheaper function first.
* - Partially revert hackish r198964 and r199002.jkim2009-11-123-106/+145
| | | | | | | - Add a proxy driver vgapm to help vgapci to save/load VGA state. - Move device_set_desc() to the right place while we are here. Reviewed by: jhb
* We need to allocate space for the header in the create path also.rnoland2009-11-121-0/+3
| | | | | | | | | This fixes a null pointer dereference with "gpart create -s GPT" after the previous commit. Reported by: Yuri Pankov Pointyhat to: me MFC after: 1 week
* Add the possibility for vfs.root.mountfrom tunable to accept a list ofattilio2009-11-121-6/+15
| | | | | | | | | | | | | | items rather than a single one. The list is a space separated collection of items defined as the current one accepted. While there fix also a nit in a comment. Obtained from: Sandvine Incorporated Reviewed by: emaste Tested by: Giovanni Trematerra <giovanni dot trematerra at gmail dot com> Sponsored by: Sandvine Incorporated MFC: 2 weeks
* Provide a real fix to the too-many-translations problem when bootingnwhitehorn2009-11-121-56/+62
| | | | | | | | | | | | from CD on 64-bit hardware to replace existing band-aids. This occurred when the preloaded mdroot required too many mappings for the static buffer. Since we only use the translations buffer once, allocate a dynamic buffer on the stack. This early in the boot process, the call chain is quite short and we can be assured of having sufficient stack space. Reviewed by: grehan
* - We are not guaranteed that we're not dropping a reference thatume2009-11-121-11/+10
| | | | | | | | | | we did not add. Call LLE_REMREF() only when callout_stop() actually canceled a pending callout. - callout_reset() may cancel a pending callout. When callout_reset() canceled a pending callout, call LLE_REMREF() to drop a reference for the canceled callout. MFC after: 1 week
* Remove the explicit definition of inet_aton() as it was introduced as aattilio2009-11-121-103/+0
| | | | | | | | general function in r199208. Reported by: np Sponsored by: Sandvine Incorporated MFC: 1 week
* Add missing IEEE1394 support dropped during merge from NetBSD.ume2009-11-121-0/+11
|
* MFi386: revision 199104nyan2009-11-121-16/+62
| | | | Make isa_dma functions MPSAFE by introducing its own private lock.
* Fix cpu model for PODP5V83. It is P24T, not P54T.nyan2009-11-121-1/+1
| | | | | | | Also remove redundant 'Overdrive' word. Pointed out by: SATOU Tomokazu (tomo1770 at maple ocn ne jp) MFC after: 1 week
OpenPOWER on IntegriCloud