From patchwork Thu Jul 22 21:29:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Helgaas X-Patchwork-Id: 12394855 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A0A81C4338F for ; Thu, 22 Jul 2021 21:29:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8551D60C41 for ; Thu, 22 Jul 2021 21:29:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231844AbhGVUs4 (ORCPT ); Thu, 22 Jul 2021 16:48:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:41186 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231824AbhGVUsz (ORCPT ); Thu, 22 Jul 2021 16:48:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2B40960EB4; Thu, 22 Jul 2021 21:29:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626989370; bh=q0q9WK4g/B6cKPYyX/d5wqbHOQimFcJZ61rQEwrqEmI=; h=From:To:Cc:Subject:Date:From; b=FJKpQYBGDN12sFW2C4PlbNks+qtG5Ax8aF8nsjC4DvKsNzc4LXFxb3RkXIv6MM3pk VZAsnFkyJ9Kf3i3x+w6JmNQcvmfUztWCM9SOLgE7KAac9x2YCH/BW6nYsuMl044ZrJ gx0h86mZDsDZCWwlHBmNI4zY/gXQloEIyVpThGsIzPsC7jVC9sgdm1B/beZKZnQDXD KHxaC4oNxm/k8xq/U6yz0GmgZ8ZMKyHjg1k7pNZy8KxAVnOhQ84JW42fXh8O8i41GW FeYg5hZqc2hU78vF1ZShymUVI3/E4xVgdqmz7L/qW1e/+kIZaSXLnLcZ38aPB6i1Un ygAox1jAr19Vw== From: Bjorn Helgaas To: Huacai Chen Cc: David Airlie , Daniel Vetter , Xuefeng Li , Benjamin Herrenschmidt , dri-devel@lists.freedesktop.org, linux-pci@vger.kernel.org, Bjorn Helgaas Subject: [PATCH v2 0/9] PCI/VGA: Rework default VGA device selection Date: Thu, 22 Jul 2021 16:29:11 -0500 Message-Id: <20210722212920.347118-1-helgaas@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org From: Bjorn Helgaas This is a little bit of rework and extension of Huacai's nice work at [1]. It moves the VGA arbiter to the PCI subsystem, fixes a few nits, and breaks a few pieces off Huacai's patch to make the main patch a little smaller. That last patch is still not very small, and it needs a commit log, as I mentioned at [2]. All comments welcome! [1] https://lore.kernel.org/dri-devel/20210705100503.1120643-1-chenhuacai@loongson.cn/ [2] https://lore.kernel.org/r/20210720221923.GA43331@bjorn-Precision-5520 Bjorn Helgaas (4): PCI/VGA: Move vgaarb to drivers/pci PCI/VGA: Replace full MIT license text with SPDX identifier PCI/VGA: Use unsigned format string to print lock counts PCI/VGA: Remove empty vga_arb_device_card_gone() Huacai Chen (5): PCI/VGA: Move vga_arb_integrated_gpu() earlier in file PCI/VGA: Prefer vga_default_device() PCI/VGA: Split out vga_arb_update_default_device() PCI/VGA: Log bridge control messages when adding devices PCI/VGA: Rework default VGA device selection drivers/gpu/vga/Kconfig | 19 --- drivers/gpu/vga/Makefile | 1 - drivers/pci/Kconfig | 19 +++ drivers/pci/Makefile | 1 + drivers/{gpu/vga => pci}/vgaarb.c | 269 ++++++++++++------------------ 5 files changed, 126 insertions(+), 183 deletions(-) rename drivers/{gpu/vga => pci}/vgaarb.c (90%)