Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp729844pxj; Thu, 17 Jun 2021 12:25:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQ9GR1bNPTFq8v05D+ys+3Yot/S3RWM8uIC7TxLc629DFXe2KcwgL5+x/EdWxg3aF/Y3U9 X-Received: by 2002:a17:906:1c49:: with SMTP id l9mr7109545ejg.39.1623957955285; Thu, 17 Jun 2021 12:25:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623957955; cv=none; d=google.com; s=arc-20160816; b=D+9YEvv3sBDOiR7yJ4nAx6BYRPFALzWtT5kKf/S8UWqY+3hhWw/3zDzVvVLdRs53jM R6gMnD3cfs3qxCJqIY6ESNWUzEG68IShojZp8xtVFJ+Z5PK21lt2S1d+w0ZRqR3TZCHV VG7lXepcrc/JcXr9nvMIbkaTFRAdGEiyaSLgMyd7TxfXX3KHqCBioEEuPNlvGirD2Xk1 xBEhFl7cw89ISniC0Pe1mwSm2jmFVrbL1IiiY9s7Yu9ATsDvnQ/5ccaX8Z/Zi05HB54w 3IVXnFA57TptqkQgx7+yl8uO0AICP9N/Olc6HJTX0L2AAr6gjYi84ma/NC98QTm1+/2F WbCA== 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=spDOLTpTEkP0pQRlVnvSw7EzDBOy7ixf6KlEeu5zAFw=; b=aGAxaAe0umeA7NyQUAIhCa+iZ4HOny/alCVyB205XSOGqV/sOI4BjjViCEBDGSWpKz E7tN0JaBTB4qwdQuDmrW2CBzE4nnGC5QiQWo9/F9YgITjVK/82nyrne9oAozNmuAY1Ym iTDo0AW9KX9jnG/E3AhosbasTt01/6ltFfWJTBJwS77fMiA2tJfYoBJ5uTQ6cFSfQpaN r7z6gvad5Fa5cNuc/I8J1sCuStFqfdK4LyobXRCYLl8KgZdI//zfzaSUifLhJQjPbZpL n944NpjA+BWg+vncLvFSenydrbLF/Y6JBOwLOCmAjeL8vRGtqnC1FE/CENmkjWFus4+2 jHRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gvFkjdJ8; 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 21si6645629ejc.413.2021.06.17.12.25.32; Thu, 17 Jun 2021 12:25:55 -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=gvFkjdJ8; 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 S231372AbhFQRIF (ORCPT + 99 others); Thu, 17 Jun 2021 13:08:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231164AbhFQRIE (ORCPT ); Thu, 17 Jun 2021 13:08:04 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A83BC061574 for ; Thu, 17 Jun 2021 10:05:55 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id k15so345046pfp.6 for ; Thu, 17 Jun 2021 10:05:55 -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=spDOLTpTEkP0pQRlVnvSw7EzDBOy7ixf6KlEeu5zAFw=; b=gvFkjdJ8/nWFYJ6eh4eGwDZH3O/FzRYCKAixYJ+bNuEKuwuss5/DVmrjbX+uVysNvs i+qXxnRozSclnhV9Ko6zmIrYMI87h5HmYTek2HI51jvn+xNCD0bg4XrN4Yqp9qib8CR9 CUbQjexgtNkQUUYY4uYwd9nqQU44N+MdMqNFnAuiyyvQF/75BrkWVJgcEymLk/Yr4jeG LXwy06acDKVCdG2uCzuuG+EAuw4cXh15bV4ak7aa62CQzu1ula2LAtWnB2igv14GYA4W lXzfTYxIUy2PbsQtOWmWpcG+YtKPZhkz3VQN8S2EtJE6uuvXzzN4PNXTSebZUa2p7xNz g78g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=spDOLTpTEkP0pQRlVnvSw7EzDBOy7ixf6KlEeu5zAFw=; b=Mgs+4NEnJXCO6/jryG0Dh7A+Hx4AghcYddS8JYd6cja8TNXgONUm/qxCBYi7pMBeQb +mqin0lM9PAaXgX7tZSYkm3YFztq9rb3+sOTlixGPysaREK4X+Vo526xI+ndVxp91hKj KTiH1nGhyqRwm8Go+TTXaG8dOhjDZgtNer7CZg6MM8H/2nN779Pth3JSwYG5dRD2UDjD xA2bC9nwJmlGvc/f8WM1tedyuYnwaGxJjVylj4HQCBG0J36eKzFNpSOhneRKSNaFC2sw SxVhe623frUlK47T/vuaLz7XcyFAbqzwf4Dhia5qpXgB1zIxC1vniPYr4QnOKw54seCg f88Q== X-Gm-Message-State: AOAM533jHhk6kn1vE6qA49vrTaerzAOquFN1CZO6z9c3ooB9FFm7CwQh AGj21bko7L3w28nvbMRiqPE7 X-Received: by 2002:a63:d117:: with SMTP id k23mr5831729pgg.60.1623949554810; Thu, 17 Jun 2021 10:05:54 -0700 (PDT) Received: from workstation ([120.138.13.64]) by smtp.gmail.com with ESMTPSA id nv1sm5562052pjb.43.2021.06.17.10.05.51 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Jun 2021 10:05:54 -0700 (PDT) Date: Thu, 17 Jun 2021 22:35:50 +0530 From: Manivannan Sadhasivam To: Om Prakash Singh Cc: kishon@ti.com, lorenzo.pieralisi@arm.com, bhelgaas@google.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, hemantk@codeaurora.org, smohanad@codeaurora.org Subject: Re: [PATCH 0/5] PCI: endpoint: Add support for additional notifiers Message-ID: <20210617170549.GA3075@workstation> References: <20210616115913.138778-1-manivannan.sadhasivam@linaro.org> <9fd37c43-e2ab-f5b2-13dc-a23bd83d3c7b@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9fd37c43-e2ab-f5b2-13dc-a23bd83d3c7b@nvidia.com> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, Jun 17, 2021 at 12:42:07AM +0530, Om Prakash Singh wrote: > Hi Mani, > Adding more notifier types will surely help but I believe the list is not > exhaustive. What you are trying here is to pass various vendor-specific epc > interrupts to EPF driver. That can be taken care by a single notifier > interface as well, "pci_epc_custom_notify" from your implementation. That's what I initially thought eventhough not all the notifiers are vendor specific. But Kishon suggested to add notifiers for generic ones such as BME, PME etc... and that sounded reasonable to me. > This > also requires to have pre-defined values of "data" argument to standardize > the interface. > No, I don't think we can standardize the arguments to "custom" notifier. The custom notifier is supposed to deal with vendor specific events and I don't see any benefit on standardizing it. I see it more like an opaque driver_data field where we pass driver specific arguments. Thanks, Mani > your thoughts? > > Thanks, > Om > > On 6/16/2021 5:29 PM, Manivannan Sadhasivam wrote: > > External email: Use caution opening links or attachments > > > > > > Hello, > > > > This series adds support for additional notifiers in the PCI endpoint > > framework. The notifiers LINK_DOWN, BME, PME, and D_STATE are generic > > for all PCI endpoints but there is also a custom notifier (CUSTOM) added > > to pass the device/vendor specific events to EPF from EPC. > > > > The example usage of all notifiers is provided in the commit description. > > > > Thanks, > > Mani > > > > Manivannan Sadhasivam (5): > > PCI: endpoint: Add linkdown notifier support > > PCI: endpoint: Add BME notifier support > > PCI: endpoint: Add PME notifier support > > PCI: endpoint: Add D_STATE notifier support > > PCI: endpoint: Add custom notifier support > > > > drivers/pci/endpoint/pci-epc-core.c | 89 +++++++++++++++++++++++++++++ > > include/linux/pci-epc.h | 5 ++ > > include/linux/pci-epf.h | 5 ++ > > 3 files changed, 99 insertions(+) > > > > -- > > 2.25.1 > >