From patchwork Fri Feb 11 11:04:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sumeet Pawnikar X-Patchwork-Id: 542402 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AA8FFC433EF for ; Fri, 11 Feb 2022 10:45:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231316AbiBKKpE (ORCPT ); Fri, 11 Feb 2022 05:45:04 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:52232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343864AbiBKKpE (ORCPT ); Fri, 11 Feb 2022 05:45:04 -0500 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B41D026D for ; Fri, 11 Feb 2022 02:45:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644576303; x=1676112303; h=from:to:cc:subject:date:message-id; bh=8S/ZE4qUR0xxrmBsr2udVDGRQYrYfVyJttyUMwKgHHo=; b=BpQPWDy0lK3SEJhvcwjGwpc4R+B3rO+GJ1vyyE886ByAw1S1ru23dsI2 whU5AP/flo4ozsyVhd1EI0vHaJiZpwayEhB6HL8j+/sgxrEUlHRElGcVv GsmyJ+JEZDTnjy5ClCG9vX6z6Oqng/JK7STRS6dmJ1Foslhwqw6qQv2ub DtnMR70eB6GFCWYZ+CmdsQXb28HZNtp0UVepmDoa8OdkTxtiqnv9SXwnW Yyfsz1oILCsiHuvRVHc/6Vdz0/5GiRKW4mu/Li7nWMk/MByDz2jZGP6yZ KyWPg1GBqy0N5Xyhihp2o5twaX2eihT0BpvH8NwVAjjbTQTYRqRKMLs6N g==; X-IronPort-AV: E=McAfee;i="6200,9189,10254"; a="233265707" X-IronPort-AV: E=Sophos;i="5.88,360,1635231600"; d="scan'208";a="233265707" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Feb 2022 02:45:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,360,1635231600"; d="scan'208";a="623186864" Received: from srpawnik-desktop.iind.intel.com ([10.223.141.132]) by FMSMGA003.fm.intel.com with ESMTP; 11 Feb 2022 02:45:01 -0800 From: Sumeet Pawnikar To: stable@vger.kernel.org, gregkh@linuxfoundation.org, rafael.j.wysocki@intel.com, srinivas.pandruvada@linux.intel.com Cc: sumeet.r.pawnikar@intel.com Subject: [PATCH V2 0/4] Backport intel thermal driver patches to 5.15-stable Date: Fri, 11 Feb 2022 16:34:31 +0530 Message-Id: <20220211110435.3724-1-sumeet.r.pawnikar@intel.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org We need to apply 2685c77b80a8 ("thermal/drivers/int340x: Fix RFIM mailbox write commands") to the 5.15-stable tree but it does not apply. This patch fix the write operation for mailbox command for RFIM (cmd = 0x08) which is ignored. This results in failing to store RFI restriction. To apply this fix, we need to backport below set of three patches on 5.15-stable tree because this fix depended on these three patches. Without these three dependent patches, we cannot directly apply fix (fourth) patch. Backport three patches: [1] c4fcf1ada4ae ("thermal/drivers/int340x: Improve the tcc offset saving for suspend/resume") [2] aeb58c860dc5 ("thermal/drivers/int340x: processor_thermal: Suppot 64 bit RFIM responses") [3] 994a04a20b03 ("thermal: int340x: Limit Kconfig to 64-bit") Fix RFIM patch: [4] 2685c77b80a8 ("thermal/drivers/int340x: Fix RFIM mailbox write commands") --- Changes in V2 from V1: - Added upstream commit id from Linus's tree for all four patches. --- *** BLURB HERE *** Antoine Tenart (1): thermal/drivers/int340x: Improve the tcc offset saving for suspend/resume Arnd Bergmann (1): thermal: int340x: Limit Kconfig to 64-bit Srinivas Pandruvada (1): thermal/drivers/int340x: processor_thermal: Suppot 64 bit RFIM responses Sumeet Pawnikar (1): thermal/drivers/int340x: Fix RFIM mailbox write commands drivers/thermal/intel/int340x_thermal/Kconfig | 4 +- .../intel/int340x_thermal/int3401_thermal.c | 8 +- .../processor_thermal_device.c | 36 ++++-- .../processor_thermal_device.h | 4 +- .../processor_thermal_device_pci.c | 18 ++- .../processor_thermal_device_pci_legacy.c | 8 +- .../int340x_thermal/processor_thermal_mbox.c | 104 +++++++++++------- .../int340x_thermal/processor_thermal_rfim.c | 23 ++-- 8 files changed, 139 insertions(+), 66 deletions(-)