Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2909974imw; Wed, 6 Jul 2022 13:55:56 -0700 (PDT) X-Google-Smtp-Source: AGRyM1umOZdQcI1fEA10A2sP92vbnGEFHoDTP4nap5RK18+jozWRohnSt7oYIfYty+ssk7JKVNdy X-Received: by 2002:aa7:df12:0:b0:43a:4991:1725 with SMTP id c18-20020aa7df12000000b0043a49911725mr27318227edy.55.1657140955777; Wed, 06 Jul 2022 13:55:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657140955; cv=none; d=google.com; s=arc-20160816; b=WVA3QZkP+BTwgfyw6IuIKJXTbOliGqSPAs4Ni3LYfY7Lnv4T8xOv1PUhKwoa+0CK3Z o6qS2ZRgF3AW9MCu6HG9WCzWQexbblAtKhNaXGElR5QjWXV/dCybJAkDy25+4qzvX8GW fHCw2JgAoi/R7oizy6MbSHIsIHZuyEAfGPtOIg+ropscqZl1VGuKec9G/qEJ9Odr667i BTQhnbQR8Nd1f3mrLiDnZ1TetIBa9gRo8KUS3O0BW59b93QRCOJxx2yHDnwolHg2bSa4 xgwMfylMeoXCnGTWR3saN7bcqKae6QiGH5GWLLHxz0whoYZ87GX8NpRCV1wIVyToVZJ6 eUJQ== 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-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=Qhrcqnp+Jo5S8jL61zfnpn0Prl7D47r0hJEES9pIdSM=; b=zSQNDhry77MqsEz8eVrTy3Owin5z4MnpgZrFIM9/oyNFeogBsjFngmmMwyInjenp2L Ij8vlHRV15AgKBLYrNZHf/Vgg8Gvt7G0CHykdBT49gY9AK0tRRFGeyasb43Y0evbpbwY yZyuqiMSdM7KdLCCLuZvYvfwXTfADUZQ4FzbTleLA6zg69DcOMAaHoiVWlX80RnN3ePI X5oFLstUOatVeqhlTJ+TAmy1uu9OVS0a5VV1YGSQe/Wx62vTtFcuJ19I7HcbjJsA9bFa AXt4xLSUMiqtP/1YIQGXTGbAdebSQOuhOBVSzYN4efTD0u9R6sVwHT+UFrCFuSCK3qhU PigQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JyQTLPsY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s7-20020a056402520700b0043a8aa80c05si4177022edd.399.2022.07.06.13.55.22; Wed, 06 Jul 2022 13:55:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JyQTLPsY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S234025AbiGFUZt (ORCPT + 99 others); Wed, 6 Jul 2022 16:25:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234488AbiGFUZc (ORCPT ); Wed, 6 Jul 2022 16:25:32 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA5B22AE19; Wed, 6 Jul 2022 13:25:18 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 78980B81ECD; Wed, 6 Jul 2022 20:25:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D762BC3411C; Wed, 6 Jul 2022 20:25:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657139116; bh=wuncvhN57Sak96AraAMdXUe617s/eFjjZhDBJneKDYo=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=JyQTLPsY/lq5rKAezFGwTpf8zOpHXLZ10Cvvyc2axbu596miP5i9bji3ZQfNUJOSI 7VvMp8Ceap5isb7JChzcGtuCoLW/IO20MdrNbLIIOBRbgfYdg8JBQi3Lv8FWnAXo0B YkmXZFjsXhOD1Ekx/1BsFkjxHSJyPyGQbZpN2a7cSh1bQNYNU+6Nmt+LVBLWh22c1D +tbyEtblzji6EWJtsVxPC5GlRbR5WPUu84sUxzcXSVCsBraZAjRm+uXmXqogmkdZF7 dOXa0sPs/hsmV4WI9PskOWzRZqOZa5hWOcacloUBwxr+Lvq99Mcsxh5vPcXGpD+ll1 WvC08RwJhbegA== Date: Wed, 6 Jul 2022 15:25:14 -0500 From: Bjorn Helgaas To: Shunsuke Mie Cc: Kishon Vijay Abraham I , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Bjorn Helgaas , Hou Zhiqiang , Li Chen , linux-pci@vger.kernel.org, Linux Kernel Mailing List Subject: Re: [PATCH] PCI: endpoint: Don't stop EP controller by EP function Message-ID: <20220706202514.GA218769@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 06, 2022 at 12:15:38PM +0900, Shunsuke Mie wrote: > 2022年7月6日(水) 12:08 Bjorn Helgaas : > > On Wed, Jul 06, 2022 at 11:37:29AM +0900, Shunsuke Mie wrote: > > > 2022年7月6日(水) 7:40 Bjorn Helgaas : > > > > On Wed, Jun 22, 2022 at 01:09:24PM +0900, Shunsuke Mie wrote: > > > > > For multi-function endpoint device, an ep function shouldn't stop EP > > > > > controller. Nomally the controller is stopped via configfs. > > > > > > > > Can you please clarify this for me? > > > > > > > > An endpoint function by itself wouldn't stop an endpoint controller. > > > > I assume that some *operation* on an endpoint function currently stops > > > > the endpoint controller, but that operation should not stop the > > > > controller? > > > > > > > > I guess the operation is an "unbind" that detaches an EPF device from > > > > an EPC device? > > > > > > It is likely that after all of the endpoint functions are unbound, the > > > controller can be stopped safely, but I'm not sure if it is desired behavior > > > for endpoint framework. > > > > I'm not asking about the patch itself. I'm asking about the commit > > log because "an EP function shouldn't stop EP controller" doesn't > > quite make sense in English. > I'm sorry. > > > I suspect it should say something like "unbinding one endpoint > > function of a multi-function device from the endpoint controller > > should not stop the controller." > Yes, it is correct and represents the commit clearly. Thanks! I updated the commit log to the following: PCI: endpoint: Don't stop controller when unbinding endpoint function Unbinding an endpoint function from the endpoint controller shouldn't stop the controller. This is especially a problem for multi-function endpoints where other endpoints may still be active. Don't stop the controller when unbinding one of its endpoints. Normally the controller is stopped via configfs.