Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2588622lqz; Wed, 3 Apr 2024 02:40:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX+l7S44ZDU+cntUbPKSkxC5esKi3V2hoqJywbwBgiCcBYRj+YEL2rTAF+coqz1CF1NUXtM2ytFD4ygjWvLlbo0LGgxqWoTdIEYPwcEpg== X-Google-Smtp-Source: AGHT+IHCbeG5FN6Nz9ccRjt9i9TZaFamCnO+drAsrnvvoVSdaA4ohOSXbT3rFlVFNQkoF2B/7PyC X-Received: by 2002:a17:90a:3fcf:b0:2a0:390e:f032 with SMTP id u15-20020a17090a3fcf00b002a0390ef032mr12546373pjm.32.1712137206300; Wed, 03 Apr 2024 02:40:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712137206; cv=pass; d=google.com; s=arc-20160816; b=VVmrKDE5s3S6iTOwUoB8c4c4orMTTz/mdVZjrWb0iCPc79HXW2hqar+5RDHHMw4tav gsZj6CLPSKfHjOyLnpfzBC8zaLc7MUKxFKLImEn6iQKXf8VA8zJgJomfXYZNhqmFWJ2p P6ldMzHf6hG1XT3/cfE569dyqF9NfpYnbsny9Nz2ICWt5kvvgsdIzz4TCBjyoV0YCmCZ DdHw5a3ZbOtWMV4J462pYOIZa6qG1DBl5KkvdYAwcYxgXUSnDmeru88RTM5niKuOkJlt e9nfU8m2H4P0yUvRFN5lJyfcaO1igmaAC5NZDbll1clnzlNmhsYgh/fYNUq8hdx4OQ5T zWcg== 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=NOuu3sNA+84lczt5jxnbeGrnj9MwNeOoooH77NlU9Y0=; fh=MCySTGUU6viB8ToHOwaFUXXo1BZ2xI5TXYfapZcumMk=; b=esoTl2YD05WKEUfn9x4eOpAVYsEnF/dK84viGjJMliOSGcBRg+0Z1RXkT0U0gtShom PJE6WKk6QMaIls3puAEkjRJciEPApO7p1vGleH/mHjKpOdZiqgDZPV5Jr6+dgyVJZCTG Zd7pt1MElmuBKx5GqfatIB65C7kd3QV1wV40E4kwE2AoHBa5OCHzKVXkqPRYaeThzaaM SFY4k4NpA0Oyw29IEjT+8MiJTk0reapX4DBq+vSyoB9zHoHlgv57pwwAT+RKfRN6+cCy yPLshnVi/pWibs9uswj0bABPvDdrn8S/Iz99ktYvIk9kRUOvIVnw9trePrXzFcj4C89E GcNQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oqEBqIGJ; 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-129403-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129403-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id u193-20020a6379ca000000b005f0a5265476si8091040pgc.639.2024.04.03.02.40.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 02:40:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129403-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oqEBqIGJ; 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-129403-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129403-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id D01B1B2B8D9 for ; Wed, 3 Apr 2024 09:13:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E94FA811F1; Wed, 3 Apr 2024 09:11:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="oqEBqIGJ" Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) (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 B7A4B6FE34 for ; Wed, 3 Apr 2024 09:11:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712135506; cv=none; b=o5RrC1NMIvILnAbaYRbmiGzKm0qn85t/HZWADtRhKTzaSL0KqBqALDnt4+tN7/PjWXEGKpJSBKdLKfeoNXwlxZuGz4Yq4ECr1b1xVDBFUSZedKYfvxhb+eEhwvR4FVN0RWbnAIZhGLETwRuZp7Kvfw9qOu6B/h5NVQuhjzXg2E4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712135506; c=relaxed/simple; bh=MU4Swq5XDKyEWa3JYSzWqbeemF0ZbJTcthPE2KJsZos=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=moHkqhkdpOpzP/4NSrjMqm1ur6nUSq5rXEph3ycHtjYkc4eJL4ZY56LprvC+14GhqtQCfn9yahpteXqU5ywLkDpc8WJ9nD/ZsinSSk4MLPMnzlmSC+AXLQxs3XZgZsUr6bTshuIk9YNGGEfXA4uZ3sSbtw9bGeXwW+EO5mdOkkg= 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=oqEBqIGJ; arc=none smtp.client-ip=209.85.214.179 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-pl1-f179.google.com with SMTP id d9443c01a7336-1e296c7aa7cso2307685ad.1 for ; Wed, 03 Apr 2024 02:11:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712135503; x=1712740303; 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=NOuu3sNA+84lczt5jxnbeGrnj9MwNeOoooH77NlU9Y0=; b=oqEBqIGJOQDtJMGZiW52ZTLuPgwStnwwL4QEXGO7fXl4BxgmSZCSyfecREMUAoAi0I VoDvBER8PNZQ4DxejSsgK9wRMh5UTUGAxaRpqnSmnPSNya8yKu8wuus//T99ptEorrlh uqcyX5WwkAkq9V5IRbUU7a3b4XHOYGX0xyZUBeaO98S6yIH4RVovoMX9RSf2ZWvmvHhu 78rk6HhuKJsnPFzmXRcvvOAYt1gm7tk53SSXk24fnC2kYlP9q1mWpNpm7AOhyDNqbpZw rj/S0CD87zQHyYG6lnN9tU6tddhmm690z9Q2YA/nQto5cE24Cw4ui1Vyl0xO9FU8BoXy QHlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712135503; x=1712740303; 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=NOuu3sNA+84lczt5jxnbeGrnj9MwNeOoooH77NlU9Y0=; b=l5cty+vCj5QRPpyPH3NQtW+CjFa0GD0wdmFZIRtQ+34QjdexaMCrm548fi3se5TmOW pHhapi11WpCRDENWVKPICM9vDsnpQNciptSErKyVVQeOU08ySPSyc0B1KyQLHATKTZ6d ulf2H1ha6mfw9uNE0rNlECrXx/zsj/ekM7d7k7obRLrnBnIp1naNOfipl1jo6avXWtQI dwxOqUwvfdfj6cSFHJTl4fTTVQB12IX9gK0oOP9obhuys29OnznvZRXqh+LNHrNn76uG VWuFr3GEHS19s0qP2rT+tZa8skcP/7g+l75kzJxdv6rpc2lcsCX9orpchESdR3fHqo93 oF0A== X-Forwarded-Encrypted: i=1; AJvYcCV4+EHjYBqKMhjK/xd49qmaMfnIjK9wWRQ6TOaiIIdXFxSymfLg1jQmnpHjkWkm6fnufjaQsFtNKWPMXZkQRNiobLIqbTziU4G/oJBY X-Gm-Message-State: AOJu0Yz0smOG+lGooxSne5VKU9UDegHyeHY2k1uSneN15zPqWB0A095c 77fBFrrVwxrT+d9DFZtH3yDz1xlKjlu+nVA/WV4Y7oUp91Yq7RLbv4MnB57svREYiSPXdqhm/6B 2SamMDA== X-Received: by 2002:a17:902:c94f:b0:1e0:a784:f965 with SMTP id i15-20020a170902c94f00b001e0a784f965mr18198301pla.65.1712135502878; Wed, 03 Apr 2024 02:11:42 -0700 (PDT) Received: from [127.0.1.1] ([112.65.12.66]) by smtp.gmail.com with ESMTPSA id lo14-20020a170903434e00b001e0aded0ca7sm12688087plb.239.2024.04.03.02.11.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 02:11:42 -0700 (PDT) From: Jun Nie Date: Wed, 03 Apr 2024 17:11:01 +0800 Subject: [PATCH v3 5/6] drm/display: Add slice_per_pkt 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: <20240403-msm-drm-dsc-dsi-video-upstream-v1-5-db5036443545@linaro.org> References: <20240403-msm-drm-dsc-dsi-video-upstream-v1-0-db5036443545@linaro.org> In-Reply-To: <20240403-msm-drm-dsc-dsi-video-upstream-v1-0-db5036443545@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=1712135460; l=867; i=jun.nie@linaro.org; s=20240403; h=from:subject:message-id; bh=MU4Swq5XDKyEWa3JYSzWqbeemF0ZbJTcthPE2KJsZos=; b=hpx8rqn0NW6jrZNlHbx/VHfFHcMfnFnfZNwaA4Q9oljlHNkFfqChP0YhKK5MS9joROjHj9ZCY Ys/IqPqN+8uDp67ZK5JQqci2IhuEveJuFZTRbjjhY/AmRAejQSlMBMT X-Developer-Key: i=jun.nie@linaro.org; a=ed25519; pk=MNiBt/faLPvo+iJoP1hodyY2x6ozVXL8QMptmsKg3cc= Add variable for slice number of a DSC compression bit stream packet. Its value shall be specified in panel driver, or default value can be set in display controller driver if panel driver does not set it. Signed-off-by: Jun Nie --- include/drm/display/drm_dsc.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/drm/display/drm_dsc.h b/include/drm/display/drm_dsc.h index bc90273d06a6..4fac0a2746ae 100644 --- a/include/drm/display/drm_dsc.h +++ b/include/drm/display/drm_dsc.h @@ -82,6 +82,10 @@ struct drm_dsc_config { * @bits_per_component: Bits per component to code (8/10/12) */ u8 bits_per_component; + /** + * @slice_per_pkt: slice number per DSC bit stream packet + */ + u8 slice_per_pkt; /** * @convert_rgb: * Flag to indicate if RGB - YCoCg conversion is needed -- 2.34.1