summaryrefslogtreecommitdiffstats
path: root/sys/dev/agp
diff options
context:
space:
mode:
authorn_hibma <n_hibma@FreeBSD.org>2009-09-10 19:24:46 +0000
committern_hibma <n_hibma@FreeBSD.org>2009-09-10 19:24:46 +0000
commitedbb0d714bacdc3c48d8a938ae276ccb4ae4dfcc (patch)
treeff82299293b735650db3ebedc505ca02b7fe12b4 /sys/dev/agp
parent09a5f6e60c49d63a355dd0b416aa82b902b8b84f (diff)
downloadFreeBSD-src-edbb0d714bacdc3c48d8a938ae276ccb4ae4dfcc.zip
FreeBSD-src-edbb0d714bacdc3c48d8a938ae276ccb4ae4dfcc.tar.gz
Move the printing of aperture size and stolen memory behind bootverbose.
None of the other AGP drivers actually displays this information at all, MFC after: 1 week
Diffstat (limited to 'sys/dev/agp')
-rw-r--r--sys/dev/agp/agp_i810.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/dev/agp/agp_i810.c b/sys/dev/agp/agp_i810.c
index 891bfff..c5bf68e 100644
--- a/sys/dev/agp/agp_i810.c
+++ b/sys/dev/agp/agp_i810.c
@@ -474,12 +474,6 @@ agp_i810_attach(device_t dev)
agp_generic_detach(dev);
return EINVAL;
}
- if (sc->stolen > 0) {
- device_printf(dev, "detected %dk stolen memory\n",
- sc->stolen * 4);
- }
- device_printf(dev, "aperture size is %dM\n",
- sc->initial_aperture / 1024 / 1024);
/* GATT address is already in there, make sure it's enabled */
pgtblctl = bus_read_4(sc->sc_res[0], AGP_I810_PGTBL_CTL);
@@ -664,9 +658,6 @@ agp_i810_attach(device_t dev)
gtt_size += 4;
sc->stolen = (stolen - gtt_size) * 1024 / 4096;
- if (sc->stolen > 0)
- device_printf(dev, "detected %dk stolen memory\n", sc->stolen * 4);
- device_printf(dev, "aperture size is %dM\n", sc->initial_aperture / 1024 / 1024);
/* GATT address is already in there, make sure it's enabled */
pgtblctl = bus_read_4(sc->sc_res[0], AGP_I810_PGTBL_CTL);
@@ -676,6 +667,15 @@ agp_i810_attach(device_t dev)
gatt->ag_physical = pgtblctl & ~1;
}
+ if (bootverbose) {
+ device_printf(dev, "aperture size is %dM",
+ sc->initial_aperture / 1024 / 1024);
+ if (sc->stolen > 0)
+ printf(", detected %dk stolen memory\n", sc->stolen * 4);
+ else
+ printf("\n");
+ }
+
if (0)
agp_i810_dump_regs(dev);
OpenPOWER on IntegriCloud