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