Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp800051ybl; Wed, 11 Dec 2019 07:42:07 -0800 (PST) X-Google-Smtp-Source: APXvYqxYPajvTVbtJBN04MM0b2YJUB4D9ZRC2KLwO6t1eNYjQXxKmW+yErojFuf3xqFycfv9l6nD X-Received: by 2002:a9d:6b17:: with SMTP id g23mr2611024otp.265.1576078927473; Wed, 11 Dec 2019 07:42:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576078927; cv=none; d=google.com; s=arc-20160816; b=Q3ERJZx1BVCLOAf0K6DR3UH9JJ0POgVAPA/TkKuVtIxQvC+xLpwbtPSgrCp7khzYji 7MLxoMgCHSC9WCw+nAAYNXoVOBA/xQyNZkIeyV016VdpmrDHiIdmF2ANICONfnykIw2h Og9VQgfFyJNulfLfPhgN/0fu9/xNI2q+DBdBmSbzGW3MCw85cgS+EUxbfdSVTTBG+rHu ls/3aImay1s2jGt7v3sVz7w9Ls5Yqb/XE0Js869SHoRa7yi1tVp6USRSg8gpOLLypa2e GYIR9OIAixVQxJH8hL5MlzTVhfh6EGD7ZFPwWxLomtZMuHn2NDa2VUciLxg9LePCP71R No9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=9di8szJKfXk/bx/NZ0R04sUyivGEMfPTD+P0HBEEEno=; b=jqklKtL8XbLo96wlUOk3kQgM5hvbPHoGtfLLw/83h9NZRJCKZwD01Hz9nYiLxx62d1 yRm8l+zyQrbVXHhsPr+21hlV+FXtArI2F28W671pYJYVlFzb/aSpi2LNU8Tgf6HsotQN ia0YtnD1GwZTrn7mg/z05ZGtX5+fmBkA5QfppkK0pGhLZYUhq3lUqRXVDzIzkTiV2zwQ P9EoB9Y7LtTrusq292R3a79jnvdGxAR+QKO490U44VDQf30ttfUHe3dy1tXklQOFsBI+ UoEBPI2rA0PChOcHWHyVgfM9dmPEqMJy1M1zz0oRKYjR+sLP0nbNE/q6qP6ZQJJj81Cv 3w0w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x5si1478198oic.72.2019.12.11.07.41.55; Wed, 11 Dec 2019 07:42:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388533AbfLKPkt (ORCPT + 99 others); Wed, 11 Dec 2019 10:40:49 -0500 Received: from mga07.intel.com ([134.134.136.100]:59322 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733115AbfLKPkp (ORCPT ); Wed, 11 Dec 2019 10:40:45 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Dec 2019 07:40:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,301,1571727600"; d="scan'208";a="245326651" Received: from stinkbox.fi.intel.com (HELO stinkbox) ([10.237.72.174]) by fmsmga002.fm.intel.com with SMTP; 11 Dec 2019 07:40:38 -0800 Received: by stinkbox (sSMTP sendmail emulation); Wed, 11 Dec 2019 17:40:37 +0200 Date: Wed, 11 Dec 2019 17:40:37 +0200 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: Thomas Anderson Cc: Bhawanpreet Lakha , Harry Wentland , Maarten Lankhorst , Maxime Ripard , Sean Pau , Daniel Vetter , David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH] drm/edid: Increase size of VDB and CMDB bitmaps to 256 bits Message-ID: <20191211154037.GI1208@intel.com> References: <20191210221048.83628-1-thomasanderson@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191210221048.83628-1-thomasanderson@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 10, 2019 at 02:10:48PM -0800, Thomas Anderson wrote: > CEA-861-G adds modes up to 219, so increase the size of the > maps in preparation for adding the new modes to drm_edid.c. > > Signed-off-by: Thomas Anderson Thanks. lgtm. Pushed to drm-misc-next. PS. I do wonder a bit if we should consider a more economical way to track this stuff. Not really sure how many bits we can realistically expect to be set in these bitmasks... > --- > include/drm/drm_connector.h | 16 ++++++++-------- > 1 file changed, 8 insertions(+), 8 deletions(-) > > diff --git a/include/drm/drm_connector.h b/include/drm/drm_connector.h > index 5f8c3389d46f..17b728d9c73d 100644 > --- a/include/drm/drm_connector.h > +++ b/include/drm/drm_connector.h > @@ -188,19 +188,19 @@ struct drm_hdmi_info { > > /** > * @y420_vdb_modes: bitmap of modes which can support ycbcr420 > - * output only (not normal RGB/YCBCR444/422 outputs). There are total > - * 107 VICs defined by CEA-861-F spec, so the size is 128 bits to map > - * upto 128 VICs; > + * output only (not normal RGB/YCBCR444/422 outputs). The max VIC > + * defined by the CEA-861-G spec is 219, so the size is 256 bits to map > + * up to 256 VICs. > */ > - unsigned long y420_vdb_modes[BITS_TO_LONGS(128)]; > + unsigned long y420_vdb_modes[BITS_TO_LONGS(256)]; > > /** > * @y420_cmdb_modes: bitmap of modes which can support ycbcr420 > - * output also, along with normal HDMI outputs. There are total 107 > - * VICs defined by CEA-861-F spec, so the size is 128 bits to map upto > - * 128 VICs; > + * output also, along with normal HDMI outputs. The max VIC defined by > + * the CEA-861-G spec is 219, so the size is 256 bits to map up to 256 > + * VICs. > */ > - unsigned long y420_cmdb_modes[BITS_TO_LONGS(128)]; > + unsigned long y420_cmdb_modes[BITS_TO_LONGS(256)]; > > /** @y420_cmdb_map: bitmap of SVD index, to extraxt vcb modes */ > u64 y420_cmdb_map; > -- > 2.24.0.525.g8f36a354ae-goog -- Ville Syrj?l? Intel