Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2017018rwn; Fri, 9 Sep 2022 07:26:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR7/xTI5a5f0vdrK0YVKKTGbwE7C4hsFYu0VEFPbNU+rPZBonis3Ina5WKsl8EJfTp1aTRby X-Received: by 2002:a05:6a00:b4d:b0:540:cee1:657e with SMTP id p13-20020a056a000b4d00b00540cee1657emr5520473pfo.22.1662733599810; Fri, 09 Sep 2022 07:26:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662733599; cv=none; d=google.com; s=arc-20160816; b=IgCqLKHT/Ommc2KP8rccy0sOQN10uuyfexpNC5B0LU72dWtIl2ptuVVnUwRtQScMOl SlKWfrp8BC2VxRLmbt0gE6Bl5nAXeVneLuZtS33QfyiU1sHlCZlg5ws5H498BayYeRzJ pidL40pq2K2+7gMBTiSWFxOqe9/pzweqiawLhmuMw1vY/pRQ0iWx4H2XnOA06SiAvUZW Xlpj9WSC8pB7KPx9mG7hvsflLVDFK/AcNLT5nVxQoyuOarDBJcW/GVfLYxGtoNAOIwCy EqVDYQW7HzINnh3tT5zA4XOSvTvkM8/OJBVj7K3pEI/Gsh+Dk/83CHJJLw2XN5BxU5R7 jMpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=mmurUuPfY4CSsGXMopu3kXzx5e5l7+stCxGfg5MZbeg=; b=iHyjbzDNCXHN2WW3/iG2XcVebpf9uZ3MeG4rNKug78tRH9O9CuRwF1UtbsYssVNHdh N6DOtcZggJfm/XDG2qklu3jNtVIurGtZvU0ikNHt6HkNFr5TVQ3GCaUDZHUoL6wxV+hA qNK/+oEjIA611FVvmkTENrbAjiHbAyyjYt4VYvrgMbr20iwdRNhGlntwcGEAQGIWVgPb JdpIHedXGNlqURyr4lGuqQRObDk2o2lM/SmoWSYIgu31ZiNEXfDkMCN3Nqwdf+IeXnf0 SXx781jaLr7uTFHrnZJXpcWCTMiQYj2P2/JoV4Ds1oBKdqXAkjESUP3wvmws9WKMCjMg Xvgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bzbd2Sai; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s18-20020a632152000000b00434e31807f6si622586pgm.676.2022.09.09.07.26.26; Fri, 09 Sep 2022 07:26:39 -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=@redhat.com header.s=mimecast20190719 header.b=bzbd2Sai; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232258AbiIIOEw (ORCPT + 99 others); Fri, 9 Sep 2022 10:04:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230270AbiIIOEV (ORCPT ); Fri, 9 Sep 2022 10:04:21 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D69814A521 for ; Fri, 9 Sep 2022 07:02:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1662732103; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=mmurUuPfY4CSsGXMopu3kXzx5e5l7+stCxGfg5MZbeg=; b=bzbd2Sai6nJgzReUHUuhYG7WQDJNb6C8umqTUePfXTNBqjq3hMGuPQ3sVreMym4DfMnG4Z wKybVVzkuk7E61Z7rHMuN6omJkVn1ufYzHwtor8iBjJKDHXBwDeCW78GMHM5I4G8kNsKvP Vqot/c1vIwhta5rxk+rq47+2HDoRFGQ= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-348-s9HLbSFzOvOQxha8j3NwKw-1; Fri, 09 Sep 2022 10:01:41 -0400 X-MC-Unique: s9HLbSFzOvOQxha8j3NwKw-1 Received: by mail-ed1-f72.google.com with SMTP id s17-20020a056402521100b004511c8d59e3so888600edd.11 for ; Fri, 09 Sep 2022 07:01:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date; bh=mmurUuPfY4CSsGXMopu3kXzx5e5l7+stCxGfg5MZbeg=; b=FBsueWKMqxZOB2PF70fLNIksw0hBZIuwGQQd08iV3GW14YL4H+w0OMEXKiRyk6B5TK FdIroKX22qvWQc51cn1Jga8KYI/Z1yVXcYYbIK1qMeGumziB/p0TXXO0B9C6RDk8EqsP qdBEd04zIr15fg3LOVUcSCaZmZRLi4zI/HGpWDfLUgz6zxRR9mOkKqtv/eLyoQK4vNqz 1RCJ4EAYPrgPekDkv2MC0hTLkAadzDrpC3fAC6ZjnOcprLBwFxbvRzeKmcVUK1Txwktf AZVeGveROiMoiZh7n26UDyef+RJDTK+yEZqZujVrCcKVv6zxULaVOGwIW2EgmF4zrDza 6L5g== X-Gm-Message-State: ACgBeo1txVe1SnuRGIUpoEzaxzmBkf2OywWSKowZ9nN+MaO8HTIQ735L SCLVPuZKXU7L6sIN+gIZECIl3QR0mZmJnGdVRaD99wFfw6RmmhcTQkXFwCf9cwrXftPr8WQfC6p XCYPlJR8GPRL9SaXoV6QNVnQ8 X-Received: by 2002:a17:906:846b:b0:770:82e5:1519 with SMTP id hx11-20020a170906846b00b0077082e51519mr9690588ejc.221.1662732100551; Fri, 09 Sep 2022 07:01:40 -0700 (PDT) X-Received: by 2002:a17:906:846b:b0:770:82e5:1519 with SMTP id hx11-20020a170906846b00b0077082e51519mr9690572ejc.221.1662732100345; Fri, 09 Sep 2022 07:01:40 -0700 (PDT) Received: from fedora (nat-2.ign.cz. [91.219.240.2]) by smtp.gmail.com with ESMTPSA id f4-20020a17090631c400b0073d6093ac93sm353806ejf.16.2022.09.09.07.01.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 07:01:39 -0700 (PDT) From: Vitaly Kuznetsov To: eahariha@linux.microsoft.com Cc: Deepak Rawat , David Airlie , Daniel Vetter , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , Dexuan Cui , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Helge Deller , Bjorn Helgaas , Easwar Hariharan , Colin Ian King , "Gustavo A. R. Silva" , "open list:DRM DRIVER FOR HYPERV SYNTHETIC VIDEO DEVICE" , "open list:DRM DRIVER FOR HYPERV SYNTHETIC VIDEO DEVICE" , open list , "open list:NETWORKING DRIVERS" , "open list:FRAMEBUFFER LAYER" , "open list:PCI SUBSYSTEM" Subject: Re: [PATCH 2/3] pci_ids: Add Microsoft PCI Vendor ID, and remove redundant definitions In-Reply-To: <1662674757-31945-2-git-send-email-eahariha@linux.microsoft.com> References: <1662674757-31945-1-git-send-email-eahariha@linux.microsoft.com> <1662674757-31945-2-git-send-email-eahariha@linux.microsoft.com> Date: Fri, 09 Sep 2022 16:01:37 +0200 Message-ID: <87leqsr6im.fsf@redhat.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 eahariha@linux.microsoft.com writes: > From: Easwar Hariharan > > Move the Microsoft PCI Vendor ID from the various drivers to the pci_ids > file > > Signed-off-by: Easwar Hariharan > --- > drivers/gpu/drm/hyperv/hyperv_drm_drv.c | 1 - > drivers/net/ethernet/microsoft/mana/gdma_main.c | 4 ---- > drivers/video/fbdev/hyperv_fb.c | 3 --- > include/linux/pci_ids.h | 2 ++ > 4 files changed, 2 insertions(+), 8 deletions(-) > > diff --git a/drivers/gpu/drm/hyperv/hyperv_drm_drv.c b/drivers/gpu/drm/hyperv/hyperv_drm_drv.c > index 6d11e79..61083c7 100644 > --- a/drivers/gpu/drm/hyperv/hyperv_drm_drv.c > +++ b/drivers/gpu/drm/hyperv/hyperv_drm_drv.c > @@ -23,7 +23,6 @@ > #define DRIVER_MAJOR 1 > #define DRIVER_MINOR 0 > > -#define PCI_VENDOR_ID_MICROSOFT 0x1414 > #define PCI_DEVICE_ID_HYPERV_VIDEO 0x5353 > > DEFINE_DRM_GEM_FOPS(hv_fops); > diff --git a/drivers/net/ethernet/microsoft/mana/gdma_main.c b/drivers/net/ethernet/microsoft/mana/gdma_main.c > index 5f92401..00d8198 100644 > --- a/drivers/net/ethernet/microsoft/mana/gdma_main.c > +++ b/drivers/net/ethernet/microsoft/mana/gdma_main.c > @@ -1465,10 +1465,6 @@ static void mana_gd_shutdown(struct pci_dev *pdev) > pci_disable_device(pdev); > } > > -#ifndef PCI_VENDOR_ID_MICROSOFT > -#define PCI_VENDOR_ID_MICROSOFT 0x1414 > -#endif > - > static const struct pci_device_id mana_id_table[] = { > { PCI_DEVICE(PCI_VENDOR_ID_MICROSOFT, MANA_PF_DEVICE_ID) }, > { PCI_DEVICE(PCI_VENDOR_ID_MICROSOFT, MANA_VF_DEVICE_ID) }, > diff --git a/drivers/video/fbdev/hyperv_fb.c b/drivers/video/fbdev/hyperv_fb.c > index 886c564..a502c80 100644 > --- a/drivers/video/fbdev/hyperv_fb.c > +++ b/drivers/video/fbdev/hyperv_fb.c > @@ -58,7 +58,6 @@ > > #include > > - > /* Hyper-V Synthetic Video Protocol definitions and structures */ > #define MAX_VMBUS_PKT_SIZE 0x4000 > > @@ -74,10 +73,8 @@ > #define SYNTHVID_DEPTH_WIN8 32 > #define SYNTHVID_FB_SIZE_WIN8 (8 * 1024 * 1024) > > -#define PCI_VENDOR_ID_MICROSOFT 0x1414 > #define PCI_DEVICE_ID_HYPERV_VIDEO 0x5353 > > - > enum pipe_msg_type { > PIPE_MSG_INVALID, > PIPE_MSG_DATA, > diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h > index 6feade6..c008fda 100644 > --- a/include/linux/pci_ids.h > +++ b/include/linux/pci_ids.h > @@ -2079,6 +2079,8 @@ > #define PCI_DEVICE_ID_ICE_1712 0x1712 > #define PCI_DEVICE_ID_VT1724 0x1724 > > +#define PCI_VENDOR_ID_MICROSOFT 0x1414 > + > #define PCI_VENDOR_ID_OXSEMI 0x1415 > #define PCI_DEVICE_ID_OXSEMI_12PCI840 0x8403 > #define PCI_DEVICE_ID_OXSEMI_PCIe840 0xC000 I've sent a similar patch recently: https://lore.kernel.org/linux-hyperv/20220827130345.1320254-2-vkuznets@redhat.com/ which Wei has already queued to hyperv/fixes. Moving PCI_DEVICE_ID_MICROSOFT_MANA_PF/VF definitions to 'pci_ids.h' does make sense but please rebase first. -- Vitaly