lkml.org 
[lkml]   [2017]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [tpmdd-devel] [PATCH] tpm: improve tpm_tis send() performance by ignoring burstcount
From
Date
On 8/8/2017 3:11 PM, Jarkko Sakkinen wrote:
> On Mon, Aug 07, 2017 at 01:52:34PM +0200, Peter Huewe wrote:
>> Imho: NACK from my side.
> After these viewpoints definitive NACK from my side too...


I responded to the thread comments separately. However, assuming NACK
is the final response, I have a question.

The problem is the 5 msec sleep between polls of burst count. In the
case of one TPM with an 8 byte FIFO, a 32 byte transfer incurs 4 of
these sleeps.

Would another solution be to reduce the burst count poll and sleep to,
e.g., 100 usec or even 10 usec? This would probably help greatly, but
still not incur the wait states that triggered the NACK.

My worry is that the scheduler would not be able to context switch that
fast, and so we wouldn't actually see usec speed polling.

Can a kernel expert offer an opinion?


\
 
 \ /
  Last update: 2017-08-09 22:23    [W:7.676 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site