Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3409079pxa; Tue, 25 Aug 2020 22:24:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9/hBxu/QS7+NFTMfZdOd5+c1u4R+C42u2sAFMneCtGq0w0VToOHdmNfOGiVxnsvW945fw X-Received: by 2002:a17:906:2408:: with SMTP id z8mr4695992eja.421.1598419494428; Tue, 25 Aug 2020 22:24:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598419494; cv=none; d=google.com; s=arc-20160816; b=t8/ACSKe+u9oSoCZ+/WdpZk8b41yX704cgBpHTGLKlB4PLE31ATYzU34wOBWK9hjN0 4awqItXwaL2DxnxTFABxzKQK6U9ZudklDweadf4RMYApp88rJrEpNq2+Aa0qQLzYazgm /i55bAzr8XkBbub9a4GH0fF59GwsnThhGaJFRg8U96Ji2cOYxGSrZSEQKUsQDac08uvK /x3Xge2l1kn400SASVyib+SRxyjjJ3HcVWAr1hwsA/VgGXeHeyPdZBplZTzPsqW24J9Z LGvsnJ8SYyBp8kJ6FNgfcNTW0E/emrvNXqF6qLR+D0Po7cHRurT+88L376gnS+I7buzo XZeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=xgVM2ca2p72Kv2aKHosoXVm4JvU56EP3kiLEIHJKD84=; b=VB29y5+AtnBtsYxyX2iYwK8TLbNwHV3RMdIExZ7wi5rD5nhAl1sofzFxC85f5f1a9a bB6Aue4GL86OqwFdcN5z+HKG7Al77Gs8C7sQiBLH9r9B3WigChpqc6Qhj+W0/bD27fhe Ku7dynUdQaixF0Cx2PzVj+ZmOPftRw/0gqQD4528unKalq5ndFi8X6s2/2uIC/QGif0X 8GNDfHFBhtXlK3GBVLa2SVirUcos+Q+S/Oxqqk8TP92u9gHqHFESSIoBZmQIAuGJwCSQ BmTrpe50dNatPvQmY0oR/IoBS4wOBzF4141R5HG2asftgYmkdzIgjS0gaBG01/OHiVHd Zzfg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 91si953712edy.18.2020.08.25.22.24.32; Tue, 25 Aug 2020 22:24:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726186AbgHZFWJ (ORCPT + 99 others); Wed, 26 Aug 2020 01:22:09 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:60378 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725779AbgHZFWJ (ORCPT ); Wed, 26 Aug 2020 01:22:09 -0400 Received: from 61-220-137-37.hinet-ip.hinet.net ([61.220.137.37] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1kAnsp-0003bH-4M; Wed, 26 Aug 2020 05:22:03 +0000 From: Kai-Heng Feng To: jani.nikula@linux.intel.com Cc: Kai-Heng Feng , Joonas Lahtinen , Rodrigo Vivi , David Airlie , Daniel Vetter , =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= , Uma Shankar , Lucas De Marchi , Maarten Lankhorst , Gwan-gyeong Mun , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org (open list:DRM DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH] drm/i915/lspcon: Limits to 8 bpc for RGB/YCbCr444 Date: Wed, 26 Aug 2020 13:21:15 +0800 Message-Id: <20200826052143.17607-1-kai.heng.feng@canonical.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org LSPCON only supports 8 bpc for RGB/YCbCr444. Set the correct bpp otherwise it renders blank screen. Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/2195 Signed-off-by: Kai-Heng Feng --- drivers/gpu/drm/i915/display/intel_lspcon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_lspcon.c b/drivers/gpu/drm/i915/display/intel_lspcon.c index b781bf469644..c7a44fcaade8 100644 --- a/drivers/gpu/drm/i915/display/intel_lspcon.c +++ b/drivers/gpu/drm/i915/display/intel_lspcon.c @@ -196,7 +196,8 @@ void lspcon_ycbcr420_config(struct drm_connector *connector, crtc_state->port_clock /= 2; crtc_state->output_format = INTEL_OUTPUT_FORMAT_YCBCR444; crtc_state->lspcon_downsampling = true; - } + } else + crtc_state->pipe_bpp = 24; } static bool lspcon_probe(struct intel_lspcon *lspcon) -- 2.17.1