Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp926156pxb; Fri, 22 Apr 2022 14:30:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGun9HV214jFFYn1D57sUZCsdKu29FAUlgKkFi7UDwRYl+tTSs7FFtB9pn96VzhbLrqNyC X-Received: by 2002:a17:90b:3903:b0:1d2:c8ea:4c9c with SMTP id ob3-20020a17090b390300b001d2c8ea4c9cmr7486255pjb.210.1650663030468; Fri, 22 Apr 2022 14:30:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650663030; cv=none; d=google.com; s=arc-20160816; b=NXM1f9EWHSwS0PAffgZT9bXI1e+ZT28PcdJ/VMhSsa2cakjizDhtvy+druqIUIKGCj rogrPk0zFoWG9GiiSoO+7B4A0k4+fLfGEiBWkRh4biSRgJx1kicbnncKrJV/5NRKd7CB v7SBsk6wPWhICKCg09hgT2Iqbpbz7EQCa+TWcnAWxOO43EVFjut/CsoIrjU8RHF0Av4T bVVE+Q6/pZhmEC3BwoE63vTzeQQLidS+pu10A5KMHnblPu+FrzFoX+ZrySgDDsAb8606 PZ8rJl5EH8nvdbNwMgAnSAAYsbA1bwKcQ8lff9+LgQm9QJ2aifYS9PU36t3EByuXctbe P0CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=tzr9noGgCJvk4eFCPEnvWg9lY/ROZ6Kjqk3zTQ9WyXI=; b=YlZhY52D9SOfJ9w2R0XW71K7TtSsMstKFsqmF/ViBz5CYAQ4QBJZPZkZ286TeKQ1I3 W5oX4lwzJ9TuItsFZI6GBrsEXn5stCf4psD5uNPFKpzpRbMC1VQ3a3ZiV3HbnSeGT54t 6kRIDrP5pd7jZmNKRRAzpCqXjA/4zppWruVnqsqd4kSe9Y5c0ZMZqrPecPtayLP5FTtM PZNs2wUGhpkYXuHMNHBXKkdjhJOvhxGaOD9ExlKceTmI3KClMg6a2kJhF2GULgdLpHnw bxHy65Dd7QvtRh0dIEH/LiLX3mp2sSVSivzRm7/NuHSv0lJtE8XZBnP48RLg5pc3n/EG lVGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2fSd9nzj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id r27-20020a63fc5b000000b003816043efd9si9267815pgk.462.2022.04.22.14.30.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 14:30:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2fSd9nzj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 79E812E4EC8; Fri, 22 Apr 2022 12:37:56 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236255AbiDRM13 (ORCPT + 99 others); Mon, 18 Apr 2022 08:27:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238730AbiDRM0U (ORCPT ); Mon, 18 Apr 2022 08:26:20 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97A4CE0D2; Mon, 18 Apr 2022 05:20:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 42A22B80EDB; Mon, 18 Apr 2022 12:20:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82E36C385A8; Mon, 18 Apr 2022 12:20:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650284413; bh=Xcyb1ZziIShEl8l+imCTz4ijXgo4FealMcnreqRyWVA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2fSd9nzjrBKR+F/RGGqmXNO6pMrw+tFiuTh6dt1DXgR8ML1DR0O86KmaT6aIwQwLt tf1JyDFQkitiURhcYZyed7l3lvTwBl0E8zrdRsuiO4N3PAA09VLTSl0di8js74qSlK JfX6T3EI1vbEqIWHivEnUL67/e27alhpEECALWTQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Rob Clark , Sasha Levin Subject: [PATCH 5.17 090/219] drm/msm: Fix range size vs end confusion Date: Mon, 18 Apr 2022 14:10:59 +0200 Message-Id: <20220418121209.092445449@linuxfoundation.org> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220418121203.462784814@linuxfoundation.org> References: <20220418121203.462784814@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rob Clark [ Upstream commit 537fef808be5ea56f6fc06932162550819a3b3c3 ] The fourth param is size, rather than range_end. Note that we could increase the address space size if we had a way to prevent buffers from spanning a 4G split, mostly just to avoid fw bugs with 64b math. Fixes: 84c31ee16f90 ("drm/msm/a6xx: Add support for per-instance pagetables") Signed-off-by: Rob Clark Link: https://lore.kernel.org/r/20220407202836.1211268-1-robdclark@gmail.com Signed-off-by: Rob Clark Signed-off-by: Sasha Levin --- drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gpu.c b/drivers/gpu/drm/msm/adreno/a6xx_gpu.c index 616be7265da4..19622fb1fa35 100644 --- a/drivers/gpu/drm/msm/adreno/a6xx_gpu.c +++ b/drivers/gpu/drm/msm/adreno/a6xx_gpu.c @@ -1714,7 +1714,7 @@ a6xx_create_private_address_space(struct msm_gpu *gpu) return ERR_CAST(mmu); return msm_gem_address_space_create(mmu, - "gpu", 0x100000000ULL, 0x1ffffffffULL); + "gpu", 0x100000000ULL, SZ_4G); } static uint32_t a6xx_get_rptr(struct msm_gpu *gpu, struct msm_ringbuffer *ring) -- 2.35.1