Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp639717pxv; Thu, 15 Jul 2021 12:11:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXqHDWTV2rnWkX5/hnyEFHM+L3ChEAjZgXU3KvMd2AIGC5TF1COPjPYcFPIcREYswFtn97 X-Received: by 2002:a17:907:62a5:: with SMTP id nd37mr7013485ejc.148.1626376293380; Thu, 15 Jul 2021 12:11:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626376293; cv=none; d=google.com; s=arc-20160816; b=Pjg0+m5Zyk4Hy6yuJgofCCBtPzgAbUULsLHC9dZnzz9lpjpc5pSKlS49ET5Szqd17m tipcrp9imi/nGJBqDH4nvDXkBkvfX5/d7GxjpW/beuV+dFYtwP672SOte252aikO1dKQ u5Ciahthlic9hMACLy2uI9YLcTwmFlAMtvS1pEhNnYdBCu0csWeMXFbIfnQe7yEBijNY EYFOcJeMaaxnKMaww6XR+I/KvJ5BGnCB3MaiIzWDlbqfZU2fZoxk3J64bwh6Ag1ydqvq PiCLjd4ED/1Vu8ZIj0kQETiW6yCsokaCPug9TwBzQSgK7nxi7khqJoqruUQupz+llFAk hFJQ== 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=MT832WrFc2re0v+9QTQDOweyQ7gneXy4dFGkaWkVOsSQbSLgayrhxQ8yuLpqDzMWzG bNkjUSD3LLH9gwoL+11IY2OVY7CePohFjrkhNGezs8guXQNpQOOM2iV49rYwyKBmpk2K uzTM7IJezeWH273Gj63pNtg75DvT7M61ri9hw3pkeEn3MCHDZbhAmHj6cz6myZc704Bn iUSqzywrI4M7TL3fZynUKSWAaRj4nXOpMfuimEHxrq18qfIs72xUCUJFFei5nwk6ks7t OfqvBkBsgYDEsm0WDWBrN8em2NnyKdYYL/D2+eSZY3onlKOl5WR1OiDBBiHeSa06xhQd cH+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SnRvS1Uw; 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 e23si8440797eje.315.2021.07.15.12.11.10; Thu, 15 Jul 2021 12:11:33 -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=SnRvS1Uw; 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 S243179AbhGOTLb (ORCPT + 99 others); Thu, 15 Jul 2021 15:11:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:60992 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242355AbhGOS7i (ORCPT ); Thu, 15 Jul 2021 14:59:38 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 59C78613DD; Thu, 15 Jul 2021 18:56:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626375400; bh=XrNhZrT/so2mBc0pNO1Elrniy1r5sRuyCJAA5Pv1jJ4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SnRvS1UwZXKPeyTextWn4GW7oc+ldJvD+OjGKsvHt1Xe9WruqBpo7sbtrwJd3MfMC Ks+YfgnXfCw/U7psycT+brhgDXHbn03B9F33G9ZGkmexJhYUmwA/ipnkXHI6MjljGy WdiaoLXj/zXEbH8SPssEcXhxYY7vmr9yFXaKRROw= 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.12 029/242] drm/vc4: Fix clock source for VEC PixelValve on BCM2711 Date: Thu, 15 Jul 2021 20:36:31 +0200 Message-Id: <20210715182557.051336121@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182551.731989182@linuxfoundation.org> References: <20210715182551.731989182@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