Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp521142pxb; Tue, 19 Oct 2021 07:40:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyowrJMxZlUYgIOxGXgfilEDq8SWfUciJP+9somfHjA5tRkqs9txG0GHE3my6PagKj1+Qyo X-Received: by 2002:a17:906:46db:: with SMTP id k27mr39073171ejs.436.1634654435408; Tue, 19 Oct 2021 07:40:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634654435; cv=none; d=google.com; s=arc-20160816; b=Jt3mQh9SuCZR4VtEfA22M0LU1aXwNTVazYbfcjNDDCGk8tY3sMh7aFKpNq1LvkwgiG 7C92v4IQ56h6uN8Hn+zE6XtqVFWzWzp6/dtgs+0BA5bc5+P0zsQ2VHZlIGqVXBr/mn29 m+6Ddfl19CkL9x38f1jYlUEuWrk05X8SAi/b5L9mNO2rfvPzP3h4FSWjTScS4DyDwx/Y l6ie+gsDdB8fH37mVBgWDHhiKSbCIZiLXqJOzatTjbDWRwomqeGu1L8ndMrKjRFusUJ/ SmYHEqunOdUHZBRpSm0YznmfOp4yN+6ThYHhLuSnjlrebMAs4EuGya54YFFwlsD4X5HV 6IDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=CIecaATj4T4Z7qYQY+MZOASityIhhLivg5T3isTLezg=; b=QsgpVr2CE0F5dKucc25wh3BCligni1oaU0i7gZrSgM1roL8PiQxBf2V7vCAwMU5PE3 PJQl1A6bCB0fdPzZEOM+VivHcIfH25LXX9jQyg6ALMlMM+XIG8YANQ4vJRYaZIiyXv9g cBF6BpJGfrMCRVMVcIa1KHOwGzhuYs+THSZgbmCOaa3zxadkesCYog/nUFstmDHTtbND RrMXtcJS7L00Ea29nCY+P2usfwDLAwt2D4D6mAQ0nddal4EoU7d1T0TSQPm71fbDag2D cAdxR0xyQ4HFXFKcvHoC+Sh8LZcPl2Pdzn7q6eVXoMzfycSpvsY1Azh3ipoXHuT86Z7r O3Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K+IX3Vwy; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b20si35804469ede.275.2021.10.19.07.40.10; Tue, 19 Oct 2021 07:40:35 -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=@linaro.org header.s=google header.b=K+IX3Vwy; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229554AbhJSOkG (ORCPT + 99 others); Tue, 19 Oct 2021 10:40:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229524AbhJSOkE (ORCPT ); Tue, 19 Oct 2021 10:40:04 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23A13C06161C for ; Tue, 19 Oct 2021 07:37:52 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id om14so77431pjb.5 for ; Tue, 19 Oct 2021 07:37:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=CIecaATj4T4Z7qYQY+MZOASityIhhLivg5T3isTLezg=; b=K+IX3Vwyw6PvNlEeKvoJECnjpAQ+tkGq8g2/R/3Z48+kM7c1VCYYreHnYbMVVFcOof uXLGvd/NkaIadqfUYAMerkL7JOTWBdXxnwHN7h2Q5GQSyoNPRzoHwNqVWloSN3/255CH SP+rJfm7Ec4Y32ZlfD/ieoW6c9JqcgMHE748Rudvu0cIPIwrwVPmY5kp6mDGOs7ZssjT MHByEPF1i2tmet0mT3njVAbtQdJTuVPG0vVYKccX49R5xQcEDuUXQKy5OSyz3fMXSUfJ iXsbXp/yXl77AovgvglF9qZ1jTiCaV71XNAaektdjAcWYR6d5TgCJbG8TnkAb7Onn7xJ 7JsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=CIecaATj4T4Z7qYQY+MZOASityIhhLivg5T3isTLezg=; b=XDnOh/6A9+Uz6H+0K0pL8o0cCeb1ipGCLQpnsxyB/5xrYQYAZY6up/WzRFyRjns+ot jcotnr57YI8dLDdELDJvyKl7CMMYiD/L1eZ0PcQwyd1mJVZ6n9iijztb3+G6O9uFKzX5 FDuqXfLoPp3q8lFue+B+2TvZUZqpmUnLxHqBh4ADuthmvICTF5gXHQ3Lw8+10za044UR XPHIVCvst2bb/mcYYava3AZIqH1WqhXKavPe+UUnGbrq+LGUfggdEdVkTgb2QCrJGeI2 nX4NrLGbQbjE+kkJnAvahlmW9zxR/ETL71unZTDF4hlVTveTpoOHeam1rN4spvxPecrg whdA== X-Gm-Message-State: AOAM531GeQzcCYtJQPoexwv+WctEvOYoHXEk2pt8y0yHkmXwS7tQhw/3 Hr9qyRxiqgGpDCcPMO5PcSdDWg== X-Received: by 2002:a17:90a:f292:: with SMTP id fs18mr128645pjb.229.1634654271626; Tue, 19 Oct 2021 07:37:51 -0700 (PDT) Received: from localhost ([106.201.113.61]) by smtp.gmail.com with ESMTPSA id s20sm2167476pfk.131.2021.10.19.07.37.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Oct 2021 07:37:51 -0700 (PDT) Date: Tue, 19 Oct 2021 20:07:48 +0530 From: Viresh Kumar To: Greg KH 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: <20211019143748.wrpqopj2hmpvblh4@vireshk-i7> 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: User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19-10-21, 13:16, Greg KH wrote: > 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. That's what I was worried about when I got you in, broken or hacked :) > 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. > > 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? 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 :) -- viresh