Re: [PATCH v2 14/16] mmc: block: Implement HPI invocation and handling logic.

2012-05-09 Thread Arnd Bergmann
On Wednesday 09 May 2012, kdorf...@codeaurora.org wrote: +static bool mmc_can_do_foreground_hpi(struct mmc_queue *mq, + struct request *req, unsigned int thpi) +{ + + /* + * If some time has elapsed since the issuing of previous write + * command, or

Re: [PATCH v2 14/16] mmc: block: Implement HPI invocation and handling logic.

2012-05-09 Thread S, Venkatraman
On Wed, May 9, 2012 at 2:05 PM, kdorf...@codeaurora.org wrote: +static bool mmc_can_do_foreground_hpi(struct mmc_queue *mq, +                     struct request *req, unsigned int thpi) +{ + +     /* +      * If some time has elapsed since the issuing of previous write +      * command,

[PATCH v2 14/16] mmc: block: Implement HPI invocation and handling logic.

2012-05-03 Thread Venkatraman S
Intercept command which require high priority treatment. If the ongoing command can be preempted according to JEDEC HPI definition and sufficient window exist to complete an ongoing request, invoke HPI and abort the current request, and issue the high priority request. Otherwise, process the