Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3030950ybz; Sun, 3 May 2020 15:31:01 -0700 (PDT) X-Google-Smtp-Source: APiQypJicWqRB/E+wRMxtFtBW5fcLfMAETvkN1uvwNIqhuL1Che/tQno3xMXMQRA3Gc52gHH2/Cu X-Received: by 2002:a05:6402:17f1:: with SMTP id t17mr12493226edy.239.1588545061176; Sun, 03 May 2020 15:31:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588545061; cv=none; d=google.com; s=arc-20160816; b=Q+Jqat352+H4nib+bdPusubiv1QzoSga3OKf/SgTe73cMR9hEIJ1vb+bj3TwWYNGrI 56cIiuLOaTTA7WRg8KRe7Ta1WKWqIuukI1NOQ+vTaBT7btRJvRfqdukJw8uPGJEgrfxx 5l5JnVdjambKIuBwTDVU6unPBro2Mlk5sPYoXQCHEwWZc/qxv5qXpQaN0ectBDZL5bGB KbHKm8GjJmxBr+uze4nqfGTsEyAInqp2Vi34/8ysZA/L5fDEMJFRqUGUh2SjH5yw+y7n 8hsK/QNlFnCYgmXlhpXmJGg5167NB46tYrAs4EZzQFSzO3PgKNqPhScuD2sC0Ahl09R4 KAYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=uZ+K+ih0mNuF/pOvIE/xKN1vFjcEACHdo80ycEUlHfg=; b=LhEMibsOZmO4N0EBnB9FqxbKtgny4xXe1nWxkFdyC4EiyRnIu0N86FRYs3rEGGFSf1 NXcbMJSspSjK1WM5JjzBKaQYBnvPGl6aviyeViyPPn3M6Om4Ga7tPP/Qutb3M9xH447+ 4p+BIWnP1XCcQ66xoqrxyX+wWJIu8CA9ypzvtnoYr1PnAL3gF3JfR4Z/gWC8p94VTXma NVsGFH/h8AZnRmiR8aeKDx+8zv/D19gJg/MMyfXkcKcUnZDl+vGZE//P17ub/fZxRBq/ yIDZKyFgKS4xm85hTTTlRqkrjJ6EbN5kPa14jqMHkh91pCkb+ZLQUX5rSwuVwRNbqICA ZCqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=LWRjvDWv; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id by8si6023329ejb.525.2020.05.03.15.30.38; Sun, 03 May 2020 15:31:01 -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=@ziepe.ca header.s=google header.b=LWRjvDWv; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729216AbgECW3A (ORCPT + 99 others); Sun, 3 May 2020 18:29:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729151AbgECW27 (ORCPT ); Sun, 3 May 2020 18:28:59 -0400 Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0113FC061A10 for ; Sun, 3 May 2020 15:28:57 -0700 (PDT) Received: by mail-qt1-x844.google.com with SMTP id i68so12585710qtb.5 for ; Sun, 03 May 2020 15:28:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=uZ+K+ih0mNuF/pOvIE/xKN1vFjcEACHdo80ycEUlHfg=; b=LWRjvDWvojMKjrn+WxzIqCeWuxOhHJ6+/ybhiASHHGUUEt6RiHvB34fY9XpWF4RhLP t+CRl/TGVKUFpA22wbbMNsoxdDzu1saejrWFriYJCHU471wwifSDFYr4GPPEmaPCce7I qjrwcOXVnhBsEpNANWD5sbULmDYM/R89PYiQWwU7bisbB18hqpsVz5tSRVzH7z3VXlhf hxPNS6cJ+RlDHJ/N2TdiwPiosWaAPQAANOnlXGNiKcNxbCF4AxXutsVim/L4GmSYuvmP l2gQRMQGZc+aIsZyq0rFZcBfX1Xbu+4nXPjB085vgLB/Sb1FmVnWI3PaW0jAOzHuI7Xl RN/A== 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=uZ+K+ih0mNuF/pOvIE/xKN1vFjcEACHdo80ycEUlHfg=; b=Jo3qutLcnql0lMefMSjenIjKPz5uAlkj6BFZYFZ4WOZCQ5Ns6HoKb2QlqoaCOtuvK8 e+TPkKQ0eAOnU1TJdmIbV2UMOTpH/j849CRO/HMacNW89yjKAJ8XocDaflBDGtu9/HW3 gCClnM6Dk+Uya0tXSx3UNtfIcNhqrvje6+mwRwm5CDQTcOYNimwTAqlF00E/i/vm3K3Z Up8xDuvm6gN52b51rB5+rFPmAhv3vYOvFnKO9km2QetaDyHtYiKjh8pbFTKR/6MK1dfw Yl7f9xJB+2boMzcGJGa4VeMMneK8KCAl2s6ouSQ/fKa+BeEErCCv+5bobTLYphkvvubG 2JVg== X-Gm-Message-State: AGi0PubgJvY7yAZJqjahilp6IloVKKINKod4rwTzmJi2blZpRLSYK6KQ GSwxvnXTsuTs9MFu3ejXSuNgCw== X-Received: by 2002:aed:2591:: with SMTP id x17mr14119279qtc.76.1588544937120; Sun, 03 May 2020 15:28:57 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-68-57-212.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.57.212]) by smtp.gmail.com with ESMTPSA id k2sm9657677qta.39.2020.05.03.15.28.56 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 03 May 2020 15:28:56 -0700 (PDT) Received: from jgg by mlx.ziepe.ca with local (Exim 4.90_1) (envelope-from ) id 1jVN6W-0002Vu-0N; Sun, 03 May 2020 19:28:56 -0300 Date: Sun, 3 May 2020 19:28:55 -0300 From: Jason Gunthorpe To: "Dey, Megha" Cc: Dave Jiang , vkoul@kernel.org, maz@kernel.org, bhelgaas@google.com, rafael@kernel.org, gregkh@linuxfoundation.org, tglx@linutronix.de, hpa@zytor.com, alex.williamson@redhat.com, jacob.jun.pan@intel.com, ashok.raj@intel.com, yi.l.liu@intel.com, baolu.lu@intel.com, kevin.tian@intel.com, sanjay.k.kumar@intel.com, tony.luck@intel.com, jing.lin@intel.com, dan.j.williams@intel.com, kwankhede@nvidia.com, eric.auger@redhat.com, parav@mellanox.com, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, linux-pci@vger.kernel.org, kvm@vger.kernel.org Subject: Re: [PATCH RFC 07/15] Documentation: Interrupt Message store Message-ID: <20200503222855.GT26002@ziepe.ca> References: <158751095889.36773.6009825070990637468.stgit@djiang5-desk3.ch.intel.com> <158751207000.36773.18208950543781892.stgit@djiang5-desk3.ch.intel.com> <20200423200436.GA29181@ziepe.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 01, 2020 at 03:32:22PM -0700, Dey, Megha wrote: > Hi Jason, > > On 4/23/2020 1:04 PM, Jason Gunthorpe wrote: > > On Tue, Apr 21, 2020 at 04:34:30PM -0700, Dave Jiang wrote: > > > > > diff --git a/Documentation/ims-howto.rst b/Documentation/ims-howto.rst > > > new file mode 100644 > > > index 000000000000..a18de152b393 > > > +++ b/Documentation/ims-howto.rst > > > @@ -0,0 +1,210 @@ > > > +.. SPDX-License-Identifier: GPL-2.0 > > > +.. include:: > > > + > > > +========================== > > > +The IMS Driver Guide HOWTO > > > +========================== > > > + > > > +:Authors: Megha Dey > > > + > > > +:Copyright: 2020 Intel Corporation > > > + > > > +About this guide > > > +================ > > > + > > > +This guide describes the basics of Interrupt Message Store (IMS), the > > > +need to introduce a new interrupt mechanism, implementation details of > > > +IMS in the kernel, driver changes required to support IMS and the general > > > +misconceptions and FAQs associated with IMS. > > > > I'm not sure why we need to call this IMS in kernel documentat? I know > > Intel is using this term, but this document is really only talking > > about extending the existing platform_msi stuff, which looks pretty > > good actually. > > hmmm, so maybe we call it something else or just say dynamic platform-msi? > > > > > A lot of this is good for the cover letter.. > > Well, I got a lot of comments internally and externally about how the cover > page needs to have just the basics and all the ugly details can go in the > Documentation. So well, I am confused here. Documentation should be documentation for users and developers. Justification and rational for why functionality should be merged belong in the commit message and cover letter, IMHO. Here too much time is spent belabouring IMS's rational and not enough is spent explaining how a driver should consume it or how a platform should provide it. And since most of this tightly related to platform-msi it might make sense to start by documenting platform msi then adding a diff on that to explain what change is being made to accommodate IMS. Most likely few people are very familiar with platform-msi in the first place.. Jason