Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp443156rwd; Wed, 24 May 2023 21:47:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7mVn6UYYNc/Q8bfDlXuJdNZb96iL64RZJ9GkpowJ9dz+KxMRnPP635ZGMoY7chjP/aw7Ru X-Received: by 2002:a05:6a00:1823:b0:643:aa2:4dcd with SMTP id y35-20020a056a00182300b006430aa24dcdmr7055088pfa.16.1684990068740; Wed, 24 May 2023 21:47:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684990068; cv=none; d=google.com; s=arc-20160816; b=uC9lhTha46rygotZzn5ergbfmJPMoMapv9YisoQts4Iz2U7LowHGdgc8n6q7zclx5U DwKhueWAmy2cMOEcqcDnhjgoEoUIvsqECA30znK/koHCI2zdqPo+xHMgCuf9WiKKLDzY KyDB7645B41k3nUVe7tHPXTP6UtvFcU9h4THYcKnX+yy6SsXG70w/w9r9RbCS47KpOlu GOij7h01a4Dpp7dWcFZ8+S0LrG6cAUu9vYSwY43/sW8ZDzkV1sBapAW29yIgF49bdQ7s XhGjdfzUqTS4sGwN1URlKPsMosg/bi6r2lUUzHd5vdUlyZ8cz2cPu/EF1oqHLbR3nQ+j bK+Q== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:sender:hmm_source_type:hmm_attache_num :hmm_source_ip; bh=aRiy4jz0JvvY2m4Hfh0M4BBD4NlQrQSWSfzdmkfP41k=; b=o0S6DHz37r/SFDoDhbCYQVtH4WSXCb1nOimGSGaC9pkp17oY/YLlti1ZhKkQoblgU7 lopRO4gDc87LEhJh+uPEolfB0szLRi6f74f3nh/+EJvlu7urKvQcRjgAyw2JQQ77wKKR 8sGn2O624mqH5/CrjBlEXhDwcTqxvS6yxouGj982o3RiK/fKl56v8BbK3wV4FQWEej4z ggg0QKPu9WrbpzZL5SkSVEOq6sQEKsIppXfX4f8bGkQE/N9rfiXmiTNuULySwW5Ww9gH LBlH8BayRyW/SwJscaiovbwu29+xoaCOHRn1kvjggnER/aXsgjgArA4uR7FTPVSsKq/u lGXw== 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 b81-20020a621b54000000b0064d22da9421si551562pfb.254.2023.05.24.21.47.26; Wed, 24 May 2023 21:47:48 -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 S230511AbjEYEPM (ORCPT + 99 others); Thu, 25 May 2023 00:15:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235758AbjEYEN7 (ORCPT ); Thu, 25 May 2023 00:13:59 -0400 Received: from 189.cn (ptr.189.cn [183.61.185.102]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 82F591BD3; Wed, 24 May 2023 21:09:28 -0700 (PDT) HMM_SOURCE_IP: 10.64.8.31:40046.373704923 HMM_ATTACHE_NUM: 0000 HMM_SOURCE_TYPE: SMTP Received: from clientip-114.242.206.180 (unknown [10.64.8.31]) by 189.cn (HERMES) with SMTP id 39E3D100249; Thu, 25 May 2023 12:09:21 +0800 (CST) Received: from ([114.242.206.180]) by gateway-151646-dep-75648544bd-xp9j7 with ESMTP id c566e9566e63438fbeb66c42cff385ec for kernel@xen0n.name; Thu, 25 May 2023 12:09:25 CST X-Transaction-ID: c566e9566e63438fbeb66c42cff385ec X-Real-From: 15330273260@189.cn X-Receive-IP: 114.242.206.180 X-MEDUSA-Status: 0 Sender: 15330273260@189.cn Message-ID: <04ede1b1-9757-5181-eec7-658c1df0480e@189.cn> Date: Thu, 25 May 2023 12:09:20 +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 v14 1/2] drm: add kms driver for loongson display controller To: WANG Xuerui , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Li Yi , Sumit Semwal , Christian Koenig , Emil Velikov Cc: linaro-mm-sig@lists.linaro.org, loongson-kernel@lists.loongnix.cn, Geert Uytterhoeven , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Javier Martinez Canillas , Nathan Chancellor , Liu Peibao , linux-media@vger.kernel.org References: <20230520105718.325819-1-15330273260@189.cn> <20230520105718.325819-2-15330273260@189.cn> <26fd78b9-c074-8341-c99c-4e3b38cd861a@xen0n.name> <331e7baa-a83b-b0c9-37f7-0e8e39187df4@xen0n.name> <5ae49b7a-b8d2-a822-65bc-6a894d2b1b4e@189.cn> <0e5e4a4b-1426-ffae-e958-cf8f9aece166@xen0n.name> <69edaf49-359a-229c-c8b4-8aa3af622008@189.cn> Content-Language: en-US From: Sui Jingfeng <15330273260@189.cn> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,FROM_LOCAL_DIGITS, FROM_LOCAL_HEX,NICE_REPLY_A,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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, On 2023/5/23 00:40, WANG Xuerui wrote: > On 5/22/23 21:13, Sui Jingfeng wrote: >> Hi, >> >> On 2023/5/22 18:25, WANG Xuerui wrote: >>> On 2023/5/22 18:17, Sui Jingfeng wrote: >>>> Hi, >>>> >>>> On 2023/5/22 18:05, WANG Xuerui wrote: >>>>> On 2023/5/22 17:49, Sui Jingfeng wrote: >>>>>> Hi, >>>>>> >>>>>> On 2023/5/22 17:28, WANG Xuerui wrote: >>>>>>> On 2023/5/22 17:25, Sui Jingfeng wrote: >>>>>>>> Hi, >>>>>>>> >>>>>>>> On 2023/5/21 20:21, WANG Xuerui wrote: >>>>>>>>>> + * LS3A4000/LS3A5000/LS3A6000 CPU, they are equipped with >>>>>>>>>> on-board video RAM >>>>>>>>>> + * typically. While LS2K0500/LS2K1000/LS2K2000 are low cost >>>>>>>>>> SoCs which share >>>>>>>>>> + * the system RAM as video RAM, they don't has a dediacated >>>>>>>>>> VRAM. >>>>>>>>> >>>>>>>>> CPU models are not typically prefixed with "LS", so "Loongson >>>>>>>>> 3A4000/3A5000/3A6000". >>>>>>>>> >>>>>>>> Here is because when you do programming, variable name should >>>>>>>> prefix with letters. >>>>>>> >>>>>>> Commit messages, comments, and log messages etc. are natural >>>>>>> language, so it's better to treat them differently. No problem >>>>>>> to keep code as-is IMO. >>>>>>> >>>>>> Then you get two name for a single chip,  take  LS7A1000 as an >>>>>> example. >>>>>> >>>>>> You name it as Loongson 7A1000 in commit message,  and then you >>>>>> have to define another name in the code,  say LS7A1000. >>>>>> >>>>>> "Loongson 7A1000" is too long,  not as compact as LS7A1000. >>>>>> >>>>>> This also avoid bind the company name to a specific product, >>>>>> because a company can produce many product. >>>>> >>>>> Nah, the existing convention is "LS7Xxxxx" for bridges and >>>>> "Loongson 3Axxxx" for CPUs (SoCs like 2K fall under this category >>>>> too). It's better to stick with existing practice so it would be >>>>> familiar to long-time Loongson/LoongArch developers, but I >>>>> personally don't think it will hamper understanding if you feel >>>>> like doing otherwise. >>>>> >>>> Can you explain why it is better? >>>> >>>> is it that the already existing is better ? >>> >>> It's not about subjective perception of "better" or "worse", but >>> about tree-wide consistency, and about reducing any potential >>> confusion from newcomers. I remember Huacai once pointing out that >>> outsiders usually have a hard time remembering "1, 2, and 3 are >>> CPUs, some 2 are SoCs, 7 are bridge chips", and consistently >>> referring to the bridge chips throughout the tree as "LS7A" helped. >>> >>> In any case, for the sake of consistency, you can definitely refer >>> to the CPU models in natural language like "LS3Axxxx"; just make >>> sure to refactor for example every occurrence in arch/loongarch and >>> other parts of drivers/. That's a lot of churn, though, so I don't >>> expect such changes to get accepted, and that's why the tree-wide >>> consistency should be favored over the local one. >>> >> There are document[1] which named LS7A1000 bridge chip as Loongson >> 7A1000 Bridge, >> >> which is opposed to what you have said "the existing convention is >> LS7Xxxxx for bridges". >> >> >> there are also plenty projects[2] which encode ls2k1000 as project >> name, which simply >> >> don't fall into the category as you have mentioned("Loongson 3Axxxx"). >> >> >> See [1][2] for reference, how to explain this phenomenon then? > > Turn down the flames a little bit, okay? ;-) > > There is no flames, its just that it need sufficient discussion when started to contribute to community. We want more rigorous toward to our patch. We can't adopt irresponsible ideas, especially from someone who is reluctant to give a reasonable rationale and refused to discussion. Such changes could probably made a damage to Loongson company. As it tend to introduce self-contradictory between the code and comment. Especially when we introduce DT support, there is no write space in the middle the string is allowed. and encode model information to the compatible string is an common practice. While at it, I will take it into another consideration if there are more professional person who is supporting your ideas and could take the responsibility for it. Beside this, other reviews are still acceptable, thanks for the reasonable part.