Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp245378pxa; Wed, 26 Aug 2020 09:27:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWOw7QRJZgbQ9w7LPVag7IYO+GDnOGZj+j9m0q4npFLjkm9vxmzLtaPfyM/xSNqKu8Gtpk X-Received: by 2002:a17:906:71c4:: with SMTP id i4mr17255257ejk.347.1598459243196; Wed, 26 Aug 2020 09:27:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598459243; cv=none; d=google.com; s=arc-20160816; b=XMDQT3YaQelVpcl+9hEjNc4nI/J0+mWXd7UBeEUE5JGO5sfO+wXA3kq74CxmIvrBff Nqh4hNZv9pT7c3obYLmaXpC0Kstm1f57b538/qq2qtpMK41M2+upjaC/WbQwhp2yaWgh +sdwnK4BjKq5AM3zB++fB4RiMrb+m+kE1P5BAzCjwIyqznMFF7CBB3CRF+BsEe61mwyp SauY74gntVCBRAUCaXJE0ULdarF8nh26PJozxnWKkY6u+piYWvJP4Z/rLYiMO3CFkzyN Tt/CGtfcT4GYQNJ2LD4pdFDGRYANpUXFgOFVaJpnpEW72O4hC8wpI3Ieys1kVXffdQKU 6hTA== 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:ironport-sdr :ironport-sdr; bh=FGGMhnCQBEhC3g/iOzwjmp5ntf9rrKk/NrKrBhJLCZs=; b=ESygD0EHAir0z0Qeh6nkl8MJLopYabIChmZR7YmfHAJOzVNV129HOMFSqKbz80LkHN 33p8gXNDBGH5xkQrfb5SgLjf0U48AVGYk0UN181fslgLKBdgvEWoYBE7EDDHZcpCVDTt 8Ebo573AcAnUvE+5Al057AoKUB4uUHCmP3ei+g15rINQ3zFD9NHNcLSZrj7OkS6bs2mb F0Jr44ycDl61nRUDgqf4tiy3Ko7rFa7cXdwCxlbV+vg31PzV0mjK7yU+wdSvmD34si+i A+G65SaH1XdMDh3kDRzoB+36fQAVvoSQjQ1wZwFgJ7HkOY/tXMsp0juI59QQAJCrD7N+ B+bQ== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l17si1791713edq.349.2020.08.26.09.27.00; Wed, 26 Aug 2020 09:27:23 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727774AbgHZQZV (ORCPT + 99 others); Wed, 26 Aug 2020 12:25:21 -0400 Received: from mga12.intel.com ([192.55.52.136]:63758 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727817AbgHZQZT (ORCPT ); Wed, 26 Aug 2020 12:25:19 -0400 IronPort-SDR: wYltJ6V+nAlxPHbY8ejAj7pP085E7QAv6hBVcvtLgK9kKbuJQrEfn/IoquZLpW6GVCqLmyby0I jntnbw7SmVFQ== X-IronPort-AV: E=McAfee;i="6000,8403,9725"; a="135876678" X-IronPort-AV: E=Sophos;i="5.76,356,1592895600"; d="scan'208";a="135876678" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Aug 2020 09:25:04 -0700 IronPort-SDR: 6lt9+j4eGT0v5tDACuVd3B8bxb9Q1oeuYvvvqx15jOzrfAwovc5udQTe/+x3iWHyqTR74WnxUj xV5hGEGnYrBA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,356,1592895600"; d="scan'208";a="336877690" Received: from stinkbox.fi.intel.com (HELO stinkbox) ([10.237.72.174]) by FMSMGA003.fm.intel.com with SMTP; 26 Aug 2020 09:24:59 -0700 Received: by stinkbox (sSMTP sendmail emulation); Wed, 26 Aug 2020 19:24:58 +0300 Date: Wed, 26 Aug 2020 19:24:58 +0300 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: Kai-Heng Feng Cc: jani.nikula@linux.intel.com, Joonas Lahtinen , Rodrigo Vivi , David Airlie , Daniel Vetter , Uma Shankar , Lucas De Marchi , Maarten Lankhorst , Gwan-gyeong Mun , intel-gfx@lists.freedesktop.org, "open list:DRM DRIVERS" , open list Subject: Re: [PATCH] drm/i915/lspcon: Limits to 8 bpc for RGB/YCbCr444 Message-ID: <20200826162458.GP6112@intel.com> References: <20200826052143.17607-1-kai.heng.feng@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200826052143.17607-1-kai.heng.feng@canonical.com> X-Patchwork-Hint: comment 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 Wed, Aug 26, 2020 at 01:21:15PM +0800, Kai-Heng Feng wrote: > LSPCON only supports 8 bpc for RGB/YCbCr444. > > Set the correct bpp otherwise it renders blank screen. Hmm. Does git://github.com/vsyrjala/linux.git dp_downstream_ports_5 work? Actually better make that dp_downstream_ports_5^^^^^^^^^^^ aka. 54d846ce62a2 ("drm/i915: Do YCbCr 444->420 conversion via DP protocol converters") to avoid the experiments and hacks I have sitting on top. > > 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 -- Ville Syrj?l? Intel