Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp1052189pxa; Fri, 28 Aug 2020 02:12:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAwVHpoMfF9xlFC/ykgV0+adj6L0i988vnIz52w5zZbwLjr5ObQoLZLyFuKT7BAeJokmzF X-Received: by 2002:a17:906:4305:: with SMTP id j5mr869002ejm.102.1598605952550; Fri, 28 Aug 2020 02:12:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598605952; cv=none; d=google.com; s=arc-20160816; b=Yv1aI/973BXPWQ2NGu/MuOJ0MFkhyxyCF+dVbK35JGoQ5F6RSKFrsAgYqDTpD+m1tz mtWw11H81d/oDTW0tP2hw44moom5PE7U13s9ew85bBArsyE4PGUT03R429us/BpTRnL8 jicyNzfSC74y2A0+uYPYx8Hl6DAK58iy+CmsOqeoxHMFymtm0vhas7weewhyr7nzGn01 SGLkvQTCTsh/SOVduic62xCVlrqr1DdHpHaZYDwfagDsdeaZObIYvKYmuandkWMZQATe zvhf7PkS/BD1PdmzA2SEC1/BguGRtnLsT9+blR8Rc65RToi74OId6eH86zWmveR7nYsn dQjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=Z6mEu5ovUCsGUuf/wYMTCQN4y6rAXdKDOAyJ2Ja6nCA=; b=dtW+Nap+pfHmm23hhptUefwTqWL2oqp8pHW5clu3xPu/eI6E+nrpvtXUPCbTYs2wFd 5LnuMa1sJVwiqcIuydqpGWTtzZEEBthUCtOjEykeKLT+Wyct+90GdXQUGdL+zJ5HO1CG v7C9wzTofbPbxSdRtaPDx6lW/VDWMroKmnTXi7/D3VzAlEEZUXSkXMl6yFhABGyYN5YU B8UZ4xrrSyO9rGYCEUHxEL58DjvpJcvof8zT41Ku0kLdbljtVoB36EiNR31fhXhpv5td x5E5J/JpgsSGizt7sUCf+PZtPF4ZlvTQPlpEVjAktign7JEmvpmSZQFS0Zol/Dj7lP2P GFNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=qN37PLkg; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="J/GreiDh"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x18si267900ejd.265.2020.08.28.02.12.09; Fri, 28 Aug 2020 02:12:32 -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; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=qN37PLkg; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="J/GreiDh"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728868AbgH1JL2 (ORCPT + 99 others); Fri, 28 Aug 2020 05:11:28 -0400 Received: from wnew3-smtp.messagingengine.com ([64.147.123.17]:42673 "EHLO wnew3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728555AbgH1JL1 (ORCPT ); Fri, 28 Aug 2020 05:11:27 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.west.internal (Postfix) with ESMTP id 8AB89789; Fri, 28 Aug 2020 05:11:24 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 28 Aug 2020 05:11:25 -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:content-transfer-encoding:in-reply-to; s=fm3; bh=Z 6mEu5ovUCsGUuf/wYMTCQN4y6rAXdKDOAyJ2Ja6nCA=; b=qN37PLkgvkVR5Aazx VO6BnCy6DwdAV9DCbIZf14J7EMDsPTYcytEmv27Q19g3xOaErEcN8uFbDs/RK+2r qvYHiC8ux0XdNPZEvNL2DSUXkQaRhpUgRLsVdt6V/rYwMASN0dJ2Pp8DeUqZgKnM Jbxtp2cKAYQsZWyV0ok59dj5yMepW4jXKcqOYAtdomFYcOWZC4DCVyw3RBdj1ot5 MVpJ7WYZwLU8liQEakA9C4keoaImk068u7RSJwVZadNsOES7aPlfbRYCI4oWSynA KnTZGKmJ1QmexpzClITgozZEM7c/Co9GQ5xWxUGtlT14hJRUPRe8De9lUCQIKO81 Fx0HQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=Z6mEu5ovUCsGUuf/wYMTCQN4y6rAXdKDOAyJ2Ja6n CA=; b=J/GreiDhRaZndA7DEBOqOBikLTiFnuLazmjM6HRBkH3DkY6QbCiHTxKXA AT7CFyaTUft0UvLJz8h9MQO21oTI+fax4rUA4NHW/zUTyp3TaKvhZr4I4lDeiWsS 1iYNk7N4HGxcIdw1ifu4rfV6mbtt+vw0hjSF4bhKZuLjsgnqbVUeZjcu8/zJenqf EGZ5dW/GElYwtg6CcuJEMLARnYM2EFBU6Vr3/b83Ib2JVAyD4klarhMsRt8SuWiI DQeHiRaO4CO65d5YvEfT6aNonVw9LHcy7CmDRWkeR2BBvV/zm/zDP4MlT3zVpQzM zZI74TPd9+2TnOcv6cKXbwpM1IwvQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedruddvjedgtdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtugfgjgesthhqredttddtvdenucfhrhhomhepofgrgihi mhgvucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrg htthgvrhhnpefhieehiefftddtgfekuefgleelgedtudefvddtkedvheejhfethfekjedv fffhheenucffohhmrghinhephigrmhhlrdihohhupdihrghmlhdrmhihpdgsohhothhlih hnrdgtohhmnecukfhppeeltddrkeelrdeikedrjeeinecuvehluhhsthgvrhfuihiivgep tdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrgihimhgvsegtvghrnhhordhtvggthh 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 10FC33280064; Fri, 28 Aug 2020 05:11:21 -0400 (EDT) Date: Fri, 28 Aug 2020 11:11:19 +0200 From: Maxime Ripard To: Stefan Wahren Cc: Hoegeun Kwon , nsaenzjulienne@suse.de, eric@anholt.net, devicetree@vger.kernel.org, tim.gover@raspberrypi.com, dave.stevenson@raspberrypi.com, sboyd@kernel.org, mturquette@baylibre.com, kdasu.kdev@gmail.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-clk@vger.kernel.org, robh+dt@kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, phil@raspberrypi.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 3/3] drm/vc4: hdmi: Add pixel bvb clock control Message-ID: <20200828091119.2kykcxixw247kfno@gilmour.lan> References: <20200821071045.24501-1-hoegeun.kwon@samsung.com> <20200821071045.24501-4-hoegeun.kwon@samsung.com> <61c199bf-852f-82d3-089a-a0a435343acf@i2se.com> <80749dcd-d4b2-68a1-f3ca-c19a120f6f7b@samsung.com> <84c423e8-25a6-8f23-cc80-7a17ce03fd1d@i2se.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <84c423e8-25a6-8f23-cc80-7a17ce03fd1d@i2se.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stefan, On Thu, Aug 27, 2020 at 11:49:34AM +0200, Stefan Wahren wrote: > Am 27.08.20 um 06:35 schrieb Hoegeun Kwon: > > Hi Stefan, > > > > Thank you for your review. > > > > > > On 8/26/20 7:04 PM, Stefan Wahren wrote: > >> Hi Hoeguen, > >> > >> Am 21.08.20 um 09:10 schrieb Hoegeun Kwon: > >>> There is a problem that the output does not work at a resolution > >>> exceeding FHD. To solve this, we need to adjust the bvb clock at a > >>> resolution exceeding FHD. > >> this patch introduces a mandatory clock, please update > >> brcm,bcm2835-hdmi.yaml first. > >> > >> Is this clock physically available on BCM283x or only on BCM2711? > > As far as I know, BCM2711 raspberry pi 4 supports 4k, > > > > don't supported on pi 3 and pi 3+. > > > > Since 4k is not supported in versions prior to Raspberry Pi 4, > > > > I don't think we need to modify the bvb clock. > > > > > > So I think it is better to update 'brcm,bcm2711-hdmi.yaml' > > > > instead of 'brcm,bcm2835-hdmi.yaml'. >=20 > You are correct please update only brcm,bcm2711-hdmi.yaml. >=20 > My concern was that the function vc4_hdmi_encoder_pre_crtc_configure() > is called on a non-bcm2711 platform or on a Raspberry Pi 4 with an older > DTB. So making the BVB clock optional might be better? It won't cause any issue on a non-RPi4 platform since the clock pointer will be NULL and clk_set_rate can deal with NULL pointers just fine: https://elixir.bootlin.com/linux/latest/source/drivers/clk/clk.c#L2221 For the older DTBs, it shouldn't be an issue either. We haven't merged the binding yet, so we don't have an upstream DTB using it Maxime