From patchwork Wed Aug 2 13:48:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Marek X-Patchwork-Id: 129884 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f41:0:b0:3e4:2afc:c1 with SMTP id v1csp524989vqx; Wed, 2 Aug 2023 08:09:28 -0700 (PDT) X-Google-Smtp-Source: APBJJlGRFoN2iCjf+gjpp3HjZXyiDKP+eNxymChN+6VQ7IL8YNxJxjWBbcc8RTV3FcVidZwHTNnH X-Received: by 2002:a05:6a20:d408:b0:137:5957:6978 with SMTP id il8-20020a056a20d40800b0013759576978mr13372685pzb.46.1690988967912; Wed, 02 Aug 2023 08:09:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690988967; cv=none; d=google.com; s=arc-20160816; b=UlnbmJ5WVMoxx0UTUe8TMh/1EjJR4dkEdOFyEJZ+6XJCNIw9Ca3lrHs/JZxwPj3xcd oFRYE61dJHM+w3EoUqZMwA4y4rQv4RE6Au7HpoqJbmLoGSUnn+A4doUtjYkwVNzPJGi5 DeB806K6ZZBxPvdGRGBAAY+TwcdLil/Z4qmsLNTAlsvZ3V5EjNBww1SZ7uScaZyxjF30 UqaeY9ew/vEm5oPVUxlm2LIRLrrV1ztlhjkZESwA6CfYtxq046RCoNLeYTuKvAqV5ywG pcY/C4v4WRGGfe4dZ3blfLjyKJ9YysZt4M3GJ13Ly0W+jrZcRSo2nF1scUUdH/SOwXAy 0i2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=l1zIwGQ1HZMb0pN+mUSGNHuePnalac4Pl8tVWYqsfVw=; fh=cWctgHXOn2z8mm5ImV5jEhlVV4aIFkjmYyAHdkjG0Qw=; b=ZDYI7M+IxmZS/AVlXmQ7rlhZ6RxWA5qDtFuCVw+t0FJqusfAevBh9ehvq2jsz86ydo 4ngEYl3ZHTeBGyUUebp7cvK/rJ45Lv192AOCUWWd0yQELd0PRKa93sAaLBpETdsKrTmE e6hLtrx1c8nQkbjF2XFkvlVr0U73QMRCKo2EUfpKuOLIIfgGXawr2RJ9iQRGK049MUho 5qoLprtfd65ZjEoGwvrc8McyboUDKhzKAV9WShc/b+jCIBVrXPE+i8i6H8Y3nm5ApKTK /4/XCLm8vd7HQrj/DT96xjyxAcpBj7E8C6QN4C/OL6lYAwoO9VTXvKcIj12lbQFQisg5 zikw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marek-ca.20221208.gappssmtp.com header.s=20221208 header.b="nn/5AxkS"; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f5-20020a635545000000b0056399efdbdcsi1757441pgm.846.2023.08.02.08.09.13; Wed, 02 Aug 2023 08:09:27 -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=@marek-ca.20221208.gappssmtp.com header.s=20221208 header.b="nn/5AxkS"; 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 S233722AbjHBNvv (ORCPT + 99 others); Wed, 2 Aug 2023 09:51:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232805AbjHBNvt (ORCPT ); Wed, 2 Aug 2023 09:51:49 -0400 Received: from mail-qv1-xf2a.google.com (mail-qv1-xf2a.google.com [IPv6:2607:f8b0:4864:20::f2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BC7E2114 for ; Wed, 2 Aug 2023 06:51:48 -0700 (PDT) Received: by mail-qv1-xf2a.google.com with SMTP id 6a1803df08f44-63d48c3d242so37520876d6.2 for ; Wed, 02 Aug 2023 06:51:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marek-ca.20221208.gappssmtp.com; s=20221208; t=1690984307; x=1691589107; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=l1zIwGQ1HZMb0pN+mUSGNHuePnalac4Pl8tVWYqsfVw=; b=nn/5AxkS768/jvAiPhVwNmrYfMymkvIhBxizk84LoThX/jtNxpq5b3gruU6lrYUmjS yLmNxZXOnJ3yALNI2clOe97krKwCf2yvznzlmKTEau/BsR4mntw25XMynGRXjWaqFMip 9wsASCi70GrftHbVGekSQyLRUqFTiLc8d0SP9o/SUo2LaJxwl8WP4H0xoEDgCTcnSD41 Eo2U3DmxIJtXBOsUv3C6VCAIGn3iThTkb+50kSPenb3KkBl/wW73UfggTC6N31jeoVzr Ya5YIK3zv0vx0gF9aPvVnsErWu3NXu4jqH/N1DE1pJCkZBwkAL2HUOv1g/M88qwPd9LB K5vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690984307; x=1691589107; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=l1zIwGQ1HZMb0pN+mUSGNHuePnalac4Pl8tVWYqsfVw=; b=GKwtN7eh1axJs/9ZHtvTo+Qr8jfxbdG3LIIscMFNlq+7FWtCtSWy2VATQlZfYxb5nF fJAIEKoZqRX7YxLV9PbWM3gEsZUhDU6vl4GqodCWu+E6y2u813Pt+Kh/EvlfgIDttUBz OnyMFO+1GUHgHcSs1y2qYk4AbneWlA+Q3bhrfeiADSpmpD97GYPp9aJm8nn3mA9dudyg xjPRik6ZSoqqahJPkGNjfLzOt2/Sp51SkVu/pX5DYTMZlKYOCMwrFGzt4P/IZKauiTDk aQRbz+50wNChaLtrZ/c/35CRnTGDyuPnj7OlSJkRWBn066X2C0blHUCMv2y5DMBZKbvF F3CA== X-Gm-Message-State: ABy/qLZjJWoLwZw1+PmoDQUfPX2FqKQTU65d1huE01Uj/Rt7LLFHHEwz gUAFo+XV+g+wqHXtOOjlhZtljA== X-Received: by 2002:a0c:e448:0:b0:63d:4a9b:b29f with SMTP id d8-20020a0ce448000000b0063d4a9bb29fmr14482083qvm.65.1690984307163; Wed, 02 Aug 2023 06:51:47 -0700 (PDT) Received: from localhost.localdomain (modemcable125.110-19-135.mc.videotron.ca. [135.19.110.125]) by smtp.gmail.com with ESMTPSA id k24-20020a05620a143800b0076c9e981b6bsm3492191qkj.57.2023.08.02.06.51.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Aug 2023 06:51:46 -0700 (PDT) From: Jonathan Marek To: freedreno@lists.freedesktop.org Cc: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , Konrad Dybcio , Kuogee Hsieh , Neil Armstrong , Robert Foss , Bjorn Andersson , linux-arm-msm@vger.kernel.org (open list:DRM DRIVER FOR MSM ADRENO GPU), dri-devel@lists.freedesktop.org (open list:DRM DRIVER FOR MSM ADRENO GPU), linux-kernel@vger.kernel.org (open list) Subject: [PATCH] drm/msm/dpu: increase memtype count to 16 for sm8550 Date: Wed, 2 Aug 2023 09:48:53 -0400 Message-Id: <20230802134900.30435-1-jonathan@marek.ca> X-Mailer: git-send-email 2.26.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773126695351373032 X-GMAIL-MSGID: 1773130447544196924 sm8550 has 16 vbif clients. This fixes the extra 2 clients (DMA4/DMA5) not having their memtype initialized. This fixes DMA4/DMA5 planes not displaying correctly. Fixes: efcd0107 ("drm/msm/dpu: add support for SM8550") Signed-off-by: Jonathan Marek Tested-by: Neil Armstrong # on SM8550-QRD --- .../msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 4 ++-- .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 20 +++++++++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h index f17b9a7fee85..89a2ac1e840d 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h +++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h @@ -245,8 +245,8 @@ const struct dpu_mdss_cfg dpu_sm8550_cfg = { .merge_3d = sm8550_merge_3d, .intf_count = ARRAY_SIZE(sm8550_intf), .intf = sm8550_intf, - .vbif_count = ARRAY_SIZE(sdm845_vbif), - .vbif = sdm845_vbif, + .vbif_count = ARRAY_SIZE(sm8550_vbif), + .vbif = sm8550_vbif, .perf = &sm8550_perf_data, .mdss_irqs = BIT(MDP_SSPP_TOP0_INTR) | \ BIT(MDP_SSPP_TOP0_INTR2) | \ diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c index 0de507d4d7b7..8b17a4a9b438 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c @@ -663,6 +663,26 @@ static const struct dpu_vbif_cfg sdm845_vbif[] = { }, }; +static const struct dpu_vbif_cfg sm8550_vbif[] = { + { + .name = "vbif_rt", .id = VBIF_RT, + .base = 0, .len = 0x1040, + .features = BIT(DPU_VBIF_QOS_REMAP), + .xin_halt_timeout = 0x4000, + .qos_rp_remap_size = 0x40, + .qos_rt_tbl = { + .npriority_lvl = ARRAY_SIZE(sdm845_rt_pri_lvl), + .priority_lvl = sdm845_rt_pri_lvl, + }, + .qos_nrt_tbl = { + .npriority_lvl = ARRAY_SIZE(sdm845_nrt_pri_lvl), + .priority_lvl = sdm845_nrt_pri_lvl, + }, + .memtype_count = 16, + .memtype = {3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3}, + }, +}; + /************************************************************* * PERF data config *************************************************************/