From mboxrd@z Thu Jan 1 00:00:00 1970 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 A950CF357C5 for ; Wed, 25 Feb 2026 06:42:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E406610E6B3; Wed, 25 Feb 2026 06:42:11 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="dEWcgyH6"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6787110E1A7; Wed, 25 Feb 2026 06:42:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1772001731; x=1803537731; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=fM2txuhNeICW8Ro1iChqOY7CRWcaOwVJ3d53u4wNsHU=; b=dEWcgyH6dEqC9lVHNiCtGdR2WKtAPZ0vWSsgCtaQo5zUexM7A4BYl1N1 AGiA60kkLDZT+qdF4AQsDp7TnRLOsLhq92di9lmlvjYWDQqrR46S51820 HZYc1eqGBgUHRAaReupYJ0nly489mttoSKCcNyrF5PS2cLYW7QImdKrfY j6tdF+o+zDVNHI8afBIB2chLE9nIH5J2ErTbZLyyuwYZQYFl8s6ZT8CCS IkqGuh4bE9SQBRNIb5rjeDHBUoH4UFWdscIyo3gTscplqlLe0RN8B2xZf hDSz5lkvRn85Tbzuh6ca8YE5qS0fhOw1VFDn5Sl6k1M/Ma7L+tPuSyulo Q==; X-CSE-ConnectionGUID: TF22nLSVTT2G0y1Fa1LY/g== X-CSE-MsgGUID: +S9CcuvFSdmOs+/Ze7Qb4A== X-IronPort-AV: E=McAfee;i="6800,10657,11711"; a="95648388" X-IronPort-AV: E=Sophos;i="6.21,310,1763452800"; d="scan'208";a="95648388" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Feb 2026 22:42:10 -0800 X-CSE-ConnectionGUID: Bch7d7APTou6Ijb36Z5vGQ== X-CSE-MsgGUID: FUq5MRIxToq/g5YGyKp1cg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,310,1763452800"; d="scan'208";a="215383112" Received: from lkp-server02.sh.intel.com (HELO a3936d6a266d) ([10.239.97.151]) by orviesa010.jf.intel.com with ESMTP; 24 Feb 2026 22:41:59 -0800 Received: from kbuild by a3936d6a266d with local (Exim 4.98.2) (envelope-from ) id 1vv8WS-0000000041t-3Jb9; Wed, 25 Feb 2026 06:39:56 +0000 Date: Wed, 25 Feb 2026 14:36:28 +0800 From: kernel test robot To: Ethan Tidmore , Alex Deucher , Christian =?iso-8859-1?Q?K=F6nig?= , amd-gfx@lists.freedesktop.org Cc: oe-kbuild-all@lists.linux.dev, David Airlie , Simona Vetter , Lijo Lazar , Mario Limonciello , Ce Sun , Yo-Jung Leo Lin , Jammy Zhou , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Ethan Tidmore Subject: Re: [PATCH] drm/amdgpu: Fix resource leaks Message-ID: <202602251459.1jr0PuUf-lkp@intel.com> References: <20260225014425.2474802-1-ethantidmore06@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20260225014425.2474802-1-ethantidmore06@gmail.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi Ethan, kernel test robot noticed the following build warnings: [auto build test WARNING on drm-misc/drm-misc-next] [also build test WARNING on linus/master v7.0-rc1 next-20260224] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Ethan-Tidmore/drm-am= dgpu-Fix-resource-leaks/20260225-095342 base: https://gitlab.freedesktop.org/drm/misc/kernel.git drm-misc-next patch link: https://lore.kernel.org/r/20260225014425.2474802-1-ethantidm= ore06%40gmail.com patch subject: [PATCH] drm/amdgpu: Fix resource leaks config: x86_64-rhel-9.4 (https://download.01.org/0day-ci/archive/20260225/2= 02602251459.1jr0PuUf-lkp@intel.com/config) compiler: gcc-14 (Debian 14.2.0-19) 14.2.0 reproduce (this is a W=3D1 build): (https://download.01.org/0day-ci/archive= /20260225/202602251459.1jr0PuUf-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new versio= n of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202602251459.1jr0PuUf-lkp@i= ntel.com/ All warnings (new ones prefixed by >>): drivers/gpu/drm/amd/amdgpu/amdgpu_device.c: In function 'amdgpu_device_f= ini_sw': >> drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:4942:16: warning: unused vari= able 'idx' [-Wunused-variable] 4942 | int i, idx; | ^~~ vim +/idx +4942 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c 72c8c97b1522ce Andrey Grodzovsky 2021-05-12 4939 =20 72c8c97b1522ce Andrey Grodzovsky 2021-05-12 4940 void amdgpu_device_fin= i_sw(struct amdgpu_device *adev) 72c8c97b1522ce Andrey Grodzovsky 2021-05-12 4941 { bd22e44ad415ac Christian K=F6nig 2025-01-15 @4942 int i, idx; d37a3929ca0363 Orlando Chamberlain 2023-03-03 4943 bool px; 62d5f9f7110ad3 Leslie Shi 2022-01-05 4944 =20 a5c5d8d50ecf58 Lang Yu 2021-10-21 4945 amdgpu_device_ip_fini= (adev); b61badd20b443e Vitaly Prosyak 2024-11-11 4946 amdgpu_fence_driver_s= w_fini(adev); b31d306378d9ba Mario Limonciello 2023-01-04 4947 amdgpu_ucode_release(= &adev->firmware.gpu_info_fw); d38ceaf99ed015 Alex Deucher 2015-04-20 4948 adev->accel_working = =3D false; 68ce8b24224265 Christian K=F6nig 2022-03-02 4949 dma_fence_put(rcu_d= ereference_protected(adev->gang_submit, true)); bd22e44ad415ac Christian K=F6nig 2025-01-15 4950 for (i =3D 0; i < M= AX_XCP; ++i) { bd22e44ad415ac Christian K=F6nig 2025-01-15 4951 dma_fence_put(adev= ->isolation[i].spearhead); bd22e44ad415ac Christian K=F6nig 2025-01-15 4952 amdgpu_sync_free(&= adev->isolation[i].active); bd22e44ad415ac Christian K=F6nig 2025-01-15 4953 amdgpu_sync_free(&= adev->isolation[i].prev); bd22e44ad415ac Christian K=F6nig 2025-01-15 4954 } 04442bf70debb1 Lijo Lazar 2021-03-16 4955 =20 04442bf70debb1 Lijo Lazar 2021-03-16 4956 amdgpu_reset_fini(ade= v); 04442bf70debb1 Lijo Lazar 2021-03-16 4957 =20 d38ceaf99ed015 Alex Deucher 2015-04-20 4958 /* free i2c buses */ d38ceaf99ed015 Alex Deucher 2015-04-20 4959 amdgpu_i2c_fini(adev); bfca02892773d2 Shaoyun Liu 2018-02-01 4960 =20 6e8ca38ebc9b13 Lijo Lazar 2025-02-05 4961 if (adev->bios) { bfca02892773d2 Shaoyun Liu 2018-02-01 4962 if (amdgpu_emu_mode = !=3D 1) d38ceaf99ed015 Alex Deucher 2015-04-20 4963 amdgpu_atombios_fin= i(adev); e986e89659e18b Lijo Lazar 2025-02-05 4964 amdgpu_bios_release(= adev); 6e8ca38ebc9b13 Lijo Lazar 2025-02-05 4965 } d37a3929ca0363 Orlando Chamberlain 2023-03-03 4966 =20 8a2b51392ac4a5 Lijo Lazar 2023-10-04 4967 kfree(adev->fru_info); 8a2b51392ac4a5 Lijo Lazar 2023-10-04 4968 adev->fru_info =3D NU= LL; 8a2b51392ac4a5 Lijo Lazar 2023-10-04 4969 =20 b5aaa82e2b12fe Flora Cui 2025-03-14 4970 kfree(adev->xcp_mgr); b5aaa82e2b12fe Flora Cui 2025-03-14 4971 adev->xcp_mgr =3D NUL= L; b5aaa82e2b12fe Flora Cui 2025-03-14 4972 =20 127ed492ad2df0 Lijo Lazar 2025-06-30 4973 px =3D amdgpu_device_= supports_px(adev); d37a3929ca0363 Orlando Chamberlain 2023-03-03 4974 =20 7b1c6263eaf4fd Alex Deucher 2023-10-17 4975 if (px || (!dev_is_re= movable(&adev->pdev->dev) && d37a3929ca0363 Orlando Chamberlain 2023-03-03 4976 apple_gmux_detect(= NULL, NULL))) d38ceaf99ed015 Alex Deucher 2015-04-20 4977 vga_switcheroo_unreg= ister_client(adev->pdev); d37a3929ca0363 Orlando Chamberlain 2023-03-03 4978 =20 d37a3929ca0363 Orlando Chamberlain 2023-03-03 4979 if (px) 83ba126a9be318 Alex Deucher 2016-06-03 4980 vga_switcheroo_fini_= domain_pm_ops(adev->dev); d37a3929ca0363 Orlando Chamberlain 2023-03-03 4981 =20 38d6be8199331e Alex Deucher 2020-11-20 4982 if ((adev->pdev->clas= s >> 8) =3D=3D PCI_CLASS_DISPLAY_VGA) b8779475869a26 Christoph Hellwig 2021-07-16 4983 vga_client_unregiste= r(adev->pdev); e9bc1bf7916e00 Yintian Tao 2019-06-05 4984 =20 d155bef0636e01 Arnd Bergmann 2019-07-08 4985 if (IS_ENABLED(CONFIG= _PERF_EVENTS)) 9c7c85f7ea1fe5 Jonathan Kim 2019-06-19 4986 amdgpu_pmu_fini(adev= ); 9e2096baab9add Lijo Lazar 2025-10-10 4987 if (adev->discovery.b= in) a190d1c75c73ce Xiaojie Yuan 2019-03-27 4988 amdgpu_discovery_fin= i(adev); 72c8c97b1522ce Andrey Grodzovsky 2021-05-12 4989 =20 cfbb6b0047448e Andrey Grodzovsky 2022-01-21 4990 amdgpu_reset_put_rese= t_domain(adev->reset_domain); cfbb6b0047448e Andrey Grodzovsky 2022-01-21 4991 adev->reset_domain = =3D NULL; cfbb6b0047448e Andrey Grodzovsky 2022-01-21 4992 =20 72c8c97b1522ce Andrey Grodzovsky 2021-05-12 4993 kfree(adev->pci_state= ); 1dd2fa0e00f17b Lijo Lazar 2025-06-28 4994 kfree(adev->pcie_rese= t_ctx.swds_pcistate); 1dd2fa0e00f17b Lijo Lazar 2025-06-28 4995 kfree(adev->pcie_rese= t_ctx.swus_pcistate); d38ceaf99ed015 Alex Deucher 2015-04-20 4996 } d38ceaf99ed015 Alex Deucher 2015-04-20 4997 =20 --=20 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki