Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp8116103rwd; Tue, 20 Jun 2023 10:19:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ42VAc1NCMqA7itUBvQlKW7D63Gx7Pvwk7wX5QTzonxAGcJY/DGExJV3Jky1IAheDKSS6DF X-Received: by 2002:a05:6a20:a10c:b0:11f:c1a1:8c with SMTP id q12-20020a056a20a10c00b0011fc1a1008cmr10315249pzk.54.1687281574768; Tue, 20 Jun 2023 10:19:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687281574; cv=none; d=google.com; s=arc-20160816; b=qEEG/XnWBwmgLw0INxHsn8ELfzDXCNhxi3KNxjUvLfLXcJcxt/DKLp4UEibKSlhqLV qcM9yUoXrCGNqdM49C7+1RejEe3Gqa1lVFkn1U3HRjA6DMl9rLcIRntvzu30g3qav4GW U2c0uU00yMVhImlorECseCgC6PQ6bdOTQ8KuYEX/lRHUtqgeiaImlHsWYqBmft7w2I+z eeKvgG+nYS5rlXHyAUWT4x85/xaDgzARYPhoZYvsfp3upg1x/z+lfD90DM1DQelKXBpI 7FsScEXc+Ok2v9HDwmd7+nKq/WMqKo9FKG7YJL1+j4NItSRohk3gev2l5WbeQNBA/ynD xhng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=+n4FqAhNwbT/5aOT3MYINL/DLEFIDFNjdIFkRwd46vY=; b=YD/xVC1HZqVHcZhTFwjllUNBcF51xCtFz2Nmb9uuPSLtu1DZAftSJ1698nB3+xyF0v Qjp5BrtBmimGKWLfxdmoLSJz0zhfByDzPihJn4+3hnS8Or9oBHY7mlwoN3xdok0U8m2q OyTJ3rGXz548W0NSU3RoLEPmQuugOX0jpbset3R+IxpGjOXUB8sEOdlkaKQ5DmyN7HI1 ZEUizw6tGoKOnl2gVQf/rxBXpvdUMSeS3JeCahcxNGsX/IrrFOD42KiX2U+omDixDoYg NaPOR6nP5FsaK7ZXBVKSKu/V10MFFcCFDogm6V6xtQ3fNJhfOhZthd+j1YjBAfcj7IkE 2rGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YRidF2qt; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z15-20020aa79f8f000000b006688297f597si2098950pfr.285.2023.06.20.10.19.21; Tue, 20 Jun 2023 10:19:34 -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=@intel.com header.s=Intel header.b=YRidF2qt; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230050AbjFTQlj (ORCPT + 99 others); Tue, 20 Jun 2023 12:41:39 -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 X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 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