Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp75742rdb; Wed, 7 Feb 2024 22:13:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IGaCRkVF+3SWsrO8T+aAsL+Df7sfEbxrxVwjUbKscXaaihryPr49r8NIkyQQ1IDfgajyveJ X-Received: by 2002:a05:620a:4049:b0:785:921c:b528 with SMTP id i9-20020a05620a404900b00785921cb528mr3108810qko.18.1707372813382; Wed, 07 Feb 2024 22:13:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707372813; cv=pass; d=google.com; s=arc-20160816; b=B44PSXu2e2YVaG4g/rmcW9v9GO8OpPfYHocjl3SIxEkwJLVkf45nCiliZ7TgHbEdf2 kYj/kzRoEt3eNf1uL6WuC5GUISUt4NI+AAXeb3/xeIKTPi5t0b51G+vRNbYGAAOfcZMU NpnH7xeJOzb60LxlL70OJ7e8yyL+O1HhfAfPUB6UAZrCzhOapjWkSFtLdTuZdxeOe+At msqh9oblsTg2kW7sdegIcra6LHB1ey79/gTwdVY7XNFJsWsE1jjfqBuSiRTntGArbFkT rHvH1Ez/UdjrYRs2YQKe5IxuxB9y1LVcTbTu+m6oXdEXoutlmJJmbpY6iOxL6jSfrvXS YBVA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=6A7wjqvcLAvwqaWsjdLS0rZnYJKzh+Ri0jsMkL5kBh0=; fh=5tAuEcFDfE0BL4M73+NNfFlVGefOROtLwIevuv/tp00=; b=XKVTyqS2cjBSLcj3SjJJLkQPHkl/3/xWU8oV25i5wqW1+qjHh5j3RdwzSbVDpwMzIe VhzIARnBO3GmjWNysC8U1Eg8WmBe1tEAO13DW9WI+iUqJ1ZIKf9sRMSZdXpNjvFchfXA v5Oo6NJjtzOYVMKDgtePZe8Pxum13bF3dNWObhTSl+hHcmmcEka0uXfEaR0/aW5Q80Ij Mq80xzIa6jtZuVAGG6pFb1z5OJ9KAE0D+QSFiCP8WHr2hl7Q3CogAc/ooCExBHr8t3lg UcM8YXzk8IwD9srlgfTillMXIWA1TbAbRAGmdEvfLPOAt2EwkyyZTouZygg6LZ6MjoGc tDmg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=p+XQ4ddG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-3324-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3324-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCUI/ygU6a1OREE2LOti5YM7x0Lfbeq5uEEpyYa00mEOvuI2KAZobWswv3AHJ8/NlXArc1tX03f/x7rnJR2mNBlO+MXoZOJ5u9aW1LFxqw== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id di2-20020ad458e2000000b0068c886a3260si2602138qvb.480.2024.02.07.22.13.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 22:13:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3324-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=p+XQ4ddG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-3324-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3324-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 135611C23122 for ; Thu, 8 Feb 2024 06:13:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A341867C68; Thu, 8 Feb 2024 06:13:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="p+XQ4ddG" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 77A8D1B7E4; Thu, 8 Feb 2024 06:13:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707372811; cv=none; b=qgcjipoW2u5D8oWIIW4wrB1VOyZWLBr7qzPj2Q7iGqyFW5SyDTUxJCmrNCSp90O8n/7YMfEV3Vakqk4G5ziPWVbkRb8ZqoVZEopkArFGYc5sJv9a5Y0D/nCLrNF5izLrDmebKgdwX5N8OpHKMZjCyGjVjr+KdqezJBvkRzaoYFQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707372811; c=relaxed/simple; bh=nsCkbUSpn4ND+bMVOeVBw6ofU7yKaK/RS9W+GLDO+A0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=S3QCLYMPFHEskLB7iL81CFAW2fI/o00wK8hh5IxDb5M17qL2Xy6X/DOX9Ek8YwtVVch3V3g9nP9kZT+n285We0ZC6Xk19vDz+FZcPz8iMrnDATwKsJ/riSL6C4G1gnkuSvi2JqesKIxs1jGWRFNfOS1Vbr7+vhCVP9zxu++B32w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=p+XQ4ddG; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EB152C433C7; Thu, 8 Feb 2024 06:13:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707372810; bh=nsCkbUSpn4ND+bMVOeVBw6ofU7yKaK/RS9W+GLDO+A0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=p+XQ4ddGNkKzd/pkWukSVBmefz9cJUMcZHu94mL8HEGBafi6UHdqxTAKPzJMkKyfV lIwBHrVTH+HB+3cWxE8ppy0jFMDvmW2gC2wCB7r5iTTCDMmRZoF107Mbv6L2WoxHVg poYeWZcuvSGCvWQcODOtduX2TqME7Zp1kOyevLRRXWJ18f70kVFrPMYPKrfz7ivROQ yCGsDW9KusRqQLMhzD8fFEm2oeRXwCEz9vqtve3x6KxkmrRPf9CKjV0toT89vLAAf7 E7V/mRtAhMloK5YX7b3uDnWDtOW0uqDWYr3zIC+sT9bdmu6as17z7KrkFtVPGrv/to pAH2gZZ/mcaiQ== From: Kalle Valo To: "Rafael J. Wysocki" Cc: Linux PM , Gregory Greenman , Miri Korenblit , Johannes Berg , linux-wireless@vger.kernel.org, LKML , Daniel Lezcano , Stanislaw Gruszka Subject: Re: [PATCH v1 0/3] iwlwifi: mvm: Thermal management fixes References: <1892445.tdWV9SEqCh@kreacher> Date: Thu, 08 Feb 2024 08:13:26 +0200 In-Reply-To: <1892445.tdWV9SEqCh@kreacher> (Rafael J. Wysocki's message of "Wed, 07 Feb 2024 20:08:18 +0100") Message-ID: <875xyzh4ah.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain "Rafael J. Wysocki" writes: > There are a few thermal management shortcomings in the iwlwifi driver that are > addressed by this series. > > First off, the fw_trips_index[] array field in struct iwl_mvm_thermal_device > is only populated and never read, and the code populating it has problems, > so patch [1/3] removes it. > > Second, iwl_mvm_thermal_zone_register() populates the trip table after passing > it to thermal_zone_device_register_with_trips() which is too late, because it > can get used before it is populated. It also may as well use THERMAL_TEMP_INVALID > as the "invalid temperature" value. Both these issues are addressed by patch [2/3]. > > Finally, iwl_mvm_send_temp_report_ths_cmd() accesses the trip tables used during > thermal zone registration directly in order to obtain the current trip point > temperature values, which is not guaranteed to work in the future, because the > core will store the trips information in its own copy of the trip table - see > this patch series: > > https://lore.kernel.org/linux-pm/2728491.mvXUDI8C0e@kreacher/ > > If possible, I'd like to route the $subject series through the thermal tree, > it is requisite for the above one. iwlwifi is getting a lot of patches lately, though I don't know if any of them touch the thermal stuff. But if this patchset goes to the thermal I am a bit worried about conflicts. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches