Commit Graph

179402 Commits

Author SHA1 Message Date
apb
bde6809f51 Add usr/tests/util/mtree 2009-04-08 06:55:09 +00:00
dyoung
222f7adf37 Refactor slightly to create acpi_rescan(), a hook for rescanning the
devices that attach at acpi(4).

Begin deriving an acpi(4) device-detachment hook, acpi_detach(), from
acpi_attach().  The code between #if 0 and #endif still needs to be
turned to the opposite calls (enables to disables, maps to unmaps,
attaches to detaches), which should be run in the opposite order.
Somebody with deep ACPI knowledge can probably finish this off without
too much trouble.
2009-04-08 00:23:30 +00:00
dyoung
5b0576e7eb Add acpitimer_detach() to eventually support acpi(4) detachment. 2009-04-08 00:15:45 +00:00
dyoung
99084a32b0 Decrease midi_pcppi_attached when midi at pcppi detaches. 2009-04-08 00:12:27 +00:00
dyoung
1de2a73134 Make pcppi(4) detach the "speaker" from attimer(4), so that the
corresponding attimer(4) resource is not perpetually busy: now it
is possible to detach and to reattach pcppi(4).  Make attimer(4)'s
device-detachment hook return EBUSY if pcppi(4) is still attached, so
that pcppi(4) cannot end up with a dangling pointer to attimer(4).
2009-04-07 22:30:09 +00:00
christos
a7c918477d from ftp.gnu.org 2009-04-07 22:10:01 +00:00
apb
534e2679af Changes for installing with a metalog:
* When installing hard links and using a metalog, if -o, -g, -m, or -f
  args were explicitly specified on the command line, then believe them,
  but do not implicitly believe uname/gname/mode/flags from the file
  system.
* Add a size= field (only for plain files).
* Output fields in the same order used by mtree.
2009-04-07 22:07:54 +00:00
dyoung
b6889a3f64 Let us re-attach acpi0, ipmi0, pnpbios0, and mca0 at mainbus0.
Extract code from mainbus_attach() to create a rescan hook,
mainbus_rescan().  Call mainbus_rescan(, "acpibus"/"ipmibus"/..., ) from
mainbus_attach() in the precise places where we used to attach acpi0,
ipmi0, pnpbios0, and mca0.  This allows, for example, ipmi0 to detach
and re-attach:

# drvctl -d ipmi0
ipmi0: detached
# drvctl -r -a ipmibus mainbus0
ipmi0 at mainbus0
#

Future work will let us detach & re-attach CPUs and the ISA/PCI/EISA
buses at mainbus0.
2009-04-07 22:01:38 +00:00
dyoung
3afac3e189 Fix spelling: mak -> make. 2009-04-07 21:49:36 +00:00
dyoung
00644496f7 Fix spelling: indrect -> indirect. 2009-04-07 21:48:46 +00:00
dyoung
20d48b47c0 When ipmi0 detaches, free all of the ipmi_sensor's on the (global!)
ipmi_sensor_list.
2009-04-07 21:47:58 +00:00
dyoung
deeb71246e In ipmi_detach(), don't sysmon_envsys_destroy(), but just _unregister():
_unregister() calls _destroy().
2009-04-07 21:00:30 +00:00
pooka
163d880b1a add regression test for kern/41128 2009-04-07 20:51:46 +00:00
apb
f328a72950 Print debug messages only when MAKEVERBOSE >= 3, not when
it is >= 2.  MAKEVERBOSE=2 is teh default, and the messages
are too noisy.
2009-04-07 20:46:20 +00:00
perry
a992ea7967 Fixes from christos for pr-41167
XXX -X is still broken, but that wasn't part of this PR.
2009-04-07 19:52:35 +00:00
tez
77737913e5 Add myself to the list of developers. 2009-04-07 19:52:04 +00:00
apb
854eeab1fc Add tests for "mtree -C" and "mtree -D". Add "link" keyword to
previous mtree tests.
2009-04-07 19:28:40 +00:00
msaitoh
eb993d20f8 Reload sc_ctrl in wm_reset().
Add an ICH10 entry.

