njl
1a9ff39b00
Document a sysctl.
...
Submitted by: Craig Rodrigues <rodrigc@crodrigues.org>
2004-03-05 18:08:23 +00:00
njl
27ea45097f
A user can set tz_requested via the hw.acpi.thermal.tzX.active sysctl.
...
The previous logic meant that if a user sets it to a minimal cooling value
acpi_thermal will not use higher cooling levels. Reverse the logic so that
the user requesting a level (say, 2) also gets 0 - 1 also.
PR: kern/61592
Submitted by: Andrew Thompson <andy@fud.org.nz>
2004-03-05 18:06:31 +00:00
phk
ffadc40d66
Implement a crude but functional usbd_ratecheck() to limit the number
...
of "usb0: %d scheduling overruns" messages I have to contend with.
2004-03-04 20:49:03 +00:00
sos
c1c4026c1a
Only setup sii_reset on sii311[24].
2004-03-04 16:39:59 +00:00
thomas
b924bcd144
Use auto-sense data provided by the lowlevel ATA code.
2004-03-04 15:37:39 +00:00
bms
425e7490f5
Nursemaid: Fix tinderbox builds by removing the shadowing of the global
...
preprocessor macro DEBUG. DEBUG() -> CTAU_DEBUG().
2004-03-04 14:16:12 +00:00
sanpei
94e7c6c5ef
Sync to 1.165 of usbdevs
2004-03-04 07:22:30 +00:00
sanpei
a88951ea76
Add support SimpleTech UCF-100 USB CompactFlash reader(OnSpec Electronic, Inc.)
...
PR: kern/63619
Submitted by: Greg Rivers <gcr@sa.fedex.com>
MFC after: 1 week
2004-03-04 07:20:48 +00:00
njl
17bb63efbc
Fix an off-by-one error and rework our EC space handler. Writing to address
...
0xFF would fail previously as AE_BAD_PARAMETER. It's unknown if this caused
any actual problems.
2004-03-04 05:58:50 +00:00
njl
e46b6ea21b
Don't disable Cx support and throttling on machines with a P_BLK_LEN != 6
...
even though the spec mandates this. Some have a value of 5 to indicate
throttling + C2 and some have 7 to indicate an extra C3 state. Support
throttling if the value is >= 4, C2 for >= 5, and C3 for >= 6.
2004-03-04 05:17:52 +00:00
njl
2b5556f4cf
Add a "quirks" value to disable quirks handling for a given boot.
...
Also, disable quirks if booting with a custom DSDT. Add a quirk
to disable loading ACPI so known bad systems can be completely
blacklisted.
2004-03-04 04:42:59 +00:00
njl
902e092d18
Change to acpi_{Get,Set}Integer to provide both methods. Convert all
...
callers to the new API.
Submitted by: Mark Santcroos <marks@ripe.net>
2004-03-03 18:34:42 +00:00
obrien
46cde00b03
Peter prefers it this way, bde might also[*]. I just want to have a chance
...
of working on amd64 for vmware use.
[*] bde will probably not like either version...
2004-03-03 08:33:34 +00:00
obrien
b64f46d773
Prefer uintptr_t to intptr_t.
2004-03-03 08:27:33 +00:00
obrien
f213ad5896
Use a long as the opaque type so that it matches the size of a pointer
...
on both 32-bit and 64-bit platforms.
2004-03-03 08:24:31 +00:00
obrien
dc67216992
Adjust lnc(4) for 64-bit platforms should it get newbus'ified.
2004-03-03 06:54:26 +00:00
obrien
1c15117450
Adjust ed(4) for 64-bit platforms should it get newbus'ified.
2004-03-03 06:48:42 +00:00
obrien
900a25b95b
Use a long as the opaque type so that it matches the size of a pointer
...
on both 32-bit and 64-bit platforms.
2004-03-03 06:20:36 +00:00
obrien
3cba815b88
Add memory barrier routines for AMD64.
2004-03-03 06:19:03 +00:00
obrien
7aec91557a
Cast thru intptr_t on the way to void* for success on 64-bit platforms.
2004-03-03 06:18:29 +00:00
njl
3baf2d6bee
Add support for quirks for acpi tables. Key off OEM vendor and revision.
...
Sort acpi debug values. Change "disable" to "disabled" to match rest of
the kernel. Remove debugging from acpi_toshiba since it was only used for
probe/attach.
2004-03-03 03:02:17 +00:00
phk
4c53114daa
Make swapbacked md(4) devices respect the -x and -y emulation arguments.
2004-03-02 20:13:23 +00:00
peter
28abf2fd58
Add new Matrix Orbital LCD panel id's so that they are recognized and
...
attached via uftdi->ucom.
2004-03-02 19:03:26 +00:00
peter
7fe91e1dcd
Regen
2004-03-02 19:01:56 +00:00
peter
80ed420253
Add some device id's for Matrix Orbital's newer LCD panels. These use
...
another ftdi usb->serial bridge with different ID's.
2004-03-02 19:01:30 +00:00
rik
e6b8b40794
1. Fix compilation and panic while system boot problem after makedev was
...
changed to unde2dev.
Approved by: imp (mentor)
2004-03-02 16:44:07 +00:00
rik
fe4ee75f22
1. Renames NCT constant to NCTAU. This will help while MFC to 4 branch.
...
2. Fix compilation and panic while system boot problem after makedev
was changed to unde2dev.
Approved by: imp (mentor)
2004-03-02 16:39:40 +00:00
sos
6b843cff78
If being verbose in the autosense code, print the original error.
2004-03-02 16:16:54 +00:00
sos
3090a1eb47
Report the original command on failures that causes auto sense.
...
Keep the ATA_R_QUIET flag if set during autosense.
2004-03-02 14:05:12 +00:00
sos
20140d6615
Fix getting progress data for some device in yet another way.
...
Take advantage of the new autosense logic.
2004-03-02 14:03:43 +00:00
julian
3119ae0df5
When we get a packet error, move on, don't go into an infinite loop
...
looking at it.
fixes at least one cause of "hanging" due to this driver.
2004-03-02 05:43:42 +00:00
julian
54fa486da2
Whitespace changes to match rest of file..
2004-03-02 01:46:34 +00:00
scottl
08eaf5dabb
Change another pointer name that was missed in the previous commit.
...
Spotted by: njl
2004-03-01 21:45:49 +00:00
scottl
d3341e79a8
Check and free the actual pointer the was used in a malloc instead of
...
checking and freeing a different pointer that may or may not have been
assigned the same value. This should fix panics under load that were
recently reported.
2004-03-01 21:27:14 +00:00
sos
16b335106f
Remember to mtx_destroy mutexes.
2004-03-01 13:17:07 +00:00
njl
f373398488
Add the ACPI standard video extensions driver. I've done some style cleanup
...
but a bit more reamins to be done. For now, it is usable.
Submitted by: Taku YAMAMOTO <taku@cent.saitama-u.ac.jp>
2004-03-01 08:12:56 +00:00
ticso
fe22b3cc39
add driver for BWCT console management serials
2004-03-01 02:34:49 +00:00
cperciva
3b41514956
Use DEV_BSIZE byte sectors instead of PAGE_SIZE byte sectors for
...
swap-backed memory disks. This reduces filesystem allocation overhead
and makes swap-backed memory disks compatible with broken code (dd,
for example) which expects to see 512 byte sectors. The size of a
swap-backed memory disk must still be a multiple of the page size.
When performing page-aligned operations, this change has zero
performance impact.
Reviewed by: phk
Approved by: rwatson (mentor)
2004-02-29 15:58:54 +00:00
phk
355cdf2848
Remove unused FDNUMTOUNIT() macro
2004-02-29 10:21:40 +00:00
sos
3c49599da8
Rearrange sense_key and sense_data to get alignment right.
...
Submitted by: Marcel
2004-02-29 09:35:29 +00:00
scottl
28681e97b0
All three of these drivers abused cv_waitq_empty in the same way by spinning
...
on it in hopes of making sure that the waitq was empty before going on.
This wasn't needed and probably never would have worked as intended. Now
that cv_waitq_empty() and friends are gone, the code in these drivers that
spins on it can go away too. This should unbreak LINT.
Discussed with: kan
2004-02-29 09:26:01 +00:00
njl
82f38cdbc5
Call _INI on Thermal Zones as well as devices.
2004-02-28 22:43:18 +00:00
phk
1208feeaed
Add a generic watchdog facility which through a single device entry
...
in /dev controls all available watchdog implementations.
2004-02-28 20:06:59 +00:00
truckman
0810203f40
Create a new mutex type for virtual channels. This allows us to get
...
rid of the MTX_DUPOK flag on channel mutexes, which allows witness to
do a better job of lock order checking. Nuke snd_chnmtxcreate() since
it is no longer needed.
Tested by: matk
2004-02-28 19:47:02 +00:00
truckman
9389696e89
Lock channels only as necessary in dsp_ioctl(), and only lock one
...
channel at a time unless it is actually necessary to lock both.
This avoids problems with lock order reversal and malloc() calls
with a mutex held when lower level code unlocks a channel, calls malloc(),
and relocks the channel. This also avoids the cost of some unnecessary
locking and unlocking.
Tested by: matk
2004-02-28 19:42:48 +00:00
scottl
8337abed61
Switch from using mutexes to using semaphores to protect against early
...
completion of synchronous commands. Also switch to a per-array bioq as it
appears to improve performance.
Submitted by: mbr, imp.ch (bioq change)
2004-02-28 19:14:41 +00:00
sos
8b2299dc54
Issue a request sense command automagically when ATAPI commands fail
...
with a valid sense key.
2004-02-28 17:47:27 +00:00
sanpei
33fa1d295f
Sync to 1.163 of usbdevs
2004-02-28 00:15:08 +00:00
sanpei
feba0af553
add support DM9601(DAVICOM USB to Ethernet MAC Controller with Integrated 10/100 PHY)
...
- Corega FEther USB-TXC
PR: kern/62932
Submitted by: HASHI Hiroaki <hashiz@tomba.cskk-sv.co.jp>
Obtained from: NetBSD
2004-02-28 00:12:47 +00:00
phk
1ca01a5f39
Make mode setting with fdcontrol(8) stick.
...
Recognize when configured for "auto".
2004-02-25 13:44:58 +00:00