Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp317997pxb; Thu, 5 Nov 2020 00:19:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJyhZC/5RjFDCDt3RXvSudyj+02t0wix6GGSA7CHsXrq175/pSaeWILZiwgoGsHj9ClNHCOu X-Received: by 2002:a17:906:60f:: with SMTP id s15mr1196844ejb.449.1604564397560; Thu, 05 Nov 2020 00:19:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604564397; cv=none; d=google.com; s=arc-20160816; b=NOTq+viIlea8BN8Wnv0O8gyoYHYFnsYnbd16evR4saNxsuxg3K9Qs+L2TOLghccHbU jKOIZYDBUUypvqcbioUCbVS/D48VCfQOH9IHK5r51/nb6pafcyHHJw0fg/LiZBAeajW0 JDJ4Vtk6A+E5AZ6f8nvRdC0AbyiXGcX5IjFhf9bsrazIZPr514mPjfRHBcScugcygJAM 43RVP+T8iYVT1hqFoHo2w6fYvNc0HRHrQNqesHRKadl2ZClcmzh02LbfKneO/06IVIj0 1Dj5nlRDvgocfaLIDQmezg+QO7YD+f7G5xMUqNIiAuC6dlUPPaKz+zXI7wKtS8O79/HE iIHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=5ET2Th0DyRXW62bKDsEdxAhHY06okhpZXJ0yl0uHDqo=; b=SbN0p68lmfr6U8aTkgJN/49eSHTdp96uDjuXITS+5xO1oUpy+DDTtX7c891gFX8I/A KRI64b3uJJxCiUpXTxy/5yEisnRhDWX29eEmsAmAf53CtYqMIrXoUJbrr91dIlefohzT n85gi2ohXuFbVPUXXwB2pa5ngWJshKMlMBBN47z+4/CRLfPT0l6d4UZvACqK4ZRTOc6c Aa/o3lSCiU4lpCsbEs+QC+jDktpuiI+TTsgJE8U4xor9HjTHqmMB5Yy1XRto5ifPGALO Hn33xhSsfASgst0fZbv1viJTVtJdKDSA+JYJmXvK9jq4DxUwpy6/w7EvAQO/TmQIEyOV Gsqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=FxWOGn5o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y22si691585ejc.23.2020.11.05.00.19.35; Thu, 05 Nov 2020 00:19:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=FxWOGn5o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730543AbgKEIQ0 (ORCPT + 99 others); Thu, 5 Nov 2020 03:16:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729909AbgKEIPz (ORCPT ); Thu, 5 Nov 2020 03:15:55 -0500 Received: from mail.andi.de1.cc (mail.andi.de1.cc [IPv6:2a01:238:4321:8900:456f:ecd6:43e:202c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DCCFC0613CF; Thu, 5 Nov 2020 00:15:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20180802; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=5ET2Th0DyRXW62bKDsEdxAhHY06okhpZXJ0yl0uHDqo=; b=FxWOGn5oEkgTjRrq4kihtZ4t7D gVqnMswbqzI0Ypo9pHJQWmqjgoMfcEcx5p9TqSrRPm7nzpeQTzTLPkpaoogG5WrtnMGFfKD6ypBgt pu3Q9uQbB5OOgX2EOhMynlFNXxtxNsRnTAEp63LCarsf+dd0CbgRg04EkvlUPj2TjM20=; Received: from p200300ccff0ddc001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:ff0d:dc00:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1kaaQu-0005PD-DV; Thu, 05 Nov 2020 09:15:48 +0100 Date: Thu, 5 Nov 2020 09:15:47 +0100 From: Andreas Kemnade To: Henrik Rydberg Cc: Brad Campbell , Guenter Roeck , Jean Delvare , Arnd Bergmann , linux-hwmon@vger.kernel.org, "linux-kernel@vger.kernel.org" , hns@goldelico.com Subject: Re: [PATCH] applesmc: Re-work SMC comms v2 Message-ID: <20201105091547.3335aed6@aktux> In-Reply-To: <6d071547-10ee-ca92-ec8b-4b5069d04501@bitmath.org> References: <20200930105442.3f642f6c@aktux> <20200930164446.GB219887@roeck-us.net> <20201002002251.28462e64@aktux> <7543ef85-727d-96c3-947e-5b18e9e6c44d@roeck-us.net> <20201006090226.4275c824@kemnade.info> <68467f1b-cea1-47ea-a4d4-8319214b072a@fnarfbargle.com> <20201104142057.62493c12@aktux> <2436afef-99c6-c352-936d-567bf553388c@fnarfbargle.com> <7a085650-2399-08c0-3c4d-6cd1fa28a365@roeck-us.net> <10027199-5d31-93e7-9bd8-7baaebff8b71@roeck-us.net> <70331f82-35a1-50bd-685d-0b06061dd213@fnarfbargle.com> <3c72ccc3-4de1-b5d0-423d-7b8c80991254@fnarfbargle.com> <6d071547-10ee-ca92-ec8b-4b5069d04501@bitmath.org> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Score: -1.0 (-) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 5 Nov 2020 08:56:04 +0100 Henrik Rydberg wrote: > Hi Brad, > > Great to see this effort, it is certainly an area which could be > improved. After having seen several generations of Macbooks while > modifying much of that code, it became clear that the SMC communication > got refreshed a few times over the years. Every tiny change had to be > tested on all machines, or kept separate for a particular generation, or > something would break. > > I have not followed the back story here, but I imagine the need has > arisen because of a new refresh, and so this patch only needs to > strictly apply to a new generation. I would therefore advice that you > write the patch in that way, reducing the actual change to zero for > earlier generations. It also makes it easier to test the effect of the > new approach on older systems. I should be able to help testing on a > 2008 and 2011 model once we get to that stage. > Well, the issue has arisen because of a change in kernel to make clang happy. So it is not a new Apple device causing trouble. Regards, Andreas