Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp714424pxv; Thu, 15 Jul 2021 14:14:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnCT99yUFuIGdmAtOUXC1SZ6U0hXAhZDjByZ/uBoRgxcxYO9F0/iBjYYa5LcdI9xtWB8xR X-Received: by 2002:a17:906:a38c:: with SMTP id k12mr7810307ejz.474.1626383640104; Thu, 15 Jul 2021 14:14:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626383640; cv=none; d=google.com; s=arc-20160816; b=KktBJlLmRws2VJYHlG8VS/b+iYsC9BuizNM6qMjZIMr1bVLh7vq4jSQ8FtRYGR8xa+ A20DVg0ovLvgIH7rBNXqA0+DN0t7xjER4dlkk3oblt8l6LD+kIoDAKR7qCMIH4VBgvDI 5n2n5fuCimvqMjwCXm79uNWSaGYQBjjEKgVY+Lryre5n+xdqkPmzGLfMK/z3F6/AR4sA E4IqV/+AuY9Uf9Qt7vJb3M0Y2MdoPOFYYj6mF+9dNWC+RBXfDIQuTZLW/oUJe+npedEp /NEmbLNoFizrJEnLlhRLEnC/xDd8YFfGBqqw68ouhvccylaJXR0iGxwT5GryQirEtLta zVEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=g9QsALDed0lQ4kpo0JlaN/9W4WdUPjXFBKi/xmEg540=; b=iq/C1RBTSODwG0FerkY32bhz7rHllH3UCNKNyH/w4q2B939OtMPVweRo4i2kj6r6sp Zjo13W+NqYqrgbwUJsdufUTSyWaTCHAwugPkI9ShbZPc2h+/54V2sXbaZzX7aCJJfQO7 k80J1VdSrezwccwgzXPPjf/9VVAIlqbBhPRmLAGQrOzaj3q6AA1M4APud4KlI3748uwT 0nhwCUy852eZdFK2OKNhK2M452axvM9UHvg+PxLNkhFtgvO+TIWukkb8w5M1EFSXXCrh l+6HnGAq6HzX0RFHmir6PMu/baK7z17oLpdUPchplh0vXDPDeGR6stiHaqgSGI7z8IOj zhWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CtpFSyVZ; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t12si10185058edc.33.2021.07.15.14.13.36; Thu, 15 Jul 2021 14:14:00 -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=@linuxfoundation.org header.s=korg header.b=CtpFSyVZ; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345112AbhGOTap (ORCPT + 99 others); Thu, 15 Jul 2021 15:30:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:46434 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242841AbhGOTJS (ORCPT ); Thu, 15 Jul 2021 15:09:18 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AC738613E5; Thu, 15 Jul 2021 19:04:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626375888; bh=XrNhZrT/so2mBc0pNO1Elrniy1r5sRuyCJAA5Pv1jJ4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CtpFSyVZSY5qr22nSgjlxHWEHjOX4nAGg5i34z9Ha8t2Tb6uSBQwpH64CVPTR6Qk2 t1P6TXErSOGlLosJ4W7/wOqfk9NyezPbRg55D1RMc1OR37CbdViKkuZ1LQSguo6VTc bDap1a2g04CclqaK1zy0CJub0LPBdU61Hweo4cRY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mateusz Kwiatkowski , Maxime Ripard , Dave Stevenson , Sasha Levin Subject: [PATCH 5.13 037/266] drm/vc4: Fix clock source for VEC PixelValve on BCM2711 Date: Thu, 15 Jul 2021 20:36:32 +0200 Message-Id: <20210715182620.848875607@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182613.933608881@linuxfoundation.org> References: <20210715182613.933608881@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mateusz Kwiatkowski [ Upstream commit fc7a8abcee2225d6279ff785d33e24d70c738c6e ] On the BCM2711 (Raspberry Pi 4), the VEC is actually connected to output 2 of pixelvalve3. NOTE: This contradicts the Broadcom docs, but has been empirically tested and confirmed by Raspberry Pi firmware devs. Signed-off-by: Mateusz Kwiatkowski Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson Link: https://patchwork.freedesktop.org/patch/msgid/20210520150344.273900-2-maxime@cerno.tech Signed-off-by: Sasha Levin --- drivers/gpu/drm/vc4/vc4_crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vc4/vc4_crtc.c b/drivers/gpu/drm/vc4/vc4_crtc.c index 1f36b67cd6ce..e0fd9b74baae 100644 --- a/drivers/gpu/drm/vc4/vc4_crtc.c +++ b/drivers/gpu/drm/vc4/vc4_crtc.c @@ -1035,7 +1035,7 @@ static const struct vc4_pv_data bcm2711_pv3_data = { .fifo_depth = 64, .pixels_per_clock = 1, .encoder_types = { - [0] = VC4_ENCODER_TYPE_VEC, + [PV_CONTROL_CLK_SELECT_VEC] = VC4_ENCODER_TYPE_VEC, }, }; -- 2.30.2