Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp572970rwd; Thu, 8 Jun 2023 05:06:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ723u/1elVkche7GZo3vaDqya6l2YNgJeFLyzpvryv2sgAT5+ZJdolKMwESdoGoM1cFYiCr X-Received: by 2002:a17:902:e812:b0:1a9:8ba4:d0d3 with SMTP id u18-20020a170902e81200b001a98ba4d0d3mr5299973plg.8.1686225985959; Thu, 08 Jun 2023 05:06:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686225985; cv=none; d=google.com; s=arc-20160816; b=OAYRghyBaTbmo87hobpm1Pg8r60JiPaTD47kMeBZhua8e28sQ6IzRuLzcsdcHU5uPI L9Rj9KpzyowV2tgLshjyW2wpkeD3bo5P29NG0tk1xjQgmQOL8wEyS59gY4qeWvVtw+gt HES1Hrek1lw5swX5Sqm/Q+AYbasbE8nDh15FKOtFUUJ2CoccYtxWsGAjsEIQ9Ip1vaI9 wsCjNa9Annk4zOewgeUqAiNa7eRjHb1Gs3vcJleNCj8os/KgLRpdz9gzmF5vvrLQW9ut LJysr34YJZh/GUYdNmJvFZIh4i4bLvJSccRr4Td/RP4J4t092g80dlto4geMmhMQrpsU B4PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:sender:hmm_source_type :hmm_attache_num:hmm_source_ip; bh=BfXfefA2s1OreV9LQ6zXEazVbNSAWY8JZ5rJA9l4pok=; b=dcGumTqDVRuPsdVbOqiid/v+L/+in44c2rr42+MDXrqiv6aZMOzawzgwxxcvNTUtsZ 1jWey8+HiMijIEH7vvf35kMLMxcuQ6+xtDYnrLiHWIiPBiDviegmjI0baxjtteAmrBI6 XU3Vr4yKwn5V0HHlLn3E9nZmGJsJLb7jG24YqLNTPEMmokTAXBj+XVwtJVLQUBHLo2Og fnL+ELRlHF31JYa2ZGXR/ZodGhkrzMm+El2KzNivSXCEYuymizagS93fsGOXAu/FbIVk CsG9kFGEcDFrhaKdUio91THP4nPfukh41Zawbd8tPE//IAof1JGUM5crDUhOS/bY3mQg XCSQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q14-20020a17090311ce00b001a974fc86casi981981plh.592.2023.06.08.05.06.13; Thu, 08 Jun 2023 05:06:25 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236275AbjFHLnf (ORCPT + 99 others); Thu, 8 Jun 2023 07:43:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234521AbjFHLnd (ORCPT ); Thu, 8 Jun 2023 07:43:33 -0400 Received: from 189.cn (ptr.189.cn [183.61.185.103]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 980D8E6C; Thu, 8 Jun 2023 04:43:30 -0700 (PDT) HMM_SOURCE_IP: 10.64.8.41:48916.660287130 HMM_ATTACHE_NUM: 0000 HMM_SOURCE_TYPE: SMTP Received: from clientip-114.242.206.180 (unknown [10.64.8.41]) by 189.cn (HERMES) with SMTP id BE9E61001E1; Thu, 8 Jun 2023 19:43:24 +0800 (CST) Received: from ([114.242.206.180]) by gateway-151646-dep-75648544bd-xwndj with ESMTP id 7729ef043a1042388f426189986bb73b for alexander.deucher@amd.com; Thu, 08 Jun 2023 19:43:27 CST X-Transaction-ID: 7729ef043a1042388f426189986bb73b X-Real-From: 15330273260@189.cn X-Receive-IP: 114.242.206.180 X-MEDUSA-Status: 0 Sender: 15330273260@189.cn From: Sui Jingfeng <15330273260@189.cn> To: Alex Deucher , Christian Konig , Pan Xinhui , David Airlie , Daniel Vetter , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , Ben Skeggs , Karol Herbst , Lyude Paul , Bjorn Helgaas , Alex Williamson , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Hawking Zhang , Mario Limonciello , Lijo Lazar , YiPeng Chai , Andrey Grodzovsky , Somalapuram Amaranath , Bokun Zhang , Ville Syrjala , Li Yi , Sui Jingfeng , Jason Gunthorpe , Kevin Tian , Cornelia Huck , Yishai Hadas , Abhishek Sahu , Yi Liu Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-pci@vger.kernel.org, kvm@vger.kernel.org, loongson-kernel@lists.loongnix.cn Subject: [PATCH v3 0/4] PCI/VGA: introduce is_boot_device function callback to vga_client_register Date: Thu, 8 Jun 2023 19:43:18 +0800 Message-Id: <20230608114322.604887-1-15330273260@189.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,FROM_LOCAL_DIGITS, FROM_LOCAL_HEX,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 From: Sui Jingfeng Patch 1,2 and 3 do basic clean up to the vgaarb module. Patch 4 introduce is_boot_device function callback to vga_client_register Sui Jingfeng (4): PCI/VGA: tidy up the code and comment format PCI/VGA: Use unsigned type for the io_state variable PCI/VGA: only deal with VGA class devices PCI/VGA: introduce is_boot_device function callback to vga_client_register drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- drivers/gpu/drm/i915/display/intel_vga.c | 3 +- drivers/gpu/drm/nouveau/nouveau_vga.c | 2 +- drivers/gpu/drm/radeon/radeon_device.c | 2 +- drivers/pci/vgaarb.c | 72 +++++++++++++--------- drivers/vfio/pci/vfio_pci_core.c | 2 +- include/linux/vgaarb.h | 16 ++--- 7 files changed, 57 insertions(+), 42 deletions(-) -- 2.25.1