Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2717389rwd; Mon, 22 May 2023 03:19:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7SfhAddOV9N04DSlhTl1kQ2qrEpAyOfu3q6lifU6Vw9Bq+lJBGFcpInq2VNS5QqjpwUSTA X-Received: by 2002:a17:90b:4b01:b0:253:34da:480 with SMTP id lx1-20020a17090b4b0100b0025334da0480mr9641120pjb.31.1684750765914; Mon, 22 May 2023 03:19:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684750765; cv=none; d=google.com; s=arc-20160816; b=YQDv2t7+dIpfAJLnwuzI0kCj7gAj6hFJ6DooLzzZKmhCxtr8irR4RLzisnm39aYy6E yGY9jR48lhDvc0N7ikSbm164/1e6uR1WltvuLo1otrJPNYMT3RVIx7l2SYUpn4evt9jY HBBJoyvZ/U/TOygMDsexvVvb0QdBZXAzmHCU4Pww9HNT1rKSiy2YtJi8NIBK1S7y4ljR PgYRK42gyHmkka5QuFjNZSg6W0rZMpBZLW2/uh7qq+neoLTvcuNihzmI5Z8vuJy9oI9m xSq6TYzrgb88nsDklAx4vxKLx3qz0tTJA5EfjkasBx74XyRmeCQy/F2BpNGl8BGoDGSL Slnw== 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=P1qGdcxOA+BLTjSXY6DMePbNQJiefVct/dk4lvZKGDI=; b=mDqtrjxkoIblC+b0O36YL06MVUt2NkcWDN39yk4DieQ1Nv27KJdXVzEfGXpYtdvY13 /C1ZM+V5PoApkaIa6dTQduidD4v9huUyVV2a1mMlT7PbHJWAMSQdMgSRLNlixITGZJGy 1txkrr5Ttd7VUSpENf7alza2259qwmvArgUv3UPjyQYw8FKWka1ykMYJzzlljS+x7XRl GhXogpT/KogComaC3WS1LRhOJ0Qj+bSjuPXCB6g8Ga94UBV9j2EKECR4LK2QEnuww1Vr YceKAqP/BghGesnl9usbtlcOv3slI26kLwPoKleiWUUaf06ko5coaSu2o5CwPKjSW05r yUnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xen0n.name header.s=mail header.b="J751M/8B"; 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 bs193-20020a6328ca000000b00530878c1824si4368113pgb.348.2023.05.22.03.19.12; Mon, 22 May 2023 03:19:25 -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=@xen0n.name header.s=mail header.b="J751M/8B"; 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 S232484AbjEVKFT (ORCPT + 99 others); Mon, 22 May 2023 06:05:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229603AbjEVKFR (ORCPT ); Mon, 22 May 2023 06:05:17 -0400 Received: from mailbox.box.xen0n.name (mail.xen0n.name [115.28.160.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49557B7; Mon, 22 May 2023 03:05:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xen0n.name; s=mail; t=1684749914; bh=gBu7lz+oDUt/IwzcEB7fcSzmars/b45xG6tE1x+VUus=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=J751M/8BEdo78Vp98AmBWcf9NvHoQ/Btar2GkjquttGn/GmLdifpIoXyY6yjgIbYF 1Njz5d9nYQOaxOngFs+gwZ9l4V2OJPsYu1UzxJtXLpo4OvMX6R9Ig1ndYZayI4q8SR mPF2uqDhb+kOSgm2zX1/jhozqy2tJ2AIOr0u36E8= Received: from [100.100.57.122] (unknown [58.34.185.106]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mailbox.box.xen0n.name (Postfix) with ESMTPSA id 63F96600A6; Mon, 22 May 2023 18:05:13 +0800 (CST) Message-ID: <331e7baa-a83b-b0c9-37f7-0e8e39187df4@xen0n.name> Date: Mon, 22 May 2023 18:05:12 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v14 1/2] drm: add kms driver for loongson display controller Content-Language: en-US To: Sui Jingfeng <15330273260@189.cn>, 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> From: WANG Xuerui In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 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. -- WANG "xen0n" Xuerui Linux/LoongArch mailing list: https://lore.kernel.org/loongarch/