[PATCH v4 10/13] tools: update hmm-test to support device coherent type