Dslash preTune and postTune should use output buffer size not input buffer size, since it is the output buffer that is saved / restored.