157653 Commits

Author SHA1 Message Date
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
xtraeme
91829be711 There's no need to use MSR_CPU_BROADCAST_READ in clockmod_getstate(),
because clockmod_setstate() will do it for us.
2007-03-21 05:27:49 +00:00
isaki
59684b33a0 Make it compilable with DEBUG. 2007-03-21 05:15:50 +00:00
dan
ce901237e7 teach bce(4) about being an rnd(4) source 2007-03-21 04:56:39 +00:00
jmcneill
ad0dc10411 Try not to free NULL pointers. 2007-03-21 04:52:14 +00:00
garbled
c81799dbbe Create /dev/residual on prep 2007-03-21 04:26:07 +00:00
xtraeme
00974998e3 Use the CPUID2STEPPING macro. 2007-03-21 04:17:59 +00:00
garbled
cfa6e1cb25 Add a read entry point to this driver. There are two minor devices
associated with this, 0, the nvram device, and now 1, the residual
device.  The devices allow the user to directly read the contents of the
kernel copy of the nvram, and the residual data respectively.  There is
no provision for write.
2007-03-21 04:13:53 +00:00
xtraeme
5da15c6409 Do not use cpu_id and cpu_feature, they are not available for i386
(or have different types), use CPUID.
2007-03-21 04:01:59 +00:00
dyoung
7663f13790 KNF. 2007-03-21 03:51:30 +00:00
dyoung
46abb5c0e8 Remove whitespace from ends of lines. 2007-03-21 03:39:41 +00:00
xtraeme
feef686ef0 Fix previous, use %zd. 2007-03-21 03:22:16 +00:00
dyoung
be7bb25d74 Make all debug messages use GRE_DPRINTF(). Get rid of a redundant
if_ierrors++.  Change (type *)0 to NULL.  Get rid of unnecessary
casts to void *.
2007-03-21 03:18:08 +00:00
macallan
fb308a7a59 - pass a sane boundary parameter to bus_dmamem_alloc
- sprinkle aprint_error()
2007-03-21 03:10:31 +00:00
christos
efa6baa28d return NULL instead of core-dumping when we could not open the services file/db 2007-03-21 02:35:39 +00:00
macallan
ea7f3505eb we return addresses, not page numbers in *mmap() methods 2007-03-21 02:11:44 +00:00
dyoung
271d77fa58 If we do not recognize the protocol of a received packet, then
increase ifi_noproto.  If the GRE header contains routing options,
increase the input-error count, ifi_ierrors.

While I am here, make some cosmetic changes: remove unnecessary
'proto' argument from gre_input3().  Shorten some staircases.
2007-03-21 01:56:05 +00:00
garbled
bbcca898c4 Add a second check to the prep-pci-intrmap test, to make sure the dictionary
actually contains entries.  It is apparently possible to get a non-null,
but empty dictionary back.  This seems to happen if you inject a ppb-card
on pci0 when you also have a prep pci1 at a later device function.  With
this, my fxp card works in any slot on my 7043-140.
2007-03-21 01:34:32 +00:00
xtraeme
7ec39d90bf Mention INTEL_ONDEMAND_CLOCKMOD option, bump date. wiz please review. 2007-03-21 00:56:31 +00:00
xtraeme
545c3b7ca9 Don't build msr_ipifuncs on Xen, fixes the build with XEN2_DOM0. 2007-03-21 00:16:52 +00:00
ad
d68cf1be1a - When signalling waiters, try not to awaken them immediatley. If we hold
the mutex that the waiters are using to synchronise, then transfer them
  to the mutex's waiters list so that the wakeup is deferred until release
  of the mutex. Improves the timings for CV sleep/wakeup by between 30-100%
  in tests conducted locally on a UP system. There can be a penalty for MP
  systems when only one thread is being awoken, but in practice I think it
  won't be be an issue.
- pthread_signal: search for a thread that does not have a pending wakeup.
  Threads can have a pending wakeup and still be on the waiters list if we
  clash with an earlier pthread_cond_broadcast().
2007-03-20 23:49:58 +00:00
ad
b0427b61fb - Maintain a per-thread pointer to the last mutex acquired by the app, to
be used only as as a hint. Clear the pointer when releasing the mutex.
- When releasing a mutex, wake all waiters. Makes it possible to tranfer
  waiters from another object to a mutex.
