1. A method comprising: in a data storage device including a controller and a non-volatile memory, performing: determining an instruction identifier based on a condition detected by the controller and based on a condition-to-identifier mapping that maps the condition to the instruction identifier; sending an instruction based on the instruction identifier to a host device to cause the host device to perform one or more specified computations at a processor of the host device; receiving a response from the processor, wherein the response: includes output data and an operation identifier, and is based on performance of the one or more specified computations; and performing an operation based on the instruction identifier and based on a mapping of the operation identifier to the operation.