From patchwork Wed Sep 16 15:01:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 11779833 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 BD67D746 for ; Wed, 16 Sep 2020 15:02:17 +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 8C0CD22454 for ; Wed, 16 Sep 2020 15:02:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="sbDecrwN"; 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="wijQmT9v" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8C0CD22454 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=tIsubmKHiMQI+PSwEEyOnqqyDg2qGMOeFCvF2w6ENxk=; b=sbDecrwNfP9kjNnsg9EmouAOoN hG3kfsbPdtYGhmKwzoL2BGsxo+XZru0QihXfKkpz9hod04H0ZKdqgMey/w+2n7Kw1oLUFxL0j5Vso oJfmQJeS6G6NGBezGJFTD9I5R7STLYJHg7x0ICB0LgumrMngcPn0SZF6Rv54ZdpCPHROYOWS0avUT Xg3xGj1mkOILgUBhay4stZeK3bvIbcINqPtk7FR100dcahtOMUgsmay0o45bnexC1fCnLrc1ozZ3b g0qAhSWk0RIoTOljypp4bab7Qdx7crSVxM6cpMPYa85v+dIL7qpZ9eXRL+npB1FvE3X/eC58Hn7Z+ 7V7qjpLQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIYwZ-0002tP-VB; Wed, 16 Sep 2020 15:02:00 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIYwU-0002qT-Ek for linux-arm-kernel@lists.infradead.org; Wed, 16 Sep 2020 15:01:55 +0000 Received: by mail-wr1-x443.google.com with SMTP id s12so7237047wrw.11 for ; Wed, 16 Sep 2020 08:01:53 -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=FIu707qF3XC1wFSQ0JUGDpXqJcRkuCHBFIGNuiyznGk=; b=wijQmT9vsB6ZR+aWtfyqwpoZM80cItkpJVGHdMlmCQTeVLozm9Yboz64+dfnBsTDcb AQ05GRsBvv1zgg0nM+bVTnixJiEzOdxwjzDEWmRryfrOMR6vKJyM7TlG5B44gUPpkhYB cKkzrNChnol0O+vHwKZWC3u3pSpHaY1ytGp+4nMeT2bttuoRS2JN0lmVucAKbZ9mIDK9 5lJJE0y6YIa/olkfyVVqXwQzQfCSyRzHaXYhTbRiYSQ1yT9l9KlUiYWgrq5vFr9bh4wr XmtQyuq7zY7Y59xieNCJKTY0ID76DPAvj4pRWxeyxFu1LbPWGBhJXQXR/0llRYDZiEuq 5SSA== 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=FIu707qF3XC1wFSQ0JUGDpXqJcRkuCHBFIGNuiyznGk=; b=lcrvQeKUTQbKqqJcmaOPeSKqRV/akzBugdtPYBmJudMbETFORGBdrQJ2oFWS2l3K2l Df/rQIAymuj1k56mTmYTcEIAG+oA/pql+VeKYUUIqt37Bkcn2LpW8U6LoWK4gOAvp6iY Z99U3ljUiAHJAoy/F6bfUjVpaw+Zn8L7wBJlXODr81zT4BLG00S/c8Ft8ll7BEMbJZlN pLvNHC7ijWqlL13VHEooxRdpk7FdcARt+ZuIAcQ9yTpWC25UcNkEbHxCQENzwYjWNbJs SDMT1vod33e0wKjbI6xf+bcW7XxZS31IrvIIR6xhQpEBnCHcoGUar5G4NkvtyStLIYb8 qtSw== X-Gm-Message-State: AOAM530iDif8TinI0P6UPKHVISR3ERW7QLynHVCXupMwu8buOKaMykUf PT7QDvA2iE9Yxctq4Drln+3nB0Vd2uDyuuGU X-Google-Smtp-Source: ABdhPJx8Y/UqOEW6k23Aim2WVavTxhbpjN+oKkic+uEsOX4V6GEuQI6WasgaF8S7gi1dWVdYZ6QyyQ== X-Received: by 2002:adf:9e41:: with SMTP id v1mr29697264wre.60.1600268512806; Wed, 16 Sep 2020 08:01:52 -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.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Sep 2020 08:01:51 -0700 (PDT) From: Neil Armstrong To: robh@kernel.org, tomeu.vizoso@collabora.com, steven.price@arm.com, alyssa.rosenzweig@collabora.com Subject: [PATCH v2 0/3] drm/panfrost: add Amlogic integration quirks Date: Wed, 16 Sep 2020 17:01:44 +0200 Message-Id: <20200916150147.25753-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-20200916_110154_584719_B9521AE7 X-CRM114-Status: GOOD ( 11.90 ) 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:443 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_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 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. This serie adds the necessary quirks for the Amlogic integrated GPUs only. Changes since v1 at [1]: - removed the BROKEN_SH quirk after [2] was sent by robin - rebased on top of [3] by steven and moved the vendor quirk in the proper quirk function - added PWR_KEY unlock definition, and cleaned definition [1] https://lkml.kernel.org/r/20200908151853.4837-1-narmstrong@baylibre.com [2] https://lkml.kernel.org/r/cover.1600213517.git.robin.murphy@arm.com [3] https://lkml.kernel.org/r/20200909122957.51667-1-steven.price@arm.com Neil Armstrong (3): drm/panfrost: add support for vendor quirk drm/panfrost: add amlogic reset quirk callback drm/panfrost: add Amlogic GPU integration quirks drivers/gpu/drm/panfrost/panfrost_device.h | 3 +++ drivers/gpu/drm/panfrost/panfrost_drv.c | 11 +++++++++++ drivers/gpu/drm/panfrost/panfrost_gpu.c | 15 +++++++++++++++ drivers/gpu/drm/panfrost/panfrost_gpu.h | 2 ++ drivers/gpu/drm/panfrost/panfrost_regs.h | 4 ++++ 5 files changed, 35 insertions(+)