Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp785406lqt; Fri, 19 Apr 2024 10:16:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXDd0FLPlILRVrD4Q/4CHbLi1dWJ4dG5V+HExkdGgsVG9rOYmVbSM3ctKS1XGOlH2Athn6FEoV7NWPb+T9LQFuUKv3b5AgpXCgpcGHqBw== X-Google-Smtp-Source: AGHT+IFbU8YGZAaO9MsXyqKSFgXdkCA3EblqLiDq6meDcSo6cfZ2DQhBGobjbeissiUINEVr24RN X-Received: by 2002:a17:90a:df92:b0:2a5:16c2:8551 with SMTP id p18-20020a17090adf9200b002a516c28551mr2852583pjv.19.1713546982269; Fri, 19 Apr 2024 10:16:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713546982; cv=pass; d=google.com; s=arc-20160816; b=isMdSzt0veh75BmNK4avxopOSiuq/sheS8HkgQ8KN/rD8kVaX/bAfCQES9I1/gznpC vb1lrJR6pCS8g7GYeGEDTZZXS+uXMljUhJLSHlQuk+642a+nT+uUryJ6StaLYQ2VayfY qBlRmrqgjAM/Wfi/664v5PV3u7UYhBJzERK9ND2XGXmkvXmgu9zZndddflTboJIvnylc D08Wh3kZ3GU2xOISG+a9jet1A1dg3tXhMmtSGi5Ltv6ui15dpkZ3C4cVGurwFVVmJVdb kxtiHJKlMRQm7vZhukO3FVOq3yGSg2+G+a4+wtYJCI0dYRu4R69hxU7QeJMNcf2P5fZh AKsw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=LAlXzq9EHUU8qNkZHydXYFdoM3fVEYAZj5YpBV6xNy8=; fh=h9Y+DzGUd2X7EPMGtfeJ2q+NxVUgGb+T0WYh8THemuw=; b=txn37QAPOi1bVRGIUFFd8i8k1vDOyo9GUkTe04gjB6NGeTgjYBaVA3jNwNJ0dlTxIU xrxpi9v5Pg2YFmWRbZkI8sqvG7HD0h7PWbcbfYiJo3hYoc520NVwXzU5KnLYJFln4xEc wuJnEvl1LgIhgrc/41DFonA6mEWtS2ib1L8O/PlAcD3qT3Oi8uHP5cTkFI9hlw6xLwHJ 4HO5bgFm5jVUsfGMyTQe5pZUQ1syFsQHA0EioenIShmee5iDe6GSlUFtizmqv/VoBrKd DYXSWwsSNkV3ve4jBEMRZdlRhptmAbKSS/8O6jstq4WxjdGTlzELc9q1ye9Gju3n4LMN RLrg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Qekj9SK+; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-151470-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151470-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id y14-20020a17090a600e00b002ab9a73dde9si3643481pji.167.2024.04.19.10.16.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 10:16:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151470-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Qekj9SK+; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-151470-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151470-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 5F2E2B22DF4 for ; Fri, 19 Apr 2024 13:27:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E8C2127B7C; Fri, 19 Apr 2024 13:27:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Qekj9SK+" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (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 2415685943; Fri, 19 Apr 2024 13:27:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713533267; cv=none; b=CzAQ2elanqSEnj21G8JJ5ktXqD2r+lbOyyqMmQSSeNAq7zUkaVIZTk1uD90PR/zjMNMp4qgQeQdET83EoQ7dpSjvFQb/rvCINFN6lNMC2pAoD+CyHr0le6TawErGDuWnM0EVqSIomNyw1eEzATDuP/+rlr0bg7ydPQY7C/65b1A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713533267; c=relaxed/simple; bh=tAjbLsXIapgYTL9f7raZF2mp3g+wwb4J9qj9tlHlRZE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Iwq8khHrohCRHEg+QJeF2g8pFhj245us4ke+Qr6AlTo+RNIOQGS4jA6VcK7e0R5mcNbGckKnfSupiCyVTNa7OAu575+l5fJ76TCHzU3XVFhD1Fq2MGMAvpPCc/Zovog3ZL02ymPgZ7sWkTL1iVkbpcF40KLMZXwaJM3kP1BOOj0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Qekj9SK+; arc=none smtp.client-ip=192.198.163.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713533266; x=1745069266; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=tAjbLsXIapgYTL9f7raZF2mp3g+wwb4J9qj9tlHlRZE=; b=Qekj9SK+/zK4PL8oJ97/ZmfmuTsNXRmYLpFDa1J1SCf1Q9yGarfIuqkr MT9DdL+eONuaEHSK9R16mA6JP5LQLA5vg6qVVooGcM/DvuAxIuuK0XgnC Va3yyb3Zgn+5UoRCuyHvxa5k7/67+TOms+tn9zauN+lvaCfCe1CMARm42 diEDaVaG8IwFVhWjAqLjZtXRiqIV2LutaTv/fGJ8GuLPUhVL1BUjzFuqM uQeX5f0uC/aAu0g7gD+J5ttXtbrNCrPBbLPSFCK892G+019BGqaq2hZ3V w+/RfXu3gx1S2B8X6vSx0P0VMQuSMTGXxyi69Q9//WX2cjkIzIf7yp8YR Q==; X-CSE-ConnectionGUID: fqTkFCcZQaKoK1wI+CP/vA== X-CSE-MsgGUID: 6kXZDVLbRiKTjT/c2l7fUQ== X-IronPort-AV: E=McAfee;i="6600,9927,11049"; a="20524795" X-IronPort-AV: E=Sophos;i="6.07,213,1708416000"; d="scan'208";a="20524795" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2024 06:27:45 -0700 X-CSE-ConnectionGUID: 0giGa5KkRW6LbE4k6icGeA== X-CSE-MsgGUID: m+WgrNILSK+WJGx5ZDemgw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,213,1708416000"; d="scan'208";a="23835138" Received: from smile.fi.intel.com ([10.237.72.54]) by orviesa007.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2024 06:27:41 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rxoHC-00000000jGq-0TsA; Fri, 19 Apr 2024 16:27:38 +0300 Date: Fri, 19 Apr 2024 16:27:37 +0300 From: Andy Shevchenko To: Jiawen Wu Cc: brgl@bgdev.pl, bartosz.golaszewski@linaro.org, elder@linaro.org, geert+renesas@glider.be, linus.walleij@linaro.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, paulmck@kernel.org, warthog618@gmail.com, wsa@the-dreams.de Subject: Re: [PATCH v3 00/24] gpio: rework locking and object life-time control Message-ID: References: <02a101da9227$bda04cb0$38e0e610$@trustnetic.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <02a101da9227$bda04cb0$38e0e610$@trustnetic.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Fri, Apr 19, 2024 at 03:03:54PM +0800, Jiawen Wu wrote: > Hi Bartosz Golaszewski, > > I ran into a kernel crash problem when I pull the latest net-next.git, and > finally it was found that is caused by this patch series merged. Can you bisect further, i.e. which patch (now a commit message) is the culprit? > The kernel crashed because I got gpio=0 when I called irq_find_mapping() > and then struct irq_data *d=null, as my driver describes: > > int gpio = irq_find_mapping(gc->irq.domain, hwirq); > struct irq_data *d = irq_get_irq_data(gpio); > > txgbe_gpio_irq_ack(d); > > The deeper positioning is this line in __irq_resolve_mapping(). > > data = rcu_dereference(domain->revmap[hwirq]); > > So, is it the addition of SRCU infrastructure that causes this issue? Do you have a full traceback / Oops message to share? -- With Best Regards, Andy Shevchenko