From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 4FEEE3DA7F5 for ; Wed, 24 Jun 2026 15:56:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782316578; cv=none; b=S1erlnXyGGCag3Be9M3FoKAV8tI4I7/llDo7QaKV1PK6WPiC/nRJVqZDZv/P9F4qOPey0G6JtRh6y73VA0q7lQso+mHVxJGrZSAlWneXC6dZH7KlwByGyxOyzQmn9DJd3UsLTB+xQt8XBFLktKUcMtTr+xIRK5GWChtlA0pAgbc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782316578; c=relaxed/simple; bh=OIfIzrv8cXjwoKNsROTB/WmCpERrX7Jeow982/fvBB0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=cebak+0uH3zm79oThjyh1KWN9YsMls4/JWqbtoptVLRhUgY1TIHPcHkpb/MqD71pvtFPJvZ7ztIsx+j7AyCKhOqXix+rS1dSqd571AuHKxQkE5uPFTRQ6Aq1GKpYl3hOPomYekt3e+1ORs0HtGDm1QxBNu3uEWtUNByP+QJPQBQ= 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=lz9bvbjO; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=P9rGj5Ss; arc=none smtp.client-ip=205.220.168.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="lz9bvbjO"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="P9rGj5Ss" Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 65OFfJu43300965 for ; Wed, 24 Jun 2026 15:56:16 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= 9bR2ocqQMdp4hN0L3M5pIvBrJtLBQ9RYBOAWa7t2h1g=; b=lz9bvbjOkMHK0fQH Xei8RRt14kG6/Iv720DXi/HJzzyo37lfYpLVZZxEtcy6WQH91J/jdMXqWEC6fzgo JFIFU2IaCvSIHzIUdphe+qIO0273F56Ram0LvWOzV5XsUpRnglT6KQkWB318PydR tWwKuoPJQ237N3ZyTXLZTV8w9WHkaAK9UwkxppH6boguf6GcYDFCHL8f4ifZZMYx dQfb1Jn53l6J9GlMUyQarr7WCHkdvJ379xPFv6JHdYesQF26YQYzs83fDozL1k6q q/qXUifddppRT2zEUGZP5j87/Me+lkVN2na35gUdMKllpA8IQjYjPYUHYC2Mibzp 7JgIIQ== Received: from mail-ua1-f72.google.com (mail-ua1-f72.google.com [209.85.222.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4f05aqb33k-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 24 Jun 2026 15:56:16 +0000 (GMT) Received: by mail-ua1-f72.google.com with SMTP id a1e0cc1a2514c-96722117cdcso267200241.2 for ; Wed, 24 Jun 2026 08:56:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1782316576; x=1782921376; 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=9bR2ocqQMdp4hN0L3M5pIvBrJtLBQ9RYBOAWa7t2h1g=; b=P9rGj5SsZH4CL831fL8NWsTJwelZ/g3SDDx6bfdbtSAsvxnNxKqJREkQM9PRGaqvrp 4da7oKsZPyLnpHmf3kOnDCUoFOO9F8n8aThqb7Rudt7hHu4Sqih5GdivZgVZpGXEmahm VSUw6k7yiWwk0+RqUczugjCk7lKTODB0slKHNPPF0O6rdCKQYhR2ScIEbaC4Lj2A/o/8 BqvyPRZ4EfDzYYD3MsD55HfuLDno/yE6wAE5VOAQXH8a3ZWVSOh/8m4g2kPjKMyVq938 sY6K1fFh8Te+rahQPQWS5kYxoO4SqDCMTbbGdDDsMY9B1osQPBKK+JiXPzyfbl7zUexl PNTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782316576; x=1782921376; 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=9bR2ocqQMdp4hN0L3M5pIvBrJtLBQ9RYBOAWa7t2h1g=; b=OMyGwR9QBQxRsjbpI41eCVObTs9d4tp4zZmnnipJd8wj8B3RzrWKV1pK2BGUu8sB65 xlSELtMZajto8EDf/bAVYBImer5RGyZY9CaFlkOe6LdcmVgvzLlQdly+YCq5lps9y10O U63QNEQEhbYPed7RaeJG1/lBGAc6eJ1PKC6L/DM8o/bGY71PoMrYTCvx6j4WM0vSmGJE KthGjZi2IFw19VtTISygZl9VHFlbGioWxsZdjhUEMTIv/fawJGIq68Uv0oUvwIctiiyr AqQWgZ0iIVt6BqQgU46M/zPFMNXewc6IiQvVrGK4dce+n1eqVtTwblJh2lTKq0s6+wMx YdOA== X-Forwarded-Encrypted: i=1; AHgh+Ro2WJlFHC+UD3zfGc4N079Kw4AsghmxiZODPQzFCoBt/RPBcuYH5+je1KEScxuPE7KVzFUjVAa22ci7uq0=@vger.kernel.org X-Gm-Message-State: AOJu0Yx/ZWcSmwYwTCenopJUKPPHKhHVFEl6C/l0RghzLgb+9WRTAU+j r2yugkWfaNgIi1cPGUKPRxwuaN6sq84PEzSWNcYruzV/eQt7i4DyaIXmT5w8e9Wm5ofHzWdFUZ+ mmiKIGmSaj+XBlmPWr/62KyQm22CxcRJJmmT12QadzrFwSblRQooIQJriusXMPH+gO8o= X-Gm-Gg: AfdE7cnMDO8XtliPOJOYC+4jzvOwTiTA3IDnwJ9B8/9RJE9wal2fIWVfu3JOjV52YkN WFIxdbIkjB96Ah7ButC42MKhu+7esXhOIo+t634zMxTW0jufj9QZ1qtFXZsKkro0ztcn1AGHEYK Km3dsDCFK3WYG18vD66hke29c0prTYJWgEYcRzHzm7Gpcqly93It5SUs0/bcjRg3iLGX6nfZRAM f4WaoHSVZmUvwjZ6XrYu4YGDouUXRege07+Qiaw3seewManKn8AX9/ENwEC+q8A5LwFoPjOCTrp pdaXEXmzVIz5H9p3M6Ce9ig/hUM+Tr+mBuGkC5DuyfjyUqqQg4PlGYt4w8E4DWE0VDdS70g3VWX 7iZKdiyJ6wWcxueNs+VHlBz/y3aGtyw0z1ND62WEozp5/GrtIKOg3C+cDRNTxUV4lM4ZHtek= X-Received: by 2002:a05:6102:292b:b0:631:af51:7d8e with SMTP id ada2fe7eead31-731162122femr2076159137.17.1782316575671; Wed, 24 Jun 2026 08:56:15 -0700 (PDT) X-Received: by 2002:a05:6102:292b:b0:631:af51:7d8e with SMTP id ada2fe7eead31-731162122femr2076134137.17.1782316575223; Wed, 24 Jun 2026 08:56:15 -0700 (PDT) Received: from ?IPV6:2a05:6e02:1041:c10:fce5:aedd:3ea4:36f? ([2a05:6e02:1041:c10:fce5:aedd:3ea4:36f]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-46c1e840f80sm8495036f8f.6.2026.06.24.08.56.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 24 Jun 2026 08:56:14 -0700 (PDT) Message-ID: Date: Wed, 24 Jun 2026 17:56:13 +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 v3 1/8] dt-bindings: remoteproc: qcom,pas: add thermal mitigation properties To: Krzysztof Kozlowski , Gaurav Kohli Cc: Bjorn Andersson , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Amit Kucheria , Manivannan Sadhasivam , Konrad Dybcio , Kees Cook , "Gustavo A. R. Silva" , cros-qcom-dts-watchers@chromium.org, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-hardening@vger.kernel.org, Manaf Meethalavalappu Pallikunhi , Dmitry Baryshkov References: <20260609-qmi-tmd-v3-0-291a2ff4c634@oss.qualcomm.com> <20260609-qmi-tmd-v3-1-291a2ff4c634@oss.qualcomm.com> <20260610-ocelot-of-stimulating-excellence-bcb0fe@quoll> <03d863ee-2caa-41f2-94b5-7332fc930b42@oss.qualcomm.com> <7f1e46fb-15e3-4638-9930-8abc1dd5a778@oss.qualcomm.com> <3cbcaf8c-357e-42d2-91c1-9d1a32c55ed0@oss.qualcomm.com> <9a31bb29-75d7-42fa-b8a8-4155cf85cadf@oss.qualcomm.com> <61765401-3397-497d-a0ca-e9bf9d76cc6a@oss.qualcomm.com> <5b0f1f39-ddaa-4a2e-ab29-34aacc9ff672@kernel.org> Content-Language: en-US From: Daniel Lezcano In-Reply-To: <5b0f1f39-ddaa-4a2e-ab29-34aacc9ff672@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Info: AW1haW4tMjYwNjI0MDEzNCBTYWx0ZWRfXzw4kkc4Of2qN sd96ferR2BpRAfSbU91QqDaoKZpTUVVPzAUqUHyTpKONg8QN33+1pHozPoQUZJC8kJkTbflpUUH nT2tUUv1pYE5amtgdxa4bSMjXKDBe0A= X-Proofpoint-GUID: 7GZ7Chzw86rPkBkOk4i18vKmKKerX7rK X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjI0MDEzNCBTYWx0ZWRfX5jApyWD+oAar ii+lppGglImORKzSAnMVp09RwZIdbzSSNmC+0fIzcRk092EPxx86cSNvN3lhfbaM5KUN2yg85iR SaRqwHmI2whUHz1dOvzjW4cJ3lILuaEUekGtWWx6p6bwmanTBibBjn/KkCkzIAO8nhDXnOXRzre e0UzpeuZyh1YjKTpSbJiqbzUqRgvxt9FYaQrzT2QPg1ITkufbWtfNMkQVjQ6zX+xD1qltDDk5el dh/RWV8QjYe+DLz8qigu0uZcFcUApHv1Zo+xJucGG3NzzS10D/QmXSVeTu/j9qS6hZ5TjviXpKO NNq8EGd68UOcB3ZlTliEi+51esTb8RlJpltpv5Wh26tW4itUoKGouyjyxeaHIHfddaetl0MIE8K pPGpQob6lIp9wLfdoNvz4q3kmBwpwQ== X-Authority-Analysis: v=2.4 cv=UphT8ewB c=1 sm=1 tr=0 ts=6a3bfe20 cx=c_pps a=ULNsgckmlI/WJG3HAyAuOQ==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=FelO9ux0wxsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=Zihj0RZBmKQ52BXb7y4A:9 a=QEXdDO2ut3YA:10 a=1WsBpfsz9X-RYQiigVTh:22 X-Proofpoint-ORIG-GUID: 7GZ7Chzw86rPkBkOk4i18vKmKKerX7rK 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-24_03,2026-06-24_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 adultscore=0 phishscore=0 spamscore=0 suspectscore=0 malwarescore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2606240134 On 6/24/26 12:42, Krzysztof Kozlowski wrote: [ ... ] > Therefore I still do not see the need of tmd-names. You know the name of > cooling device, because you have strict one-to-one mapping. There is one remote proc with one or multiple cooling devices attached. We describe those in the remoteproc node with the tmd-names. Anyway, we should be able to list the tmd names in the driver itself if we ensure a consistency with the index by defining them in a shared header eg. include/dt-bindings/firmware/qcom,cdsp.h #define HAMOA_TMD_CDSP_SW 0 #define HAMOA_TMD_CDSP_HW 1 #define HAMOA_TMD_CP0UV_RESTRICTION_COLD 2 In the driver: struct tmd_name { const char *name; int id; bool disabled; }; static struct tmd_name tmd_names[] = { { .name = "cdsp_sw", HAMOA_TMD_CDSP_SW }, { .name = "cdsp_hw", HAMOA_TMD_CDSP_HW, .disabled = true }, { .name = "cpuv_restriction_cold", HAMOA_TMD_CP0UV_RESTRICTION_COLD, .disabled = true }, }; ... for (int i = 0; i < ARRAY_SIZE(tmd_names); i++) { if (tmd_names[i].disabled) continue; devm_cooling_of_device_register(rprocdev, tmd_names[i].name, tmd_names[i].id, ...); } In the device tree: cooling-maps = <&rproc HAMOA_TMD_CDSP_SW min max>; I think that is somehow what Konrad and Dmitry were suggesting Does it sound better ?