Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1945789rdb; Tue, 20 Feb 2024 11:41:40 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVOdiNAaxK3ZvVQkXchESYkGJpkdjS9r1mb87vdPtUlmejUC4ApAnfAsWeRyz7VM+Ln7CjcZiKdJ0qb7Np50aMd+GWMS43VFXqaRf05fQ== X-Google-Smtp-Source: AGHT+IEZOMwg5WSFGuAq/k8G4y+g5lLJwQiXvNyhcINvxyxmKPVBK3SdW1aNw6d/t+vbmKV4s5Br X-Received: by 2002:a05:622a:1b9f:b0:42c:7e8d:9972 with SMTP id bp31-20020a05622a1b9f00b0042c7e8d9972mr18214713qtb.2.1708458100274; Tue, 20 Feb 2024 11:41:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708458100; cv=pass; d=google.com; s=arc-20160816; b=QDLTdN+AOgMHYLFcLM388lbu5qcaznshCe2xnJ05r9QM1X6hfRzEBvLbsT6SJkRbNv sx6o9EqZeuqmfb/Y/cRiqfDaozsrBAI56YKpzDQtlL8NfBaNmj+cIoNMlUg1RSTVVR8b QS2KFHjHWjhBw/3dgP4iAgKDKM+10tZHVTSiNxqp+XrwEjH/v2J6YESAs1gu1zx/r1I5 5o5Dv9fh37tp3U3nnlRB0o+k6Rs5S7KfRrStusuZ5PbP3SomcmVFMZyG57pBXqwXi4yC dCR/UJqlHW0ec1ZoKmUfn97RjM1F18EQvyC4ivVhvbJR4A6MseEsqoXOvRQae74G7und 75hw== 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:dkim-signature; bh=m65wWcpTkOMxi7QiVzk3BqCFicrtIW/sPh3CYIz9zM4=; fh=DgR6R9qVegSw5mRGIgD5p9Sys7fRD7l97ehWrqK9QbQ=; b=0yu9+gFOiXbubtRwcvdsBxJpv7aFiLEjmy778laWOegI1XenrlilRT58WwQcRR44Pk uj73JZW2BzxMgsmSLWGtoETji97YSyR5/srhsWqPTBSM05ziPGbf2i0uta/WeFSEpOb2 MPXViesmiv4VD+kNmdlD6/eQZn9CIf6x7Thuzq/4Lay6kejbQbOs2gu+yYL+bqFaGi3p wJEYpF3zPZxpmg65e/E1DTn2LOf/5TXz9OGiXAiFfVw+I/doK43qSdmUoW1nRTsLXO8m HzADBEqRk+5c8QXaibf0Sv3jAE5KYRnEnFnlFWiQhyAjzfH3zLwkRnb4bz4G321+o7fB EK8A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ggV7LQ0D; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-73603-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73603-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f5-20020ac84705000000b0042df3a12d34si8205410qtp.370.2024.02.20.11.41.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 11:41:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73603-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ggV7LQ0D; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-73603-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73603-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 065971C21AA4 for ; Tue, 20 Feb 2024 19:41:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6C0B514A0A4; Tue, 20 Feb 2024 19:41:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ggV7LQ0D" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (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 B135A36135 for ; Tue, 20 Feb 2024 19:41:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708458094; cv=none; b=T61jWqT9gN0u+MpzcNORHnKeF17MHn2HcaY5B1tZlCkBN5R2CuXHQ0XxZVVsjQmVqAGrh5D2/4JnPdEW0AGvmxpHOrhvUv7wlGsXdFRy/AZjSEyGUBmAc0RYAhI1cRG0q9KCB+Bq3yfHkFtdRqHgLb+kjNszcHLeh6QlFv6kt8A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708458094; c=relaxed/simple; bh=DfJFKhyZQ/N2e0vgOg52j7ksnYxhMPQZuRpCjJttMhE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mduADZISCXREj/4g9z3BuFuCiVGJGYLMdvnwXLnWgOY+Su7g9iF7MKsQPqevp0D3iU+khaWXj7F3pGoxKbsg2BxmqG8VpvTX98r2bIDwTA6zgorLWaMeFbpDWDLsrqHVEakIwGFUBbCNS7xS/Mys9iro8+XBukjo9RcCwd+kG94= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=ggV7LQ0D; arc=none smtp.client-ip=198.175.65.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708458092; x=1739994092; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=DfJFKhyZQ/N2e0vgOg52j7ksnYxhMPQZuRpCjJttMhE=; b=ggV7LQ0Dlt3vMjLe2epik6xPouEUWjucd3K1PWMmCxlwq3M4iioAz/je EfnvhDB+HJZuFF/SybO2t+gazC3/Mp11HOFQx+xppw3ROmLlQp+VU46Pp FG6/FHIonAQ2Rht1SKqm/2v8f3qi+aNZqOZUNBFJNd2a6zsnGXQ9iObVS r/vGGfgnvB5qNPK7HO51Uzhw3i/iL1Mo46NYPyPN7xKg9SRyWQYzKm/c9 RFAMM7s2e6ecsf2jrgVZtAbk7P11W0oRuFdh/wE8IMeHfhrlba0YGMjwB cCV6F+m1DMxjQg+gQDBW94ch8pArNi49hfNTMZ6IBGh+3i7apk7RbAiLu Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10990"; a="13704387" X-IronPort-AV: E=Sophos;i="6.06,174,1705392000"; d="scan'208";a="13704387" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Feb 2024 11:41:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10990"; a="827202660" X-IronPort-AV: E=Sophos;i="6.06,174,1705392000"; d="scan'208";a="827202660" Received: from stinkpipe.fi.intel.com (HELO stinkbox) ([10.237.72.74]) by orsmga001.jf.intel.com with SMTP; 20 Feb 2024 11:41:26 -0800 Received: by stinkbox (sSMTP sendmail emulation); Tue, 20 Feb 2024 21:41:25 +0200 Date: Tue, 20 Feb 2024 21:41:25 +0200 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: Abhinav Kumar Cc: Dmitry Baryshkov , dri-devel@lists.freedesktop.org, Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Jani Nikula , Rodrigo Vivi , Joonas Lahtinen , Tvrtko Ursulin , robdclark@gmail.com, freedreno@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, quic_jesszhan@quicinc.com, linux-kernel@vger.kernel.org, intel-xe@lists.freedesktop.org Subject: Re: [PATCH v2] drm/dp: move intel_dp_vsc_sdp_pack() to generic helper Message-ID: References: <20240215190834.3222812-1-quic_abhinavk@quicinc.com> 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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Patchwork-Hint: comment On Tue, Feb 20, 2024 at 11:27:18AM -0800, Abhinav Kumar wrote: > > > On 2/20/2024 11:20 AM, Dmitry Baryshkov wrote: > > On Tue, 20 Feb 2024 at 21:05, Dmitry Baryshkov > > wrote: > >> > >> On Tue, 20 Feb 2024 at 20:53, Abhinav Kumar wrote: > >>> > >>> > >>> > >>> On 2/20/2024 10:49 AM, Dmitry Baryshkov wrote: > >>>> On Thu, 15 Feb 2024 at 21:08, Abhinav Kumar wrote: > >>>>> > >>>>> intel_dp_vsc_sdp_pack() can be re-used by other DRM drivers as well. > >>>>> Lets move this to drm_dp_helper to achieve this. > >>>>> > >>>>> changes in v2: > >>>>> - rebased on top of drm-tip > >>>>> > >>>>> Acked-by: Dmitry Baryshkov > >>>> > >>>> v1 had an explicit comment before the ack: > >>>> > >>> > >>> Yes, I remember the comment. I did not make any changes to v2 other than > >>> just rebasing it on drm-tip to get the ack from i915 folks. > >>> > >>>>> From my side, with the promise of the size fixup. > >>>> > >>>> However I observe neither a second patch removing the size argument > >>>> nor it being dropped as a part of this patch. > >>>> > >>> > >>> Yes, now that in v2 we got the ack for this patch, I can spin a v3 with > >>> the addition of the next patch to remove the size OR as another series > >>> so as to not block the main series which needs this patch. > >>> > >>> I would prefer the latter. > >> > >> It doesn't work this way. The comment should have been fixed for v2. > > > > This probably deserves some explanation. Currently there is only one > > user of this function. So it is easy to fix it. Once there are several > > users, you have to fix all of them at the same time, patching > > different drm subtrees. That complicates the life of maintainers. > > > > Yes, understood. Its easier to fix it now if its really needed. > > Actually, I think the reason the size was passed was to make sure > a valid struct dp_sdp *sdp was being passed. The size is supposed to be the size of *hardware* buffer where this gets written into. But looks like this wasn't done correctly when the code was copy-pasted from the HDMI inforframe code. -- Ville Syrj?l? Intel