Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2057483pxb; Thu, 28 Oct 2021 15:21:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6ROteXzPmGT0Lef4WSzysYHdlPjraQ0e2GnGiH/0uhHdFy0iFCuE6WuMTf1Jv5bb8nS/Q X-Received: by 2002:a63:6f0e:: with SMTP id k14mr5342002pgc.351.1635459684144; Thu, 28 Oct 2021 15:21:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635459684; cv=none; d=google.com; s=arc-20160816; b=WPCiNkb16p2hM/1BNnuDKHtSDUmUq0kd8yAnKxCmd/FCi1dAm9UR4LmK9pHpqQHV9b D8SPKhZ85u7aB7KkMfPaSHWriI4mbuNxV09KuvMs6qS2poxjTXzsfLfFPluxySd8dkns Nc/bJBhdMIxPszVTQ73qUvyJUriMwmSNPycfmFYqn6xBthhC9gbJFPglAFmSjg7xFnaf aaaqR45orK9vVR+8p5yISfDQXgXe5hNgfl8n6kyqhipa2P12++hyYlyifzyNbhDcWYSX BdMV5fvGrIq5pxH/zMAMiN2VbsdzAwcGulGaIZXBifNC/p4N4ZOZ5Zq5dFCiiut74+Hu 638A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:user-agent:from :references:in-reply-to:mime-version:dkim-signature; bh=XlHbKWd6pbbGkZIStSTxFaG7vAcQNI1eMo098oPb11U=; b=t5ww+/e+M9nyTSTcZB4d09A5jcNsTD8GIrKSKjVp5taqxMsgh/mkW4W7lx0VSAftHw 5j6xa2on+ISwCCZCyDoRgDCCjh+LYyeEHFKC+AvjXreDczXm3ZukZ19ah0NC/SanBJHf oa3piZefAcQ+euoqioZD2xtCNyXOsbLPkdpV5PXqQtWgndzMK8y9AlI1usVi+8Dnidyi zJ3RzO7j7NkIDfm4PA7FR8Rh6grrF4fF9v5W0NtUQFYLd+QWaLDLjWJBZTCFZ2WVyWmu SNDQ+649pNLYlrVceJvIrPm5UgsQvX8C+mfav3V9vn8un4+qkwhoA7VVjku4250uX/jv X6+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=RhaDuJkx; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z2si6058834pgu.168.2021.10.28.15.21.11; Thu, 28 Oct 2021 15:21:24 -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=@chromium.org header.s=google header.b=RhaDuJkx; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231124AbhJ1WW2 (ORCPT + 99 others); Thu, 28 Oct 2021 18:22:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230264AbhJ1WW2 (ORCPT ); Thu, 28 Oct 2021 18:22:28 -0400 Received: from mail-oi1-x229.google.com (mail-oi1-x229.google.com [IPv6:2607:f8b0:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D535C061570 for ; Thu, 28 Oct 2021 15:20:00 -0700 (PDT) Received: by mail-oi1-x229.google.com with SMTP id x8so6151209oix.2 for ; Thu, 28 Oct 2021 15:20:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:user-agent:date:message-id :subject:to:cc; bh=XlHbKWd6pbbGkZIStSTxFaG7vAcQNI1eMo098oPb11U=; b=RhaDuJkxg7XSpHf1uMr3Oikq4bAIm4AIWrTxFhp8J7btCs5Nftz/ce0uJkrqfybZrc bNQo6d4RbqLbn4oijl8a1LKrezIg6TCLyulzp5pwHGocfyCOsHOuL2cH3DLL4oQzk6+x KMcxqk/gkb95/yfIhVcLt7ii70Z/DCTgQVYUM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from :user-agent:date:message-id:subject:to:cc; bh=XlHbKWd6pbbGkZIStSTxFaG7vAcQNI1eMo098oPb11U=; b=E5KzOHecSsJNivNPomwKmT/DFQlLp3ILbmxesyGAZBeG8f/lAV5Xr6rMovC+eGs82S r0JG3bHQYU10pwLwFvZsRtQxKeAZ1KN/6PTU9lC6xYq0vfCZraQOahdBTmYNh0AtGoyQ mpKwuylOV75HLoyf13tyRq/SnMOlYlcnjGbFe6MxS4c3mb8SSiPUwSPzjOfxUndGibMr Cc4doJkOCTz3yrbrGxp1Zh9sQJTO+Pr/NNEAhZLDv9ZS0B/X55XwJs+ZvliHVoP9qvqB XWFxIFcljtTI7jfEUiuGYRA4FrfzS8zUZobUTqP57taQ9kkaaKUPNjBy90UTUSlWo+l2 QYfg== X-Gm-Message-State: AOAM530EMkiiU3LsXLmhIpN/CHWlLhc9KBGBWO8sO+6hFe0KcstexWiR 00tQvOh96qzJ/k1c8MaF5YgJT5xrpytYFQ8aHS2hmQ== X-Received: by 2002:a05:6808:23c2:: with SMTP id bq2mr11059063oib.32.1635459599626; Thu, 28 Oct 2021 15:19:59 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 28 Oct 2021 15:19:59 -0700 MIME-Version: 1.0 In-Reply-To: <1635429901-5734-1-git-send-email-quic_kalyant@quicinc.com> References: <1635429901-5734-1-git-send-email-quic_kalyant@quicinc.com> From: Stephen Boyd User-Agent: alot/0.9.1 Date: Thu, 28 Oct 2021 15:19:59 -0700 Message-ID: Subject: Re: [v1] drm/msm/disp/dpu1: set default group ID for CTL. To: Kalyan Thota , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, y@qualcomm.com Cc: Kalyan Thota , linux-kernel@vger.kernel.org, robdclark@gmail.com, dianders@chromium.org, mkrishn@codeaurora.org, abhinavk@codeaurora.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Kalyan Thota (2021-10-28 07:05:01) > 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. Are those commas supposed to be colons? Also the application of the period/full-stop is not consistent. Please pick one. I see the double star so it looks like kernel-doc, but probably doesn't parse properly. > * @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; > Can we get a comment here about what's happening? > + if ((test_bit(DPU_CTL_VM_CFG, &ctx->caps->features))) Does it need to be atomic? Sort of doubt it, so probably __test_bit() would work just as well. > + mode_sel = 0xf0000000; How about a define for 0xf0000000? Preferably a name that matches the register description for this bit pattern. > + > if (cfg->intf_mode_sel == DPU_CTL_MODE_SEL_CMD) > mode_sel |= BIT(17); >