Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp75939ybj; Fri, 8 May 2020 06:54:01 -0700 (PDT) X-Google-Smtp-Source: APiQypIdWM7XuMeZryBgSxDn175yd5Zf71H7rlXMkPXPBrm38PV21V7LGi1Xd3cSZd4DyP+tT5jT X-Received: by 2002:a1c:7f91:: with SMTP id a139mr15419231wmd.164.1588946040876; Fri, 08 May 2020 06:54:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588946040; cv=none; d=google.com; s=arc-20160816; b=d3TwPzNAYO6FTPfj0bYuHTQoPl2f1+x8xAa3SPaNs8BvUse4hKrfsUQT6F7KUIU6AZ 5JxGiD8tBm23Nh5iDLaVJq0ujw1PhBM2zF9+57Lv0dcFr5+bO/AepL4yCmVpE6l4P9Wv UhuXKNoltBGFICezMePE1vyULC+516IP/+Wo6ZBLaWLvwtW4b4N7unlGzjtPhmHk6Ux2 VLWA1p/yVFegLzeLoS+nfgzh2s1VY4NGuygLf1t9kbVsoObsoAahleag6EVi0lFDIUOq 85MQc3BW69oLy3FAGwDS8jzTFUtwEsGu9Vu42LdvDlUM3jo6tD9c+Ts3c8fF48NHT76G oRow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=0jCsV9kMCvKoLy/+F2UgXK4X/51ktfa1OAMmkbW9Vos=; b=UkczamAZcFXIzZJPgHgzUEiZTg6g98sZdB0OvVOBANfEHT6W2S1Scj35ruIWWrOj2x UgS+DIeGI9Whw7CfFGUb76XfZAY8Pgniw/LGmserdni4lEcQFYEpkQ5siIgZyIP5qDFI OCYHn66z3Daq3QGex9irc/9Ek1voVbGfAmdgKNLSrIlE7To6ApLjXNa4KWo2gHyHcP6R J7ZnBXogD8KanUySdZ5ZzpUtHApESFvOXvUtY2UbknkzQhyV1HOBnJvEXBhjMs99BzRw 2NVY72DwXSHHTc8TUN1EoP6K0gbYSWDsfjpQH1pLAeX1s5sunBqkJjUz+XJwo42rblOj 9b6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ghHY8m6x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n28si7402890wmd.193.2020.05.08.06.53.36; Fri, 08 May 2020 06:54:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ghHY8m6x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728011AbgEHNwM (ORCPT + 99 others); Fri, 8 May 2020 09:52:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727076AbgEHNwM (ORCPT ); Fri, 8 May 2020 09:52:12 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF577C05BD09 for ; Fri, 8 May 2020 06:52:11 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id s20so756312plp.6 for ; Fri, 08 May 2020 06:52:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=0jCsV9kMCvKoLy/+F2UgXK4X/51ktfa1OAMmkbW9Vos=; b=ghHY8m6xtX8A574McPTJ+47EkLLBC4yXXpjqq5KpkaG44TQALnL8DTje3tAxiPinzi fXfnByOXmrNQArBPy2GqK++mVUdsKUcHeqINCPGHjg0HmnstTAdBq8Pyj7wtwj10gsva Ng92GCFDKcfcF2puH7AWmOgxKZpLDKE3bLs5G8mZ3jKLRq3w/W7V7+zgryKhtPTTzN8e 91HI2CD9MSokbfuol3Yjg42Vw4RjQj9xnuO0Zsa5XrKwjIl71sN1hHhARQvfttm0rsdb cUxf7iSBcs+dVFb2zTcuhMUUygVCggJQqUrtkYkKIBCSbkBYzLbUNk9W7+KI303KiSEk EbKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=0jCsV9kMCvKoLy/+F2UgXK4X/51ktfa1OAMmkbW9Vos=; b=lYiz2Boh5OBl45S1q6wJZ/mayIrj+p5Nax91UloBAb5YPVQwg475Z2WHFYXPEt/lUK T6/HZcuSwU8yW2+UmuWO35KZhsKQiwVtWXkjgF2qRRAtckWD2e8oLBTN79p1SN/QHcnW 7Uh4xe7so6Cqd7qKEDmvvrRascdDLOoqrIvrc/EG2mQZQ+psHahdwJODf9mSMG7e3iAc YsbDHn1TnIOPFghZt7+7fH3VFygNG03zx+ZaEi9ig2iZQKXArJGGL3lcd8Zm17vpvKUz 3HrXlrqZP7xPR4bzLaCW//3VrzWzXe+zRkMPEdYxjUSXuGoeCwhL3CAY+2tdhsT2jvbp unPg== X-Gm-Message-State: AGi0PuZozS+dR/g5Lw24rHrRBvmQMRFzMFFixaFM1VdazrWfeQxSIRJ/ TyQW7DmBuk0sDVDgnIRb2fSDKQ== X-Received: by 2002:a17:90a:e013:: with SMTP id u19mr5644114pjy.16.1588945931131; Fri, 08 May 2020 06:52:11 -0700 (PDT) Received: from dragon ([80.251.214.228]) by smtp.gmail.com with ESMTPSA id o6sm1845540pfp.172.2020.05.08.06.52.05 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 May 2020 06:52:10 -0700 (PDT) Date: Fri, 8 May 2020 21:51:59 +0800 From: Shawn Guo To: Konrad Dybcio Cc: skrzynka@konradybcio.pl, Rob Clark , Sean Paul , David Airlie , Daniel Vetter , Jeffrey Hugo , Allison Randal , Alexios Zavras , zhengbin , Thomas Gleixner , AngeloGioacchino Del Regno , Ben Dooks , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drivers: gpu: drm: Add MDP5 configuration for MSM8x36 and its derivatives, such as MSM8939. Message-ID: <20200508135157.GD30486@dragon> References: <20200501205201.149804-1-konradybcio@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200501205201.149804-1-konradybcio@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Konrad, On Fri, May 01, 2020 at 10:51:59PM +0200, Konrad Dybcio wrote: > Signed-off-by: Konrad Dybcio Please write up some commit log. Since this is based on msm8x16_config, maybe document the differences from it in commit log? > --- > drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c | 70 ++++++++++++++++++++++++ > 1 file changed, 70 insertions(+) > > diff --git a/drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c b/drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c > index e3c4c250238b7..1c7de7d6870cf 100644 > --- a/drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c > +++ b/drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c > @@ -342,6 +342,75 @@ static const struct mdp5_cfg_hw msm8x16_config = { > .max_clk = 320000000, > }; > > +static const struct mdp5_cfg_hw msm8x36_config = { > + .name = "msm8x36", > + .mdp = { > + .count = 1, > + .base = { 0x0 }, > + .caps = MDP_CAP_SMP | > + 0, > + }, > + .smp = { > + .mmb_count = 8, > + .mmb_size = 10240, > + .clients = { > + [SSPP_VIG0] = 1, [SSPP_DMA0] = 4, > + [SSPP_RGB0] = 7, [SSPP_RGB1] = 8, > + }, > + }, > + .ctl = { > + .count = 3, > + .base = { 0x01000, 0x01200, 0x01400 }, > + .flush_hw_mask = 0x4003ffff, > + }, > + .pipe_vig = { > + .count = 1, > + .base = { 0x04000 }, > + .caps = MDP_PIPE_CAP_HFLIP | MDP_PIPE_CAP_VFLIP | > + MDP_PIPE_CAP_SCALE | MDP_PIPE_CAP_CSC | > + MDP_PIPE_CAP_DECIMATION, > + }, > + .pipe_rgb = { > + .count = 2, > + .base = { 0x14000, 0x16000 }, > + .caps = MDP_PIPE_CAP_HFLIP | MDP_PIPE_CAP_VFLIP | > + MDP_PIPE_CAP_DECIMATION, > + }, > + .pipe_dma = { > + .count = 1, > + .base = { 0x24000 }, > + .caps = MDP_PIPE_CAP_HFLIP | MDP_PIPE_CAP_VFLIP, > + }, > + .lm = { > + .count = 1, From what I read on downstream 3.10 kernel, there should be two mixers just like msm8x16. qcom,mdss-mixer-intf-off = <0x00045000>; qcom,mdss-mixer-wb-off = <0x00048000>; > + .base = { 0x44000 }, > + .instances = { > + { .id = 0, .pp = 0, .dspp = 0, > + .caps = MDP_LM_CAP_DISPLAY, }, > + }, > + .nb_stages = 8, > + .max_width = 2048, It should probably be 2560 from downstream below. qcom,max-mixer-width = <2560>; > + .max_height = 0xFFFF, > + }, > + .pp = { > + .count = 1, > + .base = { 0x70000 }, > + }, > + For consistency, we may want to drop this newline. And it looks like there is a .ad block on msm8x36. qcom,mdss-ad-off = <0x0079000>; > + .dspp = { > + .count = 1, > + .base = { 0x54000 }, > + }, > + .intf = { > + .base = { 0x00000, 0x6a800, 0x6b000 }, > + .connect = { > + [0] = INTF_DISABLED, > + [1] = INTF_DSI, > + [2] = INTF_DSI, > + }, > + }, > + .max_clk = 366670000, > +}; Need a newline here. Shawn > static const struct mdp5_cfg_hw msm8x94_config = { > .name = "msm8x94", > .mdp = { > @@ -840,6 +909,7 @@ static const struct mdp5_cfg_handler cfg_handlers_v1[] = { > { .revision = 2, .config = { .hw = &msm8x74v2_config } }, > { .revision = 3, .config = { .hw = &apq8084_config } }, > { .revision = 6, .config = { .hw = &msm8x16_config } }, > + { .revision = 8, .config = { .hw = &msm8x36_config } }, > { .revision = 9, .config = { .hw = &msm8x94_config } }, > { .revision = 7, .config = { .hw = &msm8x96_config } }, > { .revision = 11, .config = { .hw = &msm8x76_config } }, > -- > 2.26.1 >