From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.6 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796394052; b=mS20Ee2CGLdISPpIG/zorafhsvRIpEPY5LfuoDzmC1djedHaudEQxqEErc/OphJm+UN3 McRVH7V6F2nOsFpiUJhKCTHZcQeM422zodP5ca5zNEsg8fOsQ+LDqNx85SjRNyO1EKxSW DlQRgwrN+davWSh+oBpdZK6b68ZnRV7mi6idledPFewMVSFcUqF+RvVBbzGrnz4LuKFRV NS+nWFO91zIsxG6sVdYUNMoJ3drtFRBPyc6pECjdCxFSM/OaOBnjiOfoz7+zYXO6Tnv1J xxRO+UkIf5F5N2hOGFL7l5SbZ8fGMmGyR0HA0iOQQgPPKZXtFLYTgN8H3IBpAOaALFA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796394052; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To:Organization; bh=JL7sWXJT873QcVBipmdv6cdiThbZD0ftyT57WAbJhuE=; b=LOOP9yaprYMWv6YPFv4fi+D4U3nRCwHHLNhGaeYz8w0aKc3k0HvaVrU7TJeJEw9p/Uju jERn5Mo471mi/lp5M1R60+DNu6MkDO2Sib9pHJC9kwMUt0c7UEmuoqj5b9MgAKHDEfXkY 79ilv+7U8COYrX5MDX38DNoXP3EjrQn4pwAb1cyqaWl4L9YB+wcOdBt1LmRNUOVh5JsGh YbcUePJCwZBNW9vd85Z7dIzKMIloNFMuNLVzD9mpCTlarlkeHnDalNkxGAihVY5LTMm03 r9t4E74IKJQMRIe3hK2ySgYJpCsfTNnAsv9c1MtSuObLfnuVCEheofi32gBt8WnShIg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=HjQy1MH8; arc=none smtp.remote-ip=192.198.163.6 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.6]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E91EE606A322; Fri, 4 Dec 2026 14:20:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E91EE606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=HjQy1MH8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796394052; x=1827930052; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=lh3B1iibBHPzYsrqFutq/21LsPvBtcF13QL+Utm+kts=; b=HjQy1MH8A5S0TTD/Y85qnkSi1fpqzdChU9CV6FPonciHE4CTBc6nyOQW 09DC35aLWn7YTaZHFtnKYzs1uARF6FmQvy2CmplPbdBUymwqKp/mKCKef 0pMtQTo2rATZo1tcCHYW9EU9XfKf8pRlyL1o7wzUKDTA/MP1R9UaZqb6w Napob6pVkhNtfac1KMrPhSo9uNrgV9VA/lWDezXXx0r14GZDb/W2QD559 A0CRbGI3D/5VnnVHZMeoJKpKVw2qTelx+V2pZHwqeG42aGqgV3N9Zzt6D Bo+fV2iJTN3SkynPDcgbUIeghRCuLuXBLwwi3ClPziNq4pzQvZXkL5vSU w==; X-CSE-ConnectionGUID: ANZYQxAPTxe9TBgjknrAFg== X-CSE-MsgGUID: f+aBv5D1SvSy3Ugs+wyPSw== X-IronPort-AV: E=McAfee;i="6800,10657,11986"; a="14837" X-IronPort-AV: E=Sophos;i="6.29,78,1794902400"; d="scan'208";a="14837" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by fmvoesa116.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2026 06:20:51 -0800 X-CSE-ConnectionGUID: BIMPdcfuQ8Oq0e1tID6lWg== X-CSE-MsgGUID: BtclBQlFR2eognQf0Ykkxg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.29,78,1794902400"; d="scan'208";a="14402566" Received: from alekseim-mobl.ger.corp.intel.com (HELO localhost) ([10.245.245.10]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2026 06:20:40 -0800 Date: Fri, 4 Dec 2026 16:20:38 +0200 From: Andy Shevchenko To: Atharva Tiwari Cc: Bjorn Helgaas , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , "Rafael J. Wysocki" , Len Brown , Linus Walleij , Bartosz Golaszewski , Sven Peter , Janne Grunau , Neal Gompa , Guenter Roeck , Jonathan Cameron , David Lechner , Nuno =?iso-8859-1?Q?S=E1?= , Andy Shevchenko , Lee Jones , Pavel Machek , Griffin Kroah-Hartman , Hans de Goede , Ilpo =?iso-8859-1?Q?J=E4rvinen?= , Sebastian Reichel , Alexandre Belloni , Wim Van Sebroeck , Jarkko Sakkinen , Mimi Zohar , Roberto Sassu , Dmitry Kasatkin , Eric Snowberg , Paul Moore , James Morris , "Serge E. Hallyn" , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org, linux-gpio@vger.kernel.org, asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-hwmon@vger.kernel.org, linux-iio@vger.kernel.org, linux-leds@vger.kernel.org, mfd@lists.linux.dev, platform-driver-x86@vger.kernel.org, linux-pm@vger.kernel.org, linux-rtc@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-integrity@vger.kernel.org, keyrings@vger.kernel.org, linux-security-module@vger.kernel.org Subject: Re: [PATCH 00/14] Add macsmc support for Intel Macs, replacing applesmc Message-ID: References: <20261204131619.5059-1-atharvatiwarilinuxdev@gmail.com> X-Mailing-List: linux-security-module@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261204131619.5059-1-atharvatiwarilinuxdev@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo On Fri, Dec 04, 2026 at 08:12:40AM -0500, Atharva Tiwari wrote: > applesmc is very old, and all of its code is lumped into one > driver. Fan control, sensors, the light sensor, the motion > sensor and the keyboard backlight in a single file > with its own way of talking to the SMC. It is hard to extend > and to support new machines. > > This series adds Intel Mac support to the macsmc drivers that > were written for Apple Silicon (the Asahi implementation). > The SMC works the same way on both platforms, so we share a > lot of code with Asahi. Only the way of talking to the SMC > differs. > > To make that work, patch 1 splits the macsmc driver into a > common core and a backend. The existing RTKit code moves into > its own backend. Patch 2 adds an ACPI backend for Intel Macs > with I/O port, MMIO and interrupt support. After that, each > function gets its own small driver using the standard kernel > interfaces (hwmon, IIO, LEDs, power supply, RTC, watchdog), > instead of one large driver doing everything. > > On Intel Macs these drivers replace applesmc (hwmon, light > sensor, motion sensor and keyboard backlight) and acpi-sbs > (battery and adapter). They are mutually exclusive with the > drivers they replace, so only one is used at a time. > > The series is organised as follows: > > 1 Split macsmc into a core and backends > 2 ACPI backend for Intel Macs > 3-6 New drivers: watchdog, IIO light and accelerometer, > keyboard backlight LED > 7-9 RTC support for T2 Macs, a T2 detection flag, and > disabling the broken ACPI RTCs > 10-11 Power supply support, replacing acpi-sbs > 12-13 hwmon support for Intel Macs > 14 ioctl for userspace access to SMC keys This AI slop needs a lot more *human* work. Take your time, polish the output. This series anyways missed v7.5. -- With Best Regards, Andy Shevchenko