Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp141485pxu; Thu, 7 Jan 2021 00:29:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJxX265jfwnV+8k2Qx9E/bNXjRy+eTtmXZ6ZkMpSQmG2ao6O60FA2nSARKZKLTOxJWM2MTxq X-Received: by 2002:a17:906:3b56:: with SMTP id h22mr5275977ejf.491.1610008184564; Thu, 07 Jan 2021 00:29:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610008184; cv=none; d=google.com; s=arc-20160816; b=ljmXpAIsTWJh4N3/kScyPUWPXuBc6D5vpAyqBhwomkBQrVKTYrw2KT+Rszk4qgNOAA zbdSjib5Y4+Vo8Q9VUIZyUFxyfM+OO6M7GTq7y0QugdqQhYMNQsmSZeP6IHPhFClvrxn bgZ4TGTuvaV7VYxd3xJ9om/grl+7LF6dO6C39MzA9v3S8v3CcSLKfvfBDVd4+M+sntsq 70WAf00TUpsup7sxZlwEwUB5f41GWFSSBU9GvZMgiH9IZueq6dTzak0s0lRqanSDIeWb EM2uCRRzUa39iXct9+6SDDZOPRMBBiznqFczDPPAZB04KxgVWrvzrhykfGLE4Su8yAMz RF9Q== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=TEpfUC6SSuCT9kZJdE2Ig06/CQbJ0RWivjJUsV8Lfw4=; b=IR/ddb2rnk6visA979RABA9sPy7ulgGq/BZMkhFqx+25UHJcC9jZuDyJj23CLJgYAN LlRE7jTPmS85yu8IhBQ1v3TeumtVFXI0eqVD7xvKm/fD4d7MRUWREp+88Cq0GvXOXoJJ UkA+moiI2O5/SVzRJ4yb/YPEUCvwXFGj6mIMp7yVoU3HcuuYm4+HA00gU9qyUPFFM2pP b88WwOUR41ggbakoAA4anOVPQ7XAbiVFI5Hd8n5g4efLwIQAeDtoQOHVzIq2Z9UGsE6f MN8++z6I8EgCycFpo/o+ZCdewLX25e3zArTvMqPl07IhKJaStoIcFm+j3cS3dEiZx9jC gylQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=keJrF5bJ; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bu26si1925331edb.284.2021.01.07.00.29.21; Thu, 07 Jan 2021 00:29:44 -0800 (PST) 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=@chromium.org header.s=google header.b=keJrF5bJ; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726371AbhAGI1p (ORCPT + 99 others); Thu, 7 Jan 2021 03:27:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725983AbhAGI1o (ORCPT ); Thu, 7 Jan 2021 03:27:44 -0500 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E2B2C0612F5 for ; Thu, 7 Jan 2021 00:27:04 -0800 (PST) Received: by mail-pg1-x52c.google.com with SMTP id v19so4318389pgj.12 for ; Thu, 07 Jan 2021 00:27:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TEpfUC6SSuCT9kZJdE2Ig06/CQbJ0RWivjJUsV8Lfw4=; b=keJrF5bJ/TAruJLytWQ5e4qbzCcZE4wqWogRJhz9KK6RehvGdGP37siDsg8IROV5ue GWOoANiKd1b7dVNcfN9sLFf6eJHhOe/SNYlei2d3rapZBNLYd3IBPZFeq3zf52VcYW8J AMiVHEC29PKd/bWG1EpaOPVzUURnMOPHKNj5M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TEpfUC6SSuCT9kZJdE2Ig06/CQbJ0RWivjJUsV8Lfw4=; b=LRg5h0PSy+AZRLteYSGnd9hVwXQIpaCbkFtU6NNybMidwpwNL8PmA75oArUFXUpZFY oizzhICNnKKJaG55RuzCFwUFfCaY9zCdoMQjuMPvk7Xh3dk7ganTlKmjDgbVt46G3LMY u4QlDUtS7uKGBj1IWnUpV91IO3r+8YniaVJJKEcTm1mZ00FMv9DkHiy4grpI/pw/MYNZ k8HbZzQN0ISSlmQkEV+NJGbsKUrzE8pTKSEPTvK1pWDHNDt6SGoVzESaYI0RwvUWXGfk nMLDyof0gR2TgnRVUQ2Q7MOUn9Tter1SBeAMMYXODpEOLj2EDWUh1U2Kd3hxgUzhPZYJ YIHw== X-Gm-Message-State: AOAM5310k0S2KeYZcIGYQpUYIEWmLoMg5eq95XI+mcxi8LdZLyMicOyO H2F+FY/IQIzjXwrYIar2WuGfNQ== X-Received: by 2002:a63:e151:: with SMTP id h17mr775830pgk.120.1610008023863; Thu, 07 Jan 2021 00:27:03 -0800 (PST) Received: from drinkcat2.tpe.corp.google.com ([2401:fa00:1:b:7220:84ff:fe09:41dc]) by smtp.gmail.com with ESMTPSA id o14sm5825580pgr.44.2021.01.07.00.27.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jan 2021 00:27:03 -0800 (PST) From: Nicolas Boichat To: Rob Herring , Steven Price , Alyssa Rosenzweig Cc: hoegsberg@chromium.org, fshao@chromium.org, hsinyi@chromium.org, boris.brezillon@collabora.com, Nicolas Boichat , Daniel Vetter , David Airlie , Matthias Brugger , Rob Herring , Tomeu Vizoso , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH v7 0/4] drm/panfrost: Add support for mt8183 GPU Date: Thu, 7 Jan 2021 16:26:49 +0800 Message-Id: <20210107082653.3519337-1-drinkcat@chromium.org> X-Mailer: git-send-email 2.29.2.729.g45daf8777d-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! Follow-up on the v5 [1], things have gotten significantly better in the last 9 months, thanks to the efforts on Bifrost support by the Collabora team (and probably others I'm not aware of). I've been testing this series on a MT8183/kukui device, with a chromeos-5.10 kernel [2], and got basic Chromium OS UI up with mesa 20.3.2 (lots of artifacts though). devfreq is currently not supported, as we'll need: - Clock core support for switching the GPU core clock (see 2/4). - Platform-specific handling of the 2-regulator (see 3/4). Since the latter is easy to detect, patch 3/4 just disables devfreq if the more than one regulator is specified in the compatible matching table. [1] https://patchwork.kernel.org/project/linux-mediatek/cover/20200306041345.259332-1-drinkcat@chromium.org/ [2] https://crrev.com/c/2608070 Changes in v7: - Fix GPU ID in commit message Changes in v6: - Rebased, actually tested with recent mesa driver. Nicolas Boichat (4): dt-bindings: gpu: mali-bifrost: Add Mediatek MT8183 arm64: dts: mt8183: Add node for the Mali GPU drm/panfrost: devfreq: Disable devfreq when num_supplies > 1 drm/panfrost: Add mt8183-mali compatible string .../bindings/gpu/arm,mali-bifrost.yaml | 25 +++++ arch/arm64/boot/dts/mediatek/mt8183-evb.dts | 6 + .../arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 6 + arch/arm64/boot/dts/mediatek/mt8183.dtsi | 105 ++++++++++++++++++ drivers/gpu/drm/panfrost/panfrost_devfreq.c | 9 ++ drivers/gpu/drm/panfrost/panfrost_drv.c | 10 ++ 6 files changed, 161 insertions(+) -- 2.29.2.729.g45daf8777d-goog