Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2100345lqb; Mon, 27 May 2024 07:54:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUGfzH1pBiKibVQHDzZ6hXHL1aJfpgJF8Anhyx4PDa4gmDijSqaXvJMTXli5NmlnKbS4mUZuL+qQKrj3nUm3kOJAGySXlzkU2Z6fRBhMg== X-Google-Smtp-Source: AGHT+IF68grpaIWqgFq07T+XYanR74C1sL95igdZ7uMWW09w6HBL7S3HMwEFZ2QzeB/bW8Kw79Yk X-Received: by 2002:a50:ccd8:0:b0:579:c08b:afa9 with SMTP id 4fb4d7f45d1cf-579c08bb620mr4007832a12.11.1716821699713; Mon, 27 May 2024 07:54:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716821699; cv=pass; d=google.com; s=arc-20160816; b=FRLGPmTLPT7nSWOYZLAcRGpbUQLlMu/4iDD137aXP3q7wP+GTpb2N4Wv4CeXgSfdro WXg4ivd8S63b31FZuzLxImjSKL3sgX3+ZHvQnM/oKYRPyBJh8s1z4o+/w+k4d032N9KJ KARpQLJ9+WkGYPD50F0W1NX4JP0hUsv4KT3dc0HZm6FwyibnFL6OkQwwrsSSovwkGbSC gUAYZ0U0r4pR2+5mQd9GLnOGN5ajrFv28hFAdnbDTrNa3Yznp+n1jfc5jIzD7V4OQ6o2 rtKNaxe7873u06ejjO80kXmYOyS0Co8yrJoH4osF5uY7Xz29wHRY1Wkdv38BGkx9XLI+ Xa/A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=9zZvfy4gBMpippgmQ5wbc8/FSu6Fg33BHDu+XbQ+New=; fh=7XlVtqcqD+bmjp5TLYJnLhdge3g1gEHcCYY2NZxp2jM=; b=PJJLhwXyHPx0ZUSYceka6UeMrOijfloVxodt1rLStqhrFl2oDqHUl7TinzFpBTCFRD nDUxkCOT+5f1Zeda+M3I5MFwMJYXS+ogct2DOyR/chlDsTLKDDadJ4QYXMcGm8QtEVB0 TRODTVkSvBA+DVEqKuvGWV9yv7F1RJA5miwbtp/5ofBnBQVVhzsEl7H/szgzMg/DOnRo ZTV4ATEiDiTSMr+TXETT/TR8x4LmFDRZBnHGcgKSdaHcmfBC1A2L88DGw5NHpmY6wBTX EXA0ShtX0VHeytbK+MHXITW8+IFOCMdc5fizSNHxgMVElT71p1g2zrFSMutVYlXhtBSS x13g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ITL8eiBl; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-190952-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190952-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57863bd94fdsi3047229a12.548.2024.05.27.07.54.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 07:54:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-190952-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ITL8eiBl; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-190952-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190952-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 49EE31F215DB for ; Mon, 27 May 2024 14:54:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CEFA5161331; Mon, 27 May 2024 14:23:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ITL8eiBl" Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A08F9161326 for ; Mon, 27 May 2024 14:23:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716819827; cv=none; b=YeYHnNtxklPss6km8DMcxiwzlHD8P/pZlxTTKMN5yoQfExTDoq0SvAHDgaec+Rzwp77mbPvj2ewATb3cZZF64NugSrmiMVBGIGIuPqzY7o9TDrtc2qdqlEUnzJtENfXT7NUuH4vLPohnOEIBRxeMg3WQ96XGsILpbrZn7vgN0fM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716819827; c=relaxed/simple; bh=puwV6VMl3Gje+6cIe4adoHwyL8CXWB3PvIs7MINp1lg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qGRhbjUk32/rnaWmC0HW0CMDP4UwJLB0VUcHWm7t+3dKEnnHFujGd24M76UcO0ZI6693yOldshkpUpT9yqs9CaBeF7/y904/ZZLZdazcbuhtUMb/uCMGwy5rBn6dSBsdkOu8t/0g/Uu5biuY9UpRa+m3ZWeAeGhs/1KXqr0knpA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=ITL8eiBl; arc=none smtp.client-ip=209.85.210.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-6f8edff35a0so2577212b3a.2 for ; Mon, 27 May 2024 07:23:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716819825; x=1717424625; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=9zZvfy4gBMpippgmQ5wbc8/FSu6Fg33BHDu+XbQ+New=; b=ITL8eiBlZbFXSrNKy7PvsQzawBX0cEqhk2kSk0RSQjGEaTcfXre2xxoKi5VRj18jWR M048OKP7cJuKfnH8sFZy2TND2i02wqV1MnPFdvDI/iSN872OV5Q0UHiGiFzH4pQoCOKT 0CF+yukHAVZs1sF8s0aFhFKhDzI+wA+fzT0schUH7Bm3Q2iRtWvS1GJbuQsob5PD1ZP9 J9J+Q23GYlyW2CvNXoqz5aleY6YgRtAWKE8LL/5+e8+pgAVSX8rvqZEzo0WxY0MbO9Gw jLP16wF0o3yhU2dEN3R4ZicuIs+MYbvLiAoX4nyQvEZ1BEOq+NgyzvZHR0lNyXe7Lsqi qYzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716819825; x=1717424625; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9zZvfy4gBMpippgmQ5wbc8/FSu6Fg33BHDu+XbQ+New=; b=AM3SwRAOd5tfjDF6HKhuF99+mfKXg4Pm9PvuNMZoSQjC/asTcbAQcWA52SCeRcDtje ieiJT6U3jujYl4740ZeUfhSem8yyJad5W1l/M5vkDvieCqERXwZVvTSoTPR9M37nYG5c Lj/eri16SKxpK8Acn6AfH2wYMNL0HkIx9miHOHR87i6sFKJhFiS5c/IkyFOnEQ2gBEOk iV8IB4po8uxRNxqRHp/IoPvWWO5YkPN+/AQJptG9TVLEZ+KfXjAIWAD3pm3xWRGBos0C 8SgCgzj20Ta4+JO2FUVN5WGpwsDXIhVUGANQzQ+jVz3CwK1Jg2f+glnW6gGILRLg3mCt iYqA== X-Forwarded-Encrypted: i=1; AJvYcCXxwz/frzMIuGVFszfCkqvHiUuJF19Qs27byBV8TJVpuAqHC3QXrqQLJIPm10sCjIA/2CXLMwAKQRy9cXZ3fkwhFCz8FIOEGjQLGB6J X-Gm-Message-State: AOJu0YzqM2POvxFwfbVcpqny+SKDyr/a+1ZaQUcT3/kthvN/Kl2+WNoU Y9nYan0lWftmP9ymzRk528FqVyPRH/hUi0eA6G1gwwkpzv35DxJfHNEgjE4IKXM= X-Received: by 2002:a05:6a20:72a6:b0:1af:a45a:a8de with SMTP id adf61e73a8af0-1b212d5aa97mr11310422637.5.1716819824793; Mon, 27 May 2024 07:23:44 -0700 (PDT) Received: from [127.0.1.1] ([112.64.61.67]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-6f8fbd3eb67sm5109895b3a.19.2024.05.27.07.23.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 07:23:44 -0700 (PDT) From: Jun Nie Date: Mon, 27 May 2024 22:21:49 +0800 Subject: [PATCH v5 3/6] drm/msm/dpu: enable compression bit in cfg2 for DSC Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240527-msm-drm-dsc-dsi-video-upstream-4-v5-3-f797ffba4682@linaro.org> References: <20240527-msm-drm-dsc-dsi-video-upstream-4-v5-0-f797ffba4682@linaro.org> In-Reply-To: <20240527-msm-drm-dsc-dsi-video-upstream-4-v5-0-f797ffba4682@linaro.org> To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , Jessica Zhang , Vinod Koul Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jun Nie X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1716819804; l=886; i=jun.nie@linaro.org; s=20240403; h=from:subject:message-id; bh=puwV6VMl3Gje+6cIe4adoHwyL8CXWB3PvIs7MINp1lg=; b=ZogImoZXzCH580LPFWHl29ocg7xqFmLTY0xbQUs0QVH/Rf4R1calGI+KqzyIgCRbmiPD8fn9V 6qwpylPoVrBBEX6cdG8aua9l2xblGmOgNFwbUeRWLLOM6Wl0yuwy7Ny X-Developer-Key: i=jun.nie@linaro.org; a=ed25519; pk=MNiBt/faLPvo+iJoP1hodyY2x6ozVXL8QMptmsKg3cc= Enable compression bit in cfg2 register for DSC in the DSI case Signed-off-by: Jun Nie --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c index f97221423249..34bfcfba3df2 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c @@ -177,6 +177,10 @@ static void dpu_hw_intf_setup_timing_engine(struct dpu_hw_intf *intf, if (p->wide_bus_en && !dp_intf) data_width = p->width >> 1; + /* TODO: handle DSC+DP case, we only handle DSC+DSI case so far */ + if (p->compression_en && !dp_intf) + intf_cfg2 |= INTF_CFG2_DCE_DATA_COMPRESS; + hsync_data_start_x = hsync_start_x; hsync_data_end_x = hsync_start_x + data_width - 1; -- 2.34.1