Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp17788771rwd; Tue, 27 Jun 2023 07:35:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6yX+9hQ3tCZ4Fs1n1VUvwKR34Fsy6GrTuZ8HEUWp4rsJRrSPF+3g/unuMWcay7Wyji78Vg X-Received: by 2002:a17:90a:590e:b0:262:a6f7:1946 with SMTP id k14-20020a17090a590e00b00262a6f71946mr8411573pji.9.1687876559349; Tue, 27 Jun 2023 07:35:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687876559; cv=none; d=google.com; s=arc-20160816; b=uMHo94rJAeCg2pU9Q5ECIFEQZc/mHlUAMip3ZAdzjMJJLzMSa5yTWV58iRrq6UjdmK q58qiwA8tAIOYAFjHhNhoMsve/dbDFoblm0uH8IGKpTZWt+vFyU8EfixiC7Hrt3e9EZx Q5aOyQyvC1Mv3iAfuHMn2RAGrZwPoIAhiH7O41S2niAU0fzlZfNdUeLwNiVWy7VpFoAO QGBJkjWGikrJJhSZFvMb902VI7mT1tp6QEnELUL/nTMGOoGSqAs3ePMGdVkYBKgVPD1b 41ZbSQiTAZJhNYrJqiiZZjLRFEG2Cf8PEiRl00C3GwH0+3fo8EX0ovrLDoqZd9BAH7M4 oYSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id; bh=YD9a1hVppbmkZDG8ZlSmJcrvqbxcXlxZ5ZJlKZ6dudw=; fh=ZAES+xqmBQfZkCfVMmRHdpD2ppznk7M0He/0M8iL3T8=; b=feJ+o18rjA0gaZERC5tmcuoSegsK38mN5vn9cXI0Q3F6DLDJM7aQD8a+/FW6Kw8xgi YHtbpIDXmx1KmprdDkmUx2+2tJZeoEqGjMhhSIPqS1uzlyFSvQLH1MGQc6zl/2Lkis/U KILKFH4to0dbuEG98QJLRY8JTQiAqxD3d+VoyoCmU3EPlLd/5nWfrt1UuapiQyIEc0i4 S/A7xlnlESjkGukW96n9wMRrJ79uLidQIrDKZw7oWbCmhgYDkZYxD5GM74SRs8tNQVbm fRwZmQxvLvOAyJwHwI2iX+ACxKkFZ/QESIxcwApS/uGJKM/v/v8RuepdEnTpdSD+dZcg CASw== 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 72-20020a17090a0fce00b00260e7c2ceb6si9525417pjz.29.2023.06.27.07.35.47; Tue, 27 Jun 2023 07:35:59 -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 S231339AbjF0OU1 (ORCPT + 99 others); Tue, 27 Jun 2023 10:20:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229664AbjF0OUZ (ORCPT ); Tue, 27 Jun 2023 10:20:25 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6731F1BE2; Tue, 27 Jun 2023 07:20:20 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.43]) by gateway (Coremail) with SMTP id _____8BxFsUh8JpkmiYDAA--.5125S3; Tue, 27 Jun 2023 22:20:17 +0800 (CST) Received: from [10.20.42.43] (unknown [10.20.42.43]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Cx7yMh8Jpk41gMAA--.9031S3; Tue, 27 Jun 2023 22:20:17 +0800 (CST) Message-ID: <628f718b-bcbc-6a3b-6e7f-40148160b5b7@loongson.cn> Date: Tue, 27 Jun 2023 22:20:17 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v7 8/8] drm/radeon: Implement the is_boot_device callback function Content-Language: en-US To: Sui Jingfeng <15330273260@189.cn>, Bjorn Helgaas 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, linux-fbdev@vger.kernel.org, Alex Deucher , Christian Konig , Pan Xinhui , David Airlie , Daniel Vetter , Jani Nikula References: <20230613030151.216625-1-15330273260@189.cn> <20230613030151.216625-9-15330273260@189.cn> From: Sui Jingfeng Organization: Loongson In-Reply-To: <20230613030151.216625-9-15330273260@189.cn> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CM-TRANSID: AQAAf8Cx7yMh8Jpk41gMAA--.9031S3 X-CM-SenderInfo: xvxlyxpqjiv03j6o00pqjv00gofq/ X-Coremail-Antispam: 1Uk129KBj9xXoWrXrykAr1fCw4kWr1xAw43Jwc_yoWxXFc_Wr Z2k3ykC3W8XFZ7XFW2q398CrySyayrAryUJwnrtFn7W342kr4qvF1Du3sYqFy3A3W7Cr13 Wrn8tw4jya45ZosvyTuYvTs0mTUanT9S1TB71UUUUjDqnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUbgxYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_Jrv_JF1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVW8JVW5JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV W8JVWxJwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v2 6r4UJVWxJr1ln4kS14v26r126r1DM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12 xvs2x26I8E6xACxx1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1q 6rW5McIj6I8E87Iv67AKxVWxJVW8Jr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcVAKI4 8JMxk0xIA0c2IEe2xFo4CEbIxvr21lc7CjxVAaw2AFwI0_Jw0_GFyl42xK82IYc2Ij64vI r41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1l4IxYO2xFxVAFwI0_JF0_Jw1lx2IqxVAqx4xG67 AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r4a6rW5MIIY rxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Gr0_Xr1lIxAIcVC0I7IYx2IY6xkF7I0E14 v26r4j6F4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVWxJVW8 Jr1lIxAIcVC2z280aVCY1x0267AKxVW8Jr0_Cr1UYxBIdaVFxhVjvjDU0xZFpf9x07jjLv tUUUUU= X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 PING ? On 2023/6/13 11:01, Sui Jingfeng wrote: > From: Sui Jingfeng > > [why] > > The vga_is_firmware_default() defined in drivers/pci/vgaarb.c is > arch-dependent, it's a dummy on non-x86 architectures currently. > This made VGAARB lost an important condition for the arbitration. > It could still be wrong even if we remove the #ifdef and #endif guards. > because the PCI bar will move (resource re-allocation). > > [how] > > The device that owns the firmware framebuffer should be the default boot > device. This patch adds an arch-independent function to enforce this rule -- Jingfeng