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 AB8ADEB64DC for ; Thu, 20 Jul 2023 10:23:19 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 380A210E592; Thu, 20 Jul 2023 10:23:19 +0000 (UTC) Received: from out-61.mta1.migadu.com (out-61.mta1.migadu.com [95.215.58.61]) by gabe.freedesktop.org (Postfix) with ESMTPS id A270010E12A for ; Wed, 19 Jul 2023 22:44:51 +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-Mailman-Approved-At: Thu, 20 Jul 2023 10:23:18 +0000 X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx 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, Joonas Lahtinen , dri-devel@lists.freedesktop.org, YiPeng Chai , Mario Limonciello , Likun Gao , David Airlie , Ville Syrjala , 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, Maarten Lankhorst , Jani Nikula , Alex Williamson , Abhishek Sahu , Maxime Ripard , Rodrigo Vivi , Bjorn Helgaas , Tvrtko Ursulin , Yishai Hadas , Pan Xinhui , linux-kernel@vger.kernel.org, Daniel Vetter , Alex Deucher , Christian Konig , Hawking Zhang Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" 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. 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 DF774C001B0 for ; Wed, 19 Jul 2023 22:45:00 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DE76910E528; Wed, 19 Jul 2023 22:44:56 +0000 (UTC) Received: from out-30.mta1.migadu.com (out-30.mta1.migadu.com [95.215.58.30]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5C37010E131 for ; Wed, 19 Jul 2023 22:44:54 +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 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 Subject: Re: [Intel-gfx] [PATCH v3 4/9] PCI/VGA: Improve the default VGA device selection X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & 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 , David Airlie , 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, Abhishek Sahu , Maxime Ripard , Rodrigo Vivi , Bjorn Helgaas , Yishai Hadas , Pan Xinhui , linux-kernel@vger.kernel.org, Daniel Vetter , Alex Deucher , Christian Konig , Hawking Zhang Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" 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. 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E0B49C001B0 for ; Wed, 19 Jul 2023 22:44:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230177AbjGSWox (ORCPT ); Wed, 19 Jul 2023 18:44:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229521AbjGSWow (ORCPT ); Wed, 19 Jul 2023 18:44:52 -0400 Received: from out-1.mta1.migadu.com (out-1.mta1.migadu.com [IPv6:2001:41d0:203:375::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A85AC1FF1 for ; Wed, 19 Jul 2023 15:44:50 -0700 (PDT) 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 Cc: David Airlie , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, kvm@vger.kernel.org, linux-pci@vger.kernel.org, linux-fbdev@vger.kernel.org, Alex Deucher , Christian Konig , Pan Xinhui , 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 , Bokun Zhang , Likun Gao , Ville Syrjala , Jason Gunthorpe , Kevin Tian , Cornelia Huck , Yishai Hadas , Abhishek Sahu , Yi Liu , Jani Nikula 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 Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org 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. 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.