Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp438961rwl; Wed, 5 Apr 2023 03:01:11 -0700 (PDT) X-Google-Smtp-Source: AKy350YWzlLtju6xh56pRWQ2bNRapcaOIhEBBU4KWjRU8ZrfmUJAxxujZ6yCPHHKkCd3sBEfs2rJ X-Received: by 2002:a17:90b:4a09:b0:240:e532:d868 with SMTP id kk9-20020a17090b4a0900b00240e532d868mr6055418pjb.43.1680688871635; Wed, 05 Apr 2023 03:01:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680688871; cv=none; d=google.com; s=arc-20160816; b=gFqlIYrO0uuTkNBUoj2V0dkGnwEa1dQlkAzNzOcfO15BNVQhDoGkV80TDbYFdFVj+c J0TzQIMwSVctsQlNb0BqtPmY1Kjm1I5ltsE5+RMnw0j/NY7N+HCn1WFjhDD5HGq68Z4o RxgMHCYFP8hyuoKRYRxGZhi5fCoOHLZPIPjaXOgwniGpdz9N1HlZHWI9oaCctI69Wcvp o6DtDv4dm6I73YDZfIBMHrxYxAXyQ+5NfT4xJ3Fp64uFQqfHjIez7JTTwvXn9Qek6IwN 0X88QhxybmQK1P4rzuzhLtmz8LstY4ko81WlA3itxealKoSt+cV/ZgqG5PSgdwyc2JUa uF6g== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:sender:hmm_source_type:hmm_attache_num :hmm_source_ip; bh=hXoGOSJWjUDOUrFUOhty+kfhFM6gWWzG1MA+cQIwm10=; b=ylqg9OzWbJHlQ1b8ngPWzD1RVwP3Rm4feQOlngMz0wqmWPgtcCHTQjwwdU779nbo1o ClVpEdq/173/jxWDf2HMmk5iNtlmP3dcXP2SEYnrLwHaJDdgq2w5U40bvLzVQdXu9e9B jGnwGm6XaHymKfJbaSAmskvaEED+EfCLOM5U1rtxTqEkcErGtFSE5Wr6kFwUKwgA0tlF U6uec3YteBXwE/jthgk3l5K1vYOFUiXru0XRWgVyl1EFtUFKnGmND1pOBBKI7PFygSCE oPP5aAb12FqMntkvqOA2sjdE5cPjLmJy3ogtldI+VrfhmtI2UeMScqe2i+ozTYL8Gdcn vFkg== 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 bx4-20020a17090af48400b0023f3f30482bsi1055950pjb.138.2023.04.05.03.00.58; Wed, 05 Apr 2023 03:01:11 -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 S237149AbjDEJ4h (ORCPT + 99 others); Wed, 5 Apr 2023 05:56:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237289AbjDEJ4c (ORCPT ); Wed, 5 Apr 2023 05:56:32 -0400 Received: from 189.cn (ptr.189.cn [183.61.185.104]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 07EA2619A; Wed, 5 Apr 2023 02:56:05 -0700 (PDT) HMM_SOURCE_IP: 10.64.8.43:53732.1379365523 HMM_ATTACHE_NUM: 0000 HMM_SOURCE_TYPE: SMTP Received: from clientip-114.242.206.180 (unknown [10.64.8.43]) by 189.cn (HERMES) with SMTP id 42B571002A1; Wed, 5 Apr 2023 17:55:47 +0800 (CST) Received: from ([114.242.206.180]) by gateway-151646-dep-7b48884fd-tj646 with ESMTP id 4ddf140fa579419ea56efb54462e5e03 for javierm@redhat.com; Wed, 05 Apr 2023 17:55:49 CST X-Transaction-ID: 4ddf140fa579419ea56efb54462e5e03 X-Real-From: 15330273260@189.cn X-Receive-IP: 114.242.206.180 X-MEDUSA-Status: 0 Sender: 15330273260@189.cn Message-ID: Date: Wed, 5 Apr 2023 17:55:47 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH] video/aperture: fix typos Content-Language: en-US To: Javier Martinez Canillas , Thomas Zimmermann , Maxime Ripard , David Airlie , Daniel Vetter , Li Yi , Christian Koenig , Helge Deller , Lucas De Marchi Cc: linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org References: <20230404040101.2165600-1-suijingfeng@loongson.cn> <0ad03743-0224-b154-a149-e3e4d54b252d@suse.de> <87355fex1f.fsf@minerva.mail-host-address-is-not-set> <87zg7ndi57.fsf@minerva.mail-host-address-is-not-set> From: Sui Jingfeng <15330273260@189.cn> In-Reply-To: <87zg7ndi57.fsf@minerva.mail-host-address-is-not-set> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,FROM_LOCAL_DIGITS,FROM_LOCAL_HEX,NICE_REPLY_A, SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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 Hi, thanks you for the time and effort  for reviewing. On 2023/4/4 19:03, Javier Martinez Canillas wrote: > Javier Martinez Canillas writes: > > [...] > >>>> /* >>>> * Remove the device from the device hierarchy. This is the right thing >>>> - * to do for firmware-based DRM drivers, such as EFI, VESA or VGA. After >>>> + * to do for firmware-based fb drivers, such as EFI, VESA or VGA. After >>> That sentences is not well phrased. Maybe say 'This is required for >>> firmware-provided graphics, such as EFI, VESA or VGA.' >>> >> Graphic drivers or display drivers would indeed be more accurate here. But >> I think that "fb drivers" is still well pharsed since the are other places >> where either fbdev or DRM drivers for firmware-provided framebuffers are >> named like that. >> > Sui, > > Maybe you could post a follow-up patch to improve the comment as suggested > by Thomas? > Yes, certainly. This is the right thing to do for conflicting drivers takes over the hardware resource required. But the comments is actually nearly perfect in overall, it has some difficulty to improve the perfection.  Below is my personal understanding toward the above sentence. efifb and simplefb belong to the class of firmware based framebuffer driver. They are generic and platform agnostic, yet they have to relay on the firmware to passing fb format, fb size, fb base address, fb resolution and fb stride etc to the kernel. Linux kernel using those information to fill the global screen_info structure. sysfb_init() then using the global screen_info to  create a platform device, the device will be claimed by efifb or simplefb driver finally. This is a hand over solution. It relay on the firmware setup such a framebuffer and hand over the state(this is actually a kind of modeset state) to kernel. efifb only own the potential hardware resource for a very short time if a conflicting drm driver probe successfully. For the platform/graphics without  a drm driver, developers may choose to use efifb driver as a replacement.  So, there are no conflicting happen on such a case. The `nomodeset` kernel cmd options can also be used for debugging and testing purpose if the more intelligent drm driver is broken due to bugs.