chiark / gitweb /
Replace interleave_size with channel_hash
authornick.j.sanders <nick.j.sanders@93e54ea4-8218-11de-8aaf-8d8425684b44>
Thu, 10 Jan 2013 23:42:36 +0000 (23:42 +0000)
committernick.j.sanders <nick.j.sanders@93e54ea4-8218-11de-8aaf-8d8425684b44>
Thu, 10 Jan 2013 23:42:36 +0000 (23:42 +0000)
commit1f94f5fb389066947b68fc0eb775e375588b25eb
treebed9a025b9591343432c88f729dca49e081322fb
parent34f025ddd73b6004d53208b9b76750e7e1eeb128
Replace interleave_size with channel_hash

This patch replaces the previously introduced interleave_size memory
channel decoding mechanism with a more powerful channel_hash. Decoding
can now be based upon an arbitrary mask of address bits, which will be
XORed together to determine the target channel. Note that this drops
support for more than two channels, but TripleChannel controllers will
probably use much more complicated decoding mechanisms anyway.

It also includes the findmask program, which offers a crude method to
guess the decoding mask from an unknown memory controller for enterprising
users. Use at your own risk.

Signed-off-by: Julius Werner <jwerner@chromium.org>
src/Makefile.am
src/Makefile.in
src/findmask.c [new file with mode: 0644]
src/findmask.inc [new file with mode: 0644]
src/os.cc
src/os.h
src/sat.cc
src/sat.h