From patchwork Tue Nov 27 23:58:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeykumar Sankaran X-Patchwork-Id: 10701649 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 CAC6C13AD for ; Tue, 27 Nov 2018 23:58:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B11CE2B626 for ; Tue, 27 Nov 2018 23:58:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A44C22B94D; Tue, 27 Nov 2018 23:58:21 +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 518532B626 for ; Tue, 27 Nov 2018 23:58:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726500AbeK1K5y (ORCPT ); Wed, 28 Nov 2018 05:57:54 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:39640 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726370AbeK1K5y (ORCPT ); Wed, 28 Nov 2018 05:57:54 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 59FE060B1E; Tue, 27 Nov 2018 23:58:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1543363099; bh=o+SOBdrqohvaGOVvpXRpYAIr8EBYEzy0+M2NSzAzsXI=; h=From:To:Cc:Subject:Date:From; b=QxS3Dem0O5vXoOy3HeIC25fYtQuJMI4ivUTg8Ym0y+7bdY6DHlnpqzfebICRQLQjI yZrCEMNYj3z5s7E69mfogQfyLBRydE68IfZ4zF3r9CKpPfriyojIcRjU85N64OtyDY 0VbiuChk00xzdqWjwiDCUlMU8IqPOeHzIDCab9hI= Received: from jeykumar-linux.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: jsanka@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 6117660722; Tue, 27 Nov 2018 23:58:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1543363098; bh=o+SOBdrqohvaGOVvpXRpYAIr8EBYEzy0+M2NSzAzsXI=; h=From:To:Cc:Subject:Date:From; b=KFfSdL8Lq57mhGQC0jnnV3be188P94WssYDK0Pa4dNQlmpoCR9BCXsLfz3Z6MvXwQ pJCoRT5wyjubhKfgiErbKtkJpP7LXmSyrB2KRl76cLO2StQINQLw+KZ33f3HdQipos mGzOWGTavREIs1KdBlg8k3Gte0VWobfATjpnBHJc= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 6117660722 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=jsanka@codeaurora.org From: Jeykumar Sankaran To: dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org Cc: Jeykumar Sankaran , seanpaul@chromium.org, robdclark@gmail.com, hoegsberg@google.com, jcrouse@codeaurora.org, vivek.gautam@codeaurora.org, dianders@chromium.org Subject: [PATCH] drm/msm/dpu: set geometry for iommu domain Date: Tue, 27 Nov 2018 15:58:13 -0800 Message-Id: <1543363093-19169-1-git-send-email-jsanka@codeaurora.org> X-Mailer: git-send-email 1.9.1 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 Specify geometry for DPU iommu domain which sets the address space for gem allocations. Signed-off-by: Jeykumar Sankaran Suggested-by: Jordan Crouse Suggested-by: Vivek Gautam Acked-by: Jordan Crouse --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c index 7d931ae..efceddf1 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c @@ -823,6 +823,9 @@ static int _dpu_kms_mmu_init(struct dpu_kms *dpu_kms) if (!domain) return 0; + domain->geometry.aperture_start = 0x1000; + domain->geometry.aperture_end = 0xffffffff; + aspace = msm_gem_address_space_create(dpu_kms->dev->dev, domain, "dpu1"); if (IS_ERR(aspace)) {