Commit Graph

104305 Commits

Author SHA1 Message Date
mrg 09c1408d7c - pay attention to the "no-streaming-cache" flag.
- minor re-structure so this looks a little more like psycho.c.
2010-03-11 03:30:16 +00:00
mrg db7dad6e7e convert to CFATTACH_DECL_NEW(). 2010-03-11 03:12:42 +00:00
uwe bfdd7a7c6e Bump SYMTAB_SPACE so that the contents fits again. 2010-03-11 02:21:41 +00:00
darran 33bc31b9e2 DTrace: fix a build problem for the SDT provider. 2010-03-10 23:40:53 +00:00
dyoung 4b936f667e This is *always* compiled with #define rbus 1, so get rid of the
conditional compilation.

Simplify interrupt (dis)establishment by two source transformations:

-       cardbus_intr_disestablish(cc, cf, ih);
+       Cardbus_intr_disestablish(ct, ih);

-       ih = cardbus_intr_establish(cc, cf, ...);
+       ih = Cardbus_intr_establish(ct, ...);

Tested by me.
2010-03-10 21:00:36 +00:00
bouyer 0aa12b3498 Fix apm(4) suspend/resume:
- apm_suspend() and apm_standby() will call splhhigh() before entering
  standby or suspend. After resume, the system go back tsleep()ing
  in the apm thread without restoring the ipl (this is done in
  apm_resume()), and calling tlseep() at IPL_HIGH cause a DIAGNOSTIC
  panic (and other bad things, I guess).
  Fix by calling apm_resume() from within apm_suspend() or apm_standby(),
  after aa_set_powstate() has returned.
- In apm_event_handle(), we test (apm_standbys || apm_suspends) to set
  apm_damn_fool_bios to 1 and break the while() loop in apm_periodic_check().
  But we set apm_standbys or apm_suspends to non-0 only if apm_op_inprog
  is 0 and we failed to record the apm event. With apmd listening
  we usually succeed recording the event, so apm_standbys/apm_suspends remains
  0 and we never go out of the while() loop.
  Fix by apm_op_inprog instead of (apm_standbys || apm_suspends)
  to break the loop.
2010-03-10 20:30:00 +00:00
bouyer d8c4fc9544 ahcisata_core.c 1.23 cause long drive probe (31s, reported by
Roy Marples), or other devices misbehavior probably due to interrupts issues
(reported by Jukka Ruohonen). Back it out and do the following changes:
- clear port interrupt register before ahci_channel_start() which enables
  interrupts
- wait 500ms after sata_reset_interface() before touching SERROR register.
  This is what seems to fix the issue I'm seeming on ESB2 controller.
- The 31s delay didn't cause the probe to fail because of a mismatch
  in loop index comparison; use a #define for delay after reset
  instead of numeric values, to avoid this kind of bugs in the
  future.
2010-03-10 19:23:57 +00:00
skrll e52678ceba More comment improvement. 2010-03-10 18:53:40 +00:00
kiyohara ca66853e78 Remove white-spaces. 2010-03-10 18:28:30 +00:00
kiyohara 5e9a0d7ca4 Remove unnecessary function declarations. 2010-03-10 18:18:47 +00:00
skrll 3a1cc5030b Comment improvements. 2010-03-10 18:17:42 +00:00
kiyohara f71dd09b72 Remove white-spaces.
Indent.
2010-03-10 18:06:57 +00:00
kiyohara 5cf42f3927 Assorted spelling/capitalization fixes from Igor Sobrado in PR kern/22595.
Remove multiple njata.
Add uthum, udl, stuirda, uchcom, uberry, u3g, ugensa, uvideo.
2010-03-10 17:40:31 +00:00
kiyohara e5ad71567c Assorted spelling/capitalization fixes from Igor Sobrado in PR kern/22595.
=============================================================================
2010-03-10 17:25:21 +00:00
msaitoh ffa7a0568e 82576 is dual port, so check the FUNCID and increment the MAC address for
the 2nd port.
2010-03-10 15:04:04 +00:00
jruoho 2aba95133a Move the ACPI_ACTIVATE_DEV block to one place. While there, provide missing
prototype for a function, try to make the code more simple, guard against a
potential NULL pointer dereference, and improve printing.

No functional change intended.
2010-03-10 09:42:46 +00:00
jruoho f26ee18df3 Some pretty printing for ACPIVERBOSE. 2010-03-10 08:12:44 +00:00
mrg 599646785c XXX: workaround we'd like to remove when pmap / uvm locking is cleaned up:
- rename pseg_get() and pseg_set() to pseg_get_real() and pseg_set_real().
- if USE_LOCKSAFE_PSEG_GETSET is defined, which it current is by default,
  define pseg_[gs]et() in terms of functions that take a new pseg_lock
  mutex at IPL_VM while calling into the real functions.

this seems to avoid the pseg_set() crashes we've seen:
  1 - spare needed, when pseg_get() just worked for this pmap
  2 - the 2rd ldxa via ASI_PHYS_CACHED in pseg_set() loads garbage
      into %o4, and causes the 3rd ldxa to fault
2010-03-10 06:57:22 +00:00
macallan a39bec69a6 - move register definition in their own header, reduce magic numbers
- get geometry and framebuffer layout from the chip instead of hardcoding
- get rid of some now superfluous leftovers
- remove some debug code
- clean things up a bit
- dump registers with WCFB_DEBUG even if we're not the console
2010-03-10 05:16:17 +00:00
macallan 032bd8f14e enable wcfb now that it's actually useful
This driver has been tested on Sun XVR-500 and XVR-1200 boards but it should
work on most ( all? ) Wildcat-based boards.
2010-03-10 03:11:49 +00:00
macallan 6a17dc44f2 forgot to include opt_wsdisplay_compat.h for WSDISPLAY_SCROLLSUPPORT 2010-03-10 02:41:02 +00:00
dyoung dc1ff0bc8e This is *always* compiled with #define rbus 1, so get rid of the
conditional compilation.

