Commit Graph

106061 Commits

Author SHA1 Message Date
pooka
316bb4eafe * print interface number, backend path and ethernet address for dmesg
* make kassert more demanding
2010-07-29 22:48:11 +00:00
jruoho
988469445d Add a per ACPI CPU mutex for C-states. Protect the _CST update with this:
when the idle-information is being updated (e.g. due acpiacad(4) events),
we can not enter the idle-loop. The lock must run at the same priority
(IPL_NONE) as ACPICA's mutexes obtained via AcpiOsCreateMutex() a.k.a.
AcpiOsCreateSemaphore(). Also check want_resched as the first thing and
clarify the suspend/resume path.

There is still one race condition identified: when the driver is loaded as a
module, we must gracefully kick all CPUs out from the ACPI idle-loop upon
detachment.
2010-07-29 22:42:58 +00:00
pooka
334470517a * increase bus size so that we don't wrap so quickly when NFS
flushes writes
* verbosize debug print a bit
2010-07-29 18:30:39 +00:00
njoly
dce6462ccf Regen for Intel LPC updates. 2010-07-29 18:16:33 +00:00
njoly
cd15d85b91 Adjust ICH10 watchdog timer entries which are really LPC interface
bridges. While here consistently use `xxx LPC Interface Bridge' for
Intel products.
2010-07-29 18:15:01 +00:00
njoly
997cfa70d2 Regen for Matrox MGA G200eW. 2010-07-29 17:54:14 +00:00
njoly
ce318f81d9 Add Matrox MGA G200eW. From OpenBSD. 2010-07-29 17:53:19 +00:00
hannken
ecb633e650 Correct previous. Skip marker pages in uvm_pagelookup().
Already awake :-)
2010-07-29 15:13:00 +00:00
pooka
a481b222d2 Remove questionable KASSERT from previous. hannken can look at
this more closely when he wakes up.  Normally I wouldn't be in such
a huge rush, but due to atf bug #53 the whole test run breaks now.
At least with the KASSERT removed all tests pass again.
2010-07-29 15:04:04 +00:00
pgoyette
100b434aef When interpreting the alarm bits from the chip, don't report state for
any thresholds which have not been set.  Fixes problem reported by
njoly@ in private E-mail, where chip was initialized with only a Critical
threshold, but was reporting a warning.
2010-07-29 13:07:14 +00:00
njoly
5cafa81808 Cleanup hardware monitor limits retrieval. Do use the softc variables
to be filled by sdtemp_get_limits() directly.

ok pgoyette.
2010-07-29 12:01:21 +00:00
jruoho
18bb71aebc Remove the custom enter_s4_with_bios(). Use ACPICA's native
AcpiEnterSleepStateS4bios() instead. Minimum functional change.

ok jmcneill@
2010-07-29 11:40:08 +00:00
jruoho
2ef2de7924 Refactor to make this more readable. No functional change. 2010-07-29 11:03:09 +00:00
hannken
c84e81cad1 Add vm page flag PG_MARKER and use it to tag dummy marker pages
in genfs_do_putpages() and uao_put().
Use 'v_uobj.uo_npages' to check for an empty memq.
Put some assertions where these marker pages may not appear.

Ok: YAMAMOTO Takashi <yamt@netbsd.org>
2010-07-29 10:54:50 +00:00
cegger
6e8417c157 add RDTSCP_AUX MSR 2010-07-29 08:16:49 +00:00
jruoho
a240caeadb Add "pnp0c14" to the list of HIDs. Required for LG X110. As valid EISA IDs
should be all upper case, leave this as a onetime quirk specific to acpiwmi(4).
2010-07-29 07:10:39 +00:00
msaitoh
08745d8602 The ETHERCAP_VLAN_HWTAGGING flag is not a member of if_cap but ec_cap,
so fix it.
2010-07-28 23:30:21 +00:00
macallan
c0fdba0919 try to synchronize %tick registers across CPUs during startup
this should take care of a lot of clock-gone-backwards problems I've seen on
my Blade 2500
2010-07-28 21:34:57 +00:00
jruoho
c28dcae1e0 Get rid of SYSCTL_SETUP.
We want the sysctl variables also when mqueue(3) is loaded as a module.
2010-07-28 20:49:12 +00:00
pgoyette
e2679ccb18 Fix a typo (missing digit) in chip name table. 2010-07-28 18:43:10 +00:00
jruoho
c0c31ce929 Use acpi_eval_set_integer(), KNF. No functional change. 2010-07-28 18:10:31 +00:00
jym
a511dc0633 Enable the NX bit feature early in i386 MP trampoline code (do not rely on
cpu_init_msrs() to do it). Having NX bit set on a page will raise a #GP
on fetch if NXE is not enabled, which can happen early when structures
(like idlelwp) are allocated with just rw- rights.

NX is enabled with PAE (if host supports it).

Exact same issue as for amd64, some weeks ago. Same player, shoot again...
2010-07-28 17:05:51 +00:00
jruoho
cc2aad5da2 Remove also the HIDs from previous. 2010-07-28 16:29:11 +00:00
jruoho
c1b6b639ac Remove the homegrown attempt to match the parent PCI bus. This was only used
for descriptive purposes, and for such purposes the ACPIVERBOSE output is
much better.
2010-07-28 16:26:56 +00:00
jruoho
0df7185e13 Remove leftovers from the aiboost(4) removal. 2010-07-28 16:02:33 +00:00
hannken
3a7edffde9 ext2fs,ffs: free on disk inodes in the reclaim routine.
Remove now unneeded vnode flag VI_FREEING.

Welcome to 5.99.38.

Ok: Andrew Doran <ad@netbsd.org>
2010-07-28 11:03:47 +00:00
hannken
4d87516177 Regen. LK_INTERLOCK is gone. 2010-07-28 09:32:13 +00:00
hannken
24fa034661 Remove now unneeded flag LK_INTERLOCK. 2010-07-28 09:31:00 +00:00
hannken
2ac44efee2 Modify vn_lock():
- Take v_interlock before examining v_iflag
- Must always be called without v_interlock taken,
  LK_INTERLOCK flag is no longer allowed.
2010-07-28 09:30:21 +00:00
msaitoh
5112be368f regen. 2010-07-28 00:00:11 +00:00
msaitoh
e595ecc12f Add Quatech, System Base, Pcre Systems and Syba Tech. 2010-07-27 23:56:29 +00:00
jakllsch
95ea24f1a1 Use use 64-bit DMA tag (where available and supported) for ahcisata.
Avoid the possible ATI SB600 64-bit DMA problem.
2010-07-27 22:27:52 +00:00
jakllsch
5630ecd473 Support detachment of ahcisata(4).
Use use 64-bit DMA tag (where available) for ahcisata(4) at jmide(4).
Beginnings of detach/resume support for jmide(4).
Sprinkle static.  Misc. little changes.
2010-07-27 22:07:50 +00:00
jakllsch
184db2acdc Use 64-bit DMA tag (if available) on PCI-E re(4) NICs. 2010-07-27 21:48:41 +00:00
jakllsch
e6977ed4d1 No need to store map size locally now. 2010-07-27 21:05:04 +00:00
jakllsch
28b0c5a3fd Make the Realtek PCI network interfaces detachable.
Use __arraycount to avoid null table entries.
Miscellaneous other touch-ups in bus front-ends.
2010-07-27 21:02:00 +00:00
jakllsch
0117c2837f Tune ugen(4) isochronous parameters to better support high speed pipes.
Fixes PR#43159.

Justification:

UGEN_NISORFRMS, previously 4, is now 8 because that's the number of
microframes per frame on a high speed bus.  This allows data to be
transfered every microframe if necessary.

UGEN_NISOREQS, previously 6, is now 4.  This is harder to justify,
but I didn't think the total number of buffer frames needed to be
much more than it was.

UGEN_NISOFRAMES, previously 500, is now (UGEN_NISORFRMS * UGEN_NISOREQS)
(32 with values as above).  This is all the more we've actually used.
2010-07-27 20:20:46 +00:00
jakllsch
a72d5a5dfe Make debugging code compile on LP64. 2010-07-27 19:44:16 +00:00
jakllsch
792148e6de Use bus_addr_t for physical addresses.
For some reason the driver will put virtual addresses in these variables,
so I'd say this still not quite right.  Oh well, at least it compiles on LP64.
2010-07-27 19:40:16 +00:00
jakllsch
b034386738 Rework debug printf invocation to not fail on LP64 so easily. 2010-07-27 19:31:55 +00:00
jakllsch
1a808dfbe7 Print size_t with 'z' in debug code. 2010-07-27 18:50:32 +00:00
drochner
d8c815f3cd do a port reset between initial device descriptor fetch and
address assignment - not required by the spec but Windows does so,
fixes a problem with a Sun Keyboard reported by Jonathan Perkin,
verified by Jonathan Kollasch
2010-07-27 16:15:30 +00:00
pgoyette
9e9cac1c34 Use __arraycount(). No functional change. 2010-07-27 15:16:16 +00:00
jakllsch
5da0f05200 printf() size_t with 'z' format modifier in debug code. 2010-07-27 14:34:33 +00:00
jakllsch
359dcd7f55 Use 'z' printf format modifier to print size_t in debug code. 2010-07-27 14:25:23 +00:00
jakllsch
33a98ca057 Use %zu instead of %d for size_t.
Just in case anyone ever debugs se(4) on LP64.
2010-07-27 14:04:55 +00:00
jakllsch
8688cfe5da Make MRT6DEBUG compile on LP64 by using ptrdiff_t printf() format specifier. 2010-07-27 13:59:40 +00:00
jakllsch
3bf76dbade Allow BUS_SPACE_DEBUG to compile on amd64. 2010-07-27 13:54:19 +00:00
martin
e5dd924fda Make it compile again 2010-07-27 08:07:36 +00:00
jruoho
1d37b0a731 Add a quirk for pgoyette@'s old (ACPI 1.0) NVIDIA board.
It was analyzed that this DSDT busy-loops some unknown PCI memory regions in
several places. Because the regions are apparently almost constant, this
causes several conditions where the interpreter might enter into an infinite
loop. Luckily ACPICA detects this and rightly spams AE_AML_INFINITE_LOOP
warnings.

Not much we can do. Declare as broken beyond repair. Set acpi_force_load=1
to use ACPI or use a custom DSDT.
2010-07-27 06:14:37 +00:00