From patchwork Tue Sep 8 15:18:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 11763489 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4E00C618 for ; Tue, 8 Sep 2020 15:19:21 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1BDA0222E7 for ; Tue, 8 Sep 2020 15:19:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Z5SVLHq/"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="NJ62SxAY" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1BDA0222E7 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject: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=73OgOWZbxVFzKR5cIiQl6gTQmocIeROH5eiiS+4Y1sM=; b=Z5SVLHq/bUtLsaaoLyc7OAX+KD wBQml87VkiCy+i5WnpCmMxZ7nYBW0igHTMhrc8csx0JfcMOwv/jjErAg+VN7EWu20qNUd7OGKL56Q j3BJWKjbMv1lmo9YhD/N3+nsSReucytfSFe9G53/EBrjll+h6dYmk37LptuoJMlQEn51wsXy3Gpgs nt++CrYs8NrHMo7FySYTQ9Yd1MMT+o+oqIHVESKuOBo2qF/sVaGxqALyk/V8LekuRY+5LP9W+z9iH rUfJjSVtsBCOuxjKXg6Q/BIATlh5ErdeRtTbU5NVpTh8uWecZje3BiS/YLS67zq/YWZ0AtNE3oytU 9K7s9tTg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFfOi-0001RC-6c; Tue, 08 Sep 2020 15:19:04 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFfOc-0001On-VP for linux-arm-kernel@lists.infradead.org; Tue, 08 Sep 2020 15:19:00 +0000 Received: by mail-wr1-x442.google.com with SMTP id x14so19497415wrl.12 for ; Tue, 08 Sep 2020 08:18: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:mime-version :content-transfer-encoding; bh=3a/pKfNTcctsi5NMPeYXrn0Dqu/AbgV0+iD767DAkfk=; b=NJ62SxAYUNxu4wcmx23rzjC0yurPxVJ86uAMywAwLtKYtunOkXMT5kgoHOR/25NA2R vYdYurAJ1EX+InbHWiXPsmj6g8LHhZdY7XCo0ZHf00lyrl1axgUFNprhhjXOkQVwCp1f zXXOL8kxE/98FJDIfQqSuGGU0QFzRNrogY7xjpAQ3fzwnjP11rJwvTEBeU6GtDCZ2Zf+ 6GuYjQlqpzeRgOGSZ0RTUuzPde+Dgpfon7qdQFhPz7KpzO5ayMlKTLNyK9JmLeCF0RmS KrFS7MfiUwxJF0wm0vyb4kkKCVg0KEIPGStgaWElGD8vwcnf8tKdcBPFPNSg0DrTlyHR bmKQ== 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=3a/pKfNTcctsi5NMPeYXrn0Dqu/AbgV0+iD767DAkfk=; b=mJ1laybNm/XxO7KlbWkJ5eDUbBfjjPlyBFsPvbW+QiQ7/ChSpUDaL9F0zuyOEz/IfP ij+gLcwRtocQa5LCoDMZAUZWXOvGQrRBT23CvWGwkWPYbufQgve4k18VIN6YGK8/Zdob 8B4sHUgVjp2jVROx1Fxd9OVFH/WOYt3cbda5ij1g+WIqbA+vpAN5vudZDF9Q6OZxsA7S zDB8u3x8WzaxIbyknSf/D6rX3g9z8CZZKktgZHLqshrkrgdV3z84jTfOJLgUq2O6Rvih u7IMVY1ynwN/2oCUOsc6fEg1iTaC2j1rmky1poA0bJI7GfyxNOxcHh6m2SxNbttOpCkw yJrA== X-Gm-Message-State: AOAM532erVN4rAsRrANVM8Cf2j6zzGn23PCpz1WK6KKCRtcUy7fdyckN +WVGZtVZ77nGXzYmdHAU3WG5Jg== X-Google-Smtp-Source: ABdhPJxoedfun5a5jObY/rI/dRKE9z7QNbsGMa2l9zbVlFHBZ6rsBniEq+5NHWlHqnC9szuSHALYXg== X-Received: by 2002:a5d:684b:: with SMTP id o11mr137401wrw.101.1599578337783; Tue, 08 Sep 2020 08:18:57 -0700 (PDT) Received: from bender.baylibre.local ([2a01:e35:2ec0:82b0:5405:9623:e2f1:b2ac]) by smtp.gmail.com with ESMTPSA id d25sm10004886wra.25.2020.09.08.08.18.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 08:18:57 -0700 (PDT) From: Neil Armstrong To: robh@kernel.org, tomeu.vizoso@collabora.com, steven.price@arm.com, alyssa.rosenzweig@collabora.com Subject: [PATCH 0/5] drm/panfrost: add Amlogic integration quirks Date: Tue, 8 Sep 2020 17:18:48 +0200 Message-Id: <20200908151853.4837-1-narmstrong@baylibre.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200908_111859_197293_0DB1435D X-CRM114-Status: GOOD ( 12.31 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:442 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, Neil Armstrong , linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The T820, G31 & G52 GPUs integrated by Amlogic in the respective GXM, G12A/SM1 & G12B SoCs needs a quirk in the PWR registers at the GPU reset time. The coherency integration of the IOMMU in the Mali-G52 found in the Amlogic G12B SoCs is broken and leads to constant and random faults from the IOMMU. This serie adds the necessary quirks for the Amlogic integrated GPUs only. Neil Armstrong (5): iommu/io-pgtable-arm: Add BROKEN_NS quirk to disable shareability on ARM LPAE drm/panfrost: add support specifying pgtbl quirks drm/panfrost: add support for reset quirk drm/panfrost: add amlogic reset quirk callback drm/panfrost: add Amlogic GPU integration quirks drivers/gpu/drm/panfrost/panfrost_device.h | 6 ++++++ drivers/gpu/drm/panfrost/panfrost_drv.c | 18 ++++++++++++++++++ drivers/gpu/drm/panfrost/panfrost_gpu.c | 17 +++++++++++++++++ drivers/gpu/drm/panfrost/panfrost_gpu.h | 2 ++ drivers/gpu/drm/panfrost/panfrost_mmu.c | 1 + drivers/gpu/drm/panfrost/panfrost_regs.h | 3 +++ drivers/iommu/io-pgtable-arm.c | 7 ++++--- include/linux/io-pgtable.h | 4 ++++ 8 files changed, 55 insertions(+), 3 deletions(-)