Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp652898ioo; Sat, 21 May 2022 09:47:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJgBao6JqSwdKQzZ0Aq5fBjaTC+VIP3B2iFBQF9cj2nSpGDAsgCJA5tI2914THKy9TaJaG X-Received: by 2002:a05:6402:518f:b0:42b:4404:63d4 with SMTP id q15-20020a056402518f00b0042b440463d4mr3716194edd.177.1653151656220; Sat, 21 May 2022 09:47:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653151656; cv=none; d=google.com; s=arc-20160816; b=xYIulPNmC+R24xvdAFb01cF6ZX7jPwgNpzZSmZsY7vN03B2BpSMqx5hPPrDvF5fIZu HH1iVOfcCQTgmgGF49fojHuJtzP9A/yAQc3dkSIux5G109AbZffIhV2A31HA1JDBsHzl AcXUgYFsNAROmbW2gQAOpgH3pFsJ6mBBqkuKRMrdsU8knIiieNfaNmRnOvNu34eyEzpf TF4VNpcGTqT2XgdhkFK2AT58Vgt3NNNIgGHCEJ6duKo1iFEXHv5Jo7KVgADGSR0V5QVW qNkXmiabYAw0tT8NMiWJwHiPjeLQZx3MVkZEFD58YCXHl2uDNdH/R/lCiaIVyICAdJ5s hAyQ== 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:dkim-signature; bh=e9LHz14wFa2/WI+cnfgVklfc1muOyIoWusP/XZeOz08=; b=k1TjrBllm0qSWCyO5dosiikw9NqxsZnlfQ7XzNeF1zJIIH6W4MIOvgc6LXitEsZyow WF/fdlzfQzYp+ltBzoz+BjLLeCp85tu1qFsYXlw2yEVtgwEjNB9jO089zfwAx6d9caUn hN/nn2hw25zw9Cx/pkCGK2YwaaUCVrzqOQfuO7F/5nZWfrNLlYpsJBWLbtN/tU1bUJZa AMBRnQeV2ed1Ssupu6ElzOGNAVT21u83YhpslyRU63yOK5m4209Cu2CO2yLyI1dj2EI9 wnoDzs8DjZxQveehhza7MWDG9/Mc7na0baOoMg5Li4l6wlXOEYBbVBBa5ZW4SIaesO/M USrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Mq8xHTn9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cy25-20020a0564021c9900b0042aa6481abdsi9746502edb.250.2022.05.21.09.47.09; Sat, 21 May 2022 09:47:36 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Mq8xHTn9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241505AbiEUJGl (ORCPT + 99 others); Sat, 21 May 2022 05:06:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238688AbiEUJGd (ORCPT ); Sat, 21 May 2022 05:06:33 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 329C93A5FC for ; Sat, 21 May 2022 02:06:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1653123986; 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=e9LHz14wFa2/WI+cnfgVklfc1muOyIoWusP/XZeOz08=; b=Mq8xHTn92c1YO2I8aPgP2FBk6nAkCDJ1BJA3VpUAbxDP+k3nMdkqWYYFdImy1KDoc9GBWv sdhjFB67YBwaDd8MnoNbrr/pfQsgCLYG+VsY8LvuJ9IZW7KE77uEedrWgze7TvCcHR3/Yz po9Rxe3DNoi/U4AyoHAosWPb8PwqWBA= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-457--51xdYMZNtSqx_qFOI_YAQ-1; Sat, 21 May 2022 05:06:24 -0400 X-MC-Unique: -51xdYMZNtSqx_qFOI_YAQ-1 Received: by mail-wm1-f71.google.com with SMTP id bi5-20020a05600c3d8500b0039489e1d18dso7425020wmb.5 for ; Sat, 21 May 2022 02:06:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=e9LHz14wFa2/WI+cnfgVklfc1muOyIoWusP/XZeOz08=; b=cD1CyjpWCurcZN1ZVM/gaC8FXtO+ZWJIzuKkinZdM6R7tmqyyS8LcP+MEtuDBzWU+W 2N8ZrXydJ545dSsnoJCvrYheKil/JWJ8cbECf6roQEF92btwia/H7rTswlLqtW0bOHtq vl3/BFTfYUhnoKknJJ/xnDLAKhSvrNMrna4SFBuxivxndgKvjDuz0Y0jldU9tV3oXxH+ u/6tlwUhYjnDiSN7uxvZ8opuOITwHZeNawVY+c/emzLq78IHu5vVT1wGT9Ni9P+WFMpB vaH/Atx5idSZsYvR5FJ3nBqLFqxUbciYBmufz8FKvA6EwTUwf16R4H2y9lLj9bIMDleg 27ww== X-Gm-Message-State: AOAM531MGppwUxR3bJfXG01R5W4h6/0dUK/HtulimD4GoPjxgWkiyThC ++0txmHjmvTGKu6nS3WLJDEEwGb3DhDN6ek8qzzbUqp/PSSwWI1lf0drID3lSqOKtSVAWsuHCIC wmAsnzQtvTUCCgJevLgVbyK6O X-Received: by 2002:a05:600c:1986:b0:394:867f:984c with SMTP id t6-20020a05600c198600b00394867f984cmr12146588wmq.20.1653123983678; Sat, 21 May 2022 02:06:23 -0700 (PDT) X-Received: by 2002:a05:600c:1986:b0:394:867f:984c with SMTP id t6-20020a05600c198600b00394867f984cmr12146563wmq.20.1653123983458; Sat, 21 May 2022 02:06:23 -0700 (PDT) Received: from [192.168.1.129] (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id z13-20020a7bc7cd000000b0039456fb80b3sm3750711wmk.43.2022.05.21.02.06.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 21 May 2022 02:06:23 -0700 (PDT) Message-ID: <7caec251-20e7-4a8c-93ee-b28558ec580f@redhat.com> Date: Sat, 21 May 2022 11:06:21 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH V11 09/22] LoongArch: Add boot and setup routines Content-Language: en-US To: Huacai Chen Cc: Ard Biesheuvel , Huacai Chen , Arnd Bergmann , Andy Lutomirski , Thomas Gleixner , Peter Zijlstra , Andrew Morton , David Airlie , Jonathan Corbet , Linus Torvalds , linux-arch , Linux Doc Mailing List , Linux Kernel Mailing List , Xuefeng Li , Yanteng Si , Guo Ren , Xuerui Wang , Jiaxun Yang , Stephen Rothwell , linux-efi References: <20220518092619.1269111-1-chenhuacai@loongson.cn> <20220518092619.1269111-10-chenhuacai@loongson.cn> <0bae0df1-48ae-d02f-bce4-d1f69acf269e@redhat.com> <256e0b82-5d0f-cf40-87c6-c2505d2a6d3b@redhat.com> <859d5489-9361-3db0-1da4-1417ed2fad6c@redhat.com> From: Javier Martinez Canillas In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Hello Huacai, On 5/21/22 09:37, Huacai Chen wrote: [snip] >> >> A problem with moving to subsys_initcall_sync() is that this will delay >> more when a display is available in the system, and just to cope up with >> a corner case (as mentioned the common case is native drivers as module). > OK, your method seems better, but I think moving to > subsys_initcall_sync() can make the screen display as early as > possible. > But it doesn't cover all cases. For example, you will get the same error if for example your native driver is built-in and efifb built as module. So my opinion is that instead of playing with the init call levels, is just better for you to build your native driver as a module instead of making it built-in. -- Best regards, Javier Martinez Canillas Linux Engineering Red Hat