From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8F7D4C433E2 for ; Tue, 30 Jun 2020 07:35:43 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 602BD206CB for ; Tue, 30 Jun 2020 07:35:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=cerno.tech header.i=@cerno.tech header.b="f1k4nney"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="ldBH0fhV" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 602BD206CB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=cerno.tech Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 879E789D02; Tue, 30 Jun 2020 07:34:58 +0000 (UTC) Received: from new2-smtp.messagingengine.com (new2-smtp.messagingengine.com [66.111.4.224]) by gabe.freedesktop.org (Postfix) with ESMTPS id 31A8C89DB7 for ; Mon, 29 Jun 2020 14:21:50 +0000 (UTC) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id B5752580101; Mon, 29 Jun 2020 10:21:47 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 29 Jun 2020 10:21:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=OtjGPZeLZ6wR3WLazxOSh3tcZhM 5G1wf4Vv5N/3NOvc=; b=f1k4nneyfy3IM5VsaAqJKH8lYX5x6KisHa8BA9eR2IT CNGzwwDhugnSlhpocOKWK6jeZaQMPWV4HU6hi+ak4P1d/lHYSZfAbz5+7lYpmfuy zVOczEYdtuhdN6GuVyULdHB8uQJdTYHlBaeG7pTXAp8IpkiC0LwzW8bFaO/hsLV7 yMVXtpGWrvs/Ok5vCfP4ovIjGbpZgvc/siNC4vNRyH8EQ4uAKGGW6FNi/UoIypbe 1VB/jdjLnjF+e/ntJZuoF/pdYYK5iqZ1U0YEBXhM7ty3irhKuubjFVTkHcMiI5Wt +y+LNb2LNWXYSjPwvhJnnCpHpDx346LDSuJYLMFCSjw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=OtjGPZ eLZ6wR3WLazxOSh3tcZhM5G1wf4Vv5N/3NOvc=; b=ldBH0fhV20x+1MYt/JGAx0 6aXa53FgauyKaJfrOPM+WqUuEOITix48Z5M1H76NmAhI29uhdJsEc06Ybka2PNQM GlAZe3HWT1aEQqEsTfL89HB73o2r4FYBT/F3797fVgPlYjFniKCWc38ahTsg+uD8 oG0gRZyDa73uKRlTXQNIAXhBGMcuXRIIFYmP5a5Wo8SfcFngs/uwa9/MWuIjpaVf 0mQTLbEQds2AUdmfOYsRmfGPEwHPa+l5zk26/o3im1gVyeVW4OK+9kYjoTddQpic njB4mEDqpzzSkgsufLW/VBiFzqlhDOXJQhhKjjZ7wZ1BaSvrZL5En+ysxxUdroeQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudelledgtdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtderredttdejnecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrth htvghrnhepheelgfehhfefiefgfeegteeuveeigffhffdvtdeuffffleekgeefudejfefh veelnecuffhomhgrihhnpehkvghrnhgvlhdrohhrghdpghhithhhuhgsrdgtohhmnecukf hppeeltddrkeelrdeikedrjeeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomhepmhgrgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id C562A328005E; Mon, 29 Jun 2020 10:21:46 -0400 (EDT) Date: Mon, 29 Jun 2020 16:21:45 +0200 From: Maxime Ripard To: Jian-Hong Pan Subject: Re: [PATCH v2 00/91] drm/vc4: Support BCM2711 Display Pipelin Message-ID: <20200629142145.aa2vdfkgeugrze4c@gilmour.lan> References: <20200526102018.kznh6aglpkqlp6en@gilmour.lan> <20200527091335.7wc3uy67lbz7j4di@gilmour.lan> <20200528073055.znutrhkryzu3grrl@gilmour.lan> <20200602110442.2ceuymhwuomvjj6i@gilmour> MIME-Version: 1.0 In-Reply-To: X-Mailman-Approved-At: Tue, 30 Jun 2020 07:34:54 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, devicetree , Linux Kernel , dri-devel , Daniel Drake , bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, Linux Upstreaming Team , linux-clk@vger.kernel.org, Nicolas Saenz Julienne , linux-i2c@vger.kernel.org Content-Type: multipart/mixed; boundary="===============0806703300==" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" --===============0806703300== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="24cvice2wllspfzm" Content-Disposition: inline --24cvice2wllspfzm Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! On Fri, Jun 05, 2020 at 04:44:51PM +0800, Jian-Hong Pan wrote: > Maxime Ripard =E6=96=BC 2020=E5=B9=B46=E6=9C=882=E6= =97=A5 =E9=80=B1=E4=BA=8C =E4=B8=8B=E5=8D=887:04=E5=AF=AB=E9=81=93=EF=BC=9A > > > > Hi, > > > > On Mon, Jun 01, 2020 at 03:58:26PM +0800, Jian-Hong Pan wrote: > > > Maxime Ripard =E6=96=BC 2020=E5=B9=B45=E6=9C=8828= =E6=97=A5 =E9=80=B1=E5=9B=9B =E4=B8=8B=E5=8D=883:30=E5=AF=AB=E9=81=93=EF=BC= =9A > > > > > > > > Hi Daniel, > > > > > > > > On Wed, May 27, 2020 at 05:15:12PM +0800, Daniel Drake wrote: > > > > > On Wed, May 27, 2020 at 5:13 PM Maxime Ripard = wrote: > > > > > > I'm about to send a v3 today or tomorrow, I can Cc you (and Jia= n-Hong) if you > > > > > > want. > > > > > > > > > > That would be great, although given the potentially inconsistent > > > > > results we've been seeing so far it would be great if you could > > > > > additionally push a git branch somewhere. > > > > > That way we can have higher confidence that we are applying exact= ly > > > > > the same patches to the same base etc. > > > > > > > > So I sent a new iteration yesterday, and of course forgot to cc you= =2E.. Sorry for > > > > that. > > > > > > > > I've pushed my current branch here: > > > > https://git.kernel.org/pub/scm/linux/kernel/git/mripard/linux.git/l= og/?h=3Drpi4-kms > > > > > > Thanks to Maxime! > > > > > > I have tried your repository on branch rpi4-kms. The DRM VC4 is used! > > > But got some issues: > > > 1. Some weird error message in dmesg. Not sure it is related, or not > > > [ 5.219321] [drm:vc5_hdmi_init_resources] *ERROR* Failed to get > > > HDMI state machine clock > > > https://gist.github.com/starnight/3f317dca121065a361cf08e91225e389 > > > > That's a deferred probing. The first time the HDMI driver is being > > probed, the firmware clock driver has not been probed yet. It's making > > another attempt later on, which succeeds. > > > > > 2. The screen flashes suddenly sometimes. >=20 > I append drm.debug=3D0x3 to boot command. Whenever, the screen flashes, > I notice the logs like this: >=20 > Jun 01 15:22:40 endless kernel: [drm:drm_calc_timestamping_constants] > crtc 64: hwmode: htotal 2200, vtotal 1125, vdisplay 1080 > Jun 01 15:22:40 endless kernel: [drm:drm_calc_timestamping_constants] > crtc 64: clock 148500 kHz framedur 16666666 linedur 14814 > Jun 01 15:22:40 endless kernel: [drm:drm_vblank_enable] enabling > vblank on crtc 3, ret: 0 > Jun 01 15:22:40 endless kernel: [drm:drm_mode_object_put.part.0] OBJ ID: = 159 (2) > Jun 01 15:22:40 endless kernel: [drm:drm_mode_object_put.part.0] OBJ ID: = 154 (1) > Jun 01 15:22:40 endless kernel: [drm:vblank_disable_fn] disabling > vblank on crtc 3 > Jun 01 15:22:42 endless kernel: [drm:drm_ioctl] pid=3D584, dev=3D0xe200, > auth=3D1, DRM_IOCTL_MODE_CURSOR > Jun 01 15:22:42 endless kernel: [drm:drm_ioctl] pid=3D584, dev=3D0xe200, > auth=3D1, DRM_IOCTL_MODE_CURSOR2 > Jun 01 15:22:42 endless kernel: [drm:drm_mode_object_get] OBJ ID: 159 (1) > Jun 01 15:22:42 endless kernel: [drm:drm_mode_object_get] OBJ ID: 154 (1) > Jun 01 15:22:42 endless kernel: [drm:drm_calc_timestamping_constants] > crtc 64: hwmode: htotal 2200, vtotal 1125, vdisplay 1080 > Jun 01 15:22:42 endless kernel: [drm:drm_calc_timestamping_constants] > crtc 64: clock 148500 kHz framedur 16666666 linedur 14814 > Jun 01 15:22:42 endless kernel: [drm:drm_vblank_enable] enabling > vblank on crtc 3, ret: 0 > Jun 01 15:22:42 endless kernel: [drm:drm_mode_object_put.part.0] OBJ ID: = 159 (2) > Jun 01 15:22:42 endless kernel: [drm:drm_mode_object_put.part.0] OBJ ID: = 154 (2) >=20 > Here is the full log > https://gist.github.com/starnight/85d641819839eddc7a55ca7173990a56 >=20 > > > 3. The higher resolutions, like 1920x1080 ... are lost after hot > > > re-plug HDMI cable (HDMI0) >=20 > I should explain this in more detail. Here are the steps to reproduce > this issue: > 1. Before unplug the HDMI cable from HDMI0 port. > $ xrandr > Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 2048 x 2048 > HDMI-1 connected primary 1920x1080+0+0 (normal left inverted right x > axis y axis) 521mm x 293mm > 1920x1080 60.00*+ 50.00 59.94 > 1920x1080i 60.00 50.00 59.94 > 1680x1050 59.88 > 1280x1024 75.02 60.02 > 1440x900 59.90 > 1280x960 60.00 > 1152x864 75.00 > 1280x720 60.00 50.00 59.94 > 1440x576 50.00 > 1024x768 75.03 70.07 60.00 > 1440x480 60.00 59.94 > 832x624 74.55 > 800x600 72.19 75.00 60.32 56.25 > 720x576 50.00 > 720x480 60.00 59.94 > 640x480 75.00 72.81 66.67 60.00 59.94 > 720x400 70.08 > HDMI-2 disconnected (normal left inverted right x axis y axis) >=20 > 2. Unplug the HDMI cable from HDMI0 port. > 3. Plug the HDMI cable to **HDMI1** port. > $ xrandr > Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 2048 x 2048 > HDMI-1 disconnected (normal left inverted right x axis y axis) > HDMI-2 connected primary 1920x1080+0+0 (normal left inverted right x > axis y axis) 521mm x 293mm > 1920x1080 60.00*+ 50.00 59.94 > 1920x1080i 60.00 50.00 59.94 > 1680x1050 59.88 > 1280x1024 75.02 60.02 > 1440x900 59.90 > 1280x960 60.00 > 1152x864 75.00 > 1280x720 60.00 50.00 59.94 > 1440x576 50.00 > 1024x768 75.03 70.07 60.00 > 1440x480 60.00 59.94 > 832x624 74.55 > 800x600 72.19 75.00 60.32 56.25 > 720x576 50.00 > 720x480 60.00 59.94 > 640x480 75.00 72.81 66.67 60.00 59.94 > 720x400 70.08 >=20 > 4. Unplug the HDMI cable from **HDMI1** port. > 5. Plug the HDMI cable back to HDMI0 port. > $ xrandr > Screen 0: minimum 320 x 200, current 1368 x 768, maximum 2048 x 2048 > HDMI-1 connected primary 1368x768+0+0 (normal left inverted right x > axis y axis) 0mm x 0mm > 1368x768 59.88* > 1360x768 59.80 > 1280x800 59.81 > 1152x864 60.00 > 1280x720 59.86 > 1024x768 60.00 > 1024x576 59.90 > 960x540 59.63 > 800x600 60.32 > 800x450 59.82 > 700x450 59.88 > 640x480 59.94 > 684x384 59.88 59.85 > 680x384 59.80 59.96 > 640x400 59.88 59.98 > 576x432 60.06 > 640x360 59.86 59.83 > 512x384 60.00 > 512x288 60.00 59.92 > 480x270 59.63 59.82 > 400x300 60.32 > 320x240 60.05 > HDMI-2 disconnected (normal left inverted right x axis y axis) Sorry for getting back at it so late. I just tested with modetest only and my current branch and it seems to behave properly. Did you had to run X to get that issue, or is it just how you noticed it? Also, was that with the branch based on 5.7 I pushed on my git tree on kernel.org or some earlier revision of the series? Thanks! Maxime --24cvice2wllspfzm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXvn4+QAKCRDj7w1vZxhR xbDTAPkBlUO8O0ST7H/4Wv8khNgXd4Gl1juEMoSbxw7EDw1ahQD/a/JTw0mlcjIk SFNvz6oKy8Ww6Fxbrs4ltBjarlHXEAk= =lIBi -----END PGP SIGNATURE----- --24cvice2wllspfzm-- --===============0806703300== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel --===============0806703300==--