From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8F4F1C001DF for ; Wed, 19 Jul 2023 22:44:55 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D415910E12A; Wed, 19 Jul 2023 22:44:54 +0000 (UTC) Received: from out-3.mta1.migadu.com (out-3.mta1.migadu.com [IPv6:2001:41d0:203:375::3]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2C16E10E12A for ; Wed, 19 Jul 2023 22:44:52 +0000 (UTC) Message-ID: <74994ce2-c060-f662-9210-14d09a15162f@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1689806688; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fjbO79xlLNloGHqzkmh/GrwE5dqq196RqzVZxz+HQuY=; b=tyL+5EjVO88fUgTXUzZJvKY+JfMezNTNqLlky4Key7ELBF1/bJEXZwIzwfXEU5giFkbOHo bs2sLXFvTbu5KRkClnah41uJLYUoPnho/GiocT6aPhwta72XhksZVZ/iUoXF/ZG9ZHo7Cc K41KgUorxkZsDqez3UfEW48aM4qvmjI= Date: Thu, 20 Jul 2023 06:44:29 +0800 MIME-Version: 1.0 Subject: Re: [PATCH v3 4/9] PCI/VGA: Improve the default VGA device selection Content-Language: en-US To: suijingfeng , Bjorn Helgaas References: <20230719193233.GA511659@bhelgaas> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Sui Jingfeng In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-fbdev@vger.kernel.org, Cornelia Huck , Karol Herbst , linux-pci@vger.kernel.org, dri-devel@lists.freedesktop.org, YiPeng Chai , Mario Limonciello , Likun Gao , Yi Liu , kvm@vger.kernel.org, amd-gfx@lists.freedesktop.org, Jason Gunthorpe , Ben Skeggs , Kevin Tian , Lijo Lazar , Thomas Zimmermann , Jani Nikula , Bokun Zhang , intel-gfx@lists.freedesktop.org, Alex Williamson , Abhishek Sahu , Maxime Ripard , Rodrigo Vivi , Bjorn Helgaas , Tvrtko Ursulin , Yishai Hadas , Pan Xinhui , linux-kernel@vger.kernel.org, Alex Deucher , Christian Konig , Hawking Zhang Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On 2023/7/20 06:32, suijingfeng wrote: > it will be works no matter CONFIG_DRM_AST=m or CONFIG_DRM_AST=y It will be works regardless of CONFIG_DRM_AST=m or CONFIG_DRM_AST=y. When vgaarb call to the device driver, device driver already loaded successfully. and the PCI(e) device emulation already finished. So the last change the vgaarb gave us to override is actually happen very late. But it will be happen as long as the device driver get loaded successfully.