Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2021438imu; Thu, 17 Jan 2019 07:09:31 -0800 (PST) X-Google-Smtp-Source: ALg8bN698GBTK/S/W9NL+4zx9Hv5qdYxv78sbv6qt7sB3AS4PS65t8AWba0qRA6L8jA3MuN7+7bF X-Received: by 2002:a63:d818:: with SMTP id b24mr13642935pgh.174.1547737771155; Thu, 17 Jan 2019 07:09:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547737771; cv=none; d=google.com; s=arc-20160816; b=Bm1Focg2Esi9w68d85iL8mHXRjI/HtBNNywWBhHKzvc+4+dtaSOT7n40BzJMibzI8R 2nn5CFbji1C87bZh7BgEnu5kJluPUFe1ASuz11RS+ur6rNiPLOUNDZcYIGbN0Tv0NgKP 3mDxHw4kk2TehkTDCUL/Bkh3RIouLSjiODsnuiPJMCKcF/Pd3y7OcKTyNooWPLlchxHN nXcHKT13bgqGghcvetVkPCGgkbfmYq4WBpZBEeEyg25oANcWnzfus5ahn+Vry6F2a4Nr SpkDSFntBeWPEOE3qgQ73GOeObTuuK7cYSvqJlxbgPC3iwxM5PSinu5rotkm/PYAwra4 5vFg== 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=C8JN2liVAGbaO8MRTXFzQk3tpzlcglSjz9qxnWbjJP4=; b=Nk7LP8w/4mS05WnFM0++eOBnvlClOzheDLewwHweez3OBsanzkiG+fCNc4atBt4J47 hotaEKF/6sz9Mqr1xXLIa80iOHw7hUwdSp8D4qdsjghEr+mpFissyUF2wBxcjAZw4K9b hZSZ1lnvBAs/1S9kQm6wE8iWO91CmxjK1ZuoIowz/5ixdyetcHzEab7oK0z7l6ICZ39C Gf3nPrCSF/JpdSFQmYV0iLWh+8oaYmFzB8JnFgMHWEDIlt79qyqVnKMSja2CGloC3A15 A9knTwW8T0Gk460iB5+3s4a1VtlnI99sg4UPwq70/5SI5AncmHXXPVCtYrDrJJ56gL2m EG+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=g9PAk5QA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e63si1804038pgc.239.2019.01.17.07.09.13; Thu, 17 Jan 2019 07:09:31 -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; dkim=pass header.i=@kernel.org header.s=default header.b=g9PAk5QA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728384AbfAQPG4 (ORCPT + 99 others); Thu, 17 Jan 2019 10:06:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:45618 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728059AbfAQPG4 (ORCPT ); Thu, 17 Jan 2019 10:06:56 -0500 Received: from localhost (173-25-171-118.client.mchsi.com [173.25.171.118]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4D69E20851; Thu, 17 Jan 2019 15:06:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547737615; bh=bi0jT3sSfGkmPZz1x8nu2vzvP+BhjpkQhNeb96KS24s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=g9PAk5QAO56mYe+R94VhyMnhqQg1T8cnCYRXbWRFurD7ReHRJoNQ2tV1IrD8HUEUh hfx7hGFvNJ5ya4gGudRAGgZ0l5BDdBw6WRBNtlP76n9YL7IeD+R+ock5WADyjv0Cji g76M6oCAQQalBlE5GLBILoEsz6dw4xA0LkeQxMpA= Date: Thu, 17 Jan 2019 09:06:54 -0600 From: Bjorn Helgaas To: Ajay Kaher Cc: kys@microsoft.com, haiyangz@microsoft.com, devel@linuxdriverproject.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Jork Loeser Subject: Re: [PATCH 3/3] PCI: hv: Use vPCI protocol version 1.2 for v4.9 Message-ID: <20190117150654.GF158366@google.com> References: <1547758038-5255-1-git-send-email-akaher@vmware.com> <1547758038-5255-4-git-send-email-akaher@vmware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1547758038-5255-4-git-send-email-akaher@vmware.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 18, 2019 at 02:17:18AM +0530, Ajay Kaher wrote: > Update the Hyper-V vPCI driver to use the Server-2016 version of the vPCI > protocol, fixing MSI creation and retargeting issues. > > Replaced hv_tmp_cpu_nr_to_vp_nr() with vmbus_cpu_number_to_vp_number() > to make this patch compatibale for linux v4.9. s/compatibale for/compatible with/ This change (to make it compatible with v4.9) sounds like it should be in its own separate patch. I don't see any use of hv_tmp_cpu_nr_to_vp_nr() being removed, so the changelog doesn't quite make sense. > Signed-off-by: Jork Loeser > Signed-off-by: Bjorn Helgaas I did not sign off on this; please remove. > Reviewed-by: K. Y. Srinivasan > Acked-by: K. Y. Srinivasan > Signed-off-by: Ajay Kaher > + * struct hv_msi_desc2 - 1.2 version of hv_msi_desc > + * @vector: IDT entry > + * @delivery_mode: As defined in Intel's Programmer's > + * Reference Manual, Volume 3, Chapter 8. > + * @vector_count: Number of contiguous entries in the > + * Interrupt Descriptor Table that are > + * occupied by this Message-Signaled > + * Interrupt. For "MSI", as first defined > + * in PCI 2.2, this can be between 1 and > + * 32. For "MSI-X," as first defined in PCI > + * 3.0, this must be 1, as each MSI-X table > + * entry would have its own descriptor. Please reflow these descriptions to take advantage of an 80 column width. They are currently wrapped to fit in 50 columns, which is unnecessarily short. > + default: > + /* As we only negotiate protocol versions known to this driver, > + * this path should never hit. However, this is it not a hot > + * path so we print a message to aid future updates. > + */ > + dev_err(&hbus->hdev->device, > + "Unexpected vPCI protocol, update driver."); Include the actual protocol version in the message?