Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp666235lqs; Fri, 14 Jun 2024 01:47:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUAHB7Bt80c9S3ycsCKOwmy9jqe9x+334R+SwsUmrWdy0QdtszzzcxrKbL7SDcgerl3dz6Sy7EL/g0VMtgVyhn29WuFt3prtGotLooq1A== X-Google-Smtp-Source: AGHT+IEOrlyOivY3v7cafH9+8UWGRsmNZ8yatY2Jphms9CjQ4u3zsfL9s1HtQFEt/H3MiGQNb1Id X-Received: by 2002:a05:6a00:2716:b0:704:20b3:fe21 with SMTP id d2e1a72fcca58-705d714b66dmr1981657b3a.11.1718354836540; Fri, 14 Jun 2024 01:47:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718354836; cv=pass; d=google.com; s=arc-20160816; b=CL+RPv+eVw5oK4f632OEXdFH6aviSxLWS8ERIwhohqTiq3ii6RAam4hIGisBLmxwxP B+hY2u1SAct7erjrfzxqxfLdpi2spUHTL53L3gQ4vUSiwm87ExxqfT3PU5DNgnpqaKGu uMDjdllmOzU6E0Di2SXtgVkjYdcw+bMzXHtv7aJ/GCPt/nt8nzVTgyLth/fX77sTILEK JODIQ8gKzzU7CaqbhNp4LS9F3/HbNcyanD1tsj4xMekq9ahqIuhJWVDsE31kD+geF3Ug nYmlwkuPVhL4br7j8eGb6el+e/s6I0GMcCGVbDRNkT0uui8adaEHSnarsl32+D0e9+KM DxbA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=pCUM5zB/whIY+F5E3NPWVek5NaTuOm+4yywidCzp4Os=; fh=zE5SSQ4x5OVzLpJqXDxzy2QEQj0ygG3myM9JyxrZs8c=; b=DlSE6CrIQXWrjWfaTIepxpsXHDpTsAG3uzO7ORiMQ7gRNkk2fJFH5RamgnOv5HZfZ1 sr39pVx8Las8i/84Ux2RwbaLUyVwqySHt5jG+zeRsVzAWQjSfbNEl7LVlQYSrPQ8nwKA /0ENN5/yokiGpMGRyKq4+s6/NuxJCL2ldgYSQBFPg4kfq4mV3Gk4U6rcc+kJIUeA1h7u o+Pcf/v7ZU7hLke4iq/el2LQtpwuqC8xq3SOTFVRasekoevXKadn/EqYgP4AcyfJHQQG gY9KfJ+YPkTH2wuXFLp9nE7bSOZjjAunLS/4nTA8kyfnYTX/vpebCfg3X45m4Ua8oRFZ uCYw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RMtpL1ne; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-214546-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214546-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-705cc8f9a24si3070046b3a.72.2024.06.14.01.47.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 01:47:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214546-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RMtpL1ne; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-214546-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214546-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C102528D45E for ; Fri, 14 Jun 2024 08:25:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2B9AA19004E; Fri, 14 Jun 2024 08:24:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="RMtpL1ne" Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6A5281494B3 for ; Fri, 14 Jun 2024 08:24:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718353460; cv=none; b=kf3x2rpS52UiKRyC2KNeUILz4nEv59z6uf09eo5SS/DuWIUarUa1wgXq1tpuytsSS7DEZQFOjr3MsX+o+/ySOIVaO9c3zHyVeaEReRMoasjiQk+QbVGS9BhU1PTRiG3+l05zaiJheAwCx4y+Op0FV0I/ZJqBbUxPBDCP40iRCIM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718353460; c=relaxed/simple; bh=fv0TaSfIqslUmjuOoZwpyiDbVyDeYNBKgbCqOA67DE4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=CQQFkfC/1x86/8LG4mW1zYR40drXZBEAQ7fQ6oDhE78M2bYz33oP0Lc96ar/azo/mYn3X3rj8x8uz+oa22tky3KA2xnNFajpM9ZCO3rP0zyTd20YJmTMxttcm6UFcWCrWlP+M/7Jt3sv/fHYHti0S+VM8CyVWlvnEGZ0cyBCLCo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=RMtpL1ne; arc=none smtp.client-ip=209.85.218.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-a6f1cf00b3aso297099866b.0 for ; Fri, 14 Jun 2024 01:24:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718353457; x=1718958257; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=pCUM5zB/whIY+F5E3NPWVek5NaTuOm+4yywidCzp4Os=; b=RMtpL1neE7BwaN2gMr0bfP+03xygkNktpJ74oOwxhR3ctp1gtpk4lwIdVjlIux2TW1 V/VF209iUNwt0zRUqyswJgmuThAuv2XlL0tGJVj3kFVLuCDOG5I5CELjuxDdWiigqULt OpCfPQ12DWonGU00nKup6Ozy/aBxtmydix+z8NkwnbFvkRKiTcsbtrENo6G3VZJX2qu+ YdiL4q+5us0kyjy3ciABPuC6LoJTYijv6t8TUDXg1YjrGPnnScBZ+36D08FiDpBSu2h3 DecwZ8ftmXi78xzp0WD7scJA0Rcfg4+Ch0zhMKrzaGgd0/tBbIWV16LIYK1bKLtKIEAV s7dA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718353457; x=1718958257; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pCUM5zB/whIY+F5E3NPWVek5NaTuOm+4yywidCzp4Os=; b=RMF29UWYWPnn3/1ozcAYqbqUf/mNP5wmmv8dbzQONeUnUeACMJnh6D5HkzszkAMCWe BR1p96DOOlaXozvLf5w+k78vQWTxEOhiMIlOlv66ILpvoNYq/75lyTg/tUf9ePN8dNsn jJQE3rHqAkZ/VYVD1WImdKKePv8nL+cGnSRXstw1KcOXya6uEHflNx2dsqbw/xveCPSI DUmnaGxz/6vHctkU488pFHn5LafyDhZ47tB662SMT0mg6Ebj0FaYMJbe3kpoZxgbynvm 4I560Ysx0u0SOD8ZhVjgwzYhj4Hv+eorYeA7y9ps4vZk66wLK35uU5Rw/MlsgYFgXLH3 tbRg== X-Gm-Message-State: AOJu0YyPKrRENh2dPaSh4LWfbd50NK8pddm85pD55fAl6xRmnbWw1DW1 9uizXv/iUXXDnHDq2eAEGRusmcm90vJdFbbhxOxPYvAFASd+yuuSz4dnRsdBOho= X-Received: by 2002:a17:907:9805:b0:a68:e681:be2c with SMTP id a640c23a62f3a-a6f52414868mr385966266b.20.1718353456776; Fri, 14 Jun 2024 01:24:16 -0700 (PDT) Received: from [192.168.0.18] ([78.10.206.163]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57cb743adacsm1946396a12.86.2024.06.14.01.24.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 14 Jun 2024 01:24:16 -0700 (PDT) Message-ID: <672b6156-e425-4f3b-86f4-02a34cab2b67@linaro.org> Date: Fri, 14 Jun 2024 10:24:14 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/4] soc: qcom: icc-bwmon: Allow for interrupts to be shared across instances To: Sibi Sankar , andersson@kernel.org, konrad.dybcio@linaro.org, djakov@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, srinivas.kandagatla@linaro.org Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, quic_rgottimu@quicinc.com, quic_kshivnan@quicinc.com, conor+dt@kernel.org, dmitry.baryshkov@linaro.org, abel.vesa@linaro.org References: <20240604011157.2358019-1-quic_sibis@quicinc.com> <20240604011157.2358019-3-quic_sibis@quicinc.com> <5e5f052b-df59-47fb-aed0-10b4f980f151@linaro.org> <5df5dc6b-872f-34c5-a6d2-a64f9c881193@quicinc.com> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68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47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <5df5dc6b-872f-34c5-a6d2-a64f9c881193@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 13/06/2024 19:02, Sibi Sankar wrote: > > > On 6/4/24 12:16, Krzysztof Kozlowski wrote: >> On 04/06/2024 03:11, Sibi Sankar wrote: >>> The multiple BWMONv4 instances available on the X1E80100 SoC use the >>> same interrupt number. Mark them are shared to allow for re-use across >>> instances. > > Hey Krzysztof, > > Thanks for taking time to review the series :) > >> >> Would be nice if you also mention you checked that it is safe to have >> both devm and shared interrupts (so you investigated possibility of race >> on exit path). > > I didn't see any problems with devm being used with SHARED when I posted > it out. After your review comments I went back again to vett the exit > path for races and ran into an pre-existing splat [1] but the bwmon > instances work as expected on module removal/re-insertion. Using devm and shared interrupts is in general sign of possible race issues and should be avoided. Just "not seeing problems" is not an argument for me, to be honest. Best regards, Krzysztof