Simplify interrupt (dis)establishment by two source transformations:

-       cardbus_intr_disestablish(cc, cf, ih);
+       Cardbus_intr_disestablish(ct, ih);

-       ih = cardbus_intr_establish(cc, cf, ...);
+       ih = Cardbus_intr_establish(ct, ...);

Tested by Klaus Heinz.
2010-03-10 00:21:10 +00:00
macallan 5374e24fd8 now we also draw a cursor 2010-03-09 23:17:12 +00:00
jym d0a75a07db Although Xen's documentation states that the address_bits field is not used
by XENMEM_decrease_reservation, it is checked by the hypervisor. In certain
circumstances (stack leak), the field could have an improper value, leading
to a fail of the hypercall.

Set it to 0 ("no addressing restriction") to avoid that.

Patch tested by Sam Fourman and haad@.

This should fix the rare "failed allocating DMA memory" encountered
under NetBSD dom0. Will ask for a pull-up.
2010-03-09 23:12:06 +00:00
macallan af1ec92289 Use a shadow framebuffer instead of doing every operation twice ( once for
each framebuffer ) - this gives quite a dramatic speedup and hides the funky
effects previously seen.
Almost there, now we need to actually draw a cursor.
2010-03-09 22:45:50 +00:00
matt 3022f6d3b6 Add BookE modifications to cpu_info 2010-03-09 22:41:03 +00:00
matt 1f9cc4c264 Include BookE version of pmap.h 2010-03-09 22:40:06 +00:00
matt 8b3b8c4851 Add initial versions of these for BookE. 2010-03-09 22:39:32 +00:00
matt 7cd69c568c Add BookE variation of MSR. 2010-03-09 22:37:47 +00:00
matt f46a80a66c Put ASM RCSIDs into .ident 2010-03-09 22:36:41 +00:00
matt 2bc030d433 Add PPC BookE files. 2010-03-09 22:35:50 +00:00
matt d442abeaba Add PPC_BOOKE cputype and booke files. 2010-03-09 22:35:12 +00:00
jruoho 320e1e3fb8 Remove the namespace scopes.
These are neither used nor useful beyond the parser and interpreter.

ok jmcneill@, joerg@
2010-03-09 18:15:21 +00:00
hubertf 66306fcc6c Add etherip(4), commented out 2010-03-08 22:51:52 +00:00
skrll 9ea33502ce Set the frame pointer of newly created and function changing LWPs to 0
for the benefit of DDB.
2010-03-08 14:52:29 +00:00
jruoho cc5a93f703 Add missing (FreeBSD) license. Ok jmcneill@. 2010-03-08 12:35:08 +00:00
pooka ce24d5b7db attempt to know my a-b-c's 2010-03-08 12:30:04 +00:00
pooka f50cf92e3a support mfs 2010-03-08 12:29:01 +00:00
pooka ffc8ba1227 mfs miniroot is mandatory 2010-03-08 12:17:45 +00:00
cnst a129d2bf19 register aibs(4) with pmf(9) to quiet the latter down; reported Dieter Roelants 2010-03-08 11:54:35 +00:00
jruoho aa4b9b510c Use the predefined ACPI_STA_BATTERY_PRESENT instead of defining a local one. 2010-03-08 11:45:45 +00:00
jruoho 10690c8c4f Remove unused struct sysctllog from the softc. 2010-03-08 11:39:42 +00:00
pooka 57959b3859 Convert to pseudo-root.
These can be moved out of wip (once I get some time).
2010-03-08 10:57:25 +00:00
pooka 9ca7991252 need -Irumpkern for RUMP_COMPONENT 2010-03-08 10:56:12 +00:00
pooka 38516f3ec5 convert to ioconf & pseudo-root 2010-03-08 10:54:21 +00:00
jruoho c80b77ab4c Add a detachment routine. 2010-03-08 10:53:03 +00:00
pooka d5184dc0e0 Update minimum to make compile. i don't have the hardware anymore,
so i can't test other changes.
2010-03-08 10:36:10 +00:00
pooka 1590160e06 convert to ioconf/pseudo-root 2010-03-08 10:30:17 +00:00
pooka e5fc54d868 Use config pseudo-root keyword instead of monolithic configurations
starting from root.
2010-03-08 10:24:37 +00:00
mrg e77d72e68f blast_dcache() SMP friendly:
- blast_dcache() becomes sp_blast_dcache(dcache_size, dcache_line_size)
- new smp_blast_dcache(sparc64_cpuset_t) that blasts the D$ on this cpuset
- sparc64_ipi_blast_dcache() to support the above
- in pmap_remove_all(), when freeing mmu contexts for this pmap, mark
  the set of cpus to blast the d$ on as well and convert the
  blast_dcache() call into smp_blast_dcache() on the cpus who ran this
  pmap, or, sp_blast_dcache(dcache_size, dcache_line_size)
- convert the remaining blast_dcache() in machdep.c to sp_blast_dcache()
- in pmap_destroy()/pmap_remove_all() take the pmap_lock() always since
  we assert it is held always.

with these changes, NFS builds on the U60 seem to be stable now, and
the USIII machines also can often complete a single build.sh run now,
diskful or diskless.


reviewed by mlelstv and partially by martin, tested by martin and myself,
with some ideas from chuq as well.
2010-03-08 08:59:06 +00:00