Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp673556pxk; Wed, 16 Sep 2020 14:04:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNFQtCD0/MW56LYSQL5TTPdccM6PHpOcFF4S5bc6VRc+pu4zRuvlyIOEF0kdm1slWNFGQm X-Received: by 2002:a17:906:1b15:: with SMTP id o21mr26920045ejg.377.1600290264857; Wed, 16 Sep 2020 14:04:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600290264; cv=none; d=google.com; s=arc-20160816; b=oTlh4x+R6gpysFLcmQ7RPDw8SuqMQqD5qQCkzrICCvmw4reLsFw0ZFRDE5ouaKmVYh 8QNDp1b/nwByitV3mW0Hk9a1bQFOUdfUz8qoQnTn7C0Uh8xFX0Us/EXwBkDt6DAwWm1S mvPOvAcc3ifn7oawP6k+o7JLjAdd5PuqwshjCT/DwJHLtJ9lz4Ic+ztmdxEr70TfkDkP mOqAqf+EEnXhqlcffUY27cYAwLmxDLRFwNuPe2rB6hpVeXdntS8NNusEU6ID7Qse65JY cmbaJVK5HnH+LWv19+slhht9Iy+v/AneFl4HIK6Mj/EhEpAAIv8SAX+19tUo0NiDQqDv 6/ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=yvushcHgW5x8Ci13qV/eVljqWihhBxbnLqYrlJGnnQM=; b=eeyqQVseCUKKgnJKiWxc7yNvZhsJZzkzlC0xs/18s2mWLeFp5v5OFaKFJWARS/l3Rq WgjN0V7SfhoNtisINqULipTYfDWX10VwvOrm04AfCqS2io6r5y8Vd0bfS2h3jP5o7X2O +g/siZU20F9PM/UChtpT0qQZ+gAgJK9gbfD3rg1J8AX0em6icRCqj2Bqjn3tWB3Vqw/R TGiLxxPad9qh0ne6sJ78v4PjFSWOUuh4jLfEHYrx9VEiqXc4tOc0xmIl0aG9jp/SF9bO PknNCHQ3TdkXk8ZYkscGXU0M/FjT+PTgiR6763rFtS5hIIjlwGnAo7XykRo1YZJ/yjo/ 9/xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=aIi8RU3G; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i12si12990643eje.580.2020.09.16.14.04.01; Wed, 16 Sep 2020 14:04:24 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=aIi8RU3G; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726601AbgIPVBm (ORCPT + 99 others); Wed, 16 Sep 2020 17:01:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726384AbgIPQaY (ORCPT ); Wed, 16 Sep 2020 12:30:24 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4CCBC0D9432 for ; Wed, 16 Sep 2020 08:01:58 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id z4so7302697wrr.4 for ; Wed, 16 Sep 2020 08:01:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=yvushcHgW5x8Ci13qV/eVljqWihhBxbnLqYrlJGnnQM=; b=aIi8RU3GfifGkaYbMW1MYLTxAkS9nN6U2v50gcwQKZKksSLDZajirW7gQTn2LLnktm CyI0tpHPNTv19Qc5/cJj43pTaueffg0aGDYRumwLvKkRtOHUAMiREXV/heRedSuF6bWi NKtLgvbCgtSXb0fVCOqvyo4yoEHswt6g3uH95KDxuMtJ43vxcihOQoHgi+oi7fMYQmsp PORvN1HxIp9wQj9v8KwaJh/G4mvc4xhXRlymBrmVNwN6Dc1nER9V2ceAKr/nKyre1STa LxAQLCy9ECvJfm8GVhR8ZEAjgdg1Z7VDe2nYFT3HOojjlMjRmblgctWj9erSX2AImZ/6 y98Q== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=yvushcHgW5x8Ci13qV/eVljqWihhBxbnLqYrlJGnnQM=; b=askDR4ERSP9LI5qYF9TSEb3+dXeYr4KB+PquK1qMWG/GIvCu9ynHMQbjODXFNESzTr D312kgknj/QWp5tUoAois22oVI6ky7suJuh1qE+/n/qnlB21uHZ3hnW+srNfSEDjvG70 7+FRDUEzBlXbap7fnRCAkaWyWJhURn11s+d3QR2eauhAgRTnd3QckJ1TMHiU4LfPrUEc K5sMBXnWSjhLXvDUVXO5QvGbvR1ipYWKgdPspd5PzdV2Sd+w3ypc7syU/u8YrVsKRGRq F343fg2vfqqWlishO9Cjd2ak2ojBorn6xIvojvicpD83Zy7HYSHyuLK/BZJBKbwaPMzP lzgQ== X-Gm-Message-State: AOAM532F4YFqixwI+GvJ0n12VbPCKJXYzz+P8OBZ0TMrapvg0onG7G/Y v2N0eySu5xo3U7dFFjJEPJNgZg== X-Received: by 2002:adf:e292:: with SMTP id v18mr26961296wri.256.1600268517315; Wed, 16 Sep 2020 08:01:57 -0700 (PDT) Received: from bender.baylibre.local (home.beaume.starnux.net. [82.236.8.43]) by smtp.gmail.com with ESMTPSA id m3sm33275243wrs.83.2020.09.16.08.01.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Sep 2020 08:01:56 -0700 (PDT) From: Neil Armstrong To: robh@kernel.org, tomeu.vizoso@collabora.com, steven.price@arm.com, alyssa.rosenzweig@collabora.com Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, Neil Armstrong Subject: [PATCH v2 3/3] drm/panfrost: add Amlogic GPU integration quirks Date: Wed, 16 Sep 2020 17:01:47 +0200 Message-Id: <20200916150147.25753-4-narmstrong@baylibre.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20200916150147.25753-1-narmstrong@baylibre.com> References: <20200916150147.25753-1-narmstrong@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This adds the required GPU quirks, including the quirk in the PWR registers at the GPU reset time and the IOMMU quirk for shareability issues observed on G52 in Amlogic G12B SoCs. Signed-off-by: Neil Armstrong --- drivers/gpu/drm/panfrost/panfrost_drv.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/panfrost/panfrost_drv.c b/drivers/gpu/drm/panfrost/panfrost_drv.c index 7c8a87d164c3..6e5dedacb777 100644 --- a/drivers/gpu/drm/panfrost/panfrost_drv.c +++ b/drivers/gpu/drm/panfrost/panfrost_drv.c @@ -658,7 +658,18 @@ static const struct panfrost_compatible default_data = { .pm_domain_names = NULL, }; +static const struct panfrost_compatible amlogic_data = { + .num_supplies = ARRAY_SIZE(default_supplies), + .supply_names = default_supplies, + .vendor_quirk = panfrost_gpu_amlogic_quirk, +}; + static const struct of_device_id dt_match[] = { + /* Set first to probe before the generic compatibles */ + { .compatible = "amlogic,meson-gxm-mali", + .data = &amlogic_data, }, + { .compatible = "amlogic,meson-g12a-mali", + .data = &amlogic_data, }, { .compatible = "arm,mali-t604", .data = &default_data, }, { .compatible = "arm,mali-t624", .data = &default_data, }, { .compatible = "arm,mali-t628", .data = &default_data, }, -- 2.22.0