2007-03-20 23:33:10 +00:00
ad
e0fd341348 Changes to LWP wakeup:
- Don't bother sorting the sleep queues, since user space controls the
  order of removal.
- Change setrunnable(t) to lwp_unsleep(t). No functional change from the
  perspective of user applications.
- Minor cosmetic changes.
2007-03-20 23:25:17 +00:00
macallan
bbd6f83b09 fix a bunch of #include statements to make radeondrm and mach64drm compile 2007-03-20 22:12:14 +00:00
xtraeme
d59b97695d Erm, remove a local change committed accidentally in previous. 2007-03-20 21:30:27 +00:00
xtraeme
739956e2de ALL: Enable INTEL_ONDEMAND_CLOCKMOD.
GENERIC: Add INTEL_ONDEMAND_CLOCKMOD disabled by default.
2007-03-20 21:29:28 +00:00
xtraeme
2c3b13f126 Note addition of the x86/iclockmod driver. 2007-03-20 21:25:53 +00:00
xtraeme
28050fc1b5 Driver for Intel Thermal Monitor (feature TM) On-Demand Clock
Modulation.

This works by changing the duty cycle of the clock modulation,
and saves power and helps to not increase the temperature by
software.

Adapted from OpenBSD/FreeBSD's p4tcc.

To enable it one must use "options INTEL_ONDEMAND_CLOCKMOD".

Tested by me in UP and SMP, ok'ed by Matthew R. Green.
2007-03-20 21:22:03 +00:00
xtraeme
4b852b5e23 Use the new MSR IPI handlers to make it work properly with SMP. 2007-03-20 21:13:06 +00:00
xtraeme
b803090b66 Use the new MSR IPI handlers to make it work properly with SMP.
Tested by Daniel Carosone and Michael Van Elst.
2007-03-20 21:12:22 +00:00
xtraeme
32b7185652 MSR read and write IPI handlers for x86. A MSR will be read or written
in all CPUs available in the system. This adds another member
to struct cpu_info, ci_msr_rvalue; it will contain the value of the MSR
in a previous operation.

Tested with clockmod in UP and SMP by me, tested with est in SMP
by Daniel Carosone and Michael Van Elst.

Ok'ed by Andrew Doran and Matthew R. Green.
2007-03-20 21:07:38 +00:00
plunky
ac2ed142c1 discard inbound packets if the channel is not open 2007-03-20 20:25:24 +00:00
pooka
6d03fb0803 add support for permissions and file ownership 2007-03-20 18:30:30 +00:00
pooka
2bddbed0e0 export puffs version of namei ISLASTCN macro to userspace 2007-03-20 18:28:49 +00:00
pooka
1ba4b810d1 implement counterpart of vaccess() 2007-03-20 18:28:08 +00:00
pooka
a1e98c19f2 match puffs_node_access prototype with reality 2007-03-20 18:25:56 +00:00
drochner
2d9e04fc35 Import DRM drivers, brought into shape by Yorick Hardy, posted to tech-x11.
Minor modifications by me:
-use an mi device major number
-(coarsly) divided into pci card specific and less specific parts, moved
 the latter to dev/drm
-renamed autoconf attributes to reflect this
Todo:
-adapt all card frontends but i915 to drm include file location
-review the mtrr change
-make the change to agp_i810.c coexist with the fix for buggy VESA
 BIOSes which is commented out temporarily
-RCS IDs etc style stuff
-LKM support (rescan support for vga)
-test
2007-03-20 18:05:25 +00:00
garbled
f8ef9d1431 Add the slide device, and the special PCIIDE_SLIDE_SETIRQA option to set
the irq up properly for a RAVEN.  (So far, the only prep machines that
seem to have these chips are RAVEN's, so we should be ok here)
2007-03-20 17:20:59 +00:00
garbled
8e09750d58 The motorola RAVEN is both a pchb and an MPIC. Block out the pci
configuration of it's mem area to keep the PIC available.
2007-03-20 17:16:33 +00:00
drochner
a6fee167b2 allocate chracter dev major #180 for drm 2007-03-20 16:37:12 +00:00