Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2889494ybt; Mon, 22 Jun 2020 09:28:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYZ0hZB7aAp8B4OxHSuco06hpgrpiKRhddR/YDTn5HzpQHDu9t3Qp5BB8WO4r7pifyzKW1 X-Received: by 2002:a05:6402:31b8:: with SMTP id dj24mr12384782edb.188.1592843322516; Mon, 22 Jun 2020 09:28:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592843322; cv=none; d=google.com; s=arc-20160816; b=RbZijOhBaSFLI/CJE7J8rRpf/P8bmHmAS+uK0yXbS0Ob+5izD15jTOuXwVFI4pW0RA 78cTF3HoQQn4hcvTWUq5VmiBfLPySbw11XdhaBeqXMKbKgvH+pWAAKgIUrbptsDzLUUe hIyzlT+hM9lnunGJOb4yJw6bE1A+dkcdJ6y84UPaQTFy6SGHu6j2wRVu41cUba0J36Wp OSFD/jAIJxkVw6KRtp6fPs2D1YJWV6A/Pfn/aO2aDs42dFLesHAImS7udsr3taF1xVrc EONsg6aKAlbsqviVKIf2vVEcXU3sGbQgsucFMuSbQsK0cy/FGMwjNlbd7wygHwr/uRhl ViLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dmarc-filter:dkim-signature; bh=B8MkbA73HBcHUgVuuaeIgAVxKFah+m4d+ECDIS3Ed+0=; b=Xd+oui3pmJ/XBxztFubDqdnbmQZlQs44hQaj7Kig/Rz2UMQ7oDhi2ZKVdaefSBbMtG h1UDUV/xHD1pRM2+WHBa/F3CCiFUZt2x6by/MP0oQO0m+E5hkSOq1A2YqeNan1CkllpS yccwmX/85bY7ieVgFYktqjkxIFOcbRiW3iTTshXJHj/6ig1aM52QUPLz8scTS2uhfieb Lpgc/y9gF68olWXU+b2V0vUDPOS6VNOaxM2Kyder7gIRxCblOQoKREGvJldKGwRD8KPp b+SHcnUcZ2nwMOemucwq3dMTOWAVbayGzgWqRiTbU/b6WCK1sB2OGGsFDyRxifmK0yTI raYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=CCc+uidL; 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 n9si9720446ejz.644.2020.06.22.09.28.19; Mon, 22 Jun 2020 09:28:42 -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=fail header.i=@mg.codeaurora.org header.s=smtp header.b=CCc+uidL; 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 S1729655AbgFVQ0Q (ORCPT + 99 others); Mon, 22 Jun 2020 12:26:16 -0400 Received: from mail29.static.mailgun.info ([104.130.122.29]:18990 "EHLO mail29.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729621AbgFVQ0P (ORCPT ); Mon, 22 Jun 2020 12:26:15 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1592843175; h=In-Reply-To: Content-Type: MIME-Version: References: Message-ID: Subject: Cc: To: From: Date: Sender; bh=B8MkbA73HBcHUgVuuaeIgAVxKFah+m4d+ECDIS3Ed+0=; b=CCc+uidLqLM47nHpZA1zYfrL94cUG8hbFJz5ugyILhO1OKjoxpUygkE9FG0tZJe0CSiiSAtn g9bd7ByDX30x2M0aWFHwydFtql0s/nekK5+e5IkMaxbZPFNJi76lUIuIp+JsZOfkR6kuc19J emgdr4mjeMcb04zl8GluBZqazYc= X-Mailgun-Sending-Ip: 104.130.122.29 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-n08.prod.us-east-1.postgun.com with SMTP id 5ef0db98bfb34e631c46a28d (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 22 Jun 2020 16:26:00 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id AB0C6C433C8; Mon, 22 Jun 2020 16:25:59 +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 jcrouse1-lnx.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (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 57767C433C6; Mon, 22 Jun 2020 16:25:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 57767C433C6 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 Date: Mon, 22 Jun 2020 10:25:54 -0600 From: Jordan Crouse To: Rob Clark Cc: Eric Anholt , dri-devel , linux-arm-msm , freedreno , Sean Paul , Linux Kernel Mailing List Subject: Re: [PATCH 1/2] drm/msm: Fix address space size after refactor. Message-ID: <20200622162554.GA9114@jcrouse1-lnx.qualcomm.com> Mail-Followup-To: Rob Clark , Eric Anholt , dri-devel , linux-arm-msm , freedreno , Sean Paul , Linux Kernel Mailing List References: <20200617205310.2183722-1-eric@anholt.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 17, 2020 at 07:39:08PM -0700, Rob Clark wrote: > On Wed, Jun 17, 2020 at 1:53 PM Eric Anholt wrote: > > > > Previously the address space went from 16M to ~0u, but with the > > refactor one of the 'f's was dropped, limiting us to 256MB. > > Additionally, the new interface takes a start and size, not start and > > end, so we can't just copy and paste. > > > > Fixes regressions in dEQP-VK.memory.allocation.random.* > > > > Fixes: ccac7ce373c1 ("drm/msm: Refactor address space initialization") > > Signed-off-by: Eric Anholt > > > rebased on https://patchwork.freedesktop.org/series/78281/ (which > fixed half of the problem) and pushed this and 2/2 to msm-next so it > should show up in linux-next shortly.. > > planning to wait a short time more to see if we find any other issues > and then send a -fixes PR I'll fix up the rest of the flubbed addresses sizes. Jordan > BR, > -R > > > > --- > > drivers/gpu/drm/msm/adreno/adreno_gpu.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/gpu/drm/msm/adreno/adreno_gpu.c b/drivers/gpu/drm/msm/adreno/adreno_gpu.c > > index 89673c7ed473..5db06b590943 100644 > > --- a/drivers/gpu/drm/msm/adreno/adreno_gpu.c > > +++ b/drivers/gpu/drm/msm/adreno/adreno_gpu.c > > @@ -194,7 +194,7 @@ adreno_iommu_create_address_space(struct msm_gpu *gpu, > > struct msm_gem_address_space *aspace; > > > > aspace = msm_gem_address_space_create(mmu, "gpu", SZ_16M, > > - 0xfffffff); > > + 0xffffffff - SZ_16M); > > > > if (IS_ERR(aspace) && !IS_ERR(mmu)) > > mmu->funcs->destroy(mmu); > > -- > > 2.26.2 > > -- The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project