Thread (10 messages) 10 messages, 4 authors, 2021-11-01

Re: [PATCH 1/2] i2c: virtio: disable timeout handling

From: Jie Deng <hidden>
Date: 2021-10-20 06:35:59
Also in: linux-i2c, lkml

Possibly related (same subject, not in this thread)

On 2021/10/20 13:36, Greg KH wrote:
On Wed, Oct 20, 2021 at 12:20:13PM +0800, Jie Deng wrote:
quoted
On 2021/10/20 2:14, Wolfram Sang wrote:
quoted
quoted
I think it is set to HZ currently, though I haven't tried big
transfers but I still get into some issues with Qemu based stuff.
Maybe we can bump it up to few seconds :)
If you use adapter->timeout, this can even be set at runtime using a
ioctl. So, it can adapt to use cases. Of course, the driver should
initialize it to a sane default if the automatic default (HZ) is not
suitable.
I think a big value may solve most cases. but the driver never know how big
is enough by static configuration.

Can we make this value to be configurable, just let the other side provide
this value ?
If an ioctl can change it, that would mean it is configurable, right?

Yes, but we need to know what's the best value to be configured for a 
specific "other side".

I think the "other side" should be more aware of what value is 
reasonable to be used.



_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help