From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (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 E9BDB1EB3D for ; Fri, 21 Feb 2025 00:47:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740098846; cv=none; b=JQeiFehQnlc8S/Wd2LtJeBQ2oz8zdcSqx3c5GZ8P7GwTpCQh2qKTKvW+ym+QnTQYF1f48aeZXYXxm4ovf0lwVVvn4eN/cR9xV7uexF0sSVf+LYJv48ntg1mt7ZP4jzPY2cpxi2BHlBcEkR7bpvLSdlgwMvXrh18uibsJ5apv8S0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740098846; c=relaxed/simple; bh=AFMZD8xA79SrcF7qdF9M6LpkATxyi3gQbmTSSDjdeMU=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=IBJx/ER6Mw0OVaLdge9lXJ7EJBXNQ230WjJaiFEaBOtI17A0p/BCViEJzmkBwS8wjjh4JYq9oTml/CNe/gkoiZRqRDt2nYoGZgykAfw35k0A9XiAYw3n/MVGF8CydwNJriV4M/mGNi02oEKJVw6CxCk4wRmK3Ylj0XvWh3wREHE= 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=SPbadOSg; arc=none smtp.client-ip=209.85.128.49 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="SPbadOSg" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-4398e3dfc66so13612885e9.0 for ; Thu, 20 Feb 2025 16:47:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1740098843; x=1740703643; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=1uwzXKEnNeEIPu52I2DCxojSGUOWNSCkUNKbC+s6sxg=; b=SPbadOSgWdR2bVUHmyVLYXoeXl5elxDHAqEFCVi8kUac67RWfOTSOTVAjcAXIvg1bj RUjJhIhMSgC1GCisOCUZ30bu/h9ylImmJ5y/R4Yv6TNX4WVzBTrgiDW0DH+n3HbzzH0B OjERvsJxu3TgXmgijW5o2RqaHPqEQgLbXYnETfqQJk8xILLLwa10032crjdT0hYeGlDi rMdakWDjCpL6Bt34zMn7L59lKTER5FTJG1p2baViBqWszVeLTObf1pPdYoNkP4EbDwq+ 7rsMGz1hdw7RgPMaIvBoROQ+XphYhwgXF8HTIgey+STtdeZYz58xltzxrharMTVrAzDO o0Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740098843; x=1740703643; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=1uwzXKEnNeEIPu52I2DCxojSGUOWNSCkUNKbC+s6sxg=; b=Eo3+CrF6SJJOcxoYsB39IJbtvMxekvoP5aB50UDBXe3W60UFogIlQFgTUPAUG6NZv/ SUxCAyN8yWDdN99DBDm0lU82LDBqPIW2umEa7mxQMr3O0kJRxgw+VEsb1aO3pok74Vdj zuFHTeiVcLm/1FfqviMUNzz453XSc7Qpo5ROoZpupuc2vclpSD2agE+rFRMczKE/YNve hxxUsKGgCO74BNtg/ouLZhozT5EH8qp5M6u/ae+fJitidjYPVMuZ+Qd/AiwvOqd8pzaG 1Ljf/ndxwkd0qQPPK+FfI16u1eqXMMBD84T3sejKOWwSycFt9tIP6tC+WjIlUfLWDUHs MDwg== X-Forwarded-Encrypted: i=1; AJvYcCUTQ9KcY1CvYjnA4iyGmV6NEBpoFNW7s8gKJ1Wwg/jo1Uzh4UVYO9d+q/AfWviO3mAu66n0h8glh8qksw==@vger.kernel.org X-Gm-Message-State: AOJu0Yx07wNGaSEexsNQEAVeG+UlLKZ6o9tLhr/q6KnS1oVKxlx1wmzO 7KY9pync2sgR44pGe8R3bL5nXW4nQYTxx4H7cDU21nYwodYAtXYwuRRuJSbE1vw= X-Gm-Gg: ASbGncucI1fZXZguGcwWleT3UDuHpoe3s+lMRTclYHyEMepNJODRp9zeK3UHhFRhy0U PtPh7ZqfVXjcU1h+sF0HIzcRw7qWDJ23dXIwCZMUCB2b7Dgk+eQe/dl7ozcZ/M18bULxKgh/DF5 Zw9y6J9eBbV8ECWacld9NB6DkuVFv14ptE31bifUUXjmbjjdbb+BtJZRa3qwvl2qnS1YLfF4MmT yH4LmKkLbc+A5rirhHqeYSk0kWmahdbK199dSHsNio5vjQNrAtoWkeEJCcT+tNcP9/wD63dfvNZ hKQBRD6FavjVx402VA== X-Google-Smtp-Source: AGHT+IGP2COMTFmCb6NZD7IEUpBby+MJg1OI/LvEAFrSspNS5gqFhyuY2jzlf6BtHJjV5QSFOV34JQ== X-Received: by 2002:a05:600c:1390:b0:439:8bc3:a697 with SMTP id 5b1f17b1804b1-439ae1d7e97mr9688025e9.4.1740098843201; Thu, 20 Feb 2025 16:47:23 -0800 (PST) Received: from localhost ([2.124.154.225]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-439b0371c51sm877805e9.35.2025.02.20.16.47.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 Feb 2025 16:47:22 -0800 (PST) Precedence: bulk X-Mailing-List: linux-hwmon@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 21 Feb 2025 00:47:22 +0000 Message-Id: Cc: , , , , , , , , , , , Subject: Re: [PATCH] ASoC: codecs: wsa883x: Implement temperature reading and hwmon From: "Alexey Klimov" To: "Steev Klimaszewski" X-Mailer: aerc 0.20.0 References: <20250107114506.554589-1-alexey.klimov@linaro.org> In-Reply-To: On Tue Jan 7, 2025 at 10:25 PM GMT, Steev Klimaszewski wrote: > Hi Alexey, > Thank you for this! Hi Steev, Thank you for testing. This really helps. And sorry for slowly getting back to you. > I've tested this on my Thinkpad X13s which has the wsa883x, and here, > when idle, I see an entry, sdw:1:0:0217:0202:00:1 which shows ~26-28C > when idle, as well as sdw:1:0:0217:0202:00:2 which has ~22-24C when > idle, however if I play audio, both of them drop to 1C and do not move > from that while audio is playing. Is this expected behaviour > currently? > > (out of laziness to repeat what I am doing here - I have bottom > (https://github.com/clementtsang/bottom) running in 1 terminal, and > then in a second terminal I either play an audio file with > canbetrra-gtk-play or mpv a video with audio and for the entire time > that there is audio playback, the temperature sits at 1C. As far as I am aware there is some hw limitation resulting in that temperature is not updating during playback/when amplifier is active or that it is not allowed to read temp registers when the amplifier is active. However, we should return the last good value here and not drop temp to 1C. I think I found what the problem was and I will resend the new version soon= . Also, on sm8750 I see the 4-5 degree Celcius temperature diff between two amplifiers (30C and 35C for instance). Thanks, Alexey