Commit Graph

157842 Commits

Author SHA1 Message Date
gdt 1ecfe4dec1 Add apm emulation via acpi.
Enable cardbus attachment for lots of devices.  The drivers were
already compiled in via pci attachment, and GENERIC supports cardbus,
so there's no reason not to attach.

With this, GENERIC.MP works well on a Thinkpad T60.

(proposed on port-i386, no objections received)
2007-03-22 12:40:06 +00:00
njoly 6beba6f9d8 s/linux/linux32/ in warning messages. 2007-03-22 12:08:51 +00:00
vanhu 27187d08ab fixed subnet check to generate IPV4_ADDRESS when needed in sockaddr2id() 2007-03-22 10:26:19 +00:00
garbled ae2d0d18ae When we have a non-PReP pci bridge, we need to perform a single swizzle
on the pin, to get us the right pin on the underlying PReP bridge to wire
the interrupt to.  Tested with a 4-port fxp card on a 7043-140.  Thanks
to simon for helping me get the math right.
2007-03-22 08:23:10 +00:00
xtraeme efcf1e7924 Use __arraycount. 2007-03-22 06:00:33 +00:00
jmcneill 846be51501 Pull up misc radeon bug fixes from DRI. 2007-03-22 01:36:42 +00:00
xtraeme bd90d620b9 Add missing $ in the RCS ID. 2007-03-21 23:24:58 +00:00
dyoung aa85121e03 Make './MAKEDEV local' work as expected, whether we are counting
the number of /dev nodes or not.
2007-03-21 23:07:00 +00:00
xtraeme 5b08a540fa static'ify. 2007-03-21 22:52:14 +00:00
jmcneill 48e45911b6 printk -> printf 2007-03-21 22:44:28 +00:00
degroote 507fd51bd3 Call key_checkspidup with spi in network bit order in order to make correct
comparaison with spi stored into the sadb.

Reported by Karl Knutsson in kern/36038 .
2007-03-21 22:38:34 +00:00
jmcneill 4683f1b535 Pass a proper vaddr to uvm_mmap. 2007-03-21 22:24:57 +00:00
xtraeme 4535c92912 Remove the MSR read IPI handler from X86_IPI_NAMES and use the
correct number in X86_NIPI.
2007-03-21 22:23:15 +00:00
jmcneill ccbe7856ca Initialize extra AGP resource slots. 2007-03-21 22:16:45 +00:00
jmcneill 0f6e823d07 In drm_ioremap, provide extra slots for mapping AGP memory space; it's not
reasonable to assume that these regions will show up in a VGA BAR.
2007-03-21 22:15:59 +00:00
xtraeme ef049074f2 Remove unneeded headers. 2007-03-21 21:56:52 +00:00
dsl f99253cbf6 Somehow a single K&R function definition was lurking - nuke it. 2007-03-21 21:18:56 +00:00
macallan 1c4c684256 try to attach a drm 2007-03-21 20:54:30 +00:00
macallan fd3677f42a defflag RADEONFB_DEBUG and MACHFB_DEBUG, pull in drm for both, pull in edid
for machfb
2007-03-21 20:52:41 +00:00
macallan 62ee0604ec use EDID data passed as property when present
This should allow radeonfb to do The Right Thing on Macs that use non-
standard video timings and have built-in monitors that don't provide data
via DDC since those usually have an EDID block in the OF tree.
2007-03-21 20:48:07 +00:00
erh de96a26e31 Allow the -l (long format) option to be used with pkill too. 2007-03-21 20:05:18 +00:00
pooka 4370dd6320 check puffs_access_{chmod,chown,times} in setattr 2007-03-21 19:56:49 +00:00
pooka 0f28e7c1d1 add routiens which check against ufs semantics for permission to
chown, chmod and change a/mtime
2007-03-21 19:55:55 +00:00
xtraeme b5e7260b5f Mention options(4) in last item... suggested by hubertf@. 2007-03-21 19:30:55 +00:00
xtraeme d79325bc2e Mention machdep.clockmod for INTEL_ONDEMAND_CLOCKMOD. 2007-03-21 19:29:30 +00:00
ad 1dd83d7758 Move PTHREADD_ADD(PTHREADD_COND_WOKEUP) back to the correct spot. 2007-03-21 19:08:18 +00:00
ad a63c21f286 PR lib/34931: PTHREAD_ATTR(3) doesn't document PTHREAD_CREATE_JOINABLE and
PTHREAD_CREATE_DETACHED macros. From Matthew Mondor.
2007-03-21 18:53:32 +00:00
xtraeme 6e5117d74f typo 2007-03-21 18:28:26 +00:00
ad 6594c9ccdc NetBSD 4.99.16 - struct lwp changed. 2007-03-21 18:28:13 +00:00
ad fed1793605 Improvements to lwp_wait1(), for PR kern/35932:
- Better detect simple cycles of threads calling _lwp_wait and return
  EDEADLK. Does not handle deeper cycles like t1 -> t2 -> t3 -> t1.