Remove some obsolete comments.
2009-04-07 18:42:30 +00:00
msaitoh
e1c695ebf8 regen 2009-04-07 18:41:06 +00:00
msaitoh
0712fe9fe0 add 82801J_D_BM_LF (ICH10) 2009-04-07 18:40:39 +00:00
pooka
291176ecc3 Make it possible to use VCHR devices again. 2009-04-07 18:35:49 +00:00
dyoung
3098a4fbed Detach atapibus(4), scsibus(4), cd(4), and sd(4) during shutdown.
Destroy sd->sc_callout in sddetach().  Delete some dead code in
cddetach().
2009-04-07 18:35:17 +00:00
pooka
47c972421f Fix typo that slipped in a while ago. Fixes non-file mounts. 2009-04-07 18:34:18 +00:00
dyoung
18789e2def Detach midi at pcppi during shutdown. Sprinkle static. 2009-04-07 18:31:12 +00:00
dyoung
b429c26fd3 Detach ehci(4) and uhci(4) at shutdown. 2009-04-07 18:25:26 +00:00
dyoung
720a7dca79 Add opt_intrdebug.h for the INTRDEBUG option, and #include it here and
there.  Fixes GENERIC/i386 compilation with 'options INTRDEBUG'.
2009-04-07 18:24:23 +00:00
msaitoh
c52bc69c89 Fix about TBI mode. This fix doesn't influence MII mode.
- Fix SWDPIN(1)'s polarity on some chips.
 - Fix flow control stuff (includes PR#32009).
 - Stop RXCFG storm. It ocours easily.
 - And more fix about autonego.

Tested on PRO/1000F, PRO/1000XF and PRO/1000 MF.
2009-04-07 18:23:37 +00:00
msaitoh
0855c70d27 Fix about TBI mode. This fix doesn't influence MII mode.
- Fix panic in mediachange.
 - Fix SWDPIN(1)'s polarity on some chips.
 - Fix flow control stuff (includes PR#32009).
 - Stop RXCFG storm. It ocours easily.
 - And more fix about autonego.

Tested on PRO/1000F, PRO/1000XF and PRO/1000 MF.
2009-04-07 18:23:36 +00:00
dyoung
0873e7f203 Cosmetic: join lines. 2009-04-07 18:16:28 +00:00
dyoung
227c03169a Detach uhub(4) and usb(4) at shutdown. 2009-04-07 18:15:45 +00:00
dyoung
2e264f4086 Destroy a scsipi_xfer's callout before putting it back into the pool. 2009-04-07 18:10:45 +00:00
dyoung
f26cbc49c7 Destroy sc->bnx_timeout in bnx_detach(). 2009-04-07 18:07:10 +00:00
apb
62b6b42c6f fix another missing "prev" link 2009-04-07 18:06:41 +00:00
dyoung
63a5e91969 Detach brgphy(4) at shutdown. 2009-04-07 18:05:54 +00:00
dyoung
03c2f978e8 In mii_phy_detach(), destroy the NWay callout. 2009-04-07 18:05:02 +00:00
dyoung
336480339e Cosmetic: remove some dead code. 2009-04-07 18:02:04 +00:00
dyoung
29e95e3d5f Cosmetic: flag a potential problem in ata_channel_attach():
it initializes a callout that does not appear to be destroyed
anywhere. Every callout_init() should ordinarily be matched by a
callout_destroy().
2009-04-07 18:01:20 +00:00
dyoung
1fb1e79dd5 During shutdown, detach attimer at acpi. 2009-04-07 17:59:18 +00:00
dyoung
2df4d68fc5 Declare mididetach() for use by midi0 at pcppi0. 2009-04-07 17:55:55 +00:00
dyoung
6a72962b6c Cosmetic: in a debug statement, use "%s", __func__ instead of a
misspelling of the detach routine's name.
2009-04-07 17:54:58 +00:00
dyoung
f346073f7d Add a device-detachment hook for ipmi(4). 2009-04-07 17:53:45 +00:00
dyoung
ead00d401c Detach pchb(4) instances at shutdown. 2009-04-07 17:52:36 +00:00
dyoung
1a38ae4257 Detach sysbeep0 at shutdown. 2009-04-07 17:51:46 +00:00
stacktic
ea41759011 Add Realtek ALC663 and treat like ALC662 (ok pooka@) 2009-04-07 14:47:53 +00:00
apb
fc28b4ff36 Add tests for mtree. 2009-04-07 13:52:07 +00:00
lukem
292ab8c29d fix sign-compare issues 2009-04-07 12:38:12 +00:00
lukem
5a3a163d1d fix sign-compare issue 2009-04-07 12:25:19 +00:00
joerg
4764c235e5 Change ramdisks from dhclient to dhcpcd and add corresponding glue to
sysinst. For amd64, the crunchgen binary shrinks by 150KB uncompresssed,
60KB compressed.
2009-04-07 11:49:16 +00:00
tsutsui
3d4412216c Explicitly pass a specific buffer length to format_bytes() to
make it print memory sizes in humanized readable digits.
2009-04-07 10:49:54 +00:00
tsutsui
a4063088f7 Improve UFS2 root handling on sysinst:
- add HAVE_UFS2_BOOT define on ports which have UFS2 capable loader
- reject UFS2 for root file system on ports !HAVE_UFS2_BOOT
- add a MI function to get bootxx name from root file system type
  per MD defines and remove md_bootxx_name() from arch/i386/md.c,
  so that alpha can use bootxx_ffsv2 for UFS2 as well as x86

Tested on i386 and alpha with FFSv1 and FFSv2, and also
tested on vax (on simh) for !HAVE_UFS2_BOOT case.
de translation is provided by martin@.

No objection on tech-install, and "move forward with it" from perry@.

XXX1: not tested on all ports, more ports might/could have UFS2 root support
XXX2: no es, fr, and pl translations, even en message should be improved
XXX3: alpha has a fixed en message without MSG
2009-04-07 10:45:04 +00:00