Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp352194pxb; Tue, 19 Oct 2021 04:20:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjKfAvHNmH47ZEJtDMS6Gc6zABfYIw7UCWrSCyzQxz69PW58ExaBN8mXJ2qYiT7cVbgGrO X-Received: by 2002:a17:906:2ccf:: with SMTP id r15mr35538507ejr.182.1634642426497; Tue, 19 Oct 2021 04:20:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634642426; cv=none; d=google.com; s=arc-20160816; b=0PqCxqLbDdQFV6F1Ha7xOJQJGiyJh6Ww3qDr/Ha83aEyOxRX53VIGRw9XFxBEV868p VKfF4FbHh+8vSRAjzYMVzjycfXcRs+GBLLmn/CjnrGBsvEsWiNJYgUhlmdthbCcZINrn MxOiMF0WFGhJDRo1u0Gzdqvd/gYcA9g49kHpW5eYQu5Tiy9xlXv9pkoE1dCjH7tGn/4T MMLvmiSOoYwkQOnEvpqC4p/nw0zhFuSxo01eYf/DUqQ69MAvuQpYUyOMNZT5sQv0gP3M MQ4PNcns8xg6IkNR52fLvf7kTGfJGQXA7XIslPR+W4pRsWP0oTjQQpaqCGf6j+UhlI80 WzNA== 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=1t2M13WbdQPKQLxuiQ2mljRhvWupqqzOHkFL8417F+A=; b=Cg2rMkDMm1gyUkrWgSqQsPwmLvp5xqlqTeBwK4UzBP9rbM/E4O+wGd7otxfgCag96T nzMURPOyGmuvDhVCljinbSvQ4hd1AR3mCl+gIIsgeXqVOyo+EqA4FY/ep+MkljW6SkYE CG+DS/lCifp8subsCFogHjHDiZXwbCU/paV+lAjaKVH/NqoD1OeSlQCu69Ip0kC4BF6R Hb2wd49r6lsSZLbF8TzfhD/b+9ZhSRKVtSACwQbMYTveJOMcPdHajVEQY5pEU/L5irfm OxNhN8KkZrhT1UPalH3vgzl/mwlQwejOjiWmhRVOfabQZEUK3qBEjzwROySq78JaEjG+ A+7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yj6I2acS; 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 yk7si22651338ejb.454.2021.10.19.04.20.02; Tue, 19 Oct 2021 04:20:26 -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=yj6I2acS; 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 S235396AbhJSLTF (ORCPT + 99 others); Tue, 19 Oct 2021 07:19:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:52770 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235370AbhJSLTD (ORCPT ); Tue, 19 Oct 2021 07:19:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 790AF6128B; Tue, 19 Oct 2021 11:16:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634642211; bh=zowoZA2DNh4UwkN2v6Xd3q8lGJcDY+Iha2h2tBForeA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=yj6I2acSnV7xWPZ/fC3LkxRxWyygbqXfz1qRVSydcPPlMI9fO/W8abjJAuGJIjBMz wQNHWiV28UR+80KR3//XNGg5nj2AyR8gLF4xr69/BPb+e/JaGrQdtXSVZUFDAzzLbb gzgAIWwBgxIPcuP/6xkA5EYLifKBaT/enpUvNGvI= Date: Tue, 19 Oct 2021 13:16:46 +0200 From: Greg KH To: Viresh Kumar Cc: Vincent Whitchurch , wsa@kernel.org, jie.deng@intel.com, 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211019094203.3kjzch7ipbdv7peg@vireshk-i7> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 19, 2021 at 03:12:03PM +0530, Viresh Kumar wrote: > On 19-10-21, 11:36, Greg KH wrote: > > What is the "other side" here? Is it something that you trust or not? > > Other side can be a remote processor (for remoteproc over virtio or > something similar), or traditionally it can be host OS or host > firmware providing virtualisation to a Guest running Linux (this > driver). Or something else.. > > I would incline towards "we trust the other side" here. That's in contradition with what other people seem to think the virtio drivers are for, see this crazy thread for details about that: https://lore.kernel.org/all/20211009003711.1390019-1-sathyanarayanan.kuppuswamy@linux.intel.com/ You can "trust" the hardware, but also handle things when hardware is broken, which is most often the case in the real world. So why is having a timeout a problem here? If you have an overloaded system, you want things to time out so that you can start to recover. > > Usually we trust the hardware, but if you do not trust the hardware, > > then yes, you need to have a timeout here. > > The other side is the software that has access to the _Real_ hardware, > and so we should trust it. So we can have a actually have a completion > without timeout here, interesting. And if that hardware stops working? Timeouts are good to have, why not just bump it up a bit if you are running into it in a real-world situation? thanks, greg k-h