From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (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 1282735E92F for ; Thu, 18 Jun 2026 08:02:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781769769; cv=none; b=Qsa/xv0Y6a7Q6m8Z4A2IZ0y5aiRRiH/z/K8SVzUbeo1xAnwM+ZcDuB69evpq3T6jFLptE8VnxXA6+vWd0qoKjIlvLJRTzR6ZZAjJTAafnSft9U/trWPJ+xQ/HZxIxZKlmnY5B0odCD3aXcla3yDEUxpWcetQzVFvB6EWWk+cyj4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781769769; c=relaxed/simple; bh=gIgwg07NhORFUo55PNg3iYZiB2iaD8bFHZEEN6PAB5Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=EbN+jadWTlikPb8pkG6qGD9SXcgYXH48tJD84GAeBGnCDIdpUV4HieA88ssWg2yszxdslpLAxnQJHdMKbHMy/SSVcCXzUQuRdiF5Ue6WKZrcT2HVfbGkICyDMmGNPrM30fONLM9g+cnixV4PMnTtjdT0X2rhQN638U1CGfQgcTg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=oO7GsKla; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=iISC5tfy; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="oO7GsKla"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="iISC5tfy" Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 65I5Xdnx3589021 for ; Thu, 18 Jun 2026 08:02:47 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 19ANMkk1VCbapB4V6x38n8KnLEFh2G12hOsdryCZYaU=; b=oO7GsKlauran9N6W 4Eyq7Ds5xg+WIMIggsGFVyfbnavGi/SgXju1ftFMYVRJ2iUDGB02Tp7POWMNE0cw +qDZh3601E83ynlCU+8FF2aSCD5f+wgvnpeAp3/eJHP+ZIJkNEc1137qaYqan0E4 C2pWVbKcbDPhYoCjAihF6C+0Rn11F3wJX0Q1BEu8zmuaVkcCpBHrhDQVQQEXZEeV ppfUG2OxMyklhPkLMEjXUZfIeA/Sfv2U/Xf9L6KzJO+TAO92nDGjkKZ5+oDNrP7R tc5RUI8etQ81IRZvWrMOjIwGEscPC54t6BsMErezvKaDxCjb/xI6X/WOpoMqQaLG c+5WSQ== Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ev12kjgh2-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 18 Jun 2026 08:02:46 +0000 (GMT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-9181f3cc5ecso371107485a.1 for ; Thu, 18 Jun 2026 01:02:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1781769766; x=1782374566; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=19ANMkk1VCbapB4V6x38n8KnLEFh2G12hOsdryCZYaU=; b=iISC5tfyQLy98xXXn766wpWek9LuvygNcg9IFYTAhwFRHS/+PbJVE1hIOayVONCUMs HYDjLl9vTVp/RGCGpew8UdUXU52ZslOSGCAx4yKZ06tu2KcK0YokpIFPCOrSvP3C/xmU mbv9Fs/4fTy7IPmbkGpnrQWcwBzDoJnHGzQ9io+uueC7FU1+b+kHIFDiVwrvG+ZqfWld jLlZnNoAe47HWeG+kYXnesUMoPCMPlO7P4JT13wNWlImhko1q/Q1k3hWeK7RTh+d8Xa5 M8zqDVNBtgMFsh0WnWQzPiPtK4NUq35aNnIvD2S3uVhe7K3c9llFTfSmfE9tXXhDCBbe DouA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781769766; x=1782374566; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=19ANMkk1VCbapB4V6x38n8KnLEFh2G12hOsdryCZYaU=; b=UfXwbRjFaLenc/dNyHctPxiYjkCuAbU90ld3QMYNpdKEgnP6VtjE1drBqXb3K3/GQU bXlplB6Xw/Ua/p1hSfQRfg7J4e5dECWVJrbI4KRW9GJ9pddJj5ylHmSH7iGbU/C5RjkJ Ov1xdFMbSJupfjxD7LUfhlVzPyDYU/BshYL7lFW2WTOjcxYqX3oop6agxtZTRDA8dnPL YcX6wxCI1CQgeB12Zd4gD4fdk5ET68KGTxtmv2BF6IyKNpUGdAm+dU7LLtIG3xffxJ5z 2Mue3oP4Mruo6HWvpOMC/ajyKpP38FrjrLbrxXF/wMZyKhtP2zYtXlxPf7EfHXjLIbEL oOcA== X-Forwarded-Encrypted: i=1; AFNElJ+vW2hGiAUXxfVRbQnZd34A0ic6pmHqETZ3k4flzd2hGvMDzepZfhL19b/8nJEvny5S1VwWJ0SSC+826KU=@vger.kernel.org X-Gm-Message-State: AOJu0YzEP1x/ePfxaeBn2QLebsfJzuflAE0zfuU8IpudX83aXiQQjaIW ZnOxpFwGq9fc7MtsTPzUyoGct9UpQJ9DhaQbdmfyiXT5C9XqUHNjdbBOo13gLPJJJ8QLOUoRuWh gXIFp8usiKIuBzpM22M0nD9oIfOYmRve0JuRST2ERoRvvHNBkaHmGz/+l80jLudYr01s= X-Gm-Gg: Acq92OF9zcd5fckaIUaqmgHgICLFSA80SYCf4CPXYCa4xtZVPaDxKezmy8PEQDl1LpY Ytc7K9VqF6VXJwuXMASNbVBrHPgNQTcCPUXu6twtBRmTJbj82WYzry9PBpKRdyQRKDZCMZvlfZC 5QDMUkd4c+tohCUgLzjHUMgfmf3B5s88EbcQIpUd/RN4jTxPegozLPksojBEkbZ5i3gkpwHqlkx rOPJgcSaAqlviWrWlu8Y+z72+O4bN+ilAUDZq2YAWg6tDDwMAZwnTlhdCnzidaW2a5smhhTvftu GWztmTwqvEwXw81ihUXMhyQ87uNWxzz6Bc7/2LypKe0A2mp3RMJxUP6gyiMzqnpbaYvki/KgR/4 2Ftq4l1Con7rMBaYiXnrcziZv/bbgP50/z8FbyT4= X-Received: by 2002:a05:620a:469e:b0:915:8f64:604c with SMTP id af79cd13be357-91f082ff425mr440347585a.15.1781769766277; Thu, 18 Jun 2026 01:02:46 -0700 (PDT) X-Received: by 2002:a05:620a:469e:b0:915:8f64:604c with SMTP id af79cd13be357-91f082ff425mr440343085a.15.1781769765846; Thu, 18 Jun 2026 01:02:45 -0700 (PDT) Received: from brgl-qcom.home ([2a01:cb1d:dc:7e00:41b6:7808:5ff9:cd42]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4923a1c3c4esm21638635e9.1.2026.06.18.01.02.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jun 2026 01:02:44 -0700 (PDT) From: Bartosz Golaszewski To: Bartosz Golaszewski , Linus Walleij , Runyu Xiao Cc: Bartosz Golaszewski , Orson Zhai , Baolin Wang , Chunyan Zhang , Andy Shevchenko , Sebastian Andrzej Siewior , Clark Williams , Steven Rostedt , Jan Kiszka , linux-gpio@vger.kernel.org, linux-rt-devel@lists.linux.dev, linux-kernel@vger.kernel.org, jianhao.xu@seu.edu.cn Subject: Re: [PATCH 0/2] gpio: use raw spinlocks in irq startup paths Date: Thu, 18 Jun 2026 10:02:41 +0200 Message-ID: <178176975701.5432.11843620279684767377.b4-ty@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260617154035.1199948-1-runyu.xiao@seu.edu.cn> References: <20260617154035.1199948-1-runyu.xiao@seu.edu.cn> 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="utf-8" Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjE4MDA3MSBTYWx0ZWRfX+gZopqAwPzqV mHWyr/ba6U6dgVyAeMLK0aV6BKv99kWgLhuPyvWCh5oQUo507E3NmxJx008dypI94GIaA8RXXTU WbYTKi7QCcW9yB8yVX60qZJ6ferVc2q7u2xC3J56t4s4+faRq8U3jukQn+55mYYtHdJ2yKRkzD5 nX/e0DzTnJpnqhOPUcr12R9SQltjV4IfaIBbfOJTWmoXU51o0Ay2nfiBiMbL+mBH09juW+pHrcr 3CMYRAgj4j8dR0zCyLUyyrX1fp43XzsctpGcz54D8SknPJGei0/iuvBEFU8qXNjK81Pq7u7f8Dv hxFZAhpyWVvyYhkTjsOpH5C6nWz6QBS1i3XvFlR12dvH+Rklto/kxrPkHl0bu3xxQLzLJ7gfRJe 4Og7g6l8ck9fpaY1/vYgiM0Q0H50OFKw/tBR+v60EqZ9x2UExHcDKco8lUfap8hpgjTOvOWMF7D y5CG51hC99BapVUh8PA== X-Proofpoint-GUID: _w0KiBpqEM3LIxjIHlz8lSz1ucKGqyns X-Authority-Analysis: v=2.4 cv=HpVG3UTS c=1 sm=1 tr=0 ts=6a33a626 cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=FelO9ux0wxsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=CTdToGyfExxhxWjKcZMA:9 a=QEXdDO2ut3YA:10 a=IoWCM6iH3mJn3m4BftBB:22 X-Proofpoint-ORIG-GUID: _w0KiBpqEM3LIxjIHlz8lSz1ucKGqyns X-Proofpoint-Spam-Info: AW1haW4tMjYwNjE4MDA3MSBTYWx0ZWRfX01f1ZJoBuOsP xNpdfgd8yUD2cRJQFP3Rpgb3CGq2g03OracoIW7Bz1AIVC/ZMHWAHP56C7bpGw+Wa1TwKPgsn3B QrD/s+TLKxU7ik94/8LeQKNcmxD570U= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-06-17_02,2026-06-17_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 suspectscore=0 priorityscore=1501 malwarescore=0 clxscore=1015 adultscore=0 phishscore=0 bulkscore=0 spamscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2606180071 On Wed, 17 Jun 2026 23:40:33 +0800, Runyu Xiao wrote: > This 2-patch series fixes two GPIO irqchip paths where IRQ startup or > unmask can update controller state under a regular spinlock. On > PREEMPT_RT, that lock can sleep while irq_startup() is running in a > non-sleepable context. > > Both issues were found by our static analysis tool and then manually > reviewed against the current tree. The grounded PoCs kept the > request_threaded_irq() -> __setup_irq() -> irq_startup() carriers and > Lockdep reported "BUG: sleeping function called from invalid context" on > the corresponding driver update helpers. > > [...] Applied, thanks! [1/2] gpio: sch: use raw_spinlock_t in the irq startup path https://git.kernel.org/brgl/c/286533cb14a3c8a8bd39ff64ea2fc8e1aa0f638b [2/2] gpio: eic-sprd: use raw_spinlock_t in the irq startup path https://git.kernel.org/brgl/c/90f0109019e6817eb40a486671b7722d1544ae29 Best regards, -- Bartosz Golaszewski