Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1713717pxb; Thu, 28 Oct 2021 08:43:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhtSW1YtkERjKXIV3IgW4DzvdhvM0PpxS6rHtntOiKi4ezjZqNcVEw3Y8r8Szoh4DVWy2Z X-Received: by 2002:a17:902:dacd:b0:141:8079:78a6 with SMTP id q13-20020a170902dacd00b00141807978a6mr4566596plx.45.1635435832720; Thu, 28 Oct 2021 08:43:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635435832; cv=none; d=google.com; s=arc-20160816; b=RMfb6FIi9wm08MZGLe9gM/ZukcCegnUZUmuSDXfI6ggcDgPqjvoSsIOEw+MjtZXDfU Sy/KHmnMEyagfgy6GzKojQRSQAcCIDZdcIZ9XPc6ztq3FGI4PuDh089QEVnuZnLBVWpk mp8qOGPYkrMjXAXFTvQ9I3q5pcUtcRkMwzzctH6t9nDDQR23CGoi96gnhrPCrw+MH9yy JOpZy0pz57JHBjrO9fDzGdhsXu4xpd/H9KKQL2M+6bxGoKDEDHxx6LGfcR5J7WGIcNhm 8hoAQk3Y3HIv3dej4W5XSMIOpDa9DwwzEiX0fI9ZEg78j0VkEAOYo7qVp2HqTu4W8I1M M8NA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=/Z5PQUKKMjzWeSU9bmE98K9hFHikgVsh9PZzWEEOrx8=; b=ETnoM7nV0Q0ke9u5q76r5eQ1V9oKh7USnCRje38p12Jcq2qr2G6bFK/cjWPJoeNOQQ 4L2fqgLoOKTLwMoZTOuxZw2+ZQmjjVnUbNfgC0/mFkwV2bks/8xveUofS1t9Kq9Wi11O vuz0ZLR2JTVHjrTa5F5GgcCV0y9eBF1rIyXT6h7P1zA7ec9A7HFDHapcMiJyaxSWgYVj RIJJfZvIbKCAGKGC5HmPbgcynG5gAC5Y8FgUva9nyNQpRZOuvInYFsO0xqKzOevH7t4F BDRqTG6sxGzzWVO0UF8B2bb/ItMe0aVMNeC7O/ghIZSk+a3qj9O0kpa2UVcNOoKjoDMJ hoGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=panOJuzK; 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=quicinc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y187si4119105pgb.268.2021.10.28.08.43.38; Thu, 28 Oct 2021 08:43:52 -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=@quicinc.com header.s=qcdkim header.b=panOJuzK; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230495AbhJ1OHv (ORCPT + 99 others); Thu, 28 Oct 2021 10:07:51 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:16612 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230195AbhJ1OHs (ORCPT ); Thu, 28 Oct 2021 10:07:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1635429922; x=1666965922; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=/Z5PQUKKMjzWeSU9bmE98K9hFHikgVsh9PZzWEEOrx8=; b=panOJuzKXWTEijdAZljLBEJy6CAz7+xWrK1RMolqytH4e8Rh0gIsynrT tfEjb+GcUiozCVNexxGrGeO+wGFXwpzYRi65X6xFslYMFOUUQxPREf6CM xI4pJHKpAHkSrfwqFdF7jc7epaBRfIJ3oGDP5T+8BUE6orcyZCeSlyhAG Y=; Received: from ironmsg08-lv.qualcomm.com ([10.47.202.152]) by alexa-out.qualcomm.com with ESMTP; 28 Oct 2021 07:05:21 -0700 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg08-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 28 Oct 2021 07:05:20 -0700 X-QCInternal: smtphost Received: from kalyant-linux.qualcomm.com ([10.204.66.210]) by ironmsg02-blr.qualcomm.com with ESMTP; 28 Oct 2021 19:35:04 +0530 Received: by kalyant-linux.qualcomm.com (Postfix, from userid 94428) id 0FA084E6A; Thu, 28 Oct 2021 07:05:02 -0700 (PDT) From: Kalyan Thota To: y@qualcomm.com, dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org Cc: Kalyan Thota , linux-kernel@vger.kernel.org, robdclark@gmail.com, dianders@chromium.org, mkrishn@codeaurora.org, swboyd@chromium.org, abhinavk@codeaurora.org, Kalyan Thota Subject: [v1] drm/msm/disp/dpu1: set default group ID for CTL. Date: Thu, 28 Oct 2021 07:05:01 -0700 Message-Id: <1635429901-5734-1-git-send-email-quic_kalyant@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kalyan Thota New required programming in CTL for SC7280. Group ID informs HW of which VM owns that CTL. Force this group ID to default/disabled until virtualization support is enabled in SW. Signed-off-by: Kalyan Thota --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 2 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 5 ++++- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) 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 ce6f32a..283605c 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c @@ -45,7 +45,7 @@ (PINGPONG_SDM845_MASK | BIT(DPU_PINGPONG_TE2)) #define CTL_SC7280_MASK \ - (BIT(DPU_CTL_ACTIVE_CFG) | BIT(DPU_CTL_FETCH_ACTIVE)) + (BIT(DPU_CTL_ACTIVE_CFG) | BIT(DPU_CTL_FETCH_ACTIVE) | BIT(DPU_CTL_VM_CFG)) #define MERGE_3D_SM8150_MASK (0) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h index 4ade44b..57b9be1 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h @@ -179,13 +179,16 @@ enum { /** * CTL sub-blocks - * @DPU_CTL_SPLIT_DISPLAY CTL supports video mode split display + * @DPU_CTL_SPLIT_DISPLAY, CTL supports video mode split display + * @DPU_CTL_FETCH_ACTIVE, Active CTL for fetch HW (SSPPs). + * @DPU_CTL_VM_CFG, CTL supports multiple VMs. * @DPU_CTL_MAX */ enum { DPU_CTL_SPLIT_DISPLAY = 0x1, DPU_CTL_ACTIVE_CFG, DPU_CTL_FETCH_ACTIVE, + DPU_CTL_VM_CFG, DPU_CTL_MAX }; diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c index 64740ddb..455b06a 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c @@ -498,6 +498,9 @@ static void dpu_hw_ctl_intf_cfg_v1(struct dpu_hw_ctl *ctx, u32 intf_active = 0; u32 mode_sel = 0; + if ((test_bit(DPU_CTL_VM_CFG, &ctx->caps->features))) + mode_sel = 0xf0000000; + if (cfg->intf_mode_sel == DPU_CTL_MODE_SEL_CMD) mode_sel |= BIT(17); -- 2.7.4