Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6370211pxv; Thu, 29 Jul 2021 12:53:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOICzwo6+I/MePDyLoIBkirbpXqhPmg5s61QVxYysIYC69uSya9pLhVcQjDzHNSNITSYae X-Received: by 2002:a02:a1c8:: with SMTP id o8mr5751126jah.50.1627588392928; Thu, 29 Jul 2021 12:53:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627588392; cv=none; d=google.com; s=arc-20160816; b=EA6c65lYHgn5P3kdlBg7YqxsDrr1dRFG+AywfN3FhBe3OtXDzC9u04Y5bq+SHGpktC C1WjEhkAgLauF4N4oBaO+FZDXM8ULq86DZoeOTohakgN0rqB4wmvoeDwzmzOk3fAA6ZK srI3R5sbjzlxqc9jgNVZCUUBWKN02T7kPKQJ2+Iurp7fpM9+frWpfqer9VXX/SwjQBKe qlc13mrWqKEjXX56m1661EJ1lkbDGeSh1ZYiJ3WeDPH1znBUIx4kBOxDijAS/UpHp/j7 Y6+b3/aMMXEKTcBnHvIR5hNIQ810hpCLEwFSDsPRde9Jr/bwSGT91ditrnldbwndmAjV 9yhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from:dmarc-filter :sender:dkim-signature; bh=iM1KdIaqnabu/y7ApCsLdG5yOlR2tEATwMcy7eTsEI0=; b=MJDtBuzZyamvtBDJM1CurXfpuP2ZUkkEoMSbSR+T+Yt6Y2bpuZlX8iaQsMnJ/0Am4s zdQ7gTJKNvUUNNlK2gbx+4++u2MYYPArbUS3bu2U8qkk4E8F5s3eyfjTKra86k+oLrwE pLkFJ1i2UjFlUuVxE+5lRu8ZireHeVsGkuqdQjv6U9XDcmUGTLi06MveN53nv3kvvc4m JDc9lwyD6404ZmYPLHnhtcN8+QkO1GPzS6fkjUt9cLWolpzx8tOmOlzMcw+HDS1zB13T fhlN8cN2n5OtUyC8SJgVfZcYqu5ZeZUKnZoJNXAuAtBBlG8I4ujTXQb10McMPVNuewx2 v0BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=GcBEbYPs; 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 j8si4275568ilq.125.2021.07.29.12.53.01; Thu, 29 Jul 2021 12:53:12 -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=@mg.codeaurora.org header.s=smtp header.b=GcBEbYPs; 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 S232346AbhG2TwB (ORCPT + 99 others); Thu, 29 Jul 2021 15:52:01 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:38105 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229606AbhG2TwA (ORCPT ); Thu, 29 Jul 2021 15:52:00 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1627588317; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=iM1KdIaqnabu/y7ApCsLdG5yOlR2tEATwMcy7eTsEI0=; b=GcBEbYPs6mAR9ZzfPySAW96dMNrgCf/1GWl+u3ROxJ4Wr9jzfuB/Xkff1upJcmIuvkq5tG2e MpPVjJ4PJlnzFKPCPJ8IIN25ijpFq3ZYnmMEGnkWAefP7WfdtzlCELO+ok6MIg9w7AZHltl3 PMKSwebW/d6EBFmw5dflsBOUm6w= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n03.prod.us-west-2.postgun.com with SMTP id 610306ca96a66e66b2d71a81 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 29 Jul 2021 19:51:38 GMT Sender: akhilpo=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 377E8C43151; Thu, 29 Jul 2021 19:51:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from hyd-lnxbld559.qualcomm.com (unknown [202.46.22.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: akhilpo) by smtp.codeaurora.org (Postfix) with ESMTPSA id 44EE7C4338A; Thu, 29 Jul 2021 19:51:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 44EE7C4338A Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=akhilpo@codeaurora.org From: Akhil P Oommen To: freedreno , dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, Rob Clark Cc: Douglas Anderson , Matthias Kaehlcke , Jordan Crouse , Jonathan Marek , AngeloGioacchino Del Regno , Bjorn Andersson , Daniel Vetter , David Airlie , Eric Anholt , Iskren Chernev , Konrad Dybcio , Sai Prakash Ranjan , Sean Paul , Sharat Masetty , linux-kernel@vger.kernel.org Subject: [PATCH v4 0/3] Support Adreno 7c Gen 3 gpu Date: Fri, 30 Jul 2021 01:21:22 +0530 Message-Id: <1627588286-30520-1-git-send-email-akhilpo@codeaurora.org> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds support for the gpu found in the Snapdragon 7c Gen 3 compute platform. This gpu is similar to the exisiting a660 gpu with minor delta in the programing sequence. As the Adreno GPUs are moving away from a numeric chipid based naming scheme to a string, it was decided to use 0x06030500 as the chip id of this gpu to communicate to the userspace driver. Changes in v4: - Move adreno_cmp_rev() to patch-2/3 to fix compilation - Minor updates to commit msg (Rob) Changes in v3: - Add a cover letter. Changes in v2: - Use rev to identify SKU - Introduce adreno_is_a660_family() (Rob) - Remove revn for 7c3 (Rob) - Remove CPR register programing since they are not required for 7c3 Akhil P Oommen (3): drm/msm/a6xx: Fix llcc configuration for a660 gpu drm/msm/a6xx: Use rev to identify SKU drm/msm/a6xx: Add support for Adreno 7c Gen 3 gpu drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 8 ++- drivers/gpu/drm/msm/adreno/a6xx_gmu.h | 1 + drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 87 ++++++++++++++++++------------ drivers/gpu/drm/msm/adreno/a6xx_hfi.c | 32 +++++++++++ drivers/gpu/drm/msm/adreno/adreno_device.c | 27 +++++++--- drivers/gpu/drm/msm/adreno/adreno_gpu.h | 18 ++++++- 6 files changed, 129 insertions(+), 44 deletions(-) -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation.