Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1154316pxb; Tue, 19 Oct 2021 22:37:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzud55ht+CW4l87gBzeoxmT8HKYz8t2XQjBwUOJ86Ln1l19IK+qqN03eyU7sinKblDPvqyj X-Received: by 2002:a17:902:a702:b029:12b:aa0f:d553 with SMTP id w2-20020a170902a702b029012baa0fd553mr37275622plq.3.1634708270810; Tue, 19 Oct 2021 22:37:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634708270; cv=none; d=google.com; s=arc-20160816; b=I04Hzkny7DKcrpgzHJTKzB3nlic01stM4nj9/WHmBHRlFIn+ybBj0DvuHJSO/Pp25f iZGdNLJp6B4W3F7dF2z2qzbJ9VhrU4FMQPR0GTKhMo6/e+c+3GAbO9lXPo9APMFUrq1v qLAaExNwrWJsI1unvLP1NkVg9KS1bxm45w/VAU5f0jHNikHjoDRWd0oARCw4G1c5YSfR uJqD6HbX5FtU0VclLwMn8hd1r0Zs+ntp1YhN87Z9QQVhKHxuBJ6ZhpoxVo7vyzP9tfmp G3dc/z6hGRk4mRbik/8Jq8GKKZ5bxKjOpPIIbqNQN28wJa+z5l7UgbpPxPQKVK87/Rbn 6l4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=lEvoemDaas2Ltb4unesj+aZXIBe6WrxPklv3N8CSTyQ=; b=rQjiCwjTlrqPpzyFqPwSfaxY3S6DbBs4aD0LPfkK/eNyFjIAYNm7koQaslohIOc14F zn2xzeXLX1Aoj2Q2IVAvyfJtdh8DZZS/BtNz3fMWMskvIvniO2T72AR+dJM6Rjv8RYRt RCRW7sjUs+RtN5dlrzJU/kesbdUSIvFo8nyMX6eKnO5SZYy9Cp3onWA1Nr4W+wckiLve lyt62fG9u9YJhWWAxmPzLe6S0UajITPimIL4mjmeS4fPuA+kjgxRe2B5S1TjDTDySuSu OObmZ88puOPDBhxZ9vYm9zNV0fzM+/Q+vxwIUUs60qb7ktpMayNmyjWYpVIgyEyTBTmc vVcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ePzr6Al1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t2si1488689pfc.372.2021.10.19.22.37.34; Tue, 19 Oct 2021 22:37:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ePzr6Al1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230015AbhJTFil (ORCPT + 99 others); Wed, 20 Oct 2021 01:38:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:56606 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229920AbhJTFik (ORCPT ); Wed, 20 Oct 2021 01:38:40 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CF9B2610F8; Wed, 20 Oct 2021 05:36:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634708187; bh=6fVHD7xrVJvgYXLp6J/4BH55nxeDujiQGTN1Ry4XUDE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ePzr6Al1vjz8thy9piKGPcI0KFuG/z8LdqYEC0ObXBBzvm9aenbRTkV+RYzrN9WSA Nt5PsSeC9vcKCXMqKiJXgNgoIL6YusGRjaQSf4gwkKOrNsbcvBl+T8/HWRwV5qv4Nj d5X0GUHgdSRnz6cqz5AVXRLS2IVWMPXToqonmR9I= Date: Wed, 20 Oct 2021 07:36:23 +0200 From: Greg KH To: Jie Deng Cc: Wolfram Sang , Viresh Kumar , Vincent Whitchurch , virtualization@lists.linux-foundation.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@axis.com Subject: Re: [PATCH 1/2] i2c: virtio: disable timeout handling Message-ID: References: <20211019074647.19061-1-vincent.whitchurch@axis.com> <20211019074647.19061-2-vincent.whitchurch@axis.com> <20211019080913.oajrvr2msz5enzvz@vireshk-i7> <20211019094203.3kjzch7ipbdv7peg@vireshk-i7> <20211019143748.wrpqopj2hmpvblh4@vireshk-i7> <94aa39ab-4ed6-daee-0402-f58bfed0cadd@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <94aa39ab-4ed6-daee-0402-f58bfed0cadd@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 20, 2021 at 12:20:13PM +0800, Jie Deng wrote: > > On 2021/10/20 2:14, Wolfram Sang wrote: > > > 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?