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 1DB243B9610 for ; Wed, 1 Apr 2026 08:30:34 +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=1775032235; cv=none; b=jW8+9JOUXYmgPL6bYKrVNdHnC4614KWz8sWRrJmVkTgmDV0CBVwXTfeSJtFiEBTy9w8LFs7fY1OyKDSGdjlbYX0fSnHeBzALG7zzv0x4G2W1NmS+m9dZsbEc9w5vgt6P+VWRGAfMqy7bxO26zMlZiM4rtuHkgR37UqFGZuCZwKc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775032235; c=relaxed/simple; bh=Kr6O6bswOhBHr+bJOVMjowWiawpJoVxb/WSEfqkgU1o=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=K1u0gdWh/Lhg6o+ZOV485mDKIsjm8PDg3LXrqMEJ8m1QEBY0FE+JwnCapi+CqBSjFT0UUbeRvDa305pQk8/WKgRP3RnuhcnaF4mjf/1Z5fMfGWug3nRDr8jAlIbq5O4Os1b0eKZ++UYsMjgYMmn+WpdsJdi0yVjpLowbfQ1PMTs= 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=A7o5tUIR; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=dRbC8XUz; 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="A7o5tUIR"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="dRbC8XUz" Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6317lUCR1578312 for ; Wed, 1 Apr 2026 08:30:33 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= eeMOgOtlBiNDPKSt1z65z6B7HVy9VlGHw71ZyMGZGBE=; b=A7o5tUIRz4bVhDmo SgpS0zxM4ile5a6ISFA4KULizhyy9TMVuYpOu3cEeUSOmy+wxDODqBOBF0lf41Xn l7OkE5pHPAThwnQ0IgjiYgYFFVqA79gLY0GufYT3iTIUGtDrbG8uUa8AI0GVUXpM Z/x5ynsvm88KSlusl0CQkttUSq68OCYK3d9Gx2e7CX36bJe88ZoxBzPNXttbuIkH h2W082qgW1J/nL3QpAWrFQeg4p854PmsbUS7vaqzR9T81nHDey0akhL84Q281pc4 VEC0/z0ru/9f1RRymsniHUlaYxItg36Nlqbj7PowSadshgQFpCZrLAjvrM4Y+t5H NHSZ/Q== Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4d8k6ku4e2-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 01 Apr 2026 08:30:33 +0000 (GMT) Received: by mail-qt1-f198.google.com with SMTP id d75a77b69052e-50943e69b08so23605141cf.2 for ; Wed, 01 Apr 2026 01:30:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1775032232; x=1775637032; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=eeMOgOtlBiNDPKSt1z65z6B7HVy9VlGHw71ZyMGZGBE=; b=dRbC8XUzYJROoIWcSQb49eQnE3BOAt+DZDZWUqaHSXzzUYCwotO92JydlyDoP3xoit oZ9OD2HqxrlkMr3U97wLJksxBaFazP9XznbufeCrOlFXw1NuTT5nDGN6lhaMXK+uOrCI gfQEeaVqTDbq1f6s7YMQ7cgfPi46YtZa55CconS4+w+CsJpX3+nTS2eeX0BfUgAxKMck tl7iT3glfmvi8m1tDzzXa80U7xcvIw8I4kNgNo49Qhx7jTzNvQZMY6cWUqACKihT96n0 bs5ssPdWoDa4tt9MlwECMcmHMrt7U6Xblt+JsbY02HyrSI5BlL5ttkC5EPXYxqpqYBz5 rTyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775032232; x=1775637032; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=eeMOgOtlBiNDPKSt1z65z6B7HVy9VlGHw71ZyMGZGBE=; b=A5+9Yh7Q5X0Lt4/e/lRO5Vr6hS7Dzwv5TGPuKjjIW3rY0fevh9uj4pZ0btcYisTErb szovIAbitVybmkwjVUronM8x2M755J83GBRrOcmflqdfX4QNBT5G34G84uBSuIS31eCh SAvH8+kbv/fMa5OuOjD/c9/1QtOphZrzS6pBxzN7yHsCEkUHLI/y0WISIqxKe5ItugC4 2TktzqLtI2CYkGbGGrUUkBuhKxjEYcOUhU9F7qwMFZLLeNZ6AozZAkFNsUcMUznPgsVF uZ8+qH3PspvsyUqL6LplaQkQuKBJFuOGcITWwqLHl7UUay7DpaSYZGqsj80Om0Yzc8NO jB1g== X-Forwarded-Encrypted: i=1; AJvYcCWEqQEB5rOg/xELP6pJC1Fx+FjMDpyzKCvjvD+FdwgGEI76MzObdok2uo72iFNkfyI+ksq2xKkFGTUq@vger.kernel.org X-Gm-Message-State: AOJu0YyeAnTElpCfHvt/KKBcpo1IJbbsqGGdLMPTqFisPnk/cVbTiDGy E+PDc4/8vPxaHcNx87b43mbnaPM4qe7h7Hj4f/AjTIzkcMaremP3iL8xXrmvTNEBz1xdUuBmv/q VEzokIKZX6GrmzuVOzXerVIvrkdpEzp2/1XDiFL3K6dMhNycYtRikxQRnv63JBcxg X-Gm-Gg: ATEYQzyuTdFJi+OqqVHuu9Zuu/fk1msncXLCGMk+UDN/WcUHIyKling0Ozk72DYospp VRg+5TDHM2B7lRjqeS08FQq3zZwmXXJL0LSKhc2WlxhltjNN88r5TFqToh++2U72m7TqKTQ9CMp rQ4+t+3MkkRoM8d3uhuavUqPt0l+Xitnb7EvaePX7t2QoPaeHi6qzHvBqXK/FwevMKBHHC/Y9fC E/r2pW+HamA1/HN4q5why1ljrZqfImHXMIB1T1R8sRi2NjnI2RCwKqYcsqoc+pACdYIgUl0fhNj wD5FcLVGd/NU8qtFJKFoE1YoXyktCrEhd9XQRH8get3Uh3YhEg5GJ+9EarsKrFAfBpbSWhvC3WQ JXAsfiGDPGSSoVQQN1IEKNtuvP0Z8uJ8l/X2qPQPhd6csOTR2V+wJGZiSD9OqGSegIkHmJPmhMM KI8M0= X-Received: by 2002:ac8:5f14:0:b0:50b:3489:5495 with SMTP id d75a77b69052e-50d3bd92985mr28169751cf.8.1775032232554; Wed, 01 Apr 2026 01:30:32 -0700 (PDT) X-Received: by 2002:ac8:5f14:0:b0:50b:3489:5495 with SMTP id d75a77b69052e-50d3bd92985mr28169391cf.8.1775032232032; Wed, 01 Apr 2026 01:30:32 -0700 (PDT) Received: from [192.168.119.254] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b9c1b48050asm55285866b.28.2026.04.01.01.30.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 01 Apr 2026 01:30:30 -0700 (PDT) Message-ID: Date: Wed, 1 Apr 2026 10:30:26 +0200 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 1/2] thermal/qcom/lmh: support SDM670 and its CPU clusters To: Richard Acayan Cc: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Amit Kucheria , Thara Gopinath , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org References: <20260330165237.101045-1-mailingradian@gmail.com> <20260330165237.101045-2-mailingradian@gmail.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Authority-Analysis: v=2.4 cv=bfJmkePB c=1 sm=1 tr=0 ts=69ccd7a9 cx=c_pps a=mPf7EqFMSY9/WdsSgAYMbA==:117 a=FpWmc02/iXfjRdCD7H54yg==:17 a=IkcTkHD0fZMA:10 a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=rUcTYHlEmdXW-CG15zEA:9 a=QEXdDO2ut3YA:10 a=dawVfQjAaf238kedN5IG:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNDAxMDA3NSBTYWx0ZWRfXzIOyy6D1Hkdv vSC/eYcQc7qhezQODd30DGfiICScZyfYG4nYwUioW7pBvwlk2+MdlgCYa24LwtzFBtW3zrM+NUq VB+a8R2husBfzOQ5hfsrHPqFD7P0HYupvpfyBLmOmhcDeztYr8h7hudPvYnRyCrMy4mCxG+wRew HG5OLuY7JVoKBc9YdXCwCK20ZcyX0b7iqaAy1+HWVDTG8A+oBNjumq9baSfzc5shx6S7zTYfUq2 pCsHFRUk4hNTgsj9Q3Z3RsGMgiWcnxwfKswnZTM6wiLggYd6L5thWJHcE98/3d32uTJRDhkLaT7 JnAK4/gJbSB8OTtpWodWe/9pZo336GYwiSQrmZpIYtOts0ZpziXqx+zHKIleQbXjFP8LNpywXdG YahH9oz3Z86y78s3Z6mZj1nJuOTiFBF6KS5pQQd58L0gA0CUVWl4BtdHmKGL6D0KwXF1vGhIwJr GrP5wFV/gB8bRmafzVA== X-Proofpoint-GUID: VDlGA-xxGe4FCTqFbtxtQFVWQ-NbJpCf X-Proofpoint-ORIG-GUID: VDlGA-xxGe4FCTqFbtxtQFVWQ-NbJpCf X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-04-01_02,2026-04-01_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 clxscore=1015 lowpriorityscore=0 adultscore=0 suspectscore=0 impostorscore=0 phishscore=0 bulkscore=0 priorityscore=1501 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2604010075 On 3/31/26 7:44 PM, Richard Acayan wrote: > On Tue, Mar 31, 2026 at 10:30:29AM +0200, Konrad Dybcio wrote: >> On 3/30/26 6:52 PM, Richard Acayan wrote: >>> The LMh driver was made for Qualcomm SoCs with clusters of 4 CPUs, but >>> some SoCs divide the CPUs into different sizes of clusters. In SDM670, >>> the first 6 CPUs are in the little cluster and the next 2 are in the big >>> cluster. Define the clusters in the match data and define the different >>> cluster configuration for SDM670. >>> >>> Currently, this tolerates linking to any CPU in a given cluster. >>> >>> Signed-off-by: Richard Acayan >>> --- >> >> Reviewed-by: Konrad Dybcio >> >> [...] >>> + if (cpu_id < 0) { >>> + dev_err(dev, "Wrong CPU id associated with LMh node\n"); >>> + return -EINVAL; >>> + } >> >> nit: try to use 'return dev_err_probe(dev, ret, "....") in the future > > Does "in the future" apply to the inevitable next revision? This would > be the first occurrence of dev_err_probe in this driver and the error > path was just cut-and-paste. Not necessarily, 'in the future' meaning 'in your future patches' Konrad