Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp183777pxa; Wed, 26 Aug 2020 22:07:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwDukzoBbGyk5qUHl7ZJKu42EuHGBFnxCw0qhRNFZYRJmOK30EMA1C38UEMz95Fayx9etL X-Received: by 2002:a17:906:d8ab:: with SMTP id qc11mr10638814ejb.55.1598504849803; Wed, 26 Aug 2020 22:07:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598504849; cv=none; d=google.com; s=arc-20160816; b=efcBLwiDEizXlmcMNbhQIyOx51bkq8iX6ThJ1/OCaf6A1UBeACax2DyomI1iPonBR6 DlRE1ntwOhodyAqYEKzxlFE1Q70TWPV8mDFKI6RPEYFk4ScOdbhHfY0MOUVEeTikyo2L 0rwTDEZ1A85gGQ/eszj7jPASO2RqlNL3x8l9G8vvC6HcEugUZDdnYs70o/VGwmygh65e d72J6PGlYwJx10zrzYGPq3huFa3cZu8hOFHtvGfjah3BXcovSbBwVKQzfWELtXUK1Svc MH7eJPHCvP6JWe80nn6S3PNi84abksDcVidlLrT41IQWKPtORWq7LtGRfZ5kQk2W3ocW tqFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=PSoXs7RwAYgw9Gu5y+jQqo8wV0YXM0DbVtbhgp+JLoA=; b=styrgxYx0b3L/kavWQDRVPpl4IWfmSf5rWxAqV9zlNye/zS+K0P6DOOCgMO3F266a3 Wp8fAIzdGTZAx0Ula9mPT/PxSf4HWdbOGwehpQWIa6b/ohV6R4F6hZzA4VeHdz8SGtbD YYMLrJPSj6kuA2Ud4ptjrif33jepQZDgaMoF4gIC77l4Z3hCY/9B6v2tYcEZsGLEx79b a1eip8SBZ5+tuK0mNhMJ47tG72akpKieb52xWErbqz1dyudfhlEorNNtvexX18BKxXk7 psAb/HdjIX9r3bcfL3J/T8crVPeT4zC0dosugIv4uLAes0wmAvRbQoucXofm/VUW3tx3 Yt4A== 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 ce15si854976edb.291.2020.08.26.22.06.51; Wed, 26 Aug 2020 22:07:29 -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 S1726157AbgH0FFE convert rfc822-to-8bit (ORCPT + 99 others); Thu, 27 Aug 2020 01:05:04 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:37174 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725854AbgH0FFE (ORCPT ); Thu, 27 Aug 2020 01:05:04 -0400 Received: from mail-pf1-f199.google.com ([209.85.210.199]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1kBA5s-0007kt-Mi for linux-kernel@vger.kernel.org; Thu, 27 Aug 2020 05:05:00 +0000 Received: by mail-pf1-f199.google.com with SMTP id b189so3194924pfa.16 for ; Wed, 26 Aug 2020 22:05:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=YdElzvEEzIZMoY70IuBjuGvXpacb2hD+V+ygH2R0Kww=; b=cH6mfHvcDxFbUE4sq1AwaXyqklm2Al0U1RXfwAZ18kcfG+Ts3j2F99InbwSIh7RT+I xGS+hOqMnw0IlRXNuRMsiuwVKMMlyFHPKPE+ihC9P0puSnqQaiGT67KlVArfN6GRyxh6 l93YVDSA29rTceIk7i5vemIKbszOKSqyOSxTt7oww92ZaJX9Fjm0qrbb6HkxAfreh+t6 iICDatnvVyOTPLDvTp2Etbfu6KCJVCUg2V5aYtWBZBo3VmRwDY3ks5OpMXdQN14gkKMo U1DV1IYe7+dz+HyaILLHNpxT96nZx+KE4edO5Nw9jH/stLW6sfMO6+rG5e0ir+b7Pdlv RGWQ== X-Gm-Message-State: AOAM532imuMDhRpsxT8kUz18UoTOuF0OB0/XK0b3EfBMHdBxrtTvFpjT lUmjW9dRIeCRBD8BmFAxYOf6Jl38A1Zm+l7ulzQnETn2ld4CnvfE4Fn5A4Fe5LKI2iJO9Dy0mnl 7gxwq/Q7fiGhmL9z/We8qioc5Uu8XuXPe8L2skuAQ5Q== X-Received: by 2002:a17:902:6901:: with SMTP id j1mr13760852plk.324.1598504699131; Wed, 26 Aug 2020 22:04:59 -0700 (PDT) X-Received: by 2002:a17:902:6901:: with SMTP id j1mr13760821plk.324.1598504698624; Wed, 26 Aug 2020 22:04:58 -0700 (PDT) Received: from [10.101.46.234] (61-220-137-37.HINET-IP.hinet.net. [61.220.137.37]) by smtp.gmail.com with ESMTPSA id e18sm706862pgr.53.2020.08.26.22.04.55 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Aug 2020 22:04:57 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: [PATCH] drm/i915/lspcon: Limits to 8 bpc for RGB/YCbCr444 From: Kai Heng Feng In-Reply-To: <20200826162458.GP6112@intel.com> Date: Thu, 27 Aug 2020 13:04:54 +0800 Cc: Jani Nikula , 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 Content-Transfer-Encoding: 8BIT Message-Id: <6D40F1E0-AFF6-4D38-BB9B-C52B43F83266@canonical.com> References: <20200826052143.17607-1-kai.heng.feng@canonical.com> <20200826162458.GP6112@intel.com> To: =?utf-8?B?VmlsbGUgU3lyasOkbMOk?= X-Mailer: Apple Mail (2.3608.80.23.2.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ville, > On Aug 27, 2020, at 12:24 AM, Ville Syrjälä wrote: > > 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. Can you please rebase it to mainline master or drm-tip? I am getting errors on the branch: DESCEND objtool CALL scripts/atomic/check-atomics.sh CALL scripts/checksyscalls.sh CHK include/generated/compile.h Building modules, stage 2. MODPOST 166 modules LD arch/x86/boot/compressed/vmlinux ld: arch/x86/boot/compressed/pgtable_64.o:(.bss+0x0): multiple definition of `__force_order'; arch/x86/boot/compressed/kaslr_64.o:(.bss+0x0): first defined here ld: arch/x86/boot/compressed/head_64.o: warning: relocation in read-only section `.head.text' ld: warning: creating DT_TEXTREL in a PIE make[2]: *** [arch/x86/boot/compressed/Makefile:119: arch/x86/boot/compressed/vmlinux] Error 1 make[1]: *** [arch/x86/boot/Makefile:113: arch/x86/boot/compressed/vmlinux] Error 2 make: *** [arch/x86/Makefile:284: bzImage] Error 2 make: *** Waiting for unfinished jobs.... Kai-Heng > >> >> 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