Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp406250lqh; Tue, 7 May 2024 02:52:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUKaYLILHSiduSgadFn/ykPWmqgIQsJUDnP6JqWG5u6ZM6CVtVxKvpCEEdm91XOak7i9o6zfr6a6ietECXcdEJQRtL005qeBNGu2QgoTA== X-Google-Smtp-Source: AGHT+IHI+aOfE9AcnW6lAyQoZT3m7Ww55lAYpqdCUJYz7O05vB00IF55AGycjr/GhmCdz65+aS42 X-Received: by 2002:a05:6870:1851:b0:22e:8002:63f1 with SMTP id u17-20020a056870185100b0022e800263f1mr14459921oaf.8.1715075565872; Tue, 07 May 2024 02:52:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715075565; cv=pass; d=google.com; s=arc-20160816; b=jVro4fqK7J+TeIt+wA8IsYhy8czLOIdHyWcYpMy1QEJf80nQi2FgzNWANuJlm6jOdl RanZxZYyyw51VW7EPUBbviRfTzaTI6PDhoBdNfxqaFU8ZylMQN96ewd2bJSJ8tWAlG/1 /eAWwk4XbPST2fH2k3U52RRrh1wcVyq+fkHfpVRDhP2oEweIFVXIHgk124VQaVnfkKPE bsypOrmzI2KvAlXY6XVl21bP3bi9NEaIzkmPZ6HDuvF30bwCTq1cuxEtrIKf7+aTc55P 6U6YD3AauLFBj9WpUgfPnzxHXteCCNQHQZI8aK3/pqxo6sXqs4n2G6uVqQNqQT3bhz2z JnBw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=HAJvQdLYmyL3qiXfsvwfss35CTvFlv7T9/m66zcsIFU=; fh=Q7k+FNuF+q91+NFJBz338XEDry2H/0X5pQEDtZDpXD0=; b=CZI4ZMwcal5fa1RtOMD2Prrg6gUDpA1//b4a/c/OUv8jqaMgYFwLXwt0KbJTBpfdvp qXVZCmsUZ8ru6qGQ0mt+p5mzdo3/caGtiCUYW14B0elxvkbCstHm6pBrz0DfWTYpVi1+ 3fWcLx3snGtOldBfTjL0PSg1zjFbC2AalKSZkCyg43MsBsa3vgXgc91dY97B7xZMnl/2 fPfjgDnSa82CETtphfewt/E17IZV1jAAD/QCVRtAlYjkGjWGYh/d+Bp/YSYOiTUS7Cti 4AXbeQrsiamOwnnW72Tuq2ROPeT9W8nMms4aH7JpEp/V2wevENiQD6y4tJvbExhxsfQA 3ZiA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@rock-chips.com header.s=default header.b=QD7wbqQE; arc=pass (i=1 spf=pass spfdomain=rock-chips.com dkim=pass dkdomain=rock-chips.com dmarc=pass fromdomain=rock-chips.com); spf=pass (google.com: domain of linux-kernel+bounces-171030-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171030-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=rock-chips.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l12-20020a63f30c000000b005f808ebaeeasi4657945pgh.114.2024.05.07.02.52.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 02:52:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171030-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@rock-chips.com header.s=default header.b=QD7wbqQE; arc=pass (i=1 spf=pass spfdomain=rock-chips.com dkim=pass dkdomain=rock-chips.com dmarc=pass fromdomain=rock-chips.com); spf=pass (google.com: domain of linux-kernel+bounces-171030-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171030-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=rock-chips.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 79A1628170C for ; Tue, 7 May 2024 09:52:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6A0F114E2EC; Tue, 7 May 2024 09:50:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=rock-chips.com header.i=@rock-chips.com header.b="QD7wbqQE" Received: from mail-m127102.qiye.163.com (mail-m127102.qiye.163.com [115.236.127.102]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1D25C4F894; Tue, 7 May 2024 09:50:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.236.127.102 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715075419; cv=none; b=MxKgRwFrOD/Ze9XSPTsjnkJvhGfxSr19l3KDsTYNAJUGKX/dKpvWeqN9Df7hs4iaBRN2qOBi6gm7tt+Eiv38Mb58hw+AL8nPl8OE2Pd1OMqgVXs+K5bqd9rroD5qv2RQgclYLe1YW83hgeghQJptP2TThwrb5D0cFwugnS697cw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715075419; c=relaxed/simple; bh=ik7otHDJmq2Tk97tlY36+mTtqzuQS3rBj0pENGE7aBE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=PJCsjIKQqE27y3Iu847eLjKy+iumqt1TEoBRkvwJL4tWFp6AC9QGPLsqhDFZRhxBrTGvNFtQpbJYlY5F9ImiCbc3GjvHFlqrHxDK7UhX8T0bb7LI/3ESZDWBZlxFWKhQNCcNoOvYBI3YZ5CVytHK1qDZkf1I1EcORo77PlhHlgg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=rock-chips.com; spf=pass smtp.mailfrom=rock-chips.com; dkim=pass (1024-bit key) header.d=rock-chips.com header.i=@rock-chips.com header.b=QD7wbqQE; arc=none smtp.client-ip=115.236.127.102 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=rock-chips.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rock-chips.com DKIM-Signature: a=rsa-sha256; b=QD7wbqQEud+fYkWN/Q7FNR38iFCkbtRNXWfbUQA1u9rbZv3g9C98+Wzdl3+GV215VkPYS6py3dmniAu6pIJctsBM81fUogbc5cjAt7i1ME65s2FeYSU/Ufljs3Vjd/rMOc+TwXoH+7cXFdwVG3Q8lZEcWSVgCH7IfjHZ4AFko/c=; c=relaxed/relaxed; s=default; d=rock-chips.com; v=1; bh=HAJvQdLYmyL3qiXfsvwfss35CTvFlv7T9/m66zcsIFU=; h=date:mime-version:subject:message-id:from; Received: from [172.16.12.141] (unknown [58.22.7.114]) by smtp.qiye.163.com (Hmail) with ESMTPA id B408A8401F9; Tue, 7 May 2024 09:32:16 +0800 (CST) Message-ID: Date: Tue, 7 May 2024 09:32:16 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v12 27/28] drm/rockchip: inno_hdmi: Switch to HDMI connector To: Maxime Ripard Cc: Maarten Lankhorst , Thomas Zimmermann , David Airlie , Daniel Vetter , Jonathan Corbet , Sandy Huang , =?UTF-8?Q?Heiko_St=C3=BCbner?= , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Hans Verkuil , Sebastian Wick , =?UTF-8?B?VmlsbGUgU3lyasOkbMOk?= , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-sunxi@lists.linux.dev References: <20240423-kms-hdmi-connector-state-v12-0-3338e4c0b189@kernel.org> <20240423-kms-hdmi-connector-state-v12-27-3338e4c0b189@kernel.org> <68eba0ec-bf9c-4d76-a362-5304a4cb61d5@rock-chips.com> <20240506-eccentric-wren-of-peace-819aad@houat> Content-Language: en-US From: Andy Yan In-Reply-To: <20240506-eccentric-wren-of-peace-819aad@houat> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFDSUNOT01LS0k3V1ktWUFJV1kPCRoVCBIfWUFZGUpDQ1ZPGkJITk1NTB1OSxlVEwETFh oSFyQUDg9ZV1kYEgtZQVlOQ1VJSVVMVUpKT1lXWRYaDxIVHRRZQVlPS0hVSk1PSU5IVUpLS1VKQk tLWQY+ X-HM-Tid: 0a8f50ae181203a4kunmb408a8401f9 X-HM-MType: 1 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Pxg6GSo6MTMDCBVKDi8yNTQW OC8KFE9VSlVKTEpOS09OTkhDSU9MVTMWGhIXVRoVHwJVAhoVOwkUGBBWGBMSCwhVGBQWRVlXWRIL WUFZTkNVSUlVTFVKSk9ZV1kIAVlBTU1JSzcG Hi Maxime, On 5/6/24 15:59, Maxime Ripard wrote: > Hi Andy, > > Thanks a lot for giving it a try > > All the issues you raised in your review are fixed. > > On Sat, Apr 27, 2024 at 06:44:54PM GMT, Andy Yan wrote: >> And after this whole series applied on linux 6.9-rc4, the display on rk3036 kylin is lost, I get >> the following error: >> [ 178.999421] rockchip-drm display-subsystem: [drm:drm_atomic_check_only] checking 87b7fbde >> [ 178.999471] rockchip-drm display-subsystem: [drm:drm_atomic_helper_check_modeset] [CRTC:35:crtc-0] mode changed >> [ 178.999498] rockchip-drm display-subsystem: [drm:drm_atomic_helper_check_modeset] [CRTC:35:crtc-0] enable changed >> [ 178.999521] rockchip-drm display-subsystem: [drm:drm_atomic_helper_check_modeset] [CRTC:35:crtc-0] active changed >> [ 178.999547] rockchip-drm display-subsystem: [drm:drm_atomic_helper_check_modeset] Updating routing for [CONNECTOR:37:HDMI-A-1] >> [ 178.999575] rockchip-drm display-subsystem: [drm:drm_atomic_helper_check_modeset] [CONNECTOR:37:HDMI-A-1] using [ENCODER:36:TMDS-36] on [CRTC:35:crtc-0] >> [ 178.999604] rockchip-drm display-subsystem: [drm:drm_atomic_helper_connector_hdmi_check] Trying with a 8 bpc output >> [ 178.999636] rockchip-drm display-subsystem: [drm:drm_atomic_helper_connector_hdmi_check] Trying RGB output format >> [ 178.999730] rockchip-drm display-subsystem: [drm:drm_atomic_helper_connector_hdmi_check] RGB Format, checking the constraints. >> [ 178.999757] rockchip-drm display-subsystem: [drm:drm_atomic_helper_connector_hdmi_check] RGB output format not supported with 8 bpc >> [ 178.999783] rockchip-drm display-subsystem: [drm:drm_atomic_helper_connector_hdmi_check] Failed. No Format Supported for that bpc count. >> [ 178.999810] rockchip-drm display-subsystem: [drm:drm_atomic_helper_check_modeset] [CONNECTOR:37:HDMI-A-1] driver check failed >> [ 178.999836] rockchip-drm display-subsystem: [drm:drm_atomic_check_only] atomic driver check for 87b7fbde failed: -22 >> [ 178.999868] rockchip-drm display-subsystem: [drm:drm_atomic_state_default_clear] Clearing atomic state 87b7fbde >> [ 178.999898] [drm:drm_mode_object_put] OBJ ID: 37 (4) >> [ 178.999922] [drm:drm_mode_object_put] OBJ ID: 37 (3) >> [ 178.999944] [drm:drm_mode_object_put] OBJ ID: 40 (1) >> [ 178.999971] [drm:drm_mode_object_put] OBJ ID: 39 (2) > > Which kind of display are you testing with? The only reason it could do > so is if the display claim it doesn't support RGB in its EDID which is > contradicting the HDMI spec. Are you using an Analog display by any > chance? or the built-in EDIDs through the drm.edid_firmware mechanism? > It is because there is something wrong(I still don't know why) with the DDC on my board. It always failed to read edid when it first bootup, that means inno_hdmi_connector_get_modes will return 0. and in function drm_helper_probe_single_connector_modes: count = drm_helper_probe_get_modes(connector); if (count == 0 && (connector->status == connector_status_connected || connector->status == connector_status_unknown)) { count = drm_add_modes_noedid(connector, 1024, 768); /* * Section 4.2.2.6 (EDID Corruption Detection) of the DP 1.4a * Link CTS specifies that 640x480 (the official "failsafe" * mode) needs to be the default if there's no EDID. */ if (connector->connector_type == DRM_MODE_CONNECTOR_DisplayPort) drm_set_preferred_mode(connector, 640, 480); } drm_add_modes_noedid will not initialize display_info. > Maxime