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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D6876EB64DB for ; Tue, 20 Jun 2023 16:41:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229864AbjFTQlh (ORCPT ); Tue, 20 Jun 2023 12:41:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229454AbjFTQlg (ORCPT ); Tue, 20 Jun 2023 12:41:36 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05F8DC0; Tue, 20 Jun 2023 09:41:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687279296; x=1718815296; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=Ixbk6Is2biXcZua8H62STJO3xjYtt2Imiuj7LbOAMf0=; b=YRidF2qtcMHUUCSDF55mqav/cTHpZyUphHHo/v5i1lNkQ+W0Eby9nHYV MuVyO9pXiAT59lj23oUJt+l3Klr3XPWLJG9NQx+DXjQnpRl6/icF+cl+A RS7WInxh4fwhVICYC7pMF+hmVespcrRD3f81xZGLRCfXkg+cXrM7eNteu erZelrLMmHvuBtRbG2p/M4gUSuh761kb45B4gM4bGVMp4IyCHMlV9VtaF mgkEOKicot/8x8umWWu0CiHcLnt4Ss3r24+upJXOGvHl0gtN0xUcKfnXb BAPIla23RyxNJMqOBJoTxU/q+F1GEgDVZKhpxovHhFBIAUBqrS7aAykrL w==; X-IronPort-AV: E=McAfee;i="6600,9927,10747"; a="358785603" X-IronPort-AV: E=Sophos;i="6.00,257,1681196400"; d="scan'208";a="358785603" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jun 2023 09:40:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10747"; a="743838745" X-IronPort-AV: E=Sophos;i="6.00,257,1681196400"; d="scan'208";a="743838745" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga008.jf.intel.com with ESMTP; 20 Jun 2023 09:40:24 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qBeOz-005Ikn-2E; Tue, 20 Jun 2023 19:40:21 +0300 Date: Tue, 20 Jun 2023 19:40:21 +0300 From: Andy Shevchenko To: Linus Walleij Cc: Naresh Kamboju , Bartosz Golaszewski , "open list:GPIO SUBSYSTEM" , Anders Roxell , Linux-Next Mailing List , open list , lkft-triage@lists.linaro.org, "open list:KERNEL SELFTEST FRAMEWORK" , linux-mm , Arnd Bergmann , Shuah Khan , Bartosz Golaszewski , Andrew Morton , Pengfei Xu , yi1.lai@intel.com Subject: Re: selftests: gpio: crash on arm64 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org On Tue, Apr 11, 2023 at 10:57:28AM +0200, Linus Walleij wrote: > On Mon, Apr 10, 2023 at 11:16 AM Naresh Kamboju > wrote: ... > Add a pr_info() devm_gpio_chip_release() in drivers/gpio/gpiolib-devres.c > and see if the callback is even called. I think this could be the > problem: if that isn't cleaned up, there will be dangling references. Side note: Since we have devres tracepoints, your patch seems an overkill :-) Just enable devres tracepoints and filter out by the function name. I believe that should work. -- With Best Regards, Andy Shevchenko