Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2692095rwd; Mon, 22 May 2023 02:51:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4bqbztOrUR+N0aODs4yYXoEMSkkpyN2hrctAU10iVSK7D12eWwMZAMuyL7OrOxtVYH8ME0 X-Received: by 2002:a05:6a00:14c4:b0:647:e45f:1a49 with SMTP id w4-20020a056a0014c400b00647e45f1a49mr13622044pfu.4.1684749098711; Mon, 22 May 2023 02:51:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684749098; cv=none; d=google.com; s=arc-20160816; b=xj4F0qrSGIiNQiXgiI/9GnA1QKTHXOmHsIt0jXR+A3JVkKz0OgMpSUdUwRgRUUe8OS wF01MszhwQ9I1JmbONNCICYgPenUuvfj8ZnV+/zQ5Ty1/zPO+OtZwQs81tUb26TEK+M9 kEhgzZPMSBAOspBSH5JAS7aZeSshBA5uuJYA2dx42gojyN0/EBO8uBdp2hpjR0OOTWQM pvebwQ6nVeLQhEtltClpSd/+ICkiQknouEQZTmQdHwWoCfVXEODKlWyJMfIBt0nbdu4a tlT4a7stfrhYtrDRjjTsmS1cQMJ5mAf+NIriver/0b8y01ACkDOolAtjVg7+MN9ORhO9 uuCQ== 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=AvFPmY+WGO4GIP+s9wr80lvgurr/JGS7iTNh8UUqj2s=; b=fcUvWT/e4CHqByYWcCQgZT0Wb73LqQKuXVZs2KrvvKKb2TuuY8eKiZIj+6QqGpN8F3 1A/i7bsepBquJc2ReiHFYjVyfPU/c9ZZmwBQUXn16XLjf68jDawVKT4d/2BhV3vWdj+S ntuoknMKYRjioZHfPgkohpbooQWsOMSVE3PVPuCmlV5Td4G60WhO8GS7Fl8TUHq22cgo DMRbgq+o6Hi2Hj759EO2AHp2Bx1LeWr5Jup4TWAaflRlK7aMsybcsAsytaWFe41AAXjx YGw5sNakuajW5iknnya3fg8xu14vSftE1OsbAoxHfopAFu+OeezY7h6J8V1ZR6tesQ7K rpVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xen0n.name header.s=mail header.b=ff57pByl; 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 e13-20020a056a0000cd00b006463201bb55si4468658pfj.325.2023.05.22.02.51.26; Mon, 22 May 2023 02:51:38 -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=ff57pByl; 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 S231795AbjEVJ3E (ORCPT + 99 others); Mon, 22 May 2023 05:29:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229559AbjEVJ3D (ORCPT ); Mon, 22 May 2023 05:29:03 -0400 Received: from mailbox.box.xen0n.name (mail.xen0n.name [115.28.160.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E56DA95; Mon, 22 May 2023 02:29:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xen0n.name; s=mail; t=1684747740; bh=KkXKslg/Zzd8BjgEV84faQOq6rSzW9m7ilvwkM/8wAQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=ff57pBylcjRybXsT25eqJQR1UkB793MTrDEW/8ll1l64wanfRd059GTGtrsoPNCP5 iUuhApO8ybo8bxiBeIBPQ9wwRkxnjJvz7E4MEha7K8gyU07YpBCfD8wIzbblmgWI5+ /zvTIsbcdlupFPLuw14EL1Nmn4XLhRLB7wsggp24= 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)) (No client certificate requested) by mailbox.box.xen0n.name (Postfix) with ESMTPSA id 723C0600A6; Mon, 22 May 2023 17:28:59 +0800 (CST) Message-ID: Date: Mon, 22 May 2023 17:28:58 +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 , Sui Jingfeng , 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: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. >> Also the description about the Loongson 2K series is a bit irrelevant >> (we're focusing on VRAM here) so you could simplify the sentence a bit. > > We could reserve part of system RAM as VRAM for Loongson 2K series SoC. > > Either reserved with 'of reserve memory' orĀ  reserved by the firmware. > What's an "of reserve memory"? Is it "DeviceTree-reserved"? > The reserve ram will not accessible by kernel itself it this case, and > can still be managed by ttm. Of course. Feel free to tweak. -- WANG "xen0n" Xuerui Linux/LoongArch mailing list: https://lore.kernel.org/loongarch/