From patchwork Fri Jun 3 09:26:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Robinson X-Patchwork-Id: 12868855 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 755E2C43334 for ; Fri, 3 Jun 2022 09:27:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=EhHXaoq3nX4DVHgWAbc0RhW1EQoNgIlCYrilwmca0Uc=; b=Od5G55hi7CHiNr zWuu+zDnQylGhFHEKq999lx4UBS70qmI5toxmHtYCQI5IMqiY2Cpq6J2UxQyDkT+xscdxIxjMFRvF o3Cc9623bPHxeI9vcvHajPKQYLIkMTJpYppx0eXdZCuq+2VMxxZ6mUtyf2leGy5HBecQArfnYJED2 gBCqHufMFIzNEBptzCwQf5F3Kulkg5AsfnWi4qPbM6Z1iq/WbO20A58EYFMcR9loOpkiSfBvG85BN 7BZelFRFBzpJr9UbWCWqWAWV+GGk/wwGnAsU/WgGe5QbM9n9dM0Rch2oMk9SY7tPezAlvFHwdUP4R KL0BgqHZoJ0DlViz7lZA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nx3ZY-006nyu-OU; Fri, 03 Jun 2022 09:26:25 +0000 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nx3ZS-006ntE-8Q; Fri, 03 Jun 2022 09:26:20 +0000 Received: by mail-ej1-x62b.google.com with SMTP id kq6so1779780ejb.11; Fri, 03 Jun 2022 02:26:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=d11o2d5ri6Bk3Uwjrg8nECkV0m9NEQVoIzTmBlBjqJY=; b=mst1SLjj6wyXb2uviGvZufvlFxMq3ZJoL4FEPys1MRgBswbH3yb//Uw7puA1DvWDU4 a/FzGbr8quWSyRk4QEZFmzqia7u8phdOCtiSzQcKUxmIvnWTx1byjhRoX9w6ZZAG3/h8 dE/+VubgeMBTthjvLVXJldjdsP4dHoZg5q4roG1w79PE40XqTYlJ92MZr3C/jcAOdiLC 10Aqqfm4asD/tey4t93bjYARP0dH0ic3b1bOn49M1DW8GzbvaNNj4fmt+umpSrOYuZK6 avk4RAtJEvzmZz/dpwW8Ehmwt8t7PqNykc6SMcohI/FMm2tCwrtWJReX7MOGC+WYg0KS JZjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=d11o2d5ri6Bk3Uwjrg8nECkV0m9NEQVoIzTmBlBjqJY=; b=Z3n4yLcl9fVbuUbmpcPV2i5sOhZvy+hd0dyv6RI6bCFV/Yqoa1+VugU3lglLMtmeES lwyZDZPP16vyhSUUmvEb9zI19LIHl7ZY8dptqSKPja/e9Mw4/MyP+CET13cct3fqKEzo I+rQKhBs39Ea7sVp0OkIeFEPjeWeIZpML+wjDQVqjWicLtiqwvppnBOY63xiI1hG4Xvh UdA2HyqCl/v9D3auHiR5cHkz4YxJNUYm1iMP3nkHrZ7FCwuoDDiH76imEbi/WY0F1Dbl b3cnhwlRU3vp3Apa05QZQqbRb7+diE45H6t5KG/86a5Ovg8sCnPAWSzGFip4pVCQ8d8V DeMQ== X-Gm-Message-State: AOAM532ST91NwuRVIWBoZv5YUHKkiYjyzCy6TijRFG3BupaH6OadIUUf thf2uhNXKaQfTqcwie/KJlo= X-Google-Smtp-Source: ABdhPJxkNXgUmvit6rTJAt+5eLug2jZIAIktydFQGW4RAn6SX4BpLsboURL2jIrnxm7yMn/3XWjxAQ== X-Received: by 2002:a17:906:f845:b0:70e:fb6a:9b76 with SMTP id ks5-20020a170906f84500b0070efb6a9b76mr1055447ejb.530.1654248374650; Fri, 03 Jun 2022 02:26:14 -0700 (PDT) Received: from morpheus.home.roving-it.com (3.e.2.0.0.0.0.0.0.0.0.0.0.0.0.0.1.8.6.2.1.1.b.f.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:fb11:2681::2e3]) by smtp.googlemail.com with ESMTPSA id b5-20020a17090691c500b006feaa22e367sm2617672ejx.165.2022.06.03.02.26.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jun 2022 02:26:14 -0700 (PDT) From: Peter Robinson To: Arnd Bergmann , bcm-kernel-feedback-list@broadcom.com, Daniel Vetter , David Airlie , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, Emma Anholt , Florian Fainelli , javierm@redhat.com, linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, maxime@cerno.tech, Nicolas Saenz Julienne , Rob Herring , Stefan Wahren , Catalin Marinas , Will Deacon Cc: Peter Robinson Subject: [PATCH v6 0/6] Raspberry PI 4 V3D enablement Date: Fri, 3 Jun 2022 10:26:04 +0100 Message-Id: <20220603092610.1909675-1-pbrobinson@gmail.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220603_022618_384503_94EF40F2 X-CRM114-Status: GOOD ( 13.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This is a follow up from my v4 patchset. The power management pieces have been split out to a separate independent set of patches by Stefan [1]. This version 5 of the DRM patches are independent and given the V3D driver has been upstream for some time the two patches to enable it in defconfigs can be taken at anytime independent of the enablement for the Raspberry Pi 4. I've tested this using mesa 22.0.x and Wayland/Gnome on Fedora 36, it's more or less stable with basic testing. Changes since v5: - Update the DT compatible to match the others that were updated - Adjust the Kconfig help text - Add review tags Changes since v4: - Fixes for device tree and bindings - Split out the power management changes into an independent set - Rebase to 5.18 - Individual changes in patches [1] https://www.spinics.net/lists/arm-kernel/msg980342.html Nicolas Saenz Julienne (1): arm64: config: Enable DRM_V3D Peter Robinson (5): dt-bindings: gpu: v3d: Add BCM2711's compatible drm/v3d: Get rid of pm code drm/v3d: Add support for bcm2711 ARM: dts: bcm2711: Enable V3D ARM: configs: Enable DRM_V3D .../devicetree/bindings/gpu/brcm,bcm-v3d.yaml | 1 + arch/arm/boot/dts/bcm2711-rpi.dtsi | 4 ++++ arch/arm/boot/dts/bcm2711.dtsi | 11 +++++++++++ arch/arm/configs/bcm2835_defconfig | 1 + arch/arm/configs/multi_v7_defconfig | 1 + arch/arm64/configs/defconfig | 1 + drivers/gpu/drm/v3d/Kconfig | 5 +++-- drivers/gpu/drm/v3d/v3d_debugfs.c | 18 +----------------- drivers/gpu/drm/v3d/v3d_drv.c | 12 +----------- drivers/gpu/drm/v3d/v3d_gem.c | 12 +----------- 10 files changed, 25 insertions(+), 41 deletions(-) Reviewed-by: Melissa Wen