- If there are multiple threads in _lwp_wait, then make sure that
  targeted waits take precedence over waits for any LWP to exit.
- When checking for deadlock, also count the number of zombies currently
  in the process as potentially reapable. Whenever a zombie is murdered,
  kick all waiters to make them check again for deadlock.
- Add more comments.

Also, while here:

- LOCK_ASSERT -> KASSERT in some places
- lwp_free: change boolean arguments to type 'bool'.
- proc_free: let lwp_free spin waiting for the last LWP to exit, there's
  no reason to do it here.
2007-03-21 18:25:59 +00:00
xtraeme 6ae05af027 - Remove ci_msr_rvalue, it's not useful anymore as yamt@ pointed out.
- Remove completely debug from msr_ipifuncs, now it's known to work.
2007-03-21 18:20:59 +00:00
drochner cd09748288 remove a debug printf which I had left in accidentally,
print the standard "dv_xname: interrupting at ..." line instead
2007-03-21 17:45:18 +00:00
drochner d414de4f1a since no boundary restrictions apply, a zero boundary argument to
bus_dmamem_alloc() is the right thing
2007-03-21 17:15:53 +00:00
drochner 7a0663bdb7 revert previous - it doesn't work on i386 at least 2007-03-21 17:01:56 +00:00
isaki ff418f03d1 Fix mis-substitution of RCS Id, and avoid it.
Reviewed by wiz@.
2007-03-21 15:02:08 +00:00
uwe fc61a45d33 There are only 32 bits in a VA, not 33 - sync comment with this harsh reality. 2007-03-21 14:50:43 +00:00
vanhu 002f3b4723 checks if arg is NULL in SCHED_KILL 2007-03-21 14:37:58 +00:00
vanhu 452cfb7edf NULL sched check is now done in SCHED_KILL 2007-03-21 14:29:22 +00:00
vanhu 43c152a498 checks if arg is NULL in SCHED_KILL 2007-03-21 14:28:59 +00:00
tsutsui 19daf5ad0b Cleanup handling of quikrs on each RealTek chip:
- replace rtk_type member in rtk_softc which has chip types
  with new rtk_quirk that represents quirks on each chip:
  - RTKQ_8129           doesn't have internal MII (used in rtk(4))
  - RTKQ_8139CPLUS      has different register layout (for re(4))
  - RTKQ_8169NONS       (original 8169) requires some settings on init
  - RTKQ_PCIE           requires different settings in setmulti
  so that we don't have to check each hwrev values or types everywhere
  and newer variants will also work without changes if they don't
  have other quirks
  (sc_rev is unchenged for now for reference to the Realtek's driver)
- don't check hwrev register in re_pci_match() but check
  only PCI_VENDER(), PCI_PRODUCT() and PCI_REVISION()
  so that we no longer have to map pci space there
- add a new HWREV value for another 8168 variant
- try to map PCI mem space more properly
- remove (probably unneeded) ifp->if_baudrate initialization

Tested on a newer 8168 variant by Dennis den Brok on tech-kern,
and also tested on 8139 and 8169C on macppc, and 8139C+ on landisk
by me.
2007-03-21 12:17:31 +00:00
tsutsui 298a18f6e7 Apply MI softintr(9) patch before it becomes rotten. Untested.
See also:
http://mail-index.netbsd.org/port-atari/2007/03/07/0000.html
2007-03-21 10:56:26 +00:00
tsutsui 1a9fc2f390 Use make some void * variables char * instead of sprinkling casts
for pointer arithmetics.
2007-03-21 10:26:19 +00:00
wiz 5c538d8a46 New sentence, new line. Sort SEE ALSO. Fix Xrefs. 2007-03-21 07:08:14 +00:00
wiz d536a41fdd Sort SEE ALSO. 2007-03-21 07:07:03 +00:00
wiz 43378ed02e Fix xref, sort SEE ALSO. 2007-03-21 07:06:44 +00:00
wiz 6e6a560b22 Drop trailing whitespace. 2007-03-21 07:04:09 +00:00
wiz cda43070d3 Bump date for previous. 2007-03-21 07:03:18 +00:00
xtraeme 14d38361d8 Disable debug. 2007-03-21 06:50:36 +00:00
xtraeme bfde31a42f Remove the MSR read IPI handler, there won't be any driver that will
use it, and we can see if the values are ok in the CPUs in the write
operation.

Suggested by YAMAMOTO Takashi.
2007-03-21 06:36:42 +00:00
plunky 3d47fad4b8 disallow sending command packets of unexpected length 2007-03-21 06:22:07 +00:00