Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6E6F8C43458 for ; Tue, 7 Jul 2026 18:00:38 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 063E410E4EE; Tue, 7 Jul 2026 18:00:38 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=amd.com header.i=@amd.com header.b="idxrXqMV"; dkim-atps=neutral Received: from CH5PR02CU005.outbound.protection.outlook.com (mail-northcentralusazon11012004.outbound.protection.outlook.com [40.107.200.4]) by gabe.freedesktop.org (Postfix) with ESMTPS id 743FF10E4EE for ; Tue, 7 Jul 2026 18:00:36 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=jJVxwfpTGQcsZcfO1nLx6AB5W6tYWNj2R207v+tY1z9m+PhYvquR5uvZgCCvIRunbsjGuQTP6fnl4ldlhmS3H+sS7FfSJNKg7JEOvl2mXXZI5f1D1ixgdyS1bAghtlItObzp1w5hz10taxdrl0Pw2PQNU4UmEV0tSvR0K/NzwMglWEhF9F+0ocDBhixx45K3XziQm+bsK2LaShHroyPxu61J0iHmvdbbtc/sxUOhCStEf9bWwVnxWGQDAPWOcPdFV+lp8pv8iVhORJqzZRRyhbcOUPaQMq5tqU+/WJVg65EPuICxnkyCPvEJ1Df13MdP38YSpDnxflDPw7ZI5hEULQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=zvF3Qo+vZwjfYPhMTtGX4KJFQgNzXfAu1OvRrrMmKjc=; b=YownIw11YODs78wlxWGI6frS3QvaHIm92py1BeCfG++Odckw6kleCOeJVGDZA76SkT4ajqKnZZ87sFsXvFPjycaSnMbIIq4oAFQqSz/hBLFQ9s8NsYdi6djBWQ7cvqYQHy4ZLQJPYUz5YQ3qYzFredIY1hMLg3d32MxSf1uyNe2Bshlfkyv6AHhOuhFATXo/+VhAsPu9idAxTYOr8iCRBf7b3aztOF9uQEfhnSdx6LzfZ6ZKE0z96oHKV0tOWG7+HS5MZn/8Gu/KDRQ9utyETXIv5AVvS0GqMZGLcigWI42kGR5N0GDIH5w0cjZx6f+b4D4K6EzYYXM//ducv9HCDg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.freedesktop.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zvF3Qo+vZwjfYPhMTtGX4KJFQgNzXfAu1OvRrrMmKjc=; b=idxrXqMVP7w53BZvQiXYMVManX4a6a6s0ykUAoqMrjIFYS4/Nbn7zVO0KozoHC0lBRY1KCfm44sYOHjzt+rSB+3VE0/8CRwSL1Crsyfh0KVrNUoNBuGauV9C8PE8hFmR+a5kY1T81n3Ot0TG8r3RchEZ2/6O+1AIFoUfKtbov4k= Received: from DSZP220CA0008.NAMP220.PROD.OUTLOOK.COM (2603:10b6:5:280::9) by MN0PR12MB5953.namprd12.prod.outlook.com (2603:10b6:208:37c::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.181.10; Tue, 7 Jul 2026 18:00:29 +0000 Received: from DS2PEPF000061C7.namprd02.prod.outlook.com (2603:10b6:5:280:cafe::2b) by DSZP220CA0008.outlook.office365.com (2603:10b6:5:280::9) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.202.9 via Frontend Transport; Tue, 7 Jul 2026 18:00:28 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=satlexmb08.amd.com; pr=C Received: from satlexmb08.amd.com (165.204.84.17) by DS2PEPF000061C7.mail.protection.outlook.com (10.167.23.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.181.6 via Frontend Transport; Tue, 7 Jul 2026 18:00:28 +0000 Received: from Satlexmb09.amd.com (10.181.42.218) by satlexmb08.amd.com (10.181.42.217) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.41; Tue, 7 Jul 2026 13:00:28 -0500 Received: from satlexmb07.amd.com (10.181.42.216) by satlexmb09.amd.com (10.181.42.218) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.41; Tue, 7 Jul 2026 11:00:28 -0700 Received: from p8.amd.com (10.180.168.240) by satlexmb07.amd.com (10.181.42.216) with Microsoft SMTP Server id 15.2.2562.41 via Frontend Transport; Tue, 7 Jul 2026 13:00:27 -0500 From: Alex Deucher To: CC: Alex Deucher Subject: [PATCH 1/5] drm/amdgpu/gfx9: fix IP dump alloc ordering Date: Tue, 7 Jul 2026 14:00:17 -0400 Message-ID: <20260707180021.2642432-1-alexander.deucher@amd.com> X-Mailer: git-send-email 2.55.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS2PEPF000061C7:EE_|MN0PR12MB5953:EE_ X-MS-Office365-Filtering-Correlation-Id: ff796170-5be1-4c9d-1fde-08dedc51a113 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|23010399003|376014|1800799024|36860700016|18002099003|6133799003|11063799006|56012099006; X-Microsoft-Antispam-Message-Info: UKR2Z0cKI/yUiVee+sPWfhLcl0vNLuKYlbA/eOAxk2kTKN0vNxfINoEg0yjx8dW8OWo4h4H22BWrpvkQY1q+boMx8NPL6y8z+Yml48RanYvkPsvMnxDEBhd2JgdmTguwkN3jov1LSohZPaFK2+VkEq3DfEfqKh8oai6sHfXlrOZNEjBjQJAUvKFgtg9IZFv337VNFDNGb0Ga5mpxaKRt5QHIhWw8FMnwg8JD9dDee2cFLYnA9ArqG2N7sHYWTcBLRtTnIm8INl906KgH0Ti1utz29V1iiA4sa1w9AA1I8p/Xkcc7qTA/qKMU2S0mSlWkT2KxxUgK1VORmY/rWvRafnjVMmC6BtbMMGne7yAnmu677NCFwC28/Eu+7DVDqtdmZoL9M83JvqDjy4rMxpJYZhoC5lHTKq0WPMJLX+Ywnm3icmAjltlQtahYokaIrZ301BEwhDZMoZiOXi6DBi7XKzAN09mwpdGUBpibSTlrwpV1WnLMgO5qfu0KBUWnmyZi0AZy1Ol6LergXs4Jiho2qKh/OiVPXdwMfaI6cmpTqDmm3OZ7BpR3jCELJs5gO9/9gW1jK2+D4eYzWR+2pNsG1JaMfGlTJ0EhgcVsUsgxgylIT2M8qKbJDchIfm1IPaw5fWWQzX75t8I6y1v6HVxa4arcr1Iy9DTvRGstTqv/s0rxUdnria5i5swtLneT4I1vl4YaP+3o+PSrPUJHEeWgCA== X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:satlexmb08.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(82310400026)(23010399003)(376014)(1800799024)(36860700016)(18002099003)(6133799003)(11063799006)(56012099006); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: F0pmWpfsnZrPwas5ImFV0+ZiV2Hvw6voUVCtdClqOHTBYyuewZlb6OGffOXriAFK0l/faFT/exKMdaoRWkjG88hfXAc0+2YpTg/VROpfiuXkMgA4uXsapEYr6QyNJsmCbid3OnrWKaJ8wG0swNb8n0cZdUWfgd+hP6vaRFYKV15LXP18h9/GK1Bbrmql2uCiC7f5WOfG+nQrFiwCxhuJUrMeP5zjmYlMvKN33kiPtuGYudafSsSKu93cupED3G1CXcpOfEzeDQwHv+e+4Y98mytLYgVHGg500TznWqc/kFDRIivGxV37+dl6EsxU8OUH3N79/9nI05bS+gZnLdDiI4gSLob0HJxa71BmLJolCJvHbXr9UuySwLjt1wmNPpEgZHGUwfNbyboU6K9mY2ntsnBUGd/cmGtOX3EnYU0obgiBXcs8zrA/qcLPl60k9/Nh X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2026 18:00:28.5577 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ff796170-5be1-4c9d-1fde-08dedc51a113 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[satlexmb08.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DS2PEPF000061C7.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB5953 X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" If gfx sysfs init fails, we may leak the ip dump allocations. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c index 7e13023c324b9..2202eed327ea1 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c @@ -2441,12 +2441,12 @@ static int gfx_v9_0_sw_init(struct amdgpu_ip_block *ip_block) return -EINVAL; } - gfx_v9_0_alloc_ip_dump(adev); - r = amdgpu_gfx_sysfs_init(adev); if (r) return r; + gfx_v9_0_alloc_ip_dump(adev); + return 0; } -- 2.55.0