Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp595142pxf; Thu, 25 Mar 2021 09:48:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMQX3ItKLI6t3Lu3SYt3L4NqtwegV0wJuUb1pcfmtAU+XaZdkRpJvZwjODnxy74e76OaSL X-Received: by 2002:a17:906:8447:: with SMTP id e7mr10652106ejy.523.1616690920406; Thu, 25 Mar 2021 09:48:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616690920; cv=none; d=google.com; s=arc-20160816; b=eS/HczWnvT8ry6CR58QeuWDYhVztB9uiQBphqvC8xFjogbK35/59otAX8zNQtNhXSz TKVPO3iojdf17t0dHaIvdrZzTxF48lJgHendenAbt7CFUK7077aEFztZckN0AA1hUS+C vwf6owoPni3qO2+5FAQgKPQ0MJ0PQDI+SRUyT2iJ2K/Lm4YBqM77toibm1MT+79nr2lE A+J/FUrRVqMayu+943AYZc6ZIJxbBj/D1QjJ3/jjwjNwdQQLW2E/ewCDh6ibicEZhmru 3c21KrR9qKtf2BzBk33GNIekzcSWrdB1jFlI3CiQygmLCuRh1ob1OBcdksceTZXv9lAs 4Q5A== 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=0dv218Zy3XOodO5xc+TAJzzYSPKqSBt/Xr/oc6vw4ik=; b=FJFeUzSn9IAESGO+kzoH2Fcq3ns+7+TJnExR/rfE05+3MYlCFTOOhEtgQoX7FJvDns yOm6m2JzIJIqpJBib0O7IIzh6Lk2qjXDqoogNj+KVA75G8lu8EeQDrB0j1zoTNhiabRk 4RQzgVzN6jr/21JtojD9Se1kKnan3lL7Eg7/IjWKkRolBJLDQcsN9j85HR2SdMB7n2UM uNDrnTRkF6E4QLNCAucqZhMqvRbqMrzdhK8JmaJ0dEOf8hfs6roDvJeemrXUSfg8Ys4E V85NyFFe/HVetqZup8ulqsNQk1WYbpH1EVzLPyCi1B8PAHeNb4S98JcTTwRKCpgC5Ivg aElA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pANO59Hy; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m10si4532008edd.22.2021.03.25.09.48.16; Thu, 25 Mar 2021 09:48:40 -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=@kernel.org header.s=k20201202 header.b=pANO59Hy; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229664AbhCYQrT (ORCPT + 99 others); Thu, 25 Mar 2021 12:47:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:32904 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229519AbhCYQq6 (ORCPT ); Thu, 25 Mar 2021 12:46:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 17FE661A16; Thu, 25 Mar 2021 16:46:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616690817; bh=XDSpgiMwLXpSi0DeO5zI9TpSBGRc8mVOW9ocu02P7hw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pANO59Hy9KdhMWb8VT+AJRkMbByYezSLJpEwH5huqGS0A6kK6tx1totwF35nP+T7u ARlUyhHyIwPuYKW9PE82J0pbkIsWgga1ETzKR36BjR7mRmn+OO5QyKVFFwmJ+ktjsJ jO1mz+Ebo3ysTRJOf0/Spcv4NwZbEwbV9m3obh70dR0vWDJO4rWZ3YuZjnQ+rgzwqU 2rgfyNkqix3RBtsNj7NVLHUpajYmsMJNED4muy5qjfyNGlEG7yhKc61i/8TtbylEdw 0EbVeG9hw4dOtEaxOAPPjCUxOZqeXcabkU42oKqzn6X3zDHus8QAdfyKM5UIyQo5ss 5pcJV5Dvm+0wQ== Date: Thu, 25 Mar 2021 18:46:53 +0200 From: Leon Romanovsky To: Amey Narkhede Cc: info@metux.net, raphael.norwitz@nutanix.com, alex.williamson@redhat.com, linux-pci@vger.kernel.org, bhelgaas@google.com, linux-kernel@vger.kernel.org, alay.shah@nutanix.com, suresh.gumpula@nutanix.com, shyam.rajendran@nutanix.com, felipe@nutanix.com Subject: Re: [PATCH 4/4] PCI/sysfs: Allow userspace to query and set device reset mechanism Message-ID: References: <20210320085942.3cefcc48@x1.home.shazbot.org> <20210322111003.50d64f2c@omen.home.shazbot.org> <20210324083743.791d6191@omen.home.shazbot.org> <20210324111729.702b3942@omen.home.shazbot.org> <20210325162637.6ewxkxhvogdsgdxv@archlinux> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210325162637.6ewxkxhvogdsgdxv@archlinux> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 25, 2021 at 09:56:37PM +0530, Amey Narkhede wrote: > On 21/03/25 10:37AM, Leon Romanovsky wrote: > > On Wed, Mar 24, 2021 at 11:17:29AM -0600, Alex Williamson wrote: > > > On Wed, 24 Mar 2021 17:13:56 +0200 > > > Leon Romanovsky wrote: <...> > > I expect that QEMU sets same reset policy for all devices at the same > > time instead of trying per-device to guess which one works. > > > The current reset attribute does the same thing internally you described > at the end. > > And yes, you will be able to bypass kernel, but at least this interface > > will be broader than initial one that serves only SO and workarounds. > > > What does it mean by "bypassing" kernel? > I don't see any problem with SO and workaround if that is the only > way an user can use their device. Why are you expecting every vendor to > develop quirk? Also I don't see any point of using linked list to > unnecessarily complicate a simple thing. Please reread our conversation with Alex, it has answers to both of your questions. Thanks > > Thanks, > Amey