From patchwork Tue Mar 12 18:13:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jordan Crouse X-Patchwork-Id: 10849779 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ABAEB6C2 for ; Tue, 12 Mar 2019 18:14:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 953F728D01 for ; Tue, 12 Mar 2019 18:14:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 86820296B7; Tue, 12 Mar 2019 18:14:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2C87328D01 for ; Tue, 12 Mar 2019 18:14:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726994AbfCLSOY (ORCPT ); Tue, 12 Mar 2019 14:14:24 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:58650 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727264AbfCLSOU (ORCPT ); Tue, 12 Mar 2019 14:14:20 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id E369E61CC5; Tue, 12 Mar 2019 18:14:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1552414459; bh=gvKE9Gn+LhYE/7yYVNegmkYny91RgmV05gJf1qgucNE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H5wjMcJy5L1y83PIgcewZsYueakIHdX59s4NT1wfcvfuTb/TciBlp3UbQIoafzW+e Dl92YBM7bFbfAsYxY8UIDry+HnNGW0gkMGIjz0BIpe1Tu7m0+IxKjYj0G3EKc7yN5h D+kIraIe68YSeBAipJem57SkQON7+RrcIArcbZ7c= Received: from jcrouse1-lnx.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jcrouse@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 7FD25619CF; Tue, 12 Mar 2019 18:14:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1552414454; bh=gvKE9Gn+LhYE/7yYVNegmkYny91RgmV05gJf1qgucNE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mHJxj16DmYG2hRI9zUupVB+e8ZIfVTNGAcc7Jl4MHlCEUvD4gl2mhfA0VaBXe056W 7ou3JlkR0suuR4m9yS3IQXehhS+pDj5y8OUNgfdH3j+vtTZrL6qX8kKDECvXRCS4A5 w8T44+KCih6Q/MfexT85ag88KhWIkJyFR/adS69M= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 7FD25619CF Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=jcrouse@codeaurora.org From: Jordan Crouse To: freedreno@lists.freedesktop.org Cc: Bjorn Andersson , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Gross , Rob Herring , David Brown , Mark Rutland Subject: [PATCH v1 4/4] arm64: dts: sdm845: Add zap shader region for GPU Date: Tue, 12 Mar 2019 12:13:42 -0600 Message-Id: <1552414422-9568-5-git-send-email-jcrouse@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1552414422-9568-1-git-send-email-jcrouse@codeaurora.org> References: <1552414422-9568-1-git-send-email-jcrouse@codeaurora.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Some Adreno GPU targets require a special zap shader to bring the GPU out of secure mode. Define a region to allocate and store the zap shader. Signed-off-by: Jordan Crouse --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index fed7a29..526456d 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -100,6 +100,11 @@ no-map; }; + zap_shader_region: memory@8c415000 { + reg = <0 0x8c415000 0 0x2000>; + no-map; + }; + mpss_region: memory@8e000000 { reg = <0 0x8e000000 0 0x7800000>; no-map; @@ -109,6 +114,8 @@ reg = <0 0x96500000 0 0x200000>; no-map; }; + + }; cpus { @@ -1514,6 +1521,10 @@ qcom,gmu = <&gmu>; + zap-shader { + memory-region = <&zap_shader_region>; + }; + gpu_opp_table: opp-table { compatible = "operating-points-v2";