From patchwork Fri May 22 22:03:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jordan Crouse X-Patchwork-Id: 11566217 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 BDDE960D for ; Fri, 22 May 2020 22:03:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9E51C207D8 for ; Fri, 22 May 2020 22:03:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=mg.codeaurora.org header.i=@mg.codeaurora.org header.b="H1b1WGLO" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731083AbgEVWD3 (ORCPT ); Fri, 22 May 2020 18:03:29 -0400 Received: from mail26.static.mailgun.info ([104.130.122.26]:12369 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731069AbgEVWD2 (ORCPT ); Fri, 22 May 2020 18:03:28 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1590185007; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=sPrW0uvNk4DDK2vxmKxD2uDng1FDnCD3zI4QzTTTBjc=; b=H1b1WGLO4lSlAQsKiD3olMsdYHMDk0QvJpQBJDcmPcqACnTlTIQsEQpoAS7D4SyqhBF0z8BD QLdFgu9Koa0hix87JfOOlClnRfr4to6fNlilqYCZYViMO80ZpheBbBAROA3bWYTeL4WSPgIF A/7gSuLkudaQT/7tPV4G9erBhdw= X-Mailgun-Sending-Ip: 104.130.122.26 X-Mailgun-Sid: WyI1MzIzYiIsICJsaW51eC1hcm0tbXNtQHZnZXIua2VybmVsLm9yZyIsICJiZTllNGEiXQ== 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-east-1.postgun.com with SMTP id 5ec84c2f40528fe39446ddab (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 22 May 2020 22:03:27 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 0640FC43449; Fri, 22 May 2020 22:03:24 +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=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from jordan-laptop.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jcrouse) by smtp.codeaurora.org (Postfix) with ESMTPSA id E4CC9C433C6; Fri, 22 May 2020 22:03:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org E4CC9C433C6 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=none smtp.mailfrom=jcrouse@codeaurora.org From: Jordan Crouse To: linux-arm-msm@vger.kernel.org Cc: Akhil P Oommen , Alexios Zavras , Allison Randal , AngeloGioacchino Del Regno , Ben Dooks , Bjorn Andersson , Brian Masney , Daniel Vetter , David Airlie , Drew Davenport , Enrico Weigelt , Eric Anholt , Georgi Djakov , Greg Kroah-Hartman , Jeffrey Hugo , Jonathan Marek , Kalyan Thota , Konrad Dybcio , Rob Clark , Sam Ravnborg , Sean Paul , Sharat Masetty , Shawn Guo , Takashi Iwai , Thomas Gleixner , Thomas Zimmermann , Wambui Karuga , dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, tongtiangen , zhengbin Subject: [PATCH v1 0/3] drm/msm: Cleanups ahead of per-instance pagetables Date: Fri, 22 May 2020 16:03:13 -0600 Message-Id: <20200522220316.23772-1-jcrouse@codeaurora.org> X-Mailer: git-send-email 2.17.1 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org These are three cleanup and reorganization patches that were originally part of one of my many per-instance pagetable stacks [1] [2] but make life better in general and can stand on their own. Send them now to get them out of my other stack and make that processs ever so easier. [1] https://patchwork.kernel.org/patch/11355255/ [2] https://patchwork.kernel.org/patch/11355259/ Jordan Crouse (3): drm/msm: Attach the IOMMU device during initialization drm/msm: Refactor address space initialization drm/msm: Update the MMU helper function APIs drivers/gpu/drm/msm/adreno/a2xx_gpu.c | 16 ++++++++ drivers/gpu/drm/msm/adreno/a3xx_gpu.c | 1 + drivers/gpu/drm/msm/adreno/a4xx_gpu.c | 1 + drivers/gpu/drm/msm/adreno/a5xx_gpu.c | 1 + drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 1 + drivers/gpu/drm/msm/adreno/adreno_gpu.c | 23 ++++++++--- drivers/gpu/drm/msm/adreno/adreno_gpu.h | 8 ++++ drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 18 +++------ drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c | 18 ++++----- drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c | 4 -- drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c | 18 ++++----- drivers/gpu/drm/msm/msm_drv.h | 8 +--- drivers/gpu/drm/msm/msm_gem_vma.c | 36 +++-------------- drivers/gpu/drm/msm/msm_gpu.c | 49 +----------------------- drivers/gpu/drm/msm/msm_gpu.h | 4 +- drivers/gpu/drm/msm/msm_gpummu.c | 10 +---- drivers/gpu/drm/msm/msm_iommu.c | 15 ++++++-- drivers/gpu/drm/msm/msm_mmu.h | 5 +-- 18 files changed, 95 insertions(+), 141 deletions(-) Tested-by: Shawn Guo