Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp1066446lqo; Fri, 17 May 2024 09:36:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU+c8o/Z44SmgCQeCU3vK/kZQmBcoy4vu/CeCzeESJi0/VZSuygT6KxcfxPj5PrIH1zwqDmA//pK66siIlBuqgqSwaOyOqZi+q5raaA/g== X-Google-Smtp-Source: AGHT+IGJbRtVHnZQzQzvoF9USYg7xqafoOMNOmSGAxpKhKbbOzEQf5r9eWbQucPrKG8iUy7CEazz X-Received: by 2002:a05:6e02:1cac:b0:36c:5154:8ce4 with SMTP id e9e14a558f8ab-36cc1503128mr245882275ab.30.1715963808846; Fri, 17 May 2024 09:36:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715963808; cv=pass; d=google.com; s=arc-20160816; b=NuOtrDaojtRx7/RIrQ5nKAPmL9lSyWI5AeDMRahLO9lRKVRpNunY5pVkj4u/yZRknn QHdCZ1WreX/dgLKbHWVJSXQ9tgTSjLKBy5JbXmRH7HruOCAejuZ0E4yId1r71SLdKID3 bYizMsz0Qx0c3vNgpg0YWtv127jCi1bR0U5hEvE5K47kqWJhXtqPHU+gMXWIf5KnAblC Tv0krjRTRu3EUCLkZE5G7TzWh6/5AoZzRNBKJ0XMC6KG2GGRzfU5jwsj3312yv1NzSyj hFakn6dBwm3is7FP/4df7gs9ohHlWoUKS5WhEQHjkMqOzbxYjycC5jGdJGeCA869D/bt fBvA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=KfWAdsD62pu0Ea+pW5rj7BJjge2BbnNFY9DWFyvD4r0=; fh=lZrsAu9apzjsBCk8U63V0GAcRJ3oDG1fuDPRR2D5I7o=; b=a2VksNZ06VTHSY0noG9HZWYinBWijqSiwZUdszfZzoX4kYDYCH/YBt8YetiX7ziB4u 5d48BLz6ccOqtqpPW70qgH9GGHcMcIRtksXqUMZS9fVym7GViX68/5RV785kXoOfaYN2 diS9nadqJ97jGqIJ/IyWjKQ0NN5Cg8AYnsFAJlIceVSIieRaibNQmuzOkCt4Wv7eEZPM pLhe1sSA1bzCE9QNfoaugS0bFxmt04hTgA83U7OF7xZRi/rPup9gGonV56HWEtoX6aYc rSG3qloA+MjkdM4MMWjuZQG4HLUB9jueKlkKBaGMpz/l4mjIhjKDp02CR9+YGIqjvUsk wupQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=T8gOTyD+; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-182354-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182354-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-639c904579bsi15162514a12.331.2024.05.17.09.36.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 09:36:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-182354-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=T8gOTyD+; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-182354-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182354-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 35BB3B20B83 for ; Fri, 17 May 2024 16:36:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 10F3C13DDB4; Fri, 17 May 2024 16:35:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="T8gOTyD+" Received: from mail-oa1-f41.google.com (mail-oa1-f41.google.com [209.85.160.41]) (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 C538D13D8B5; Fri, 17 May 2024 16:35:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715963751; cv=none; b=IZ6KnqmowPJzep1jxqbW5VtZDwSxP78h5as7hbkM3CcybETyreKmvUtmp51fXN3xbyF5i6IpMrBTgmfqf/z+ghEP2ESlCA3qF8/2RaGg6LiHze74CnDRhIHQ6qnRjOhXftslh2s1qOTCpR/73IVpe0aMoNYAXqhwR+vUsef8KEo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715963751; c=relaxed/simple; bh=nkkHDHiaBHkuvFvLajlWirgD2OoCHK6D3sY38PCGXTE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=S7Vtp49UqI4CVdIGQoJN6bvMDDM6o/Q2s07ov21f2/HFs9LZ+fVSPs9a7EU0D8/1WiNAO17R/hbF/ce4h+oNlLQfWCuC2fLftzCIsL3j6tA0dYmqSpa5oTejcOxAXdHHTSwEAxp6ufleTCBnpxbsV39IDB6T96Bs1lpEmCItTmE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=T8gOTyD+; arc=none smtp.client-ip=209.85.160.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oa1-f41.google.com with SMTP id 586e51a60fabf-2454154e53aso823037fac.3; Fri, 17 May 2024 09:35:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715963749; x=1716568549; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=KfWAdsD62pu0Ea+pW5rj7BJjge2BbnNFY9DWFyvD4r0=; b=T8gOTyD+SseLiKVkah1W7Vla0Z7+SjZD2tzf5RFIRkX8K04YnkB3/r0iQX3P2OrivI H7zFhn0vZaJjj54iwGw473SXo4WgdJMmJZNDHhm58p5jG6KktBTJLCzwpvjJqGIBAiZr LbwxeQB1Ub4cH1uiZ8TKKWcbbxyQGO5OTuah1+bXu010y3FEXdUPHlTsS+neZ9dxj9tj NAgwrwabnSDbMCuTvIjj33yhBMCXzY2gOqNFMqAyHB01rX3qj47tLkHJOR1U1jerrZ38 vP8KhL1J32dYM9BDwxJ7OMER+K3YVOHDC1NT/JMINhTqECt1w+uuuJyQbsnOe+ADhg4g vavA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715963749; x=1716568549; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KfWAdsD62pu0Ea+pW5rj7BJjge2BbnNFY9DWFyvD4r0=; b=HyJUMgwQiUs7MtLPzzCfnqpqMw2aDuUR7AIsSwnz+kNluudHuLFBIuD5y37IDwITBJ s2/Mk+1qedQb2aPMIJ+jqcgnRkJkL3jAhlXfoNRlPIUSw54rBtNzFOcfBf6QLKVSnyfX BvraFk7iv+0Zn8z8i61nZkA2FRq2SPpQPqvzck9ac6IuJwN3zNsPN3UrI0aXu1Jj4Jwc AnW5u1DsFi6EDeMydKEnD4PBOkZ1TV0OBrYOaChF72rcOqQyS8tPUZWF7QxsrCHKjgoO 1XQlTI7uGpuwuNrTUDMsBTCvmNTYOPIu3fBiv1VkuM1hAuGulesY8CzZ8nCdrLzJidKL n+qw== X-Forwarded-Encrypted: i=1; AJvYcCWgyLdekD4ywHbmqsHm9NQhNicPDtzQJRyRm6IKa3ek6BAnfdXYBIpBF8NtREszqVMj9ibl/52x4vCbVUuAFeRTx2XK2CFVdIv6YGsPvSwau4jhQ+srC+Y32eZgSHhdZOv5SJSTSmnpDn1R+hw= X-Gm-Message-State: AOJu0YxIKKwJkoOO1OqWQiuNgxKL8lNJ3Odbw+cgK8LultQvQoSxFyW4 uSxJGrZTRhy9DLqeMTH1xLIyhED6tFpx2WrEH6JcbtQ8YtxoldacEUfotsnRHKdwAReB2aKDW8d /1fKGnoKrNP8uWMHfHZLvuXwDxqdDZurzrQI= X-Received: by 2002:a05:6871:5b13:b0:23d:5bd3:f74c with SMTP id 586e51a60fabf-24172a43160mr24828261fac.10.1715963748671; Fri, 17 May 2024 09:35:48 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240517141655.2797-1-trintaeoitogc@gmail.com> <87r0e0fq1l.fsf@kernel.org> In-Reply-To: <87r0e0fq1l.fsf@kernel.org> From: =?UTF-8?Q?Guilherme_Gi=C3=A1como_Sim=C3=B5es?= Date: Fri, 17 May 2024 13:35:12 -0300 Message-ID: Subject: Re: [PATCH] thermal: adding check if the thermal firmware is running To: Kalle Valo Cc: miriam.rachel.korenblit@intel.com, rafael.j.wysocki@intel.com, daniel.lezcano@linaro.org, johannes.berg@intel.com, dmantipov@yandex.ru, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Kalle Valo writes: >> In the dmesg is showing the message "failed to read out thermal zone" >> as if the temperature read is failed by don't find the thermal zone. >> >> After researching and debugging, I see that this specific error is >> occurrenced because the thermal try read the temperature when is started= , >> but the firmware is not running yet. >> >> For more legibiliti i change the tt.c for return EAGAIN when this was oc= currence. >> After this change, in my computer I compile and install kernel in /boot >> and in my dmesg the message "failed to read out thermal zone" is not sho= w >> any more. >> >> I would like to thanks for Rafael Wysocki f= or >> your suggestions in mu first patch that results in this another patch. >> --- >> drivers/net/wireless/intel/iwlwifi/mvm/tt.c | 10 ++++++++-- >> 1 file changed, 8 insertions(+), 2 deletions(-) > >Please read the wiki link below how to submit wireless patches. For >example, the title is wrong and you haven't signed the patch. Okay, thank you for your explanation Mr. Valo I will fix the patch and resend this. Em sex., 17 de mai. de 2024 =C3=A0s 11:53, Kalle Valo es= creveu: > > Guilherme Giacomo Simoes writes: > > > In the dmesg is showing the message "failed to read out thermal zone" > > as if the temperature read is failed by don't find the thermal zone. > > > > After researching and debugging, I see that this specific error is > > occurrenced because the thermal try read the temperature when is starte= d, > > but the firmware is not running yet. > > > > For more legibiliti i change the tt.c for return EAGAIN when this was o= ccurrence. > > After this change, in my computer I compile and install kernel in /boot > > and in my dmesg the message "failed to read out thermal zone" is not sh= ow > > any more. > > > > I would like to thanks for Rafael Wysocki = for > > your suggestions in mu first patch that results in this another patch. > > --- > > drivers/net/wireless/intel/iwlwifi/mvm/tt.c | 10 ++++++++-- > > 1 file changed, 8 insertions(+), 2 deletions(-) > > Please read the wiki link below how to submit wireless patches. For > example, the title is wrong and you haven't signed the patch. > > -- > https://patchwork.kernel.org/project/linux-wireless/list/ > > https://wireless.wiki.kernel.org/en/developers/documentation/submittingpa= tches