Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 May 2004 10:32:44 +0100
From:      Gavin Atkinson <gavin.atkinson@ury.york.ac.uk>
To:        "M. Warner Losh" <imp@bsdimp.com>
Cc:        nate@root.org
Subject:   Re: cvs commit: src/sys/dev/pci pci.c
Message-ID:  <1085391163.6814.6.camel@buffy.york.ac.uk>
In-Reply-To: <20040523.215736.44518029.imp@bsdimp.com>
References:  <20040522103658.P58631@root.org> <20040523204728.U66525@root.org> <20040523.215736.44518029.imp@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 2004-05-24 at 04:57, M. Warner Losh wrote:
> In message: <20040523204728.U66525@root.org>
>             Nate Lawson <nate@root.org> writes:
> : On Sat, 22 May 2004, M. Warner Losh wrote:
> : > Well, we're talking exclusively about the vendor, device, subvendor,
> : > subdevice, class, subclass and progif fields, which are obstensively
> : > read-only.  However, the pci standards are self-contradictory.  The
> : > main 2.2 one says they are read-only (without defining what that means
> : > that I could find), yet the pciide spec says that progif had writable
> : > bits...
> : 
> : I think the progif is the only one of that list that you need to restore,
> : as per your reading of the specs.  Since the others are identifiers, they
> : probably don't need to be restored.
> 
> Things are vague enough in the spec that this is totally
> unsatisfying.  We're just guessing based on hunches, which I really
> don't like, which is why I saved/restored everything.

Could we perhaps read them on restore and only write to them if
necessary? That way we reduce the possibility of tickling bugs in the
silicon by writing to read-only registers for chips that don't actually
need it?

Gavin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1085391163.6814.6.camel>