Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp394978pxx; Wed, 28 Oct 2020 07:24:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgQSVltg6AV0pjqfnsOQF0h+3i0mNPuhQZb1emlvBJM+0UTi7/Ba3puJsh1+5oayRajVTJ X-Received: by 2002:a05:6402:17e4:: with SMTP id t4mr8184379edy.118.1603895068735; Wed, 28 Oct 2020 07:24:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603895068; cv=none; d=google.com; s=arc-20160816; b=j2wufCZ1o1TOz01IdgPP9ilBo0/n3/8W05FMq9Bf6K/g38Ddx+N/13q8vTnXD5aMkV 9MG7QqLEDsazHyrpc0zH5DRexq34f4STHs38A8+9ntUaf3VreuYyOuPbe9rac1jw/DT4 ujgAU7FyD9GZ1uruVRsHWUHd6Vk9y6F25TznOjZixNBdS+yehC/NKYJfPxIwhEUdRXsB 9+m8rUI/AaVUbETYEoEFJKE4F4hHeZF+3Bq2mpaFZmOxYUex+5uhdcHFSNQ7dWFKSqPL PExbAr4uMyLOQ3oTJsjEIMLWI8roFO3s+Cu8pqU8Z2nd8P5apNRI2KEQIYA7g9wLtjnA XsSw== 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=qHov/2OyfFIlQS1hg9mIHhL3mkpQYEySf0VRJsCKkkQ=; b=vglQyEIWFNPfW0DIjckEc5xpGxKFS9zkL8rpr16TTltpS3nJePtlVGPCg9su364oQM Oq42VFqO020uFlivYctJwUCdI068vYNh0Yqa2yIoR1Xdb/b4y/FoRSrY/vjuIruOYarA 7DUwvwWrBUiz9M5DNeI27cReErvJgr9j2lMlrA/+fhx+0yD53dqTENYeIWAemCXMgDit /1OuSWL4uYir3ecxf/874hl9W/Wu5ltxpHGfZ6bDG0w0BbepUnKetL3WU3voR+NELeif T6iA9Ejop54oe84akBt2M4dr6nG7Z46DvvfX1WJJ8tl+EmCxcwv890ijonHEDut9C7UR WpJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qFy1GS+X; 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=fail (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 f19si2736409edx.542.2020.10.28.07.24.06; Wed, 28 Oct 2020 07:24:28 -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=@kernel.org header.s=default header.b=qFy1GS+X; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1805598AbgJ0QA5 (ORCPT + 99 others); Tue, 27 Oct 2020 12:00:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:52132 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1795199AbgJ0PPJ (ORCPT ); Tue, 27 Oct 2020 11:15:09 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 239A521D41; Tue, 27 Oct 2020 15:15:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603811707; bh=ntGs+necpS3D8VcETvW96bdW1Z+vD8P3JvUYLYzXTpQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qFy1GS+XsMSWBqI/tW7Z3zmiVaLuSJosyRaQ2YzU3ded06XVbHO6F4MsCDYRDdU1f 2pUqqpRWTSiyi6IMVPuL/TUWKUAq35DON2RGuU9uW2Fyui4IjPlhWXSJpRXhcnI6NJ VU4ujXD8ZFGALA8LBRXeCjyvvocoebZSjTRLFklU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Neil Armstrong , Steven Price , Alyssa Rosenzweig , Sasha Levin Subject: [PATCH 5.8 581/633] drm/panfrost: add Amlogic GPU integration quirks Date: Tue, 27 Oct 2020 14:55:24 +0100 Message-Id: <20201027135550.067439338@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@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: Neil Armstrong [ Upstream commit afcd0c7d3d4c22afc8befcfc906db6ce3058d3ee ] 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 Reviewed-by: Steven Price Reviewed-by: Alyssa Rosenzweig Signed-off-by: Steven Price Link: https://patchwork.freedesktop.org/patch/msgid/20200916150147.25753-4-narmstrong@baylibre.com Signed-off-by: Sasha Levin --- 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 882fecc33fdb1..6e11a73e81aa3 100644 --- a/drivers/gpu/drm/panfrost/panfrost_drv.c +++ b/drivers/gpu/drm/panfrost/panfrost_drv.c @@ -667,7 +667,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.25.1