Re: PATCH 2.5.x disable BAR when sizing

Linus Torvalds (torvalds@transmeta.com)
Fri, 20 Dec 2002 06:05:29 +0000 (UTC)


In article <15874.32773.829438.109509@napali.hpl.hp.com>,
David Mosberger <davidm@napali.hpl.hp.com> wrote:
> Alan> And yes this happens on some PC class systems.
>
>And yet it's OK to remap that memory? That seems unlikely.

Alan is right, however "unlikely" you think it is.

Turning off stuff in the config register not only turns off the standard
BAR's, it can turn off _everything_. Including stuff that isn't even
covered by the standard BARs that are beng probed.

It's like shutting off the power for the whole house because you want to
change a lightbulb. Sure, it's safer for the lightbulb, but if you
don't know what -else- needs power in the house, it sure as hell isn't
a good idea. Maybe you just trashed your wifes work because she happened
to be in front of the computer when you turned off the lights.

Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/