Received: by 2002:a05:7412:e79e:b0:f3:1519:9f41 with SMTP id o30csp29888rdd; Wed, 22 Nov 2023 08:36:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IGzlGMINEbSf4mpTvZPzUTkjcixuODdShoFJbUHwNxQ0R79ELk224sqhR7xucxQv7ln4+b4 X-Received: by 2002:a05:6a00:3a09:b0:6cb:d2cd:212c with SMTP id fj9-20020a056a003a0900b006cbd2cd212cmr1770005pfb.13.1700671001715; Wed, 22 Nov 2023 08:36:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700671001; cv=pass; d=google.com; s=arc-20160816; b=EI8YW9foEv25sWA2SHGG4uTO0atYn2HQ+NDB97Dulhx8TdCnrAbQIuENQnHxu4aMHs RTBqt35J/RYeDhR4H5HPRd3MN9weZA4VJbFgCO0LErDDa9iQ10SMrMB74yaQXh+sZeqO mI+Qdv2PmY5gy70txkr+rD8Gkecysf52xc/gS21j3xcWmu4R+pE+BxUp9tE8ib354icc 3fxyE6xWuxy45QSe8ZJMCW9tbKzDzbxI+/1jCzB1TCuIJtxiCnar1goWTDb9WJ3b6eiy ivhNO2vjOqrI2BQkfF9N3tz3rGzryCflU0RFHDMwqm+zazFm/iM2Gav+rjFB29BK4GKk A6uw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=Zi8AOeDOdj1x0erlVdaofiiJpR7zAbn10yP0fAu/tQk=; fh=+WOXla7QQgPofUJoZdvPf1zSjUvRzyiFDr46XMngtiI=; b=yp/3QJ8izPQCrB4IvbdCC//CEv/Ob6mwygj39UOq1L+kKAhAgcyPSyY/k1PZV1ZlnX 2o8jZELhW5YcPwldtwyp+2zujlzh0yl+7IZs0Z0p0p95ulSKyt++Boi0mHZnKSb0IX9X brKltVZjrHC4Pb5ueo0O3uXwyLZEQBWy6CY7SmbRe/oJYZz+aEwUHcmWgd5Ej1kfI9yg tiHe46d6mx4tKJAVQDwufvNYZt6ZbnuZ4lAIY6JzjFBcNoqE8PbTC23V3lxCpEFw8+K3 TROyaiwLhbVAynOjquiUDBJSXkUh//wWit0XXPWakpzE9vMx1JliouVGwEwD5+pFHV5z HEpg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@imgtec.com header.s=dk201812 header.b=ceTKru1S; dkim=pass header.i=@IMGTecCRM.onmicrosoft.com header.s=selector2-IMGTecCRM-onmicrosoft-com header.b=HTSmNgkL; arc=pass (i=1 spf=pass spfdomain=imgtec.com dkim=pass dkdomain=imgtec.com dmarc=pass fromdomain=imgtec.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id b12-20020a056a00114c00b006c34eaa73e0si13226285pfm.333.2023.11.22.08.36.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 08:36:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@imgtec.com header.s=dk201812 header.b=ceTKru1S; dkim=pass header.i=@IMGTecCRM.onmicrosoft.com header.s=selector2-IMGTecCRM-onmicrosoft-com header.b=HTSmNgkL; arc=pass (i=1 spf=pass spfdomain=imgtec.com dkim=pass dkdomain=imgtec.com dmarc=pass fromdomain=imgtec.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id C703E8250DFC; Wed, 22 Nov 2023 08:36:03 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231357AbjKVQfj (ORCPT + 99 others); Wed, 22 Nov 2023 11:35:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231426AbjKVQfh (ORCPT ); Wed, 22 Nov 2023 11:35:37 -0500 Received: from mx07-00376f01.pphosted.com (mx07-00376f01.pphosted.com [185.132.180.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E5C61B8; Wed, 22 Nov 2023 08:35:33 -0800 (PST) Received: from pps.filterd (m0168889.ppops.net [127.0.0.1]) by mx07-00376f01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 3AMCaKJE020106; Wed, 22 Nov 2023 16:35:07 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=imgtec.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :content-transfer-encoding:content-type:mime-version; s= dk201812; bh=Zi8AOeDOdj1x0erlVdaofiiJpR7zAbn10yP0fAu/tQk=; b=ceT Kru1SPdAdKvYWmBDTVlCT6zkpPA93Jo+UQVzlGWS9l9QKLXLWcmGSR/V305yCuWS BzGeya6OagtREAUJl2N9Zl/RxfHltwLwCSP646Talb+BnEFQw/btbGLbVBi8qDoe ZB52ixhW/xi8uhiTZEPOPmyTpQ17HnUcGMpTZg9yTdqAiOFaezSRTwQHBVaJrC0M uanMBAz6zUetL5ZRv4uQoklgrbXIKPxPX1E3yGl9aMKWS/IDVPnY7zfJzmwSWtA8 btFKR8nIoYHTBVxGbjPielZy6s+RKpCiG6J/nVl0V5HsRdiKGSzSP0kMMD1+VGLd FTr4zmZdcidAnBePeAw== Received: from hhmail05.hh.imgtec.org ([217.156.249.195]) by mx07-00376f01.pphosted.com (PPS) with ESMTPS id 3ug99g9m20-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 22 Nov 2023 16:35:07 +0000 (GMT) Received: from HHMAIL04.hh.imgtec.org (10.100.10.119) by HHMAIL05.hh.imgtec.org (10.100.10.120) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Wed, 22 Nov 2023 16:35:06 +0000 Received: from GBR01-CWX-obe.outbound.protection.outlook.com (104.47.85.41) by email.imgtec.com (10.100.10.121) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34 via Frontend Transport; Wed, 22 Nov 2023 16:35:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XRKZs5dU5WGZ51HxCdLHCVz0640WwHO/687wjlDxp7rBcQoC3OOtVgB+GB6QCmv1FgD+RZZ0GFeNmyMQ3jjk3m0JlRlLNNX2mIK4TNJXx+J6k37LExmLYBjg7ZrExnx9iFEZl4NAxXO5nUQO9tHSo14SU4+A+YQe3bj9iUlVrdQ3RmckB35K7Gyi5spvNltraV7RJKFT+jTFTn4gXdZYJ7JQ4s8p4koe0StNNao4jEIFlKL98Rs6jStU7j+fePTUnl8IgIzQ9KK/RBTs2+wVh/SQmxKL1Cat82+ZEb7dVBLIDmWT4TiWpoJbuoYTYsa1YeUpoyewTiEaapoooOHdpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Zi8AOeDOdj1x0erlVdaofiiJpR7zAbn10yP0fAu/tQk=; b=ngSfuAkJ92gScSNo/i3BXY8TkFpYztRdjZCehi/rfvEfdEBzn9FA3ZZDeHa2ABl3NZPsWuLySEpLMCP6Ll0odBZrzw4oh2k9XnvdVcT0PWfTXXOB6Y2P0HwSQKQAlcnEtZGZlut/Q1ukXPS3q36l/9TKEkpQmX74vhJ2grVb0VkxB+sUuZX4U10e/n4qoz1W/M3IahI30eeozrZK9fcJ61ObvVhDlXUUl+su0OklU1EoCXZQ1Rttib+9pUi5BMUpPuZI9AQHAzFQ7rTOKSxfrVHnWzUPXo8HrdiZ8GlXhS81qYRbsIPDqQ5B8IxxB8A9r4SNcsGw5bnW6t+Q1af3Fg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=imgtec.com; dmarc=pass action=none header.from=imgtec.com; dkim=pass header.d=imgtec.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=IMGTecCRM.onmicrosoft.com; s=selector2-IMGTecCRM-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Zi8AOeDOdj1x0erlVdaofiiJpR7zAbn10yP0fAu/tQk=; b=HTSmNgkLyIZDYy/EHN4HlAvvBsRaEu0MPBFdNEFlNH4rkB7RxL7oW4xpZmM+7pzL4586Gy0k4pGUcxvNbAlfAQlPF+NP5fOH9kD04NDJ++8dZrVbuh5UmzfVop98/LFF28Jgv7N1sYoF10DY6y8By1hLIl9cFgPxGeDETPGOmqY= Received: from CWLP265MB5770.GBRP265.PROD.OUTLOOK.COM (2603:10a6:400:1a0::8) by CWLP265MB5329.GBRP265.PROD.OUTLOOK.COM (2603:10a6:400:1c5::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.19; Wed, 22 Nov 2023 16:35:05 +0000 Received: from CWLP265MB5770.GBRP265.PROD.OUTLOOK.COM ([fe80::a85a:76f7:c085:2b34]) by CWLP265MB5770.GBRP265.PROD.OUTLOOK.COM ([fe80::a85a:76f7:c085:2b34%3]) with mapi id 15.20.7025.017; Wed, 22 Nov 2023 16:35:04 +0000 From: Donald Robson To: CC: , , , , , , , , , , , , , , , , , , , , , , Sarah Walker Subject: [PATCH v9 02/20] drm/gpuvm: Helper to get range of unmap from a remap op. Date: Wed, 22 Nov 2023 16:34:23 +0000 Message-Id: <8a0a5b5eeec459d3c60fcdaa5a638ad14a18a59e.1700668843.git.donald.robson@imgtec.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: LO4P265CA0273.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:37a::10) To CWLP265MB5770.GBRP265.PROD.OUTLOOK.COM (2603:10a6:400:1a0::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CWLP265MB5770:EE_|CWLP265MB5329:EE_ X-MS-Office365-Filtering-Correlation-Id: e053100b-cd6d-4112-9ab9-08dbeb78fb56 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JMnorzumK3+7/toW2r6+Cvl+ik7wIp3qqRV0PWDGYm9Mmr2HINSgz7SIHHyv5bB9k9F/+Ww/7rKdcESEJm3bRdQVFEV0BLTJSmnRaXwE0/+zd2UjlZxpQfOyZSKPEx0IisiithpSYhQ66f56gEemY33woFdvvez6rAANiOGxcXiwJblpgJTh1PUlwFyJAfcbyvgxskSfYyqUfhL5Io4qZPZ+GkpXf014uozLPrbTYEab4Z3e4PMXU6ITRwdU3HwWm0tIhbGuw6yyNIhqNh2cMck0YMZ2IdF0GymBFytixIsrL++wt3oUhPbZQS9w7efEYHmQK3AGdwEShA9aHN4dLmTAqZI+etl347YYDG9lxK0zYyVnMMW0pagy20Gv32uKfN8MEK/OUGWAO4Dt+GN86jKXz/lDBx+O3zdmtqDBlsmj0Ed5GmSWoyR7BA0Q/f0ipWIY8IsSjL2q2AykYJ2EMKvvZKb9qxPa8k+lAUxpohiLNzLJtX4LHfqHZIWvImbY2pHvBmOGCoVtzTSaLZMsFkVixsNinQS4H2T0e5gBRy15+uOX5VSadNhwXiQIrclmKSs9/KWd/OYsAph6w5ai48tObCuuofp1HEwkN1hPDtuxIEyOSw8Qi5Q/jmfZclZ2 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CWLP265MB5770.GBRP265.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230031)(396003)(366004)(136003)(39850400004)(376002)(346002)(230922051799003)(451199024)(1800799012)(186009)(64100799003)(26005)(52116002)(6506007)(6666004)(107886003)(2616005)(6512007)(6486002)(44832011)(5660300002)(4326008)(8676002)(41300700001)(8936002)(7416002)(2906002)(478600001)(316002)(6916009)(66476007)(66556008)(66946007)(86362001)(38100700002)(36756003)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?e5V8uyeOZiwFb0qbBbP1aDic4sMwUorM+ODxj9HsBBtArxxFbznBFd7eiLAE?= =?us-ascii?Q?8m+ktdhK3GK1J4nP611OuHd9TClAxyuBTHgCzTOQW6nPjL6KfgTaFtMEkg3Z?= =?us-ascii?Q?BYbDag7/sUk9Y6t9oHxQHF3tllH34xNFMUbch15HqtNVbwYgVbNdrQTmrGoy?= =?us-ascii?Q?UHhjKDN9X+1y/k4Q0Krne8EcDKdu9/uzFfRJ8x6p8n+Ip4nHfrQxC+MZkMoW?= =?us-ascii?Q?DhtGUVhTcww+Xhy3XvVKcfvhMUFgtrNjD6xCSIgoyF/0iGoNDO3nYmRdpXy/?= =?us-ascii?Q?1Fb2uIKi5EFzGqeLHQrXlCCMJqhvbYjLAKAuJinTLd2Mbb9odz1wfjN7Rwyy?= =?us-ascii?Q?JP5Nul5pXQc2A7jOkZzBSg+SH1upq8Xf510it2TfDG5/69tnC742+RnKy/Mr?= =?us-ascii?Q?I5NB6Chvq6MT587eaRL497IfE33G3a7gzKUtCuEuk+rLVjodfeQcPjb9wrwZ?= =?us-ascii?Q?6zgIpOo28hk9l1b9yzoSl5F0WGNDVnFS1StmGVVsEnzp8WwDflhBzC8qcieX?= =?us-ascii?Q?bWO1XA/sXkCwOnmpdUYjNDG6qdzRZ5hawxMP3IWLm97XZq6uTHQV/qTSDGDu?= =?us-ascii?Q?dRGENwC9pdE3cDHcgQT/JDhA/ucsJqoUt8UEOctBv/lvqze/pAKMS8k3/3x3?= =?us-ascii?Q?T7IguqFbJL2EywWGq0af0xcnhEzF2vaUGRSf+eOTmJr8IuxhYlV2OivVQeIw?= =?us-ascii?Q?sTbXFOLz89NDoX8TuwMgN9r27SyvsCieX8SjUmICCSa6Ud1GWJD4BBByIA4q?= =?us-ascii?Q?MZ5bZ/V7PNuJcXmAtTizREtYtOAjy9b5ozMHay5KqjIGa0tPLAWf6H6KGjYE?= =?us-ascii?Q?CzEjAWNB88Z6D2agdBt0bUkl6ZBt+FO5iF3Y8kP2Hphz7c3MnmC5CYRTZErl?= =?us-ascii?Q?m9gkB9IO0TfqjRumf7z/pevyB0o72Db3jyYil6EsOJvpfxcBmkBzu7I0OkSi?= =?us-ascii?Q?IA2XVvOdgWYQohBIY/4aECraEQZwWssmZm+J2MMh23KnJzaRAjhzBEJ2DnXe?= =?us-ascii?Q?s3x7aM32T83n+FB+n5FaYf4mYy866FhsSsgqzr36S32t3yQupDF935BhmpLg?= =?us-ascii?Q?hJ16bVHL3eLz6DiEPFYDEAcmLe5QFy/doT33aALJ0KarsFXhxxrA4QdBzD2d?= =?us-ascii?Q?C9MP8CXvJQXsFAsBCEOqErB1xsKJQlvzoG0l1zN0g1K7hijv2diUhFV+667I?= =?us-ascii?Q?fygvgtVTadxhTi7kbgdfLTidp1GtqNn4lOneq0CewK7ADS07RoNDQfKmZc4y?= =?us-ascii?Q?36fyFacM+Khowe0AksmDuqGtON1PQaPPFaR1KpI1v5GEMYNnnIn6TGN6MNjC?= =?us-ascii?Q?U7+aeUAclv+nn0zM39LdLTpmnfatwgTCyCACLH44JFRnWCLTP7LJKm+07gOm?= =?us-ascii?Q?xwbkdoByrWdE6HpMAJB/CXXsHQ1RhJpMuggyuLCbhVuoqX6kcGAQ7M0cA4jK?= =?us-ascii?Q?Wd3ZeT5+iUPFLPD6gmal+DakscsZyI4R6Wf2F/VK1oWLqvBgxhF5E76xnMMu?= =?us-ascii?Q?AY9o7mgYkvJ7Oq39vmjiYWql30TvU/ZTN8nLpbkRBogfM9SS1XktdB62dMCb?= =?us-ascii?Q?Uuhnr5u3ZuYUEKkJXoCEU/uweSUzbEPDZlt3xD6ge0qmh04WJD1w5QdE/iej?= =?us-ascii?Q?7g=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: e053100b-cd6d-4112-9ab9-08dbeb78fb56 X-MS-Exchange-CrossTenant-AuthSource: CWLP265MB5770.GBRP265.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Nov 2023 16:35:04.9473 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0d5fd8bb-e8c2-4e0a-8dd5-2c264f7140fe X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: +biMBSpXDl5tndv2ajJdcAR2serR5d8GDK3PUhcEKXUD2em5+ldpdL6C5AE2rZvu0ooHhJmYrYwts6rV41Uok4cMbceB0AGPc5g6Xf5Jflc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CWLP265MB5329 X-OriginatorOrg: imgtec.com X-EXCLAIMER-MD-CONFIG: 15a78312-3e47-46eb-9010-2e54d84a9631 X-Proofpoint-ORIG-GUID: q4jC9LirBfnW3Erusc8LNU0SlP46kHm2 X-Proofpoint-GUID: q4jC9LirBfnW3Erusc8LNU0SlP46kHm2 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 22 Nov 2023 08:36:04 -0800 (PST) Determining the start and range of the unmap stage of a remap op is a common piece of code currently implemented by multiple drivers. Add a helper for this. Changes since v7: - Renamed helper to drm_gpuva_op_remap_to_unmap_range() - Improved documentation Changes since v6: - Remove use of __always_inline Signed-off-by: Donald Robson Signed-off-by: Sarah Walker Reviewed-by: Danilo Krummrich --- include/drm/drm_gpuvm.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/include/drm/drm_gpuvm.h b/include/drm/drm_gpuvm.h index 8ca10461d8ac..f94fec9a8517 100644 --- a/include/drm/drm_gpuvm.h +++ b/include/drm/drm_gpuvm.h @@ -1213,4 +1213,32 @@ void drm_gpuva_remap(struct drm_gpuva *prev, void drm_gpuva_unmap(struct drm_gpuva_op_unmap *op); +/** + * drm_gpuva_op_remap_to_unmap_range() - Helper to get the start and range of + * the unmap stage of a remap op. + * @op: Remap op. + * @start_addr: Output pointer for the start of the required unmap. + * @range: Output pointer for the length of the required unmap. + * + * The given start address and range will be set such that they represent the + * range of the address space that was previously covered by the mapping being + * re-mapped, but is now empty. + */ +static inline void +drm_gpuva_op_remap_to_unmap_range(const struct drm_gpuva_op_remap *op, + u64 *start_addr, u64 *range) +{ + const u64 va_start = op->prev ? + op->prev->va.addr + op->prev->va.range : + op->unmap->va->va.addr; + const u64 va_end = op->next ? + op->next->va.addr : + op->unmap->va->va.addr + op->unmap->va->va.range; + + if (start_addr) + *start_addr = va_start; + if (range) + *range = va_end - va_start; +} + #endif /* __DRM_GPUVM_H__ */ -- 2.25.1