Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1471083lqe; Mon, 8 Apr 2024 09:43:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUufH6ngdTueC7w9FpcYNPegN3jJUFmGBxdRTsk3dzVY7n39UfrXQmqJY/q/wbDwhySFp1drgG5DuQskl8XUItmqaQVnJrNqI+LpVBQOg== X-Google-Smtp-Source: AGHT+IHkAcf1vr9N4X9/YqrdNnRWGJSbqlJ64JpESDzbugVHXT34eUeQOBmqfzP2lJy5sACQtowu X-Received: by 2002:a05:6102:dd0:b0:479:f2c8:84a1 with SMTP id e16-20020a0561020dd000b00479f2c884a1mr3196456vst.1.1712594627453; Mon, 08 Apr 2024 09:43:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712594627; cv=pass; d=google.com; s=arc-20160816; b=DULrLMgrYS4BzkuGt3VFaqDyPduj+kxpS4UJU2ksoco/EuQtkpeBp9zaJMW6bHMjR2 LOxUw0HTE1WQTvQbAnY2ayhve37PdBoWIoujJbjV86X+GCG+adHadaBghMFrkeKuYXq1 awT+WX8YtA8vignHFyL21ICDHI1T0YMbF6vqXDa5kGG+UOWQHcjf92GW2+wbSpgLvO2M HuKl7kMb1e1gug+KY+HRYkpqakLkrRJmKcXp6g29O2bMpljd2LfMMrgJ5MZ6zC3lsrhW FqerpkovsY0pFwupBFSBW7ShX+z7cDJ9W66cTfYwePjSl9t56YC5GXmTqcwahvHuu9jU 7z5A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date; bh=z/Ef9sY+PS2+BQi+y1ZdaVD0CAdilfJ/ni17Y74Eo64=; fh=lGP/rpUGjiq7Pw2xOdYzXPEXvD0wLbs1anK45dYO9Ps=; b=qd6FPpgaOg0RyI/AhRbH/YDAkdQIN3TQ58DPmhxoLGgH6U1hAD0Qmw90wu7sNM/e2N oY+vt1dzq6wu952IxB+vvBWLoAMTp1qKHQzHHcvjMxNAf+XQXSEPFjigTFk11KwoV2cG 9D+eFFREUTOleounh+7VSp5Z88gi+TutBr2+Ir3Be7zrIegWAz0mfsPFeSAiRXPkSB6g 5lSWA21mrIWq6OdJROX83VeUThpoE595+HMv8QDC6VO/xcmQ+LVITiDANvrW+8IM0WAK 78M2pfD5oA3KXsRDmq0QuvOodoL1+QDIOtotGydNTd1x9OEHRqeAedbAV85DC++x9XOK 7JjQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=somainline.org); spf=pass (google.com: domain of linux-kernel+bounces-135704-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135704-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id el17-20020ad459d1000000b006993da8e057si8087648qvb.499.2024.04.08.09.43.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 09:43:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135704-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=somainline.org); spf=pass (google.com: domain of linux-kernel+bounces-135704-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135704-linux.lists.archive=gmail.com@vger.kernel.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 324421C219A6 for ; Mon, 8 Apr 2024 16:43:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 22E771428F3; Mon, 8 Apr 2024 16:43:42 +0000 (UTC) Received: from m-r2.th.seeweb.it (m-r2.th.seeweb.it [5.144.164.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 742FB14263A for ; Mon, 8 Apr 2024 16:43:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=5.144.164.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712594621; cv=none; b=J3mOOvjGzxW0RZawc3hqbAYlVcvAhZcwKZQGVB0kqzefv4YkZsfBPum6zP0WuF7ZrT1IEA6H1diTALtSg2ddohASfkN8mIJAVe9aNHpSz/fbmaOZxykxb9FYjiVd96lQk3QPAQ6CUSb60vhbx2nMhZk6oBnFBbtR07TiAS7Vzag= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712594621; c=relaxed/simple; bh=IDfPctw9xCwHUVhCUkJDAHkZrpFZqENjHsNEdq9ezYs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=udFFUzc9zM4cDCckI3YzqEiWjoQUdE+LZ/ozqEOGYwqoyvluw3+jAs3ZczxSg9KByZttjm7TZ5YsIV1Bu96FEl3BAOzbdiFpG+/TQCQ+mbg0o/LzhIGd78TiNdbgSecaK7yAqDAxYk0B+CTkdTBj0B3/Zs96DIGRidRqN/wFgDs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=somainline.org; spf=pass smtp.mailfrom=somainline.org; arc=none smtp.client-ip=5.144.164.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=somainline.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=somainline.org Received: from SoMainline.org (2a02-a420-6-f162-164f-8aff-fee4-5930.mobile6.kpn.net [IPv6:2a02:a420:6:f162:164f:8aff:fee4:5930]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id 03B744042A; Mon, 8 Apr 2024 18:34:21 +0200 (CEST) Date: Mon, 8 Apr 2024 18:34:20 +0200 From: Marijn Suijten To: Jun Nie Cc: Dmitry Baryshkov , Konrad Dybcio , Rob Clark , Abhinav Kumar , Sean Paul , David Airlie , Daniel Vetter , Jessica Zhang , Vinod Koul , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 5/6] drm/display: Add slice_per_pkt for dsc Message-ID: References: <20240403-msm-drm-dsc-dsi-video-upstream-v1-0-db5036443545@linaro.org> <20240403-msm-drm-dsc-dsi-video-upstream-v1-5-db5036443545@linaro.org> 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On 2024-04-08 17:58:29, Jun Nie wrote: > Dmitry Baryshkov 于2024年4月3日周三 17:41写道: > > > > On Wed, 3 Apr 2024 at 12:11, Jun Nie wrote: > > > > > > 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. > > > > This is not a part of the standard. Please justify it. > > Right, I read the standard but did not find any details of packet description. > Looks like msm silicon support tuning of number of slice packing per downstream > code. > The slice_per_pkt can be set in the downstream msm device tree. And I test the > values 1 and 2 on vtdr6130 panel and both work. So I guess this is related to > performance or something like that. I will have more test with different panel > to check the impact. > drivers/gpu/drm/panel/panel-raydium-rm692e5.c also mentions to pass new value > to slice_per_pkt. > > Hi Konrad, > Do you remember why value 2 is TODO for slice_per_pkt for panel rm692e5? Hi Jun, I think I should indirectly answer that question, as I indirectly via "the" MDSS panel generator place that comment there based on the suggested downstream value: https://github.com/msm8916-mainline/linux-mdss-dsi-panel-driver-generator/commit/5c82e613d987d05feca423412f6de625f9c99bae#diff-dba3766d7cec900b8de500f888c64a392cd9780f9baf00aae7e3f87a7d3fefc4R458 So I don't think Konrad's answer will be any different than "that's what downstream does, and that's what the generator put there". --- I was fairly certain that it used for performance reasons, but panels were found (e.g. on the FairPhone 5) that don't seem to function without combining multiple (2) slices in one packet at all? - Marijn > > > 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 > > > > > > > > > -- > > With best wishes > > Dmitry