Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2673641rwd; Mon, 22 May 2023 02:28:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ76u7McutaJjsIl2/3aameC6d2bwPbXrElEfjHK/N3Xe6YDKMVakZyrxEy9JL+n4kMdDhD6 X-Received: by 2002:a05:6a20:3d05:b0:10a:9f55:292a with SMTP id y5-20020a056a203d0500b0010a9f55292amr8878502pzi.43.1684747706731; Mon, 22 May 2023 02:28:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684747706; cv=none; d=google.com; s=arc-20160816; b=q5aWdCQ3DM9nLQ0HcTGnU6lda4NIREUN1/Ez6QLHDoNr0GylXt65FZMeyQYS2+W1ZQ FBnNmRKp739YAJojmjo00uupnqR3Q3XIXt5venwNJy+w1aHfdwoTPs6G2Gp/Pqw9fGEm ZpIMEwxmgQKorv8hGZQiPNoQqF0uaQ1kx2CkT25fKaJqksAAVJpmaaVYgtdkxJgAqyx7 JVnpQ8lyq+GFLNFkA6TGsYKTCYDUIe0WwSfX0CYF6eREW4myk5bW02pjozEc1c2IeyGq Q76Dw6u0V9PNHLHgwalWI6uuwz49TdpJFZkqCwYh7GLhoUJtZFX0MuevoVyMTegh0BEM 7lfQ== 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=dMbnVFtml3dE/LQboHdlI1nIJcfjTzWQlI2g6A3DUbI=; b=DwB1SvKoiPHhEpPlXgQvEaDAwROouYE3AWfQZKvfwJx3k5xlJqzsQ6Oa+mHCTXvnna +gFnfPElLNvpDEmoj+yhQK2MyP6yJlFZfShtFGHc28v5xLq1t6JFD+VyV0SUjV9kBVtn CwGm/PwCfvA7q66q6qSISuTcaxbvvwUEAQ653GyIZ6TsAZJbGHHTUqJKC8dR1yoE9nOG u3EaRgwSam1kZirVZ7GDSWCtusYJBeN+/WaJCV/sCkz1rjCRzo2e6i4mSp6J4NGS/moa xyZQ8Ak6ktp3P72bABpeS7YDM9BCLfVMyUv+C44ZiYhSLb/egOFI2X5aQh3vFhnSaYj+ D75w== 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 a21-20020a63e855000000b00524ea62bcbcsi4413921pgk.209.2023.05.22.02.28.11; Mon, 22 May 2023 02:28:26 -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 S229974AbjEVJZm (ORCPT + 99 others); Mon, 22 May 2023 05:25:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229559AbjEVJZa (ORCPT ); Mon, 22 May 2023 05:25:30 -0400 Received: from 189.cn (ptr.189.cn [183.61.185.102]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B282FA8; Mon, 22 May 2023 02:25:28 -0700 (PDT) HMM_SOURCE_IP: 10.64.8.43:54090.881126371 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 AE497100219; Mon, 22 May 2023 17:25:25 +0800 (CST) Received: from ([114.242.206.180]) by gateway-151646-dep-75648544bd-7vx9t with ESMTP id 0e1dd0b287294d5aa57c52fa68135f30 for kernel@xen0n.name; Mon, 22 May 2023 17:25:27 CST X-Transaction-ID: 0e1dd0b287294d5aa57c52fa68135f30 X-Real-From: 15330273260@189.cn X-Receive-IP: 114.242.206.180 X-MEDUSA-Status: 0 Sender: 15330273260@189.cn Message-ID: Date: Mon, 22 May 2023 17:25:21 +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 Content-Language: en-US To: WANG Xuerui , 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: Sui Jingfeng <15330273260@189.cn> In-Reply-To: <26fd78b9-c074-8341-c99c-4e3b38cd861a@xen0n.name> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 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/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. > 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. The reserve ram will not accessible by kernel itself it this case, and can still be managed by ttm.