Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5525968ybl; Tue, 14 Jan 2020 10:22:53 -0800 (PST) X-Google-Smtp-Source: APXvYqyVIu0auw0M0UVOLCgkCLJce0k+F4jmbtdOOyUEbee37+FqezaVC9ntXJBFhbb+uO8Q8EH3 X-Received: by 2002:aca:4a08:: with SMTP id x8mr18109027oia.39.1579026172940; Tue, 14 Jan 2020 10:22:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579026172; cv=none; d=google.com; s=arc-20160816; b=Y+WpUFoZSTfsEWlO9i9blT8BEv073RIxhNO3B5Xejee7aWzejqpDm0xYb1dAUxpO8/ 4BBpsxLjQhlaIyO9NlaCHYaxhxLLI1b72yPZS4Z+PvAfitokwdFz2vaVU36c1I+zZCrX YpieAbtldWIiXdjCR7snBTREdrlquy/qh5L5tiempuN1djbAnORhCaJQBsIidzH82vBt 8LTmO6Q242PzpSpJ11ZG0C43a56Xj+aJ58NiqZZXGd4hoNO2NHzH24++I1vacJyoS0/I G8ixIDwU02hIjR6TQlOwuu0Jmk2KsHXL3hPepw/2z0JOgxiUjyNL6bdEQl0cQLHHeIzP Nl5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to; bh=j/yvJ920tKPrBIvK1Tc6Hwa7LjaUp1/eFln0tt9TinM=; b=YMMB/CicEoKvVgJI+jr1SFxiPsth7l6n7Pf8WeXmI2HUJGZeafubfbp0iA24osXLXl mAlmSTWjMHLPDj1pkvzTQYwM0WDBGzCy6N0lS/wa1gf1soEoIJLG3DjqjTgd65/WLxfT DlOZtsuKu35F+tOSybtxJxYRlQt4HkLyxBt8nqvNXE9ot2Qy2Xr1TNFnuASocrTc5sOM TVEqQVFv+Vu9Ma3oxkx+eVoXFsXN1yTDxIWttHQ29GwMJxZNGh/Jsz1CHzKC4n9ElMHe cB8J8KSNZzvKo3u0Gq2K1tWw9ulZGGGXRfr1knruVPDTuC3xJxtwAa1IeDORn2q4FSyw VALg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u21si7914525oic.263.2020.01.14.10.22.41; Tue, 14 Jan 2020 10:22:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728587AbgANSVx (ORCPT + 99 others); Tue, 14 Jan 2020 13:21:53 -0500 Received: from ale.deltatee.com ([207.54.116.67]:34860 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726491AbgANSVx (ORCPT ); Tue, 14 Jan 2020 13:21:53 -0500 Received: from guinness.priv.deltatee.com ([172.16.1.162]) by ale.deltatee.com with esmtp (Exim 4.92) (envelope-from ) id 1irQp2-0000uf-3U; Tue, 14 Jan 2020 11:21:49 -0700 To: Kelvin.Cao@microchip.com, helgaas@kernel.org Cc: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, epilmore@gigaio.com, dmeyer@gigaio.com References: <20200108213337.GA210184@google.com> <302aff9f-ff12-027c-80c8-2af2afca8359@deltatee.com> From: Logan Gunthorpe Message-ID: Date: Tue, 14 Jan 2020 11:21:45 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-CA Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 172.16.1.162 X-SA-Exim-Rcpt-To: dmeyer@gigaio.com, epilmore@gigaio.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, helgaas@kernel.org, Kelvin.Cao@microchip.com X-SA-Exim-Mail-From: logang@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on ale.deltatee.com X-Spam-Level: X-Spam-Status: No, score=-8.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [PATCH 03/12] PCI/switchtec: Add support for new events X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Bjorn, On 2020-01-13 7:07 p.m., Kelvin.Cao@microchip.com wrote: > 'InterComm' is the spelling in the latest datasheet, it's short for "Inter Fabric Manager Communication". Thanks. I noticed you fixed up the spelling in your branch but the IOCTL define is still spelled INTERCOM, which is arguably the most important seeing it's a userspace interface. Thanks, Logan diff --git a/include/uapi/linux/switchtec_ioctl.h b/include/uapi/linux/switchtec_ioctl.h index c912b5a678e4..902fffa9e0f5 100644 --- a/include/uapi/linux/switchtec_ioctl.h +++ b/include/uapi/linux/switchtec_ioctl.h @@ -98,7 +98,9 @@ struct switchtec_ioctl_event_summary { #define SWITCHTEC_IOCTL_EVENT_CREDIT_TIMEOUT 27 #define SWITCHTEC_IOCTL_EVENT_LINK_STATE 28 #define SWITCHTEC_IOCTL_EVENT_GFMS 29 -#define SWITCHTEC_IOCTL_MAX_EVENTS 30 +#define SWITCHTEC_IOCTL_EVENT_INTERCOM_REQ_NOTIFY 30 +#define SWITCHTEC_IOCTL_EVENT_UEC 31 +#define SWITCHTEC_IOCTL_MAX_EVENTS 32 #define SWITCHTEC_IOCTL_EVENT_LOCAL_PART_IDX -1 #define SWITCHTEC_IOCTL_EVENT_IDX_ALL -2