Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5945049ybl; Tue, 10 Dec 2019 14:13:21 -0800 (PST) X-Google-Smtp-Source: APXvYqxtW/s8aVyljHppwtcsT6rKC5bAP2xujd2wYzUO5mQiUy/f3kMxz98uHLc70lxHZPOfAl// X-Received: by 2002:aca:7583:: with SMTP id q125mr271019oic.100.1576016001094; Tue, 10 Dec 2019 14:13:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576016001; cv=none; d=google.com; s=arc-20160816; b=0GeHVvnvLhqDKvBMuIXECYnHU7T603ku28i1jKSEii+ecmOyApTzQCIB1EfUmA+T3t iB+28PbcdQH85Dbh3VDf036V/JYMuCR3LvsdBH8e9BM5PX0o6DlMLThy2WDR1/7b1UO8 QG/nXULxnoUSa6jMwo5AP/b1g+qyMuOQ1+aB6iuLYXycs/r8Mpj0BGd9FwxoNi1/mldM Bm3Y7fzd7bQzvWxqsgcF4BLu+GuhZ7XQg5K90diuNzTr9gq4jgfgpiwSYPUsPHt8gATX M8jdjpZe7Tx+9Mb92OSojEMaMd/wWfv4MdO9XNQeNpc6p6qXIC/vx6HEG1OBjgM5pZm7 VAkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:mime-version :message-id:date:dkim-signature; bh=b73r53Ks39MzD1p7Mnxh3aUtTHdkJg2TG1gTQXCA0JA=; b=Z0PU5KInH98JOOy87/0/Za4Ctmp5Ei9aiZVtPr04YiFkp3fpP4BAb2uWb14TlOYIf8 ANE9wB3giX0/9Kz3S4OcPehm76q2le17D43wDhS0IcrOE9C6UMiryiVqV66IQQnlCx0P bVf6BrZqR+4Ur4/qmnhCJbJgY/q6DX+29WZgGCFZ90o4vFw0HpCvWmEeoc9Jlg3FYByc NtRqJ99yrh+cFdd8MhK8WRPWoOtd6DBvVBHtPUlR1+DoJ0QRZzIKgSiEn7TsX2nG/U/Z O4DEC6PsAwe/SvHQPjM3KKah+0zID/nghZpYxskMsSJPzhAMIpKTLRwE2xf/9RRLsYau +QfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=i0uoT9B7; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u144si2698272oia.107.2019.12.10.14.13.09; Tue, 10 Dec 2019 14:13:21 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=i0uoT9B7; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729429AbfLJWLL (ORCPT + 99 others); Tue, 10 Dec 2019 17:11:11 -0500 Received: from mail-pl1-f201.google.com ([209.85.214.201]:42733 "EHLO mail-pl1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728173AbfLJWLK (ORCPT ); Tue, 10 Dec 2019 17:11:10 -0500 Received: by mail-pl1-f201.google.com with SMTP id b3so586478plr.9 for ; Tue, 10 Dec 2019 14:11:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=b73r53Ks39MzD1p7Mnxh3aUtTHdkJg2TG1gTQXCA0JA=; b=i0uoT9B7VkzZLco87pN4yTJXrhjzrCyboyzAodwErTl0USjyKxQpB8BzII9F79iW5Q StJAIzVxBqZBcrl61TgA0+Xjrodo4IBl2vMz9KUV1XjHxjmrRVLhRZwkNmgun+G2244b 672pjof/K4JjBwR+7wFlGQzL8CepOAOffo4t9eGjXSsRk+R8pIpb3y3WM1ZGatYVqoh6 n9ZaZiJ1rnLaTy+QLc6aSkhDKvipXqctmsMdXZM2oYgN3j+BYFQ4mok4xCtYYdVB4pov F1gaQm0kN2iKRNPeaCrl+d3NAzFOHghLUAkV7ZA//lAPjircz9IcwetG+vyx9pKIDapk WioA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=b73r53Ks39MzD1p7Mnxh3aUtTHdkJg2TG1gTQXCA0JA=; b=mMu56K6zTPO/b1V7unVsQIDVTl+yzB9V7vVVAPH+0OfdfrIZqnTOvDFkHD9ZZaQJs5 3TbbqkyGLkbffGJZtexL+pMTasNZ5wLmzTPe7bOyA0V1mtqJyCev7RtRJ4KN36bK6ubt SsAHN/p+DQ3gKMFJ6Dv/I5WVseRdR/xxe62NQfPGvjTJHt0sJQsiXlPa/3/hfgDpZvb4 Lc4RqHF4Dahp1oFMRHZMT+lrwBSYlcYVlmz3FtP46h7PFf1RAYIaU+r0MjQSWYXb9cfw tF2BJPNYfwh4pETbwD/AcTKmBIB6txCp/lKnqpaQocote9gmg80j7XW+apXqqVlKQFtN s+Sw== X-Gm-Message-State: APjAAAXbNQjyOX+PFd7d/BldyWer66gFIGuYckrqU5ESiXHw4FMgS2F9 HojPk8bZw55Y+XqVK6vLERuqp062hD45oVe/aVyHoA== X-Received: by 2002:a65:6249:: with SMTP id q9mr405022pgv.340.1576015869302; Tue, 10 Dec 2019 14:11:09 -0800 (PST) Date: Tue, 10 Dec 2019 14:10:48 -0800 Message-Id: <20191210221048.83628-1-thomasanderson@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.24.0.525.g8f36a354ae-goog Subject: [PATCH] drm/edid: Increase size of VDB and CMDB bitmaps to 256 bits From: Thomas Anderson To: "=?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?=" 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, Thomas Anderson Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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