Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2027733rwd; Tue, 13 Jun 2023 18:47:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4JI/mGkkelB+YHyzh6+rkHzIMdIOokf3d6OLmNSXRyboszV1QxYB7yb7YudEeamz6xtqN6 X-Received: by 2002:a05:6a20:3c90:b0:10f:708b:bb28 with SMTP id b16-20020a056a203c9000b0010f708bbb28mr588191pzj.7.1686707237325; Tue, 13 Jun 2023 18:47:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686707237; cv=pass; d=google.com; s=arc-20160816; b=tzLBVfhf6BOm1KXZfjgGFAUmOVeoT2jcJvlWvp3qGls98RYmLRs6PsRRma966pjExu V8qLNVsTlB2zGeo0oy4l8tsJeBcnCO4oDmCfTlVaG0CGOGfExQPT0BaeK+x+pg9YBnqA P0z1chcLcaol1tcQ+gM9auaXXxc6EAcmhAEf+984m5xWdjaS3fy2XiCxpHqZnx5rGpWi ppKMX5Z3TwPwy2/2pP0aYmuulSd9V1Oha7kkWIjxwn2QFdy/4nkkGDf4fSwF0NQQJq+I t6mKvtvE/RCTVEadhW3e9xfr46PUcK2d/NpBUHjO683JJ7SwCJlvu1Itlb0YIgPCnyU1 xxFw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:in-reply-to :content-disposition:references:mail-followup-to:message-id:subject :cc:to:from:date:dkim-signature:dkim-signature; bh=dMM8w9pf86PhRklwfY86e6q2rasuh+eE61w8/97jSrU=; b=aubfH+lzIgixaBk5BLQU2MwhEjNU8VbXyK80HwcNnVndSIDx/5d/unb4dfURutVWkC VJqo8LDKPd2HExPBORN8VLGXRwzDr9fGJmwhGREsuVVwkqCy85gFH7YCbWbfhf340yDH VT6/FMXdRhadrojyMAD55zbjZuqkW1URgsRwQXmiP0rZ4hjZtnFoiwI9omt900bZVh37 +5osOdAa1mWYchwwPw59X2WemJc0YAgCXe4H4AH9MCLj+8fttzNz6xnyyc2MWNujldnm 0EyjX7JXdMh9B62+su04USuah70BYfZJg7DWVb19cu4ocPVQUnDDePpQDFiW6J1wQB2e rfzw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=uObAXzBl; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=Di861fCV; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lk5-20020a17090308c500b001aad9b73ff2si9654594plb.285.2023.06.13.18.47.03; Tue, 13 Jun 2023 18:47:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=uObAXzBl; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=Di861fCV; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242026AbjFNBVe (ORCPT + 99 others); Tue, 13 Jun 2023 21:21:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230495AbjFNBVc (ORCPT ); Tue, 13 Jun 2023 21:21:32 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58EBFC3; Tue, 13 Jun 2023 18:21:31 -0700 (PDT) Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35DGhxsi023878; Wed, 14 Jun 2023 01:21:05 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : content-type : in-reply-to : mime-version; s=corp-2023-03-30; bh=dMM8w9pf86PhRklwfY86e6q2rasuh+eE61w8/97jSrU=; b=uObAXzBl8Mez4qvnuw0t2fx63sjfHzXtA0l0KFpcfHtQOmBzWmIcZgowZ2zT8+TRoSch cgi65tTAwM2PriyA+qqztN71OyE8h1gLJnB3eEPUHRT8mlI4C5nEG8ZMOznCTqdz2mDg 3FceZjRpH0ScnDY2hrNfo+YqJt9w32lzt3qbZXgd0IzhZoHMYVsopbtDuV7XoyfstWnR QMLSFgtO0nweW4V38Xk6Hvq+J6c7eVKM7UBZQWYNhlsGTxKTDuSeyuthC5Fm1a6v848x rP9OoS6MVRnCbiKWJSgUvcG7uWgxw5LlQxVFMo63fmLJG6z8uWNqdxqQGWI+8RAk3q6w Tw== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3r4hqupgqy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 14 Jun 2023 01:21:04 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 35DNjPZS008467; Wed, 14 Jun 2023 01:21:03 GMT Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1nam02lp2049.outbound.protection.outlook.com [104.47.57.49]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3r4fmb694m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 14 Jun 2023 01:21:03 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Mdmk4p5JhfeXeFGdlsQ80oqmOCabqeDUtJQ794nlH2KgX+JvDlSSWeFHLFTj3N9O3/EunhK9uq4zKk/ciS0zW+6jcqVvLLl2dr6nKs2jXtioYGx11m6WJMBa+UnRsGGLs0h19MZbIuCX+xgMPu6bRYxet3bImKNs6fYMl5p8pHS65BpzgoAjLtp/97iX0chf/tyr6Ak0ldFj3I17txVHTNqLBuCeYGbEwu0Bz/ovUb6JSW+XcaBFxi3nCZNSPVk2q6lFW/AlBkKrxfbTal1JozuOlSvs+0wNLNCCKOs9tDNmkmADciRbDD9DfbB09m/m3R8ddMei+7tslCEfdDWhfw== 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=dMM8w9pf86PhRklwfY86e6q2rasuh+eE61w8/97jSrU=; b=VIzE2OeXJDHj+1E6gSNTeocnLE5HUt4VvPIMtFcKa0dcz4TN7HhbCHXFGuvg+LPRZTjoYPQVHMKMsHRJHDYeosrixAY8iueEsMJe8PN6lBCqB2D/jvxuEcz89GUNxmtnMQr2bko0+gyBW+JamNuTmB9NBSwUEoWpY6F/pxnnx+FxBNoSux7ORyVV+pJTgX9RwxyCQ8xK5UWZdvbhTKU2pbFrmAPC2QJWyJRHLdtA6+xiYn8k37idQOyYWwBn6+zl2M0/bT29+RjuNfb21PwDRHe7GMOp5Hx2NnvplDXciLMMcWzk6ni8clVo4ICeKXQWaj+62ihE+ZNF2ThQHaTq6g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dMM8w9pf86PhRklwfY86e6q2rasuh+eE61w8/97jSrU=; b=Di861fCVTVST1h/RKzT3/nc03d2FaNLhlSuF6qc2FHIhdjBu5+Y+hgZD7FwhNIAHESY440TVYeJ168jM3YlFj1RDEKbfzq/nuq/8FIqyGSDbJmdvqXRNmmI6+AkXH5XDPDpVF6NEOloiZrkcjOHkqS8/NKdM1rhmoBRZ5ApTZ5s= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by BLAPR10MB4849.namprd10.prod.outlook.com (2603:10b6:208:321::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.44; Wed, 14 Jun 2023 01:21:00 +0000 Received: from SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::998f:d221:5fb6:c67d]) by SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::998f:d221:5fb6:c67d%7]) with mapi id 15.20.6455.045; Wed, 14 Jun 2023 01:21:00 +0000 Date: Tue, 13 Jun 2023 21:20:57 -0400 From: "Liam R. Howlett" To: Danilo Krummrich Cc: airlied@gmail.com, daniel@ffwll.ch, tzimmermann@suse.de, mripard@kernel.org, corbet@lwn.net, christian.koenig@amd.com, bskeggs@redhat.com, matthew.brost@intel.com, boris.brezillon@collabora.com, alexdeucher@gmail.com, ogabbay@kernel.org, bagasdotme@gmail.com, willy@infradead.org, jason@jlekstrand.net, dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH drm-next v4 14/14] drm/nouveau: debugfs: implement DRM GPU VA debugfs Message-ID: <20230614012057.jhyzdliloui5k7yx@revolver> Mail-Followup-To: "Liam R. Howlett" , Danilo Krummrich , airlied@gmail.com, daniel@ffwll.ch, tzimmermann@suse.de, mripard@kernel.org, corbet@lwn.net, christian.koenig@amd.com, bskeggs@redhat.com, matthew.brost@intel.com, boris.brezillon@collabora.com, alexdeucher@gmail.com, ogabbay@kernel.org, bagasdotme@gmail.com, willy@infradead.org, jason@jlekstrand.net, dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20230606223130.6132-1-dakr@redhat.com> <20230606223130.6132-15-dakr@redhat.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230606223130.6132-15-dakr@redhat.com> User-Agent: NeoMutt/20220429 X-ClientProxiedBy: YT4PR01CA0118.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:d7::10) To SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR10MB3022:EE_|BLAPR10MB4849:EE_ X-MS-Office365-Filtering-Correlation-Id: c31576c4-f838-4879-a34c-08db6c759d2d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Xk/ZtxaghqPLs1QIzjbo85IxTsk09UzL4oJAk+CLV0RGW2q4YRZaVXEASe59ZSRLMLdW7K9qKaYa9k2vQlm4BBMLWDqoZQX7Oud9g204+YmtGtE3AYrarb3P4QYYYuvyeXvFHYitPyxZUxFOefMCYmAKaAtiU0ky/oyg5v8BVF07wKqWpnfel2SbDQweU1qCv9YRvxgfG2LFn3nE32NO9H1na1WDzhCXV0lhPB/XlR9phbHj+WueFI/LfCPMWkmw53CAHGntT6H0KsXnturzsUSJFqN/OzGuxmZRHuJqqR+Wdwda6oVXNqQJ3+gH4D0aSzzzYWV/puH+fRGcIaMCAx63nW+/YPlp/mw7tNEVbXJdRZ9qbxPC93DgmubkeTlqDCFLQEi60Ft0ceuplmH814mGnKwbmp6v+rXVLAtDG3JQmJOc7XsDfZj2s2Sfg4JnfAU4zoWB/TQchWHpQFPVL1xRdAo7ADm68+q9qIBW2KFPlAJFyNYfu1KwOMLNNA9HsddFsbLWYGgoYnK/AY31Wal6vyAXSs8vQ6tYr1PuG11IFb3ZxE/EWj7MCIvEKO0h X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR10MB3022.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(7916004)(396003)(346002)(376002)(39860400002)(136003)(366004)(451199021)(6486002)(6666004)(83380400001)(38100700002)(86362001)(33716001)(26005)(6506007)(9686003)(6512007)(1076003)(186003)(2906002)(5660300002)(8936002)(316002)(7416002)(41300700001)(8676002)(4326008)(6916009)(66946007)(66556008)(478600001)(66476007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?m+Ea8tOAKQ+Oy20gfRTtjNrkqjl7VJsGnjILWR1McOiQpuEJz+t6JgI3he6K?= =?us-ascii?Q?QALNjV5lvazzde6RuqEv8ZsJ4AeuWOpcNdmtMbZ4yXtQMRT6ojcuqhlZzpEx?= =?us-ascii?Q?pljzgp/WZx6ho5+uzGXkxPXxiB0vzi6QtY90rM0K1pgDm2aLdwiBL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o/ezHssC/j/26AU4eIAZzQaNgxaRSQOtVU5Hl/?= =?us-ascii?Q?Ww/to7/iVfhvFHc/pw/2VseyGnr9YAAa6XddPIS2QV7DdKelVUVBlJrUMMc6?= =?us-ascii?Q?8oN7ouAgp2mNcnVhp/o3Fw2g7koBtUZiQG6CTsuGxrkWNKSbaC9USplh5c4E?= =?us-ascii?Q?7Kocnkx37sehpdTSwCCs9+at6+2iztmLCtEAmBipt51bsXPv5CZUSwhRZeFM?= =?us-ascii?Q?hszIvaw3MebcHUELilMIohUYrPWv9gxO+/bnUmHgJUVSTO5F6hz3ghSZepPD?= =?us-ascii?Q?Y+r1ffsp+uwSJbeV4wir1lHrs7fzLkWugT7NCaUV0tRVUj7q08LUKn56BrlV?= =?us-ascii?Q?WMZG/xQ2BpvT58fKERWalQYRvjBv3KXz19SJ54nN3n/DkDvfnYTSZYOJdZFp?= =?us-ascii?Q?aPMt4MamAk/dCoTUP0VHq5rg0z6e5DfbCrgtfEdf/WKCFohXm+j2Ybsllpy5?= =?us-ascii?Q?jYy382siFnsCQ6EXPXJ3P9ShdVq+u6iPEIUw9Y6/wSLZHPbbPEoUJC4zfwSt?= =?us-ascii?Q?uWhY3qwewYjHaWOjDthtNRJ9WKPmcZJKiorOLmK6yKLC42/Ty8mZJAcx1pCA?= =?us-ascii?Q?Sg=3D=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: =?us-ascii?Q?jnGOzA4bC2g+sJnur02KbNMtglRqaaHBFtBSJKXFg81v1WFWgMEG8kPHu571?= =?us-ascii?Q?unwOkNCY9a6vTpKIobB1f33NuvwcNyQCoPdioMNNm1Gpv/RZekkkJNUJcs6j?= =?us-ascii?Q?O9kaJ8cnxG8OgQsjzyhVLcuko0vYj3vY5SEmD6rEdWxfmu0niDks3IXfJDF0?= =?us-ascii?Q?ZgdgtyRbyX77Yjy9ad3B8+EChR7DuJrvV4Mo0YR7ehQC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9cvcpmNcAR5Uw+iPJCrdPZPQtCNKuBboLhc8iFqk6FQ0?= =?us-ascii?Q?4/MhwTsc3QGs3OfD3jGFfb1BDTJxu50xdw=3D=3D?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: c31576c4-f838-4879-a34c-08db6c759d2d X-MS-Exchange-CrossTenant-AuthSource: SN6PR10MB3022.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2023 01:21:00.8453 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: YwxY0mZQR/vMisQq7XBrQxuH6vVw/YUJkr2BIPuSO2XNMscdy/AOkU8ityMlPWF6Gk79pctORYLK+AGDEMRBzw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLAPR10MB4849 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-13_24,2023-06-12_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 phishscore=0 malwarescore=0 mlxscore=0 adultscore=0 bulkscore=0 spamscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306140008 X-Proofpoint-ORIG-GUID: rJdYf5tANraTRlwaW5hFRC3vxYssYZ8J X-Proofpoint-GUID: rJdYf5tANraTRlwaW5hFRC3vxYssYZ8J X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham 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 * Danilo Krummrich [230606 18:32]: > Provide the driver indirection iterating over all DRM GPU VA spaces to > enable the common 'gpuvas' debugfs file for dumping DRM GPU VA spaces. > > Signed-off-by: Danilo Krummrich > --- > drivers/gpu/drm/nouveau/nouveau_debugfs.c | 39 +++++++++++++++++++++++ > 1 file changed, 39 insertions(+) > > diff --git a/drivers/gpu/drm/nouveau/nouveau_debugfs.c b/drivers/gpu/drm/nouveau/nouveau_debugfs.c > index 99d022a91afc..053f703f2f68 100644 > --- a/drivers/gpu/drm/nouveau/nouveau_debugfs.c > +++ b/drivers/gpu/drm/nouveau/nouveau_debugfs.c > @@ -203,6 +203,44 @@ nouveau_debugfs_pstate_open(struct inode *inode, struct file *file) > return single_open(file, nouveau_debugfs_pstate_get, inode->i_private); > } > > +static void > +nouveau_debugfs_gpuva_regions(struct seq_file *m, struct nouveau_uvmm *uvmm) > +{ > + MA_STATE(mas, &uvmm->region_mt, 0, 0); > + struct nouveau_uvma_region *reg; > + > + seq_puts (m, " VA regions | start | range | end \n"); > + seq_puts (m, "----------------------------------------------------------------------------\n"); rcu_read_lock(); > + mas_for_each(&mas, reg, ULONG_MAX) > + seq_printf(m, " | 0x%016llx | 0x%016llx | 0x%016llx\n", > + reg->va.addr, reg->va.range, reg->va.addr + reg->va.range); rcu_read_unlock(); > +} > + > +static int > +nouveau_debugfs_gpuva(struct seq_file *m, void *data) > +{ > + struct drm_info_node *node = (struct drm_info_node *) m->private; > + struct nouveau_drm *drm = nouveau_drm(node->minor->dev); > + struct nouveau_cli *cli; > + > + mutex_lock(&drm->clients_lock); > + list_for_each_entry(cli, &drm->clients, head) { > + struct nouveau_uvmm *uvmm = nouveau_cli_uvmm(cli); > + > + if (!uvmm) > + continue; > + > + nouveau_uvmm_lock(uvmm); > + drm_debugfs_gpuva_info(m, &uvmm->umgr); > + seq_puts(m, "\n"); > + nouveau_debugfs_gpuva_regions(m, uvmm); > + nouveau_uvmm_unlock(uvmm); > + } > + mutex_unlock(&drm->clients_lock); > + > + return 0; > +} > + > static const struct file_operations nouveau_pstate_fops = { > .owner = THIS_MODULE, > .open = nouveau_debugfs_pstate_open, > @@ -214,6 +252,7 @@ static const struct file_operations nouveau_pstate_fops = { > static struct drm_info_list nouveau_debugfs_list[] = { > { "vbios.rom", nouveau_debugfs_vbios_image, 0, NULL }, > { "strap_peek", nouveau_debugfs_strap_peek, 0, NULL }, > + DRM_DEBUGFS_GPUVA_INFO(nouveau_debugfs_gpuva, NULL), > }; > #define NOUVEAU_DEBUGFS_ENTRIES ARRAY_SIZE(nouveau_debugfs_list) > > -- > 2.40.1 >