Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1427256lqh; Mon, 6 May 2024 07:29:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVL9fLIRbFhu7NeUUcidZ00G6DMzw7YLxvnsSIEWcahzmS00QwkwDhMT51HErRAv1Ck8Qjgs9Stl/HrZdZdC/tWQno6NttdVP3PB+P3kg== X-Google-Smtp-Source: AGHT+IFih96cZrar+Bw6/bAmakTG9xQDmTcYvcnJqyp6VG7oyCvdAP2xY2nuRAnb0IRA5zAWp9XI X-Received: by 2002:a05:6a21:999b:b0:1af:ac97:adcb with SMTP id ve27-20020a056a21999b00b001afac97adcbmr5463739pzb.40.1715005765083; Mon, 06 May 2024 07:29:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715005765; cv=pass; d=google.com; s=arc-20160816; b=cTVjKb/BN9vNmQ9OzwhX9JcCAX098QftLWVGzOxbCN+4zTug3f3E6EXd8OLgJk0pni JPU74mkSlT8zxdpdcHKZH0n2Lmqeq/kYNZRFq4lGVvTLf37mn/rSkOJE3SvbNhexYbPg 3JA8rT5kyD4TmZBFfh35wuF04A0qlFb2kUz4Qj1mQb4gidOmO8hRATwJHm376YkZ0Nc8 K8XHCN/7K4g6N99+21oElolp7xeC/q4BEz4w1nf3jQ8xS0AoexAZ1Sl40HAkhF/JAiiA AH3XQo5qhwFY8NWAgbgWgjWXU/KFIlCFuofzIo9FolLRmMgnaFwRauDyU+mdhamvqg0a BZtw== 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=GJuF3hTrQtUJMZ2uZFlEfERKTqM4rnSOLJVMQPzCloc=; fh=Q7k+FNuF+q91+NFJBz338XEDry2H/0X5pQEDtZDpXD0=; b=UlRhxOz5XXOnE1DjHCT19wFaZD7IlDQ602SodwEYjEiWIXq46T0bN9IES6DQEZV1wY RemSPiKhw0KuejU2mA/A2/WsmMFAmf3Z6RldtX9eOcb53iiO8Gt/Bvn+zQXIbxt6ZXdG vp8B7DVz77tPJJ3fCp2mS1p3PHmy6YWq1q+0+EGD8FvGhNxsFd3VRLq1xpkarCJtWpKC UqjCIXOYGwb47YP1O6Wz4EFjTsCpFGp3x1gYbif/rS75WmwfCXlPTvx2xkq1VKw3/WoC 3VEBbhOQlIjzNPzCoi2Z4cuyKTEzw/8MmI/cLNnf+6H3v1ugBkHwPBxPZjo3tsy8XkUO vKEw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@rock-chips.com header.s=default header.b=ZrKQo4LL; 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-169975-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169975-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id u35-20020a631423000000b005f8076c6729si8312775pgl.379.2024.05.06.07.29.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 07:29:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169975-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@rock-chips.com header.s=default header.b=ZrKQo4LL; 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-169975-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169975-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 3B5A42880E0 for ; Mon, 6 May 2024 14:23:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9145313D8B1; Mon, 6 May 2024 14:20:17 +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="ZrKQo4LL" Received: from mail-m19731107.qiye.163.com (mail-m19731107.qiye.163.com [220.197.31.107]) (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 657A513D882; Mon, 6 May 2024 14:20:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=220.197.31.107 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715005216; cv=none; b=qtzmFVqQOHmnvyNIMMBx6ADXQ3Yv0r08QbvvAX5Fa1OKZm0Q9FDc7vtsj/vVSMFiQFhtmXC/q1cHKfRUSxH7RiyH5wqVLiUuHADchNbSfa5Crq978mF627cRA481n1s9/LzPEbIPHWJi33Uev1AbV9+Yn4733h8IYn8veqiqIWs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715005216; c=relaxed/simple; bh=pyfAwvjWpp9yO49mvYPG4/3Ctuy4s/rdglAXCFfPT4k=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=FnK1Vjgls9XuajwTmkrglwmzh18IH694vYebh31X4dP8vae4f8iBp7etw3W/eGeSvhRxRfVn/y+cMoagozp0LOiBUKNBEwUAK2V+0oAYewqSWcaXkbSwCJnhnPnfby40EVpgeywcZ7ARj52eUX+gQCMv/8dMsq9pds+0PgpMObQ= 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=ZrKQo4LL; arc=none smtp.client-ip=220.197.31.107 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=ZrKQo4LLpXHMy8d4LXYD5iTRkQxizuI2VtgsgE+tJYIizoDN242zSfeuyZB6BxBPQMhQ7sm0BOLRbctDuuDGN2P8iej4bSnj/drKmF3/FNT3RqhqTyIlvpEtD8A/Fe6P9zFf5Mb0Hkg6Vj8aO4luGZv0MwCJTidSzkGU/cgb2Ro=; c=relaxed/relaxed; s=default; d=rock-chips.com; v=1; bh=GJuF3hTrQtUJMZ2uZFlEfERKTqM4rnSOLJVMQPzCloc=; 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 739F18404C4; Mon, 6 May 2024 16:23:00 +0800 (CST) Message-ID: Date: Mon, 6 May 2024 16:22:46 +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 tZV1koWUFDSUNOT01LS0k3V1ktWUFJV1kPCRoVCBIfWUFZQhlNTFZOGhpJGk5ITU1IGUlVEwETFh oSFyQUDg9ZV1kYEgtZQVlOQ1VJSVVMVUpKT1lXWRYaDxIVHRRZQVlPS0hVSk1PSU5IVUpLS1VKQk tLWQY+ X-HM-Tid: 0a8f4cffc4c703a4kunm739f18404c4 X-HM-MType: 1 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6PEk6STo6DDMDFBdDQhojTDg# DkgaCQNVSlVKTEpPQkNITENJS09JVTMWGhIXVRoVHwJVAhoVOwkUGBBWGBMSCwhVGBQWRVlXWRIL 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