Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp600278rdb; Tue, 16 Jan 2024 09:46:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IHkXoozZ6T7I8ckFPgRcReZ2h4YUqSgUeY9OCZoScuirf0LQDYVUCzkP3NH2SWdQ31O6LXj X-Received: by 2002:a05:6830:ec4:b0:6dd:e00c:833a with SMTP id dq4-20020a0568300ec400b006dde00c833amr7469351otb.20.1705427203815; Tue, 16 Jan 2024 09:46:43 -0800 (PST) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id l19-20020a05622a051300b00429f4f61668si3348890qtx.130.2024.01.16.09.46.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 09:46:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-27636-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CVWOdHbr; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-27636-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27636-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7B8501C2372A for ; Tue, 16 Jan 2024 17:46:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 595DF1CD0B; Tue, 16 Jan 2024 17:46:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="CVWOdHbr" Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AE29D1CAB8 for ; Tue, 16 Jan 2024 17:46:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=134.134.136.20 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705427200; cv=fail; b=T5HnKroVgKzFMNRS7NDL8yL7Prg/68SjvOLlbjQV/LgaPWyhfQmHffKoowWSEI8DP/WON6EsSj+zL3+kI+5MAJ35HDcd3x//k25b5j3YFrObF6Dza0KaifV+eGx2dU1KAjQDrrTb9HG3VKJW3ks2hALwq4tNX6hIiew2LsWjspQ= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705427200; c=relaxed/simple; bh=SpKLAP+9YP0g4x+2jmoMG/PyzXoNpOPMbh+sAPKTgxg=; h=DKIM-Signature:X-IronPort-AV:X-IronPort-AV:Received:X-ExtLoop1: X-IronPort-AV:X-IronPort-AV:Received:Received:Received:Received: Received:ARC-Message-Signature:ARC-Authentication-Results:Received: Received:From:To:CC:Subject:Date:Message-ID:X-Mailer:Content-Type: Content-Transfer-Encoding:X-ClientProxiedBy:MIME-Version: X-MS-PublicTrafficType:X-MS-TrafficTypeDiagnostic: X-MS-Office365-Filtering-Correlation-Id: X-MS-Exchange-SenderADCheck:X-MS-Exchange-AntiSpam-Relay: X-Microsoft-Antispam:X-Microsoft-Antispam-Message-Info: X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-AuthSource: X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-CrossTenant-Id:X-MS-Exchange-CrossTenant-MailboxType: X-MS-Exchange-CrossTenant-UserPrincipalName: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-OriginatorOrg; b=Ql2/Kvu7AdvRRhW7dxif37LdPhzfSqFxi85FkQJwYt+vCYwCBoPpTYI1vjDzlX8eMoHf0MSllRw5YNJP2YFVOV3otwIfgeXd5c51XjBqhy0ayhu+piIJudk+FSnGkzy59vAYL2VRnmd21laNc2GDWCM9bqE8/J8LQmYCXD4tVxU= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=CVWOdHbr; arc=fail smtp.client-ip=134.134.136.20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1705427198; x=1736963198; h=from:to:cc:subject:date:message-id: content-transfer-encoding:mime-version; bh=SpKLAP+9YP0g4x+2jmoMG/PyzXoNpOPMbh+sAPKTgxg=; b=CVWOdHbrFYUGCLBHbSytBhwzKdvPcYBjtDhgW6SWmOoTXI8BBn7S/hhz kJFMxW76yLC38kQ5rG1zddiE5F6vLgNOWbqSuWan3O0hEn5vGckrFRMia W7P4HqNKTjXUYzwN1+2gAfGck+jvuBvsPfejdD8e8ovKSwz+VazyCFje8 va6YdeoeJDx0QKBXe0NR4DmzAETlSQOKecftDwuCRjXheReBZqty4JgD/ Wng54YkA6/TFyNmhsQFF4XIs2I67kJlQvLYYGw5qSlbtmns8b+DmuHX5S l/O10jHHw3t57t2dC6Tck2Be4n+LKr2jxWbdQAa1Au/ihTHGZSix5T8aM Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10955"; a="390388872" X-IronPort-AV: E=Sophos;i="6.05,199,1701158400"; d="scan'208";a="390388872" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jan 2024 09:46:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10955"; a="784207599" X-IronPort-AV: E=Sophos;i="6.05,199,1701158400"; d="scan'208";a="784207599" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga002.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 16 Jan 2024 09:46:37 -0800 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 16 Jan 2024 09:46:37 -0800 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 16 Jan 2024 09:46:37 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Tue, 16 Jan 2024 09:46:37 -0800 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.169) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Tue, 16 Jan 2024 09:46:36 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C+v24+cEEb0fClJgPV2akJ67FJrY4UF7iY++AEbtvq/pg5EYz/5ZVTu07hLHShendhIIm3Qe1pVqdW8C6qKLhzqKmOlhuDPf3HdMTcau/k9dlgYX5TQt6qOR+VLD5j9LLw6gcc/liC7isQ5JGUP4Hz0WupxjHXN48+2X7t4yNqB+uATAnzGBspF6cQ5hvAxFg3lKJ+/jYGa9HzoT28NWr50/RjTURVnlUqv9W5qrAQO3CuhhaQt/eCrTaTFPDRuUc8xDZwxkKxigQ9p68wn6uuCtJWfEw/POjt1VKQn84JEnyfgAHE/eR3H3KmUCwqmoOxdgJOEoCrt08m+GrSkjdA== 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=J5Xj8lGAzcl2eG/6TZBA/2kO37ybvrr4jdnUZji/lY8=; b=BCiOTAoYcH10/dc6vWn4RurPyE9KFpdsTfq7FF46gRlg+sH2egFaoGGHfv9cd8RL7NlecRlyvm1L5h3uLMDRA8Xjh3cxOuSyfITblEpnTgY8TzwEz5Q9I3UZjcYrmscrFMA4n/4UWuzaMOZDPhNBZ3tEth3pzwFZeWiNQKVY7l0ETDqt6e74JaBfbIbwuMg1ZvmV2ZbmeqxSqOnaXyx8UZ2F/PdAbHRb6X00Vf8Zw6K354Lq0U7sGfHmIBZMia47ZJELW/4AmNva5aQ0QbxdvC4GbWJglrKtW0NwfoYJXbWYWBFcRRycN8dkQgKcl1f/AiDT1HKh9RxxLdaIdjG3IQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DM4PR11MB5373.namprd11.prod.outlook.com (2603:10b6:5:394::7) by DS0PR11MB8665.namprd11.prod.outlook.com (2603:10b6:8:1b8::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.23; Tue, 16 Jan 2024 17:46:29 +0000 Received: from DM4PR11MB5373.namprd11.prod.outlook.com ([fe80::f105:47dd:6794:6821]) by DM4PR11MB5373.namprd11.prod.outlook.com ([fe80::f105:47dd:6794:6821%4]) with mapi id 15.20.7202.020; Tue, 16 Jan 2024 17:46:29 +0000 From: =?UTF-8?q?Micha=C5=82=20Winiarski?= To: , CC: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , "Javier Martinez Canillas" , =?UTF-8?q?Ma=C3=ADra=20Canal?= , Janusz Krzysztofik , =?UTF-8?q?Micha=C5=82=20Winiarski?= Subject: [PATCH] drm/tests: mm: Call drm_mm_print in drm_test_mm_debug Date: Tue, 16 Jan 2024 18:46:02 +0100 Message-ID: <20240116174602.1019512-1-michal.winiarski@intel.com> X-Mailer: git-send-email 2.43.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-ClientProxiedBy: FR3P281CA0080.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:1f::15) To DM4PR11MB5373.namprd11.prod.outlook.com (2603:10b6:5:394::7) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR11MB5373:EE_|DS0PR11MB8665:EE_ X-MS-Office365-Filtering-Correlation-Id: 4b68c35d-75bd-4005-90e1-08dc16bb11fa X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gIe55Q0wbrHidFugKwvxCXU8eKAbRdACO1H5ZIsXCjrBYbX1QvlMoEHeOe1dWY2PrX+Q2rjMkzUqvXqRgUAozESyHQUqq4iDLyzAgmR0pYyy1nFk07k21QxbudCHUMTL0czzts78FaDycA5NJtcn5Ei+GUN456gJXyVdRCihDnorUDdLzsLp5lI8ouOtbtVklSJT8hohT7OMicm9Hgcapqg8TyUBrSUREktj/LOJ4W1g68jwarCCa3CCWs3Ptg1eSVLzzgL3XvCFiQahlu4XrkAvUZTZjzgQg1Yh+Ux2nxutSQqDItIrvHTZxdsUuePcCtxnCt1E/aGs8VNlWOBouV8w1zLK75kWW4/cIAd8FE6v9Jq8jfBTUlq+ncHB9kWpDcf/xODtRMBZp/tFiWL3WQw3jng2xZV+Q9+KwfipEgbZ086ZGJJhm9noyI6k5TJ7v6QSFgq4r3YHr3Cjy3xVg8z0TU6y6tzJY9jGtxSuffJ5FYhBLq4oMX7d+hFhK5k2OWEBEBwH3KVmhiC0MGjq1qqBL2d5jfGT27vrp05hMwI= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM4PR11MB5373.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(366004)(396003)(136003)(376002)(39860400002)(230922051799003)(451199024)(1800799012)(64100799003)(186009)(82960400001)(38100700002)(36756003)(86362001)(26005)(1076003)(83380400001)(41300700001)(478600001)(6512007)(66556008)(66946007)(316002)(66476007)(6666004)(2616005)(54906003)(6486002)(6506007)(2906002)(7416002)(5660300002)(4326008)(8936002)(8676002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?RS9lUm9hdEx6RVovTGp4a20yNldOY0ZhTklNWHk4VXcyQ3h5S1Q2SlFoVytq?= =?utf-8?B?QjdrY1VKZWUrOUgxb1VWTThzQ0xXN2tRRFhraU8reWtHR2o1eDJDeU5ZemxQ?= =?utf-8?B?elNnMmFpKzhSMzNZYnQzK3lRRHdkY3U2NFdFNEdFTUFZRzA0UWI1N2M2SWN0?= =?utf-8?B?L3JYeDZvYUYzZ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cUgzaWhGeGln?= =?utf-8?B?cDdFa05yeGRXakpSOUN3R3JqM2lERFBpb2FoeG5uWFJtL3ZLREdRWWFTWXNC?= =?utf-8?B?VHpIS2s0L1BJZVhRMWFWVE56ZkprVGhYOC9UcUkzR3hHa1p0VmhCUDB5VVhX?= =?utf-8?B?VHFYTDNLR1FQYW9jd001Zzlwd1EwSnlibFBIeERwV3hMVjRmQko4OGVVS1Nw?= =?utf-8?B?VXc9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: 4b68c35d-75bd-4005-90e1-08dc16bb11fa X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB5373.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2024 17:46:29.8629 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 6t/UB8eJtH0iwV7TawGcz/z1UKSq5dOYmnZhal/Ge6UuJeJl55CR1sxPr+HqjqsdsHyY9dL6CmdXA8hgVzrmnQCp14nnQv50bOnc1piPDZc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR11MB8665 X-OriginatorOrg: intel.com The original intent behind the test was to sanity check whether calling the debug iterator (drm_mm_print) doesn't cause any problems. Unfortunately - this call got accidentally removed during KUnit transition. Restore it. Signed-off-by: MichaƂ Winiarski --- drivers/gpu/drm/tests/drm_mm_test.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tests/drm_mm_test.c b/drivers/gpu/drm/tests/drm_mm_test.c index 4e9247cf9977f..1eb0c304f9607 100644 --- a/drivers/gpu/drm/tests/drm_mm_test.c +++ b/drivers/gpu/drm/tests/drm_mm_test.c @@ -188,13 +188,13 @@ static void drm_test_mm_init(struct kunit *test) static void drm_test_mm_debug(struct kunit *test) { + struct drm_printer p = drm_debug_printer(test->name); struct drm_mm mm; struct drm_mm_node nodes[2]; /* Create a small drm_mm with a couple of nodes and a few holes, and * check that the debug iterator doesn't explode over a trivial drm_mm. */ - drm_mm_init(&mm, 0, 4096); memset(nodes, 0, sizeof(nodes)); @@ -209,6 +209,9 @@ static void drm_test_mm_debug(struct kunit *test) KUNIT_ASSERT_FALSE_MSG(test, drm_mm_reserve_node(&mm, &nodes[1]), "failed to reserve node[0] {start=%lld, size=%lld)\n", nodes[0].start, nodes[0].size); + + drm_mm_print(&mm, &p); + KUNIT_SUCCEED(test); } static bool expect_insert(struct kunit *test, struct drm_mm *mm, -- 2.43.0